:root {
  --navy: #112a46;
  --navy-2: #1a3b60;
  --paper: #f5f7fa;
  --white: #ffffff;
  --ink: #172231;
  --muted: #687689;
  --line: #dfe5ec;
  --amber: #e8a539;
  --amber-soft: #fff5df;
  --blue-soft: #e9f1f9;
  --green: #21845d;
  --green-soft: #e7f5ef;
  --red: #b94a48;
  --red-soft: #fdeceb;
  --shadow: 0 14px 36px rgba(22, 43, 68, .10);
}
* { box-sizing: border-box; }
html { font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; color: var(--ink); background: var(--paper); }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #e9f1f9 0, transparent 36%), var(--paper); }
.login-card { width: min(430px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.login-brand { padding: 0 0 26px; }
.login-card h1 { font-size: 26px; margin-bottom: 10px; }
.login-intro { color: var(--muted); line-height: 1.6; margin-bottom: 22px; }
.login-form { display: grid; gap: 14px; }
.login-form label { color: #465468; font-size: 13px; font-weight: 700; }
.login-form input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 44px; color: var(--ink); background: white; margin-top: 6px; }
.login-hint { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 16px 0 0; }
.form-error { color: var(--red); background: var(--red-soft); border-radius: 10px; padding: 9px 10px; font-size: 13px; margin: 0; }
.password-required { color: #805709; background: var(--amber-soft); border: 1px solid #f1d591; border-radius: 10px; padding: 10px 11px; line-height: 1.5; font-size: 13px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy); color: white; padding: 28px 18px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 30px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--amber); color: var(--navy); border-radius: 13px; font-weight: 900; font-size: 20px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { color: #aebdd0; margin-top: 3px; font-size: 12px; }
.side-nav { display: grid; gap: 7px; }
.nav-button { border: 0; background: transparent; color: #bdc9d8; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; text-align: left; font-size: 15px; }
.nav-button:hover, .nav-button.active { color: white; background: rgba(255,255,255,.11); }
.nav-icon { width: 24px; font-size: 18px; text-align: center; }
.side-footer { margin-top: auto; color: #aebdd0; font-size: 12px; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.sync-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5dd39e; margin-right: 7px; }
.main { min-width: 0; }
.topbar { min-height: 102px; padding: 24px 38px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(245,247,250,.92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.global-year { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.global-year select { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 12px; padding: 10px 30px 10px 12px; box-shadow: 0 4px 14px rgba(22,43,68,.05); }
.year-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 10px; color: var(--navy); background: var(--blue-soft); font-size: 13px; font-weight: 800; }
.eyebrow { color: var(--muted); font-size: 13px; margin: 0 0 5px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 28px; letter-spacing: -.02em; }
h2 { margin-bottom: 0; font-size: 22px; }
h3 { margin-bottom: 6px; font-size: 17px; }
.role-button { border: 1px solid var(--line); background: white; border-radius: 14px; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; color: var(--ink); box-shadow: 0 4px 14px rgba(22,43,68,.05); }
.role-button > span:first-child { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: white; display: grid; place-items: center; font-weight: 700; }
.role-button small, .role-button b { display: block; text-align: left; }
.role-button small { font-size: 11px; color: var(--muted); margin-bottom: 1px; }
.role-button b { font-size: 14px; }
.content { padding: 10px 38px 42px; max-width: 1480px; margin: 0 auto; }
.notice { background: var(--amber-soft); border: 1px solid #f4d899; color: #6b4a0f; border-radius: 14px; padding: 12px 15px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.notice strong { color: #493106; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.kpi-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 6px 18px rgba(22,43,68,.04); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.kpi-card strong { display: block; font-size: 28px; margin: 12px 0 5px; letter-spacing: -.03em; }
.kpi-card small { color: var(--muted); }
.delta { color: var(--green); font-weight: 700; font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.8fr); gap: 18px; margin-top: 18px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 18px rgba(22,43,68,.04); overflow: hidden; }
.panel-head { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 18px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.text-button { border: 0; background: transparent; color: var(--navy-2); font-weight: 700; padding: 8px; }
.order-list { display: grid; }
.order-row { padding: 16px 20px; display: grid; grid-template-columns: minmax(180px,1.2fr) minmax(150px,.9fr) minmax(130px,.7fr) 110px; align-items: center; gap: 14px; border-bottom: 1px solid #edf0f4; }
.order-row:last-child { border-bottom: 0; }
.order-name strong, .order-name small { display: block; }
.order-name small, .secondary { color: var(--muted); font-size: 13px; margin-top: 4px; }
.progress-wrap { display: grid; gap: 7px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; }
.progress { height: 7px; background: #e9edf2; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--amber); border-radius: inherit; }
.status { justify-self: end; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status.blue { color: #24577d; background: var(--blue-soft); }
.status.green { color: #1f6c4e; background: var(--green-soft); }
.status.amber { color: #795311; background: var(--amber-soft); }
.status.red { color: #933b39; background: var(--red-soft); }
.duration-badge { display: inline-block; color: #895c0d; background: var(--amber-soft); border: 1px solid #f1d591; border-radius: 8px; padding: 5px 8px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.duration-badge.finished { color: #286b51; background: var(--green-soft); border-color: #bee5d3; }
.stage-track { display: flex; align-items: center; gap: 4px; min-width: 260px; }
.stage-step { position: relative; flex: 1; color: #8a96a6; background: #eef1f5; border-radius: 999px; padding: 5px 7px; text-align: center; font-size: 11px; white-space: nowrap; }
.stage-step.done { color: #286b51; background: var(--green-soft); }
.stage-step.current { color: var(--navy); background: var(--blue-soft); box-shadow: inset 0 0 0 1px #b8cfe6; font-weight: 800; }
.progress-updated { margin-top: 5px; white-space: nowrap; }
.mobile-action { margin-top: 13px; padding-left: 0; }
.duration-mobile { margin-top: 13px; border-radius: 11px; background: var(--amber-soft); padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #76510f; }
.duration-mobile span { font-weight: 800; }
.duration-mobile small { color: #866726; }
.permission-panel { padding: 44px 24px; text-align: center; }
.permission-panel p { color: var(--muted); max-width: 520px; margin: 10px auto 22px; line-height: 1.65; }
.lock-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 17px; background: var(--amber-soft); color: #805709; font-size: 24px; font-weight: 900; }
.quote-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--blue-soft); }
.quote-result small, .quote-result strong { display: block; }
.quote-result small { color: var(--muted); margin-bottom: 4px; }
.quote-result strong { color: var(--navy); font-size: 15px; }
.quote-source { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8px; margin-top: 13px; padding: 10px 12px; border-radius: 11px; background: #f7f9fb; }
.quote-source small, .quote-source strong { display: block; }
.quote-source small { color: var(--muted); margin-bottom: 3px; }
.quote-source strong { color: var(--navy); }
.cost-breakdown { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.cost-breakdown span { border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; color: #59677a; font-size: 12px; }
.finance-kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.finance-kpis article { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 6px 18px rgba(22,43,68,.04); }
.finance-kpis small, .finance-kpis strong, .finance-kpis span { display: block; }
.finance-kpis small { color: var(--muted); margin-bottom: 7px; }
.finance-kpis strong { font-size: 23px; color: var(--navy); }
.finance-kpis span { color: var(--muted); font-size: 13px; margin-top: 5px; }
.recon-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.recon-kpis article { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 6px 18px rgba(22,43,68,.04); }
.recon-kpis small, .recon-kpis strong, .recon-kpis span { display: block; }
.recon-kpis small { color: var(--muted); margin-bottom: 7px; }
.recon-kpis strong { font-size: 23px; color: var(--navy); }
.recon-kpis span { color: var(--muted); font-size: 13px; margin-top: 5px; }
.recon-subnav { display: flex; gap: 8px; margin-bottom: 14px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.recon-tab { border: 0; background: transparent; color: var(--muted); padding: 10px 13px; border-bottom: 3px solid transparent; font-weight: 700; }
.recon-tab.active { color: var(--navy); border-bottom-color: var(--amber); }
.recon-tab span { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: 4px; border-radius: 99px; background: var(--red-soft); color: var(--red); font-size: 12px; }
.result-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.recon-panel { margin-bottom: 16px; }
.recon-inline { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.recon-allocation { display: grid; gap: 4px; margin-top: 13px; padding: 10px 12px; border-radius: 11px; background: #f7f9fb; }
.recon-allocation span, .recon-allocation small { color: var(--muted); }
.recon-allocation strong { color: var(--navy); font-size: 13px; line-height: 1.5; }
.statement-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.statement-actions .text-button { padding: 7px 5px; }
.statement-order-link { font-size: 16px; text-align: left; }
.party-note { color: #415064; background: var(--blue-soft); border: 1px solid #cfdfef; border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; font-size: 14px; line-height: 1.5; }
.party-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 12px; background: #f7f9fb; }
.party-grid small, .party-grid strong { display: block; }
.party-grid small { color: var(--muted); margin-bottom: 4px; }
.finance-track { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.finance-track > div { border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px; }
.finance-track span, .finance-track strong, .finance-track small { display: block; }
.finance-track span { color: var(--muted); font-size: 12px; }
.finance-track strong { margin: 4px 0; }
.finance-track small { color: var(--muted); }
.task-list { padding: 6px 18px 12px; }
.task { display: flex; align-items: flex-start; gap: 12px; padding: 14px 2px; border-bottom: 1px solid #edf0f4; }
.task:last-child { border-bottom: 0; }
.task-mark { flex: 0 0 10px; height: 10px; border: 2px solid var(--amber); border-radius: 50%; margin-top: 5px; }
.task p { margin: 0; font-size: 14px; line-height: 1.45; }
.task small { display: block; color: var(--muted); margin-top: 4px; }
.page-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.search-box { flex: 1; max-width: 420px; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 11px 14px; color: var(--ink); }
.primary-button { border: 0; border-radius: 12px; background: var(--navy); color: white; padding: 12px 16px; font-weight: 700; min-height: 44px; }
.primary-button:hover { background: var(--navy-2); }
.desktop-table { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: #f7f9fb; color: #526073; font-size: 13px; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 14px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.masked { color: var(--muted); letter-spacing: .08em; }
.mobile-cards { display: none; }
.bottom-nav { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(7,18,30,.58); display: grid; place-items: center; padding: 18px; }
.modal-backdrop.hidden, .toast.hidden { display: none; }
.modal-card { width: min(520px,100%); max-height: calc(100vh - 36px); overflow: auto; background: white; border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.icon-button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: white; font-size: 24px; line-height: 1; }
.role-options { display: grid; gap: 10px; }
.role-option { border: 1px solid var(--line); background: white; border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ink); }
.role-option.selected { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #f7fafd; }
.role-avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--navy); font-weight: 800; }
.role-option strong, .role-option small { display: block; }
.role-option small { color: var(--muted); margin-top: 3px; }
.account-summary { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #f7fafd; }
.account-summary strong, .account-summary small { display: block; }
.account-summary small { color: var(--muted); margin-top: 4px; }
.full-button { width: 100%; margin-top: 16px; }
.secondary-button { border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--navy); padding: 11px 16px; font-weight: 700; min-height: 44px; }
.danger-text { color: var(--red); }
.personnel-card .statement-actions { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.modal-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 15px 2px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid label, .full-label { color: #465468; font-size: 13px; font-weight: 700; }
.form-grid input, .form-grid select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; color: var(--ink); background: white; margin-top: 6px; min-height: 42px; }
textarea { resize: vertical; }
.full-label { display: block; margin: 14px 0; }
.line-items { margin-top: 14px; }
.line-items-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.line-items-hint { color: var(--muted); font-size: 13px; font-weight: 400; margin: 6px 0 9px; }
.color-line-head, .color-line { display: grid; grid-template-columns: 1fr 1fr 135px 120px 38px; gap: 8px; align-items: center; }
.color-line-head { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.color-line { margin-bottom: 8px; }
.color-line input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; min-height: 42px; color: var(--ink); background: white; }
.color-line .icon-button { width: 34px; height: 34px; font-size: 20px; }
.dye-line-head, .dye-line { display: grid; grid-template-columns: 1fr 1fr 1fr 38px; gap: 8px; align-items: center; }
.dye-line-head { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.dye-line { margin-bottom: 8px; }
.dye-line input, .dye-line select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; min-height: 42px; color: var(--ink); background: white; }
.dye-line .icon-button { width: 34px; height: 34px; font-size: 20px; }
.ship-line-head, .ship-line { display: grid; grid-template-columns: 1.15fr .8fr .8fr .85fr .85fr .85fr 38px; gap: 8px; align-items: center; }
.ship-line-head { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.ship-line { margin-bottom: 8px; }
.ship-line input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; min-height: 42px; color: var(--ink); background: white; }
.ship-line .icon-button { width: 34px; height: 34px; font-size: 20px; }
.ship-color-head, .ship-color-line { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 10px; align-items: center; }
.ship-color-head { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.ship-color-line { margin-bottom: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; }
.ship-color-line input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; min-height: 40px; color: var(--ink); background: white; }
.ship-color-line small, .ship-color-line strong { display: block; }
.ship-color-line small { color: var(--muted); margin-top: 3px; }
.shipping-color-summary-list { display: grid; gap: 5px; }
.shipping-color-summary { display: grid; grid-template-columns: 1.2fr .9fr 1fr; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #f7f9fb; font-size: 13px; }
.shipping-color-summary span { color: var(--muted); }
.shipping-color-summary strong { color: var(--navy); }
.empty-inline { color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 13px; text-align: center; }
.link-button { border: 0; padding: 0; background: transparent; color: var(--navy-2); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.field-hint, .form-note { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 6px; line-height: 1.5; }
.year-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; }
.year-filter select { border: 1px solid var(--line); background: white; border-radius: 10px; padding: 10px 12px; color: var(--ink); }
.customer-order-list { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.customer-order-list div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 13px; }
.customer-order-list span { color: var(--muted); text-align: right; }
.score-preview { margin-top: 15px; background: var(--green-soft); color: #205f46; border-radius: 13px; padding: 13px 15px; display: flex; align-items: center; gap: 12px; }
.score-preview strong { font-size: 20px; margin-left: auto; }
.score-preview small { color: #3c745d; }
.inspect-form .primary-button { width: 100%; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 120; background: #12283f; color: white; border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow); font-size: 14px; }
.empty { padding: 42px 20px; text-align: center; color: var(--muted); }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; padding-bottom: 76px; }
  .sidebar { display: none; }
  .topbar { min-height: 88px; padding: 18px 18px 12px; }
  .content { padding: 8px 16px 28px; }
  h1 { font-size: 24px; }
  .role-button > span:nth-child(2) small { display: none; }
  .bottom-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: 70px; padding: 7px 5px calc(7px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(auto-fit,minmax(54px,1fr)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
  .bottom-nav .nav-button { padding: 4px; border-radius: 9px; display: grid; place-items: center; gap: 1px; font-size: 11px; color: #6c7785; }
  .bottom-nav .nav-button.active { background: var(--blue-soft); color: var(--navy); }
  .bottom-nav .nav-icon { font-size: 19px; height: 23px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .finance-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .recon-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: minmax(0,1fr) auto; }
  .order-row .order-meta, .order-row .progress-wrap { grid-column: 1 / -1; }
  .order-row .status { grid-column: 2; grid-row: 1; }
}
@media (max-width: 640px) {
  .topbar { align-items: flex-start; }
  .topbar-actions { align-items: flex-end; flex-direction: column-reverse; gap: 6px; }
  .global-year { font-size: 11px; }
  .global-year select { padding: 7px 24px 7px 9px; }
  .notice { align-items: flex-start; }
  .kpi-grid { gap: 10px; }
  .kpi-card { padding: 15px; border-radius: 15px; }
  .kpi-card strong { font-size: 23px; }
  .finance-kpis { grid-template-columns: 1fr; gap: 9px; }
  .finance-kpis article { padding: 14px 16px; }
  .finance-kpis strong { font-size: 21px; }
  .recon-kpis { grid-template-columns: 1fr 1fr; gap: 9px; }
  .recon-kpis article { padding: 14px 15px; }
  .recon-kpis strong { font-size: 20px; }
  .recon-inline { flex-direction: column; gap: 4px; }
  .recon-subnav { overflow-x: auto; }
  .recon-tab { white-space: nowrap; padding-inline: 10px; }
  .page-tools { align-items: stretch; }
  .search-box { min-width: 0; }
  .desktop-table { display: none; }
  .mobile-cards { display: grid; gap: 10px; padding: 12px; }
  .data-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
  .data-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
  .data-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
  .data-card-grid small, .data-card-grid strong { display: block; }
  .data-card-grid small { color: var(--muted); margin-bottom: 3px; }
  .form-grid { grid-template-columns: 1fr; }
  .color-line-head { display: none; }
  .color-line { grid-template-columns: 1fr 1fr; }
  .color-line input[type="number"] { grid-column: 1; }
  .color-line input[name="sampleQty"] { grid-column: 2; }
  .color-line .icon-button { grid-column: 2; grid-row: 3; justify-self: end; }
  .dye-line-head { display: none; }
  .dye-line { grid-template-columns: 1fr 1fr; }
  .dye-line .dye-pre-treatment { grid-column: 1; }
  .dye-line .icon-button { grid-column: 2; grid-row: 2; justify-self: end; }
  .ship-line-head { display: none; }
  .ship-line { grid-template-columns: 1fr 1fr 1fr; }
  .ship-line .icon-button { grid-column: 3; justify-self: end; }
  .ship-color-head { display: none; }
  .ship-color-line { grid-template-columns: 1fr 1fr; }
  .ship-color-line label { grid-column: 1 / -1; }
  .shipping-color-summary { grid-template-columns: 1fr; gap: 2px; }
  .customer-order-list div { display: block; }
  .customer-order-list span { display: block; text-align: left; margin-top: 3px; }
  .modal-card { padding: 18px; border-radius: 18px; }
  .score-preview { flex-wrap: wrap; }
  .score-preview strong { margin-left: 0; }
  .score-preview small { width: 100%; }
  .toast { left: 16px; right: 16px; bottom: 86px; text-align: center; }
}
