/* Alligare Suppliers — styles
   Palette: graphite + warm stone neutrals (from the grey/white logo) with a brass accent.
   Brass (warm, ~30°) is the complement of the cool steel blue-grey, so it stands out
   for calls to action without fighting the materials photography. */

:root {
  --ink: #1d2227;          /* graphite: text, primary buttons */
  --ink-2: #3a4148;
  --steel: #56636e;        /* cool secondary */
  --muted: #69717a;
  --line: #e4e0d9;
  --line-2: #d5cfc5;
  --paper: #faf8f5;        /* page background */
  --stone: #f2eee8;        /* panels, art backgrounds */
  --white: #ffffff;
  --accent: #b07a3e;       /* brass */
  --accent-dark: #8c5e2b;
  --accent-soft: #f5ebdd;
  --ok: #2f6b4f;  --ok-soft: #e3efe8;
  --info: #2f5e86; --info-soft: #e3edf6;
  --warn: #9a6512; --warn-soft: #f8edd8;
  --bad: #a23b2f; --bad-soft: #f7e3e0;
  --serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(29,34,39,.05), 0 8px 24px rgba(29,34,39,.06);
  --shadow-lg: 0 2px 6px rgba(29,34,39,.06), 0 24px 60px rgba(29,34,39,.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; }
p { margin: 0 0 12px; }
code { font-size: 13px; background: var(--stone); padding: 1px 6px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 48px); }
.section-gap { margin-top: 72px; }

