/* Hallmark · macrostructure: Workbench · genre: modern-minimal · theme: Cobalt · tone: calm utility · anchor hue: 260 · nav: N3 side-rail · footer: Ft2 · pre-emit critique: P4 H5 E4 S5 R5 V4 */
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; min-width: 0; }
body { background: var(--color-paper); color: var(--color-ink-2); font: 400 var(--text-base)/1.65 var(--font-body); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: var(--color-transparent); }
a { color: var(--color-accent); text-underline-offset: 4px; overflow-wrap: anywhere; }
button, .button, nav a { white-space: nowrap; }
button { cursor: pointer; }
button, .button { border: var(--rule-width) solid var(--color-rule-2); border-radius: var(--radius-sm); color: var(--color-ink); background: var(--color-surface); min-height: 44px; padding: 8px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: var(--text-sm); font-weight: 600; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
button:active, .button:active { transform: translateY(1px); }
button.primary, .button.primary { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
button.danger { color: var(--color-error); }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .55; }
button[aria-busy="true"] { cursor: progress; }
button[data-success="true"] { border-color: var(--color-success); color: var(--color-success); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
input, textarea, select { width: 100%; min-width: 0; min-height: 44px; border: var(--rule-width) solid var(--color-rule-2); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-ink); padding: 9px 12px; }
input::placeholder, textarea::placeholder { color: var(--color-muted); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--color-error); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--color-accent); flex: 0 0 18px; }
textarea { min-height: 112px; resize: vertical; }
label { display: block; color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; margin-bottom: 6px; }
.field { min-width: 0; margin-block: 0 16px; }
.field .help { display: block; margin-top: 5px; min-height: 1.65em; }
.help, .muted { color: var(--color-muted); font-size: var(--text-sm); }
h1, h2, h3 { font-family: var(--font-display); color: var(--color-ink); font-style: normal; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
h1 { margin: 0; font-size: clamp(1.65rem, 2.3vw, 2rem); line-height: 1.35; letter-spacing: -.025em; }
h2 { margin: 0 0 16px; font-size: var(--text-lg); line-height: 1.45; }
h3 { margin: 0 0 8px; font-size: var(--text-base); }
p { margin: 0 0 12px; }
small { font-size: var(--text-xs); }
[hidden] { display: none !important; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -100px; z-index: 100; padding: 10px; background: var(--color-surface); color: var(--color-ink); }
.skip-link:focus { top: 8px; }
.app-shell { min-height: 100dvh; }
.sidebar { display: none; background: var(--color-surface); color: var(--color-ink); border-inline-end: var(--rule-width) solid var(--color-rule); }
.sidebar.open { display: flex; position: fixed; inset: 60px 0 0; z-index: 25; flex-direction: column; padding: 20px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--color-ink); font-weight: 600; text-decoration: none; margin-bottom: 36px; font-size: var(--text-base); }
.brand small { display: block; color: var(--color-muted); font: 10px/2 var(--font-mono); letter-spacing: .05em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; position: relative; font: 600 30px/1 var(--font-display); letter-spacing: -.15em; padding-inline-end: 5px; }
.brand-mark span { color: var(--color-accent); position: absolute; right: 0; top: -5px; font-size: 35px; }
nav { display: grid; gap: 5px; }
nav a { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--color-muted); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
nav a[aria-current="page"] { background: var(--color-accent-soft); color: var(--color-accent); }
.nav-icon { width: 19px; height: 19px; display: inline-flex; flex: 0 0 19px; }
.nav-icon svg { width: 100%; height: 100%; }
.sidebar-bottom { margin-top: auto; padding: 28px 12px 0; font-size: var(--text-sm); }
.sidebar-bottom p { margin-bottom: 5px; }
.sidebar-bottom .muted { font-size: var(--text-xs); }
.sidebar-bottom .text-button { margin-top: 16px; }
.status-dot { width: 6px; height: 6px; display: inline-block; margin-inline-end: 6px; border-radius: 100%; background: var(--color-success); }
.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: 60px; border-bottom: var(--rule-width) solid var(--color-rule); background: var(--color-surface); color: var(--color-muted); display: flex; align-items: center; gap: 12px; padding-inline: 16px; }
.topbar p { margin: 0; font-size: var(--text-xs); }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; }
.clock { display: none; font: 11px var(--font-mono); }
.icon-button { padding: 0; width: 44px; border-color: var(--color-transparent); background: var(--color-transparent); color: var(--color-muted); font-size: 21px; }
main { padding: 28px 16px 40px; max-width: 1480px; margin-inline: auto; }
.page-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.page-head p { color: var(--color-muted); font-size: var(--text-sm); margin: 8px 0 0; max-width: 68ch; }
.eyebrow { font: 10px/1.5 var(--font-mono); color: var(--color-muted); letter-spacing: .12em; margin-bottom: 9px; }
.page-actions, .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.panel { background: var(--color-surface); color: var(--color-ink-2); border: var(--rule-width) solid var(--color-rule); border-radius: var(--radius-sm); padding: 20px; min-width: 0; }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.panel-head h2 { margin: 0; }
.panel-head p { margin: 4px 0 0; }
.grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
.grid > .panel + .panel { margin-top: 0; }
.metrics-strip { border: var(--rule-width) solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-ink); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); margin-bottom: 24px; }
.metric { padding: 18px 16px; min-width: 0; border-bottom: var(--rule-width) solid var(--color-rule); }
.metric:nth-child(odd) { border-inline-end: var(--rule-width) solid var(--color-rule); }
.metric:nth-last-child(-n+2) { border-bottom: 0; }
.metric-label { font-size: var(--text-xs); color: var(--color-muted); display: block; margin-bottom: 12px; }
.metric-value { font-family: var(--font-mono); font-size: clamp(1.35rem,2.4vw,1.75rem); line-height: 1.2; font-weight: 500; letter-spacing: -.04em; display: block; margin-bottom: 8px; }
.metric-value small { font-size: var(--text-xs); font-weight: 400; letter-spacing: 0; }
.metric-note { color: var(--color-muted); font-size: 11px; display: block; }
.chart { width: 100%; display: block; height: 190px; overflow: visible; }
.chart-grid { stroke: var(--color-rule); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--color-accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart-line.secondary { stroke: var(--color-chart-secondary); }
.chart-label { fill: var(--color-muted); font: 11px var(--font-mono); }
.chart-legend { display: flex; gap: 18px; font-size: var(--text-xs); color: var(--color-muted); margin-block: 12px 0; flex-wrap: wrap; }
.legend-dot { width: 7px; height: 7px; display: inline-block; background: var(--color-accent); margin-inline-end: 6px; border-radius: 2px; }
.legend-dot.secondary { background: var(--color-chart-secondary); }
.period { display: inline-flex; gap: 3px; }
.period button { min-height: 32px; padding: 5px 10px; border-color: var(--color-transparent); background: var(--color-transparent); color: var(--color-muted); font-size: var(--text-xs); }
.period button[aria-pressed="true"] { background: var(--color-paper-2); color: var(--color-ink); }
.stat-row { display: flex; flex-direction: column; gap: 4px; padding-block: 12px; border-bottom: var(--rule-width) solid var(--color-rule); }
.stat-row:last-child { border-bottom: 0; }
.stat-row dt { color: var(--color-muted); font-size: var(--text-sm); }
.stat-row dd { margin: 0; color: var(--color-ink); font-size: var(--text-sm); overflow-wrap: anywhere; }
dl { margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 4px; background: var(--color-paper-2); color: var(--color-muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.pill.success { background: var(--color-success-bg); color: var(--color-success); }
.pill.warning { background: var(--color-warning-bg); color: var(--color-warning); }
.pill.error { background: var(--color-error-bg); color: var(--color-error); }
.traffic-number { font: 500 clamp(1.75rem,3vw,2.25rem)/1.25 var(--font-mono); color: var(--color-ink); letter-spacing: -.04em; margin: 24px 0 14px; }
.traffic-number span { color: var(--color-muted); font-size: .55em; letter-spacing: -.02em; }
.meter { height: 6px; border-radius: 5px; overflow: clip; background: var(--color-paper-3); margin-block: 14px 12px; }
.meter > span { display: block; height: 100%; background: var(--color-accent); border-radius: inherit; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--color-muted); font-size: var(--text-xs); }
.detail-list { display: grid; gap: 0; }
.detail-list .item { padding: 16px 0; border-bottom: var(--rule-width) solid var(--color-rule); min-width: 0; }
.detail-list .item:first-child { padding-top: 0; }
.detail-list .item:last-child { padding-bottom: 0; border-bottom: 0; }
.item-title { color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; }
.item-title a { color: inherit; text-decoration: none; }
.item-meta { font-size: var(--text-xs); color: var(--color-muted); margin: 5px 0 0; }
.item-content { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--text-sm); margin-top: 12px; }
.timeline { border-inline-start: var(--rule-width) solid var(--color-rule); padding-inline-start: 22px; margin-inline-start: 5px; }
.timeline article { position: relative; padding-bottom: 30px; }
.timeline article:last-child { padding-bottom: 0; }
.timeline article::before { content: ""; position: absolute; inset-inline-start: -27px; top: 7px; width: 9px; height: 9px; background: var(--color-surface); border: 2px solid var(--color-rule-2); border-radius: 50%; }
.timeline article.confirmed::before { border-color: var(--color-accent); }
.timeline time { display: block; font: 11px var(--font-mono); color: var(--color-muted); margin-bottom: 9px; }
.timeline h3 { font-size: var(--text-base); margin-block: 8px; }
.timeline .item-content { line-height: 1.8; }
.notice { padding: 12px 14px; border: var(--rule-width) solid var(--color-rule); border-inline-start: 3px solid var(--color-rule-2); border-radius: 3px; font-size: var(--text-sm); background: var(--color-paper-2); color: var(--color-ink-2); margin-bottom: 20px; overflow-wrap: anywhere; }
.notice.warning { background: var(--color-warning-bg); border-color: var(--color-warning); color: var(--color-warning); }
.notice.error { background: var(--color-error-bg); border-color: var(--color-error); color: var(--color-error); }
.notice.success { background: var(--color-success-bg); border-color: var(--color-success); color: var(--color-success); }
.notice p:last-child { margin-bottom: 0; }
.empty { text-align: center; padding: 38px 10px; color: var(--color-muted); }
.empty-symbol { font: 30px/1 var(--font-mono); color: var(--color-rule-2); display: block; margin-bottom: 14px; }
.empty p { font-size: var(--text-sm); }
.empty .actions { justify-content: center; margin-top: 16px; }
.skeleton { height: 14px; background: var(--color-paper-3); border-radius: 3px; margin-block: 14px; }
.skeleton.wide { width: 80%; } .skeleton.short { width: 40%; }
.form-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0 20px; }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--text-sm); margin-bottom: 4px; cursor: pointer; }
.check-line .help { display: block; font-weight: 400; }
.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-block: 18px; border-bottom: var(--rule-width) solid var(--color-rule); }
.switch-row label { margin: 0; }
.switch-row p { margin: 4px 0 0; }
.toggle { appearance: none; width: 36px !important; height: 22px !important; flex: 0 0 36px !important; border: 0; border-radius: 20px; position: relative; background: var(--color-rule-2); cursor: pointer; padding: 0; margin-top: 3px; }
.toggle::after { content:""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: var(--color-surface); transition: transform var(--dur-short) var(--ease-out); }
.toggle:checked { background: var(--color-accent); }
.toggle:checked::after { transform: translateX(14px); background: var(--color-accent-ink); }
.weekdays { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.weekdays .check-line { min-width: 48px; }
.form-status { min-height: 1.65em; font-size: var(--text-sm); color: var(--color-success); margin: 10px 0 0; }
.form-status.error { color: var(--color-error); }
.section-gap { margin-top: 24px; }
.text-button { padding-inline: 0; border: 0; background: var(--color-transparent); color: var(--color-accent); min-height: 44px; justify-content: flex-start; }
.mono { font-family: var(--font-mono); font-size: var(--text-sm); }
.url-row { display: flex; flex-direction: column; gap: 8px; }
.url-row input { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); }
.source-row { display: grid; gap: 8px; padding: 14px 0; border-bottom: var(--rule-width) solid var(--color-rule); }
.source-row:last-child { border-bottom: 0; }
.source-row .field { margin: 0; }
.source-kind { color: var(--color-muted); font-size: var(--text-xs); font-family: var(--font-mono); }
.job { padding: 16px 0; border-bottom: var(--rule-width) solid var(--color-rule); }
.job:last-child { border-bottom: 0; }
.job-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.job .meter { height: 3px; }
.job-log { white-space: pre-wrap; max-height: 220px; overflow-y: auto; overflow-wrap: anywhere; font: 11px/1.9 var(--font-mono); background: var(--color-paper-2); color: var(--color-muted); border: var(--rule-width) solid var(--color-rule); padding: 12px; border-radius: var(--radius-sm); }
details { margin-top: 10px; }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--color-muted); font-size: var(--text-xs); }
summary::before { content: "+"; margin-inline-end: 8px; font-family: var(--font-mono); }
details[open] summary::before { content: "−"; }
.report-row { display: flex; flex-direction: column; gap: 12px; }
.report-row p { margin: 4px 0 0; }
.report-row .actions { flex: 0 0 auto; }
.report-frame { width: 100%; min-height: 65dvh; border: var(--rule-width) solid var(--color-rule); background: var(--color-surface); border-radius: var(--radius-sm); }
.bot-map { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 24px 0; }
.bot-map span { padding: 12px 18px; border: var(--rule-width) solid var(--color-rule); border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--color-muted); }
.bot-map i { color: var(--color-rule-2); font-style: normal; }
.footer { max-width: 1480px; margin-inline: auto; padding: 20px 16px; border-top: var(--rule-width) solid var(--color-rule); display: flex; flex-direction: column; gap: 4px; font-size: 10px; color: var(--color-muted); }
.toast-region { position: fixed; bottom: 20px; right: 16px; left: 16px; display: grid; gap: 8px; z-index: 100; pointer-events: none; }
.toast { background: var(--color-surface); color: var(--color-ink); border: var(--rule-width) solid var(--color-rule-2); border-radius: var(--radius-sm); padding: 14px 16px; pointer-events: auto; font-size: var(--text-sm); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toast.error { border-color: var(--color-error); color: var(--color-error); }
.toast button { min-height: 28px; min-width: 28px; width: 28px; font-size: 18px; }
dialog { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: min(90dvh,900px); width: calc(100% - 32px); max-width: 900px; border: var(--rule-width) solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-ink-2); padding: 20px; overflow-y: auto; }
dialog::backdrop { background: var(--color-overlay); }
.dialog-top { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dialog-top h2 { margin: 0; }
.dialog-top .icon-button { flex: 0 0 44px; }
.auth-shell { min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card .brand { margin-bottom: 38px; }
.auth-card h1 { font-size: var(--text-2xl); margin-bottom: 10px; }
.auth-card .auth-intro { color: var(--color-muted); font-size: var(--text-sm); margin-bottom: 28px; }
.auth-card form { background: var(--color-surface); color: var(--color-ink); border: var(--rule-width) solid var(--color-rule); border-radius: var(--radius-md); padding: 24px; }
.auth-card .primary { width: 100%; }
.auth-card .auth-footer { color: var(--color-muted); font-size: var(--text-xs); margin-top: 24px; text-align: center; }
.secret { padding: 16px; font-family: var(--font-mono); letter-spacing: .06em; overflow-wrap: anywhere; background: var(--color-paper-2); color: var(--color-ink); border: var(--rule-width) solid var(--color-rule); margin-bottom: 12px; }
.recovery-codes { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; padding: 16px; font-family: var(--font-mono); font-size: 12px; background: var(--color-paper-2); color: var(--color-ink); border: var(--rule-width) solid var(--color-rule); }
.enrollment-qr { display: block; max-width: 100%; height: auto; margin: 0 auto 20px; padding: 8px; background: var(--color-qr-paper); }
.noscript { text-align: center; padding: 60px 20px; }
@media (hover: hover) and (pointer: fine) { button:hover:not(:disabled), .button:hover { background: var(--color-paper-2); color: var(--color-ink); } button.primary:hover:not(:disabled), .button.primary:hover { opacity: .9; background: var(--color-accent); color: var(--color-accent-ink); } nav a:hover { color: var(--color-ink); background: var(--color-paper-2); } input:hover:not(:disabled), textarea:hover:not(:disabled), select:hover:not(:disabled) { background: var(--color-paper-2); color: var(--color-ink); } a:hover { text-decoration: underline; } }
@media (min-width: 40rem) { main { padding: 36px 28px 48px; } .topbar { padding-inline: 28px; } .clock { display: inline; } .page-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } .page-actions { flex: 0 0 auto; } .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .form-grid .full { grid-column: 1 / -1; } .stat-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 18px; } .stat-row dd { text-align: end; } .panel-head { flex-direction: row; align-items: flex-start; justify-content: space-between; } .url-row { flex-direction: row; } .url-row input { flex: 1; } .report-row { flex-direction: row; justify-content: space-between; align-items: center; } .footer { flex-direction: row; justify-content: space-between; padding-inline: 28px; } .toast-region { left: auto; width: 380px; } .source-row { grid-template-columns: minmax(0,1fr) auto; } }
@media (min-width: 60rem) { .app-shell { display: grid; grid-template-columns: 220px minmax(0,1fr); } .sidebar, .sidebar.open { display: flex; position: sticky; top: 0; inset: auto; height: 100dvh; flex-direction: column; padding: 28px 16px 24px; z-index: 35; } .menu-button { display: none; } .topbar { height: 64px; } main { padding: 36px 32px 48px; } .metrics-strip { grid-template-columns: repeat(4,minmax(0,1fr)); } .metric { border-bottom: 0; padding: 24px; } .metric:not(:last-child) { border-inline-end: var(--rule-width) solid var(--color-rule); } .grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); } .grid.main-side { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); } .panel { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
