:root {
  color-scheme: light;
  --ink: #282427;
  --muted: #756d70;
  --subtle: #7b7077;
  --accent: #713749;
  --accent-hover: #5b293a;
  --tint: #f3e9ed;
  --line: #e9e4e4;
  --control-line: #ded7d9;
  --surface: #fff;
  --bg: #f6f4f3;
  --soft: #f4f1f1;
  --green: #436a58;
  --radius: 14px;
  --shadow-panel: 0 12px 45px -20px #3b24332a, 0 2px 8px -5px #3b24331a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
button, a, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #b67f92; outline-offset: 3px;
}
::selection { background: #ead4dd; color: #432735; }
input, textarea { caret-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #756d70; opacity: 1; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar {
  height: 76px; padding: 0 42px; display: flex; align-items: center; justify-content: space-between;
  background: #fcfbfa; border-bottom: 1px solid var(--line); gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 650; letter-spacing: -.6px; white-space: nowrap; }
.brand > svg { width: 33px; height: 33px; color: var(--accent); }
.brand-light { font-weight: 450; color: #645860; }
.top-right { display: flex; align-items: center; gap: 18px; }
.sample-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.sample-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #aa8c99; }
.profile { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ece5e7; color: #674e59; font-size: 10px; font-weight: 650; border: 3px solid #faf8f7; outline: 1px solid #e9e2e4; }
.language-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 3px 0; font-size: 10px; white-space: nowrap; color: var(--muted); }
.language-toggle > span:first-child { color: var(--accent); font-weight: 600; }
.language-toggle[aria-checked=true] > span:first-child { color: var(--muted); font-weight: 400; }
.language-toggle[aria-checked=true] > span:last-child { color: var(--accent); font-weight: 600; }
.switch-track { display: inline-flex; align-items: center; width: 29px; height: 17px; border-radius: 20px; background: #d9d0d5; padding: 2px; transition: background .18s; }
.switch-track > span { width: 13px; height: 13px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #30252e22; transition: transform .18s; }
.language-toggle[aria-checked=true] .switch-track { background: var(--accent); }
.language-toggle[aria-checked=true] .switch-track > span { transform: translateX(12px); }
#view-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; background: white; border: 1px solid var(--control-line); border-radius: 7px; min-height: 33px; padding: 5px 11px; color: #55444e; white-space: nowrap; }
#view-toggle:hover { background: var(--soft); border-color: #cbbcc4; }
#view-toggle > svg { width: 13px; height: 13px; }
main { max-width: 1500px; margin: 0 auto; padding: 34px 42px 22px; }
body:not(.guided) main { display: grid; grid-template-columns: 172px minmax(0,1fr); column-gap: 32px; align-items: start; }
body:not(.guided) main > :not(.admin-nav) { grid-column: 2; min-width: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 10px; }
.page-heading h1 { font-size: 28px; letter-spacing: -.85px; font-weight: 620; line-height: 1.3; margin: 0 0 7px; }
.page-heading p { font-size: 12px; color: var(--muted); max-width: 55ch; line-height: 1.8; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 8px; min-height: 42px; padding: 10px 16px; font-weight: 550; font-size: 12px; line-height: 1.5; transition: background .16s, border-color .16s, box-shadow .16s, transform .16s; }
.primary { background: var(--accent); color: #fff; box-shadow: inset 0 1px #ffffff15, 0 3px 7px -4px #58293ba6; }
.primary:hover:not(:disabled) { background: var(--accent-hover); box-shadow: inset 0 1px #ffffff15, 0 4px 9px -4px #58293b8f; }
.primary:active:not(:disabled), .secondary:active:not(:disabled) { transform: translateY(1px); }
.secondary { background: white; border: 1px solid var(--control-line); color: #53454d; }
.secondary:hover:not(:disabled) { background: #f8f5f6; border-color: #c6b7bf; }
.scan-button { min-height: 40px; padding: 10px 15px; font-size: 12px; flex-shrink: 0; }
.scan-button svg { width: 16px; height: 16px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 5px 0; min-height: 32px; }
.text-button strong { color: var(--ink); font-weight: 550; }
.text-button:hover { color: var(--accent); }
.text-button svg { width: 13px; height: 13px; }
.admin-nav { grid-column: 1; grid-row: 1 / span 12; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 28px; align-self: start; padding: 4px 10px 0 0; }
.admin-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-align: left; border-radius: 8px; min-height: 40px; color: var(--muted); font-size: 12px; }
.admin-nav button svg { width: 16px; height: 16px; stroke-width: 1.6; }
.admin-nav button:hover { color: var(--ink); background: #efecee; }
.admin-nav button[aria-current=page] { background: #ebe1e6; color: var(--accent); font-weight: 600; }
.admin-boundary { color: var(--muted); font-size: 10px; line-height: 1.8; margin: 0 0 16px; }
.context-strip { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clock { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.clock strong { font-weight: 500; }
.clock > span:last-child { color: var(--muted); font-size: 10px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #9a8190; display: inline-block; }
.context-strip .text-button { font-size: 11px; }
.scan-summary { display: flex; align-items: center; gap: 10px; padding: 17px 0; margin-bottom: 2px; }
.summary-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--accent); background: #eee4e9; flex-shrink: 0; }
.summary-icon svg { width: 16px; height: 16px; }
.scan-summary strong { font-size: 13px; font-weight: 600; }
.scan-summary p { font-size: 11px; margin-top: 2px; color: var(--muted); }
.summary-note { margin-left: auto; font-size: 10px; color: var(--muted); white-space: nowrap; }
.workspace { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; min-height: 650px; align-items: stretch; }
.queue-panel { min-width: 0; display: flex; flex-direction: column; }
.queue-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 20px; height: 61px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.tabs { display: flex; align-items: stretch; height: 100%; gap: 17px; white-space: nowrap; }
.tabs button { position: relative; color: var(--muted); font-size: 12px; padding: 0; font-weight: 500; }
.tabs button[aria-selected=true] { color: var(--accent); font-weight: 600; }
.tabs button[aria-selected=true]::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: -1px; background: var(--accent); }
.tabs button > span:not(.tab-label) { font-size: 10px; padding: 2px 5px; background: var(--soft); border-radius: 4px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.tabs button[aria-selected=true] > span:not(.tab-label) { background: var(--tint); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0; color: var(--muted); }
.icon-button:hover { background: var(--soft); color: var(--ink); }
.icon-button svg { width: 16px; height: 16px; }
.filters { padding: 16px 20px 12px; }
.search { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: #faf8f8; border: 1px solid var(--line); border-radius: 7px; }
.search svg { width: 16px; height: 16px; color: var(--muted); }
.search input { width: 100%; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font-size: 12px; }
.filter-selects { display: flex; gap: 8px; margin-top: 10px; }
.filter-selects select { border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 6px; min-height: 32px; font-size: 11px; padding: 5px 7px; min-width: 0; max-width: 100%; }
.list-caption { display: flex; justify-content: space-between; gap: 10px; padding: 5px 20px 9px; font-size: 10px; color: var(--muted); }
.customer-list { flex: 1; }
.customer-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 17px 20px; border-top: 1px solid #f1eded; transition: background .16s; }
.customer-row:hover { background: #fcf9fa; }
.customer-row.selected { background: #f8eff3; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #efeaec; color: #7c6170; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.selected .avatar { background: #e8d6df; color: #6c354e; }
.customer-main { flex: 1; min-width: 0; }
.customer-name { font-size: 13px; font-weight: 600; line-height: 1.45; margin-bottom: 3px; display: block; }
.company { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 11px; }
.reason-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; font-size: 10px; line-height: 1.6; background: var(--soft); color: #6e626a; }
.tag.alert { background: #f0e1e8; color: #76394f; }
.tag.success { background: #eaf0ec; color: var(--green); }
.row-end { text-align: right; font-size: 10px; padding-top: 1px; min-width: 67px; max-width: 82px; }
.row-end .owner { display: block; color: var(--muted); margin-bottom: 10px; }
.row-end .unassigned { color: var(--accent); }
.duration { color: var(--accent); font-weight: 550; font-variant-numeric: tabular-nums; }
.queue-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.detail-panel { border-left: 1px solid var(--line); min-width: 0; }
.detail-header { padding: 21px 24px; display: flex; gap: 11px; align-items: center; border-bottom: 1px solid var(--line); }
.detail-header .avatar { width: 38px; height: 38px; }
.detail-heading { flex: 1; min-width: 0; }
.detail-heading h2 { font-size: 16px; margin: 0 0 3px; font-weight: 600; line-height: 1.5; }
.detail-heading p { font-size: 10px; color: var(--muted); }
.close-detail { display: none; }
.detail-body { padding: 20px 24px 23px; }
.reason-box { background: #faf3f6; border-radius: 8px; padding: 12px 14px; margin-bottom: 22px; }
.reason-box h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; font-size: 12px; color: var(--accent); font-weight: 600; }
.reason-box h3 svg { width: 14px; height: 14px; }
.reason-box p { font-size: 11px; line-height: 1.85; color: #7a5365; }
.reason-box.clear { background: #f5f2f3; }
.reason-box.clear h3, .reason-box.clear p { color: var(--muted); }
.section-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; font-weight: 600; margin: 0 0 14px; }
.section-label span { color: var(--muted); font-size: 10px; font-weight: 400; max-width: 50%; text-align: right; }
.timeline { display: flex; flex-direction: column; gap: 13px; margin-bottom: 23px; }
.message-date { color: var(--subtle); text-align: center; font-size: 10px; }
.message { max-width: 90%; align-self: flex-start; }
.message.sales { align-self: flex-end; }
.message-meta { display: flex; gap: 7px; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.message.sales .message-meta { justify-content: flex-end; }
.message-text { background: #f5f2f3; padding: 10px 12px; border-radius: 4px 10px 10px 10px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.message.sales .message-text { border-radius: 10px 4px 10px 10px; background: #f4edf1; }
.edit-form { padding-top: 19px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 11px; font-weight: 500; margin-bottom: 14px; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid var(--control-line); border-radius: 7px; background: #fff; color: var(--ink); padding: 9px 10px; line-height: 1.6; font-size: 12px; }
.field select { min-height: 39px; }
.field textarea { resize: vertical; min-height: 72px; max-height: 200px; }
.field input[type=datetime-local] { min-height: 39px; padding: 10px 6px; font-size: 10px; }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.8; margin: -4px 0 16px; }
.form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.form-note { font-size: 10px; color: var(--muted); max-width: 65%; }
.form-bottom .secondary { padding: 6px 10px; min-height: 32px; font-size: 11px; white-space: nowrap; }
.task-block { padding-top: 16px; border-top: 1px solid var(--line); }
.task-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 11px; }
.task-status strong { font-size: 12px; font-weight: 600; }
.task-actions { display: flex; gap: 8px; }
.task-actions .secondary { flex: 1; font-size: 11px; padding: 10px 8px; }
.task-actions .handle { background: #f5edf1; color: var(--accent); border-color: #e5d4de; }
.task-note { font-size: 10px; color: var(--muted); line-height: 1.8; margin-top: 10px; }
.error { color: #9a294c; font-size: 12px; line-height: 1.8; margin: 7px 0; }
.error:empty { margin: 0; }
.empty { padding: 44px 20px; text-align: center; }
.empty h3 { font-size: 16px; margin: 0 0 8px; }
.empty p { font-size: 12px; color: var(--muted); }
.empty button { margin-top: 17px; }
.detail-empty { padding: 65px 25px; text-align: center; }
.detail-empty h2 { font-size: 16px; margin-bottom: 10px; }
.detail-empty p { font-size: 12px; color: var(--muted); }
.page-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 20px; }
.page-footer p { color: var(--muted); font-size: 10px; line-height: 1.8; }
.page-footer .text-button { padding-top: 0; font-size: 10px; white-space: nowrap; }
/* The guided workspace uses a quiet progress rail rather than a large wizard frame. */
.guided main { max-width: 1160px; padding-top: 46px; }
.guided main > .page-heading, .guided main > .context-strip, .guided main > .scan-summary, .guided main > .workspace, .guided main > .admin-nav, .guided main > .admin-boundary, .guided main > .admin-report, .guided main > .activity-panel { display: none; }
.guide { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 208px minmax(0,1fr); grid-template-areas: "heading heading" "steps panel" ". clock"; column-gap: 36px; align-items: start; }
.guide-heading { grid-area: heading; text-align: left; margin-bottom: 32px; }
.guide-heading h1 { font-size: 31px; font-weight: 620; letter-spacing: -.9px; line-height: 1.35; margin: 0 0 9px; }
.guide-heading > p { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 65ch; }
.guide-progress { grid-area: steps; padding-top: 5px; }
.guide-progress ol { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; margin: 0; }
.guide-progress li { position: relative; }
.guide-progress button { width: 100%; display: flex; align-items: center; text-align: left; gap: 12px; min-height: 58px; padding: 13px 14px; border-radius: 9px; font-size: 12px; color: var(--muted); }
.guide-progress button:disabled { cursor: default; opacity: 1; }
.guide-progress button:hover:not(:disabled) { background: #eeeaec; }
.step-number { width: 27px; height: 27px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #dcd4d8; border-radius: 8px; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; color: #76636e; background: #f7f4f5; }
.current button, .current button:hover:not(:disabled) { color: var(--accent); background: #ebe0e6; font-weight: 600; }
.current .step-number { color: white; background: var(--accent); border-color: var(--accent); }
.passed .step-number { background: #eee4e9; color: var(--accent); border-color: #ddd0d7; }
.guide-panel { grid-area: panel; min-width: 0; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-panel); overflow: hidden; animation: panel-arrive .2s cubic-bezier(.16,1,.3,1); }
.guide-content { padding: 34px 36px 26px; min-height: 280px; }
.guide-content h2 { font-size: 24px; letter-spacing: -.55px; font-weight: 610; line-height: 1.45; margin: 0 0 20px; }
.guide-content h2:focus { outline: none; }
.guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px 36px; border-top: 1px solid #f0ebee; }
.guide-actions > .primary { order: 2; margin-left: auto; min-width: 190px; min-height: 45px; padding: 12px 22px; font-size: 12px; }
.guide-actions > .text-button { order: 1; font-size: 12px; }
.guide-footnote { order: 1; flex: 1; max-width: 52%; font-size: 10px; line-height: 1.8; color: var(--muted); }
.guide-clock { grid-area: clock; color: var(--muted); font-size: 10px; margin-top: 18px; line-height: 1.8; text-align: right; }
.guide-start { text-align: left; padding-top: 5px; }
.guide-start-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #f6edf2; color: var(--accent); margin: 0 0 24px; }
.guide-start-symbol svg { width: 31px; height: 31px; stroke-width: 1.3; }
.guide-start h2 { font-size: 25px; margin-bottom: 11px; }
.guide-start > p { max-width: 48ch; color: var(--muted); font-size: 13px; line-height: 1.9; }
.guide-facts { display: flex; align-items: center; gap: 28px; margin: 30px 0 17px; }
.guide-facts > span { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11px; }
.guide-facts > span + span { border-left: 1px solid var(--line); padding-left: 28px; }
.guide-facts strong { font-size: 23px; color: #46343e; font-weight: 550; letter-spacing: -.6px; }
.guide-start > .text-button { color: var(--accent); font-size: 11px; }
.guide-start > .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.guided .page-footer { max-width: 1060px; margin: 28px auto 0; padding-top: 17px; border-top: 1px solid var(--line); }
.guide-search { margin-bottom: 14px; }
.guide-search input { background: #faf8f9; min-height: 42px; font-size: 12px; }
.guide-customers { border-top: 1px solid var(--line); }
.guide-customer { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 15px 10px; border-bottom: 1px solid #eee8eb; transition: background .16s; }
.guide-customer:hover { background: #faf6f8; }
.guide-customer.selected { background: #f8f0f4; }
.guide-customer-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.guide-customer-info strong { font-size: 13px; font-weight: 600; }
.guide-customer-info > span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.guide-customer-info .guide-reasons { margin-top: 5px; font-size: 10px; color: var(--accent); line-height: 1.7; }
.guide-customer-wait { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; max-width: 86px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.choice-indicator { font-size: 10px; color: var(--accent); }
.selected .choice-indicator { font-weight: 600; }
.guide-description { color: var(--muted); font-size: 13px; line-height: 1.9; }
.guide-selected { display: flex; align-items: center; gap: 11px; margin: 0 0 20px; }
.guide-selected strong { font-size: 14px; font-weight: 600; }
.guide-selected p { font-size: 11px; color: var(--muted); margin-top: 2px; }
.guide-evidence { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 23px; }
.guide-evidence summary, .guide-optional summary { cursor: pointer; font-size: 11px; padding: 13px 0; color: var(--muted); }
.guide-evidence summary span { margin-left: 8px; color: var(--accent); font-size: 10px; }
.guide-evidence-inner > p { font-size: 12px; color: var(--accent); line-height: 1.9; margin: 0 0 14px; }
.guide-evidence-inner .field-help { font-size: 10px; color: var(--muted); }
.guide-evidence-inner .timeline { margin-bottom: 16px; }
.guide-input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control-line); border-radius: 8px; color: var(--ink); background: white; font-size: 13px; margin: 0 0 19px; }
.guide-input:hover { border-color: #c6b8c0; }
.guide-input:focus { border-color: var(--accent); }
textarea.guide-input { resize: vertical; min-height: 92px; line-height: 1.8; }
.guide-content #guide-form > .field { font-size: 12px; margin-bottom: 7px; }
.guide-optional { margin-top: -4px; }
.guide-optional .field { font-size: 11px; margin-top: 4px; }
.guide-review { margin: 0; }
.guide-review > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.guide-review dt { font-size: 12px; color: var(--muted); }
.guide-review dd { margin: 0; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.guide-review dd span { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.guide-confirm-note { font-size: 11px; color: var(--muted); line-height: 1.9; margin-top: 20px; max-width: 64ch; }
.guide-success { padding: 9px 0 7px; text-align: left; }
.completion-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #ebf2ed; color: var(--green); margin-bottom: 22px; }
.completion-mark svg { width: 24px; height: 24px; }
.guide-success h2 { font-size: 24px; }
.guide-success > p { font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.guide-success .guide-boundary { font-size: 11px; color: var(--muted); margin-top: 17px; }
/* Admin data surfaces. */
.admin-report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 25px 26px; min-width: 0; }
.report-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.report-heading h2 { font-size: 20px; font-weight: 600; letter-spacing: -.4px; margin: 0 0 7px; line-height: 1.5; }
.report-heading p { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 65ch; }
.report-heading > .secondary { font-size: 11px; min-height: 36px; padding: 9px 12px; white-space: nowrap; }
.audit-filters { display: grid; grid-template-columns: minmax(160px,1fr) minmax(120px,.4fr) minmax(180px,.7fr); gap: 10px; }
.audit-filters input, .audit-filters select { width: 100%; min-width: 0; min-height: 38px; border: 1px solid var(--control-line); border-radius: 7px; padding: 8px 10px; background: white; color: var(--ink); font-size: 11px; }
.audit-filters input { background: #faf8f9; }
.audit-summary { font-size: 10px; color: var(--muted); margin: 19px 0 12px; line-height: 1.8; }
.audit-scroll-hint { color: var(--muted); font-size: 10px; margin: 0 0 9px; }
.audit-table-scroll { overflow: auto; max-height: 560px; scrollbar-color: #d0c0c9 #f7f3f5; scrollbar-width: thin; }
.audit-table { border-collapse: collapse; width: 100%; min-width: 745px; text-align: left; font-size: 12px; }
.audit-table th { position: sticky; top: 0; z-index: 1; padding: 12px 10px; background: #f5f2f4; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 500; }
.audit-table td { padding: 16px 10px; border-bottom: 1px solid #eee8eb; vertical-align: top; font-size: 11px; line-height: 1.85; }
.audit-table tr:hover td { background: #fcfafb; }
.audit-table td strong { font-size: 12px; font-weight: 600; display: block; }
.audit-table small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.audit-table .secondary { min-height: 30px; padding: 5px 10px; font-size: 10px; }
.audit-issue { display: block; margin-bottom: 4px; font-size: 10px; color: var(--accent); }
.audit-local-note { color: var(--muted); font-size: 10px; line-height: 1.8; margin: 17px 0 0; }
.workflow-stages { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; padding: 18px 0 22px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.workflow-stages li { display: flex; flex-direction: column; gap: 6px; position: relative; }
.workflow-stages li + li { border-left: 1px solid var(--line); padding-left: 23px; }
.workflow-stages strong { font-size: 26px; font-weight: 550; color: #5b3e4d; letter-spacing: -.6px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.workflow-stages span { font-size: 11px; color: var(--muted); }
.workflow-subtitle { font-size: 13px; margin: 0 0 12px; font-weight: 600; }
.workflow-checks > div { display: grid; grid-template-columns: 1fr 35px 145px; align-items: center; gap: 15px; padding: 14px 0; border-bottom: 1px solid #eee8eb; font-size: 12px; }
.workflow-checks strong { font-weight: 550; font-variant-numeric: tabular-nums; }
.workflow-checks .flag { color: var(--accent); }
.workflow-checks .text-button { justify-self: end; color: var(--accent); font-size: 11px; }
.activity-panel { margin: 21px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.activity-panel > summary { font-size: 12px; font-weight: 550; color: var(--muted); cursor: pointer; }
.activity-panel > p { font-size: 10px; color: var(--muted); margin-top: 12px; }
.activity-panel ol { list-style: none; margin: 13px 0 0; padding: 0; }
.activity-panel li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.activity-panel li > div { flex: 1; min-width: 0; }
.activity-order { font-size: 10px; color: var(--muted); min-width: 18px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.activity-panel li strong { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.activity-panel li p { font-size: 11px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.activity-panel li time { font-size: 10px; color: var(--muted); white-space: nowrap; margin-top: 2px; }
.activity-panel li summary { font-size: 10px; color: var(--muted); cursor: pointer; margin-top: 5px; }
/* Native overlays. */
dialog { border: 0; padding: 28px; border-radius: 16px; width: calc(100% - 32px); max-width: 440px; color: var(--ink); box-shadow: 0 18px 65px #37253233; }
dialog::backdrop { background: #30202e66; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.dialog-top h2 { font-size: 20px; margin: 0; letter-spacing: -.4px; font-weight: 600; }
.dialog-top .icon-button { font-size: 24px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.9; margin-bottom: 22px; }
.input-suffix { display: flex; align-items: center; border: 1px solid var(--control-line); border-radius: 8px; padding-right: 12px; color: var(--muted); font-weight: 400; }
.input-suffix input { border: 0; font-size: 18px; width: 100%; }
.rule-explain { background: var(--bg); padding: 16px; border-radius: 8px; font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.rule-explain strong { display: block; color: var(--ink); margin-bottom: 9px; }
.rule-explain p + p { margin-top: 8px; }
#rules-form > .primary { width: 100%; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.dialog-actions button { font-size: 12px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 28px); padding: 12px 18px; background: #3f2c38; color: white; font-size: 12px; border-radius: 9px; box-shadow: 0 8px 30px #30202e26; }
body.detail-open { overflow: auto; }
html[lang=en-MY] .tabs { gap: 11px; }
html[lang=en-MY] .tabs button { font-size: 10px; }
html[lang=en-MY] .form-grid { grid-template-columns: 1fr; }
@keyframes panel-arrive { from { transform: translateY(4px); opacity: .8; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 1150px) {
  .topbar { padding: 0 28px; }
  main { padding: 30px 28px 20px; }
  body:not(.guided) main { grid-template-columns: 152px minmax(0,1fr); column-gap: 24px; }
  .admin-nav { padding-right: 0; }
  .admin-nav button { padding-left: 10px; gap: 8px; font-size: 11px; }
  .guide { grid-template-columns: 180px minmax(0,1fr); column-gap: 26px; }
  .guide-progress button { gap: 10px; padding-left: 10px; font-size: 11px; }
  .summary-note { display: none; }
  .clock > span:last-child { display: none; }
  .queue-top { padding: 0 13px; }
  .filters { padding: 16px 14px 12px; }
  .customer-row { padding: 16px 14px; gap: 9px; }
  .list-caption, .queue-footer { padding-left: 14px; padding-right: 14px; }
  .detail-body { padding: 18px; }
  .detail-header { padding: 20px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .customer-name { font-size: 12px; }
  .row-end { min-width: 55px; max-width: 72px; }
  .tabs { gap: 12px; }
  .tabs button { font-size: 11px; }
  html[lang=en-MY] .queue-top { padding: 0 9px; }
  html[lang=en-MY] .tabs { gap: 8px; }
  html[lang=en-MY] .tabs button { font-size: 9px; }
  .audit-filters { grid-template-columns: 1fr 1fr; }
  .audit-filters input { grid-column: 1/-1; }
  .workflow-checks > div { grid-template-columns: 1fr 25px 130px; gap: 9px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  body:not(.guided) main { display: block; }
  .admin-nav { position: static; flex-direction: row; gap: 8px; padding: 12px 0 16px; }
  .admin-nav button { font-size: 12px; padding: 9px 12px; }
  .page-heading { margin-bottom: 0; }
  .guide { grid-template-columns: 165px minmax(0,1fr); gap: 24px; }
  .guide-content { padding: 28px 27px 23px; }
  .guide-actions { padding: 18px 27px; }
  .guide-actions > .primary { min-width: 160px; }
  .guide-footnote { max-width: 45%; }
  .top-right { gap: 12px; }
  .topbar .sample-label { display: none; }
}
@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 17px; gap: 12px; }
  .brand { font-size: 16px; gap: 8px; letter-spacing: -.5px; }
  .brand > svg { width: 27px; height: 27px; }
  .top-right { gap: 12px; }
  .sample-label, .profile { display: none; }
  .language-toggle { gap: 4px; font-size: 10px; }
  #view-toggle { font-size: 10px; min-height: 31px; padding: 5px 8px; gap: 4px; }
  #view-toggle > svg { display: none; }
  main, .guided main { padding: 27px 18px 18px; max-width: none; }
  body:not(.guided) main { display: block; }
  .page-heading { align-items: flex-start; gap: 15px; margin-bottom: 0; }
  .page-heading h1 { font-size: 25px; margin-bottom: 8px; }
  .page-heading p { font-size: 11px; line-height: 1.9; }
  .scan-button { min-height: 36px; padding: 8px 11px; font-size: 10px; margin-top: 3px; }
  .scan-button svg { width: 14px; height: 14px; }
  .admin-nav { flex-direction: row; position: static; gap: 3px; padding: 17px 0 14px; }
  .admin-nav button { flex: 1; justify-content: center; gap: 6px; font-size: 11px; padding: 9px 6px; min-height: 38px; }
  .admin-nav button svg { width: 14px; height: 14px; }
  .admin-boundary { font-size: 9px; margin-bottom: 13px; }
  .context-strip { gap: 8px; padding: 9px 0; }
  .clock { gap: 6px; font-size: 9px; }
  .context-strip .text-button { font-size: 9px; gap: 3px; min-height: 24px; white-space: nowrap; }
  .context-strip .text-button svg { width: 10px; height: 10px; }
  .scan-summary { padding: 15px 0; gap: 9px; align-items: flex-start; }
  .summary-icon { width: 28px; height: 28px; border-radius: 8px; }
  .scan-summary strong { font-size: 12px; }
  .scan-summary p { font-size: 10px; line-height: 1.8; }
  .workspace { display: block; min-height: 500px; border-radius: 12px; }
  .queue-top { height: 58px; padding: 0 13px; }
  .tabs { gap: 16px; }
  .tabs button { font-size: 11px; }
  html[lang=en-MY] .tabs { gap: 10px; }
  html[lang=en-MY] .tabs button { font-size: 9px; }
  .tabs button > span:not(.tab-label) { font-size: 9px; padding: 1px 3px; margin-left: 3px; }
  .queue-top > .icon-button { width: 24px; }
  .filters { padding: 14px 13px 11px; }
  .filter-selects select { flex: 1; font-size: 10px; min-height: 34px; }
  .search { min-height: 39px; }
  .search input { font-size: 11px; }
  .list-caption { padding: 6px 13px 9px; font-size: 9px; }
  .customer-row { padding: 17px 13px; gap: 9px; }
  .customer-row .avatar { width: 31px; height: 31px; }
  .customer-name { font-size: 12px; }
  .company { font-size: 10px; }
  .tag { font-size: 9px; padding: 2px 5px; }
  .row-end { font-size: 10px; min-width: 59px; max-width: 76px; }
  .queue-footer { padding: 14px 13px; font-size: 9px; }
  .detail-panel { display: none; }
  body.detail-open { overflow: hidden; }
  .detail-open .detail-panel { display: block; position: fixed; inset: 17px 9px 9px; z-index: 11; border: 0; border-radius: 14px; background: var(--surface); overflow: auto; box-shadow: 0 12px 42px #30202e3b; }
  .detail-open::after { content: ""; position: fixed; inset: 0; background: #35223070; z-index: 10; }
  .detail-header { position: sticky; top: 0; z-index: 1; background: white; padding: 19px; }
  .detail-body { padding: 20px 19px; }
  .close-detail { display: flex; font-size: 24px; }
  .detail-heading h2 { font-size: 16px; }
  .task-actions .secondary { font-size: 10px; }
  html[lang=en-MY] .task-actions { flex-direction: column; }
  .guide { display: block; max-width: none; }
  .guide-heading { margin-bottom: 24px; }
  .guide-heading h1 { font-size: 27px; letter-spacing: -.7px; margin-bottom: 9px; line-height: 1.4; }
  .guide-heading > p { font-size: 12px; line-height: 1.9; }
  .guide-progress { padding: 0; margin-bottom: 24px; }
  .guide-progress ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
  .guide-progress button { min-height: 74px; text-align: center; flex-direction: column; gap: 7px; padding: 9px 3px; font-size: 10px; line-height: 1.5; border-radius: 8px; }
  .step-number { width: 25px; height: 25px; font-size: 10px; border-radius: 7px; }
  .current button, .current button:hover:not(:disabled) { background: #ede2e8; }
  .guide-panel { border-radius: 14px; }
  .guide-content { padding: 26px 23px 23px; min-height: 240px; }
  .guide-content h2 { font-size: 22px; letter-spacing: -.5px; }
  .guide-actions { padding: 18px 23px; gap: 12px; }
  .guide-actions > .primary { min-width: 0; width: 100%; min-height: 45px; order: 1; font-size: 12px; }
  .guide-actions > .text-button { order: 2; justify-content: center; width: 100%; font-size: 11px; }
  .guide-footnote { order: 2; flex-basis: 100%; max-width: 100%; text-align: center; font-size: 10px; }
  .guide-start { padding-top: 0; }
  .guide-start-symbol { width: 43px; height: 43px; border-radius: 10px; margin-bottom: 22px; }
  .guide-start-symbol svg { width: 29px; height: 29px; }
  .guide-start h2 { font-size: 23px; }
  .guide-start > p { font-size: 12px; line-height: 1.9; }
  .guide-facts { gap: 25px; margin-top: 24px; margin-bottom: 13px; }
  .guide-facts > span { font-size: 10px; }
  .guide-facts > span + span { padding-left: 25px; }
  .guide-facts strong { font-size: 21px; }
  .guide-clock { font-size: 9px; text-align: left; margin-top: 17px; max-width: 35em; }
  .guided .page-footer { margin-top: 22px; padding-top: 15px; }
  .guide-customer { gap: 8px; padding: 14px 6px; }
  .guide-customer .avatar { width: 28px; height: 28px; font-size: 9px; }
  .guide-customer-info strong { font-size: 12px; }
  .guide-customer-info > span { font-size: 10px; }
  .guide-customer-info .guide-reasons { font-size: 9px; }
  .guide-customer-wait { font-size: 9px; max-width: 65px; }
  .choice-indicator { font-size: 9px; }
  .guide-selected strong { font-size: 13px; }
  .guide-evidence summary { font-size: 10px; }
  .guide-evidence summary span { font-size: 9px; }
  .guide-input { font-size: 13px; }
  .guide-review > div { grid-template-columns: 70px minmax(0,1fr); gap: 12px; padding: 16px 0; }
  .guide-review dd { font-size: 13px; }
  .guide-review dt { font-size: 11px; }
  .guide-confirm-note { font-size: 11px; }
  .guide-success h2 { font-size: 22px; }
  .guide-success > p { font-size: 12px; }
  .guide-success .guide-boundary { font-size: 10px; }
  .admin-report { padding: 20px 17px; border-radius: 12px; }
  .report-heading { flex-direction: column; gap: 13px; margin-bottom: 19px; }
  .report-heading h2 { font-size: 19px; }
  .report-heading p { font-size: 11px; }
  .report-heading > .secondary { font-size: 10px; min-height: 34px; }
  .audit-filters { grid-template-columns: 1fr; gap: 8px; }
  .audit-filters input { grid-column: auto; }
  .audit-filters input, .audit-filters select { font-size: 11px; min-height: 39px; }
  .audit-table-scroll { max-height: 490px; }
  .audit-table { min-width: 730px; }
  .audit-summary, .audit-local-note { font-size: 9px; }
  .workflow-stages { grid-template-columns: 1fr 1fr; gap: 18px 0; padding: 9px 0 20px; margin-bottom: 20px; }
  .workflow-stages li:nth-child(3) { padding-left: 0; border-left: 0; }
  .workflow-stages strong { font-size: 24px; }
  .workflow-stages span { font-size: 10px; }
  .workflow-checks > div { grid-template-columns: 1fr 20px; gap: 5px 10px; font-size: 11px; padding: 13px 0; }
  .workflow-checks .text-button { grid-column: 1/-1; justify-self: start; font-size: 10px; }
  .activity-panel { margin-top: 19px; padding-top: 15px; }
  .activity-panel li { flex-wrap: wrap; gap: 8px; }
  .activity-panel li time { flex-basis: 100%; margin-left: 26px; }
  .activity-panel li strong { font-size: 11px; }
  .activity-panel li p { font-size: 10px; }
  .page-footer p { font-size: 9px; max-width: 75%; }
  .page-footer .text-button { font-size: 9px; }
  dialog { padding: 24px; }
  .dialog-actions { flex-wrap: wrap; }
  html[lang=en-MY] .guide-heading h1 { font-size: 27px; }
  html[lang=en-MY] .guide-progress button { font-size: 9px; }
  html[lang=en-MY] .guide-content h2 { font-size: 22px; }
  html[lang=en-MY] .context-strip { flex-wrap: wrap; }
  html[lang=en-MY] .context-strip .text-button { margin-left: auto; }
  html[lang=en-MY] .admin-nav button { font-size: 10px; gap: 5px; }
  html[lang=en-MY] .admin-nav button svg { width: 13px; height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Local demo sign-in: the same visual system, before either workspace is available. */
.logout-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; min-height: 33px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.logout-button svg { width: 15px; height: 15px; }
.logout-button:hover { color: var(--accent); }
body #login-screen { display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 82px; align-items: center; width: 100%; max-width: 1060px; padding: 74px 42px 55px; }
.login-context h1 { font-size: 33px; line-height: 1.5; letter-spacing: -.9px; font-weight: 620; margin: 0 0 17px; max-width: 12em; }
.login-context > p { color: var(--muted); font-size: 13px; line-height: 1.9; max-width: 33em; }
.login-features { list-style: none; margin: 32px 0 34px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.login-features li { display: flex; align-items: center; gap: 11px; font-size: 12px; color: #66505e; }
.login-features svg { width: 17px; height: 17px; color: #97798b; stroke-width: 1.5; }
.login-context .login-scope { font-size: 10px; line-height: 1.9; max-width: 30em; }
.login-card { background: white; border-radius: 16px; padding: 33px 34px 28px; box-shadow: var(--shadow-panel); min-width: 0; }
.login-card-heading > svg { width: 24px; height: 24px; color: var(--accent); margin-bottom: 17px; }
.login-card h2 { font-size: 23px; font-weight: 600; line-height: 1.5; letter-spacing: -.55px; margin: 0 0 8px; }
.login-card-heading p { font-size: 12px; color: var(--muted); line-height: 1.9; margin-bottom: 24px; }
#login-form > label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 8px; }
#login-username, #login-password { width: 100%; min-width: 0; height: 45px; border: 1px solid var(--control-line); border-radius: 8px; padding: 10px 12px; background: white; color: var(--ink); font-size: 13px; }
#login-username { margin-bottom: 19px; }
.login-password-field { position: relative; }
#login-password { padding-right: 45px; }
.login-password-field .icon-button { position: absolute; right: 7px; top: 7px; }
#login-form input[aria-invalid=true] { border-color: #a94f6c; }
#login-form input:read-only { background: #fbf8fa; }
.login-error { font-size: 11px; margin: 13px 0; }
.login-error:empty { margin: 0; }
.data-source { display: flex; gap: 18px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 0 0 17px; margin: 0 0 25px; font-size: 11px; color: var(--muted); }
.data-source > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.data-source > div > span { overflow-wrap: anywhere; }
.data-source svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--accent); }
.data-source .secondary { font-size: 11px; flex-shrink: 0; min-height: 36px; }
.guided .data-source { max-width: 1060px; margin: -12px auto 28px; }
.import-intro > svg { width: 29px; height: 29px; color: var(--accent); margin-bottom: 18px; }
.import-intro h2 { margin-bottom: 10px; }
.import-how { padding: 0; margin: 25px 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.import-how > li { display: flex; gap: 12px; align-items: flex-start; }
.import-how > li > span { flex-shrink: 0; width: 23px; height: 23px; display: grid; place-items: center; color: var(--accent); background: var(--tint); border-radius: 6px; font-size: 10px; }
.import-how strong { font-size: 12px; font-weight: 600; }
.import-how p { font-size: 11px; color: var(--muted); line-height: 1.8; margin: 4px 0 0; }
.import-template { border-top: 1px solid var(--line); padding-top: 21px; margin-top: 27px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.import-template strong { font-size: 12px; font-weight: 600; }
.import-template p { font-size: 11px; line-height: 1.7; color: var(--muted); margin-top: 4px; }
.import-template .secondary { flex-shrink: 0; font-size: 11px; min-height: 38px; }
.import-template-actions { display: flex; flex-direction: column; align-items: center; gap: 7px; flex-shrink: 0; }
.import-template-actions .text-button { color: var(--accent); font-size: 10px; min-height: 28px; }
.import-help { margin-top: 22px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.import-help summary { color: var(--accent); cursor: pointer; }
.import-help p { margin-top: 9px; }
#import-choose { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
#import-choose > svg { width: 17px; height: 17px; }
.import-file { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0; margin-top: 6px; }
.import-file > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.import-file svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.import-file strong { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.import-file button { color: var(--accent); font-size: 11px; flex-shrink: 0; }
.import-result { font-size: 12px; color: var(--ink); margin: 20px 0 14px; font-weight: 550; }
.import-errors { background: #fcf3f3; border-radius: 8px; padding: 15px 17px; color: #923f42; font-size: 11px; line-height: 1.8; margin-bottom: 16px; }
.import-errors strong { font-weight: 600; }
.import-errors ul { padding-left: 18px; margin-top: 8px; max-height: 200px; overflow-y: auto; }
.import-errors li + li { margin-top: 5px; }
.import-table-scroll { overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.import-table { width: 100%; min-width: 510px; border-collapse: collapse; text-align: left; font-size: 11px; }
.import-table th { color: var(--muted); font-weight: 500; background: #faf8f9; padding: 11px 10px; }
.import-table td { padding: 13px 10px; border-top: 1px solid var(--line); line-height: 1.8; font-variant-numeric: tabular-nums; vertical-align: top; }
.import-table strong { font-weight: 550; display: block; max-width: 180px; overflow-wrap: anywhere; }
.import-table small { display: block; color: var(--muted); max-width: 180px; overflow-wrap: anywhere; font-size: 10px; }
.import-replace-note { font-size: 10px; line-height: 1.9; color: var(--muted); margin-top: 18px; }
@media(max-width:760px) {
 .data-source { align-items: flex-start; gap: 12px; font-size: 10px; }
 .guided .data-source { margin: -6px 0 24px; }
 .data-source .secondary { font-size: 10px; padding: 8px 10px; }
 .import-template { align-items: flex-start; flex-direction: column; gap: 12px; }
 .import-file { align-items: flex-start; }
 .import-help { font-size: 11px; }
 .import-intro > svg { margin-bottom: 15px; }
 .guide-actions:has(#import-choose) > .guide-footnote { max-width: none; flex-basis: 100%; }
 .import-table { min-width: 510px; }
}
.login-submit { width: 100%; margin-top: 22px; min-height: 45px; display: flex; justify-content: space-between; padding: 12px 16px; font-size: 12px; }
.login-submit svg { width: 16px; height: 16px; }
.demo-login-details { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; }
.demo-login-details > strong { font-size: 11px; color: #66505e; font-weight: 550; }
.demo-login-details dl { display: flex; gap: 28px; margin: 11px 0 0; }
.demo-login-details dl > div { display: flex; flex-direction: column; gap: 3px; }
.demo-login-details dt { font-size: 10px; color: var(--muted); }
.demo-login-details dd { font-size: 12px; color: #5e4352; margin: 0; font-variant-numeric: tabular-nums; }
.login-boundary { font-size: 10px; color: var(--muted); line-height: 1.9; margin-top: 17px; }
@media(max-width:900px) and (min-width:761px) { body #login-screen { gap: 44px; grid-template-columns: minmax(0,1fr) 390px; padding-left: 30px; padding-right: 30px; } .login-context h1 { font-size: 30px; } }
@media(max-width:760px) {
 .top-right { gap: 9px; }
 .logout-button { min-height: 31px; width: 23px; justify-content: center; padding: 4px 0; }
 .logout-button > span { display: none; }
 body #login-screen { display: block; max-width: 450px; padding: 28px 19px 30px; }
 .login-context h1 { font-size: 26px; letter-spacing: -.7px; margin-bottom: 8px; max-width: none; }
 .login-context > p { font-size: 12px; max-width: 30em; }
 .login-features, .login-context .login-scope { display: none; }
 .login-context { margin-bottom: 23px; }
 .login-card { border-radius: 14px; padding: 25px 24px 24px; }
 .login-card h2 { font-size: 21px; }
 .login-card-heading > svg { width: 22px; height: 22px; margin-bottom: 14px; }
 .login-card-heading p { font-size: 11px; margin-bottom: 22px; }
 .login-submit { font-size: 12px; }
 .demo-login-details { margin-top: 23px; }
 .login-boundary { font-size: 9px; }
}
