:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --surface-warm: #fbfaf8;
  --ink: #1c2930;
  --muted: #68777f;
  --line: #dfe7e9;
  --line-strong: #cbd7da;
  --accent: #4e7175;
  --accent-dark: #315b60;
  --accent-soft: #e9f1f1;
  --accent-softer: #f1f6f6;
  --warn: #8a5f37;
  --warn-soft: #f7efe5;
  --danger: #8a4d4d;
  --danger-soft: #f8eeee;
  --success: #436f5d;
  --success-soft: #edf5f1;
  --shadow: 0 10px 28px rgba(31, 52, 59, .07);
  --radius: 16px;
  --radius-sm: 11px;
  --sidebar: 238px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { font-size: 14px; line-height: 1.45; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent-dark); }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(420px, .9fr); background: linear-gradient(135deg, #f1f6f6 0%, #f7f8f8 48%, #f5f2ed 100%); }
.login-brand { padding: clamp(48px, 7vw, 100px); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(85, 110, 114, .12); }
.brand-lockup { display: flex; gap: 14px; align-items: center; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-name { font-weight: 760; letter-spacing: .06em; font-size: 26px; }
.brand-sub { margin-top: 6px; color: var(--muted); font-size: 13px; }
.login-hero { max-width: 620px; margin: 72px 0; }
.login-hero h1 { font-size: clamp(42px, 5vw, 68px); line-height: 1.03; letter-spacing: -.045em; margin: 0 0 22px; font-weight: 680; }
.login-hero p { color: #52666e; font-size: 18px; line-height: 1.65; max-width: 560px; }
.login-feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.login-feature { padding: 15px; background: rgba(255,255,255,.48); border: 1px solid rgba(92,112,116,.13); border-radius: 14px; }
.login-feature strong { display: block; font-size: 13px; margin-bottom: 4px; }
.login-feature span { color: var(--muted); font-size: 12px; }
.login-meta { color: var(--muted); font-size: 12px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 50px; }
.login-card { width: min(470px, 100%); background: rgba(255,255,255,.92); border: 1px solid rgba(90,112,116,.16); border-radius: 22px; box-shadow: 0 22px 60px rgba(38,58,64,.10); padding: 34px; backdrop-filter: blur(8px); }
.login-card h2 { margin: 0 0 7px; font-size: 25px; }
.login-card > p { margin: 0 0 24px; color: var(--muted); }
.mode-note { border: 1px solid var(--line); background: var(--surface-soft); border-radius: 12px; padding: 11px 13px; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #95a1a6; font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: #f8faf9; border-right: 1px solid var(--line); padding: 20px 15px; z-index: 20; display: flex; flex-direction: column; }
.sidebar .brand-lockup { padding: 5px 8px 20px; border-bottom: 1px solid var(--line); margin-bottom: 15px; }
.sidebar .brand-mark { width: 34px; height: 34px; }
.sidebar .brand-name { font-size: 20px; }
.nav-section-label { font-size: 10px; text-transform: uppercase; letter-spacing: .11em; color: #97a3a7; padding: 12px 11px 7px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav button { appearance: none; border: 0; background: transparent; color: #43535a; display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; text-align: left; width: 100%; }
.nav button:hover { background: #eef3f3; }
.nav button.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }
.nav-icon { width: 19px; height: 19px; opacity: .85; }
.sidebar-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.user-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; align-items: center; gap: 9px; min-width: 0; }
.avatar { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; flex: none; }
.user-chip-text { min-width: 0; flex: 1; }
.user-chip-text strong, .user-chip-text span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip-text strong { font-size: 12px; }
.user-chip-text span { color: var(--muted); font-size: 10px; }
.icon-button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; background: var(--surface); color: var(--muted); }

.main { grid-column: 2; min-width: 0; }
.topbar { min-height: 78px; position: sticky; top: 0; z-index: 15; background: rgba(250,252,252,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 22px; padding: 13px 26px; }
.page-title-wrap { min-width: 220px; }
.page-title { font-size: 22px; line-height: 1.1; font-weight: 680; letter-spacing: -.02em; }
.page-kicker { color: var(--muted); font-size: 11px; margin-top: 4px; }
.profile-meta { margin-left: auto; display: flex; align-items: stretch; gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 11px; overflow: hidden; }
.meta-cell { background: var(--surface); padding: 8px 13px; min-width: 105px; }
.meta-cell span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 2px; }
.meta-cell strong { font-size: 12px; font-weight: 650; }
.privacy-pill { border: 1px solid #cfdddd; background: var(--accent-softer); color: var(--accent-dark); border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 600; white-space: nowrap; }

.content { padding: 24px 26px 46px; max-width: 1680px; margin: 0 auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h1, .section-head h2 { margin: 0; letter-spacing: -.02em; }
.section-head h1 { font-size: 26px; }
.section-head h2 { font-size: 20px; }
.section-head p { margin: 5px 0 0; color: var(--muted); max-width: 760px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn { border: 1px solid var(--line-strong); background: var(--surface); color: #35474e; min-height: 38px; padding: 8px 13px; border-radius: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn:hover { border-color: #aebfc3; background: #fbfdfd; }
.btn.primary { background: var(--accent-dark); border-color: var(--accent-dark); color: white; }
.btn.primary:hover { background: #284e53; }
.btn.soft { background: var(--accent-soft); border-color: #d6e5e5; color: var(--accent-dark); }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .48; cursor: default; }
.btn.small { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.btn.ghost { border-color: transparent; background: transparent; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 1px rgba(20, 40, 45, .02); }
.card.pad { padding: 19px; }
.card.soft { background: var(--surface-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card { padding: 16px 17px; }
.stat-card span { color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; font-size: 25px; margin-top: 4px; letter-spacing: -.025em; }
.info-card h3 { font-size: 14px; margin: 0 0 8px; }
.info-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.stepbar { display: flex; align-items: center; gap: 0; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 5px; overflow-x: auto; }
.stepbar button { border: 0; background: transparent; padding: 9px 14px; color: var(--muted); border-radius: 9px; white-space: nowrap; }
.stepbar button.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 620; font-size: 12px; }
.field small { color: var(--muted); font-size: 11px; }
.input, .select { width: 100%; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: 10px; min-height: 40px; padding: 8px 10px; outline: none; }
.input:focus, .select:focus { border-color: #89a6aa; box-shadow: 0 0 0 3px rgba(78,113,117,.09); }
.inline-field { display: flex; gap: 8px; align-items: center; }

.notice { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-soft); color: #55676e; font-size: 12px; line-height: 1.55; }
.notice.warn { background: var(--warn-soft); border-color: #eadbc7; color: #755133; }
.notice.success { background: var(--success-soft); border-color: #d6e8df; color: #3f6556; }
.notice + .notice { margin-top: 9px; }

.toolbar { display: flex; gap: 9px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; position: relative; }
.search .input { padding-left: 34px; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #92a0a5; width: 15px; height: 15px; pointer-events: none; }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.test-card { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 15px; transition: .14s ease; display: flex; gap: 12px; min-height: 118px; }
.test-card:hover { border-color: #bdcdcf; box-shadow: 0 7px 20px rgba(30,50,55,.05); }
.test-card.selected { border-color: #a9c3c5; background: #f7fbfb; box-shadow: inset 0 0 0 1px #dce9e9; }
.check { appearance: none; width: 19px; height: 19px; flex: none; border: 1px solid #afbec1; border-radius: 5px; display: grid; place-items: center; margin: 1px 0 0; background: #fff; }
.check:checked { background: var(--accent-dark); border-color: var(--accent-dark); }
.check:checked::after { content: "✓"; color: white; font-size: 12px; font-weight: 800; }
.test-copy { min-width: 0; }
.test-copy h3 { margin: 0 0 4px; font-size: 13px; }
.test-copy .abbr { color: var(--accent-dark); font-weight: 650; font-size: 11px; }
.test-copy p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.score-test { overflow: hidden; margin-bottom: 11px; }
.score-test summary { list-style: none; padding: 14px 17px; display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; background: #fbfcfc; border-bottom: 1px solid transparent; }
.score-test[open] summary { border-bottom-color: var(--line); }
.score-test summary::-webkit-details-marker { display:none; }
.score-test summary::before { content: "›"; width: 20px; height: 20px; border: 1px solid var(--line); display: grid; place-items: center; border-radius: 6px; transition: transform .15s ease; color: var(--muted); }
.score-test[open] summary::before { transform: rotate(90deg); }
.score-test summary strong { font-size: 13px; }
.score-test summary span { color: var(--muted); font-size: 11px; margin-left: auto; }
.score-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: #6a7b82; font-size: 10px; text-transform: uppercase; letter-spacing: .045em; font-weight: 700; padding: 10px 12px; background: #fbfcfc; border-bottom: 1px solid var(--line); }
td { padding: 10px 12px; border-bottom: 1px solid #edf1f2; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.measure-name { min-width: 250px; }
.measure-name strong { display: block; font-size: 12px; }
.measure-name span { color: var(--muted); font-size: 10px; }
.mini-input { width: 92px; min-height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; background: white; }
.mini-select { min-width: 120px; min-height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 5px 7px; background: white; }
.code-block { background: #f4f7f7; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.65; color: #33474e; overflow-x: auto; white-space: pre; margin: 0 0 12px; }
.security-row .code-block { margin-top: 10px; }
.norm-cell { white-space: nowrap; }
.norm-fixed { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.norm-inputs { display: flex; gap: 6px; }
.norm-input { width: 62px; }
.norm-inputs[hidden], .norm-fixed[hidden] { display: none; }
.z-chip { min-width: 58px; display: inline-block; text-align: center; padding: 4px 7px; border-radius: 999px; background: #f1f4f5; color: #52646b; font-size: 11px; font-variant-numeric: tabular-nums; }
.toggle { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: #dbe3e5; position: relative; vertical-align: middle; transition: .15s; }
.toggle::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: white; top: 3px; left: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: .15s; }
.toggle:checked { background: #6f9295; }
.toggle:checked::after { left: 17px; }

.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 14px; align-items: start; }
.profile-graph-card { overflow: hidden; }
.card-head { padding: 15px 17px 12px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 14px; }
.card-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.card-head .spacer { flex: 1; }
.legend { display: flex; gap: 12px; color: var(--muted); font-size: 10px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.graph-wrap { overflow: auto; padding: 8px 10px 10px; background: #fff; }
.profile-svg { display: block; min-width: 760px; }
.domain-summary { overflow: hidden; }
.domain-row { display: grid; grid-template-columns: 1.1fr .78fr 1.55fr; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.domain-row:hover { background: #f8fbfb; }
.domain-row:last-child { border-bottom: 0; }
.domain-row > div { padding: 12px 11px; border-right: 1px solid var(--line); }
.domain-row > div:last-child { border-right: 0; }
.domain-row.head { cursor: default; background: #fbfcfc; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: 9px; font-weight: 700; }
.domain-row.head:hover { background: #fbfcfc; }
.domain-name { font-weight: 650; font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 650; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aabb0; }
.status.flag .status-dot { background: #986241; }
.status.ok .status-dot { background: #5b8371; }
.status.none .status-dot { background: #b7c2c5; }
.key-finding { color: #53666d; font-size: 10px; line-height: 1.45; }
.details-card { margin-top: 14px; overflow: hidden; }
.detail-table td { font-size: 11px; }
.detail-table .muted { color: var(--muted); }
.special-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.special-panel { padding: 16px; }
.special-panel h3 { margin: 0 0 9px; font-size: 13px; }
.special-panel p { color: var(--muted); margin: 0 0 10px; font-size: 11px; }
.special-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.special-item strong { font-size: 11px; }
.special-item span { color: var(--muted); font-size: 11px; }
.empty { padding: 42px 24px; text-align: center; color: var(--muted); }
.empty strong { color: var(--ink); display: block; margin-bottom: 7px; }

.domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 17px; }
.domain-card { padding: 14px; cursor: pointer; transition: .13s; }
.domain-card:hover, .domain-card.active { border-color: #abc1c4; background: #f8fbfb; }
.domain-card h3 { margin: 0 0 5px; font-size: 12px; }
.domain-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.domain-card .count { display: inline-block; margin-top: 9px; color: var(--accent-dark); font-size: 10px; font-weight: 650; }
.mapping-table td { font-size: 11px; }
.mapping-table .test-label { font-weight: 650; }
.mapping-table .sub { display:block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #f8fafb; color: #56676e; padding: 3px 6px; border-radius: 999px; font-size: 9px; margin: 2px 3px 2px 0; }
.ref-link { display: block; font-size: 10px; color: var(--accent-dark); text-decoration: none; margin: 2px 0; }
.ref-link:hover { text-decoration: underline; }

.saved-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.saved-card { padding: 15px; }
.saved-card .saved-title { font-weight: 680; font-size: 14px; }
.saved-meta { color: var(--muted); font-size: 10px; margin: 5px 0 12px; }
.saved-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 13px; }

.export-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.export-card { padding: 18px; }
.export-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 14px; }
.export-card h3 { font-size: 13px; margin: 0 0 7px; }
.export-card p { color: var(--muted); font-size: 11px; min-height: 49px; margin: 0 0 14px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(24, 38, 43, .22); display: flex; justify-content: flex-end; }
.drawer { width: min(530px, 94vw); height: 100%; background: var(--surface); box-shadow: -18px 0 55px rgba(25,43,49,.16); overflow-y: auto; animation: slidein .18s ease-out; }
@keyframes slidein { from { transform: translateX(18px); opacity:.6 } to { transform:none; opacity:1 } }
.drawer-head { position: sticky; top:0; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 17px 19px; display:flex; align-items:center; gap:10px; z-index:1; }
.drawer-head h2 { margin:0; font-size:18px; }
.drawer-head .spacer { flex:1; }
.drawer-body { padding: 19px; }
.drawer-body h3 { font-size: 12px; margin: 20px 0 8px; }
.mapping-entry { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 8px 0; }
.mapping-entry strong { font-size: 11px; }
.mapping-entry p { color: var(--muted); font-size: 10px; line-height:1.5; margin:6px 0; }

#toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 120; display:flex; flex-direction:column; gap:8px; }
.toast { background: #263b41; color: white; border-radius: 10px; padding: 10px 13px; box-shadow: var(--shadow); font-size: 12px; animation: toastin .16s ease-out; }
@keyframes toastin { from { opacity:0; transform:translateY(5px) } }

.mobile-nav { display:none; }
@media (max-width: 1180px) {
  .profile-layout { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: repeat(2,1fr); }
  .domain-grid { grid-template-columns: repeat(3,1fr); }
  .export-grid { grid-template-columns: repeat(2,1fr); }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .profile-meta .meta-cell:nth-child(3) { display:none; }
}
@media (max-width: 860px) {
  :root { --sidebar: 0px; }
  .app-shell { display:block; }
  .sidebar { display:none; }
  .main { grid-column:auto; }
  .topbar { padding: 12px 15px; min-height: 68px; }
  .page-title-wrap { min-width: 0; }
  .page-title { font-size: 18px; }
  .profile-meta { display:none; }
  .content { padding: 16px 14px 82px; }
  .mobile-nav { display:flex; position:fixed; bottom:0; left:0; right:0; z-index:50; background:rgba(255,255,255,.96); border-top:1px solid var(--line); padding:6px 8px max(6px, env(safe-area-inset-bottom)); justify-content:space-around; backdrop-filter:blur(10px); }
  .mobile-nav button { border:0; background:transparent; color:var(--muted); font-size:9px; padding:4px; }
  .mobile-nav button.active { color:var(--accent-dark); font-weight:700; }
  .mobile-nav .nav-icon { display:block; margin:0 auto 2px; }
  .login-shell { grid-template-columns:1fr; }
  .login-brand { display:none; }
  .login-panel { min-height:100vh; padding:22px; }
  .test-grid, .grid-3, .grid-2, .special-panels, .saved-list { grid-template-columns:1fr; }
  .domain-grid { grid-template-columns:repeat(2,1fr); }
  .form-grid { grid-template-columns:1fr; }
  .export-grid { grid-template-columns:1fr; }
}
@media (max-width: 520px) {
  .domain-grid, .stats-row { grid-template-columns:1fr; }
  .section-head { align-items:flex-start; flex-direction:column; }
  .login-card { padding:24px; }
}

@media print {
  body { background:white; }
  .sidebar, .topbar .privacy-pill, .actions, .stepbar, .mobile-nav, #toast-root, .no-print { display:none !important; }
  .app-shell { display:block; }
  .main { display:block; }
  .topbar { position:static; border:0; background:white; padding:0 0 12px; }
  .topbar .profile-meta { display:flex; }
  .content { padding:0; max-width:none; }
  .profile-layout { grid-template-columns:minmax(0,1fr) 330px; gap:10px; }
  .card { box-shadow:none; break-inside:avoid; }
  .profile-svg { min-width:0; width:100%; height:auto; }
  .details-card, .special-panels { break-inside:avoid; }
  @page { margin: 12mm; size: landscape; }
}

/* Secure single-panel sign-in */
.login-shell-centered {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 15%, rgba(78,113,117,.10), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(138,95,55,.06), transparent 31%),
    linear-gradient(145deg, #f3f7f7 0%, #f7f8f8 55%, #f7f5f1 100%);
}
.login-panel-centered { min-height: 100vh; padding: 28px; }
.login-card-focused { width: min(440px, 100%); padding: 38px; }
.login-logo-wrap { display: flex; justify-content: center; margin-bottom: 30px; }
.login-card-focused h2 { text-align: center; font-size: 26px; }
.login-card-focused > p { text-align: center; margin-bottom: 22px; }
.login-help { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: center; }
.config-note { background: var(--warn-soft); color: #745134; border-color: #eadac8; }
.mode-note { display: flex; gap: 9px; align-items: flex-start; }
.mode-note .nav-icon { flex: none; margin-top: -1px; }
.mode-note code { font-size: 11px; }
.password-field { position: relative; }
.password-field .input { padding-right: 45px; }
.password-toggle { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 8px; }
.password-toggle:hover:not(:disabled) { background: var(--surface-soft); color: var(--ink); }
.password-toggle:disabled { opacity: .45; cursor: default; }

/* Administrator user management */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 16px; align-items: stretch; }
.admin-security-card { background: var(--surface-soft); }
.security-row { display: grid; grid-template-columns: 23px 1fr; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.security-row:last-child { border-bottom: 0; }
.security-row .nav-icon { color: var(--accent-dark); }
.security-row strong, .security-row span { display: block; }
.security-row strong { font-size: 13px; margin-bottom: 3px; }
.security-row span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.subtle { color: var(--muted); font-size: 12px; line-height: 1.55; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

@media (max-width: 880px) {
  .admin-grid { grid-template-columns: 1fr; }
  .login-panel-centered { padding: 20px; }
  .login-card-focused { padding: 28px; }
}
.mode-note > span { flex: 1; min-width: 0; }
