:root {
  --ink: #182820;
  --muted: #79847c;
  --muted-dark: #536057;
  --line: #e6ebe5;
  --paper: #f4f6f3;
  --white: #fff;
  --green: #1d513b;
  --green-dark: #173d2e;
  --mint: #e8f2e9;
  --orange: #e28a4f;
  --orange-soft: #fff1e6;
  --blue: #597b9b;
  --shadow: 0 12px 36px rgba(21, 49, 36, .065);
  font-family: 'DM Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; padding: 26px 16px 18px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); z-index: 5; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 9px 35px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--green); color: #fff; font: 800 24px/1 'Manrope', sans-serif; letter-spacing: -2px; }
.brand-mark span { color: #f0b866; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font: 800 16px/1.2 'Manrope', sans-serif; letter-spacing: -.55px; }
.brand-copy small { font-size: 8px; font-weight: 700; letter-spacing: 1.35px; color: #91a095; }
.workspace-label, .card-eyebrow, .result-kicker { color: #929c94; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; }
.workspace-label { padding: 0 12px 11px; }
.primary-nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; height: 43px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #66736a; text-align: left; font-size: 12px; font-weight: 600; transition: .18s ease; }
.nav-item:hover { background: #f5f7f4; color: var(--ink); }
.nav-item.active { color: var(--green); background: #edf4ee; }
.nav-icon { width: 16px; font-size: 16px; text-align: center; }
.nav-count { margin-left: auto; padding: 3px 6px; border-radius: 5px; background: rgba(29,81,59,.08); color: var(--green); font-size: 9px; }
.sidebar-spacer { flex: 1; }
.sidebar-status { display: flex; align-items: center; gap: 10px; padding: 13px 11px; border: 1px solid #e9eee8; border-radius: 10px; }
.status-dot, .demo-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #65a278; flex: 0 0 auto; }
.status-dot::after, .demo-pulse::after { content: ''; position: absolute; inset: -3px; border: 1px solid rgba(101,162,120,.35); border-radius: 50%; }
.sidebar-status div { display: grid; gap: 3px; }
.sidebar-status strong { font-size: 11px; }
.sidebar-status small { color: var(--muted); font-size: 9px; }
.sidebar-footer { display: flex; justify-content: space-between; padding: 17px 8px 0; color: #a2aaa4; font-size: 8px; font-weight: 700; letter-spacing: 1.15px; }
.sidebar-footer span { font-weight: 500; letter-spacing: 0; }
.main-area { min-height: 100vh; margin-left: 236px; padding: 0 38px 20px; }
.topbar { height: 75px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e3e8e2; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #8a948c; font-size: 11px; }
.breadcrumbs strong { color: #38473d; font-weight: 600; }
.crumb-sep { color: #c2c9c3; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.group-picker { display: flex; align-items: center; gap: 9px; padding: 7px 10px 7px 7px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.7); cursor: pointer; }
.group-avatar, .user-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: #eaf1eb; color: var(--green); font-size: 12px; font-weight: 700; }
.group-label { display: flex; flex-direction: column; gap: 1px; }
.group-label small { color: #929b94; font-size: 7px; font-weight: 700; letter-spacing: .9px; }
.group-label select { max-width: 145px; padding: 0 17px 0 0; appearance: none; border: 0; outline: 0; background: transparent; color: #37483c; font-size: 10px; font-weight: 700; cursor: pointer; }
.select-chevron { margin-left: -18px; color: #7d8a80; font-size: 12px; pointer-events: none; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: #f4eadf; color: #ae784a; }
.user-name { color: #637067; font-size: 10px; font-weight: 600; }
.auth-trigger { padding: 8px 11px; border: 1px solid #dce6dc; border-radius: 8px; background: #fff; color: var(--green); font-size: 10px; font-weight: 700; white-space: nowrap; }
.auth-trigger:hover { background: #edf4ee; }
.group-label select:disabled { color: #37483c; opacity: 1; cursor: default; }
.view { max-width: 1400px; margin: 0 auto; padding-top: 31px; }
.view[hidden] { display: none; }
.page-heading, .admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.eyebrow-line { display: inline-block; width: 17px; height: 2px; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 11px 0 9px; font: 800 clamp(32px, 3.5vw, 43px)/1.11 'Manrope', sans-serif; letter-spacing: -1.8px; }
h1 span { color: var(--green); }
.heading-copy { margin: 0; color: #707c73; font-size: 12px; line-height: 1.6; }
.heading-note { display: flex; align-items: center; gap: 10px; min-width: 222px; margin-bottom: 5px; padding: 13px 15px; border: 1px solid #dfe8df; border-radius: 11px; background: rgba(255,255,255,.56); }
.note-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: var(--mint); color: var(--green); font-size: 16px; }
.heading-note div { display: grid; gap: 3px; }
.heading-note strong { font-size: 10px; }
.heading-note small { color: var(--muted); font-size: 9px; }
.demo-notice { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 11px 14px; border: 1px solid #f3dfcc; border-radius: 9px; background: #fff8f1; color: #8c6544; font-size: 10px; }
.demo-notice strong { color: #a96735; font-size: 8px; letter-spacing: 1px; }
.demo-notice > span:last-child { color: #8d7763; }
.demo-pulse { width: 7px; height: 7px; background: var(--orange); }
.demo-pulse::after { border-color: rgba(226,138,79,.35); }
.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 15px 0 22px; }
.metric-card { min-height: 79px; padding: 13px 15px; border: 1px solid #e6ebe4; border-radius: 10px; background: rgba(255,255,255,.76); }
.metric-label { display: block; color: #929d94; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.metric-card strong { display: block; margin: 5px 0 1px; color: #23382b; font: 700 19px/1 'Manrope', sans-serif; }
.metric-card strong i { color: #a0aaa2; font: 500 10px 'DM Sans', sans-serif; }
.metric-card small { color: #8f9991; font-size: 9px; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 19px; align-items: start; }
.catalog-main { min-width: 0; }
.catalog-toolbar { display: flex; gap: 9px; }
.search-box { display: flex; align-items: center; flex: 1; height: 42px; gap: 9px; padding: 0 12px; border: 1px solid #e1e7e0; border-radius: 9px; background: #fff; }
.search-icon { color: #87938a; font-size: 22px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.search-box input::placeholder { color: #a0a9a1; }
kbd { padding: 3px 5px; border: 1px solid #e5e9e4; border-radius: 4px; background: #f8faf7; color: #a0aaa2; font: 8px 'DM Sans', sans-serif; white-space: nowrap; }
.catalog-filters { margin-top: 9px; padding: 11px 12px 12px; border: 1px solid #e1e7e0; border-radius: 9px; background: rgba(255,255,255,.7); }
.filter-bar-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.filter-bar-heading strong { color: #526256; font-size: 9px; }
.clear-filters { padding: 3px 0; border: 0; background: transparent; color: #718777; font-size: 8px; font-weight: 700; }
.filter-fields { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.filter-field { display: grid; min-width: 0; gap: 5px; color: #879288; font-size: 8px; font-weight: 600; }
.filter-field select { width: 100%; min-width: 0; height: 36px; padding: 0 8px; border: 1px solid #e1e7e0; border-radius: 7px; outline-color: #9eb8a5; background: #fff; color: #536257; font-size: 9px; }
.filter-field select:disabled { background: #f4f6f3; color: #9ca69d; }
.result-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 22px 0 11px; }
.result-kicker { font-size: 8px; }
.result-heading h2 { margin: 4px 0 0; font: 700 17px 'Manrope', sans-serif; letter-spacing: -.5px; }
.results-count { color: #919c93; font-size: 9px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.product-card { position: relative; min-width: 0; padding: 14px; border: 1px solid #e4eae3; border-radius: 11px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.product-card:hover { transform: translateY(-2px); border-color: #cfdccf; box-shadow: 0 9px 24px rgba(28,67,46,.08); }
.product-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.product-art { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(145deg,#eaf2eb,#f5f7ef); font-size: 23px; }
.product-art.friction { background: linear-gradient(145deg,#f8ece7,#fcf5ee); }
.product-art.electrical { background: linear-gradient(145deg,#e9eef5,#f5f7fa); }
.product-art.maintenance { background: linear-gradient(145deg,#f1eee3,#faf8ef); }
.stock-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; background: #edf6ee; color: #4e8b5d; font-size: 8px; font-weight: 700; white-space: nowrap; }
.stock-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #64a374; }
.stock-pill.out { background: #f7eeec; color: #ae6d5d; }
.stock-pill.out::before { background: #cc8c7b; }
.product-category { margin: 11px 0 4px; color: #8d9a90; font-size: 8px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.product-card h3 { min-height: 36px; margin: 0; font: 700 13px/1.35 'Manrope', sans-serif; letter-spacing: -.25px; }
.product-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: #98a199; font-size: 8px; }
.product-meta span + span::before { content: '·'; margin-right: 6px; color: #c3cbc4; }
.fitment-meta { display: grid; gap: 3px; margin-top: 8px; padding: 7px 8px; border-radius: 6px; background: #f5f7f3; }
.fitment-meta span { color: #8a978c; font-size: 6px; font-weight: 700; letter-spacing: .55px; }
.fitment-meta small { color: #637267; font-size: 8px; line-height: 1.4; }
.product-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #eff2ee; }
.price-label { display: block; margin-bottom: 3px; color: #9aa49c; font-size: 7px; font-weight: 700; letter-spacing: .75px; }
.product-price { color: #203b2b; font: 800 17px/1 'Manrope', sans-serif; letter-spacing: -.55px; }
.price-vat { display: block; margin-top: 4px; color: #9da69e; font-size: 8px; }
.add-button { display: grid; place-items: center; width: 33px; height: 33px; border: 0; border-radius: 8px; background: var(--green); color: #fff; font-size: 19px; transition: background .15s; }
.add-button:hover { background: #286347; }
.add-button:disabled { cursor: not-allowed; opacity: .4; }
.empty-state { display: grid; justify-items: center; gap: 7px; min-height: 180px; padding: 35px; color: #758078; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #eaf0e9; font-size: 23px; }
.empty-state strong { color: #34463a; font-size: 12px; }
.empty-state small { font-size: 10px; }
.price-warning { display: flex; align-items: flex-start; gap: 8px; margin: 13px 0; padding: 10px 12px; border: 1px solid #e8ebe6; border-radius: 8px; background: rgba(255,255,255,.42); color: #8d978e; }
.price-warning span { color: #7d9b83; font-size: 12px; }
.price-warning p { margin: 0; font-size: 9px; line-height: 1.5; }
.cart-panel { position: sticky; top: 18px; overflow: hidden; padding: 17px; border: 1px solid #e0e7df; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #edf0ec; }
.cart-kicker { color: #a1aaa3; font-size: 7px; font-weight: 700; letter-spacing: 1.1px; }
.cart-head h2 { margin: 3px 0 0; font: 700 16px 'Manrope', sans-serif; }
.cart-head h2 span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 3px; padding: 0 4px; border-radius: 6px; background: #edf3ed; color: var(--green); font: 700 9px 'DM Sans',sans-serif; vertical-align: 1px; }
.cart-bag { color: #62816c; font-size: 24px; }
.cart-empty { display: grid; justify-items: center; gap: 7px; padding: 28px 9px 30px; text-align: center; }
.empty-bag { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 2px; border-radius: 13px; background: #f0f4ef; color: #8a9b8e; font-size: 22px; }
.cart-empty strong { color: #3e4d43; font-size: 10px; }
.cart-empty small { max-width: 180px; color: #9ba49c; font-size: 9px; line-height: 1.5; }
.cart-empty[hidden] { display: none; }
.cart-items { display: grid; gap: 10px; max-height: 290px; overflow: auto; padding: 11px 0; }
.cart-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; align-items: center; }
.cart-line-name { overflow: hidden; color: #3c4d41; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-meta { margin-top: 3px; color: #a0aaa1; font-size: 8px; }
.cart-line-price { color: #365741; font-size: 10px; font-weight: 700; white-space: nowrap; }
.qty-control { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 2px 4px; border: 1px solid #e7ece6; border-radius: 6px; }
.qty-control button, .remove-line { display: grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 0; background: transparent; color: #708075; font-size: 12px; }
.qty-control span { min-width: 8px; color: #657168; font-size: 8px; text-align: center; }
.remove-line { width: 20px; height: 20px; color: #bd897b; font-size: 14px; }
.cart-summary { padding: 12px 0 3px; border-top: 1px solid #edf0ec; }
.cart-summary[hidden] { display: none; }
.summary-line, .summary-total { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; color: #929b93; font-size: 9px; }
.summary-line strong { color: #5d6c60; font-weight: 600; }
.summary-total { margin-top: 5px; padding-top: 11px; border-top: 1px dashed #e4e9e2; color: #405044; font-size: 10px; font-weight: 700; }
.summary-total strong { color: #203b2b; font: 800 17px 'Manrope', sans-serif; }
.quote-button, .primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; margin-top: 13px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; transition: background .18s,opacity .18s; }
.quote-button:hover:not(:disabled), .primary-button:hover { background: #286347; }
.quote-button:disabled { cursor: not-allowed; background: #d8e0d8; color: #8d9c90; }
.quote-button span { font-size: 16px; font-weight: 400; }
.cart-footnote { margin: 9px 2px 0; color: #a0aaa1; font-size: 8px; line-height: 1.45; text-align: center; }
.admin-heading { align-items: center; margin-bottom: 19px; }
.admin-heading h1 { margin-bottom: 7px; }
.admin-heading h1 span { color: var(--orange); }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid #dce5dc; border-radius: 8px; background: #fff; color: #42634c; font-size: 9px; font-weight: 700; white-space: nowrap; }
.secondary-button:hover { border-color: #a9c1ad; background: #f8fbf8; }
.sync-icon { font-size: 16px; }
.admin-demo-callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #e6dfc8; border-radius: 9px; background: #fbf8ef; }
.admin-demo-callout > span { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #e8dfbf; color: #806f39; font-size: 10px; font-weight: 700; }
.admin-demo-callout div { display: grid; gap: 4px; }
.admin-demo-callout strong { color: #756738; font-size: 10px; }
.admin-demo-callout small { color: #91885f; font-size: 9px; line-height: 1.4; }
.admin-grid { display: grid; grid-template-columns: minmax(340px,.95fr) minmax(360px,1.05fr); gap: 14px; margin-top: 15px; }
.admin-card { padding: 18px; border: 1px solid #e3e9e2; border-radius: 11px; background: #fff; }
.section-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-card-head h2 { margin: 5px 0 4px; font: 700 17px 'Manrope',sans-serif; letter-spacing: -.45px; }
.section-card-head p { margin: 0; color: #8b968d; font-size: 9px; line-height: 1.5; }
.head-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 8px; background: #edf4ee; color: #5b8065; font-size: 15px; }
.table-wrap { overflow-x: auto; }
.margin-table { width: 100%; border-collapse: collapse; text-align: left; }
.margin-table th { padding: 9px 7px; border-bottom: 1px solid #edf0ec; color: #a1aaa2; font-size: 7px; font-weight: 700; letter-spacing: .7px; white-space: nowrap; }
.margin-table td { padding: 9px 7px; border-bottom: 1px solid #f0f3ef; color: #526157; font-size: 9px; white-space: nowrap; }
.margin-table tr:last-child td { border-bottom: 0; }
.group-cell { display: flex; align-items: center; gap: 7px; color: #384a3d; font-weight: 600; }
.group-dot { width: 7px; height: 7px; border-radius: 3px; background: #6c9875; }
.group-dot.tire { background: #dc9d66; }
.group-dot.insurance { background: #7792ad; }
.group-dot.retail { background: #b28db4; }
.group-type { color: #8d988f; }
.margin-input { width: 62px; height: 27px; padding: 0 7px; border: 1px solid #e1e8df; border-radius: 6px; outline-color: #97b49e; color: #3b5b44; font-size: 9px; font-weight: 700; text-align: right; }
.margin-suffix { margin-left: 3px; color: #8c988f; font-size: 9px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #eff2ee; }
.form-footer > span { color: #9aa49c; font-size: 8px; }
.primary-small { min-height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--green); color: #fff; font-size: 8px; font-weight: 700; }
.primary-small:hover { background: #286347; }
.soft-count { padding: 3px 6px; border-radius: 5px; background: #f0f3ef; color: #809085; font: 600 9px 'DM Sans',sans-serif; vertical-align: 2px; }
.supplier-list { display: grid; max-height: 329px; overflow-y: auto; border-top: 1px solid #f0f3ef; }
.supplier-row { display: grid; grid-template-columns: 29px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 43px; border-bottom: 1px solid #f0f3ef; }
.supplier-avatar { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: #edf3ee; color: #54775c; font-size: 8px; font-weight: 800; }
.supplier-row.inactive .supplier-avatar { background: #f2f2ef; color: #a4aaa5; }
.supplier-details { display: grid; gap: 3px; }
.supplier-details strong { color: #4b594f; font-size: 9px; font-weight: 600; }
.supplier-details small { color: #9da69e; font-size: 8px; }
.supplier-toggle { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #78917e; font-size: 8px; }
.supplier-toggle .switch { position: relative; width: 27px; height: 15px; border-radius: 20px; background: #cdd5cd; transition: .18s; }
.supplier-toggle .switch::after { content:''; position:absolute; top:2px; left:2px; width:11px; height:11px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.15); transition:.18s; }
.supplier-toggle[aria-pressed="true"] .switch { background: #69a278; }
.supplier-toggle[aria-pressed="true"] .switch::after { left: 14px; }
.supplier-toggle[aria-pressed="false"] { color: #a2aaa3; }
.supplier-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 11px; color: #9ba49c; font-size: 8px; line-height: 1.5; }
.supplier-note span { color: #809a83; }
.flow-card { margin-top: 14px; }
.flow-card .section-card-head { align-items: center; margin-bottom: 12px; }
.flow-card .section-card-head h2 { margin-bottom: 0; }
.flow-steps { display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr; align-items: center; gap: 7px; }
.flow-step { display: grid; gap: 5px; padding: 12px; border-radius: 8px; background: #f7f9f6; }
.flow-step > span { color: #7b9b81; font: 700 9px 'Manrope',sans-serif; }
.flow-step strong { color: #45564a; font-size: 9px; }
.flow-step small { color: #919b92; font-size: 8px; line-height: 1.45; }
.flow-steps > i { color: #b5c4b8; font-size: 14px; font-style: normal; text-align: center; }
.app-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 17px; padding: 15px 1px 0; border-top: 1px solid #e5eae4; color: #a0aaa1; font-size: 7px; font-weight: 700; letter-spacing: .8px; }
.app-footer span:last-child { font-weight: 500; letter-spacing: 0; }
.app-footer b { padding: 0 4px; color: #d4a173; }
.quote-dialog { width: min(460px, calc(100vw - 32px)); padding: 22px; border: 1px solid #e0e8df; border-radius: 14px; box-shadow: 0 24px 80px rgba(10,34,21,.25); color: var(--ink); }
.quote-dialog::backdrop { background: rgba(17,35,25,.38); backdrop-filter: blur(3px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.dialog-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #e8f3e9; color: #4d9461; font-size: 17px; font-weight: 700; }
.dialog-close { width: 27px; height: 27px; border: 0; border-radius: 7px; background: #f2f5f1; color: #77847a; font-size: 17px; }
.quote-dialog h2 { margin: 5px 0 6px; font: 700 22px 'Manrope',sans-serif; letter-spacing: -.7px; }
.dialog-copy { margin-bottom: 15px; color: #818d83; font-size: 10px; line-height: 1.5; }
.quote-details { display: grid; gap: 7px; max-height: 210px; overflow-y: auto; padding: 12px; border: 1px solid #edf1ec; border-radius: 9px; background: #fafbf9; }
.quote-line { display: flex; justify-content: space-between; gap: 12px; color: #627066; font-size: 9px; }
.quote-line strong { color: #426148; font-size: 9px; white-space: nowrap; }
.quote-line.unavailable { color: #ac7569; }
.dialog-total { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px 0; border-bottom: 1px solid #edf1ec; color: #657268; font-size: 10px; }
.dialog-total strong { color: #254832; font: 800 19px 'Manrope',sans-serif; }
.dialog-disclaimer { margin-top: 11px; padding: 9px 10px; border-radius: 7px; background: #fff6ed; color: #927454; font-size: 8px; line-height: 1.45; }
.dialog-done { justify-content: center; margin-top: 13px; }
.auth-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 13px 0; padding: 4px; border-radius: 9px; background: #f1f4f0; }
.auth-tabs button { min-height: 34px; border: 0; border-radius: 7px; background: transparent; color: #748078; font-size: 11px; font-weight: 700; }
.auth-tabs button.active { background: #fff; color: var(--green); box-shadow: 0 1px 4px rgba(20,45,29,.08); }
.auth-form { display: grid; gap: 11px; }
.auth-form [hidden] { display: none; }
.auth-form label { display: grid; gap: 5px; color: #506056; font-size: 10px; font-weight: 700; }
.auth-form input, .auth-form select { width: 100%; min-height: 39px; padding: 0 11px; border: 1px solid #dfe6df; border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; outline-color: #90b39a; }
.auth-form label small { color: #8c978e; font-size: 9px; font-weight: 400; }
.auth-status { min-height: 18px; margin: 0; color: #a35c2b; font-size: 10px; line-height: 1.45; }
.auth-submit { justify-content: center; min-height: 40px; margin-top: 2px; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
.admin-auth-dialog { width: min(400px, calc(100vw - 32px)); }
.auth-privacy { margin: 12px 0 0; color: #879189; font-size: 9px; line-height: 1.5; }
.members-card { margin-top: 18px; }
.member-list { display: grid; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 2px; border-top: 1px solid #edf0ec; }
.member-details { display: grid; gap: 4px; min-width: 0; }
.member-details strong { color: #34483a; font-size: 11px; }
.member-details span { overflow-wrap: anywhere; color: #6d7a70; font-size: 10px; }
.member-details small, .member-empty { color: #929b94; font-size: 9px; }
.member-empty { margin: 6px 0; }
.member-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.member-action { min-height: 30px; padding: 0 9px; border: 1px solid #dfe8df; border-radius: 7px; background: #fff; color: var(--green); font-size: 9px; font-weight: 700; }
.member-action.reject { color: #995a4e; border-color: #eadbd8; }
.toast { position: fixed; right: 22px; bottom: 20px; z-index: 20; max-width: min(370px, calc(100vw - 36px)); padding: 12px 15px; transform: translateY(14px); border-radius: 8px; background: #244934; box-shadow: var(--shadow); color: #fff; font-size: 10px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (min-width: 1500px) { .main-area { padding-right: 55px; padding-left: 55px; } }
@media (max-width: 1150px) { .main-area { padding-right: 24px; padding-left: 24px; } .catalog-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 13px; } .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 850px) { .sidebar { width: 66px; padding: 18px 9px; } .brand { justify-content: center; padding: 0 0 30px; } .brand-copy, .workspace-label, .nav-item:not(.active)::after, .nav-item { font-size: 0; } .nav-item { justify-content: center; width: 46px; height: 44px; gap: 0; padding: 0; } .nav-item .nav-icon { font-size: 17px; } .nav-count { display: none; } .sidebar-status { justify-content: center; padding: 11px 0; border: 0; } .sidebar-status div, .sidebar-footer { display: none; } .main-area { margin-left: 66px; padding-right: 20px; padding-left: 20px; } .catalog-layout { grid-template-columns: minmax(0,1fr); } .cart-panel { position: static; } .cart-items { max-height: 190px; } .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 570px) { .sidebar { inset: auto 0 0; width: 100%; height: 58px; padding: 5px 16px; flex-direction: row; justify-content: center; border-top: 1px solid var(--line); border-right: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); } .brand, .workspace-label, .sidebar-spacer, .sidebar-status, .sidebar-footer { display: none; } .primary-nav { width: min(250px,100%); grid-template-columns: 1fr 1fr; gap: 7px; } .nav-item { width: auto; height: 43px; flex-direction: row; gap: 7px; border-radius: 8px; font-size: 10px; } .nav-item .nav-icon { font-size: 14px; } .nav-count { display: inline; margin-left: 0; font-size: 8px; } .main-area { margin: 0; padding: 0 14px 82px; } .topbar { height: 62px; } .breadcrumbs { font-size: 9px; } .topbar-actions { gap: 8px; } .group-picker { gap: 6px; padding: 5px; } .group-avatar { width: 26px; height: 26px; } .group-label select { max-width: 104px; font-size: 9px; } .group-label small { font-size: 6px; } .select-chevron { margin-left: -15px; } .user-name { display: none; } .user-avatar { width: 28px; height: 28px; } .auth-trigger { padding: 7px 8px; font-size: 9px; } .view { padding-top: 24px; } .page-heading, .admin-heading { align-items: flex-start; flex-direction: column; gap: 14px; } h1 { font-size: 34px; } .heading-note { min-width: 0; width: 100%; margin: 0; } .demo-notice { align-items: flex-start; flex-wrap: wrap; gap: 6px 9px; font-size: 9px; } .demo-notice > span:last-child { flex-basis: 100%; padding-left: 16px; } .metric-row { gap: 7px; margin: 12px 0 17px; } .metric-card { min-height: 75px; padding: 10px 9px; } .metric-label { font-size: 6px; letter-spacing: .5px; } .metric-card strong { font-size: 16px; } .metric-card small { font-size: 8px; } .catalog-toolbar { flex-direction: column; } .filter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } .filter-field select { height: 44px; font-size: 10px; } .search-box { height: 40px; } .result-heading { margin-top: 18px; } .product-grid { gap: 8px; } .product-card { padding: 10px; } .product-art { width: 40px; height: 40px; font-size: 19px; } .stock-pill { gap: 4px; padding: 4px 5px; font-size: 7px; } .product-card h3 { min-height: 34px; font-size: 11px; } .product-price { font-size: 15px; } .product-bottom { align-items: center; } .add-button { width: 29px; height: 29px; } .price-warning { margin-top: 11px; } .admin-heading .secondary-button { align-self: stretch; } .admin-card { padding: 14px 11px; } .section-card-head h2 { font-size: 15px; } .margin-table th { font-size: 6px; letter-spacing: .35px; } .margin-table td { padding: 8px 5px; font-size: 8px; } .margin-input { width: 51px; } .flow-steps { grid-template-columns: 1fr; } .flow-steps > i { transform: rotate(90deg); } .member-row { align-items: flex-start; } .member-actions { flex-direction: column; } .app-footer { flex-direction: column; } }

/* iOS/Android touch targets and safe areas around notches and home indicators. */
@media (max-width: 570px) {
  html { -webkit-text-size-adjust: 100%; }
  .sidebar { height: calc(58px + env(safe-area-inset-bottom)); padding: 5px 16px calc(5px + env(safe-area-inset-bottom)); }
  .primary-nav { width: min(360px, 100%); gap: 8px; }
  .nav-item { min-height: 44px; }
  .main-area { padding-top: env(safe-area-inset-top); padding-bottom: calc(82px + env(safe-area-inset-bottom)); min-height: 100dvh; }
  .search-box, .filter-field select { min-height: 44px; }
  .add-button { width: 44px; height: 44px; flex: 0 0 44px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .quote-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
}

@media (max-width: 360px) {
  .main-area { padding-right: 10px; padding-left: 10px; }
  .breadcrumbs { gap: 5px; font-size: 8px; }
  .group-label select { max-width: 92px; }
  .metric-card { padding-right: 6px; padding-left: 6px; }
  .product-card { padding: 8px; }
  .product-price { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
