:root {
  --ink: #172321;
  --muted: #687572;
  --line: #dce3e1;
  --bg: #f4f7f6;
  --panel: #ffffff;
  --teal: #087d70;
  --teal-dark: #075e57;
  --teal-soft: #e6f4f1;
  --blue: #3579b9;
  --blue-soft: #eaf2fa;
  --amber: #d99618;
  --amber-soft: #fff3d8;
  --coral: #c95f4a;
  --coral-soft: #faebe7;
  --shadow: 0 8px 28px rgba(20, 45, 40, .07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "DM Sans", sans-serif; letter-spacing: 0; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: #153d38; color: #fff; padding: 24px 16px 18px; display: flex; flex-direction: column; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: #f1c957; color: #173b36; font: 700 18px Manrope, sans-serif; border-radius: 7px; }
.brand div:last-child { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font: 700 15px Manrope, sans-serif; }
.brand span { color: #a7c2bd; font-size: 12px; margin-top: 2px; }
.role-switcher { margin: -8px 4px 18px; padding: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 7px; }
.role-switcher label { display: block; color: #a7c2bd; font-size: 9px; font-weight: 700; text-transform: uppercase; margin-bottom: 7px; }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap > svg { position: absolute; width: 14px; color: #f1c957; pointer-events: none; }
.select-wrap > svg:first-child { left: 8px; }
.select-wrap > svg:last-child { right: 7px; color: #a7c2bd; }
.select-wrap select { width: 100%; height: 34px; appearance: none; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; background: #214b45; color: white; padding: 0 26px 0 29px; font: 600 10px "DM Sans", sans-serif; outline: 0; }
.nav-list { display: grid; gap: 4px; }
.nav-item { appearance: none; border: 0; background: transparent; color: #c5d6d2; min-height: 42px; padding: 0 11px; border-radius: 7px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; cursor: pointer; text-align: left; font-size: 13px; font-weight: 600; }
.nav-item svg { width: 18px; }
.nav-item b { font-size: 10px; background: rgba(255,255,255,.12); padding: 3px 6px; border-radius: 9px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: #087d70; }
.nav-item .alert-count, .alert-count { background: #f1c957; color: #503f0e; }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; }
.support-card { display: flex; gap: 10px; padding: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 7px; }
.support-card svg { width: 18px; flex: 0 0 auto; color: #f1c957; }
.support-card div { display: flex; flex-direction: column; gap: 3px; }
.support-card strong { font-size: 12px; }
.support-card span { color: #a7c2bd; font-size: 10px; line-height: 1.35; }
.user-card { border: 0; border-top: 1px solid rgba(255,255,255,.1); background: transparent; padding: 14px 4px 0; display: grid; grid-template-columns: 34px 1fr 16px; gap: 9px; align-items: center; color: white; text-align: left; cursor: pointer; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #dcece9; color: #17645b; font-weight: 700; font-size: 11px; }
.user-card > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.user-card strong { font-size: 12px; }
.user-card small { color: #a7c2bd; font-size: 10px; margin-top: 2px; }
.user-card svg { width: 14px; }
.main { min-width: 0; }
.topbar { height: 78px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 20px; padding: 0 28px; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.page-heading { margin-right: auto; min-width: 0; }
.role-preview-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfe0dc; background: #f1f7f5; color: #27645c; border-radius: 6px; padding: 7px 9px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.role-preview-badge svg { width: 14px; }
.quick-vo-btn { white-space: nowrap; }
.quick-vo-btn svg { width: 14px; }
.eyebrow, .section-label { display: block; color: var(--muted); text-transform: uppercase; font-size: 9px; font-weight: 700; letter-spacing: .12em; margin-bottom: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 700 21px Manrope, sans-serif; margin-bottom: 0; }
h2 { font: 700 16px Manrope, sans-serif; margin-bottom: 0; }
h3 { font: 700 14px Manrope, sans-serif; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.search { width: 280px; height: 38px; border: 1px solid var(--line); background: #f8faf9; border-radius: 7px; display: flex; align-items: center; gap: 8px; padding: 0 9px; }
.search svg { width: 16px; color: var(--muted); }
.search input { border: 0; background: transparent; outline: 0; flex: 1; min-width: 0; font-size: 12px; }
kbd { border: 1px solid var(--line); background: white; color: var(--muted); font-size: 9px; padding: 2px 5px; border-radius: 4px; }
.icon-btn, .primary-btn, .secondary-btn, .text-btn { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); background: white; border-radius: 7px; position: relative; }
.icon-btn svg { width: 17px; }
.icon-btn.small { width: 30px; height: 30px; }
.icon-btn.small svg { width: 14px; }
.primary-btn, .secondary-btn { min-height: 38px; padding: 0 14px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.primary-btn { color: white; background: var(--teal); }
.primary-btn:hover { background: var(--teal-dark); }
.primary-btn:disabled { opacity: .45; cursor: not-allowed; }
.secondary-btn { color: #354441; background: white; border: 1px solid var(--line); }
.secondary-btn:hover { border-color: #a5b8b4; }
.primary-btn svg, .secondary-btn svg, .text-btn svg { width: 15px; }
.text-btn { padding: 0; background: transparent; color: var(--teal); font-size: 11px; font-weight: 700; }
.full { width: 100%; }
.notification-dot { width: 6px; height: 6px; border-radius: 50%; position: absolute; background: var(--coral); top: 8px; right: 8px; border: 1px solid white; }
.mobile-menu { display: none; }
.view { display: none; padding: 24px 28px 40px; }
.view.active { display: block; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); padding: 17px; min-height: 132px; border-radius: 7px; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; box-shadow: 0 2px 10px rgba(20,45,40,.025); }
.kpi-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; grid-row: 1 / 3; }
.kpi-icon svg { width: 18px; }
.kpi-icon.teal, .activity-icon.teal { color: var(--teal); background: var(--teal-soft); }
.kpi-icon.blue, .activity-icon.blue { color: var(--blue); background: var(--blue-soft); }
.kpi-icon.amber, .activity-icon.amber { color: var(--amber); background: var(--amber-soft); }
.kpi-icon.coral, .activity-icon.coral { color: var(--coral); background: var(--coral-soft); }
.kpi > span { color: var(--muted); font-size: 11px; align-self: end; }
.kpi > strong { font: 700 25px Manrope, sans-serif; }
.kpi > small { grid-column: 1 / 3; color: var(--muted); font-size: 10px; align-self: end; }
.kpi small b { color: var(--teal); }
.kpi small .warn { color: #9c6710; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); gap: 16px; margin-bottom: 16px; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 2px 10px rgba(20,45,40,.025); }
.panel-heading { min-height: 66px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.workflow { padding: 24px 20px 20px; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto; align-items: start; }
.workflow-step { border: 0; background: transparent; cursor: pointer; padding: 0; display: flex; flex-direction: column; align-items: center; min-width: 86px; }
.workflow-step > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #cbd7d4; background: white; color: #84918e; font-size: 11px; font-weight: 700; }
.workflow-step > span svg { width: 14px; }
.workflow-step strong { font-size: 10px; margin-top: 8px; text-align: center; }
.workflow-step small { font-size: 9px; color: var(--muted); margin-top: 3px; }
.workflow-step.complete > span { background: var(--teal); border-color: var(--teal); color: white; }
.workflow-step.current > span { background: #f1c957; border-color: #f1c957; color: #4b3c12; box-shadow: 0 0 0 5px #fff7d8; }
.connector { height: 2px; background: #dce3e1; margin-top: 14px; }
.connector.complete { background: var(--teal); }
.featured-project { border-top: 1px solid var(--line); padding: 15px 18px; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 15px; background: #fbfcfc; border-radius: 0 0 7px 7px; }
.project-code { color: var(--teal); background: var(--teal-soft); padding: 6px 8px; border-radius: 5px; font-size: 9px; font-weight: 700; }
.featured-info h3 { margin-bottom: 3px; font-size: 12px; }
.featured-info p, .featured-meta span { color: var(--muted); font-size: 10px; margin-bottom: 0; }
.featured-meta { display: flex; flex-direction: column; gap: 3px; }
.featured-meta strong { font-size: 10px; }
.activity-list { padding: 4px 15px 10px; }
.activity { border: 0; border-bottom: 1px solid #edf1f0; background: transparent; width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; cursor: pointer; text-align: left; }
.activity:last-child { border-bottom: 0; }
.activity-icon { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; }
.activity-icon svg { width: 15px; }
.activity > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.activity strong { font-size: 10px; }
.activity small, .activity time { color: var(--muted); font-size: 9px; }
.legend { display: flex; gap: 14px; font-size: 10px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.ontrack { background: var(--teal); }
.dot.attention { background: var(--amber); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
#payments-view table { min-width: 600px; }
#payments-view th, #payments-view td { padding-left: 11px; padding-right: 11px; }
th { padding: 9px 16px; background: #f8faf9; color: var(--muted); font-size: 9px; font-weight: 700; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
td { padding: 13px 16px; border-top: 1px solid #edf1f0; font-size: 11px; }
td strong { display: block; font-size: 11px; }
td small { display: block; color: var(--muted); font-size: 9px; margin-top: 2px; }
.progress-cell { display: flex; align-items: center; gap: 8px; }
.mini-progress { width: 64px; height: 5px; background: #e8edec; border-radius: 4px; overflow: hidden; }
.mini-progress span { display: block; height: 100%; background: var(--teal); }
.status-pill { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; border-radius: 11px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-pill.success { color: #087164; background: var(--teal-soft); }
.status-pill.warning { color: #8b5b0a; background: var(--amber-soft); }
.status-pill.neutral { color: #586562; background: #edf1f0; }
.view-toolbar { min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.toolbar-actions { display: flex; gap: 8px; }
.segmented { display: inline-flex; background: #e7edeb; padding: 3px; border-radius: 7px; }
.segmented button { border: 0; background: transparent; padding: 7px 12px; border-radius: 5px; color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; }
.segmented button.active { background: white; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project-card { background: white; border: 1px solid var(--line); border-radius: 7px; padding: 17px; cursor: pointer; }
.project-card:hover { border-color: #9eb5b0; box-shadow: var(--shadow); }
.project-card-head { display: flex; justify-content: space-between; align-items: start; }
.project-card h3 { margin: 10px 0 4px; }
.project-card p { color: var(--muted); font-size: 10px; margin-bottom: 17px; }
.project-card .mini-progress { width: 100%; height: 6px; }
.card-metrics { display: flex; justify-content: space-between; margin-top: 8px; font-size: 9px; color: var(--muted); }
.project-card-footer { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.split-layout { display: grid; grid-template-columns: minmax(0, 2fr) 320px; gap: 16px; }
.split-layout.single-column { grid-template-columns: 1fr; }
.quotation-panel { margin-bottom: 16px; }
.quotation-actions { display: flex; align-items: center; gap: 8px; }
.quotation-preview { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; padding: 0 18px 18px; }
.quotation-preview div { padding: 14px; border: 1px solid var(--line); border-right: 0; display: flex; flex-direction: column; gap: 5px; }
.quotation-preview div:first-child { border-radius: 7px 0 0 7px; }
.quotation-preview div:last-child { border-right: 1px solid var(--line); border-radius: 0 7px 7px 0; }
.quotation-preview span, .quotation-preview small { color: var(--muted); font-size: 9px; }
.quotation-preview strong { font-size: 11px; }
.quote-lines { display: grid; gap: 7px; }
.quote-lines span { display: grid; grid-template-columns: 1fr 60px 110px; gap: 8px; align-items: center; }
.quote-lines input { min-width: 0; }
.detail-panel { padding-bottom: 18px; }
.detail-panel > .section-label, .detail-panel > h2 { margin-left: 18px; margin-right: 18px; }
.detail-panel > .section-label { margin-top: 18px; }
.automation-flow { padding: 22px 18px; }
.auto-item { display: flex; gap: 12px; align-items: center; }
.auto-item > svg { width: 34px; height: 34px; padding: 8px; border-radius: 7px; background: #edf1f0; color: #697773; }
.auto-item.done > svg { background: var(--teal-soft); color: var(--teal); }
.auto-item span { display: flex; flex-direction: column; gap: 2px; }
.auto-item strong { font-size: 11px; }
.auto-item small { color: var(--muted); font-size: 9px; }
.auto-line { height: 20px; width: 1px; background: var(--line); margin-left: 17px; }
.detail-panel > .full { width: calc(100% - 36px); margin: 0 18px; }
.role-banner { margin: 14px 18px 4px; padding: 12px; border: 1px solid #cfe2de; background: #f2f8f6; border-radius: 7px; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; }
.role-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: var(--teal-soft); color: var(--teal); }
.role-icon svg { width: 17px; }
.role-banner div { display: flex; flex-direction: column; gap: 2px; }
.role-banner strong { font-size: 10px; }
.role-banner small { color: var(--muted); font-size: 9px; }
.bank-record { margin: 15px 18px 0; border: 1px solid var(--line); border-radius: 7px; background: #f8faf9; }
.bank-record div { min-height: 36px; padding: 7px 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bank-record div:last-child { border-bottom: 0; }
.bank-record span { color: var(--muted); font-size: 9px; }
.bank-record strong { font-size: 10px; }
.auto-item.current-auto > svg { background: var(--amber-soft); color: var(--amber); }
.operation-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.operation-v3-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 16px; }
.record-grid, .roro-summary { display: grid; grid-template-columns: repeat(2,1fr); padding: 0 18px 14px; }
.record-grid div, .roro-summary div { min-height: 58px; padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.record-grid div:nth-child(odd), .roro-summary div:nth-child(odd) { padding-right: 14px; }
.record-grid span, .roro-summary span { color: var(--muted); font-size: 9px; }
.record-grid strong, .roro-summary strong { font-size: 10px; }
.generated-records > button, .roro-panel > button { margin: 0 18px 18px; }

.planning-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); gap: 16px; }
.calendar-list { padding: 0 18px 18px; display: grid; gap: 9px; }
.calendar-list article { min-height: 76px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.calendar-list time { width: 46px; height: 52px; border-radius: 7px; background: var(--teal-soft); color: var(--teal); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.calendar-list time strong { font-size: 17px; line-height: 1; }
.calendar-list time span { font-size: 8px; text-transform: uppercase; margin-top: 3px; }
.calendar-list h3 { font-size: 11px; margin: 4px 0; }
.calendar-list p { color: var(--muted); font-size: 9px; margin: 0; }
.generated-task-list { padding: 0 18px 14px; display: grid; gap: 7px; }
.generated-task-list label { padding: 10px; border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.generated-task-list label span { display: flex; flex-direction: column; gap: 3px; }
.generated-task-list strong { font-size: 10px; }
.generated-task-list small { color: var(--muted); font-size: 8px; }
.task-generation-panel > button { width: calc(100% - 36px); margin: 0 18px 18px; }
.completion-ring { width: 42px; height: 42px; border-radius: 50%; border: 5px solid var(--teal); border-right-color: #dce3e1; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.checklist { padding: 5px 18px 14px; }
.checklist label { min-height: 58px; display: grid; grid-template-columns: 18px 1fr 28px; gap: 10px; align-items: center; border-bottom: 1px solid #edf1f0; }
.checklist label:last-child { border-bottom: 0; }
input[type="checkbox"] { accent-color: var(--teal); width: 15px; height: 15px; }
.checklist label span { display: flex; flex-direction: column; gap: 3px; }
.checklist strong { font-size: 11px; }
.checklist small { color: var(--muted); font-size: 9px; }
.checklist label > svg { width: 16px; color: #899693; }
.scope-panel { padding-bottom: 18px; }
.scope-group { padding: 18px; border-bottom: 1px solid var(--line); }
.scope-title { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.scope-title strong { font-size: 12px; }
.payment-badge { font-size: 8px; padding: 4px 7px; border-radius: 10px; font-weight: 700; }
.payment-badge.paid { color: var(--teal); background: var(--teal-soft); }
.payment-badge.pending { color: #8b5b0a; background: var(--amber-soft); }
.scope-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.scope-chips span { background: #e8f2f0; border: 1px solid #cde4df; color: #17665d; border-radius: 5px; padding: 7px 10px; font-size: 10px; font-weight: 600; }
.scope-chips.muted span { background: #f3f5f4; border-color: #e2e7e5; color: #67736f; }
.upload-zone { margin: 18px; min-height: 145px; border: 1px dashed #a8bbb7; background: #f8fbfa; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; }
.upload-zone > svg { color: var(--teal); width: 25px; }
.upload-zone strong { font-size: 11px; }
.upload-zone span { color: var(--muted); font-size: 9px; }
.inline-title { font-size: 18px; }
.order-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.sku-catalogue-panel { margin-bottom: 16px; }
.sku-search { width: 230px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; gap: 7px; }
.sku-search svg { width: 14px; color: var(--muted); }
.sku-search input { width: 100%; border: 0; outline: 0; font: inherit; font-size: 10px; }
.sku-grid { padding: 0 18px 14px; display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.sku-card { min-height: 86px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: white; text-align: left; display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.sku-card span { color: var(--teal); font-size: 8px; font-weight: 700; }
.sku-card strong { font-size: 10px; }
.sku-card small { color: var(--muted); font-size: 8px; }
.sku-card.selected { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.sku-card:disabled { cursor: not-allowed; opacity: .65; }
.sku-selection { padding: 12px 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.sku-selection span { color: var(--muted); font-size: 9px; }
.sku-selection strong { font-size: 10px; }
.order-action-row { display: flex; align-items: center; gap: 6px; }
.resend-reminder { font-size: 8px; }
.delivery-pending { border-color: #e7c982; }
.order-column { background: #eaf0ee; border-radius: 7px; padding: 12px; min-height: 550px; }
.column-title { height: 34px; display: flex; justify-content: space-between; align-items: start; padding: 0 2px; font-size: 11px; font-weight: 700; }
.column-title b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 10px; background: #d5dfdc; font-size: 9px; }
.column-title b.alert-count { background: #f1c957; }
.order-card { background: white; border: 1px solid var(--line); border-radius: 7px; padding: 14px; margin-bottom: 10px; box-shadow: 0 2px 7px rgba(20,45,40,.035); }
.order-card.urgent { border-left: 3px solid var(--amber); }
.order-type { color: var(--teal); text-transform: uppercase; font-size: 8px; letter-spacing: .08em; font-weight: 700; }
.order-card h3 { margin: 8px 0 4px; font-size: 12px; }
.order-card p { color: var(--muted); font-size: 9px; margin-bottom: 14px; }
.order-footer { padding-top: 11px; border-top: 1px solid #edf1f0; display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 700; }
.countdown, .delivery { display: flex; align-items: center; gap: 6px; padding: 8px; background: var(--amber-soft); color: #775316; border-radius: 5px; margin-bottom: 10px; font-size: 9px; }
.delivery { background: var(--teal-soft); color: #17665d; }
.countdown svg, .delivery svg { width: 14px; }
.reminder-status { margin: 10px 0; padding: 8px; border: 1px solid var(--line); border-radius: 5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reminder-status > div { display: flex; align-items: center; gap: 7px; }
.reminder-status svg { width: 15px; color: var(--teal); }
.reminder-status div span { display: flex; flex-direction: column; gap: 2px; }
.reminder-status strong { font-size: 9px; }
.reminder-status small { color: var(--muted); font-size: 8px; }
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.progress-header h2 { font-size: 18px; margin-bottom: 4px; }
.progress-header p { color: var(--muted); font-size: 10px; margin-bottom: 0; }
.review-queue { margin-bottom: 16px; }
.review-item { display: grid; grid-template-columns: 128px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; }
.review-thumb { width: 128px; height: 82px; border-radius: 6px; background-image: url("assets/renovation-progress.png"); background-size: 300% 100%; }
.review-item h3 { margin: 6px 0 4px; }
.review-item p { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 0; }
.review-actions { display: flex; gap: 8px; }
.progress-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); gap: 16px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 260px 190px; gap: 10px; }
.file-input { min-height: 42px; padding: 8px; border: 1px dashed #afc9c4; background: #f5faf8; }
.file-preview { margin-top: 8px; display: grid; gap: 6px; }
.file-preview > span { padding: 8px; border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: 24px 1fr; gap: 2px 7px; align-items: center; }
.file-preview svg { width: 20px; grid-row: 1 / 3; color: var(--teal); }
.file-preview img { width: 24px; height: 24px; grid-row: 1 / 3; object-fit: cover; border-radius: 4px; }
.file-preview strong { font-size: 9px; }
.file-preview small { color: var(--muted); font-size: 8px; }
.gallery-item, .client-photo { background-image: url("assets/renovation-progress.png"); background-size: 300% 100%; background-repeat: no-repeat; }
.gallery-item { position: relative; min-height: 0; overflow: hidden; border-radius: 7px; border: 1px solid var(--line); }
.gallery-item:first-child { grid-column: 1 / 3; }
.stage-one { background-position: left center; }
.stage-two { background-position: center center; }
.stage-three { background-position: right center; }
.photo-label { position: absolute; left: 12px; bottom: 12px; background: rgba(20,32,30,.82); color: white; border-radius: 5px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; backdrop-filter: blur(4px); }
.photo-label span { font-size: 8px; color: #c9d8d4; }
.photo-label strong { font-size: 10px; }
.site-timeline { padding: 7px 18px 14px; }
.timeline-row { min-height: 58px; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; position: relative; }
.timeline-row:after { content: ""; position: absolute; left: 12px; top: 42px; height: 24px; width: 1px; background: var(--line); }
.timeline-row:last-child:after { display: none; }
.timeline-row > span { width: 25px; height: 25px; border: 1px solid #cdd7d5; border-radius: 50%; display: grid; place-items: center; background: white; z-index: 1; font-size: 9px; font-weight: 700; color: var(--muted); }
.timeline-row.done > span { color: white; background: var(--teal); border-color: var(--teal); }
.timeline-row.current > span { background: #f1c957; border-color: #f1c957; color: #4b3c12; }
.timeline-row div { display: flex; flex-direction: column; gap: 3px; }
.timeline-row strong { font-size: 10px; }
.timeline-row small { font-size: 9px; color: var(--muted); }
.timeline-row > svg { width: 15px; color: var(--teal); }
.timeline-row > b { font-size: 9px; color: #8b5b0a; }
.client-view { background: #f5f8f7; min-height: calc(100vh - 78px); }
.client-top { height: 56px; display: flex; align-items: center; justify-content: space-between; max-width: 1040px; margin: -10px auto 12px; }
.client-brand, .user-chip { display: flex; align-items: center; gap: 9px; }
.client-brand span { display: flex; flex-direction: column; }
.client-brand strong { font: 700 13px Manrope, sans-serif; }
.client-brand small { color: var(--muted); font-size: 8px; }
.user-chip { background: white; border: 1px solid var(--line); border-radius: 20px; height: 38px; padding: 0 10px 0 3px; font-size: 10px; }
.user-chip svg { width: 13px; }
.client-hero { max-width: 1040px; margin: 0 auto 16px; background: #17473f; color: white; padding: 28px 32px; border-radius: 7px; }
.client-hero h2 { font-size: 24px; max-width: 580px; margin: 12px 0 6px; }
.client-hero > p { color: #bfd2ce; font-size: 11px; }
.hero-progress { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 12px; align-items: center; margin-top: 24px; max-width: 680px; font-size: 10px; }
.hero-progress > div { height: 7px; border-radius: 5px; background: rgba(255,255,255,.18); overflow: hidden; }
.hero-progress > div span { display: block; height: 100%; background: #f1c957; }
.hero-progress small { color: #bfd2ce; }
.client-grid { min-width: 0; max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr .7fr; gap: 16px; }
.owner-event-grid { padding-top: 4px; display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.owner-event-grid div { padding: 12px; border: 1px solid var(--line); border-radius: 7px; display: flex; flex-direction: column; gap: 5px; }
.owner-event-grid time { color: var(--teal); font-size: 9px; font-weight: 700; }
.owner-event-grid strong { font-size: 10px; }
.owner-event-grid small { color: var(--muted); font-size: 8px; }
.client-section { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 7px; padding: 18px; }
.client-section .panel-heading { padding: 0 0 14px; min-height: auto; border-bottom: 0; }
.client-section .panel-heading > span { color: var(--muted); font-size: 9px; }
.client-photo { height: 245px; border-radius: 6px; margin-bottom: 12px; }
.client-section > p { color: var(--muted); font-size: 10px; line-height: 1.6; margin-bottom: 0; }
.payment-summary { margin: 20px 0; }
.payment-summary div { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.payment-summary span { color: var(--muted); font-size: 9px; }
.payment-summary strong { font-size: 10px; }
.client-section.full-width { grid-column: 1 / 3; }
.client-milestones { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 0 4px; }
.client-milestones div { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.client-milestones div:after { content: ""; position: absolute; height: 2px; background: #dfe6e4; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); }
.client-milestones div:last-child:after { display: none; }
.client-milestones span { width: 29px; height: 29px; border-radius: 50%; border: 2px solid #ced8d6; background: white; display: grid; place-items: center; z-index: 1; font-size: 9px; font-weight: 700; }
.client-milestones .done span { background: var(--teal); border-color: var(--teal); color: white; }
.client-milestones .current span { background: #f1c957; border-color: #f1c957; }
.client-milestones svg { width: 13px; }
.client-milestones strong { font-size: 9px; margin-top: 8px; }
.client-milestones small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.handover-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); gap: 16px; }
.vo-list article { min-height: 70px; display: grid; grid-template-columns: auto 1fr auto auto 30px; gap: 13px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.vo-list article:last-child { border-bottom: 0; }
.vo-number { color: var(--teal); font-size: 9px; font-weight: 700; }
.vo-list article div { display: flex; flex-direction: column; gap: 3px; }
.vo-list strong { font-size: 11px; }
.vo-list small { color: var(--muted); font-size: 9px; }
.vo-list article > span:nth-child(3) { font-size: 10px; font-weight: 700; }
.vo-list article > span:nth-child(3) { display: flex; flex-direction: column; gap: 2px; }
.vo-list article > span:nth-child(3) small { font-weight: 400; }
.vo-policy { margin: 14px 18px 4px; padding: 11px 12px; border: 1px solid #cfe2de; background: #f2f8f6; border-radius: 7px; display: flex; align-items: flex-start; gap: 9px; }
.vo-policy > svg { width: 17px; color: var(--teal); flex: 0 0 auto; margin-top: 1px; }
.vo-policy div { display: flex; flex-direction: column; gap: 3px; }
.vo-policy strong { font-size: 10px; }
.vo-policy span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.handover-checklist { padding-bottom: 14px; }
.handover-checklist label { min-height: 46px; margin: 0 18px; border-bottom: 1px solid #edf1f0; display: flex; align-items: center; gap: 10px; font-size: 10px; }
.handover-checklist .full { width: calc(100% - 36px); margin: 14px 18px 0; }
dialog { border: 0; padding: 0; border-radius: 8px; box-shadow: 0 24px 80px rgba(10,30,26,.3); width: min(520px, calc(100vw - 28px)); }
dialog::backdrop { background: rgba(10, 25, 22, .55); backdrop-filter: blur(3px); }
.modal-card { background: white; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full-field { grid-column: 1 / 3; }
.form-field label { font-size: 9px; font-weight: 700; color: #4c5b58; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 39px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; font: inherit; font-size: 11px; background: white; }
.form-field textarea { min-height: 75px; resize: vertical; }
.mock-file { min-height: 42px; border: 1px dashed #9eb6b1; border-radius: 6px; background: #f5faf8; padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.mock-file svg { width: 16px; color: var(--teal); }
.mock-file span { flex: 1; font-size: 10px; }
.mock-file b { color: var(--teal); font-size: 9px; }
.modal-actions { padding: 14px 20px; background: #f8faf9; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; right: 22px; bottom: 22px; min-width: 250px; background: #153d38; color: white; border-radius: 7px; padding: 12px 15px; display: flex; align-items: center; gap: 9px; transform: translateY(80px); opacity: 0; transition: .22s ease; z-index: 60; box-shadow: var(--shadow); font-size: 11px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 17px; color: #f1c957; }

.role-context { min-height: 72px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.role-context h2 { font-size: 20px; margin-bottom: 4px; }
.role-context p { color: var(--muted); font-size: 11px; margin-bottom: 0; }
.role-kpis .kpi { min-height: 122px; }
.sales-grid { grid-template-columns: minmax(0,1.55fr) minmax(280px,.65fr); }
.progress-feed { padding: 0 18px; }
.progress-feed article { display: grid; grid-template-columns: 112px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.progress-feed article:last-child { border-bottom: 0; }
.feed-thumb { width: 112px; height: 76px; background-image: url("assets/renovation-progress.png"); background-size: 300% 100%; border-radius: 6px; }
.progress-feed h3 { margin: 7px 0 3px; }
.progress-feed p, .progress-feed small { color: var(--muted); font-size: 9px; margin-bottom: 2px; }
.action-list { padding: 4px 16px 10px; }
.action-list button { width: 100%; min-height: 62px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; text-align: left; cursor: pointer; }
.action-list button > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.action-list strong { font-size: 10px; }
.action-list small, .action-list time { color: var(--muted); font-size: 9px; }
.role-table { margin-top: 16px; }
.access-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.access-note svg { width: 14px; color: var(--teal); }

.customer-dashboard { max-width: 1120px; margin: 0 auto; }
.customer-welcome { min-height: 190px; padding: 30px 34px; border-radius: 7px; background: #17473f; color: white; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.customer-welcome h2 { max-width: 620px; margin: 13px 0 6px; font-size: 27px; }
.customer-welcome p { color: #bed2cd; font-size: 11px; margin: 0; }
.completion-gauge { width: 112px; height: 112px; flex: 0 0 auto; border-radius: 50%; border: 11px solid rgba(255,255,255,.16); border-top-color: #f1c957; border-right-color: #f1c957; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.completion-gauge strong { font: 700 25px Manrope, sans-serif; }
.completion-gauge span { color: #bed2cd; font-size: 9px; }
.customer-summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 14px 0; }
.customer-summary-grid article { min-height: 118px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 7px; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto auto; column-gap: 9px; }
.customer-summary-grid svg { width: 28px; height: 28px; padding: 6px; grid-row: 1 / 4; background: var(--teal-soft); color: var(--teal); border-radius: 6px; }
.customer-summary-grid i[data-lucide] { width: 28px; height: 28px; grid-row: 1 / 4; }
.customer-summary-grid span, .customer-summary-grid small { color: var(--muted); font-size: 9px; }
.customer-summary-grid strong { font-size: 11px; align-self: end; }
.customer-content { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.65fr); gap: 14px; }
.customer-update-body { display: grid; grid-template-columns: minmax(260px,.9fr) 1fr; gap: 18px; padding: 18px; }
.customer-update-body .client-photo { height: 220px; margin: 0; }
.customer-update-body p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.update-meta { display: grid; gap: 8px; margin: 20px 0; }
.update-meta span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.update-meta svg { width: 15px; color: var(--teal); }
.customer-action-card { margin: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: 32px 1fr; gap: 9px; }
.customer-action-card > svg { width: 30px; height: 30px; padding: 7px; background: var(--teal-soft); color: var(--teal); border-radius: 6px; }
.customer-action-card div { display: flex; flex-direction: column; gap: 3px; }
.customer-action-card strong { font-size: 10px; }
.customer-action-card small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.customer-action-card button { grid-column: 1 / 3; width: 100%; }
.customer-action-card.urgent-action { border-color: #ead19d; background: #fffbf1; }
.customer-action-card.urgent-action > svg { background: var(--amber-soft); color: var(--amber); }
.customer-timeline-card { margin-top: 14px; padding-bottom: 18px; }
.customer-timeline-card .client-milestones { padding: 20px 30px 5px; }
.customer-documents { margin-top: 14px; }
.document-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding: 16px 18px; }
.document-list button { min-height: 70px; border: 1px solid var(--line); background: #fbfcfc; border-radius: 6px; padding: 11px; display: grid; grid-template-columns: 25px 1fr 16px; gap: 8px; align-items: center; text-align: left; cursor: pointer; }
.document-list button:hover { border-color: #9eb5b0; background: white; }
.document-list button > svg:first-child { width: 24px; height: 24px; padding: 5px; border-radius: 5px; background: var(--teal-soft); color: var(--teal); }
.document-list button > svg:last-child { width: 14px; color: var(--muted); }
.document-list span { display: flex; flex-direction: column; gap: 3px; }
.document-list strong { font-size: 9px; }
.document-list small { color: var(--muted); font-size: 8px; }
.customer-vo-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr); gap: 16px; }
.customer-vo-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 6px 18px; }
.customer-vo-detail div { min-height: 65px; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.customer-vo-detail span, .vo-description p { color: var(--muted); font-size: 9px; }
.customer-vo-detail strong, .vo-description strong { font-size: 11px; }
.vo-description { margin: 10px 18px; padding: 13px; background: #f8faf9; border: 1px solid var(--line); border-radius: 6px; }
.vo-description p { margin: 6px 0 0; line-height: 1.55; }
.customer-vo-actions { padding: 8px 18px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.readiness-list { padding: 8px 18px; }
.readiness-list > div { min-height: 58px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.readiness-list svg { width: 18px; color: #9aa8a5; }
.readiness-list .done svg { color: var(--teal); }
.readiness-list span { display: flex; flex-direction: column; gap: 3px; }
.readiness-list strong { font-size: 10px; }
.readiness-list small { color: var(--muted); font-size: 9px; }
.customer-handover-status > .full { width: calc(100% - 36px); margin: 14px 18px 18px; }
.role-action-group { display: flex; gap: 8px; }
.users-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.55fr); gap: 16px; }
.audit-list { padding: 6px 18px 12px; }
.audit-list > div { min-height: 60px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.audit-list svg { width: 28px; height: 28px; padding: 7px; border-radius: 6px; background: var(--teal-soft); color: var(--teal); }
.audit-list span { display: flex; flex-direction: column; gap: 3px; }
.audit-list strong { font-size: 10px; }
.audit-list small { color: var(--muted); font-size: 9px; }

.partner-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.55fr); gap: 16px; }
.partner-orders { padding: 4px 18px 12px; }
.partner-order { min-height: 102px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.partner-order.urgent { border-left: 3px solid var(--amber); padding-left: 12px; }
.order-main h3 { margin: 6px 0 3px; }
.order-main p { color: var(--muted); font-size: 9px; margin: 0; }
.order-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.order-amount strong { font-size: 12px; }
.partner-actions { display: flex; gap: 7px; }
.delivery-list { padding: 7px 18px; }
.delivery-list > div { min-height: 64px; display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.delivery-list time { color: var(--teal); font-size: 10px; font-weight: 700; }
.delivery-list span { display: flex; flex-direction: column; gap: 3px; }
.delivery-list strong { font-size: 10px; }
.delivery-list small { color: var(--muted); font-size: 9px; }
.task-list { padding: 4px 18px 12px; }
.task-list article { min-height: 78px; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.task-list h3 { margin: 5px 0 2px; }
.task-list p { color: var(--muted); font-size: 9px; margin: 0; }
.task-check { width: 27px; height: 27px; border: 1px solid #bdcac7; background: white; border-radius: 6px; cursor: pointer; }
.task-check.completed { background: var(--teal); color: white; border-color: var(--teal); }
.task-check svg { width: 14px; }
.visibility-flow { padding: 18px 22px; }
.visibility-flow > div { display: flex; align-items: center; gap: 10px; }
.visibility-flow > div > span { width: 27px; height: 27px; border-radius: 50%; background: #edf1f0; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.visibility-flow > div.current > span { background: var(--amber-soft); color: #8b5b0a; box-shadow: 0 0 0 4px #fff9e9; }
.visibility-flow p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.visibility-flow strong { font-size: 10px; }
.visibility-flow small { color: var(--muted); font-size: 9px; }
.visibility-flow > svg { width: 14px; color: #9aaba7; margin: 7px 0 7px 7px; }
.submission-history { margin-top: 16px; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .search { width: 210px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .content-grid, .progress-layout, .planning-layout { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .quotation-preview, .sku-grid, .owner-event-grid { grid-template-columns: repeat(2,1fr); }
  .activity-panel { display: none; }
  .customer-summary-grid { grid-template-columns: 1fr 1fr; }
  .sales-grid, .customer-content, .partner-layout { grid-template-columns: 1fr; }
  .customer-vo-layout, .users-layout { grid-template-columns: 1fr; }
  .document-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -260px; width: 248px; transition: left .2s ease; box-shadow: 10px 0 30px rgba(0,0,0,.18); }
  .sidebar.open { left: 0; }
  .mobile-menu { display: inline-flex; }
  .topbar { height: 68px; padding: 0 14px; gap: 10px; }
  .top-actions .search, .top-actions > .icon-btn { display: none; }
  .top-actions .quick-vo-btn { display: none; }
  .role-preview-badge { display: none; }
  .primary-btn span { display: none; }
  .view { padding: 16px 14px 30px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { min-height: 116px; padding: 13px; }
  .workflow-panel { width: 100%; overflow: hidden; }
  .workflow { width: 100%; overflow-x: auto; grid-template-columns: 88px 45px 88px 45px 88px 45px 88px 45px 88px; }
  .featured-project { grid-template-columns: 1fr auto; }
  .project-code, .featured-meta { display: none; }
  .project-grid, .operation-layout, .operation-v3-grid, .split-layout, .order-board, .handover-grid { grid-template-columns: 1fr; }
  .role-banner { grid-template-columns: 34px 1fr; }
  .role-banner .secondary-btn { grid-column: 1 / 3; width: 100%; }
  .order-column { min-height: auto; }
  .gallery { grid-template-rows: 210px 150px; }
  .client-grid { grid-template-columns: 1fr; }
  .quotation-actions { align-items: flex-end; flex-direction: column; }
  .quotation-preview { grid-template-columns: 1fr; }
  .quotation-preview div, .quotation-preview div:first-child, .quotation-preview div:last-child { border: 1px solid var(--line); border-bottom: 0; border-radius: 0; }
  .quotation-preview div:first-child { border-radius: 7px 7px 0 0; }
  .quotation-preview div:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 7px 7px; }
  .sku-grid { grid-template-columns: repeat(2,1fr); }
  .calendar-list article { grid-template-columns: 48px 1fr; }
  .calendar-list article > :last-child { grid-column: 1 / 3; justify-self: stretch; }
  .client-section.full-width { grid-column: auto; }
  .client-hero { padding: 22px; }
  .client-hero h2 { font-size: 20px; }
  .hero-progress { grid-template-columns: 1fr auto; }
  .hero-progress small { grid-column: 1 / 3; }
  .client-milestones { width: 100%; max-width: 100%; overflow-x: auto; grid-template-columns: repeat(4, 130px); }
  .vo-list article { grid-template-columns: auto 1fr auto; }
  .vo-list article > span:nth-child(3), .vo-list article .status-pill { display: none; }
  .progress-feed article { grid-template-columns: 86px 1fr; }
  .progress-feed .feed-thumb { width: 86px; height: 68px; }
  .progress-feed .contact-action { grid-column: 1 / 3; width: 100%; }
  .customer-welcome { padding: 24px; }
  .customer-update-body { grid-template-columns: 1fr; }
  .partner-order { grid-template-columns: 1fr auto; }
  .partner-actions { grid-column: 1 / 3; }
  .review-item { grid-template-columns: 90px 1fr; }
  .review-thumb { width: 90px; height: 68px; }
  .review-actions { grid-column: 1 / 3; }
}

@media (max-width: 480px) {
  .page-heading .eyebrow { display: none; }
  h1 { font-size: 17px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi { min-height: 96px; }
  .content-grid { margin-bottom: 10px; }
  .featured-project .secondary-btn { display: none; }
  .view-toolbar { align-items: flex-start; }
  .toolbar-actions { display: none; }
  .segmented { max-width: 100%; overflow-x: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .sku-grid, .owner-event-grid, .record-grid, .roro-summary { grid-template-columns: 1fr; }
  .sku-search { width: 100%; }
  .sku-selection { grid-template-columns: 1fr; }
  .quote-lines span { grid-template-columns: 1fr; }
  .gallery { display: flex; overflow-x: auto; }
  .gallery-item { min-width: 82vw; height: 220px; }
  .progress-header { align-items: flex-start; gap: 10px; }
  .progress-header .primary-btn { width: 40px; padding: 0; }
  .modal-body { grid-template-columns: 1fr; }
  .form-field.full-field { grid-column: auto; }
  .role-context { align-items: flex-start; }
  .role-context p { max-width: 230px; }
  .role-context .primary-btn { width: 40px; padding: 0; }
  .customer-welcome { min-height: 170px; }
  .customer-welcome h2 { font-size: 21px; }
  .customer-welcome > div:first-child { min-width: 0; }
  .completion-gauge { display: none; }
  .customer-summary-grid { grid-template-columns: 1fr; }
  .customer-summary-grid article { grid-template-columns: 1fr; }
  .customer-summary-grid article > i,
  .customer-summary-grid article > svg { display: none; }
  .document-list { grid-template-columns: 1fr; }
  .partner-order { grid-template-columns: 1fr; }
  .partner-actions { grid-column: auto; }
  .order-amount { align-items: flex-start; }
  .role-action-group { align-items: center; }
  .role-action-group .secondary-btn { padding: 0 10px; }
  .customer-vo-detail { grid-template-columns: 1fr; }
  .customer-vo-actions { flex-direction: column-reverse; }
  .customer-vo-actions button { width: 100%; }
}