/* ---------- type ---------- */
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 12px; }
.eyebrow.on-dark { color: #d9b07c; }
.display { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.01em; }
.display-sm { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.display em, .display-sm em { font-style: italic; color: var(--accent-dark); font-weight: 500; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.subtle { color: var(--muted); font-size: 13px; }
.fineprint { color: var(--muted); font-size: 12px; margin-top: 12px; }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.block-sm { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--white); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.btn.light-on-dark { color: #fff; border-color: rgba(255,255,255,.5); }
.btn.danger-text { color: var(--bad); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.link.danger { color: var(--bad); font-size: 13px; }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.textlink .ic { width: 15px; height: 15px; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 8px; display: inline-flex; }
.icon-btn .ic { width: 22px; height: 22px; }
.ic { width: 20px; height: 20px; flex: none; }
.pill { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--stone); color: var(--ink-2); }
.pill.accent { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- status ---------- */
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.s-placed { background: var(--warn-soft); color: var(--warn); }
.s-confirmed, .s-packed { background: var(--info-soft); color: var(--info); }
.s-dispatched { background: #ece6f6; color: #5b4291; }
.s-delivered { background: var(--ok-soft); color: var(--ok); }
.s-cancelled { background: var(--bad-soft); color: var(--bad); }
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.progress.cancelled i { background: var(--bad); opacity: .4; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 16px; align-items: end; }
.full { grid-column: 1 / -1; }
.span2 { grid-column: span 2; }
.span4 { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field em { font-weight: 400; font-style: normal; color: var(--muted); }
.field input, .field select, .field textarea, .cat-controls select {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); font-weight: 400; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .cat-controls select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(176,122,62,.18); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.form-error { color: var(--bad); font-size: 13.5px; min-height: 0; margin: 0; }
.form-error:empty { display: none; }
.search-inline { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--white); border-radius: 8px; padding: 0 12px; min-height: 42px; }
.search-inline input { border: 0; outline: none; background: none; min-width: 0; width: 220px; }
.search-inline .ic { width: 17px; height: 17px; color: var(--muted); }
.seg { display: inline-flex; background: var(--stone); border-radius: 10px; padding: 4px; gap: 4px; }
.seg a, .seg button { border: 0; background: none; padding: 9px 16px; border-radius: 7px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg .on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg.wide { display: flex; } .seg.wide a { flex: 1; text-align: center; }
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; background: var(--line-2); border-radius: 22px; transition: .2s; }
.toggle span::after { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + span { background: var(--ok); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cell-input { width: 96px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 6px; text-align: right; background: var(--white); }
.cell-select { padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--white); }

/* ---------- panels & tables ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel h3 { font-size: 16px; margin-bottom: 16px; }
.table-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fcfbf9; white-space: nowrap; }
.table th.num { text-align: right; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: #fbf9f6; }
.table tfoot td { padding: 8px 16px; color: var(--muted); border: 0; }
.table tfoot .strong td { color: var(--ink); font-weight: 700; font-size: 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.panel > .table { margin: 0 -24px; width: calc(100% + 48px); }
.panel > .table th:first-child, .panel > .table td:first-child { padding-left: 24px; }
.panel > .table th:last-child, .panel > .table td:last-child { padding-right: 24px; }
.pad { padding: 18px 20px; }
.notice { background: var(--stone); border-radius: var(--r); padding: 14px 16px; font-size: 14px; margin-top: 16px; }
.warn { color: var(--warn); font-size: 13px; margin: 4px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0 0 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }

.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 24px 0 8px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head { padding: 24px 0 28px; }
.page-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.sec-head.tight { margin-bottom: 14px; align-items: center; }
.sec-head.tight h3 { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.side-stack { display: grid; gap: 16px; }
.empty { text-align: center; padding: 72px 20px; max-width: 460px; margin: 24px auto; }
.empty-art { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--stone); display: grid; place-items: center; color: var(--ink); }
.empty h3 { font-family: var(--serif); font-size: 30px; margin-bottom: 8px; }
.empty .btn { margin-top: 12px; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); display: flex; gap: 16px; align-items: center; font-size: 14px; max-width: calc(100% - 32px); transition: .25s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast a { color: #e6bf8c; font-weight: 600; white-space: nowrap; }

/* ---------- brand ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark { color: currentColor; flex: none; }
.wm-text { display: grid; line-height: 1; }
.wm-text b { font-family: var(--serif); font-weight: 600; font-size: 23px; letter-spacing: .14em; }
.wm-text small { font-size: 9.5px; letter-spacing: .42em; font-weight: 600; color: var(--muted); margin-top: 4px; padding-left: 2px; }

/* ---------- header ---------- */
.staff-strip { background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; text-align: center; padding: 8px 16px; }
.staff-strip a { font-weight: 600; text-decoration: underline; }
.site-head { background: rgba(250,248,245,.92); backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.menu-btn { display: none; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 14.5px; color: var(--ink-2); }
.main-nav a:hover { background: var(--stone); }
.main-nav a.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.head-search { flex: 1; display: flex; align-items: center; gap: 8px; max-width: 380px; margin-left: auto; background: var(--white); border: 1px solid var(--line-2); border-radius: 99px; padding: 0 16px; min-height: 42px; }
.head-search input { border: 0; outline: none; background: none; flex: 1; min-width: 0; font-size: 14px; }
.head-search .ic { width: 17px; color: var(--muted); }
.head-search:focus-within { border-color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.acct { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 99px; }
.acct:hover { background: var(--stone); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; flex: none; }
.acct-name { font-size: 13.5px; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); }
.cart-btn:hover { border-color: var(--ink); }
#cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
#cart-count.zero { display: none; }
#cart-count.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.cat-strip { border-top: 1px solid var(--line); }
.cat-strip .wrap { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.cat-strip a { padding: 11px 0; font-size: 13px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-strip a:hover { color: var(--ink); }
.cat-strip a.on { color: var(--ink); border-color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #c9cdd1; margin-top: 96px; padding: 64px 0 28px; font-size: 14px; }
.site-foot .wordmark { color: #f4f1ec; }
.site-foot .wm-text small { color: #9aa1a8; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-brand p { margin-top: 18px; max-width: 34ch; color: #9aa1a8; }
.site-foot h5 { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-foot a { display: block; padding: 4px 0; }
.site-foot a:hover { color: #fff; }
.muted-on-dark { color: #8a9198; display: block; padding-top: 4px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #343b42; margin-top: 48px; padding-top: 22px; font-size: 12.5px; color: #8a9198; }
.foot-base .link { color: #c9cdd1; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); }
.auth-visual { position: relative; overflow: hidden; background: var(--ink); }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.auth-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,28,.15) 0%, rgba(20,24,28,.35) 40%, rgba(20,24,28,.88) 100%); }
.auth-visual-copy { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px; color: #fff; }
.auth-visual-copy .wordmark { color: #fff; } .auth-visual-copy .wm-text small { color: rgba(255,255,255,.75); }
.auth-visual-copy h1 { margin-top: auto; font-size: clamp(40px, 4.4vw, 64px); }
.auth-visual-copy h1 em { color: #e6bf8c; }
.auth-visual-copy p { max-width: 46ch; color: rgba(255,255,255,.85); font-size: 16px; margin-top: 16px; }
.auth-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: rgba(255,255,255,.92); }
.auth-points .ic { color: #e6bf8c; }
.auth-form-col { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(480px, 100%); }
.auth-card h2 { font-family: var(--serif); font-size: 36px; margin: 32px 0 6px; }
.auth-card .form { margin-top: 24px; }
.mobile-brand { display: none; margin-bottom: 24px; }
.mobile-brand.show { display: block; }
.demo-box { margin-top: 28px; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 12px 16px; }
.demo-box summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.demo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.demo-acct { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; display: grid; }
.demo-acct:hover { border-color: var(--ink); }
.demo-acct b { font-size: 13px; } .demo-acct small { font-size: 11.5px; color: var(--muted); }
.pending-wrap { grid-template-columns: 1fr; place-items: center; padding: 40px 20px; }
.pending { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; }
.pending h2 { margin-top: 12px; font-size: 32px; }
.pending-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin-top: 8px; }
.pending-icon .ic { width: 28px; height: 28px; }
.pending .kv { margin-top: 24px; background: var(--stone); padding: 16px 20px; border-radius: var(--r); }

/* ---------- home ---------- */
.hero { padding: 40px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero-copy .lead { margin: 22px 0 28px; }
.hero-search { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); max-width: 560px; }
.hero-search input { flex: 1; border: 0; outline: none; background: none; font-size: 15px; min-width: 0; }
.hero-search .ic { color: var(--muted); }
.hero-search:focus-within { border-color: var(--ink); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.quick a { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--ink-2); background: var(--white); }
.quick a:hover { border-color: var(--ink); }
.hero-media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: absolute; left: 20px; right: 20px; bottom: 20px; background: rgba(250,248,245,.94); backdrop-filter: blur(8px); border-radius: 14px; padding: 18px 20px; display: grid; gap: 6px; max-width: 400px; transition: transform .2s; }
.hero-card:hover { transform: translateY(-2px); }
.hero-card b { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.hero-card > span:last-child { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.hero-card .pill { justify-self: start; }
.assurance { margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.assurance-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.assurance-grid > div { display: flex; gap: 14px; padding: 22px 20px; align-items: flex-start; }
.assurance-grid > div + div { border-left: 1px solid var(--line); }
.assurance .ic { color: var(--accent); width: 24px; height: 24px; margin-top: 2px; }
.assurance b { display: block; font-size: 14px; } .assurance small { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; margin-top: 2px; }
.recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.recent { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; transition: border-color .15s, box-shadow .15s; }
.recent:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.recent b { display: block; } .recent small { color: var(--muted); font-size: 12.5px; }
.recent-total { font-weight: 700; font-size: 18px; }
.recent .progress { grid-column: 1 / -1; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { display: flex; align-items: center; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 20px 14px 14px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-art { width: 112px; height: 84px; background: var(--stone); border-radius: 12px; flex: none; display: grid; place-items: center; padding: 4px; }
.cat-text b { display: block; font-size: 16px; } .cat-text small { color: var(--muted); font-size: 13px; display: block; }
.cat-text em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent-dark); display: block; margin-top: 6px; }
.tryon-band { background: var(--ink); color: #e9e6e1; margin-top: 88px; padding: 80px 0; }
.tryon-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.tryon-band .display-sm { color: #fff; } .tryon-band .display-sm em { color: #e6bf8c; }
.tryon-visual { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.tryon-visual img:first-child { width: 100%; }
.tryon-visual { aspect-ratio: 16 / 10; background: #dfe8ee; }
.tryon-visual canvas.gl { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.tryon-visual.live .fallback { visibility: hidden; }
.tryon-tag { z-index: 2; pointer-events: none; }
.tryon-overlay { position: absolute; left: 1%; width: 98%; top: 62.5%; transform: translateY(-50%) scaleY(.5); transform-origin: center; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.tryon-tag { position: absolute; left: 16px; top: 16px; background: rgba(29,34,39,.82); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 99px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #6b6258; color: #e6bf8c; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.steps b { color: #fff; } .steps span { color: #a9afb5; font-size: 14px; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .15s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-link { display: block; height: 100%; }
.card-art { position: relative; background: var(--stone); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; }
.card-art svg { width: 100%; height: 100%; transition: transform .35s; }
.card:hover .card-art svg { transform: scale(1.04); }
.tag { position: absolute; top: 12px; left: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--white); color: var(--ink-2); padding: 4px 9px; border-radius: 6px; }
.tag.tryon { left: auto; right: 12px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 5px; }
.tag.tryon .ic { width: 13px; height: 13px; }
.card-body { padding: 16px 18px 18px; }
.card-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.card-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.price { font-weight: 700; font-size: 17px; }
.price small { font-weight: 500; font-size: 12px; color: var(--muted); }
.stock { font-size: 12px; color: var(--ok); font-weight: 600; white-space: nowrap; }
.stock.low { color: var(--warn); } .stock.out { color: var(--bad); }

/* ---------- catalogue ---------- */
.cat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; margin-top: 12px; }
.filters { position: sticky; top: 140px; align-self: start; display: grid; gap: 2px; }
.filters h4 { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 8px 0 10px; }
.filter { display: flex; justify-content: space-between; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.filter span { color: var(--muted); font-size: 12.5px; }
.filter:hover { background: var(--stone); }
.filter.on { background: var(--ink); color: #fff; font-weight: 600; } .filter.on span { color: #c9cdd1; }
.filter-note { margin-top: 24px; background: var(--accent-soft); border-radius: var(--r); padding: 16px; font-size: 13px; }
.filter-note p { color: var(--ink-2); margin: 4px 0 10px; }
.cat-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.cat-top p { margin: 4px 0 0; }
.cat-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-controls select { width: auto; min-height: 42px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scrollbar-width: none; }
.chip { border: 1px solid var(--line-2); background: var(--white); border-radius: 99px; padding: 7px 14px; font-size: 13px; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.mobile-only { display: none; }

/* ---------- product page ---------- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 12px; align-items: start; }
.pd-media { position: sticky; top: 140px; }
.pd-art { background: var(--stone); border-radius: 20px; aspect-ratio: 1 / .85; display: grid; place-items: center; padding: 40px; }
.pd-art svg { width: 100%; height: 100%; }
.pd-art { position: relative; overflow: hidden; }
.pd-fallback { width: 100%; height: 100%; display: grid; place-items: center; padding: 40px; }
.viewer3d { position: absolute; inset: 0; }
.viewer3d canvas { display: block; cursor: grab; touch-action: none; }
.viewer3d canvas:active { cursor: grabbing; }
.pd-art.live .pd-fallback { visibility: hidden; }
.viewer-hint { position: absolute; left: 14px; bottom: 14px; display: none; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); background: rgba(255,255,255,.85); padding: 5px 10px; border-radius: 99px; pointer-events: none; }
.viewer-hint .ic { width: 15px; height: 15px; }
.pd-art.live .viewer-hint { display: inline-flex; }
.pd-art { padding: 0; }
.pd-art.live { background: radial-gradient(120% 90% at 50% 35%, #f4f1ec 0%, #dcd6cc 70%, #cfc8bc 100%); }
.tryon-cta { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--ink); color: #fff; transition: background .15s; }
.tryon-cta:hover { background: var(--ink-2); }
.tryon-cta b { display: block; font-size: 16px; } .tryon-cta small { color: #b8bec4; font-size: 13px; }
.tryon-cta > .ic:last-child { margin-left: auto; color: #e6bf8c; }
.tryon-cta-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; color: #e6bf8c; }
.pd-info h1 { margin-bottom: 14px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 20px 0; margin: 20px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-price .big { font-size: 34px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pd-price .per { color: var(--muted); font-size: 14px; }
.pd-price .stock { margin-left: auto; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--ok-soft); }
.pd-price .stock.low { background: var(--warn-soft); } .pd-price .stock.out { background: var(--bad-soft); }
.options { display: grid; gap: 20px; margin: 20px 0 24px; }
.opt-label { font-size: 13px; font-weight: 600; margin-bottom: 9px; color: var(--ink-2); }
.opt-label span { font-weight: 400; color: var(--muted); margin-left: 8px; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.optv { border: 1px solid var(--line-2); background: var(--white); padding: 9px 15px; border-radius: 8px; font-size: 14px; transition: border-color .12s, background .12s; }
.optv:hover { border-color: var(--ink); }
.optv.on { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.buy-row { display: flex; gap: 12px; margin-bottom: 12px; }
.buy-row .btn { min-height: 52px; font-size: 15px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); overflow: hidden; }
.stepper button { width: 44px; height: 50px; border: 0; background: none; font-size: 18px; }
.stepper button:hover { background: var(--stone); }
.stepper input { width: 64px; border: 0; text-align: center; font-weight: 600; font-size: 16px; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper.small button { width: 34px; height: 34px; font-size: 16px; }
.stepper.small span { min-width: 34px; text-align: center; font-weight: 600; }
.pd-sections { margin-top: 32px; display: grid; gap: 28px; }
.pd-sections h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { font-weight: 500; color: var(--muted); width: 40%; }
.use-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.use-chips span { background: var(--stone); padding: 6px 12px; border-radius: 99px; font-size: 13px; }

/* ---------- cart & checkout ---------- */
.lines { padding: 8px 24px; }
.line { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-art { background: var(--stone); border-radius: 10px; aspect-ratio: 4 / 3; padding: 6px; display: grid; place-items: center; }
.line-info h3 { font-size: 15px; margin-bottom: 6px; }
.line-spec { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.line-spec span { font-size: 12px; background: var(--stone); padding: 2px 8px; border-radius: 5px; color: var(--ink-2); }
.line-design { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--accent-dark); margin: 0 0 6px; }
.line-design .ic { width: 15px; height: 15px; }
.line-qty { display: grid; justify-items: center; gap: 4px; } .line-qty small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.line-total { min-width: 96px; text-align: right; font-size: 16px; }
.summary { position: sticky; top: 140px; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; }
.sum-row span { color: var(--muted); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 18px; margin-bottom: 18px; }
.sum-row.total span { color: var(--ink); font-weight: 600; }
.free-hint { font-size: 12.5px; color: var(--muted); margin: 6px 0; }
.free-hint .bar { height: 4px; background: var(--line); border-radius: 4px; margin-bottom: 6px; overflow: hidden; }
.free-hint .bar i { display: block; height: 100%; background: var(--accent); }
.sum-items { border-top: 1px solid var(--line); padding: 12px 0; margin-bottom: 8px; font-size: 13px; display: grid; gap: 6px; }
.sum-items div { display: flex; justify-content: space-between; gap: 12px; } .sum-items span { color: var(--muted); }
.checkout-steps { display: grid; gap: 16px; }
.checkout-steps h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.num-i, .checkout-steps h3 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-style: normal; text-align: center; }
.opt-tag { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.addr-list, .pay-list { display: grid; gap: 10px; }
.addr, .pay { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; cursor: pointer; font-size: 14px; transition: border-color .12s; }
.addr input, .pay input { margin-top: 4px; accent-color: var(--ink); }
.addr b, .pay b { display: block; } .addr small, .pay small { display: block; color: var(--muted); font-size: 12.5px; }
.addr.on, .addr:has(input:checked), .pay:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pay.disabled { opacity: .55; cursor: not-allowed; }
.new-addr { margin-top: 16px; }

/* ---------- orders ---------- */
.success-banner { display: flex; gap: 14px; align-items: center; background: var(--ok-soft); color: var(--ok); border-radius: var(--r-lg); padding: 16px 20px; margin-top: 24px; font-size: 14.5px; }
.success-banner .ic { width: 28px; height: 28px; flex: none; background: var(--ok); color: #fff; border-radius: 50%; padding: 5px; }
.tracker { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 24px; padding: 28px 24px; }
.trk { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; }
.trk::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.trk:first-child::before { display: none; }
.trk.done::before { background: var(--accent); }
.trk .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 2px solid var(--line-2); display: grid; place-items: center; color: #fff; }
.trk.done .dot { background: var(--accent); border-color: var(--accent); }
.trk.current .dot { box-shadow: 0 0 0 6px var(--accent-soft); }
.trk .dot .ic { width: 16px; height: 16px; }
.trk b { font-size: 14px; margin-top: 6px; } .trk small { color: var(--muted); font-size: 12px; }
.ship { display: flex; gap: 10px; align-items: flex-start; background: var(--stone); padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-top: 12px; }
.ship .ic { color: var(--accent-dark); }

/* ---------- account ---------- */
.acct-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.acct-grid .full { grid-column: 1 / -1; }
.acct-grid form .btn { margin-top: 18px; }
.addr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.addr-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 14px; }
.addr-card p { color: var(--ink-2); margin: 6px 0 8px; }

/* ---------- try-on studio ---------- */
.studio-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 8px 0 28px; }
.studio-head .display { font-size: clamp(34px, 4vw, 54px); }
.studio-head p { max-width: 60ch; margin-top: 12px; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.stage-col { position: sticky; top: 136px; }
.stage { position: relative; border-radius: 18px; overflow: hidden; background: #e9e5de; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; max-height: 78vh; }
.stage canvas.bg, .stage canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage canvas.gl { touch-action: none; cursor: grab; }
.stage canvas.gl:active { cursor: grabbing; }
.stage.photo canvas.gl { cursor: move; }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); font-size: 14px; text-align: center; padding: 24px; z-index: 2; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-chip { position: absolute; left: 14px; top: 14px; z-index: 3; background: rgba(29,34,39,.8); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 99px; pointer-events: none; }
.stage-chip:empty { display: none; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; gap: 10px; justify-content: center; padding: 18px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.stage-tips { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.studio-panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.studio-panel section { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.studio-panel section:last-child { border-bottom: 0; }
.studio-panel h4 { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 14px; }
.studio-panel h4 i { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: 11.5px; display: grid; place-items: center; }
.scene-row { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-size: 13px; }
.design-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.design { text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 8px; display: grid; gap: 2px; transition: border-color .12s; }
.design:hover { border-color: var(--line-2); }
.design.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.design-art { display: grid; place-items: center; height: 58px; background: linear-gradient(180deg, #cfdde6, #ece7df); border-radius: 6px; margin-bottom: 6px; padding: 6px; }
.design-art img { max-height: 100%; }
.design b { font-size: 12.5px; } .design small { font-size: 11px; color: var(--muted); }
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.swatch { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; text-align: left; }
.swatch span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); flex: none; }
.swatch.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); font-weight: 600; }
.slider { display: grid; grid-template-columns: 82px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.slider input { accent-color: var(--ink); width: 100%; }
.slider output { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.studio-panel .btn-row { margin-top: 10px; }
.studio-actions { display: grid; gap: 10px; background: #fcfbf9; }
.studio-actions .btn { white-space: normal; text-align: center; line-height: 1.3; padding: 10px 16px; }
.studio-actions .fineprint { margin: 2px 0 0; }
.btn-row.two { display: grid; grid-template-columns: 1fr 1fr; }
.studio-actions .link { justify-self: center; font-size: 13px; color: var(--muted); }
.small-seg button { padding: 8px 10px; font-size: 13px; }
.align-box { margin-top: 14px; background: var(--stone); border-radius: 10px; padding: 12px 14px 6px; }
.align-box .slider { grid-template-columns: 92px 1fr 78px; }
.align-box p { margin-bottom: 10px; }
.studio-panel .slider { grid-template-columns: 92px 1fr 104px; }
.frame-row { display: flex; gap: 6px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.frame-row .subtle { margin-right: 4px; }
.optv.small { padding: 6px 10px; font-size: 12.5px; }
.swatch span[class^="tint-"] { background: linear-gradient(135deg, rgba(255,255,255,.7), transparent 60%), var(--t); }
.tint-clear { --t: #cfe3ee; } .tint-bronze { --t: #8a5631; } .tint-opal { --t: #f1f0ea; } .tint-blue { --t: #3c7fc4; }
.tint-grey { --t: #5f666c; } .tint-natural { --t: #e3dcb4; } .tint-green { --t: #6fa25e; } .tint-white { --t: #f6f6f1; }
.design-art { background: #dfe5e8; height: 74px; padding: 0; overflow: hidden; }
.design-art img { width: 100%; height: 100%; object-fit: cover; max-height: none; }
.estimate { margin-top: 16px; }
.est-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.est-head h3 { font-size: 18px; margin: 0 0 4px; }
.est-head .eyebrow { margin-bottom: 6px; }
.est-price { font-size: 24px; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.est-price small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.est-lines { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 14px 0; font-size: 13.5px; padding-top: 14px; border-top: 1px solid var(--line); }
.est-lines dt { color: var(--muted); } .est-lines dd { margin: 0; }
.est-extras { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13.5px; }
.est-extras .link { color: var(--accent-dark); text-decoration: none; font-weight: 600; }
.est-extras .link:hover { text-decoration: underline; }

/* ---------- staff workspace ---------- */
.ws { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.ws-side { background: var(--ink); color: #c9cdd1; padding: 24px 16px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.ws-brand .wordmark { color: #f4f1ec; } .ws-brand .wm-text small { color: #9aa1a8; }
.ws-brand { padding: 0 8px; }
.ws-role { display: flex; gap: 10px; align-items: center; padding: 12px; background: rgba(255,255,255,.06); border-radius: 10px; }
.ws-role .avatar { background: var(--accent); }
.ws-role b { display: block; color: #fff; font-size: 13.5px; } .ws-role small { font-size: 12px; color: #9aa1a8; }
.ws-side nav { display: grid; gap: 2px; }
.ws-side nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.ws-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.ws-side nav a.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.ws-side nav em { font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 8px; }
.ws-side-foot { margin-top: auto; display: grid; gap: 8px; padding: 0 12px; font-size: 13.5px; }
.ws-side-foot .link { color: #c9cdd1; text-align: left; }
.ws-main { padding: 28px 36px 64px; min-width: 0; }
.ws-top { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.ws-top h1 { font-family: var(--serif); font-size: 36px; font-weight: 600; }
.ws-top .eyebrow { margin-bottom: 6px; }
.ws-date { margin-left: auto; color: var(--muted); font-size: 13px; }
.ws-menu { display: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: grid; gap: 4px; transition: border-color .15s, box-shadow .15s; }
a.kpi:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.kpi small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi strong { font-size: 28px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--muted); }
.ws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.ws-grid.wide-left { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
.todo { list-style: none; padding: 0; margin: 0; }
.todo li a, .todo li > span { display: grid; grid-template-columns: 1fr auto; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: center; }
.todo li:last-child a, .todo li:last-child > span { border-bottom: 0; }
.todo b { font-size: 14px; font-weight: 600; } .todo small { grid-column: 1; color: var(--muted); font-size: 12.5px; }
.todo .ic { grid-row: 1 / span 2; grid-column: 2; width: 16px; color: var(--muted); }
.todo a:hover b { text-decoration: underline; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 90px; gap: 12px; align-items: center; font-size: 13px; }
.hbar div { height: 10px; background: var(--stone); border-radius: 5px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--steel); border-radius: 5px; }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--stone); padding: 4px; border-radius: 10px; }
.tabs button { border: 0; background: none; padding: 7px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.tabs button em { font-style: normal; font-size: 11px; color: var(--muted); }
.tabs button.on { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.back { display: inline-block; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.back:hover { color: var(--ink); }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-head h2 { font-size: 24px; display: flex; gap: 12px; align-items: center; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; border-left: 2px solid var(--line); padding-left: 16px; }
.history li { position: relative; font-size: 14px; }
.history li::before { content: ''; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.history small { display: block; color: var(--muted); font-size: 12px; }
.add-box { margin-bottom: 16px; }
.add-box summary { cursor: pointer; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.add-box[open] summary { margin-bottom: 18px; }
.low-row td { background: #fffaf2; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.board-col { background: var(--stone); border-radius: var(--r-lg); padding: 16px; }
.board-col h3 { font-size: 15px; display: flex; justify-content: space-between; }
.board-col h3 em { font-style: normal; background: var(--white); border-radius: 99px; padding: 0 9px; font-size: 12px; }
.board-col > .subtle { margin: 4px 0 12px; }
.board-card { background: var(--white); border-radius: var(--r); padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); font-size: 13.5px; }
.bc-head { display: flex; justify-content: space-between; margin-bottom: 6px; } .bc-head span { color: var(--muted); font-size: 12px; }
.ship-form { display: grid; gap: 6px; margin-top: 10px; }
.ship-form input { padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 13px; }
.small-pad { padding: 8px 4px; font-size: 13px; }
.matrix td, .matrix th { text-align: center; } .matrix td:first-child, .matrix th:first-child { text-align: left; }
.team-form { margin-bottom: 20px; }
.team-form .grid4 { grid-template-columns: 1.2fr 1.4fr 1.2fr 1fr auto; }
.perm { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.perm.edit { background: var(--ok-soft); color: var(--ok); } .perm.view { background: var(--info-soft); color: var(--info); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .head-row { gap: 16px; }
  .acct-name { display: none; }
  .hero-grid, .tryon-grid { gap: 36px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .studio { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 32px); }
  .menu-btn { display: inline-flex; margin-left: -8px; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a.on { box-shadow: none; background: var(--stone); border-radius: 8px; }
  .head-search { display: none; }
  .head-actions { margin-left: auto; }
  .hero-grid, .tryon-grid, .pd-grid, .split, .studio, .auth, .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { aspect-ratio: 4 / 3; }
  .assurance-grid { grid-template-columns: 1fr 1fr; }
  .assurance-grid > div:nth-child(3) { border-left: 0; }
  .assurance-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .recent-grid { grid-template-columns: 1fr; }
  .cat-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filters { display: none; }
  .mobile-only { display: flex; }
  .pd-media, .summary, .stage-col { position: static; }
  .auth-visual { display: none; }
  .mobile-brand { display: block; }
  .tryon-band { padding: 56px 0; }
  .ws { grid-template-columns: 1fr; }
  .ws-side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .25s; }
  .ws-side.open { transform: none; box-shadow: var(--shadow-lg); }
  .ws-menu { display: inline-flex; margin-left: -8px; }
  .ws-main { padding: 20px 16px 48px; }
  .ws-date { display: none; }
  .ws-grid, .ws-grid.wide-left, .board { grid-template-columns: minmax(0, 1fr); }
  .grid4, .team-form .grid4 { grid-template-columns: 1fr 1fr; }
  .tracker { grid-template-columns: repeat(5, minmax(60px, 1fr)); overflow-x: auto; padding: 20px 12px; }
  .trk small { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .stage { aspect-ratio: 4 / 3.4; }
  .wm-text b { font-size: 19px; } .wm-text small { font-size: 8.5px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; } .card-body h3 { font-size: 14px; } .card-meta { font-size: 12px; margin-bottom: 8px; }
  .card-foot { flex-direction: column; gap: 2px; } .price { font-size: 15px; }
  .tag { font-size: 9px; } .tag.tryon { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-art { width: 88px; height: 66px; }
  .assurance-grid { grid-template-columns: 1fr; }
  .assurance-grid > div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .assurance-grid > div:first-child { border-top: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid2, .grid4, .team-form .grid4 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .line { grid-template-columns: 72px 1fr; gap: 12px; }
  .line-qty { grid-column: 2; justify-items: start; grid-template-columns: auto auto; align-items: center; gap: 10px; }
  .line-total { grid-column: 2; text-align: left; }
  .lines { padding: 4px 16px; }
  .panel { padding: 18px; }
  .panel > .table { margin: 0 -18px; width: calc(100% + 36px); }
  .buy-row { flex-direction: column; }
  .stepper { align-self: flex-start; }
  .hero-search { flex-wrap: wrap; } .hero-search .btn { width: 100%; }
  .demo-list { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 1fr 70px; } .hbar div { grid-column: 1 / -1; grid-row: 2; }
  .orders-table th:nth-child(3), .orders-table td:nth-child(3), .hide-sm { display: none; }
  .cat-controls, .search-inline { width: 100%; } .search-inline input { width: 100%; }
  .pending { padding: 24px; }
}

/* ---------- print (invoice) ---------- */
@media print {
  .site-head, .site-foot, .staff-strip, .no-print, .btn, #toast, .tracker, .success-banner { display: none !important; }
  body { background: #fff; }
  .split { grid-template-columns: 1fr 1fr; }
  .panel { border: 1px solid #ccc; break-inside: avoid; }
}
