/* Selected design: 极简灰白. Shared production tokens, not a separate mock. */
:root {
  --ink: #242d38; --ink-soft: #53606e; --deep: #25313f; --deep-alt: #34455a;
  --paper: #fafafb; --paper-bright: #fff; --line: #e1e4e9;
  --moss: #326cae; --moss-dark: #285f9f; --blue: #326cae;
  --orange: #b34f48; --sun: #e9eff7;
  --body: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: var(--body); --mono: var(--body); --muted: #687483;
}
html, body { background: var(--paper); }
body { font-size: 16px; line-height: 1.6; }
::selection { color: #163955; background: #dbe9f8; }
.ambient, .sidebar::before, .sidebar-rail::before, .sidebar-rail::after { display: none; }
.app-shell { grid-template-columns: 228px minmax(0,1fr); }
.sidebar { height: 100dvh; padding: 32px 16px 20px; background: #fff; color: var(--ink); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { padding: 12px 24px 40px; gap: 10px; align-items: center; color: var(--ink); flex-wrap: wrap; }
.brand .brand-logo { width: 38px; height: 38px; object-fit: contain; }
.brand > span { display: contents; }
.brand strong { font-family: var(--body); font-weight: 650; font-size: 26px; line-height: 1.3; }
.brand small { width: 100%; color: var(--muted); font-size: 15px; letter-spacing: 0; margin-top: -4px; }
.brand-mark { display: none !important; }
.nav-list { gap: 8px; }
.nav-item { display: flex; align-items: center; gap: 16px; min-height: 57px; padding: 13px 16px; font-size: 18px; font-weight: 500; color: var(--ink); border: 0; border-left: 3px solid transparent; border-radius: 5px; background: transparent; }
.nav-item::before, .nav-item::after { display: none; }
.nav-item.active { border-left-color: var(--ink); color: var(--ink); background: #eff0f2; }
.nav-item:hover { color: var(--ink); background: #f3f4f6; }
.nav-item .ui-icon { width: 23px; height: 23px; opacity: .9; }
.nav-item b { display: none; }
.nav-index { display: none; }
.admin-nav { margin: 0; border-top: 0; }
.sidebar-rail { min-height: 30px; flex: 1; border: 0; background: none; }
.sidebar-note { padding: 10px 14px; border: 0; background: none; box-shadow: none; }
.sidebar-note > strong, .sidebar-note > p, .sidebar-note > .eyebrow { display: none; }
.mode-line { color: var(--muted); font-size: 13px; }
.mode-line > span:first-child { background: var(--moss); box-shadow: none; }
.mode-line > span:last-child { color: var(--muted); }
.operator { border: 0; border-top: 1px solid var(--line); color: var(--ink); background: none; padding: 16px 14px 0; margin-top: 10px; gap: 12px; }
.operator .avatar { background: #eff1f4; color: var(--ink); border: 1px solid var(--line); font-family: var(--body); font-size: 15px; width: 40px; height: 40px; }
.operator strong { color: var(--ink); font-size: 16px; }
.operator small { color: var(--muted); font-size: 12px; }
.operator > b { color: var(--muted); }
.main-stage { padding: 0 48px 40px; background: var(--paper); }
.view, .topbar { max-width: 1540px; margin-left: auto; margin-right: auto; }
.topbar { height: 66px; border-bottom: 1px solid var(--line); }
.crumb { font-size: 14px; color: var(--muted); }
.crumb span:last-child { color: var(--muted); font-size: 12px; }
.signal-dot { background: var(--moss); box-shadow: none; }
.topbar-actions { gap: 8px; }
.quiet-button, .command-button { font-size: 13px; font-weight: 500; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 5px; padding: 8px 12px; min-height: 36px; }
.command-button:hover, .quiet-button:hover { background: #eef1f5; color: var(--ink); }
.local-badge { display: none; }
body:has(#control.active) .topbar { height: 0; border: 0; position: relative; }
body:has(#control.active) .topbar .crumb { display: none; }
body:has(#control.active) .topbar-actions { position: absolute; top: 35px; right: 0; }
.view-heading, .view-heading.split-heading { padding: 30px 0 26px; }
.view-heading h1, .hero-line h1 { font-size: 32px; color: var(--ink); font-weight: 650; line-height: 1.3; letter-spacing: -.7px; }
.view-heading p { font-size: 15px; line-height: 1.75; color: var(--muted); }
#control .view-heading h1 { font-size: 36px; }
#control .view-heading p { font-size: 17px; }
.ui-icon { display: inline-block; width: 22px; height: 22px; flex-shrink: 0; object-fit: contain; vertical-align: middle; }
.view h2 { color: var(--ink); font-size: 21px; font-weight: 650; letter-spacing: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: none; }
.view :is(.panel,section,article,aside,form,label) { min-width: 0; }
.view :is(p,a,small,span,label,strong,dd) { overflow-wrap: anywhere; }
.section-heading { align-items: center; }
.section-heading > span { color: var(--muted); font-size: 13px; }
.daily-run-label { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }
.daily-run-label > span { color: var(--moss-dark); }
.daily-run-label > small { font-size: 12px; }
.daily-process { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0 48px; }
.daily-step { display: flex; align-items: center; gap: 18px; padding: 10px 0; text-align: left; border: 0; background: none; color: var(--ink); }
.daily-step > .ui-icon { padding: 18px; width: 70px; height: 70px; border: 1px solid var(--line); border-radius: 50%; }
.daily-step > span { display: grid; gap: 2px; font-size: 17px; }
.daily-step strong { font-weight: 650; font-size: 32px; line-height: 1.4; color: var(--moss); font-variant-numeric: tabular-nums; }
.daily-step strong small { color: var(--muted); font-size: 22px; font-weight: 400; }
.daily-step:hover > span > span { color: var(--moss); }
.process-arrow { opacity: .3; width: 30px; height: 30px; }
.daily-layout { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(240px,1fr); gap: 46px; }
.daily-main { min-width: 0; }
.daily-tasks .section-heading, .daily-latest .section-heading { margin: 0 0 20px; }
.daily-tasks h2, .daily-latest h2, .daily-stats h2 { margin: 0; font-size: 22px; }
.daily-table-head, .daily-task { display: grid; grid-template-columns: minmax(0,1fr) 80px 108px; align-items: center; gap: 16px; }
.daily-table-head { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 10px; color: var(--muted); font-size: 14px; }
.daily-table-head > span:not(:first-child), .daily-task > b, .daily-task > span:last-child { text-align: center; }
.daily-task { width: 100%; padding: 18px 10px; min-height: 65px; text-align: left; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 15px; }
.daily-task > span:first-child { display: flex; align-items: center; gap: 14px; }
.daily-task .ui-icon { width: 19px; height: 19px; }
.daily-task b { font-size: 16px; font-weight: 500; }
.daily-task:hover { background: #f0f3f7; }
.action-link { color: var(--moss-dark); }
.action-muted { color: var(--muted); }
.daily-primary { display: inline-flex; align-items: center; min-width: 150px; justify-content: center; margin-top: 18px; padding: 9px 22px; min-height: 42px; color: #fff; background: var(--moss); border: 1px solid var(--moss); border-radius: 5px; font-size: 16px; }
.daily-primary:hover { background: #265d9c; }
.daily-latest { margin-top: 42px; }
.daily-customer-head, .daily-customer { display: grid; grid-template-columns: minmax(0,1fr) 105px 100px; gap: 14px; width: 100%; align-items: center; text-align: left; }
.daily-customer-head { color: var(--muted); border-top: 1px solid var(--line); padding: 10px 12px; font-size: 14px; }
.daily-customer { color: var(--ink); background: none; border: 0; border-top: 1px solid var(--line); padding: 12px; font-size: 15px; min-height: 48px; }
.daily-customer:last-of-type { border-bottom: 1px solid var(--line); }
.daily-customer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.daily-customer:hover { background: #eff2f6; }
.daily-customer time { font-variant-numeric: tabular-nums; }
.daily-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 0; border: 0; background: none; color: var(--moss-dark); font-size: 15px; }
.daily-link .ui-icon { width: 18px; height: 18px; opacity: .65; }
.daily-stats { border-left: 1px solid var(--line); padding-left: 42px; min-width: 0; }
.daily-stats h2 { margin-bottom: 20px; }
.daily-stat { width: 100%; padding: 17px 0; display: flex; align-items: center; gap: 18px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: none; text-align: left; }
.daily-stat > .ui-icon { width: 60px; height: 60px; border: 1px solid var(--line); border-radius: 50%; padding: 16px; }
.daily-stat > span { min-width: 0; display: grid; }
.daily-stat strong { font-size: 40px; font-weight: 550; letter-spacing: -1px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.daily-stat > span > span { font-size: 15px; }
.daily-stat small { font-size: 12px; color: var(--muted); line-height: 1.7; }
.daily-stat:hover strong { color: var(--moss); }
.daily-send-note { display: flex; align-items: start; gap: 10px; margin: 24px 0 10px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.daily-send-note .ui-icon { width: 18px; height: 18px; margin-top: 3px; opacity: .5; }
.daily-rules { color: var(--muted); font-size: 13px; }
.daily-rules summary { cursor: pointer; padding: 5px 0; }
.daily-rules p { margin: 10px 0; }
.workflow-footnote { color: var(--muted); font-size: 12px; margin-top: 32px; }
/* Shared business surfaces: neutral canvas, readable controls, consistent states. */
.view :is(input, select, textarea) { color: var(--ink); background: #fff; border: 1px solid #ccd2da; border-radius: 5px; font-size: 15px; box-shadow: none; }
.view input[type=checkbox] { accent-color: var(--moss); }
.view :is(input, select, textarea):focus { outline: 2px solid #b1cbea; outline-offset: 1px; border-color: var(--moss); box-shadow: none; }
.view button { border-radius: 5px; }
.view button:disabled { cursor: not-allowed; }
.view .eyebrow { color: var(--muted); font-family: var(--body); letter-spacing: .05em; }
.view :is(.prospect-provider,.research-access-panel,.product-source,.product-toolbar,.prospect-score-panel,.prospect-task-detail,.product-lock-note) { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.view :is(.prospect-score-panel,.prospect-task-detail,.research-access-panel) :is(p,small,span,strong) { color: inherit; }
.workflow-tabs { border-color: var(--line); gap: 8px; }
.workflow-tabs button { color: #546170; border-radius: 5px; }
.workflow-tabs button.active { color: var(--ink); background: #eaedf1; }
.workflow-tabs button:hover { background: #f0f2f5; color: var(--ink); }
.workflow-subtabs > span { color: var(--muted); }
.workflow-search label { color: var(--muted); }
.workflow-search input, .workflow-search select { border-color: #d4d9e0; background: #fff; color: var(--ink); }
.workflow-live-strip { border: 0; border-radius: 5px; background: #eef2f7; color: #53687d; padding: 13px 16px; }
.workflow-live-strip button { color: #fff; background: var(--moss); }
.workflow-disclosure { border: 1px solid var(--line); background: #fafbfc; border-radius: 5px; }
.workflow-disclosure > summary { color: var(--ink-soft); }
.workflow-pagination { color: var(--muted); }
.workflow-pagination :is(span,button) { color: var(--muted); }
.workflow-pagination button { background: #fff; border-color: var(--line); }
.prospect-company-registry, .prospect-company-detail { padding: 22px; }
.prospect-company-row { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.prospect-company-row:hover, .prospect-company-row.selected { background: #edf2f8; border-color: var(--line); box-shadow: none; }
.prospect-company-copy strong { font-size: 16px; }
.prospect-company-copy small { color: var(--muted); font-size: 13px; }
.prospect-list-score { color: var(--moss); }
.prospect-list-status, .prospect-status-badge, .source-verification-chip { border: 1px solid var(--line); color: #586779; background: #f1f3f6; }
.prospect-filter, .product-filter { color: var(--muted); background: #fff; border-color: var(--line); }
.prospect-filter.active, .product-filter.active { background: #e9edf3; color: var(--ink); border-color: #d3d9e2; }
.prospect-research-copy article, .prospect-evidence-list article, .prospect-contact-row { background: transparent; border-color: var(--line); }
.prospect-research-copy { background: transparent; padding: 0; }
.prospect-research-console { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 0; }
.prospect-research-header { padding-top: 12px; margin-top: 0; }
.prospect-research-header .eyebrow { display: none; }
.prospect-research-actions > span { background: #eef2f7; border-color: var(--line); color: var(--ink-soft); }
.prospect-research-copy :is(p,span), .prospect-evidence-list p { color: var(--ink-soft); }
.prospect-risk-flags span { color: #735b3e; background: #f6f2eb; border-color: #e4dccd; }
.prospect-source-list a { background: #fff; color: var(--ink); border-color: var(--line); }
.prospect-draft-card, .prospect-match-card { background: #fff; border-color: var(--line); }
.prospect-draft-card p { font-size: 15px; line-height: 1.8; color: var(--ink-soft); }
.prospect-card-actions button { font-size: 14px; }
.prospect-company-empty, .prospect-research-empty, .mail-empty { color: var(--muted); font-size: 14px; line-height: 1.75; }
.prospect-company-empty { min-height: 260px; }
.archive-metrics { border-color: var(--line); background: transparent; }
.archive-metrics article, .archive-metrics article:nth-child(n) { background: #fff; border-color: var(--line); }
.archive-metrics :is(strong,span) { color: var(--ink); }
.archive-metrics small { color: var(--muted); }
.archive-toolbar { background: #fff; }
.archive-toolbar button { background: var(--moss); color: #fff; border-color: var(--moss); }
.archive-toolbar .archive-reset { background: #fff; color: var(--muted); border-color: var(--line); }
.archive-row, .archive-row:nth-child(n) { background: #fff; border-color: var(--line); }
.archive-row.selected, .archive-row:hover { background: #edf2f8; border-color: #c9d8e9; box-shadow: none; }
.archive-detail, .archive-empty, .archive-score-line, .archive-score-line article, .archive-background, .archive-evidence-list article, .archive-language-card { background: #fff; color: var(--ink); border-color: var(--line); }
.archive-detail :is(p,small,span), .archive-row :is(small,span) { color: var(--muted); }
.archive-detail :is(h2,h3,strong), .archive-background p, .archive-language-card p, .archive-evidence-list p { color: var(--ink); }
.archive-language-card p { font-size: 16px; line-height: 1.85; }
.archive-status, .archive-score-chip { background: #eef2f6; border-color: #dce3eb; color: #4c6179; }
.archive-status.sent { color: #285f9f; background: #eaf1fa; }
.archive-status.failed, .archive-status.suppressed { color: #a74841; background: #faf0ef; }
.archive-envelope, .archive-envelope dl, .archive-envelope dl > div, .archive-bilingual-message, .archive-message-original, .archive-message-translation { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: none; }
.archive-envelope { border: 1px solid var(--line); border-radius: 5px; }
.archive-envelope :is(dt,dd), .archive-envelope-label :is(strong,span), .archive-envelope .archive-message-body, .archive-envelope header strong { color: var(--ink); }
.archive-envelope-label { background: #f5f7fa; border-color: var(--line); }
.archive-envelope dl > div, .archive-bilingual-message > article { border-color: var(--line); }
.archive-envelope .archive-message-body { font-size: 16px; line-height: 1.85; }
.archive-envelope .archive-message-translation { background: #fafbfc; }
.archive-row.selected { border-left-color: var(--moss); }
.archive-status.scheduled, .archive-status.approved { color: #4b6685; background: #edf2f8; border-color: #dce4ee; }
.archive-metrics article::before, .archive-metrics article::after { display: none; }
#review :is(.mail-eligibility-card,.mail-batch-row,.mail-queue-row,.mail-quality-line,.mail-bilingual-preview article) { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: none; }
#review .mail-quality-line { background: #f2f5f9; }
#review .mail-quality-line:not(.ready) { background: #f7f3ed; }
#review :is(.mail-eligibility-card,.mail-batch-row,.mail-queue-row) :is(small,p,span,em) { color: var(--muted); }
#review .mail-bilingual-preview p { color: var(--ink-soft); }
#review .mail-filter { background: #fff; border-color: var(--line); color: var(--muted); }
#review .mail-filter.active { background: #e9edf3; color: var(--ink); }
#review .mail-batch-create, #review .mail-queue-button { color: #fff; background: var(--moss); border-color: var(--moss); }
#review .mail-queue-row.failed { border-left-color: #b34f48; }
#inbox :is(.mail-inbound-row,.mail-reply-card,.mail-handoff-card,.mail-suppression-row,.mail-alert-stack article) { background: #fff; border-color: var(--line); color: var(--ink); }
#inbox .mail-inbound-row { border-bottom: 1px solid var(--line); padding: 20px 0; }
#inbox :is(.mail-inbound-row,.mail-reply-card,.mail-handoff-card) :is(p,small,label,em) { color: var(--muted); }
#inbox :is(.mail-inbound-row,.mail-reply-card,.mail-handoff-card) :is(input,textarea) { font-size: 16px; line-height: 1.8; color: var(--ink); background: #fff; border-color: #ccd2da; }
#inbox :is(.mail-reply-card,.mail-handoff-card) button { min-height: 40px; font-size: 14px; }
.workflow-settings-panel :is(.panel,.prospect-provider,.research-access-panel) { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.workflow-settings-panel :is(.panel,.research-access-panel) :is(p,small,span,label) { color: var(--muted); }
.workflow-settings-panel :is(.reply-forward-ledger,.unattended-ledger,.mail-gate-grid) article { background: #fafbfc; border-color: var(--line); }
.workflow-settings-panel :is(input,select,textarea) { background: #fff; border-color: #ccd2da; color: var(--ink); }
.workflow-settings-panel .mail-primary-button { background: var(--moss); color: #fff; border-color: var(--moss); }
.workflow-settings-panel .mail-outline-button { color: var(--moss-dark); border-color: #becbdb; }
.workflow-settings-panel .mail-stop-button { background: #fff; color: #a3443e; border-color: #d8b5b2; }
.unattended-outreach-panel::before, .unattended-outreach-panel::after { display: none !important; content: none !important; }
.account-create-card, .account-row, .account-registry { background: #fff; color: var(--ink); border-color: var(--line); }
.account-row strong, .account-create-card h2 { color: var(--ink); }
.account-row small, .account-role { color: var(--muted); }
.workflow-settings-panel .account-avatar { background: #edf0f4; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; }
.workflow-settings-panel .account-role em { background: #edf2f8; color: #426486; }
.classification-card, .image-queue, .product-card-editor, .product-card-registry, .product-group-card { background: #fff; border-color: var(--line); box-shadow: none; }
.classification-notes, .classification-fields label, .classification-permission { color: var(--muted); }
.product-preview { background: #f7f8fa; }
.product-preview img, .image-tile img { object-fit: contain; }
.classification-actions button, .product-card-actions button { font-size: 14px; }
.classification-actions button:last-child { background: var(--moss); color: #fff; border-color: var(--moss); }
.image-tile { border-color: #e0e4e9; background: #f9fafb; }
.image-tile.active, .image-tile.selected { border-color: var(--moss); box-shadow: 0 0 0 1px var(--moss); }
.image-tile .tile-caption { background: #f1f3f6; color: var(--ink); }
.product-hint { background: #f4f6fa; border-color: #d6dfeb; color: #4c6077; }
.product-mode-tab.active::after { content: none; }
.product-mode-tabs { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding-bottom: 12px; gap: 7px; }
.product-mode-tab { color: var(--muted); background: transparent; border: 0; }
.product-mode-tab.active, .product-mode-tab:hover { color: var(--ink); background: #e9edf2; }
.product-preview img, .image-tile img { background: #f8f9fb; filter: none; }
.image-tile { height: auto; min-height: 0; }
.image-tile img { height: 150px; min-height: 0; }
.image-tile .tile-footer { position: static; display: block; background: #fff; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 12px; padding: 7px; }
.tile-footer span:first-child { display: none; }
.tile-status, .tile-status.verified, .product-preview span { color: #526a87; background: #eaf0f7; }
.tile-status.draft { color: #73634f; background: #f3efe9; }
.tile-status.discarded { color: #9a4f49; background: #f8edeb; }
.suggestion-box { color: var(--ink-soft); background: #f3f5f8; border-color: #bfcddb; }
.suggestion-box :is(span,small,strong) { color: inherit; }
/* Every dialog uses the same light surface; original images remain untouched. */
.record-modal { background: rgba(30,40,55,.38); backdrop-filter: blur(3px); }
.modal-card, .account-editor-card, .taxonomy-settings-card, .image-lightbox-card { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 20px 70px rgba(25,39,60,.15); }
.modal-card h2, .image-lightbox-card header strong { font-family: var(--body); color: var(--ink); font-size: 27px; line-height: 1.4; }
.modal-card :is(p,small,label,span,dt,dd), .image-lightbox-card > p { color: var(--muted) !important; font-family: var(--body); font-size: 14px !important; line-height: 1.7; }
.modal-card :is(input,select,textarea) { color: var(--ink); background: #fff; font-family: var(--body); font-size: 15px; border: 1px solid #cdd4de; border-radius: 5px; padding: 10px; }
.modal-card button { font-family: var(--body); font-size: 14px; min-height: 38px; border-radius: 5px; }
.modal-close { color: var(--muted); background: none; }
.modal-card :is(dl,dl div,.role-option,.audit-row,.card-image-picker-toolbar) { background: #f6f8fb; color: var(--ink); border-color: var(--line); }
.modal-card :is(.role-option,.audit-heading,.audit-row) :is(strong,em) { color: var(--ink); }
.modal-card .logout-button { color: #a74841; border-color: #dfc1bd; background: #fff; }
.image-lightbox-stage { background: #f7f8fa; }
.image-lightbox-stage img { object-fit: contain; }
.image-lightbox .image-lightbox-card { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); min-height: 0; }
.image-lightbox .image-lightbox-stage { display: flex; align-items: center; justify-content: center; flex: 0 1 auto; width: 100%; height: min(70dvh,760px); min-height: 0; overflow: hidden; }
.image-lightbox .image-lightbox-stage > img { position: static; display: block; min-width: 0; min-height: 0; width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.watch-pill, .watch-pill.ready { background: #edf2f7; color: var(--ink-soft); border-color: var(--line); }
.daily-stat > .ui-icon { filter: invert(34%) sepia(31%) saturate(1200%) hue-rotate(173deg) brightness(96%) contrast(85%); }
.login-gate { background: #f4f6f9; }
.login-gate::before, .login-gate::after { display: none; }
.login-sheet { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 50px rgba(25,39,60,.06); }
.login-sheet h1 { font-family: var(--body); font-size: 34px; line-height: 1.4; letter-spacing: -.5px; }
.login-sheet h1 em { font-style: normal; color: var(--ink); }
.login-form label, .login-footnote { font-size: 14px; }
.login-form :is(input,button) { font-family: var(--body); font-size: 16px; border-radius: 5px; }
.login-form button { background: var(--moss); }
.toast { font-size: 15px; max-width: 460px; border-radius: 6px; background: var(--deep); color: #fff; }
.toast::before { display: none; }
@media (min-width: 2100px) { .view,.topbar { max-width: 1740px; margin-left: auto; margin-right: auto; } }
@media (max-width: 1250px) {
  .app-shell { grid-template-columns: 205px minmax(0,1fr); }
  .main-stage { padding-left: 30px; padding-right: 30px; }
  .brand { padding-left: 14px; padding-right: 10px; }
  .daily-layout { gap: 28px; grid-template-columns: minmax(0,1.7fr) minmax(215px,1fr); }
  .daily-stats { padding-left: 26px; }
  .daily-step { gap: 10px; }
  .daily-step > .ui-icon { width: 54px; height: 54px; padding: 13px; }
  .daily-step strong { font-size: 27px; }
  .daily-step strong small { font-size: 18px; }
  .daily-process { gap: 8px; }
  .daily-stat { gap: 12px; }
  .daily-stat > .ui-icon { width: 45px; height: 45px; padding: 11px; }
  .daily-customer-head, .daily-customer { grid-template-columns: minmax(0,1fr) 85px 55px; }
}
@media (max-width: 1000px) {
  .prospect-pool-layout, .archive-workbench { grid-template-columns: minmax(0,1fr); }
  .daily-layout { grid-template-columns: 1fr; }
  .daily-stats { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .daily-stats h2, .daily-send-note, .daily-rules { grid-column: 1/-1; }
  .daily-process { margin-bottom: 32px; flex-wrap: wrap; }
  .daily-step > .ui-icon { display: none; }
  .daily-run-label small { display: none; }
}
@media (max-width: 760px) {
  .workflow-search, .prospect-form-grid, .archive-score-line, .archive-bilingual-message, .archive-background-grid, .archive-context-grid { grid-template-columns: minmax(0,1fr); }
  .archive-envelope dl { grid-template-columns: minmax(0,1fr); }
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 14px 16px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 0 14px; gap: 8px; }
  .brand .brand-logo { width: 28px; height: 28px; }
  .brand strong { font-size: 21px; }
  .brand small, .sidebar-note, .sidebar-rail { display: none; }
  .operator { border: 0; margin: 0; padding: 0 0 12px; }
  .nav-list { gap: 2px; }
  .nav-item { padding: 9px 1px; min-height: 52px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; border: 0; }
  .nav-item.active { border: 0; background: #eff0f3; }
  .nav-item .ui-icon { width: 20px; height: 20px; }
  .main-stage { padding: 0 18px 35px; }
  .topbar { height: 60px; gap: 8px; }
  body:has(#control.active) .topbar { height: 56px; }
  body:has(#control.active) .topbar-actions { position: static; margin-left: auto; }
  .crumb { font-size: 13px; }
  .quiet-button, .command-button { padding: 6px 9px; font-size: 12px; }
  .view-heading, .view-heading.split-heading { padding: 24px 0 20px; }
  #control .view-heading h1, .view-heading h1 { font-size: 29px; }
  .daily-process { gap: 8px; margin: 12px 0 28px; flex-wrap: nowrap; }
  .daily-step { gap: 0; }
  .daily-step > span { font-size: 12px; }
  .daily-step strong { font-size: 23px; }
  .daily-step strong small { font-size: 12px; }
  .process-arrow { width: 14px; height: 14px; }
  .daily-layout { gap: 32px; }
  .daily-table-head, .daily-task { grid-template-columns: minmax(0,1fr) 32px 64px; gap: 8px; padding-left: 0; padding-right: 0; }
  .daily-task { font-size: 13px; }
  .daily-task > span:first-child { gap: 7px; }
  .daily-task .ui-icon { width: 17px; height: 17px; }
  .daily-table-head { font-size: 12px; }
  .daily-tasks .section-heading > span { display: none; }
  .daily-latest { margin-top: 32px; }
  .daily-customer-head, .daily-customer { grid-template-columns: minmax(0,1fr) 70px 50px; gap: 8px; padding: 10px 0; font-size: 12px; }
  .daily-customer strong { font-size: 13px; }
  .daily-stat { gap: 10px; align-items: flex-start; }
  .daily-stat > .ui-icon { width: 30px; height: 30px; padding: 5px; margin-top: 5px; }
  .daily-stat strong { font-size: 31px; }
  .daily-stat > span > span { font-size: 13px; }
  .daily-stat small { font-size: 11px; }
  .daily-stats { gap: 0 15px; }
  .modal-card { max-height: calc(100dvh - 30px); overflow-y: auto; padding: 22px; }
  .modal-card h2 { font-size: 23px; }
}
