:root {
  color-scheme: light;
  --ink: #202c29;
  --ink-soft: #42524d;
  --muted: #73817c;
  --line: #e5eae5;
  --line-strong: #d9e0da;
  --canvas: #f5f7f4;
  --surface: #fff;
  --surface-soft: #f8faf7;
  --green: #25594c;
  --green-deep: #19463a;
  --green-soft: #e9f3ed;
  --amber: #956517;
  --amber-soft: #fbf4e5;
  --red: #a4473d;
  --red-soft: #fbefed;
  --shadow: 0 2px 8px rgb(26 42 34 / 3%), 0 1px 2px rgb(26 42 34 / 3%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.5; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgb(53 126 102 / 30%); outline-offset: 2px; }
.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; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 246px; padding: 25px 16px 17px; border-right: 1px solid var(--line); background: #fbfcfa; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; min-height: 43px; }
.brand-mark { display: inline-grid; place-items: center; flex: none; width: 37px; height: 37px; border-radius: 11px; background: var(--green-deep); color: #fff; font-size: 20px; font-weight: 730; letter-spacing: -.07em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.18; }
.brand-copy strong { font-size: 18px; letter-spacing: .045em; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .01em; }
.workspace-label { margin: 38px 11px 12px; color: #8b9690; font-size: 10px; font-weight: 700; letter-spacing: .095em; }
.side-navigation { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 8px; color: #68766f; font-weight: 530; transition: color .16s ease, background .16s ease; }
.nav-link svg { flex: none; color: #78867f; }
.nav-link:hover { background: #f0f4f0; color: var(--ink); }
.nav-link.is-active { background: #eaf2ec; color: var(--green-deep); font-weight: 650; }
.nav-link.is-active svg { color: var(--green); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 10px; }
.demo-card { display: flex; gap: 10px; align-items: flex-start; padding: 13px 11px; border: 1px solid #e5ebe6; border-radius: 9px; background: #f7faf7; }
.demo-dot, .local-badge > span, .live-dot { width: 7px; height: 7px; margin-top: 5px; flex: none; border-radius: 50%; background: #4e906d; box-shadow: 0 0 0 3px #e1f0e5; }
.demo-card div { display: grid; gap: 2px; }
.demo-card strong { font-size: 12px; font-weight: 650; }
.demo-card small { color: var(--muted); font-size: 10px; }
.sidebar-settings { display: flex; align-items: center; gap: 10px; padding: 8px 11px; color: var(--muted); font-size: 12px; }
.sidebar-settings:hover { color: var(--ink); }
.main-column { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 100vh; margin-left: 246px; }
.topbar { position: sticky; z-index: 4; top: 0; display: flex; align-items: center; justify-content: space-between; height: 65px; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 90%); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #8a9690; font-size: 12px; }
.breadcrumb svg { color: #aab3ad; }
.breadcrumb strong { color: #394943; font-weight: 610; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.language-switch { min-width: 64px; padding: 6px 10px; font-size: 11px; white-space: nowrap; }
.local-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid #dfebe2; border-radius: 5px; background: #f4f9f5; color: #3e6951; font-size: 9px; font-weight: 750; letter-spacing: .055em; }
.local-badge > span { width: 6px; height: 6px; margin: 0; box-shadow: none; }
.avatar { display: inline-grid; place-items: center; width: 31px; height: 31px; border: 1px solid #dce6dc; border-radius: 50%; background: #edf3eb; color: #3f6350; font-size: 12px; font-weight: 700; }
.mobile-brand, .mobile-navigation { display: none; }
.mobile-settings { display: none; color: #718078; }
main { flex: 1; min-width: 0; }
.page-wrap { width: min(1420px, 100%); margin: 0 auto; padding: 31px 36px 46px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.eyebrow { margin-bottom: 7px; color: #829088; font-size: 10px; font-weight: 730; letter-spacing: .105em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; color: #1e2b27; font-size: clamp(26px, 2.5vw, 32px); font-weight: 680; letter-spacing: -.035em; line-height: 1.2; }
.page-heading p, .form-heading p { margin-bottom: 0; color: #75817b; font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 640; line-height: 1.1; white-space: nowrap; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease; }
.button svg { flex: none; }
.button-primary { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 1px 2px rgb(23 70 55 / 10%); }
.button-primary:hover:not(:disabled) { border-color: var(--green-deep); background: var(--green-deep); }
.button-secondary { border-color: #dce3dd; background: #fff; color: #415149; }
.button-secondary:hover:not(:disabled) { border-color: #bdcbc0; background: #f8faf8; }
.button-subtle { border-color: #e4e9e4; background: #fff; color: #65736c; }
.button-subtle:hover:not(:disabled) { border-color: #cbd7cd; background: #f7faf7; color: #364a40; }
.button-outline { border-color: #ead2cd; background: #fff; color: #97534a; }
.button-outline:hover:not(:disabled) { border-color: #d7aaa2; background: #fcf6f5; }
.button-quiet { border-color: transparent; background: transparent; color: #65736c; }
.button-quiet:hover { background: #f1f4f1; }
.button-small { min-height: 31px; padding: 0 9px; font-size: 11px; }
.button-full { width: 100%; }
.button-danger-subtle { border-color: #ecd7d4; background: #fff8f7; color: #9b4a41; }
.button-danger-subtle:hover { border-color: #dcb3ae; background: #fbefed; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: #42715a; font-size: 11px; font-weight: 640; }
.text-link:hover { color: #224e3b; }
.demo-notice { display: flex; align-items: center; gap: 9px; min-height: 41px; margin: 0 0 19px; padding: 8px 12px; border: 1px solid #e1eae1; border-radius: 7px; background: #f1f7f1; color: #687970; font-size: 11px; }
.demo-notice-mark { display: grid; place-items: center; flex: none; width: 17px; height: 17px; border: 1px solid #b8d0bd; border-radius: 50%; color: #51805d; font-size: 10px; font-weight: 700; }
.demo-notice strong { color: #395d46; font-weight: 680; }
.demo-notice a { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #4c775a; font-weight: 630; white-space: nowrap; }
.demo-notice a:hover { color: #214f38; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { min-height: 117px; padding: 16px 17px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #6e7b74; font-size: 11px; font-weight: 560; }
.stat-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; }
.tone-green { background: #edf5ef; color: #4e7f59; }
.tone-amber { background: #fbf4e8; color: #a1782e; }
.tone-red { background: #fbefed; color: #af5b50; }
.stat-value { margin-top: 5px; color: #24332d; font-size: 28px; font-weight: 690; letter-spacing: -.04em; line-height: 1.15; }
.stat-note { margin-top: 4px; color: #87918b; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.82fr) minmax(245px, .88fr); gap: 17px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.recent-panel, .attention-panel { min-width: 0; padding: 17px 18px 13px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-heading h2 { margin: 0; color: #293731; font-size: 15px; font-weight: 670; letter-spacing: -.012em; }
.panel-heading p { margin: 3px 0 0; color: #87928c; font-size: 10px; }
.panel-count, .attention-count { display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 12px; background: #f0f3f0; color: #75827a; font-size: 10px; font-weight: 650; }
.attention-count { background: #fbf3e7; color: #8d6a32; }
.list-toolbar { display: flex; align-items: center; gap: 9px; margin: 15px 0 10px; }
.search-field { display: flex; flex: 1; align-items: center; min-width: 140px; height: 34px; padding: 0 9px; border: 1px solid #e2e8e2; border-radius: 6px; background: #fff; color: #98a39c; }
.search-field:focus-within { border-color: #8eaa98; box-shadow: 0 0 0 3px rgb(53 126 102 / 9%); }
.search-field svg { flex: none; }
.search-field input { width: 100%; min-width: 0; height: 100%; padding: 0 0 0 7px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-field input::placeholder { color: #a1aaa4; }
.filter-select select { height: 34px; max-width: 145px; padding: 0 26px 0 9px; border: 1px solid #e2e8e2; border-radius: 6px; background: #fff; color: #637168; font-size: 10px; }
.order-list { display: grid; }
.order-row { display: grid; grid-template-columns: minmax(145px, 1.48fr) minmax(105px, 1.08fr) minmax(115px, 1.1fr) minmax(95px, .9fr) minmax(100px, .98fr) minmax(123px, 1.19fr) 12px; gap: 10px; align-items: center; min-height: 65px; padding: 9px 0; border-top: 1px solid #edf0ed; transition: background .15s ease; }
.order-row:hover { background: #f9fbf9; }
.order-cell { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.order-cell strong { overflow: hidden; color: #394841; font-size: 10px; font-weight: 640; text-overflow: ellipsis; white-space: nowrap; }
.order-cell small { overflow: hidden; color: #929c96; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.order-main { flex-direction: row; align-items: center; gap: 8px; }
.order-main > span:last-child { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.order-avatar, .customer-avatar { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid #dfe9e1; border-radius: 8px; background: #eff5ef; color: #477256; font-size: 11px; font-weight: 700; }
.demo-tag { display: inline-block; margin-left: 3px; padding: 1px 3px; border-radius: 3px; background: #eff5ef; color: #64806a; font-size: 7px; font-weight: 750; letter-spacing: .04em; }
.readiness-cell { gap: 5px; }
.readiness-inline { display: flex; align-items: center; gap: 5px; }
.progress-track { flex: 1; height: 4px; overflow: hidden; border-radius: 5px; background: #eef1ee; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: #78a387; }
.readiness-inline small { width: 22px; color: #78867e; font-size: 9px; text-align: right; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; padding: 4px 7px; border: 1px solid transparent; border-radius: 5px; font-size: 9px; font-weight: 620; line-height: 1.25; white-space: nowrap; }
.status-dot { width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.status-neutral { border-color: #e5e9e6; background: #f7f8f7; color: #758079; }
.status-warning { border-color: #f0e3c5; background: #fdf8ec; color: #916d2e; }
.status-critical { border-color: #efd9d6; background: #fdf4f2; color: #a55249; }
.status-ready { border-color: #d8e8dc; background: #f0f7f1; color: #4d7857; }
.status-approved { border-color: #cadfd0; background: #eaf4ed; color: #356a47; }
.row-arrow { display: grid; place-items: center; color: #b2bbb5; }
.limited-note { margin-top: 8px; padding-top: 9px; border-top: 1px solid #edf0ed; color: #8d9791; font-size: 9px; text-align: right; }
.attention-list { display: grid; margin-top: 11px; }
.attention-item { display: flex; align-items: center; gap: 9px; min-height: 61px; border-top: 1px solid #edf0ed; }
.attention-item:hover .attention-copy strong { color: #37634b; }
.attention-symbol { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 7px; background: #f8f3e8; color: #9d7b3d; }
.attention-symbol.critical { background: #fbefed; color: #ac5a50; }
.attention-copy { display: grid; flex: 1; min-width: 0; gap: 2px; }
.attention-copy strong { overflow: hidden; color: #45524b; font-size: 10px; font-weight: 640; text-overflow: ellipsis; white-space: nowrap; }
.attention-copy small { color: #909b94; font-size: 9px; }
.attention-item > svg { color: #adb7b0; }
.attention-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 11px; border-top: 1px solid #edf0ed; color: #55735e; font-size: 10px; font-weight: 620; }
.attention-empty { display: grid; justify-items: center; gap: 5px; padding: 35px 10px 24px; color: #62916d; text-align: center; }
.attention-empty strong { color: #47574c; font-size: 11px; }
.attention-empty p { margin: 0; color: #8b9690; font-size: 9px; }
.dashboard-footnote { display: flex; align-items: flex-start; gap: 7px; margin-top: 14px; color: #85918a; font-size: 10px; }
.dashboard-footnote svg { flex: none; color: #a28b5b; }
.empty-state { display: grid; justify-items: center; padding: 38px 20px 40px; border-top: 1px solid #edf0ed; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 13px; border: 1px solid #e3ebe4; border-radius: 14px; background: #f1f6f1; color: #67876c; }
.empty-state h3, .not-found h1 { margin: 0 0 5px; color: #35453d; font-size: 15px; font-weight: 660; }
.empty-state p, .not-found p { max-width: 390px; margin: 0 0 15px; color: #829088; font-size: 11px; }
.orders-panel, .customers-panel { padding: 18px; }
.orders-panel .list-toolbar, .customers-panel .list-toolbar { margin-top: 0; margin-bottom: 12px; }
.result-count { margin-left: auto; color: #87928b; font-size: 10px; white-space: nowrap; }
.orders-panel .order-row { grid-template-columns: minmax(180px, 1.5fr) minmax(130px, 1.1fr) minmax(145px, 1.05fr) minmax(120px, .9fr) minmax(130px, .95fr) minmax(155px, 1.2fr) 14px; min-height: 73px; padding-right: 8px; padding-left: 8px; }
.orders-panel .order-cell strong { font-size: 11px; }
.orders-panel .order-cell small { font-size: 10px; }
.orders-panel .status-badge { font-size: 9px; }

/* Order detail and readiness report */
.back-link-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 19px; }
.back-link { display: inline-flex; align-items: center; gap: 5px; color: #718078; font-size: 11px; font-weight: 560; }
.back-link:hover { color: var(--green); }
.detail-updated { color: #929b95; font-size: 10px; }
.detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.detail-heading h1 { font-size: 27px; }
.detail-heading p { margin: 7px 0 0; color: #728079; font-size: 12px; }
.heading-separator { padding: 0 5px; color: #b5beb8; }
.detail-heading-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.analysis-warning, .warning-banner, .safety-note, .form-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid #efe4cb; border-radius: 7px; background: #fcf8ed; color: #806b44; font-size: 10px; }
.analysis-warning { margin-bottom: 15px; }
.analysis-warning svg, .warning-banner svg, .safety-note svg, .form-note svg { flex: none; }
.warning-banner { margin: 0 0 15px; border-color: #efd9d6; background: #fdf4f2; color: #92584f; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, .76fr); align-items: start; gap: 16px; }
.detail-primary, .detail-aside { display: grid; min-width: 0; gap: 15px; }
.readiness-panel, .issues-panel, .briefing-panel, .next-actions-panel, .order-facts, .activity-panel { padding: 17px; }
.readiness-panel .panel-heading { align-items: flex-start; }
.readiness-panel .panel-heading .status-badge { margin-top: 3px; }
.readiness-panel .panel-heading .eyebrow { margin-bottom: 3px; }
.readiness-panel .panel-heading h2 { font-size: 17px; }
.readiness-panel .panel-heading p { font-size: 10px; }
.readiness-score-row { display: flex; align-items: center; gap: 17px; padding: 18px 6px 17px; border-bottom: 1px solid #edf0ed; }
.score-ring { display: grid; place-items: center; flex: none; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(#528165 calc(var(--score) * 1%), #edf1ed 0); position: relative; }
.score-ring::before { position: absolute; inset: 7px; border-radius: 50%; background: white; content: ""; }
.score-ring > span { z-index: 1; display: grid; justify-items: center; line-height: 1.1; }
.score-ring strong { color: #315a42; font-size: 19px; font-weight: 710; letter-spacing: -.045em; }
.score-ring small { margin-top: 3px; color: #8b958e; font-size: 8px; }
.score-explainer h3 { margin: 0 0 4px; color: #35483d; font-size: 12px; font-weight: 650; }
.score-explainer p { max-width: 440px; margin: 0; color: #7f8a83; font-size: 10px; }
.detail-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding-top: 12px; }
.detail-metric { display: grid; gap: 2px; }
.detail-metric span { color: #929c95; font-size: 9px; }
.detail-metric strong { color: #526159; font-size: 14px; font-weight: 670; }
.metric-green { color: #54805e !important; }
.metric-amber { color: #9b772d !important; }
.metric-red { color: #a74e45 !important; }
.issues-panel .panel-heading p { max-width: 460px; }
.issue-list { display: grid; gap: 9px; margin-top: 14px; }
.issue-card { display: flex; gap: 10px; padding: 12px; border: 1px solid #e8ece8; border-radius: 8px; background: #fff; }
.issue-card.is-resolved { background: #fafcf9; }
.issue-marker { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 7px; }
.severity-critical { background: #fbefed; color: #a85249; }
.severity-warning { background: #fbf4e7; color: #99712f; }
.severity-info { background: #eef4f0; color: #688071; }
.issue-content { flex: 1; min-width: 0; }
.issue-topline { display: flex; align-items: center; gap: 8px; }
.issue-severity { font-size: 9px; font-weight: 700; }
.severity-label-critical { color: #a25148; }
.severity-label-warning { color: #98722f; }
.severity-label-info { color: #688071; }
.issue-category { padding-left: 8px; border-left: 1px solid #e4e9e4; color: #9aa39d; font-size: 9px; }
.issue-content h3 { margin: 5px 0 2px; color: #384740; font-size: 11px; font-weight: 670; }
.issue-content p { margin: 0; color: #7b8780; font-size: 10px; }
.issue-action { display: flex; flex-wrap: wrap; gap: 4px 7px; margin-top: 7px; font-size: 9px; }
.issue-action strong { color: #7f8a83; font-weight: 650; }
.issue-action span { color: #4c6a55; }
.issue-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #eff2ef; }
.issue-resolution { display: inline-flex; align-items: center; gap: 4px; color: #87928a; font-size: 9px; }
.issue-buttons { display: flex; align-items: center; gap: 5px; }
.icon-button { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #e3e9e3; border-radius: 6px; background: white; color: #718078; }
.icon-button:hover { border-color: #bfcfc1; background: #f5f9f5; color: #477054; }
.no-issues { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 13px; border: 1px solid #deeadf; border-radius: 7px; background: #f4f9f4; color: #5e8866; }
.no-issues > div { display: grid; gap: 2px; }
.no-issues strong { color: #45634d; font-size: 11px; }
.no-issues p { margin: 0; color: #829289; font-size: 9px; }
.briefing-panel .panel-heading { align-items: flex-start; }
.briefing-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.briefing-panel .eyebrow { margin-bottom: 2px; }
.briefing-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 23px; margin: 14px 0 0; }
.briefing-list > div { min-width: 0; padding: 9px 0; border-top: 1px solid #edf0ed; }
.briefing-list dt, .order-facts dt { margin-bottom: 3px; color: #8b968f; font-size: 9px; font-weight: 560; }
.briefing-list dd, .order-facts dd { margin: 0; color: #45534b; font-size: 10px; overflow-wrap: anywhere; }
.next-actions-panel .panel-heading { margin-bottom: 10px; }
.next-actions-panel .panel-heading h2, .order-facts .panel-heading h2, .activity-panel .panel-heading h2 { font-size: 13px; }
.next-action-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.next-action-list li { display: flex; align-items: flex-start; gap: 7px; color: #62746a; font-size: 10px; }
.next-action-list li svg { flex: none; margin-top: 1px; color: #72907a; }
.next-action-done { display: flex; align-items: center; gap: 7px; color: #53775b; font-size: 10px; }
.review-separator { height: 1px; margin: 14px 0 12px; background: #edf0ed; }
.next-actions-panel h3 { margin: 0 0 4px; color: #536159; font-size: 10px; font-weight: 680; }
.review-copy { margin: 0 0 10px; color: #87928b; font-size: 9px; }
.button-hint { display: block; margin-top: 6px; color: #9a8b68; font-size: 8px; text-align: center; }
.approved-note { display: flex; align-items: center; gap: 7px; padding: 9px; border: 1px solid #d6e7da; border-radius: 6px; background: #f2f8f2; color: #487254; font-size: 10px; }
.order-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 15px; margin: 12px 0 0; }
.order-facts dd { overflow-wrap: anywhere; }
.activity-list { display: grid; margin-top: 10px; }
.activity-item { display: flex; gap: 9px; padding: 8px 0; border-top: 1px solid #f0f2f0; }
.activity-dot { width: 7px; height: 7px; margin: 5px 0 0 2px; flex: none; border: 2px solid #91b19b; border-radius: 50%; background: #fff; }
.activity-item div { display: grid; gap: 2px; }
.activity-item strong { color: #536158; font-size: 9px; font-weight: 600; }
.activity-item small { color: #97a19a; font-size: 8px; }
.analysis-empty, .not-found { display: grid; justify-items: center; padding: 48px 20px; text-align: center; }
.analysis-empty h2 { margin: 0 0 7px; font-size: 16px; }
.analysis-empty p { max-width: 400px; margin: 0 0 16px; color: #829088; font-size: 11px; }

/* Guided order form */
.form-page { max-width: 1060px; }
.autosave-label { display: inline-flex; align-items: center; gap: 5px; color: #789080; font-size: 9px; }
.form-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.form-heading h1 { font-size: 28px; }
.progress-overview { padding: 15px 18px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.progress-caption { display: flex; align-items: center; justify-content: space-between; color: #7b8880; font-size: 10px; }
.progress-caption strong { color: #3f5549; font-weight: 650; }
.wide-progress { height: 5px; overflow: hidden; margin-top: 9px; border-radius: 8px; background: #edf1ed; }
.wide-progress span { display: block; height: 100%; border-radius: inherit; background: #61876c; transition: width .2s ease; }
.stepper { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 12px; }
.step-button { display: flex; align-items: center; gap: 6px; padding: 5px 5px 0 0; border: 0; background: transparent; color: #9aa49d; text-align: left; }
.step-button > span { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 1px solid #e3e8e3; border-radius: 50%; background: #fff; color: #9aa49d; font-size: 8px; font-weight: 650; }
.step-button small { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.step-button.active { color: #365b44; font-weight: 650; }
.step-button.active > span { border-color: #4a7a59; background: #edf5ef; color: #416d4d; }
.step-button.complete { color: #678270; }
.step-button.complete > span { border-color: #d7e6da; background: #eef6ef; color: #4f7d5c; }
.form-card { margin-top: 15px; padding: 21px 22px 0; }
.form-section { min-height: 320px; }
.section-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.section-step { display: grid; place-items: center; flex: none; width: 31px; height: 31px; border-radius: 8px; background: #edf5ef; color: #4b7556; font-size: 10px; font-weight: 750; }
.section-title h2 { margin: 0 0 3px; color: #2d3b34; font-size: 16px; font-weight: 670; letter-spacing: -.015em; }
.section-title p { margin: 0; color: #88938c; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: grid; align-content: start; gap: 5px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > label { display: flex; align-items: baseline; gap: 5px; color: #4e5c54; font-size: 10px; font-weight: 620; }
.required-mark { color: #a4584e; }
.optional-mark { margin-left: auto; color: #a1aaa4; font-size: 8px; font-weight: 470; }
.field input, .field select, .field textarea { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #dfe5df; border-radius: 6px; outline: 0; background: #fff; color: #37463e; font-size: 11px; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 78px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #a7b0aa; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8ba894; box-shadow: 0 0 0 3px rgb(53 126 102 / 9%); }
.field > small { color: #9aa39d; font-size: 8px; }
.field-error { min-height: 0; color: #a65047; font-size: 9px; }
.switch-field { display: flex; align-items: center; align-self: end; gap: 8px; min-height: 37px; padding: 4px 0; }
.switch-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-field > span:last-child { display: grid; gap: 1px; }
.switch-field strong { color: #55635a; font-size: 9px; font-weight: 620; }
.switch-field small { color: #98a29a; font-size: 8px; }
.switch { position: relative; width: 30px; height: 17px; flex: none; border-radius: 12px; background: #dfe5df; transition: background .15s; }
.switch::after { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: white; box-shadow: 0 1px 2px rgb(0 0 0 / 10%); content: ""; transition: transform .15s; }
.switch-field input:checked + .switch { background: #6e9a78; }
.switch-field input:checked + .switch::after { transform: translateX(13px); }
.switch-field input:focus-visible + .switch { outline: 3px solid rgb(53 126 102 / 30%); outline-offset: 2px; }
.form-note { margin-top: 16px; border-color: #e6ece7; background: #f8faf8; color: #77847c; }
.form-note svg { color: #a18a58; }
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checkbox-card { display: flex; align-items: flex-start; gap: 9px; min-height: 59px; padding: 11px; border: 1px solid #e3e9e3; border-radius: 7px; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.checkbox-card:hover { border-color: #c8d7ca; background: #fbfdfb; }
.checkbox-card.checked { border-color: #bbd2c0; background: #f5faf5; }
.checkbox-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkbox-mark { display: grid; place-items: center; width: 17px; height: 17px; margin-top: 1px; flex: none; border: 1px solid #ced8cf; border-radius: 4px; background: #fff; color: transparent; }
.checkbox-card.checked .checkbox-mark { border-color: #588263; background: #588263; color: white; }
.checkbox-card input:focus-visible + .checkbox-mark { outline: 3px solid rgb(53 126 102 / 30%); outline-offset: 2px; }
.checkbox-copy { display: grid; gap: 2px; }
.checkbox-copy strong { color: #4a594f; font-size: 10px; font-weight: 640; }
.checkbox-copy small { color: #929c95; font-size: 8px; }
.form-section > .field { margin-top: 14px; }
.document-list, .site-question-list { display: grid; border-top: 1px solid #edf0ed; }
.document-row, .site-question { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 9px 2px; border-bottom: 1px solid #edf0ed; }
.document-row > div:first-child, .site-question > div:first-child { display: grid; min-width: 155px; gap: 2px; }
.document-row > div:first-child strong, .site-question > div:first-child strong { color: #4d5a52; font-size: 10px; font-weight: 620; }
.document-row > div:first-child small, .site-question > div:first-child small { color: #98a29b; font-size: 8px; }
.choice-row { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.choice-card { display: inline-flex; align-items: center; gap: 5px; min-height: 29px; padding: 0 7px; border: 1px solid #e5eae5; border-radius: 5px; background: #fff; color: #7d8881; cursor: pointer; font-size: 8px; white-space: nowrap; }
.choice-card:hover { border-color: #c7d5c9; }
.choice-card.selected { border-color: #bdd3c0; background: #f1f7f1; color: #4c7053; }
.choice-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-radio { width: 9px; height: 9px; border: 1px solid #cbd5cc; border-radius: 50%; background: #fff; }
.choice-card.selected .choice-radio { border: 3px solid #64906b; }
.choice-card input:focus-visible + .choice-radio { outline: 3px solid rgb(53 126 102 / 30%); outline-offset: 2px; }
.site-question { min-height: 67px; }
.safety-note { margin-top: 15px; border-color: #efe4cb; background: #fcf8ed; color: #7e6b47; }
.safety-note svg { color: #a18a58; }
.conditional-panel { margin-top: 15px; padding: 13px; border: 1px solid #e1e9e1; border-radius: 7px; background: #f8fbf8; }
.conditional-label { display: flex; align-items: center; gap: 6px; color: #5b7c62; font-size: 9px; font-weight: 650; }
.conditional-panel .field { margin-top: 11px; }
.conditional-empty { display: flex; align-items: center; min-height: 75px; margin-top: 12px; padding: 13px; border: 1px dashed #dde5dd; border-radius: 7px; color: #95a099; font-size: 9px; }
.upload-placeholder { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px; border: 1px dashed #dce5dd; border-radius: 8px; background: #fafcf9; }
.upload-icon { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 8px; background: #eff4ef; color: #76907a; }
.upload-placeholder > div { flex: 1; }
.upload-placeholder strong { color: #556359; font-size: 10px; font-weight: 640; }
.upload-placeholder p { margin: 2px 0 0; color: #929c95; font-size: 8px; }
.coming-label { flex: none; padding: 4px 6px; border-radius: 4px; background: #f0f3f0; color: #8d9790; font-size: 8px; }
.analysis-method { display: flex; align-items: center; gap: 9px; margin-top: 15px; padding: 11px; border: 1px solid #dfe9e0; border-radius: 7px; background: #f5f9f5; }
.method-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: #e4f0e5; color: #4f7958; font-size: 11px; font-weight: 780; }
.analysis-method strong { color: #526757; font-size: 9px; font-weight: 650; }
.analysis-method p { margin: 1px 0 0; color: #8a988d; font-size: 8px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 23px -22px 0; padding: 12px 22px; border-top: 1px solid #ebefeb; background: #fcfdfc; }
.form-footer > div { display: flex; align-items: center; gap: 7px; }
.required-legend { color: #919b94; font-size: 9px; }
.form-privacy-note { display: flex; align-items: center; gap: 6px; margin: 11px 1px 0; color: #939d96; font-size: 8px; }
.form-privacy-note svg { color: #9aa69d; }
.form-error-banner { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 11px 13px; border: 1px solid #efd5d1; border-radius: 7px; background: #fdf4f2; color: #91564f; font-size: 10px; }
.form-error-banner > svg { flex: none; margin-top: 1px; }
.form-error-banner strong { font-size: 10px; }
.form-error-banner ul { margin: 3px 0 0; padding-left: 16px; color: #a06057; font-size: 9px; }

/* Customers and settings */
.customer-list { display: grid; }
.customer-row { display: grid; grid-template-columns: 34px minmax(180px, 1.4fr) minmax(100px, .9fr) minmax(70px, .55fr) minmax(190px, 1.3fr); gap: 10px; align-items: center; min-height: 71px; padding: 9px 3px; border-top: 1px solid #edf0ed; }
.customer-avatar { width: 32px; height: 32px; border-radius: 50%; }
.customer-main { display: grid; min-width: 0; gap: 2px; }
.customer-main strong { overflow: hidden; color: #435148; font-size: 11px; font-weight: 640; text-overflow: ellipsis; white-space: nowrap; }
.customer-main small { overflow: hidden; color: #949e97; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.customer-type, .customer-order-count { color: #7c8981; font-size: 9px; }
.customer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 15px; }
.settings-card { padding: 19px; }
.settings-card-heading { display: flex; align-items: center; gap: 10px; }
.settings-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #edf5ef; color: #557e5e; }
.settings-mark-muted { background: #f0f3f1; color: #708077; }
.settings-card-heading h2 { margin: 0 0 2px; color: #334139; font-size: 13px; font-weight: 670; }
.settings-card-heading p { margin: 0; color: #8b968f; font-size: 9px; }
.settings-status { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; padding: 11px; border: 1px solid #e1eae2; border-radius: 7px; background: #f7faf7; }
.settings-status .live-dot { margin: 0; }
.settings-status div { display: grid; flex: 1; gap: 2px; }
.settings-status strong { color: #53675a; font-size: 10px; font-weight: 650; }
.settings-status small { color: #929c95; font-size: 8px; }
.settings-status .local-badge { font-size: 8px; }
.settings-copy p, .settings-hint { margin: 0 0 7px; color: #78857d; font-size: 9px; }
.settings-divider { height: 1px; margin: 16px 0 13px; background: #edf0ed; }
.settings-card h3 { margin: 0 0 4px; color: #58655d; font-size: 10px; font-weight: 680; }
.settings-card > .button { margin-top: 6px; }
.capability-list { display: grid; gap: 12px; margin: 17px 0 0; padding: 0; list-style: none; }
.capability-list li { display: flex; align-items: flex-start; gap: 8px; }
.capability-list li > span { display: grid; place-items: center; width: 19px; height: 19px; flex: none; border-radius: 50%; background: #edf5ef; color: #5c8864; }
.capability-list li > .capability-off { background: #f3f4f3; color: #929a94; font-size: 11px; font-weight: 650; }
.capability-list li div { display: grid; gap: 2px; }
.capability-list strong { color: #526057; font-size: 9px; font-weight: 630; }
.capability-list small { color: #929c95; font-size: 8px; }
.rules-version { display: inline-flex; margin-top: 7px; padding: 5px 7px; border: 1px solid #e5eae5; border-radius: 4px; background: #fafbfa; color: #839087; font-size: 8px; }
.storage-warning { margin: 15px 36px 0; }
.toast-region { position: fixed; z-index: 20; right: 22px; bottom: 22px; display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; max-width: min(420px, calc(100vw - 30px)); padding: 11px 14px; border: 1px solid #d8e7da; border-radius: 8px; background: #fff; box-shadow: 0 8px 26px rgb(26 42 34 / 13%); color: #496852; font-size: 11px; animation: toast-in .2s ease-out; }
.toast svg { flex: none; color: #5d8868; }
.toast-error { border-color: #efd7d3; color: #96574f; }
.toast-error svg { color: #ab5c52; }
@keyframes toast-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1240px) {
  .page-wrap { padding-right: 25px; padding-left: 25px; }
  .topbar { padding-right: 25px; padding-left: 25px; }
  .sidebar { width: 222px; }
  .main-column { margin-left: 222px; }
  .order-row { grid-template-columns: minmax(130px, 1.4fr) minmax(95px, .95fr) minmax(100px, 1fr) minmax(82px, .78fr) minmax(91px, .9fr) minmax(112px, 1.1fr) 10px; gap: 7px; }
  .detail-grid { grid-template-columns: minmax(0, 1.55fr) minmax(245px, .8fr); }
}
@media (max-width: 1050px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .attention-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .attention-panel > .panel-heading { grid-column: 1 / -1; }
  .attention-list { margin-top: 5px; }
  .attention-footer { align-self: end; margin-left: 12px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-panel { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orders-panel .order-row { grid-template-columns: minmax(145px, 1.3fr) minmax(100px, 1fr) minmax(115px, 1fr) minmax(95px, .85fr) minmax(115px, .95fr) minmax(135px, 1.12fr) 12px; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .main-column { margin-left: 0; padding-bottom: 62px; }
  .topbar { height: 55px; padding: 0 16px; }
  .mobile-brand { display: flex; align-items: center; gap: 7px; color: #34433b; font-size: 14px; letter-spacing: .04em; }
  .mobile-brand .brand-mark { width: 29px; height: 29px; border-radius: 8px; font-size: 16px; }
  .breadcrumb { display: none; }
  .topbar-right { gap: 9px; }
  .mobile-settings { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
  .local-badge { padding: 5px 6px; font-size: 8px; }
  .avatar { width: 28px; height: 28px; }
  .mobile-navigation { position: fixed; z-index: 6; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: 61px; padding: 5px 8px max(5px, env(safe-area-inset-bottom)); border-top: 1px solid #e3e9e3; background: rgb(255 255 255 / 96%); backdrop-filter: blur(12px); }
  .mobile-navigation .nav-link { flex-direction: column; justify-content: center; gap: 2px; height: auto; padding: 2px 3px; border-radius: 6px; font-size: 8px; }
  .mobile-navigation .nav-link svg { width: 17px; height: 17px; }
  .page-wrap { padding: 23px 16px 28px; }
  .page-heading { align-items: flex-start; margin-bottom: 17px; }
  h1 { font-size: 26px; }
  .page-heading p { max-width: 450px; font-size: 11px; }
  .page-heading > .button { min-height: 35px; padding: 0 9px; font-size: 10px; }
  .page-heading > .button svg { width: 15px; height: 15px; }
  .demo-notice { flex-wrap: wrap; gap: 6px 8px; font-size: 9px; }
  .demo-notice a { margin-left: 25px; }
  .stats-grid { gap: 9px; margin-bottom: 13px; }
  .stat-card { min-height: 100px; padding: 12px; }
  .stat-top { font-size: 9px; }
  .stat-icon { width: 27px; height: 27px; }
  .stat-icon svg { width: 16px; height: 16px; }
  .stat-value { font-size: 24px; }
  .stat-note { font-size: 8px; }
  .recent-panel, .attention-panel { padding: 14px 12px 11px; }
  .panel-heading h2 { font-size: 13px; }
  .panel-heading p { font-size: 9px; }
  .list-toolbar { gap: 6px; }
  .filter-select select { max-width: 122px; padding-right: 18px; font-size: 9px; }
  .search-field { height: 33px; padding: 0 7px; }
  .search-field input { font-size: 10px; }
  .order-row, .orders-panel .order-row { grid-template-columns: minmax(0, 1fr) 12px; gap: 5px; min-height: 0; padding: 11px 1px; }
  .order-row .customer-cell, .order-row .scope-cell, .order-row .date-cell, .order-row .location-cell { display: none; }
  .order-row .readiness-cell { grid-column: 1 / 2; flex-direction: row; align-items: center; gap: 8px; }
  .order-row .readiness-inline { width: 90px; }
  .order-row .status-badge { font-size: 8px; }
  .row-arrow { grid-column: 2; grid-row: 1 / 3; }
  .order-cell strong { font-size: 10px; }
  .order-cell small { font-size: 8px; }
  .order-avatar { width: 27px; height: 27px; }
  .attention-panel { display: block; }
  .attention-list { margin-top: 9px; }
  .attention-footer { margin-left: 0; }
  .limited-note { font-size: 8px; }
  .dashboard-footnote { font-size: 9px; }
  .orders-panel, .customers-panel { padding: 12px; }
  .orders-panel .order-row .readiness-cell .status-badge { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .back-link-wrap { align-items: flex-start; margin-bottom: 14px; }
  .detail-updated, .autosave-label { font-size: 8px; text-align: right; }
  .detail-heading { display: grid; gap: 12px; align-items: start; }
  .detail-heading h1 { font-size: 23px; }
  .detail-heading-actions { justify-content: flex-start; }
  .detail-heading-actions .status-badge { margin-left: auto; }
  .detail-heading-actions .button { min-height: 34px; padding: 0 9px; font-size: 9px; }
  .readiness-panel, .issues-panel, .briefing-panel, .next-actions-panel, .order-facts, .activity-panel { padding: 13px; }
  .readiness-score-row { gap: 12px; padding: 14px 1px; }
  .score-ring { width: 72px; height: 72px; }
  .score-ring::before { inset: 6px; }
  .score-ring strong { font-size: 17px; }
  .detail-metrics { grid-template-columns: repeat(2, 1fr); row-gap: 9px; }
  .detail-aside { grid-template-columns: 1fr; }
  .activity-panel { grid-column: auto; }
  .briefing-panel .panel-heading { display: grid; }
  .briefing-actions { justify-content: flex-start; }
  .briefing-list { grid-template-columns: 1fr; gap: 0; }
  .briefing-list > div { padding: 7px 0; }
  .briefing-list dt, .order-facts dt { font-size: 8px; }
  .briefing-list dd, .order-facts dd { font-size: 9px; }
  .issue-card { gap: 7px; padding: 9px; }
  .issue-bottom { align-items: flex-start; flex-direction: column; }
  .issue-buttons { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .issue-buttons .button { font-size: 9px; }
  .issue-content h3 { font-size: 10px; }
  .issue-content p { font-size: 9px; }
  .form-heading { align-items: flex-start; }
  .form-heading h1 { font-size: 24px; }
  .form-heading p { max-width: 340px; font-size: 10px; }
  .form-heading > .button { min-height: 32px; padding: 0 8px; font-size: 9px; }
  .progress-overview { padding: 12px; }
  .step-button { flex-direction: column; gap: 3px; padding-right: 2px; text-align: center; }
  .step-button small { width: 100%; font-size: 7px; }
  .step-button > span { width: 20px; height: 20px; font-size: 7px; }
  .form-card { padding: 15px 13px 0; }
  .section-title { gap: 9px; margin-bottom: 16px; }
  .section-title h2 { font-size: 14px; }
  .section-title p { font-size: 9px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .field-wide { grid-column: auto; }
  .switch-field { align-self: start; }
  .scope-grid { grid-template-columns: 1fr; gap: 6px; }
  .checkbox-card { min-height: 51px; padding: 8px; }
  .document-row, .site-question { align-items: flex-start; flex-direction: column; gap: 6px; padding: 9px 0; }
  .document-row > div:first-child, .site-question > div:first-child { min-width: 0; }
  .choice-row { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .choice-card { min-height: 27px; padding: 0 6px; font-size: 8px; }
  .document-choice-row { flex-wrap: nowrap; }
  .document-choice-row .choice-card { gap: 3px; padding: 0 4px; font-size: 7px; }
  .upload-placeholder { align-items: flex-start; flex-wrap: wrap; }
  .coming-label { margin-left: 45px; }
  .form-footer { align-items: stretch; flex-direction: column-reverse; margin: 20px -13px 0; padding: 10px 13px; }
  .form-footer > div { justify-content: space-between; }
  .form-footer > div:last-child { justify-content: flex-end; }
  .form-footer .button { min-height: 36px; }
  .form-privacy-note { font-size: 7px; }
  .customer-row { grid-template-columns: 32px 1fr auto; gap: 7px; min-height: 78px; }
  .customer-type { display: none; }
  .customer-order-count { text-align: right; }
  .customer-links { grid-column: 2 / -1; }
  .customer-main strong { font-size: 10px; }
  .customer-main small { font-size: 8px; }
  .settings-grid { grid-template-columns: 1fr; }
  .storage-warning { margin: 12px 16px 0; }
}
@media (max-width: 420px) {
  .page-heading { gap: 8px; }
  .page-heading > .button { align-self: flex-start; }
  .demo-notice a { margin-left: 25px; }
  .detail-updated { max-width: 150px; }
  .local-badge { font-size: 7px; }
  .document-choice-row .choice-card { font-size: 6px; }
  .form-heading > .button { white-space: normal; }
  .issue-buttons .button-small { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  :root { --canvas: #fff; }
  body, html { background: #fff !important; }
  .sidebar, .topbar, .mobile-navigation, .back-link-wrap, .detail-heading-actions, .briefing-actions,
  .next-actions-panel, .activity-panel, .issue-buttons, .toast-region, .dashboard-footnote { display: none !important; }
  .main-column { margin: 0 !important; }
  .page-wrap { width: 100%; max-width: none; padding: 0; }
  .detail-grid { grid-template-columns: 1fr; gap: 8px; }
  .detail-aside { display: none; }
  .panel { box-shadow: none; break-inside: avoid; }
  .detail-heading { margin-bottom: 8px; }
  .detail-heading h1 { font-size: 21px; }
  .analysis-warning { margin: 0 0 8px; }
  .detail-primary { gap: 8px; }
  .readiness-panel, .issues-panel, .briefing-panel { padding: 11px; }
  .issue-card { break-inside: avoid; }
  .briefing-list { grid-template-columns: repeat(2, 1fr); }
  a { text-decoration: none; }
}
