:root {
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: #1b2430;
  background: #f3f6f8;
  font-synthesis: none;
  --ink: #1b2430;
  --muted: #66717f;
  --line: #dfe5ea;
  --panel: #ffffff;
  --nav: #17262f;
  --nav-2: #223640;
  --green: #087f5b;
  --green-2: #e5f5ee;
  --blue: #2065d1;
  --blue-2: #eaf1fc;
  --orange: #b35b12;
  --orange-2: #fff2e5;
  --red: #c33d3d;
  --red-2: #ffeded;
  --shadow: 0 8px 24px rgba(27, 36, 48, 0.07);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(32, 101, 209, .22); outline-offset: 2px; }

.shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 210px; display: flex; flex-direction: column; background: var(--nav); color: #fff; z-index: 20; }
.brand { height: 72px; display: flex; align-items: center; gap: 11px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #0d936a; font-size: 17px; font-weight: 800; }
.brand strong { display: block; font-size: 16px; letter-spacing: 0; }
.brand small { display: block; color: #9cb1bb; margin-top: 2px; font-size: 11px; }
.side-label { color: #78909b; padding: 22px 22px 8px; font-size: 11px; }
.nav { padding: 0 10px; flex: 1; min-height: 0; overflow-y: auto; }
.nav a { height: 38px; display: flex; align-items: center; gap: 10px; color: #c9d5da; text-decoration: none; padding: 0 11px; border-radius: 6px; font-size: 13px; margin-bottom: 2px; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { color: #fff; background: #0c7b5b; }
.nav .icon { width: 22px; text-align: center; font-size: 15px; }
.side-bottom { margin-top: auto; padding: 14px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.org-card { padding: 11px; background: rgba(255,255,255,.06); border-radius: 6px; display: flex; gap: 10px; align-items: center; }
.org-avatar { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: #d89b31; color: #16252d; font-weight: 800; }
.org-card strong { display: block; font-size: 12px; }
.org-card small { color: #96aab4; }

.main { grid-column: 2; min-width: 0; }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 10; }
.crumb { font-size: 14px; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.period-chip { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; color: #4f5b67; font-size: 13px; background: #fff; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: #53606d; border-radius: 50%; position: relative; }
.icon-button:hover { background: #f0f3f5; }
.dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #e35454; right: 7px; top: 7px; border: 2px solid white; }
.switcher { display: flex; background: #edf1f3; border-radius: 6px; padding: 3px; margin-left: 6px; }
.switcher button { border: 0; background: transparent; color: #69747e; padding: 5px 9px; border-radius: 4px; font-size: 12px; }
.switcher button.active { background: #fff; color: #1d2934; box-shadow: 0 1px 4px rgba(0,0,0,.1); }

.content { max-width: 1480px; margin: 0 auto; padding: 26px 28px 54px; }
.page-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.page-head h1 { margin: 0 0 6px; font-size: 24px; font-weight: 700; line-height: 1.3; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.btn { min-height: 36px; border: 1px solid var(--line); background: #fff; color: #33404c; padding: 7px 13px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; text-decoration: none; }
.btn:hover { border-color: #acb8c1; background: #f9fafb; }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: #066e4e; border-color: #066e4e; }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-danger { color: var(--red); border-color: #edc1c1; }
.btn-lg { min-height: 44px; padding: 10px 20px; font-weight: 700; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 18px; min-height: 124px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.stat-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; background: var(--blue-2); color: var(--blue); font-weight: 800; }
.stat:nth-child(2) .stat-icon { background: var(--green-2); color: var(--green); }
.stat:nth-child(3) .stat-icon { background: var(--orange-2); color: var(--orange); }
.stat:nth-child(4) .stat-icon { background: #f0edfb; color: #6748bb; }
.stat-value { font-size: 27px; font-weight: 800; margin: 12px 0 5px; color: #17212b; }
.stat-foot { font-size: 12px; color: #86919a; }
.up { color: var(--green); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 1px 2px rgba(27,36,48,.02); }
.panel + .panel { margin-top: 16px; }
.panel-head { min-height: 54px; padding: 0 18px; border-bottom: 1px solid #e8edf0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-head h2 { font-size: 15px; margin: 0; }
.panel-body { padding: 18px; }
.panel-foot { padding: 12px 18px; border-top: 1px solid #e8edf0; display: flex; justify-content: flex-end; gap: 8px; }
.link { color: var(--blue); text-decoration: none; font-size: 13px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick { padding: 19px 16px; display: flex; gap: 12px; text-decoration: none; color: inherit; border-right: 1px solid #e8edf0; }
.quick:last-child { border: 0; }
.quick:hover { background: #fafcfd; }
.quick-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--green-2); color: var(--green); font-weight: 800; }
.quick:nth-child(2) .quick-icon { background: var(--blue-2); color: var(--blue); }
.quick:nth-child(3) .quick-icon { background: var(--orange-2); color: var(--orange); }
.quick:nth-child(4) .quick-icon { background: #f2eefc; color: #6a4eb9; }
.quick strong { font-size: 14px; display: block; margin: 2px 0 4px; }
.quick small { color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 11px 14px; color: #687480; background: #f7f9fa; border-bottom: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid #edf0f2; white-space: nowrap; }
tbody tr:hover { background: #fbfcfd; }
.company-cell { display: flex; align-items: center; gap: 9px; }
.company-logo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; color: #fff; background: #25886b; font-weight: 700; }
.company-logo.gold { background: #b17424; }
.company-logo.blue { background: #3774b8; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 12px; line-height: 1.4; background: #eef2f4; color: #52606a; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--green-2); color: var(--green); }
.badge-processing { background: var(--blue-2); color: var(--blue); }
.badge-warning { background: var(--orange-2); color: var(--orange); }
.badge-danger { background: var(--red-2); color: var(--red); }
.badge-neutral::before { display: none; }

.progress-row { display: grid; grid-template-columns: 88px 1fr 36px; align-items: center; gap: 10px; margin: 15px 0; font-size: 12px; }
.progress { height: 7px; background: #edf0f2; border-radius: 6px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 19px 23px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #2d866b; }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 15px; bottom: 1px; width: 1px; background: #dfe5e8; }
.timeline li:last-child::after { display: none; }
.timeline small { color: var(--muted); display: block; margin-top: 3px; }

.ai-hero { background: #153a35; color: #fff; border-radius: 7px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; overflow: hidden; position: relative; }
.ai-hero::after { content: "AI"; position: absolute; right: 24px; bottom: -28px; font-size: 118px; font-weight: 900; color: rgba(255,255,255,.04); }
.ai-hero h2 { margin: 0 0 8px; font-size: 20px; }
.ai-hero p { margin: 0; color: #bfd4cd; max-width: 680px; line-height: 1.7; font-size: 13px; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.step { padding: 16px; position: relative; display: flex; align-items: center; gap: 10px; color: #7b858d; font-size: 13px; }
.step:not(:last-child)::after { content: ""; width: 1px; background: #e5e9ec; position: absolute; right: 0; top: 12px; bottom: 12px; }
.step-num { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #eef1f3; font-size: 12px; font-weight: 700; }
.step.active { color: #1a2c28; font-weight: 700; }
.step.active .step-num, .step.done .step-num { background: var(--green); color: #fff; }
.step.done { color: var(--green); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; font-size: 13px; color: #3d4852; font-weight: 600; }
.required::after { content: " *"; color: var(--red); }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 39px; border: 1px solid #ced6dc; border-radius: 5px; padding: 8px 10px; color: var(--ink); background: #fff; }
.form-field textarea { min-height: 82px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #2b76c9; box-shadow: 0 0 0 3px rgba(43,118,201,.1); outline: none; }
.hint { color: #89939c; font-size: 11px; margin-top: 5px; line-height: 1.55; }
.check-row { display: flex; gap: 10px; flex-wrap: wrap; }
.check-card { border: 1px solid #d9e0e5; border-radius: 6px; padding: 11px 13px; display: flex; align-items: center; gap: 8px; min-width: 160px; font-size: 13px; cursor: pointer; }
.check-card:has(input:checked) { border-color: #238269; background: #f0faf6; }
.check-card input { accent-color: var(--green); }
.toggle-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #edf0f2; }
.toggle-line:last-child { border: 0; }
.toggle-line strong { font-size: 13px; }
.toggle-line small { display: block; color: var(--muted); margin-top: 3px; }
.toggle { width: 42px; height: 23px; position: relative; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #c8d0d5; border-radius: 20px; transition: .2s; }
.slider::before { content: ""; width: 17px; height: 17px; position: absolute; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .2s; }
.toggle input:checked + .slider { background: var(--green); }
.toggle input:checked + .slider::before { transform: translateX(19px); }

.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mode-card { min-height: 138px; padding: 17px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; background: #fff; }
.mode-card:hover { border-color: #9eb3aa; background: #fbfdfc; }
.mode-card.selected, .mode-card:has(input:checked) { border-color: var(--green); background: #f0faf6; box-shadow: 0 0 0 2px rgba(8,127,91,.08); }
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--green-2); color: var(--green); font-weight: 800; }
.mode-card strong { display: block; margin: 2px 0 7px; font-size: 15px; }
.mode-card small { display: block; color: var(--muted); line-height: 1.65; }

.summary-box { padding: 14px; background: #f7f9fa; border: 1px solid #e2e7ea; border-radius: 6px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13px; border-bottom: 1px dashed #d9e0e4; }
.summary-line:last-child { border: 0; }
.summary-line strong { font-size: 15px; }
.risk { display: flex; gap: 10px; padding: 12px; border: 1px solid #efcda7; background: #fff8ef; color: #7b4616; border-radius: 6px; font-size: 12px; line-height: 1.6; margin-top: 12px; }
.success-box { padding: 20px; border: 1px solid #b7dfd0; background: #f0faf6; text-align: center; border-radius: 6px; }
.success-check { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; margin: 0 auto 10px; font-size: 24px; }
.ai-review { margin-top: 13px; padding: 14px; border: 1px solid #d8e4e0; background: #f8fbfa; border-radius: 6px; }
.ai-review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ai-review p { color: #4d5d58; font-size: 12px; line-height: 1.65; }
.ai-issue { padding: 10px 0; border-top: 1px solid #e1e9e6; display: grid; gap: 4px; font-size: 12px; }
.ai-issue span { color: #53625d; line-height: 1.6; }
.ai-issue small { color: var(--green); }
.tax-live-panel { margin-bottom: 18px; }
.tax-live-panel .panel-head > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tax-live-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#tax-action-status { color: var(--muted); font-size: 12px; margin-left: auto; }
.track-list { padding: 16px; display: grid; gap: 12px; }
.track-card { border: 1px solid var(--line); border-radius: 6px; padding: 15px 17px; }
.track-meta, .track-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.track-meta strong { display: block; font-size: 13px; }
.track-meta small { display: block; color: var(--muted); margin-top: 4px; }
.invoice-flow { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0; }
.flow-step { position: relative; display: grid; justify-items: center; gap: 7px; color: #8a959d; font-size: 11px; }
.flow-step::before { content: ""; position: absolute; height: 2px; left: -50%; right: 50%; top: 12px; background: #dfe5e8; }
.flow-step:first-child::before { display: none; }
.flow-step span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e8edef; color: #75808a; position: relative; z-index: 1; }
.flow-step.done, .flow-step.current { color: var(--green); }
.flow-step.done::before, .flow-step.current::before { background: var(--green); }
.flow-step.done span, .flow-step.current span { background: var(--green); color: #fff; }
.flow-step.current span { box-shadow: 0 0 0 5px rgba(8,127,91,.12); }
.track-foot { color: var(--muted); font-size: 11px; }
.link-button { border: 0; background: transparent; color: var(--blue); padding: 4px; }
.danger-link { color: var(--red); }
.invoice-verify-layout { padding: 0; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); }
.invoice-verify-layout > * { margin: 0; }
.verify-result { border-left: 1px solid var(--line); }
.verify-success { text-align: center; padding: 16px; }
.verify-success h3 { margin: 10px 0 5px; color: var(--green); }
.certify-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.certify-summary > div { padding: 18px; border-right: 1px solid var(--line); }
.certify-summary > div:last-child { border: 0; }
.certify-summary span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.certify-summary strong { font-size: 16px; }
.warning-text { color: var(--orange); }
.row-actions { display: flex; gap: 4px; align-items: center; }
.workflow-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); border-bottom: 1px solid var(--line); overflow-x: auto; }
.workflow-action { border: 0; border-right: 1px solid var(--line); background: #fff; min-height: 116px; padding: 16px; display: grid; justify-items: start; align-content: center; gap: 6px; text-align: left; }
.workflow-action:last-child { border-right: 0; }
.workflow-action:hover { background: #f8fbfa; }
.workflow-action > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--green-2); color: var(--green); font-size: 11px; font-weight: 800; }
.workflow-action strong { font-size: 13px; }
.workflow-action small { color: var(--muted); line-height: 1.5; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 18px; background: #fff; }
.tab { border: 0; background: transparent; padding: 14px 12px 12px; color: #6a7580; font-size: 13px; border-bottom: 2px solid transparent; }
.tab.active { color: var(--green); border-color: var(--green); font-weight: 700; }
.toolbar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.search { min-width: 240px; height: 36px; border: 1px solid var(--line); border-radius: 5px; padding: 0 11px; }
.filter { height: 36px; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 0 28px 0 10px; color: #53606a; }
.compact-filter { min-width: 120px; }
.quota-input { width: 82px; height: 36px; border: 1px solid var(--line); border-radius: 5px; padding: 0 8px; }
.api-status { display: flex; align-items: center; gap: 14px; padding: 15px; background: #f7faf9; border: 1px solid #dce9e4; border-radius: 6px; }
.api-light { width: 11px; height: 11px; border-radius: 50%; background: #bbb; box-shadow: 0 0 0 5px rgba(0,0,0,.04); }
.api-light.on { background: #13a16e; box-shadow: 0 0 0 5px rgba(19,161,110,.12); }
.api-status strong { display: block; font-size: 13px; }
.api-status small { color: var(--muted); }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #f1f4f5; padding: 3px 6px; border-radius: 3px; }

.empty { padding: 52px 18px; text-align: center; color: var(--muted); }
.empty-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; margin: 0 auto 10px; color: #8a969f; }
.toast { position: fixed; right: 24px; bottom: 24px; min-width: 280px; max-width: 420px; background: #18242b; color: #fff; padding: 13px 16px; border-radius: 6px; box-shadow: var(--shadow); transform: translateY(120px); opacity: 0; transition: .25s; z-index: 100; font-size: 13px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #a62f35; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(14,24,30,.46); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: #fff; width: min(680px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 7px; box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.modal-head { padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; }
.close { border: 0; background: none; font-size: 20px; color: #67727c; }
.hide { display: none !important; }

.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(330px, 42%) 1fr; background: #fff; }
.login-brand { background: #172e34; color: #fff; padding: 64px clamp(32px, 7vw, 100px); display: flex; flex-direction: column; justify-content: space-between; }
.login-brand .brand-mark { width: 44px; height: 44px; font-size: 21px; margin-bottom: 28px; }
.login-brand h1 { font-size: 30px; margin: 0 0 14px; }
.login-brand p { color: #b8cbc9; line-height: 1.8; max-width: 440px; }
.login-foot { color: #8fa7a7; font-size: 12px; }
.login-main { display: grid; place-items: center; padding: 28px; background: #f5f7f8; }
.login-panel { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 34px; box-shadow: var(--shadow); }
.login-panel h2 { font-size: 24px; margin: 18px 0 7px; }
.login-panel > p { color: var(--muted); margin: 0 0 26px; font-size: 13px; }
.login-panel .form-field { margin-bottom: 17px; }
.login-panel .btn { width: 100%; margin-top: 18px; }
.auth-switcher { margin: 0 0 20px; }
.auth-switcher button { flex: 1; }
.remember { display: flex; align-items: center; gap: 7px; color: #596570; font-size: 12px; }
.remember input { accent-color: var(--green); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mode-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick:nth-child(2) { border-right: 0; }
  .quick:nth-child(-n+2) { border-bottom: 1px solid #e8edf0; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-brand { min-height: 220px; padding: 30px 24px; }
  .login-brand h1 { font-size: 24px; }
  .login-foot { display: none; }
  .shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; }
  .brand { height: 60px; }
  .side-label, .side-bottom { display: none; }
  .nav { display: flex; overflow-x: auto; padding: 7px 10px; }
  .nav a { flex: none; margin: 0 4px 0 0; }
  .nav .icon { display: none; }
  .main { width: 100%; }
  .topbar { padding: 0 15px; height: 56px; }
  .period-chip, .icon-button { display: none; }
  .content { padding: 18px 14px 40px; }
  .page-head { display: block; }
  .page-actions { margin-top: 13px; }
  .grid-4, .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick { border-right: 0; border-bottom: 1px solid #e8edf0; }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .ai-hero { padding: 20px; }
  .ai-hero .btn { display: none; }
}
