:root {
  color-scheme: light;
  --ink: #172d3b;
  --muted: #60717d;
  --navy: #142f42;
  --navy-deep: #0e2231;
  --orange: #f17424;
  --canvas: #f4f6f8;
  --line: #dde4e9;
  --soft-line: #edf0f3;
  --white: #fff;
  --green: #217453;
  --red: #b3333b;
  --radius: 13px;
  --shadow: 0 2px 4px rgb(21 43 60 / 3%), 0 8px 28px rgb(21 43 60 / 3%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, button[aria-disabled="true"] { cursor: not-allowed; opacity: .48; }
input, textarea, select { max-width: 100%; }
a { color: #205d86; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #307fba;
  outline-offset: 3px;
}
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(25px, 2.4vw, 33px); line-height: 1.2; letter-spacing: -.85px; font-weight: 720; }
h2 { font-size: 18px; line-height: 1.35; letter-spacing: -.3px; }
h3 { font-size: 15px; line-height: 1.4; }
small { font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { color: #6b7e8a; font-size: 10px; font-weight: 750; letter-spacing: 1.65px; text-transform: uppercase; margin-bottom: 9px; }

/* Prototype controls stay separate from the proposed customer interface. */
.prototype-bar { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 26px; background: #fff8ee; border-bottom: 1px solid #ebdac0; }
.prototype-label { color: #70512f; font-size: 12px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.prototype-label strong { font-size: 10px; letter-spacing: .7px; text-transform: uppercase; background: #f1dfc8; padding: 4px 7px; border-radius: 5px; color: #604125; }
.role-switch { display: inline-flex; align-items: center; padding: 3px; background: #fff; border: 1px solid #e4d4bf; border-radius: 8px; gap: 3px; }
.role-switch button { border: 0; background: transparent; color: #6c5944; padding: 6px 13px; border-radius: 5px; font-weight: 650; font-size: 12px; white-space: nowrap; }
.role-switch button:hover { background: #f8f0e4; }
.role-switch button[aria-pressed="true"] { color: #fff; background: var(--navy); box-shadow: 0 1px 3px #142f4226; }
.prototype-links { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; font-size: 12px; }
.prototype-links a { color: #715231; }
.prototype-links button { background: none; border: none; padding: 0; color: #715231; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }

.shell { display: flex; min-height: calc(100vh - 55px); align-items: stretch; }
.sidebar { width: 228px; flex: 0 0 228px; display: flex; flex-direction: column; padding: 26px 15px 20px; background: var(--navy-deep); color: #dce6ed; }
.brand { display: flex; align-items: center; justify-content: center; padding: 13px 12px 20px; background: var(--navy-deep); text-decoration: none; }
.brand img { display: block; width: 167px; height: auto; max-height: 65px; object-fit: contain; }
.workspace-label { font-size: 10px; font-weight: 700; color: #95a9b8; text-transform: uppercase; letter-spacing: 1.5px; margin: 21px 13px 12px; }
.nav { display: grid; gap: 5px; }
.nav button { display: flex; align-items: center; width: 100%; gap: 11px; text-align: left; padding: 12px 13px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: #c3d0db; font-weight: 550; }
.nav button svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .8; }
.nav button:hover { background: #1c3548; color: #fff; }
.nav button.active { background: #263f51; border-color: #314c5f; color: #fff; box-shadow: inset 3px 0 var(--orange); }
.nav button.active svg { color: #ffad71; opacity: 1; }
.nav button .badge { margin-left: auto; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 28px 13px 4px; font-size: 12px; color: #9ab0bf; }
.sidebar-footer strong { display: block; color: #e2ebf0; margin-bottom: 4px; }
.sidebar-footer p + p { margin-top: 8px; }
.main { flex: 1; min-width: 0; }
.topbar { background: #fff; min-height: 75px; border-bottom: 1px solid var(--line); padding: 17px 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.company-switch { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.company-switch small { color: var(--muted); font-weight: 400; }
.topbar > .company-switch { flex-direction: column; align-items: flex-start; gap: 2px; }
.company-switch > span { color: var(--muted); font-weight: 400; font-size: 12px; }
.avatar, .person-initials { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 50%; background: #e9eef3; color: #34566d; font-size: 11px; font-weight: 750; }
.avatar { width: 36px; height: 36px; background: #eaf0e9; color: #4e6849; }
.content { width: 100%; max-width: 1320px; margin: 0 auto; padding: 34px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading .muted { margin-top: 9px; max-width: 660px; }
.actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border-radius: 7px; border: 1px solid #cdd7df; padding: 9px 15px; font-size: 13px; font-weight: 650; line-height: 1.35; color: var(--ink); background: #fff; text-decoration: none; transition: background .15s, box-shadow .15s; }
.button svg { width: 17px; height: 17px; }
.button:hover { background: #f3f6f8; color: var(--ink); border-color: #acbcc8; }
.button.primary { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 1px 2px #102b401a; }
.button.primary:hover { background: #23465e; border-color: #23465e; }
.button.secondary { background: #fff; }
.button.danger { border-color: #e9c9cc; background: #fff; color: var(--red); }
.button.danger:hover { background: #fff2f2; }
.button.small { min-height: 32px; padding: 6px 11px; font-size: 12px; }
.button.ghost { border-color: transparent; box-shadow: none; background: transparent; color: #4e687a; padding-left: 8px; padding-right: 8px; }
.button:disabled:hover { background: inherit; border-color: inherit; }
.button.primary:disabled:hover { background: var(--navy); }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.panel + .panel { margin-top: 20px; }
.panel-head { padding: 21px 23px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--soft-line); }
.panel-head .muted { margin-top: 4px; font-size: 12px; }
.panel-body { padding: 23px; }
.panel-body > p + p { margin-top: 12px; }
.panel-body > .button:only-child { width: 100%; }
.grid { display: grid; gap: 20px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 23px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.four-col { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid > .panel, .three-col > .panel, .four-col > .panel { margin-top: 0; }
.stat { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.stat-label { font-size: 12px; font-weight: 550; color: var(--muted); }
.stat-value { font-size: clamp(25px, 2.2vw, 31px); line-height: 1.3; font-weight: 700; letter-spacing: -.75px; margin: 9px 0 5px; font-variant-numeric: tabular-nums; }
.stat-detail { color: var(--muted); font-size: 12px; }
.credit-bar { height: 7px; overflow: hidden; border-radius: 20px; background: #e9eef1; margin: 16px 0 10px; }
.credit-bar span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.account-banner { border: 1px solid #c7ded4; border-radius: var(--radius); padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #eef6f2; margin-bottom: 24px; }
.account-banner h2 { color: #20553f; }
.account-banner .muted { color: #577769; margin-top: 5px; }

.search-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 23px; }
.search-bar input { width: 100%; min-width: 0; background: #fff; border: 1px solid #cdd7df; border-radius: 8px; padding: 12px 15px; color: var(--ink); min-height: 45px; }
.search-bar label { flex: 0 0 auto; font-weight: 600; }
.search-bar > .muted { white-space: nowrap; font-size: 12px; }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.product { border: 1px solid var(--line); border-radius: 11px; background: #fff; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 3px 10px #102b4003; min-width: 0; }
.product-visual { height: 156px; background: #eef2f4; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #e9eef2; padding: 18px; }
.product-visual svg { width: 125px; height: 110px; }
.product:nth-child(3n + 2) .product-visual { background: #f4f2ed; }
.product:nth-child(3n + 3) .product-visual { background: #edf3ef; }
.product > h3, .product > p, .product > .product-category, .product > .product-price { margin-left: 18px; margin-right: 18px; }
.product-category { font-size: 10px; font-weight: 700; letter-spacing: .85px; text-transform: uppercase; color: #778692; margin-top: 17px; margin-bottom: 6px; }
.product h3 { font-size: 14px; }
.product .muted { font-size: 12px; margin-top: 5px; }
.product-price { font-size: 18px; font-weight: 700; margin-top: 15px; }
.product-price small { color: var(--muted); font-weight: 400; font-size: 11px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px 18px; margin-top: auto; }
.product-footer .button { flex: 1; }
.cart-line { display: flex; align-items: center; gap: 15px; padding: 19px 0; border-bottom: 1px solid var(--soft-line); min-width: 0; }
.cart-line:first-child { padding-top: 0; }
.cart-line:last-child { border-bottom: 0; }
.cart-line > div { min-width: 0; }
.cart-line .product-visual { flex: 0 0 66px; width: 66px; height: 66px; border-radius: 9px; border: 0; padding: 8px; }
.cart-line .product-visual svg { width: 50px; height: 50px; }
.cart-line .muted { font-size: 12px; margin-top: 4px; }
.cart-line > strong { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qty-controls { display: inline-flex; align-items: center; border: 1px solid #d7dfe5; border-radius: 6px; overflow: hidden; flex: 0 0 auto; }
.qty-controls button { width: 30px; min-height: 32px; background: #f7f9fa; border: 0; color: var(--ink); font-size: 18px; }
.qty-controls button:hover { background: #e8eef2; }
.qty-controls span, .qty-controls input { width: 32px; min-width: 0; padding: 0; text-align: center; border: 0; font-size: 12px; }
.summary-row { display: flex; justify-content: space-between; gap: 18px; margin: 12px 0; color: #5a6d7b; font-size: 13px; }
.summary-row strong { color: var(--ink); font-weight: 550; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-total { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 18px; font-weight: 700; font-size: 16px; color: var(--ink); display: flex; justify-content: space-between; gap: 18px; }
.summary-total strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.summary-total + .button, .summary-total ~ .button { width: 100%; margin-top: 20px; }

.notice { border: 1px solid #cbdde9; border-radius: 9px; padding: 14px 17px; background: #edf5fa; color: #345b76; font-size: 13px; margin-bottom: 20px; }
.notice strong { display: block; margin-bottom: 4px; }
.notice p + p { margin-top: 5px; }
.notice.info { background: #edf5fa; border-color: #cbdde9; color: #345b76; }
.notice.warning { background: #fff8e9; border-color: #eedca8; color: #765623; }
.notice.success { background: #edf7f1; border-color: #c4dfce; color: #2e6648; }
.notice .button { margin-top: 10px; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { color: #71818d; font-size: 11px; font-weight: 650; background: #fafbfc; white-space: nowrap; }
th, td { padding: 16px 22px; border-bottom: 1px solid var(--soft-line); vertical-align: middle; }
td { line-height: 1.45; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfd; }
td .muted { font-size: 12px; }
td strong { font-weight: 650; }
td > small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.badge.finance { background: #e8eefb; color: #32549a; }
td .button { white-space: nowrap; }
td:last-child > .button { margin-left: auto; }
.person { display: flex; align-items: center; gap: 10px; min-width: 145px; }
.person strong { display: block; }
.person small { display: block; color: var(--muted); }
.person-initials { width: 32px; height: 32px; border-radius: 9px; background: #edf0f5; color: #62728b; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; font-size: 11px; line-height: 1.35; font-weight: 650; padding: 5px 8px; background: #edf1f4; color: #506779; white-space: nowrap; }
.badge.pending { background: #fff0d4; color: #806016; }
.badge.ordered { background: #e3f2e9; color: #2c704e; }
.badge.rejected { background: #fdebee; color: #a33e49; }
.badge.changes { background: #eaeffa; color: #4d6392; }
.badge.blocked { background: #fde8e4; color: #a54634; }
.badge.processing { background: #e4f1f8; color: #346d8a; }
.empty { text-align: center; padding: 55px 25px; color: var(--muted); }
.empty h2, .empty h3 { color: var(--ink); margin: 12px 0 7px; }
.empty .button { margin-top: 20px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 23px; align-items: start; }
.detail-list { display: grid; grid-template-columns: minmax(105px, .8fr) 1.4fr; gap: 13px 20px; margin: 0; font-size: 13px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.timeline { margin: 0; list-style: none; }
.timeline-item { position: relative; padding: 0 0 22px 24px; border-left: 1px solid #dce4e9; margin-left: 5px; font-size: 13px; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #6f92a9; box-shadow: 0 0 0 1px #bfd0db; }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item .muted, .timeline-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin-bottom: 17px; }
.field label { font-size: 12px; font-weight: 650; color: #385060; }
.field input, .field select, .field textarea { width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid #cbd6df; border-radius: 7px; color: var(--ink); background: #fff; }
.field textarea { min-height: 98px; resize: vertical; line-height: 1.5; }
.field input:disabled, .field select:disabled { background: #f3f6f8; color: #6c7e8c; }
.field small { color: var(--muted); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 17px; }
.form-grid .full { grid-column: 1 / -1; }
.step-list { display: flex; list-style: none; padding: 0; margin: 0 0 25px; gap: 23px; color: var(--muted); font-size: 12px; }
.step-list li { display: flex; align-items: center; gap: 7px; }
.step-list li.active { color: var(--ink); font-weight: 700; }
.step-list span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: #e7edf2; border-radius: 50%; font-size: 11px; }
.step-list .active span { background: var(--navy); color: #fff; }
.panel-body > .step-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 18px 0; }
.panel-body > .step-list > .button { width: 100%; }
.tabs { display: flex; align-items: center; gap: 23px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs button { padding: 12px 1px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6b7c88; white-space: nowrap; font-size: 13px; font-weight: 550; }
.tabs button.active, .tabs button[aria-selected="true"] { color: var(--navy); font-weight: 700; border-bottom-color: var(--orange); }

.dialog-backdrop { position: fixed; inset: 0; z-index: 100; padding: 28px 18px; background: rgb(11 30 44 / 49%); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.dialog { background: #fff; width: min(100%, 540px); max-height: calc(100dvh - 56px); border-radius: 15px; box-shadow: 0 25px 90px rgb(8 26 38 / 30%); display: flex; flex-direction: column; overflow: hidden; }
.dialog-head { padding: 23px 25px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex: 0 0 auto; }
.dialog-head h2 { font-size: 19px; }
.dialog-head > button:not(.button) { background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 7px; min-width: 32px; min-height: 32px; font-size: 21px; line-height: 1; }
.dialog-body { padding: 25px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.dialog-body > p { margin-bottom: 17px; }
.dialog-foot { padding: 18px 25px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: center; gap: 10px; background: #fafbfc; flex: 0 0 auto; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); padding: 14px 20px; z-index: 200; background: var(--navy-deep); color: #fff; border-radius: 9px; box-shadow: 0 6px 25px #102b4040; font-size: 13px; }
.mobile-menu { display: none; }

/* Purchasing revision: fast catalogue, explicit decisions and editable accounts. */
.dialog > form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.dialog-body { flex: 1 1 auto; }
.company-switch { max-width: 100%; }
.company-switch label { font-size: 10px; font-weight: 650; color: var(--muted); }
.company-switch select { border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); padding: 6px 9px; max-width: 260px; min-width: 0; }
.company-switch .field { margin: 0; }
.topbar > .company-switch { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 210px); column-gap: 17px; row-gap: 3px; align-items: center; }
.company-switch label[for="company-select"] { grid-column: 1; grid-row: 1; }
.company-switch label[for="member-select"] { grid-column: 2; grid-row: 1; }
#company-select { grid-column: 1; grid-row: 2; width: 100%; }
#member-select { grid-column: 2; grid-row: 2; width: 100%; }
#member-select { max-width: 220px; }
.shop-toolbar { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.shop-toolbar .field { flex: 1 1 180px; margin: 0; }
.shop-toolbar .search-bar { flex: 2 1 300px; margin: 0; }
.category-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.category-tabs button { border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 6px; padding: 7px 10px; font-size: 12px; }
.category-tabs button.active, .category-tabs button[aria-pressed="true"] { background: var(--navy); color: white; border-color: var(--navy); }
.quick-list { width: 100%; }
.quick-list th, .quick-list td { padding: 13px 18px; }
.quick-list th { padding-top: 10px; padding-bottom: 10px; }
.quick-product { min-width: 190px; display: flex; align-items: center; gap: 12px; }
.quick-product strong { display: block; }
.quick-product small { display: block; color: var(--muted); margin-top: 3px; }
.quick-product .product-category { margin: 4px 0 0; font-size: 9px; }
.quick-row .actions { flex-wrap: nowrap; }
.quick-row .button { min-height: 35px; }
.quantity-input, [data-approve-qty] { width: 75px; max-width: 100%; border: 1px solid #cbd6df; border-radius: 6px; padding: 7px 8px; min-height: 35px; font-variant-numeric: tabular-nums; background: white; color: var(--ink); }
.approval-quantity { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.approval-quantity small { color: var(--muted); }
[data-approve-qty] { width: 68px; }
[data-approve-qty]:disabled { background: #f1f4f6; color: var(--muted); }
input[type="checkbox"] { accent-color: var(--navy); width: 17px; height: 17px; vertical-align: middle; }
.product-thumb { border: 1px solid var(--line); background: #f5f8fa; border-radius: 6px; width: 36px; height: 36px; flex: 0 0 36px; padding: 6px; color: #496777; }
.product-thumb svg { width: 22px; height: 22px; }
.product-thumb { color: #496777 !important; }
.selection-note { padding: 13px 18px; background: #f8fafb; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.selection-note strong { color: var(--ink); }
.request-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.member-status { font-size: 12px; color: var(--muted); }
.badge.partial { color: #795912; background: #fff1d4; }
.badge.inactive { color: #73818d; background: #edf0f3; }
.website-preview { min-width: 0; }
.website-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 21px; border-bottom: 1px solid var(--line); background: white; flex-wrap: wrap; }
.website-header img { width: 145px; height: auto; }
.website-hero { border-radius: 11px; padding: 26px; margin-bottom: 22px; background: #eaf0f4; border: 1px solid #d8e2e9; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.website-hero h2 { font-size: 25px; max-width: 500px; margin-bottom: 8px; }
.website-hero p { color: var(--muted); max-width: 570px; }
.website-category { color: var(--muted); font-size: 12px; }
.website-preview button.product-visual { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; }
.stat-label, .stat-value, .stat-detail { display: block; }
#request-form button[type="submit"] { width: 100%; margin-top: 18px; }

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; }
  .topbar > .company-switch { width: 100%; }
  .company-switch select, #member-select { max-width: 100%; width: 100%; }
  .company-switch .field { width: 100%; }
  .shop-toolbar { gap: 10px; }
  .shop-toolbar .field, .shop-toolbar .search-bar { flex-basis: 100%; }
  .category-tabs { gap: 5px; }
  .category-tabs button { font-size: 11px; padding: 6px 8px; }
  .quick-list { display: block; min-width: 0; }
  .quick-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .quick-list tbody { display: block; }
  .quick-list .quick-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px 114px; gap: 13px 9px; padding: 15px; border-bottom: 1px solid var(--line); }
  .quick-list .quick-row:last-child { border-bottom: 0; }
  .quick-list td { border: 0; padding: 0; min-width: 0; align-self: end; }
  .quick-list td:first-child { grid-column: 1 / -1; }
  .quick-list .quick-product { min-width: 0; }
  .quick-list .quick-product > div { min-width: 0; }
  .quick-list td:nth-child(2)::before, .quick-list td:nth-child(3)::before { display: block; font-size: 10px; color: var(--muted); margin-bottom: 5px; }
  .quick-list td:nth-child(2)::before { content: 'Unit price'; }
  .quick-list td:nth-child(3)::before { content: 'Qty'; }
  .quick-list td:nth-child(2) { align-self: center; }
  .quick-list td:last-child .button { width: 100%; min-height: 38px; }
  .quantity-input, [data-approve-qty] { font-size: 16px; }
  .website-hero { flex-direction: column; align-items: flex-start; padding: 20px; gap: 15px; }
  .website-hero h2 { font-size: 22px; }
  .website-hero .actions { width: 100%; }
}

@media (min-width: 1450px) {
  .content { padding-top: 40px; }
  .products-grid { gap: 23px; }
  .product-visual { height: 177px; }
}
@media (max-width: 1150px) {
  .content { padding: 27px 24px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .sidebar { width: 205px; flex-basis: 205px; padding-left: 12px; padding-right: 12px; }
  .two-col { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  th, td { padding: 14px 16px; }
  .prototype-bar { gap: 11px; padding-left: 20px; padding-right: 20px; flex-wrap: wrap; }
  .prototype-label { flex: 1; }
  .prototype-links { margin-left: auto; }
}
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; flex: 0 0 auto; padding: 12px 20px; flex-direction: row; align-items: center; gap: 24px; }
  .brand { width: 127px; flex: 0 0 127px; padding: 1px 0; }
  .brand img { width: 124px; max-height: 44px; }
  .workspace-label, .sidebar-footer { display: none; }
  .nav { display: flex; flex: 1; gap: 4px; flex-wrap: wrap; }
  .nav button { width: auto; padding: 10px 12px; font-size: 12px; }
  .nav button svg { width: 16px; height: 16px; }
  .nav button.active { box-shadow: inset 0 -2px var(--orange); }
  .topbar { min-height: 65px; padding-top: 13px; padding-bottom: 13px; }
  .content { max-width: 100%; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-col, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .two-col > aside, .detail-grid > aside { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col > aside > .panel, .detail-grid > aside > .panel { margin-top: 0; }
  .three-col { gap: 13px; }
  .stat { padding: 19px; }
}
@media (max-width: 640px) {
  :root { font-size: 13px; }
  .prototype-bar { padding: 10px 14px; gap: 9px; }
  .prototype-label { flex-basis: 100%; font-size: 11px; }
  .prototype-label strong { font-size: 9px; }
  .role-switch { flex-wrap: wrap; }
  .role-switch button { padding: 6px 9px; font-size: 11px; }
  .prototype-links { font-size: 11px; gap: 11px; }
  .prototype-links button { font-size: 11px; }
  .sidebar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px 15px 10px; }
  .brand { width: 135px; flex: 0 0 auto; justify-content: flex-start; padding-left: 2px; }
  .brand img { width: 127px; }
  .nav { gap: 3px; width: 100%; }
  .nav button { flex: 1 1 auto; justify-content: center; padding: 9px 8px; gap: 6px; }
  .nav button svg { display: none; }
  .nav button .badge { margin-left: 0; padding: 2px 5px; font-size: 10px; }
  .topbar { padding: 13px 16px; gap: 10px; min-height: 62px; }
  .company-switch { font-size: 12px; gap: 6px; }
  .company-switch small { font-size: 10px; }
  .topbar .muted { font-size: 11px; }
  .topbar > div { gap: 8px; }
  .avatar { width: 30px; height: 30px; font-size: 10px; }
  .content { padding: 24px 15px 40px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 22px; }
  .page-heading .muted { margin-top: 8px; font-size: 13px; }
  .page-heading > .actions { width: 100%; }
  .page-heading > .actions .button { flex: 1; }
  .eyebrow { font-size: 9px; margin-bottom: 8px; }
  .panel-head { padding: 17px; gap: 10px; }
  .panel-body { padding: 18px; }
  .panel-head h2 { font-size: 16px; }
  .grid, .two-col, .detail-grid { gap: 16px; }
  .three-col, .four-col, .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .two-col > aside, .detail-grid > aside { grid-template-columns: 1fr; }
  .stat { padding: 17px 19px; }
  .stat-value { font-size: 27px; margin-top: 5px; }
  .stat-detail { font-size: 11px; }
  .account-banner { align-items: flex-start; flex-direction: column; padding: 19px; gap: 14px; }
  .account-banner .actions { width: 100%; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-visual { height: 125px; padding: 13px; }
  .product-visual svg { width: 90px; height: 90px; }
  .product > h3, .product > p, .product > .product-category, .product > .product-price { margin-left: 13px; margin-right: 13px; }
  .product-category { font-size: 9px; margin-top: 13px; }
  .product h3 { font-size: 13px; }
  .product .muted { font-size: 11px; }
  .product-price { font-size: 16px; }
  .product-price small { display: block; margin-top: 3px; }
  .product-footer { padding: 12px 13px 14px; flex-wrap: wrap; gap: 8px; }
  .product-footer .button { min-width: 100%; font-size: 11px; padding: 8px; }
  .search-bar { flex-wrap: wrap; margin-bottom: 17px; }
  .search-bar input { font-size: 13px; padding: 11px 13px; }
  .cart-line { flex-wrap: wrap; gap: 12px; }
  .cart-line .product-visual { flex-basis: 52px; width: 52px; height: 52px; }
  .cart-line h3 { font-size: 13px; }
  .cart-line > strong { font-size: 13px; }
  .button { min-height: 41px; }
  .button.small { min-height: 34px; }
  .actions { gap: 8px; }
  .notice { padding: 13px 14px; font-size: 12px; }
  table { font-size: 12px; min-width: 540px; }
  th, td { padding: 13px 15px; }
  .table-wrap { scrollbar-width: thin; }
  .detail-list { grid-template-columns: 105px minmax(0, 1fr); gap: 12px; font-size: 12px; }
  .summary-row { font-size: 12px; }
  .summary-total { font-size: 15px; }
  .summary-total strong { font-size: 19px; }
  .step-list { gap: 12px; flex-wrap: wrap; font-size: 11px; }
  .tabs { gap: 18px; }
  .dialog-backdrop { padding: 14px; }
  .dialog { max-height: calc(100dvh - 28px); border-radius: 12px; }
  .dialog-head { padding: 18px; }
  .dialog-head h2 { font-size: 17px; }
  .dialog-body { padding: 19px; }
  .dialog-foot { padding: 16px 18px; flex-wrap: wrap; }
  .dialog-foot .button { flex: 1; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .toast { bottom: 16px; padding: 12px 16px; font-size: 12px; }
}
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-visual { height: 150px; }
  .prototype-links { margin-left: 0; }
  .nav button { font-size: 11px; padding: 8px 6px; }
  .content { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .prototype-bar, .sidebar, .topbar, .toast, .dialog-backdrop { display: none !important; }
  body { background: #fff; }
  .shell, .main, .content { display: block; padding: 0; width: 100%; }
  .panel, .stat { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
}
