/* Intro */
.intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-top: 56px; padding-bottom: 36px; }
.intro h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; }
.intro h1 em { font-style: italic; color: var(--brown); }
.lede { font-size: 17px; color: var(--ink-2); max-width: 54ch; margin: 18px 0 0; }
.terms { display: grid; gap: 14px; margin: 0; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.terms div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.terms div:last-child { border: 0; padding: 0; }
.terms dt { color: var(--muted); font-size: 14px; }
.terms dd { margin: 0; font-weight: 500; font-size: 14px; text-align: right; }

/* Feature */
.feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0; margin: 0 auto 8px; }
.feature-img { border-radius: var(--r) 0 0 var(--r); overflow: hidden; background: var(--sand); aspect-ratio: 3 / 2; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.feature figcaption { background: var(--paper); border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--r) var(--r) 0; padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.feature h2 { font-size: 32px; line-height: 1.1; }
.feature .btn { align-self: flex-start; margin-top: 10px; }

/* Swatches */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(44,34,16,.18); padding: 0; position: relative; background: var(--c); }
.sw::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid transparent; }
.sw[aria-pressed="true"]::after { border-color: var(--ink); }
.sw .dot { position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--paper); }
.sw .dot.pick { background: var(--sage); }
.sw .dot.maybe { background: var(--amber); }
.sw .dot.pass { background: var(--rust); }

/* Filters */
.filters { position: sticky; top: 63px; z-index: 30; display: flex; gap: 8px; padding: 22px 0 18px; overflow-x: auto; background: var(--cream); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: 9px 16px; font-size: 14px; min-height: 40px; }
.filters button span { color: var(--muted); margin-left: 4px; font-size: 12px; }
.filters button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.filters button[aria-selected="true"] span { color: #cbbfa8; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.ph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--sand); cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: opacity .2s, transform .6s; }
.ph:hover img { transform: scale(1.02); }
.ph .state { position: absolute; left: 12px; top: 12px; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 500; background: rgba(255,255,255,.92); }
.ph .state.pick { background: var(--sage); color: #fff; }
.ph .state.maybe { background: var(--amber); color: #fff; }
.ph .state.pass { background: var(--rust); color: #fff; }
.ph .cname { position: absolute; right: 12px; bottom: 12px; background: rgba(250,247,241,.92); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sku { font-size: 12px; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; margin: 0; }
.card h3 { font-size: 22px; line-height: 1.2; }
.price { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sub { margin: 0; font-size: 14px; color: var(--muted); }
.marks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.marks button { border: 1px solid var(--line-2); background: var(--paper); border-radius: 10px; min-height: 44px; font-size: 14px; font-weight: 500; }
.marks button:hover { border-color: var(--ink-2); }
.marks [data-mark="pick"][aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }
.marks [data-mark="maybe"][aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #fff; }
.marks [data-mark="pass"][aria-pressed="true"] { background: var(--rust); border-color: var(--rust); color: #fff; }
.row-actions { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(44,34,16,.42); animation: fade .2s; }
.drawer-panel { position: absolute; inset: 24px; margin: auto; max-width: 1180px; max-height: 860px; background: var(--cream); border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); animation: rise .25s; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.drawer-x { position: absolute; right: 14px; top: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); font-size: 22px; line-height: 1; }
.d-media { position: relative; background: var(--sand); min-height: 0; }
.d-media img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.d-nav { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: rgba(250,247,241,.92); border-radius: 999px; padding: 4px; font-size: 13px; }
.d-nav button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper); }
.d-info { padding: 36px 36px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.d-info h2 { font-size: 34px; line-height: 1.1; padding-right: 40px; }
.d-sku { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: .06em; }
.d-spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 12px 0 4px; font-size: 14px; }
.d-spec dt { color: var(--muted); }
.d-spec dd { margin: 0; }
.d-h { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: 16px; }
.d-colors { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.d-color { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; }
.d-color.is-on { border-color: var(--ink); }
.d-color img { width: 52px; height: 64px; object-fit: cover; border-radius: 8px; }
.d-color .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.d-color .cn { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.d-color .cn i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1px solid rgba(44,34,16,.2); }
.d-color .marks { grid-template-columns: repeat(3, auto); }
.d-color .marks button { min-height: 34px; padding: 0 12px; font-size: 13px; }
.d-color .units { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.d-color .units input { width: 110px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--cream); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13px; min-height: 34px; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.dock-in { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.dock-sum { margin: 0; flex: 1; }
.dock-sum b { font-weight: 600; }

/* Picks and report */
.page-head { padding: 52px 0 24px; max-width: 760px; }
.page-head h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.list { list-style: none; margin: 0 0 24px; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; }
.li .n { margin: 0; font-weight: 500; }
.li .c { margin: 2px 0 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.li .c i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 1px solid rgba(44,34,16,.2); }
.li .note { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.li .u { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; white-space: nowrap; }
.pill { border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 500; text-transform: capitalize; }
.pill.pick { background: var(--sage-bg); color: #3f6b3a; }
.pill.maybe { background: var(--amber-bg); color: #845b12; }
.pill.pass { background: var(--rust-bg); color: var(--rust); }
.grp { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 500; margin: 28px 0 10px; }
.empty { background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 36px; text-align: center; color: var(--muted); }
.send-box { display: grid; gap: 14px; max-width: 560px; margin-top: 8px; }
.send-box label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.send-box .btn { justify-self: start; }
.send-msg { margin: 0; font-size: 14px; }
.send-msg.is-ok { color: #3f6b3a; }
.send-msg.is-error { color: var(--rust); }
.rep-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 8px; }
.rep-side { position: sticky; top: 90px; align-self: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; }
.rep-side h3 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 500; }
.top-colors, .changes { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.top-colors li { display: flex; align-items: center; gap: 8px; }
.top-colors i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1px solid rgba(44,34,16,.2); }
.top-colors span { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.changes li { border-left: 2px solid var(--line-2); padding-left: 10px; }
.rep-actions { display: flex; gap: 8px; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; }
  .feature { grid-template-columns: 1fr; }
  .feature-img { border-radius: var(--r) var(--r) 0 0; }
  .feature figcaption { border-left: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); padding: 24px; }
  .drawer-panel { inset: 0; border-radius: 0; max-height: none; grid-template-columns: 1fr; grid-template-rows: 46vh 1fr; }
  .rep-grid { grid-template-columns: 1fr; }
  .rep-side { position: static; }
}
@media (max-width: 720px) {
  .filters { top: 104px; }
  .grid { gap: 28px 12px; }
  .card h3 { font-size: 17px; }
  .meta { flex-direction: column; gap: 2px; }
  .marks button { font-size: 13px; min-height: 40px; }
  .sw { width: 26px; height: 26px; }
  .d-info { padding: 22px 18px; }
  .d-info h2 { font-size: 26px; }
  .li { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .li img { width: 48px; height: 60px; }
  .li .u { display: none; }
  .dock-sum { font-size: 14px; }
}

/* v3: per-buyer pages */
.ph .state.tag { background: var(--ink); color: var(--cream); }
.filters.solo { display: none; }
.loop { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; background: var(--sand); border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px 24px; margin-bottom: 8px; }
.loop .eyebrow { grid-column: 1 / -1; margin: 0; }
.loop p:not(.eyebrow) { margin: 0; color: var(--ink-2); max-width: 70ch; }
.top .sub-logo { height: 24px; width: auto; }
@media (max-width: 720px) {
  .loop { grid-template-columns: 1fr; }
  .loop .btn { justify-self: start; }
  .top .sub-logo, .top .label { display: none; }
}
