/* Shared light palette. Navigation is independent of content action buttons. */
:root {
  --bg: #fbfcfe; --panel: #fff; --panel-soft: #f8fafc; --text: #273244;
  --muted: #7a8595; --line: #e8ecf1; --accent: #3378cc; --accent-2: #2867b5;
  --accent-soft: #edf5ff; --warn: #a67936; --bad: #c76068; --ok: #27957a;
  --shadow: 0 2px 8px rgba(35,55,80,.025);
}
[hidden] { display: none !important; }
body, body.has-workspace { color: var(--text); background: var(--bg); }
button, input, select, textarea, .link-button { font: inherit; }
button, .link-button { transition: background .15s ease, border-color .15s ease; }
button:not(.secondary):not(.auth-tab):not(.text-button), .link-button:not(.secondary) {
  border: 1px solid #cfe1f7; color: #2867b5; background: #edf5ff; box-shadow: none; font-weight: 600;
}
button:not(.secondary):not(.auth-tab):not(.text-button):hover, .link-button:not(.secondary):hover { border-color: #b6d2f2; background: #e2efff; }
button.secondary, .link-button.secondary { border-color: #e3e8ee; color: #637083; background: #fff; box-shadow: none; font-weight: 500; }
button.secondary:hover, .link-button.secondary:hover { border-color: #cbd9e9; color: #3378cc; background: #f8fbff; }
button.warn:not(.secondary) { border-color: #f1d5d8; color: #b8515c; background: #fff5f6; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #82b4ec; outline-offset: 3px; }
input, select, textarea { border: 1px solid #e1e7ee; color: var(--text); background: #fff; border-radius: 8px; }
input:focus, select:focus, textarea:focus { border-color: #9ac0eb; box-shadow: 0 0 0 3px #edf5ff; }
input::placeholder, textarea::placeholder { color: #9aa4b2; }
input[type="radio"], input[type="checkbox"] { accent-color: #478ad6; }
.item-meta, .form-hint, .auth-switch-hint, .last-sync { color: var(--muted); }
.brand-mark, .admin-mark { color: #377ac8; background: #edf5ff; box-shadow: none; font-weight: 700; }
.product-brand strong { color: var(--text); }
.product-brand small, .toolbar-eyebrow { color: #929cab; }
.eyebrow, .section-kicker { color: #8591a2; }
.service-status-chip, .auth-service-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: #388773; font-size: 12px; font-weight: 500; }
.service-status-chip i, .auth-service-status i { width: 7px; height: 7px; border-radius: 50%; background: #42b18c; box-shadow: 0 0 0 3px #edf9f4; }
.service-status-chip.offline, .auth-service-status.offline { color: #b66b72; }
.service-status-chip.offline i, .auth-service-status.offline i { background: #ce8289; box-shadow: 0 0 0 3px #fff2f3; }
.status-dot { background: #42b18c; box-shadow: 0 0 0 3px #edf9f4; }

/* White customer cards; small pastel icons carry the secondary colors. */
.user-workspace-shell .product-sidebar { display: none; }
.user-workspace-shell .workspace-main { margin-left: 0; width: 100%; padding: 26px clamp(16px,4vw,56px) 60px; }
.user-toolbar { align-items: center; margin-bottom: 24px; }
.user-brand-line { display: flex; align-items: center; gap: 20px; min-width: 0; }
.user-toolbar .product-brand { height: auto; padding: 0 20px 0 0; border: 0; }
.user-toolbar h2 { font-size: 21px; font-weight: 600; }
.user-toolbar .toolbar-actions { gap: 10px; }
.user-hero { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: none; }
.hero-copy h2 { font-size: 25px; font-weight: 600; }
.hero-copy p, .user-metric span, .user-metric em, .balance-chip span { color: var(--muted); }
.hero-copy .eyebrow { font-weight: 500; }
.user-metric, .user-metric.accent, .user-metric:nth-child(n) { position: relative; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: none; }
.user-metric strong, .user-metric.accent strong, .user-metric:nth-child(n) strong { color: var(--text); font-weight: 600; }
.user-metric .metric-icon { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #528ad2; background: #eff6ff; }
.user-metric:nth-child(2) .metric-icon { color: #4f9c92; background: #eef9f6; }
.user-metric:nth-child(3) .metric-icon { color: #7395b8; background: #f1f6fb; }
.user-metric.service-online .metric-icon { color: #25856c; background: #eaf8f1; }
.user-metric.service-offline .metric-icon { color: #8a95a4; background: #f1f4f8; }
.metric-icon svg { width: 19px; height: 19px; }
.panel, .admin-section { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.scan-panel, .account-panel, .task-workspace { border: 1px solid var(--line); }
.scan-workspace, .account-panel { padding: 22px; }
.section-kicker { font-size: 10px; font-weight: 500; letter-spacing: .08em; }
.step-badge { border-color: #e2ebf7; color: #7295bf; background: #f5f9ff; font-weight: 500; }
.balance-chip { min-width: 110px; border: 1px solid #e3edf9; background: #f7faff; }
.balance-card { padding: 18px; border: 1px solid #e6edf5; border-radius: 9px; background: #f9fbfe; }
.balance-chip strong, .balance-card strong { color: #427dbb; font-weight: 600; }
.service-note { border-color: var(--line); background: transparent; }
.service-note strong { color: #637083; font-weight: 500; }
.service-note.offline .status-dot { background: #a2abb7; box-shadow: 0 0 0 3px #f1f4f8; }
.sidebar-status.offline .status-dot { background: #a2abb7; box-shadow: 0 0 0 3px #f1f4f8; }
.primary-action { min-height: 46px; border-radius: 8px; }
.account-panel .purchase-actions .link-button { border-color: #e3e8ee; color: #637083; background: #fff; }
.check-row, .mode-choice { border-color: #e5eaf0; color: #637083; background: #fff; }
.mode-choice:has(input:checked) { border-color: #bdd6f3; color: #3378cc; background: #f6faff; }
.check-row em, .mode-choice em { color: #8390a1; }
.task-filters, .viewer-filters { border-color: var(--line); background: #fafbfd; }
.task-workspace .item { border: 1px solid #e5eaf0; border-radius: 10px; background: #fff; box-shadow: none; }
.pill { font-weight: 500; }
.pill.completed { color: #25856c; background: #edf8f3; }
.pill.running { color: #3779bd; background: #edf5ff; }
.pill.queued { color: #738093; background: #f1f4f8; }
.pill.failed { color: #b55d68; background: #fff1f3; }
.phase-line { color: #8390a1; }
.progress { height: 4px; background: #f0f3f7; }
.progress > div { background: #92bce9; }
.progress.completed > div { background: #96d2bf; }
.progress.queued > div { background: #becbdc; }
.result-card, .result-card.ok, .result-card.soft, .result-card.bad { border: 1px solid var(--line); background: #fff; border-radius: 9px; }
.result-card .result-title, .result-card.soft .result-title { color: #647990; }
.result-card.ok .result-title { color: #368d77; }
.result-card.bad .result-title { color: #b75e68; }
.result-detail-grid { border-top-color: #edf0f4; }
.result-line { border: 1px solid #edf0f4; }

/* A focused login/register form. */
.auth-shell, .auth-shell.auth-simple-shell, .auth-shell.admin-auth-shell { display: block; width: min(480px,calc(100vw - 32px)); min-height: 0; margin: clamp(28px,9vh,88px) auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 32px rgba(35,55,80,.035); overflow: hidden; }
.auth-shell .auth-intro { display: none; }
.auth-forms, .auth-shell .auth-forms { min-height: 0; padding: 32px; background: #fff; }
.auth-simple-forms { max-width: none; }
.auth-announcement { display: flex; justify-content: flex-end; margin: -14px 0 14px; }
.auth-brand-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.auth-brand-row .product-brand { height: auto; padding: 0; border: 0; }
.auth-brand-row .brand-mark { color: #377ac8; background: #edf5ff; box-shadow: none; }
.auth-brand-row .product-brand small { color: #929cab; }
.auth-service-status { font-size: 11px; }
.auth-tabs { gap: 28px; margin-bottom: 26px; border-color: var(--line); }
.auth-tab, .auth-tab:hover { color: #8d97a6; background: transparent; font-weight: 500; }
.auth-tab.active { color: #3378cc; }
.auth-tab.active::after { background: #83b1e6; }
.auth-form-block h2 { color: var(--text); font-size: 24px; font-weight: 600; }
.auth-form-block .item-meta { color: #8a95a4; }
.auth-form-block button[type="submit"] { min-height: 44px; }
.purchase-guide { border-color: #e0eaf6; color: #7a899e; background: #f8fbff; }
.purchase-guide strong, .text-button { color: #397bc4; }

/* Auto-dismiss notices, with a quiet manual close control. */
#notice { position: fixed; top: 18px; right: 24px; z-index: 100; display: flex; align-items: center; gap: 14px; width: min(380px,calc(100vw - 32px)); margin: 0; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: 10px; color: #65758b; background: #fff; box-shadow: 0 8px 28px rgba(35,55,80,.09); }
#notice.ok { border-color: #dceee5; color: #388773; background: #fff; }
#notice.error { border-color: #f0d8dc; color: #b75e68; background: #fff; }
.notice-message { flex: 1; overflow-wrap: anywhere; }
#notice .notice-close { display: grid; place-items: center; flex: 0 0 30px; width: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 6px; color: #95a0ad; background: transparent; box-shadow: none; font-size: 22px; font-weight: 400; }
#notice .notice-close:hover { color: #53657c; background: #f2f5f9; }

/* Results use status colors only where they convey information. */
.viewer-backdrop { padding: 12px; background: rgba(34,48,68,.22); backdrop-filter: blur(2px); }
.viewer-modal { width: min(1120px,100%); max-height: min(94dvh,980px); padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 24px 80px rgba(34,48,68,.14); }
.viewer-modal .modal-head { align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.viewer-modal .modal-head h2 { color: var(--text); }
.viewer-stats { gap: 10px; margin: 14px 0; }
.viewer-stats .admin-stat, .viewer-stats .admin-stat:nth-child(n) { border-radius: 9px; border-color: var(--line); background: #fff; box-shadow: none; }
.viewer-filters { padding: 12px; border-radius: 10px; background: #fafbfd; }
.viewer-player { border-color: var(--line); border-radius: 10px; background: #fff; box-shadow: none; }
.viewer-player > summary { min-height: 64px; padding: 13px 15px; }
.viewer-player > summary:hover { background: #fbfcfe; }
.viewer-player > summary::before { border-color: #e0eaf6; color: #6a94c4; background: #f6faff; }
.viewer-summary-cell b { color: #8290a1; }
.viewer-player-body { padding: 0 15px 17px; border-top-color: var(--line); }
.viewer-profile-strip { gap: 9px; padding: 14px 0; }
.viewer-profile-strip > div, .viewer-profile-strip > div:nth-child(n) { border-color: var(--line); border-radius: 8px; background: #fff; }
.viewer-section-title { margin-top: 16px; color: #657991; }
.viewer-queue { border-color: var(--line); border-radius: 9px; background: #fbfcfe; }
.viewer-queue-title { color: #526d8e; }
.viewer-loading { border-color: #cbdff5; color: #5387bc; background: #f8fbff; }
.shield-highlight.active { border-color: #dceee5; background: #f7fcf9; }
.shield-highlight.active strong { color: #388773; }
.shield-highlight.inactive { border-color: var(--line); background: #fafbfd; }
.shield-highlight.inactive strong { color: #8390a1; }

/* Dense result layout: shared overview, labelled columns, and compact detail lines. */
.personal-result-card.result-card { padding: 12px; border-color: #cfe7dc; background: #f2fbf6; }
.personal-result-card > .result-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px 14px; }
.personal-result-card > .result-title { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.personal-result-card > .result-grid strong { color: #314b42; font-size: 14px; font-weight: 600; line-height: 1.45; }
.personal-result-card > .result-grid span { font-size: 11px; color: #7c938a; }
.viewer-queues { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 8px; }
.viewer-queue { min-width: 0; padding: 0; border: 1px solid #d6e1ed; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 2px 5px rgba(36,56,78,.03); }
.viewer-queue-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 7px 10px; border-bottom: 1px solid #e0e8f1; color: #3e5877; background: #f2f6fb; font-size: 13px; }
.viewer-queue-title strong { font-weight: 600; }
.queue-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 12px; margin: 0; padding: 2px 10px 6px; }
.queue-fact { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 6px; padding: 6px 0; border-bottom: 1px solid #eef2f6; }
.queue-fact-location, .queue-fact-target, .queue-fact-heroes, .queue-fact-units, .queue-fact-time { grid-column: 1 / -1; }
.queue-fact:last-child { border-bottom: 0; }
.queue-fact dt { color: #8793a2; font-size: 12px; }
.queue-fact dd { margin: 0; color: #3a4c62; line-height: 1.45; font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; }
.queue-fact-target dd { font-weight: 500; }
.queue-fact-location dd { color: #397cbb; font-weight: 600; }
.queue-fact-heroes dd { color: #52766e; }
.queue-note { margin: 10px 0 0; color: #8490a0; font-size: 12px; }
.personal-result-card .result-detail-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #d3e9dd; }
.personal-result-card .result-section { padding: 0; border: 0; border-radius: 0; background: transparent; }
.personal-result-card .result-section.wide { grid-column: 1 / -1; }
.personal-result-card [data-result-section="出发 / 到达时间"] { grid-column: 1 / -1; }
.personal-result-card [data-result-section="出发 / 到达时间"] .result-lines,
.personal-result-card .result-section.wide .result-lines { grid-template-columns: repeat(auto-fit,minmax(340px,1fr)); }
.personal-result-card .result-section-title { margin-bottom: 5px; color: #718b7e; font-size: 11px; font-weight: 500; }
.personal-result-card .result-lines { gap: 5px; }
.personal-result-card .result-line { padding: 6px 8px; border: 1px solid #e1eee7; border-left: 2px solid #80baa0; border-radius: 5px; background: #fff; color: #435f50; font-size: 13px; line-height: 1.5; }
.viewer-modal { background: #f7f9fc; }
.viewer-modal .modal-head { background: transparent; }
.viewer-modal .viewer-stats { background: transparent; }
.viewer-modal .viewer-stats .admin-stat { border-color: #dce5ef; }
.viewer-modal .viewer-filters { border-color: #dce5ef; background: #fff; }
.viewer-filter-panel { margin-bottom: 16px; border: 1px solid #dce5ef; border-radius: 10px; background: #fff; }
.viewer-filter-panel > summary { display: flex; align-items: center; gap: 12px; padding: 13px 14px; list-style: none; cursor: pointer; }
.viewer-filter-panel > summary::-webkit-details-marker { display: none; }
.viewer-filter-panel > summary strong { color: #536c87; font-size: 13px; font-weight: 500; }
.viewer-filter-panel > summary > span { color: #99a4b2; font-size: 11px; }
.viewer-filter-panel > summary b { margin-left: auto; color: #4a80bd; font-size: 12px; font-weight: 500; }
.viewer-filter-panel .when-open { display: none; }
.viewer-filter-panel[open] .when-open { display: inline; }
.viewer-filter-panel[open] .when-closed { display: none; }
.viewer-modal .viewer-filter-panel .viewer-filters { margin: 0; border: 0; border-top: 1px solid #e8edf5; border-radius: 0 0 10px 10px; }
.viewer-list { gap: 8px; }
.viewer-player { border: 1px solid #d5e0ed; border-radius: 12px; background: #fff; box-shadow: 0 2px 5px rgba(36,56,78,.035); }
.viewer-player[open] { border-color: #acc8e9; }
.viewer-player > summary { display: block; min-height: 0; padding: 10px 12px 0; }
.viewer-player > summary::before, .viewer-player[open] > summary::before { content: none; display: none; }
.viewer-player > summary:hover { background: #fff; }
.viewer-player-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-player-main { min-width: 0; }
.viewer-player-main strong { color: #30445f; font-size: 16px; font-weight: 600; }
.viewer-player-header .pill { flex: 0 0 auto; }
.viewer-player-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 8px 0; padding: 7px 10px; border: 1px solid #e8eef5; border-radius: 8px; background: #f8fafd; }
.viewer-player-facts > span { min-width: 0; padding-left: 12px; border-left: 1px solid #e1e8f1; }
.viewer-player-facts > span:first-child { padding-left: 0; border: 0; }
.viewer-player-facts b { display: block; color: #8490a0; font-size: 11px; font-weight: 400; }
.viewer-player-facts strong { display: block; margin-top: 4px; color: #485d77; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.viewer-player-facts > span:first-child strong { color: #397cbb; }
.viewer-player-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #edf1f6; }
.viewer-shield-expiry { color: #7a899b; font-size: 12px; overflow-wrap: anywhere; }
.queue-toggle { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; color: #397cbb; font-size: 12px; font-weight: 500; }
.queue-toggle svg { width: 16px; height: 16px; }
.queue-toggle .when-open { display: none; }
.viewer-player[open] .queue-toggle .when-open { display: inline; }
.viewer-player[open] .queue-toggle .when-closed { display: none; }
.viewer-player[open] .queue-toggle svg { transform: rotate(180deg); }
.viewer-player-body { padding: 0 18px 18px; border-top: 1px solid #e1e8f1; background: #f7f9fc; }
.viewer-snapshot-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 14px; color: #8a96a7; font-size: 11px; }
.viewer-section-title { margin: 10px 0 8px; color: #4b617a; font-size: 13px; font-weight: 600; }

/* White grouped sidebar, borderless rows and a pale blue active item. */
body.has-workspace:has(.admin-workspace-shell), .admin-workspace-shell { background: #fbfcfe; }
.admin-workspace-shell .admin-product-sidebar { width: 248px; padding: 26px 16px 18px; overflow-y: auto; border-right: 1px solid #e9edf2; background: #fff; box-shadow: none; }
.admin-workspace-shell .admin-product-sidebar .product-brand { height: auto; padding: 0 12px 26px; border-bottom: 1px solid #edf0f4; }
.admin-workspace-shell .admin-product-sidebar .brand-mark { width: 36px; height: 36px; border-radius: 11px; color: #7292b7; background: #f0f5fc; box-shadow: none; }
.admin-workspace-shell .admin-product-sidebar .product-brand strong { font-size: 17px; font-weight: 600; }
.admin-workspace-shell .admin-product-sidebar .product-brand small { margin-top: 3px; color: #98a1af; }
.admin-workspace-shell .admin-product-nav { display: block; margin-top: 5px; }
.admin-nav-group { display: grid; }
.admin-nav-items { display: grid; gap: 5px; }
.admin-workspace-shell .admin-nav-label { margin: 25px 13px 9px; color: #959eab; font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.admin-workspace-shell .admin-product-sidebar .admin-product-nav .product-nav-item { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 8px; color: #727b88; background: transparent; box-shadow: none; font-size: 14px; font-weight: 400; text-align: left; }
.admin-workspace-shell .admin-product-sidebar .admin-product-nav .product-nav-item:hover { border: 0; color: #526174; background: #f6f7f9; }
.admin-workspace-shell .admin-product-sidebar .admin-product-nav .product-nav-item.active { border: 0; color: #3378cc; background: #edf5ff; box-shadow: none; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 21px; flex: 0 0 21px; color: currentColor; }
.nav-icon svg, .nav-icon-svg { display: block; width: 21px; height: 21px; }
.admin-workspace-shell .sidebar-status { margin: 24px 12px 0; padding: 15px 0; border: 0; border-top: 1px solid #edf0f4; border-radius: 0; background: transparent; }
.admin-workspace-shell .sidebar-status strong { color: #788494; font-weight: 400; }
.admin-workspace-shell .sidebar-status small { color: #a0a8b5; }
.admin-workspace-shell .admin-product-sidebar button.sidebar-logout { display: flex; min-height: 44px; margin-top: 4px; padding: 0 14px; border: 0; border-radius: 8px; color: #818a98; background: transparent; box-shadow: none; font-weight: 400; }
.admin-workspace-shell .admin-product-sidebar button.sidebar-logout:hover { border: 0; color: #b75e68; background: #fff6f7; }
.admin-workspace-shell .workspace-main { margin-left: 248px; padding: 28px clamp(20px,3vw,44px) 60px; background: #fbfcfe; }
.admin-workspace-shell .workspace-toolbar { max-width: none; margin: -28px clamp(-44px,-3vw,-20px) 26px; padding: 22px clamp(20px,3vw,44px); border-bottom: 1px solid #e9edf2; background: #fff; }
.admin-workspace-shell .workspace-toolbar h2 { color: var(--text); font-size: 22px; font-weight: 600; }
.admin-workspace-shell .admin-avatar { color: #7695b9; background: #eff5fc; }
.admin-workspace-shell .admin-section, .admin-workspace-shell .admin-stat, .admin-workspace-shell .admin-table-wrap, .admin-workspace-shell .sub-panel { border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: none; }
.admin-workspace-shell .admin-section { padding: 22px; }
.admin-workspace-shell .admin-section-head { padding-bottom: 16px; border-bottom: 1px solid #edf0f4; }
.admin-workspace-shell .admin-section-head h2 { font-weight: 600; }
.admin-workspace-shell .admin-section-head p { color: #8d97a6; }
.admin-workspace-shell .admin-stat strong { color: #34445a; font-weight: 600; }
.admin-workspace-shell .admin-table th { color: #8290a1; background: #fafbfd; font-weight: 500; }
.admin-workspace-shell .admin-table td { border-color: #edf0f4; }
.admin-workspace-shell .admin-content button:not(.secondary):not(.auth-tab):not(.text-button):not(.warn) { border: 1px solid #d2e2f6; color: #3378cc; background: #f0f6ff; box-shadow: none; }
.admin-workspace-shell .admin-content button:not(.secondary):not(.auth-tab):not(.text-button):not(.warn):hover { background: #e5f0ff; }

@media (max-width: 900px) {
  .admin-workspace-shell .admin-product-sidebar { width: 100%; padding: 16px 14px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-workspace-shell .admin-product-sidebar .product-brand { padding: 0 4px 8px; border: 0; }
  .admin-workspace-shell .admin-product-nav { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; }
  .admin-nav-group, .admin-nav-items { display: contents; }
  .admin-workspace-shell .admin-product-nav .admin-nav-label, .admin-workspace-shell .sidebar-status, .admin-workspace-shell .sidebar-spacer { display: none; }
  .admin-workspace-shell .admin-product-sidebar .admin-product-nav .product-nav-item { width: auto; flex: 0 0 auto; min-height: 42px; padding: 0 12px; }
  .admin-workspace-shell .admin-product-sidebar button.sidebar-logout { position: absolute; top: 18px; right: 16px; width: auto; min-height: 36px; margin: 0; font-size: 12px; }
  .admin-workspace-shell .workspace-main { margin-left: 0; padding: 20px 14px 36px; }
  .admin-workspace-shell .workspace-toolbar { margin: -20px -14px 20px; padding: 16px 14px; }
}
@media (max-width: 760px) {
  .user-workspace-shell .workspace-main { padding: 16px 12px 34px; display: flex; flex-direction: column; }
  .user-toolbar { align-items: stretch; flex-direction: column; gap: 14px; }
  .user-brand-line { justify-content: space-between; }
  .user-brand-line > div:last-child { display: none; }
  .user-toolbar .toolbar-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .service-status-chip { margin-right: auto; font-size: 11px; }
  .user-toolbar .toolbar-actions button { padding: 8px 10px; font-size: 12px; }
  .user-hero { align-items: flex-start; flex-direction: column; padding: 18px; }
  .hero-copy h2 { font-size: 21px; }
  .hero-actions { display: none; }
  .user-metric, .user-metric:nth-child(n) { padding: 14px; }
  .user-metric .metric-icon { top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 8px; }
  .metric-icon svg { width: 16px; height: 16px; }
  .user-metric span { font-size: 11px; }
  .user-metric em { display: none; }
  .scan-workspace, .account-panel, .task-workspace { padding: 17px; }
  .scan-workspace .panel-head, .task-workspace .panel-head { flex-direction: row; align-items: center; }
  .scan-workspace .step-badge { display: none; }
  .scan-workspace .disabled-field { display: none; }
  .scan-workspace .mode-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scan-workspace .mode-choice { align-items: center; flex-direction: row; min-height: 46px; }
  .task-workspace .result-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; }
  .task-workspace .result-grid strong { font-size: 13px; font-weight: 600; }
  .task-workspace .item-head { display: flex; align-items: flex-start; justify-content: space-between; }
  .task-workspace .item-head > div { min-width: 0; }
  .task-workspace .item-head .pill { flex: 0 0 auto; }
  .page-jump { align-items: center; }
  .page-jump label { white-space: nowrap; }
  .page-jump input { min-width: 0; flex: 0 1 72px; }
  .page-jump button { width: auto; flex: 0 0 auto; }
  .user-workspace { display: contents; }
  .user-workspace-shell .workspace-main > *, .user-workspace > * { width: 100%; }
  .user-toolbar { order: 0; }
  .user-hero { order: 1; }
  .user-metrics { order: 2; }
  .scan-panel { order: 3; margin-bottom: 12px; }
  .task-workspace { order: 4; margin-bottom: 12px; }
  .account-panel { order: 5; }
  .viewer-modal { width: 100%; max-height: calc(100dvh - 18px); padding: 13px; border-radius: 12px; }
  .viewer-modal .modal-head { align-items: flex-start; }
  .viewer-modal .modal-head h2 { font-size: 17px; }
  .viewer-stats { gap: 7px; }
  .viewer-stats .admin-stat { padding: 10px; }
  .viewer-filters { gap: 7px; padding: 9px; }
  .viewer-player > summary { min-height: 58px; padding: 11px 12px; }
  .viewer-player-body { padding: 0 12px 14px; }
  .viewer-profile-strip { gap: 7px; }
  .viewer-profile-strip > div { padding: 8px; }
  body.has-workspace #notice, #notice { top: 12px; right: 16px; width: calc(100vw - 32px); }
}
@media (max-width: 520px) {
  .viewer-filter-panel > summary > span { display: none; }
  .personal-result-card.result-card { padding: 10px; }
  .task-workspace .personal-result-card > .result-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; }
  .personal-result-card .result-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .personal-result-card [data-result-section="出发 / 到达时间"] .result-lines,
  .personal-result-card .result-section.wide .result-lines { grid-template-columns: 1fr; }
  .personal-result-card .result-section:nth-child(2), .personal-result-card .result-section:nth-child(4) { grid-column: 1 / -1; }
  .personal-result-card .result-section:nth-child(1) { order: 0; }
  .personal-result-card .result-section:nth-child(3) { order: 1; }
  .personal-result-card .result-section:nth-child(2) { order: 2; }
  .personal-result-card .result-section:nth-child(n+4) { order: 3; }
  .viewer-queues { grid-template-columns: 1fr; gap: 8px; }
  .queue-fact { grid-template-columns: 54px minmax(0,1fr); gap: 6px; }
  .queue-fact dd { font-size: 12px; }
  .viewer-player > summary { padding: 10px 10px 0; }
  .viewer-player-main strong { font-size: 14px; }
  .viewer-player-main .cell-muted { font-size: 10px; }
  .viewer-player-header .pill { font-size: 10px; padding: 5px 7px; }
  .viewer-player-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 10px; padding: 7px 9px; margin: 8px 0; }
  .viewer-player-facts > span { display: flex; align-items: baseline; gap: 5px; }
  .viewer-player-facts strong { margin-top: 0; font-size: 12px; }
  .viewer-stats { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
  .viewer-stats .admin-stat { padding: 7px; }
  .viewer-stats .admin-stat span { font-size: 10px; }
  .viewer-stats .admin-stat em { display: none; }
  .viewer-player-facts > span:nth-child(odd) { border: 0; padding-left: 0; }
  .viewer-player-footer { align-items: flex-start; flex-direction: column; gap: 9px; }
  .queue-toggle { align-self: flex-end; }
  .viewer-player-body { padding: 0 11px 13px; }
  .viewer-modal .modal-head button { width: auto; flex: 0 0 auto; }
  .auth-shell, .auth-shell.auth-simple-shell, .auth-shell.admin-auth-shell { width: 100%; margin: 20px auto; border-radius: 13px; }
  .auth-forms, .auth-shell .auth-forms { padding: 24px 20px 28px; }
  .auth-brand-row { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 26px; }
  .auth-tabs { margin-bottom: 23px; }
  .auth-form-block h2 { font-size: 22px; }
  .auth-form-block input { min-height: 46px; }
  .user-metrics { gap: 10px; }
  .user-metric strong { margin-top: 8px; font-size: 23px; }
  .form-grid label { min-width: 0; }
}

/* Reference-style finish: white navigation, cool light canvas, fine borders, and
   small pastel accents. This block intentionally comes last so legacy theme
   declarations above cannot bring back the old yellow or purple palette. */
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #172033;
  --muted: #7b8494;
  --line: #e7eaf0;
  --accent: #2f6fed;
  --accent-2: #2458c7;
  --accent-soft: #edf4ff;
  --warn: #e6a23c;
  --bad: #d97886;
  --ok: #20a27e;
  --shadow: 0 1px 2px rgba(23, 32, 51, .03);
}

body,
body.has-workspace { color: var(--text); background: var(--bg); }

body.has-workspace .app-shell { width: 100%; max-width: none; margin: 0; padding: 0; }
body.has-workspace .topbar,
body.has-workspace .status-strip { display: none; }

button,
.link-button { border-radius: 7px; box-shadow: none; }
button:not(.secondary):not(.auth-tab):not(.text-button),
.link-button:not(.secondary) {
  border: 1px solid #cfe0ff;
  color: #2864d1;
  background: #eff5ff;
  box-shadow: none;
}
button:not(.secondary):not(.auth-tab):not(.text-button):hover,
.link-button:not(.secondary):hover { border-color: #b9d0fb; background: #e4efff; }
button.secondary,
.link-button.secondary { border-color: #e1e6ee; color: #617087; background: #fff; }
button.secondary:hover,
.link-button.secondary:hover { border-color: #bfd2f1; color: #2f6fed; background: #f7faff; }
button.warn:not(.secondary) { border-color: #f1d6da; color: #b25c6a; background: #fff7f8; }
button:focus-visible,
a:focus-visible,
summary:focus-visible { outline: 2px solid #8db5f4; outline-offset: 3px; }

input,
select,
textarea { border-color: #dfe5ed; border-radius: 7px; color: var(--text); background: #fff; }
input:focus,
select:focus,
textarea:focus { border-color: #8eb3ef; box-shadow: 0 0 0 3px #edf4ff; }
input::placeholder,
textarea::placeholder { color: #a5adba; }

/* Admin shell */
.admin-workspace-shell { min-height: 100vh; background: var(--bg); }
.admin-workspace-shell .admin-product-sidebar {
  width: 256px;
  padding: 21px 14px 16px;
  border-right: 1px solid #e5e8ee;
  background: #fff;
}
.admin-workspace-shell .admin-product-sidebar .product-brand {
  height: auto;
  min-height: 50px;
  padding: 0 10px 21px;
  border-bottom: 1px solid #edf0f4;
}
.admin-workspace-shell .admin-product-sidebar .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #3e79ce;
  background: #edf4ff;
  box-shadow: none;
}
.admin-workspace-shell .admin-product-sidebar .product-brand strong { color: #172033; font-size: 16px; font-weight: 700; }
.admin-workspace-shell .admin-product-sidebar .product-brand small { margin-top: 3px; color: #a0a8b5; font-size: 10px; }
.admin-workspace-shell .admin-product-nav { display: block; margin-top: 4px; }
.admin-workspace-shell .admin-nav-label {
  margin: 24px 12px 8px;
  color: #9aa3b1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
}
.admin-workspace-shell .admin-nav-items { display: grid; gap: 3px; }
.admin-workspace-shell .admin-product-sidebar .admin-product-nav .product-nav-item {
  min-height: 43px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #737e8e;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}
.admin-workspace-shell .admin-product-sidebar .admin-product-nav .product-nav-item:hover {
  color: #43516a;
  background: #f7f9fc;
}
.admin-workspace-shell .admin-product-sidebar .admin-product-nav .product-nav-item.active {
  border-color: #d7e6ff;
  color: #2867d7;
  background: #edf4ff;
}
.admin-workspace-shell .admin-product-sidebar .nav-icon-svg { width: 19px; height: 19px; }
.admin-workspace-shell .sidebar-status {
  margin: 18px 10px 0;
  padding: 14px 0;
  border-top: 1px solid #edf0f4;
  border-radius: 0;
  background: transparent;
}
.admin-workspace-shell .sidebar-status strong { color: #66748a; font-size: 12px; font-weight: 500; }
.admin-workspace-shell .sidebar-status small { color: #a0a8b5; }
.admin-workspace-shell .sidebar-logout {
  min-height: 42px;
  margin-top: 3px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #7d8795;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}
.admin-workspace-shell .sidebar-logout:hover { color: #b35e6b; background: #fff6f7; }
.admin-workspace-shell .workspace-main {
  min-height: 100vh;
  margin-left: 256px;
  padding: 0 clamp(20px, 3.2vw, 52px) 56px;
  background: var(--bg);
}
.admin-workspace-shell .workspace-toolbar {
  max-width: none;
  margin: 0 clamp(-52px, -3.2vw, -20px) 28px;
  padding: 19px clamp(20px, 3.2vw, 52px) 17px;
  border-bottom: 1px solid #e6e9ef;
  background: #fff;
}
.admin-workspace-shell .workspace-toolbar h2 { color: #172033; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.admin-workspace-shell .toolbar-eyebrow { margin-bottom: 3px; color: #8994a6; font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.admin-workspace-shell .last-sync { color: #8490a2; }
.admin-workspace-shell .admin-avatar { color: #4d80cf; background: #edf4ff; }
.admin-workspace-shell .admin-section,
.admin-workspace-shell .admin-stat,
.admin-workspace-shell .admin-table-wrap,
.admin-workspace-shell .sub-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.admin-workspace-shell .admin-section { padding: 20px; }
.admin-workspace-shell .admin-section-head { padding-bottom: 15px; border-bottom: 1px solid #edf0f4; }
.admin-workspace-shell .admin-section-head h2 { color: #172033; font-size: 17px; font-weight: 700; }
.admin-workspace-shell .admin-section-head p { color: #8a95a6; }
.admin-workspace-shell .admin-stats { gap: 10px; }
.admin-workspace-shell .admin-stat { position: relative; min-height: 86px; padding: 15px 16px; overflow: hidden; }
.admin-workspace-shell .admin-stat::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #edf4ff;
}
.admin-workspace-shell .admin-stat:nth-child(2)::after { background: #eaf8f2; }
.admin-workspace-shell .admin-stat:nth-child(3)::after { background: #fff5dc; }
.admin-workspace-shell .admin-stat:nth-child(4)::after { background: #f1ecff; }
.admin-workspace-shell .admin-stat:nth-child(5)::after { background: #fff0f1; }
.admin-workspace-shell .admin-stat span { position: relative; z-index: 1; color: #7d899b; font-size: 11px; }
.admin-workspace-shell .admin-stat strong { position: relative; z-index: 1; display: block; margin-top: 7px; color: #1b2a40; font-size: 18px; font-weight: 700; }
.admin-workspace-shell .admin-stat em { position: relative; z-index: 1; display: block; margin-top: 4px; color: #9aa4b1; font-size: 10px; font-style: normal; }
.admin-workspace-shell .sub-panel { padding: 14px; }
.admin-workspace-shell .sub-panel .panel-head h3 { color: #23324a; font-size: 14px; }
.admin-workspace-shell .admin-table th { color: #8a95a6; background: #fafbfd; font-size: 11px; font-weight: 500; }
.admin-workspace-shell .admin-table td { border-color: #edf0f4; color: #44536a; font-size: 12px; }
.admin-workspace-shell .admin-table tr:hover td { background: #fbfcfe; }
.admin-workspace-shell .admin-content button:not(.secondary):not(.auth-tab):not(.text-button):not(.warn) { border-color: #cfe0ff; color: #2864d1; background: #eff5ff; }
.admin-workspace-shell .admin-content button:not(.secondary):not(.auth-tab):not(.text-button):not(.warn):hover { background: #e4efff; }

/* Customer shell */
.user-workspace-shell .workspace-main { margin-left: 0; padding: 24px clamp(14px, 4vw, 56px) 54px; background: var(--bg); }
.user-workspace-shell .user-toolbar { margin-bottom: 19px; }
.user-workspace-shell .user-toolbar .product-brand { padding-right: 18px; border-right: 1px solid #e5e9ef; }
.user-workspace-shell .user-toolbar .brand-mark { color: #3d78d0; background: #edf4ff; box-shadow: none; }
.user-workspace-shell .user-toolbar .product-brand strong { color: #172033; font-size: 15px; }
.user-workspace-shell .user-toolbar .product-brand small { color: #8f9aaa; }
.user-workspace-shell .toolbar-eyebrow { color: #8b96a7; }
.user-workspace-shell .user-toolbar h2 { color: #172033; font-size: 20px; font-weight: 700; }
.user-workspace-shell .service-status-chip { color: #1f8a73; font-size: 11px; font-weight: 600; }
.user-workspace-shell .service-status-chip i { background: #35b88b; box-shadow: 0 0 0 3px #e6f8f1; }
.user-workspace-shell .user-hero { margin-bottom: 12px; padding: 21px 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: none; }
.user-workspace-shell .hero-copy h2 { color: #172033; font-size: 24px; font-weight: 700; }
.user-workspace-shell .hero-copy p { color: #7f8b9d; }
.user-workspace-shell .user-metrics { gap: 10px; margin-bottom: 12px; }
.user-workspace-shell .user-metric,
.user-workspace-shell .user-metric:nth-child(n) { min-height: 92px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: none; }
.user-workspace-shell .user-metric span { color: #7e8999; font-size: 11px; }
.user-workspace-shell .user-metric strong { display: block; margin-top: 7px; color: #18243a; font-size: 20px; font-weight: 700; }
.user-workspace-shell .user-metric em { color: #a0a9b5; font-size: 10px; font-style: normal; }
.user-workspace-shell .user-metric .metric-icon { top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 8px; }
.user-workspace-shell .user-metric:nth-child(1) .metric-icon { color: #3977d0; background: #edf4ff; }
.user-workspace-shell .user-metric:nth-child(2) .metric-icon { color: #23a17f; background: #eaf8f2; }
.user-workspace-shell .user-metric:nth-child(3) .metric-icon { color: #6f91b5; background: #f0f5fa; }
.user-workspace-shell .user-metric:nth-child(4) .metric-icon { color: #25856c; background: #eaf8f1; }
.user-workspace-shell .user-metric.service-offline .metric-icon { color: #8a95a4; background: #f1f4f8; }
.user-workspace-shell .panel,
.user-workspace-shell .task-workspace { border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: none; }
.user-workspace-shell .scan-workspace,
.user-workspace-shell .account-panel,
.user-workspace-shell .task-workspace { padding: 19px; }
.user-workspace-shell .scan-panel { border-top: 2px solid #cfe0ff; }
.user-workspace-shell .section-kicker { color: #7f8da2; font-size: 10px; font-weight: 600; letter-spacing: .07em; }
.user-workspace-shell .panel-head h2 { color: #1c2a41; font-size: 17px; font-weight: 700; }
.user-workspace-shell .panel-head p { color: #8a95a6; }
.user-workspace-shell .step-badge { border-color: #d8e6fb; color: #5f84bb; background: #f5f9ff; }
.user-workspace-shell .primary-action { border-color: #cfe0ff; color: #2864d1; background: #eff5ff; box-shadow: none; }
.user-workspace-shell .primary-action:hover { background: #e4efff; }
.user-workspace-shell .balance-card { border-color: #e4eaf2; background: #fafbfd; }
.user-workspace-shell .balance-card strong { color: #2f6fed; }
.user-workspace-shell .task-filters { border-color: #e4e9f0; background: #fafbfd; }
.user-workspace-shell .task-workspace .item { border-color: #e3e8ef; border-radius: 9px; box-shadow: none; }
.user-workspace-shell .task-list-card.completed { border-left-color: #70c6a5; }
.user-workspace-shell .task-list-card.running { border-left-color: #8fb7ee; }
.user-workspace-shell .task-list-card.queued { border-left-color: #efc16d; }
.user-workspace-shell .task-list-card.failed { border-left-color: #e29ba4; }
.user-workspace-shell .pill.completed { color: #188466; background: #eaf8f2; }
.user-workspace-shell .pill.running { color: #3c72ba; background: #edf4ff; }
.user-workspace-shell .pill.queued { color: #a6762d; background: #fff5df; }
.user-workspace-shell .pill.failed { color: #b05c69; background: #fff0f2; }

/* Single-column login and register surface. */
.auth-shell,
.auth-shell.auth-simple-shell,
.auth-shell.admin-auth-shell {
  display: block;
  width: min(438px, calc(100vw - 28px));
  min-height: 0;
  margin: clamp(28px, 9vh, 86px) auto;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 47, 71, .06);
  overflow: hidden;
}
.auth-shell .auth-intro { display: none; }
.auth-shell .auth-forms { min-height: 0; padding: 27px 30px 31px; background: #fff; }
.auth-brand-row { margin-bottom: 27px; }
.auth-brand-row .product-brand { height: auto; padding: 0; border: 0; }
.auth-brand-row .brand-mark { color: #3d78d0; background: #edf4ff; box-shadow: none; }
.auth-brand-row .product-brand strong { color: #172033; }
.auth-brand-row .product-brand small { color: #8f99a8; }
.auth-service-status { color: #1f8a73; font-size: 11px; }
.auth-tabs { gap: 28px; margin-bottom: 25px; border-color: #e7ebf1; }
.auth-tab,
.auth-tab:hover { color: #909aaa; background: transparent; font-weight: 500; }
.auth-tab.active { color: #2f6fed; }
.auth-tab.active::after { background: #6c9aed; }
.auth-form-block h2 { color: #172033; font-size: 24px; font-weight: 700; }
.auth-form-block .item-meta { color: #8994a3; }
.auth-form-block label { color: #526177; }
.auth-form-block button[type="submit"] { min-height: 44px; }
.purchase-guide { border-color: #dbe7fb; color: #7b8aa0; background: #f6f9ff; }
.purchase-guide strong,
.text-button { color: #2f6fed; }

@media (max-width: 900px) {
  .admin-workspace-shell .admin-product-sidebar { width: 100%; padding: 14px 14px 10px; border-right: 0; border-bottom: 1px solid #e5e8ee; }
  .admin-workspace-shell .admin-product-sidebar .product-brand { min-height: 38px; padding: 0 3px 5px; border: 0; }
  .admin-workspace-shell .admin-product-nav { display: flex; gap: 5px; overflow-x: auto; margin-top: 9px; padding-bottom: 2px; scrollbar-width: none; }
  .admin-workspace-shell .admin-product-nav::-webkit-scrollbar { display: none; }
  .admin-workspace-shell .admin-nav-group,
  .admin-workspace-shell .admin-nav-items { display: contents; }
  .admin-workspace-shell .admin-nav-label,
  .admin-workspace-shell .sidebar-status,
  .admin-workspace-shell .sidebar-spacer { display: none; }
  .admin-workspace-shell .admin-product-sidebar .admin-product-nav .product-nav-item { width: auto; flex: 0 0 auto; min-height: 37px; padding: 0 11px; white-space: nowrap; }
  .admin-workspace-shell .sidebar-logout { position: absolute; top: 14px; right: 12px; width: auto; min-height: 34px; margin: 0; padding: 0 9px; font-size: 12px; }
  .admin-workspace-shell .workspace-main { margin-left: 0; padding: 0 14px 36px; }
  .admin-workspace-shell .workspace-toolbar { margin: 0 -14px 20px; padding: 16px 14px 14px; }
}
@media (max-width: 700px) {
  .admin-workspace-shell .workspace-toolbar h2 { font-size: 19px; }
  .admin-workspace-shell .admin-section { padding: 15px; }
  .admin-workspace-shell .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-workspace-shell .admin-stat { min-height: 80px; padding: 13px; }
  .admin-workspace-shell .admin-stat strong { font-size: 17px; }
  .admin-workspace-shell .admin-two-col { grid-template-columns: 1fr; }
  .user-workspace-shell .workspace-main { padding: 15px 12px 32px; }
  .user-workspace-shell .user-toolbar { margin-bottom: 14px; }
  .user-workspace-shell .user-hero { padding: 17px; }
  .user-workspace-shell .hero-copy h2 { font-size: 21px; }
  .user-workspace-shell .user-metrics { gap: 8px; }
  .user-workspace-shell .user-metric,
  .user-workspace-shell .user-metric:nth-child(n) { min-height: 82px; padding: 13px; }
  .user-workspace-shell .user-metric strong { font-size: 19px; }
  .auth-shell,
  .auth-shell.auth-simple-shell,
  .auth-shell.admin-auth-shell { width: calc(100vw - 20px); margin: 15px auto; border-radius: 11px; }
  .auth-shell .auth-forms { padding: 23px 18px 27px; }
  .auth-brand-row { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 23px; }
  .auth-form-block h2 { font-size: 22px; }
}
