/* NHL production v1.22 – admin-only panels and mobile-first tab navigation */
/* Mobile-first administration with horizontally scrollable sub-tabs. */
.nhl-admin-tabs{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;padding:3px 1px 12px;scrollbar-width:thin;scrollbar-color:#7b4540 transparent;margin:3px 0 8px}
.nhl-admin-tabs button{flex:0 0 auto;min-height:43px;padding:10px 13px;border-radius:12px;border:1px solid #644044;background:linear-gradient(145deg,#2b141a,#15090d);font-size:12px;font-weight:750;color:#e7cbd0;cursor:pointer}
.nhl-admin-tabs button.active{border-color:#ed5966;background:linear-gradient(110deg,#bd162c,#641522);color:#fff;box-shadow:0 5px 16px #69071970}
.nhl-admin-tabs button:focus-visible{outline:2px solid #ffc1c7;outline-offset:3px}
.nhl-admin-panel{display:grid;gap:12px;min-width:0}
.nhl-admin-panel .v1-card{margin:0}
.nhl-admin-kv{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:13px 1px;border-bottom:1px solid #51313a;font-size:13px}
.nhl-admin-kv:last-of-type{border-bottom:0}
.nhl-admin-kv span{color:#d4b4bb}
.nhl-admin-kv strong{color:#fff;text-align:right;overflow-wrap:anywhere;max-width:58%;font-variant-numeric:tabular-nums}
.nhl-usage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0 10px}
.nhl-usage-tile{padding:17px 13px;border:1px solid #6b303a;border-radius:14px;background:#39151e}
.nhl-usage-tile span{display:block;font-size:11px;color:#d6afb7;line-height:1.35}
.nhl-usage-tile strong{display:block;font-size:25px;color:#fff;padding-top:7px;font-variant-numeric:tabular-nums}
.nhl-admin-panel .v1-card button[disabled],.nhl-admin-panel select[disabled]{opacity:.55;cursor:not-allowed}
@media(min-width:600px){.nhl-admin-tabs{flex-wrap:wrap}.nhl-usage-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* NHL: dense, owner-first access list + explicit save toolbar */
.nhl-accounts .v1-card,.nhl-accounts{min-width:0}
.nhl-account-row{display:flex;align-items:center;justify-content:space-between;gap:10px;
 flex-wrap:wrap;padding:13px 0;border-bottom:1px solid #573038}
.nhl-account-row:last-of-type{border-bottom:0}
.nhl-account-row.is-owner{border-bottom:1px solid #a37849;padding:14px 0 16px}
.nhl-account-identity{min-width:0;flex:1 1 165px}
.nhl-account-identity strong{display:block;color:#fff;font-size:13px;overflow-wrap:anywhere}
.nhl-account-identity small{display:block;margin-top:4px;color:#d4abb3;font-size:11px;line-height:1.4}
.nhl-owner-label{border:1px solid #9a713f;color:#ffe1a3;border-radius:99px;padding:6px 9px;font-size:10px;font-weight:850}
.nhl-account-selects{display:flex;flex:1 1 250px;gap:9px;min-width:0}
.nhl-account-selects label{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:5px;color:#d1a9b2;font-size:10px}
.nhl-account-selects select{width:100%;min-height:39px;border:1px solid #7d424e;border-radius:9px;
 background:#1c0b11;color:#fff;padding:8px 7px;font-size:12px;min-width:0}
.nhl-admin-savebar{margin-top:17px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.nhl-admin-savebar .button{flex:1 0 160px;min-height:44px}
.nhl-admin-savebar p{flex:1 0 175px;margin:0;font-size:11px}
.nhl-dev-safe-note{background:#332516;border:1px solid #836039;color:#f2d5a5;
 padding:12px;border-radius:11px;font-size:11px;line-height:1.55}
.nhl-usage-persons{display:grid;gap:0}
.nhl-usage-person{padding:14px 0;border-bottom:1px solid #54313a}
.nhl-usage-person:last-child{border-bottom:none}
.nhl-usage-person-main strong{display:block;color:white;font-size:13px;overflow-wrap:anywhere}
.nhl-usage-person-main small,.nhl-usage-top{display:block;margin-top:4px;color:#cfaeb6;font-size:11px;line-height:1.45}
.nhl-usage-person-metrics{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 1px}
.nhl-usage-person-metrics span{display:inline-flex;gap:5px;align-items:baseline;padding:7px 9px;
 background:#30151b;border:1px solid #65404a;border-radius:9px;font-size:10px;color:#dcbfc5}
.nhl-usage-person-metrics b{font-size:12px;color:#fff;font-variant-numeric:tabular-nums}
.nhl-usage-pages{margin-top:8px}
@media(min-width:580px){.nhl-account-row{flex-wrap:nowrap}.nhl-account-selects{flex:0 0 270px}}


/* Permission matrices stay flat and compact, rather than individual cards. */
.nhl-admin-panel .v1-access-group{padding:12px 0;border-bottom:1px solid #4e2932;background:transparent}
.nhl-admin-panel .v1-access-group h3{margin:0 0 9px;color:#ffe8eb;font-size:13px}
.nhl-admin-panel .v1-access-grid{gap:10px 13px}
.nhl-admin-panel .v1-access-choice{font-size:11px;color:#edd3d7}
.nhl-admin-panel .v1-access-choice input{accent-color:#e42d43}


/* Monthly scoring self-test: compact, readable report on small phones */
.nhl-monthly-test-results{margin-top:17px}
.nhl-monthly-test-results .v1-notice,.nhl-monthly-test-results .v1-alert{padding:12px;font-size:12px}
.nhl-monthly-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.nhl-monthly-check-table{width:100%;border-collapse:collapse;min-width:290px;font-size:11px;color:#f7e9ed}
.nhl-monthly-check-table th,.nhl-monthly-check-table td{padding:10px 5px;border-bottom:1px solid #54303b;text-align:right;font-variant-numeric:tabular-nums}
.nhl-monthly-check-table th:first-child,.nhl-monthly-check-table td:first-child{text-align:left}
.nhl-monthly-check-table thead th{color:#ffc1c9;font-weight:750}
.nhl-monthly-check-table tbody th{color:#fff;font-weight:750}
.nhl-monthly-check-table tbody td strong{color:#ff9ba6}
.nhl-monthly-checks{margin-top:13px;display:grid;gap:7px}
.nhl-monthly-checks>div{font-size:11px;color:#f0d0d6;line-height:1.5}
.nhl-monthly-checks span{color:#6bdfa3;font-weight:850;margin-right:4px}

/* Central analytics – mobile friendly reload and disclosure. */
.nhl-usage-toolbar{display:flex;justify-content:flex-end;margin:12px 0}
.nhl-usage-toolbar button{min-height:40px}
.nhl-usage-disclosure{padding:0 18px;margin:7px auto 22px;max-width:540px;text-align:center;
 font-size:11px;line-height:1.55;color:#cdaab2}
