/* NIEHUB customer area. Mobile first; colours come from CSS variables (Settings > Customer Dashboard). */
.niehub-account { --nh-dark: #08333D; --nh-accent-dark: #C9962B; }
.niehub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 16px; }
.niehub-stat { background: var(--nh-primary, #0E4A57); color: #fff; border-bottom: 4px solid var(--nh-accent, #E8B84A); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.niehub-stat__n { font-size: 28px; font-weight: 700; color: var(--nh-accent, #E8B84A); line-height: 1.1; }
.niehub-card { background: #fff; border: 1px solid #d9e2e4; border-left: 5px solid var(--nh-accent, #E8B84A); border-radius: 8px; padding: 16px; margin: 0 0 16px; }
.niehub-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.niehub-card h3 { margin: 0; color: var(--nh-primary, #0E4A57); font-size: 1.15em; }
.niehub-card dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; margin: 12px 0; }
.niehub-card dt { font-size: .8em; text-transform: uppercase; letter-spacing: .03em; color: #5b6b70; }
.niehub-card dd { margin: 0; font-weight: 600; word-break: break-word; }
.niehub-card footer { display: flex; flex-wrap: wrap; gap: 8px; }
.niehub-account .button, .niehub-account button.button { display: inline-block; min-height: 44px; padding: 10px 16px; border-radius: 6px; border: 1px solid var(--nh-primary, #0E4A57); background: #fff; color: var(--nh-primary, #0E4A57); font-weight: 600; text-decoration: none; cursor: pointer; }
.niehub-account .button:hover { background: var(--nh-primary, #0E4A57); color: #fff; }
.niehub-account .niehub-primary { background: var(--nh-accent, #E8B84A); border-color: var(--nh-accent-dark); color: var(--nh-dark); }
.niehub-account .niehub-primary:hover { background: var(--nh-accent-dark); color: #fff; }
.niehub-account a:focus, .niehub-account button:focus, .niehub-account input:focus { outline: 3px solid var(--nh-accent-dark); outline-offset: 2px; }
.niehub-inline { display: inline; margin: 0; }
.niehub-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75em; font-weight: 700; }
.niehub-badge.is-ok { background: var(--nh-accent, #E8B84A); color: var(--nh-dark); }
.niehub-badge.is-warn { background: #fff1cc; color: #7a5a00; }
.niehub-badge.is-bad { background: #fcdcdc; color: #8a1f1f; }
.niehub-warn { background: #fff8e1; border-left: 4px solid var(--nh-accent-dark); padding: 8px 12px; margin: 8px 0; }
.niehub-note { color: #5b6b70; }
.niehub-reveal { background: var(--nh-dark); color: #fff; border: 2px solid var(--nh-accent, #E8B84A); border-radius: 8px; padding: 14px; margin: 0 0 16px; }
.niehub-reveal code { background: var(--nh-accent, #E8B84A); color: var(--nh-dark); padding: 4px 8px; font-size: 1.05em; word-break: break-all; }
.niehub-table { width: 100%; border-collapse: collapse; }
.niehub-table th, .niehub-table td { text-align: left; padding: 8px; border-bottom: 1px solid #e3eaec; vertical-align: middle; }
.niehub-regen label { display: block; margin-bottom: 4px; }
.niehub-regen input[type=password] { min-height: 44px; margin-right: 8px; max-width: 100%; }
@media (max-width: 640px) {
  .niehub-table thead { position: absolute; left: -9999px; }
  .niehub-table, .niehub-table tbody, .niehub-table tr, .niehub-table td { display: block; width: 100%; }
  .niehub-table tr { border: 1px solid #d9e2e4; border-radius: 8px; margin-bottom: 12px; padding: 4px 0; }
  .niehub-table td { border: 0; display: flex; justify-content: space-between; gap: 12px; }
  .niehub-table td::before { content: attr(data-label); font-weight: 600; color: #5b6b70; }
  .niehub-card footer .button { flex: 1 1 100%; text-align: center; }
}
