/* Staff dashboard. Standalone on purpose: it does not load the public site's
   override layers, so nothing there can restyle or break it.
   Colours are defined once, here, as tokens. The --vv-* values mirror the shared
   palette in brand-refresh.css (resolved values, CLAUDE.md §1.2); the --a-* tokens
   are admin-only semantics. Component rules below use tokens only — no raw hex. */
:root{
  --vv-navy:#21233a;--vv-ink:#242a3d;--vv-muted:#657087;--vv-line:#e1e6ef;--vv-stage:#f7f8fb;
  --vv-accent:#7a1f3d;--vv-pink:#5c1a2e;--vv-accent-bright:#a8395c;
  --vv-on-inverse:#fff;--vv-on-inverse-muted:rgba(255,255,255,.74);
  --vv-inverse-hover:rgba(255,255,255,.07);--vv-inverse-active:rgba(255,255,255,.12);--vv-inverse-line:rgba(255,255,255,.12);
  --vv-whatsapp:#15803d;--vv-whatsapp-deep:#11632f;
  --vv-ease-out:cubic-bezier(.23,1,.32,1);
  --cyan:#0a84c4;

  --a-surface:#fff;--a-subtle:#fafbfd;--a-hover:#f3f5f9;--a-field-line:#c9d1df;--a-field-off:#f1f3f8;--a-field-off-ink:#59627a;
  --a-accent-tint:#f8eef2;--a-scrim:rgba(20,24,46,.48);--a-backdrop:rgba(20,24,46,.42);
  --a-blue:#075e8c;--a-blue-bg:#e7f2fa;--a-blue-line:#cbe0f8;--a-blue-ink:#1e3a5f;--a-amber:#7d5300;--a-amber-bg:#fff3d6;--a-red:#a4262c;--a-red-bg:#fdecec;--a-grey:#4a5369;--a-grey-bg:#eef0f5;
  --a-notice-bg:#fff7e0;--a-notice-line:#f0d58a;--a-notice-ink:#5d4300;
  --a-shadow-sm:0 1px 2px rgba(20,24,46,.05);--a-shadow:0 1px 2px rgba(20,24,46,.04),0 6px 20px rgba(20,24,46,.06);--a-shadow-lg:0 24px 60px rgba(20,24,46,.28);
  --a-green:#14683a;--a-green-bg:#e6f4ec;--a-well:#eef1f6;
  --a-r:10px;--a-r-lg:14px;--a-side:240px;--a-shell:20px;--a-pad:32px;
  --a-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --a-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --a-prototype-bg:#fff9e6;--a-prototype-line:#f5df97;--a-prototype-ink:#7d5300;
  --a-prototype-badge-bg:#fef0c7;--a-prototype-badge-ink:#92400e;
  --a-tooltip-bg:#1c1f30;--a-tooltip-text:#ffffff;
  --a-btn-danger-hover:#831b20;
  --a-skeleton-base:#e9ecf2;--a-skeleton-highlight:#f7f8fb;
  --a-chart-1:#7a1f3d;--a-chart-2:#075e8c;--a-chart-3:#14683a;--a-chart-4:#d97706;
  --a-purple:#6d28d9;--a-purple-bg:#f5f3ff;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--vv-stage);color:var(--vv-ink);font:15px/1.5 var(--a-font);-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
a{color:var(--vv-pink)}
h1,h2,h3{margin:0;line-height:1.2;letter-spacing:-.015em;font-weight:650}
h1{font-size:26px}h2{font-size:17px}h3{font-size:15px}
p{margin:0}
.muted{color:var(--vv-muted)}.small{font-size:13px}
.skip{position:absolute;left:-999px;top:0;background:var(--vv-navy);color:var(--vv-on-inverse);padding:10px 14px;z-index:99}.skip:focus{left:8px;top:8px}
:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
svg{flex:none}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- controls: 44px+ targets, 16px inputs so iOS never zooms ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:var(--a-r);border:1px solid var(--vv-line);background:var(--a-surface);color:var(--vv-ink);font:600 15px var(--a-font);cursor:pointer;text-decoration:none;white-space:nowrap;transition:background-color .15s,border-color .15s,box-shadow .15s,transform .1s}
.btn:hover{background:var(--a-hover);border-color:var(--a-field-line)}
.btn:active{transform:scale(.98)}
.btn.primary{background:var(--vv-accent);border-color:var(--vv-accent);color:var(--vv-on-inverse)}.btn.primary:hover{background:var(--vv-pink);border-color:var(--vv-pink)}
.btn.outline{background:transparent;border-color:var(--vv-line);color:var(--vv-ink)}.btn.outline:hover{background:var(--a-hover);border-color:var(--a-field-line)}
.btn.secondary{background:var(--a-subtle);border-color:var(--vv-line);color:var(--vv-ink)}.btn.secondary:hover{background:var(--a-hover)}
.btn.danger{background:var(--a-red);border-color:var(--a-red);color:var(--vv-on-inverse)}.btn.danger:hover{background:var(--a-btn-danger-hover);border-color:var(--a-btn-danger-hover)}
.btn.danger.outline{background:transparent;border-color:rgba(164,38,44,.3);color:var(--a-red)}.btn.danger.outline:hover{background:var(--a-red-bg);border-color:var(--a-red)}
.btn.wa{background:var(--vv-whatsapp);border-color:var(--vv-whatsapp);color:var(--vv-on-inverse)}.btn.wa:hover{background:var(--vv-whatsapp-deep)}
.btn.ghost{background:transparent;border-color:transparent}
.btn.small{min-height:36px;padding:6px 12px;font-size:13.5px;border-radius:8px}
.btn[disabled]{opacity:.55;cursor:not-allowed;transform:none!important}
.iconbtn{display:inline-grid;place-items:center;width:44px;height:44px;border:0;border-radius:var(--a-r);background:transparent;color:inherit;cursor:pointer;transition:background-color .15s,color .15s}
.iconbtn svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.iconbtn:hover{background:var(--vv-inverse-hover)}.iconbtn.light:hover{background:var(--a-hover)}
input,select,textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--a-field-line);border-radius:var(--a-r);background:var(--a-surface);color:var(--vv-ink);font:16px var(--a-font)}
input:focus,select:focus,textarea:focus{border-color:var(--cyan)}
textarea{min-height:96px;resize:vertical}
input[readonly],input:disabled,select:disabled,textarea:disabled{background:var(--a-field-off);color:var(--a-field-off-ink)}
label{display:grid;gap:6px;font-weight:600;font-size:14px}
label small,.hint{font-weight:400;color:var(--vv-muted);font-size:13px}
.error{color:var(--a-red);font-size:14px;min-height:1.2em}
.error:empty{min-height:0}

/* ---------- sign-in gate ---------- */
.gate{min-height:100dvh;display:grid;place-items:center;padding:20px;background:var(--vv-navy)}
.gate-card{width:min(500px,100%);background:var(--a-surface);border-radius:18px;padding:28px;display:grid;gap:14px;box-shadow:var(--a-shadow-lg)}
.gate-brand{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.gate-brand img{width:40px;height:40px;background:var(--vv-navy);border-radius:10px;padding:6px}
.gate-brand span{display:grid;font-weight:700;font-size:15px;line-height:1.2}.gate-brand small{font-weight:500;color:var(--vv-muted);font-size:13px}
.gate-actions{display:flex;gap:10px;flex-wrap:wrap}
.boot{display:grid;gap:12px;border-top:1px solid var(--vv-line);padding-top:16px}
.idbox{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.idbox code{background:var(--vv-stage);border:1px solid var(--vv-line);border-radius:8px;padding:8px 10px;font:14px var(--a-mono);word-break:break-all}

/* ---------- app frame: sidebar + content ---------- */
.app{display:grid;grid-template-columns:var(--a-side) minmax(0,1fr);min-height:100dvh;background:var(--vv-navy)}
.work{min-width:0;background:var(--vv-stage);border-radius:var(--a-shell) 0 0 var(--a-shell);min-height:100dvh}
.side{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;background:var(--vv-navy);color:var(--vv-on-inverse);overflow-y:auto;overscroll-behavior:contain}
.side-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:22px 18px 14px}
.side-logo{display:block;width:168px;border-radius:6px}
.side-logo svg,.side-logo img.brand-full-art{display:block;width:100%;height:auto}
.side-tag{flex-basis:100%;font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--vv-on-inverse-muted)}
.side-close{display:none;margin-left:auto}
.nav{display:grid;gap:2px;padding:6px 12px 16px}
.nav-label{margin:14px 10px 4px;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--vv-on-inverse-muted)}
.nav a{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 12px;border-radius:var(--a-r);color:var(--vv-on-inverse-muted);text-decoration:none;font-size:15px;font-weight:500;transition:background-color .15s,color .15s}
.nav a svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nav a:hover{background:var(--vv-inverse-hover);color:var(--vv-on-inverse)}
.nav a[aria-current=page]{background:var(--vv-inverse-active);color:var(--vv-on-inverse);font-weight:600}
.side-foot{margin-top:auto;padding:14px 12px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--vv-inverse-line);display:grid;gap:8px}
.me{display:flex;align-items:center;gap:10px;padding:4px 6px}
.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--vv-accent);color:var(--vv-on-inverse);font-weight:700;font-size:14px;flex:none}
.me-text{display:grid;min-width:0;line-height:1.3}.me-text b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.role{justify-self:start;margin-top:2px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--vv-on-inverse-muted)}
.side-actions{display:flex;gap:6px}
.side-link{flex:1;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:6px 10px;border:1px solid var(--vv-inverse-line);border-radius:var(--a-r);background:transparent;color:var(--vv-on-inverse);font:500 14px var(--a-font);text-decoration:none;cursor:pointer}
.side-link:hover{background:var(--vv-inverse-hover)}
.mbar{display:none}
.scrim{display:none}

.main{min-width:0;width:100%;max-width:1480px;margin:0 auto;padding:var(--a-pad) var(--a-pad) 96px}
.main:focus{outline:0}
.notice{background:var(--a-notice-bg);border:1px solid var(--a-notice-line);color:var(--a-notice-ink);border-radius:var(--a-r);padding:12px 14px;margin-bottom:16px}
.page-head{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end;justify-content:space-between;margin-bottom:20px}
.page-head p{margin-top:4px;color:var(--vv-muted)}
.loading{color:var(--vv-muted);padding:24px 0}

/* ---------- dashboard ---------- */
.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin-bottom:24px}
.stat{display:grid;gap:8px;align-content:start;background:var(--a-surface);border:1px solid var(--vv-line);border-radius:var(--a-r-lg);padding:18px 20px;color:inherit;text-decoration:none;box-shadow:var(--a-shadow-sm);transition:border-color .18s,box-shadow .18s,transform .18s}
a.stat:hover{border-color:var(--a-field-line);box-shadow:var(--a-shadow);transform:translateY(-1px)}
.stat-top{display:flex;align-items:center;gap:10px}
.stat-ic{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:8px;background:var(--vv-stage);color:var(--vv-navy);border:1px solid var(--vv-line);flex:none}
.stat-ic svg{width:18px;height:18px}
.stat span{color:var(--vv-muted);font-size:13px;font-weight:500}
.stat b{font-size:30px;line-height:1.1;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.stat small{color:var(--vv-muted);font-size:12px}
.stat.attention{border-color:rgba(122,31,61,.3)}
.stat.attention b{color:var(--vv-accent)}
.stat.attention .stat-ic{background:var(--a-accent-tint);color:var(--vv-accent);border-color:rgba(122,31,61,.2)}
.duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.panel{background:var(--a-surface);border:1px solid var(--vv-line);border-radius:var(--a-r-lg);box-shadow:var(--a-shadow-sm);margin-bottom:16px;min-width:0}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--vv-line)}
.panel-head a{font-size:14px;font-weight:600;text-decoration:none}
.panel-body{padding:16px 18px}
.panel.flush .panel-body{padding:0}
.empty{padding:22px 18px;color:var(--vv-muted);text-align:center}
.mini{list-style:none;margin:0;padding:0}
.mini li{border-top:1px solid var(--vv-line)}.mini li:first-child{border-top:0}
.mini button,.mini .row-static{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 18px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.mini .row-static{cursor:default}
.mini button:hover{background:var(--a-subtle)}
.mini .grow{flex:1;min-width:0;display:grid;line-height:1.35}
.mini .grow b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini .grow span{color:var(--vv-muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini .end{text-align:right;font-size:13px;color:var(--vv-muted);display:grid;justify-items:end;gap:4px}

/* ---------- toolbar ---------- */
.toolbar{display:grid;grid-template-columns:minmax(220px,2fr) repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.toolbar.orders{grid-template-columns:minmax(220px,2fr) repeat(3,minmax(0,1fr))}
.toolbar.hist{grid-template-columns:minmax(220px,2fr) minmax(0,1fr)}
.search{position:relative}
.search svg{position:absolute;left:12px;top:50%;width:18px;height:18px;transform:translateY(-50%);fill:none;stroke:var(--vv-muted);stroke-width:1.8;stroke-linecap:round;pointer-events:none}
.search input{padding-left:38px}
.toolbar label.date{display:flex;align-items:center;gap:8px;font-weight:500;color:var(--vv-muted)}
.toolbar label.date input{flex:1;min-width:0}
.count{color:var(--vv-muted);font-size:14px;margin:0 0 10px}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:-2px 0 12px}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:4px 12px;border:1px solid var(--vv-line);border-radius:999px;background:var(--a-surface);color:var(--vv-ink);font:500 13px var(--a-font);cursor:pointer}
.chip[aria-pressed=true]{background:var(--vv-ink);border-color:var(--vv-ink);color:var(--vv-on-inverse)}

/* ---------- tables (desktop) and cards (narrow) ---------- */
.tbl-wrap{position:relative;background:var(--a-surface);border:1px solid var(--vv-line);border-radius:var(--a-r-lg);box-shadow:var(--a-shadow-sm);overflow-x:auto}
.panel .tbl-wrap{border:0;border-radius:0;box-shadow:none}
.tbl{width:100%;border-collapse:collapse}
.tbl th{background:var(--a-subtle);text-align:left;font-size:11.5px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--vv-muted);padding:11px 12px;white-space:nowrap;border-bottom:1px solid var(--vv-line)}
.tbl td{padding:11px 12px;border-top:1px solid var(--vv-line);vertical-align:middle;font-size:14px;transition:background-color .12s}
.tbl tbody tr:first-child td{border-top:0}
.tbl tr[data-sku],.tbl tr[data-order]{cursor:pointer}
.tbl tbody tr:hover td{background:var(--a-subtle)}
.tbl .nowrap{white-space:nowrap}
.tbl .name{font-weight:600;min-width:150px}
.tbl .cat{min-width:88px}
.tbl th:first-child,.tbl td:first-child{padding-left:14px}.tbl th:last-child,.tbl td:last-child{padding-right:14px}
.tbl .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.tbl th.num{text-align:right}
.tbl .act{text-align:right;white-space:nowrap}
.tbl .sub{display:block;font-weight:400;color:var(--vv-muted);font-size:13px}
.thumb{display:grid;place-items:center;width:44px;height:44px;border-radius:8px;background:var(--vv-stage);border:1px solid var(--vv-line);overflow:hidden;flex:none;color:var(--vv-muted)}
.thumb img{width:100%;height:100%;object-fit:contain}
.thumb.wedding img{object-fit:cover}
.thumb svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.thumb.lg{width:64px;height:64px;border-radius:10px}
.thumb.xl{width:88px;height:88px;border-radius:12px}
.prod-id{display:flex;gap:14px;align-items:center}.prod-id .field-fixed{flex:1;min-width:0}
.sku{display:inline-block;font:600 12px var(--a-mono);background:var(--a-grey-bg);color:var(--vv-ink);border-radius:6px;padding:3px 6px;white-space:nowrap}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 9px 3px 8px;font-size:12px;font-weight:600;white-space:nowrap;background:var(--a-grey-bg);color:var(--a-grey)}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.pill.blue{background:var(--a-blue-bg);color:var(--a-blue)}.pill.amber{background:var(--a-amber-bg);color:var(--a-amber)}.pill.red{background:var(--a-red-bg);color:var(--a-red)}.pill.green{background:var(--a-green-bg);color:var(--a-green)}
.price{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.price .from{font-weight:500;color:var(--vv-muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em;margin-right:3px}
.price .unit{font-weight:500;color:var(--vv-muted)}
.price.none{font-weight:500;color:var(--vv-muted)}

.clist{display:none;list-style:none;margin:0;padding:0;gap:10px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.citem{display:flex;gap:12px;width:100%;padding:14px;background:var(--a-surface);border:1px solid var(--vv-line);border-radius:var(--a-r-lg);box-shadow:var(--a-shadow-sm);color:inherit;font:inherit;text-align:left;cursor:pointer}
.citem:hover{border-color:var(--a-field-line)}
.citem .grow{flex:1;min-width:0;display:grid;gap:6px;align-content:start}
.citem .title{font-weight:600;font-size:15px;line-height:1.3}
.citem .meta{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;color:var(--vv-muted);font-size:13px}
.citem .foot{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.citem .chev{align-self:center;width:18px;height:18px;fill:none;stroke:var(--vv-muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.citem.static{cursor:default}
.citem .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.more{text-align:center;margin-top:14px}

/* ---------- editor sheet: side panel on desktop, full screen on phones ---------- */
.sheet{border:0;padding:0;margin:0 0 0 auto;right:0;left:auto;top:0;bottom:0;width:min(620px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;border-radius:var(--a-r-lg) 0 0 var(--a-r-lg);box-shadow:var(--a-shadow-lg);color:var(--vv-ink);background:var(--a-surface)}
.sheet[open]{animation:sheetIn .28s var(--vv-ease-out)}
@keyframes sheetIn{from{transform:translateX(32px);opacity:0}to{transform:none;opacity:1}}
.sheet::backdrop{background:var(--a-backdrop)}
.sheet form{display:flex;flex-direction:column;height:100%}
.sheet-head{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;padding:18px 20px 14px;padding-top:calc(18px + env(safe-area-inset-top));border-bottom:1px solid var(--vv-line)}
.sheet-head h2{font-size:19px}.sheet-head p{margin:6px 0 0;font-size:14px;display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
.sheet-head .iconbtn{margin:-8px -10px 0 0;color:var(--vv-muted)}
.sheet-body{flex:1;padding:18px 20px 24px;overflow:auto;display:grid;gap:18px;align-content:start;overscroll-behavior:contain}
.sheet-foot{padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--vv-line);background:var(--a-surface);display:grid;gap:8px}
.sheet-foot>div{display:flex;gap:10px;flex-wrap:wrap}.sheet-foot .btn{flex:1 1 140px}
.section{display:grid;gap:14px;padding-top:18px;border-top:1px solid var(--vv-line)}
.section:first-child{padding-top:0;border-top:0}
.section>h3{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--vv-muted)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field-fixed{display:grid;gap:6px;font-weight:600;font-size:14px}
.field-fixed>div{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px dashed var(--a-field-line);border-radius:var(--a-r);background:var(--a-subtle);font-weight:500}
.money.suffix span{left:auto;right:14px}.money.suffix input{padding-left:12px;padding-right:40px}
.section>.error:empty,.section>#quoteLink:empty{margin-top:-14px}.sheet-foot>.error:empty{margin-bottom:-8px}
.money{position:relative}.money span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--vv-muted);font-size:14px;font-weight:600;pointer-events:none}.money input{padding-left:50px;font-variant-numeric:tabular-nums}
.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.seg label{position:relative;font-weight:600}
.seg input{position:absolute;opacity:0;inset:0;min-height:0;cursor:pointer;margin:0}
.seg span{display:grid;gap:2px;align-content:center;height:100%;min-height:64px;border:1px solid var(--a-field-line);border-radius:var(--a-r);padding:10px 12px;font-size:14px;background:var(--a-surface)}
.seg span small{font-weight:400;font-size:12px;color:var(--vv-muted);line-height:1.35}
.seg input:checked+span{border-color:var(--vv-accent);background:var(--a-accent-tint);box-shadow:inset 0 0 0 1px var(--vv-accent)}
.seg input:focus-visible+span{outline:3px solid var(--cyan);outline-offset:2px}
.seg input:disabled+span{background:var(--a-field-off);color:var(--a-field-off-ink);cursor:not-allowed}
.preview{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;padding:12px 14px;border-radius:var(--a-r);background:var(--vv-stage);border:1px solid var(--vv-line);font-size:14px}
.preview b{font-variant-numeric:tabular-nums}
.preview .lbl{color:var(--vv-muted);font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;flex-basis:100%}
.switch{display:flex;align-items:center;gap:12px;font-weight:600;cursor:pointer}
.switch input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}
.switch .track{position:relative;width:44px;height:26px;border-radius:999px;background:var(--a-field-line);transition:background-color .2s;flex:none}
.switch .track::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:var(--a-surface);box-shadow:var(--a-shadow-sm);transition:transform .2s var(--vv-ease-out)}
.switch input:checked+.track{background:var(--vv-accent)}.switch input:checked+.track::after{transform:translateX(18px)}
.switch input:focus-visible+.track{outline:3px solid var(--cyan);outline-offset:2px}
.switch input:disabled+.track{opacity:.5}
.switch small{display:block;font-weight:400;color:var(--vv-muted);font-size:13px}
.block{border:1px solid var(--vv-line);border-radius:var(--a-r-lg);padding:14px 16px;display:grid;gap:12px}
.kv{display:grid;grid-template-columns:120px 1fr;gap:6px 12px;font-size:14px;margin:0}.kv dt{color:var(--vv-muted)}.kv dd{margin:0;word-break:break-word}
.lines{list-style:none;margin:0;padding:0;display:grid}
.lines li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;padding:12px 0;border-top:1px solid var(--vv-line)}.lines li:first-child{border-top:0;padding-top:0}
.lines .what{display:grid;gap:4px}.lines .what b{font-weight:600}
.lines .calc{text-align:right;font-variant-numeric:tabular-nums;font-size:14px;color:var(--vv-muted);white-space:nowrap}
.lines .calc b{display:block;color:var(--vv-ink);font-size:15px}
.totals{display:flex;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--vv-line);font-weight:600}
.hist{list-style:none;margin:0;padding:0;display:grid;gap:10px;font-size:14px}.hist li{border-left:3px solid var(--vv-line);padding-left:10px}
.actions-inline{display:flex;gap:8px;flex-wrap:wrap}
.linkbox{display:grid;gap:8px;padding:12px;border-radius:var(--a-r);background:var(--vv-stage);border:1px solid var(--vv-line)}
.linkbox code{font:13px var(--a-mono);word-break:break-all}
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translate(-50%,30px);background:var(--vv-navy);color:var(--vv-on-inverse);padding:12px 18px;border-radius:12px;box-shadow:var(--a-shadow-lg);opacity:0;pointer-events:none;transition:opacity .2s,transform .25s var(--vv-ease-out);z-index:60;max-width:min(520px,92vw);text-align:center;font-size:14px}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------- ≤1279: hide the least-needed product columns ---------- */
@media(max-width:1279px){
  .tbl .opt{display:none}
}
/* ---------- ≤1023: top bar + drawer navigation, card lists ---------- */
@media(max-width:1023px){
  .app{display:block}
  .mbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:10px;min-height:56px;padding:6px 12px;padding-top:calc(6px + env(safe-area-inset-top));background:var(--vv-navy);color:var(--vv-on-inverse)}
  .mbar-mark{width:28px;height:28px}
  .mbar-text{display:flex;flex-direction:column;min-width:0;line-height:1.25;flex:1}
  .mbar-brand{font-size:15px;font-weight:650;white-space:nowrap}
  .mbar-title{font-weight:500;font-size:12.5px;color:var(--vv-on-inverse-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .side{position:fixed;inset:0 auto 0 0;z-index:50;width:min(280px,86vw);height:100dvh;transform:translateX(-100%);visibility:hidden;transition:transform .3s var(--vv-ease-out),visibility 0s linear .3s;box-shadow:var(--a-shadow-lg)}
  .app.drawer-open .side{transform:none;visibility:visible;transition:transform .3s var(--vv-ease-out),visibility 0s}
  .side-close{display:inline-grid}
  .side-head{flex-wrap:nowrap;padding:14px 12px 10px 18px;padding-top:calc(14px + env(safe-area-inset-top))}
  .side-head .side-tag{display:none}
  .scrim{display:block;position:fixed;inset:0;z-index:40;background:var(--a-scrim)}
  .scrim[hidden]{display:none!important}
  .main{padding:24px 24px 96px}
  .work{border-radius:0;background:var(--vv-stage)}
  .app{background:var(--vv-stage)}
  .tbl-wrap.cards-narrow{display:none}
  .clist{display:grid}
  .toolbar{grid-template-columns:1fr 1fr}
  .toolbar.orders{grid-template-columns:repeat(3,minmax(0,1fr))}
  .toolbar>.search{grid-column:1/-1}
  .duo{grid-template-columns:1fr}
}
/* ---------- ≤760: phones ---------- */
@media(max-width:767px){
  h1{font-size:23px}
  .main{padding:16px 16px 96px}
  .page-head{margin-bottom:14px}
  .page-head .btn{flex:1 1 100%}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .stat{padding:14px}
  .stat b{font-size:26px}
  .clist{grid-template-columns:1fr}
  .sheet{width:100vw;border-radius:0}
  .sheet[open]{animation-name:sheetUp}
  .grid2{grid-template-columns:1fr}
  .kv{grid-template-columns:100px minmax(0,1fr);gap:8px 12px}
  .toolbar label.date{display:grid;gap:4px;font-size:13px}
  .citem .actions .btn{min-height:44px}
  .seg span small{display:none}
  .seg span{min-height:48px;text-align:center;justify-items:center}
  .panel-head,.mini button,.mini .row-static{padding-left:14px;padding-right:14px}
}
@keyframes sheetUp{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
@media(max-width:430px){
  .toolbar.hist{grid-template-columns:1fr}
  .toolbar.orders{grid-template-columns:1fr 1fr}.toolbar.orders>select{grid-column:1/-1}
  .stat b{font-size:24px}
}

/* ---------- photos & categories ---------- */
.btn.danger{color:var(--a-red);border-color:var(--a-red-bg)}.btn.danger:hover{background:var(--a-red-bg)}
.linkbtn{background:none;border:0;padding:6px 0;min-height:44px;color:var(--vv-pink);font:600 14px var(--a-font);cursor:pointer;text-align:left}.linkbtn:hover{text-decoration:underline}
.catfield{display:grid;gap:2px;align-content:start;min-width:0}
.nc-form{display:grid;gap:10px;padding:12px;border:1px solid var(--vv-line);border-radius:var(--a-r);background:var(--a-subtle)}
.ph-bar{display:grid;gap:8px;justify-items:start}
.ph-add{cursor:pointer}.ph-add:focus-within,.ph-replace:focus-within{outline:3px solid var(--cyan);outline-offset:2px}
.ph-status{min-height:1.3em;font-size:14px;color:var(--vv-muted)}.ph-status.bad{color:var(--a-red)}
.ph-note{padding:12px 14px;border-radius:var(--a-r);background:var(--a-notice-bg);border:1px solid var(--a-notice-line);color:var(--a-notice-ink);font-size:14px}
.ph-empty{padding:18px;border:1px dashed var(--a-field-line);border-radius:var(--a-r);color:var(--vv-muted);font-size:14px;text-align:center}
.ph-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px}
.ph-tile{position:relative;display:grid;gap:4px;min-width:0;border-radius:var(--a-r);padding:4px;border:2px solid transparent}
.ph-tile.sel{border-color:var(--vv-accent);background:var(--a-accent-tint)}
.ph-tile.drag{opacity:.45}.ph-tile.over{border-color:var(--cyan)}
.ph-pick{display:block;width:100%;aspect-ratio:1/1;padding:0;border:1px solid var(--vv-line);border-radius:8px;overflow:hidden;background:var(--vv-stage);cursor:pointer}
.ph-pick img{display:block;width:100%;height:100%;object-fit:contain}
.ph-badge{position:absolute;left:10px;top:10px;padding:2px 8px;border-radius:999px;background:var(--vv-navy);color:var(--vv-on-inverse);font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.ph-name{font-size:12px;color:var(--vv-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ph-move{display:flex;gap:4px}
.ph-move button{flex:1;min-height:36px;border:1px solid var(--vv-line);border-radius:8px;background:var(--a-surface);color:var(--vv-ink);font:600 18px var(--a-font);cursor:pointer}
.ph-move button:disabled{opacity:.4;cursor:not-allowed}
.ph-detail{display:grid;gap:12px;padding:14px;border:1px solid var(--vv-line);border-radius:var(--a-r-lg);background:var(--a-subtle)}
.ph-detail .grid2{align-items:end}
.ph-detail h4{margin:0;font-size:15px}
.ph-focal-wrap{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:12px;align-items:start}
.ph-focal{position:relative;border-radius:8px;overflow:hidden;border:1px solid var(--vv-line);background:var(--vv-stage);cursor:crosshair;touch-action:manipulation;line-height:0}
.ph-focal img{display:block;width:100%;height:auto;max-height:320px;object-fit:contain;margin:0 auto}
.ph-dot{position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;border:3px solid var(--a-surface);box-shadow:0 0 0 2px var(--vv-accent),0 2px 6px rgba(20,24,46,.4);background:var(--vv-accent);opacity:.9;pointer-events:none}
.ph-crops{display:grid;gap:8px;justify-items:start}
.ph-crop{display:block;width:100%;border:1px solid var(--vv-line);border-radius:6px;overflow:hidden;background:var(--vv-stage);line-height:0}
.ph-crop.r34{aspect-ratio:3/4;max-width:72px}.ph-crop.r43{aspect-ratio:4/3;max-width:120px}
.ph-crop img{width:100%;height:100%;object-fit:cover}
.ph-actions{display:flex;flex-wrap:wrap;gap:8px}
.catlist{list-style:none;margin:0;padding:0}
.catlist li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding:10px 18px;border-top:1px solid var(--vv-line)}
.cat-main{display:grid;min-width:0}.cat-actions{display:flex;flex-wrap:wrap;gap:6px}
.cat-add{display:flex;gap:8px;padding:14px 18px;border-top:1px solid var(--vv-line)}
@media(max-width:767px){
  .ph-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ph-focal-wrap{grid-template-columns:1fr}.ph-crops{grid-auto-flow:column;justify-content:start;align-items:end}
  .ph-actions .btn{flex:1 1 140px}
  .catlist li,.cat-add{padding-left:14px;padding-right:14px}
}
@media(max-width:430px){.ph-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){
  .toast,.side,.app.drawer-open .side,.switch .track,.switch .track::after,.btn,.nav a,.stat{transition:none}
  .sheet[open]{animation:none}
}
@media(forced-colors:active){
  .nav a[aria-current=page]{outline:2px solid CanvasText}
  .pill::before{background:CanvasText}
}

/* ---------- photo guidance, badges, frame previews, crop editor ---------- */
.ph-guide{padding:12px 14px;border:1px solid var(--vv-line);border-radius:var(--a-r);background:var(--a-subtle);font-size:13px}
.ph-guide dl{margin:0;display:grid;gap:8px}
.ph-guide dt{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--vv-muted)}
.ph-guide dd{margin:0;color:var(--vv-ink);line-height:1.45}
.ph-badges{position:absolute;left:10px;top:10px;display:flex;flex-wrap:wrap;gap:4px;pointer-events:none;max-width:calc(100% - 20px)}
.ph-badges .ph-badge{position:static}
.ph-badge.thumb{background:var(--vv-accent)}
.ph-badge.crop{background:var(--a-grey)}
.ph-crops{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.ph-fr{margin:0;display:grid;gap:3px;justify-items:center}
.ph-fr-box{display:block;overflow:hidden;border:1px solid var(--vv-line);border-radius:6px;background:var(--vv-stage);line-height:0;height:70px}
.ph-fr-box img{width:100%;height:100%;object-fit:cover}
.ph-fr figcaption{font-size:11px;color:var(--vv-muted)}
.ph-focal-wrap{grid-template-columns:minmax(0,1fr)}
.cropdlg{border:0;padding:0;border-radius:var(--a-r-lg);width:min(920px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-shadow:var(--a-shadow-lg);background:var(--a-surface);color:var(--vv-ink)}
.cropdlg::backdrop{background:var(--a-backdrop)}
.crop-form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 24px)}
.crop-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 18px;border-bottom:1px solid var(--vv-line)}
.crop-body{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:18px;padding:16px 18px;overflow:auto}
.crop-main{display:grid;gap:12px;min-width:0;align-content:start}
.crop-shapes{display:flex;flex-wrap:wrap;gap:6px}
.chip{min-height:36px;padding:6px 12px;border:1px solid var(--a-field-line);border-radius:999px;background:var(--a-surface);color:var(--vv-ink);font:600 13px var(--a-font);cursor:pointer}
.chip[aria-pressed="true"]{border-color:var(--vv-accent);background:var(--a-accent-tint);box-shadow:inset 0 0 0 1px var(--vv-accent)}
.crop-stagewrap{display:grid;place-items:center;background:var(--vv-stage);border:1px solid var(--vv-line);border-radius:var(--a-r);padding:10px;min-height:200px}
.crop-stage{position:relative;max-width:100%;border-radius:4px;overflow:hidden;cursor:grab;touch-action:none;box-shadow:0 0 0 2px var(--vv-accent),var(--a-shadow);line-height:0}
.crop-stage:active{cursor:grabbing}
.crop-stage canvas{display:block;width:100%;height:100%}
.crop-zoom{display:flex;align-items:center;gap:10px}
.crop-zoom input[type=range]{flex:1;min-height:36px;padding:0}
.crop-info{font-size:13px;color:var(--vv-muted)}.crop-info.warn{color:var(--a-amber)}
.crop-previews{display:grid;gap:12px;align-content:start}
.crop-previews h3{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--vv-muted)}
.crop-pv{margin:0;display:grid;gap:4px}
.crop-pv canvas{display:block;border:1px solid var(--vv-line);border-radius:6px;background:var(--vv-stage);max-width:100%}
.crop-pv figcaption{display:grid;font-size:12px;line-height:1.3}.crop-pv figcaption span{color:var(--vv-muted)}
.crop-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 18px;border-top:1px solid var(--vv-line)}
@media(max-width:767px){
  .cropdlg{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0}
  .crop-form{max-height:100dvh}
  .crop-body{grid-template-columns:1fr;padding:12px 14px}
  .crop-previews{grid-template-columns:repeat(2,minmax(0,1fr))}
  .crop-previews h3,.crop-previews .hint{grid-column:1/-1}
  .crop-foot{padding:10px 14px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  .crop-foot .btn{flex:1 1 auto}
}
.chip[aria-pressed="true"]{color:var(--vv-pink)!important}
.crop-zoom input[type=range]{accent-color:var(--vv-accent)}

/* =====================================================================
   Figma redesign (file "Ventura Visuals — Staff Admin UI").
   Bands: XL ≥1280 (240px sidebar) · L 1024–1279 (76px icon rail) ·
   M 768–1023 (top bar + drawer) · S ≤767 (mobile header, cards, full-screen sheets).
   Colours/radii/shadows are the same tokens as the Figma variables.
   ===================================================================== */
.pill.green{background:var(--a-green-bg);color:var(--a-green)}
.pill.accent{background:var(--a-accent-tint);color:var(--vv-accent)}
.avatar.sm{width:32px;height:32px;font-size:12px}
.avatar.soft{background:var(--a-accent-tint);color:var(--vv-accent);width:32px;height:32px;font-size:12px}
.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.btn.block{width:100%}
.side-mark{display:none;width:36px;height:36px;border-radius:10px;background:var(--vv-accent);padding:6px}
.side-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.side-link .nl{margin-left:6px}
.nav a[aria-current=page] svg{color:var(--vv-on-inverse)}
h1{font-size:26px;letter-spacing:-.4px;font-weight:650}
h2{font-size:16px;letter-spacing:-.1px}

/* header */
.page-head{align-items:center;margin-bottom:24px}
.page-head p{font-size:14px;max-width:62ch}
.head-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.head-search{width:280px}

/* dashboard */
.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px}
.stats3{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:24px}
.stat{padding:18px 20px;gap:12px;border-radius:var(--a-r-lg)}
.stat-top{display:flex;align-items:center;gap:12px;color:var(--vv-muted);font-size:13px;font-weight:600;min-width:0}
.stat-top>span:last-child{min-width:0;line-height:1.25}
.grid2{align-items:start}
.stat-ic{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:10px;background:var(--a-accent-tint);color:var(--vv-accent)}
.stat-ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.stat b{font-size:28px;line-height:1.15;letter-spacing:-.5px}
.stat small{font-size:13px}
.duo{gap:16px;align-items:stretch}
.duo .panel{margin-bottom:0}
.panel{border-radius:var(--a-r-lg)}
.panel-head{padding:16px 20px}
.panel-head a{color:var(--vv-accent)}
.mini button,.mini .row-static{padding:12px 20px;min-height:64px}
.mini .grow b{font-size:14px}
.mini .grow .kicker{font-size:12px;color:var(--vv-muted);display:flex;gap:6px;align-items:center}
.mini .end b.amt{color:var(--vv-ink);font-size:14px}
.mini .end{font-size:13px}
.mini .thumb{width:40px;height:40px}

/* filters card + tables */
.toolbar{background:var(--a-surface);border:1px solid var(--vv-line);border-radius:var(--a-r-lg);padding:16px;box-shadow:var(--a-shadow-sm);margin-bottom:12px}
.tbl th{background:var(--a-well);font-size:11px;letter-spacing:.7px;padding:12px 10px}
.tbl td{padding:12px 10px}
.tbl tbody tr:hover td{background:var(--a-subtle)}
.tbl tbody tr:focus-visible td{background:var(--a-accent-tint)}
.tbl-wrap{border-radius:var(--a-r-lg)}
.sku{font-weight:600;background:transparent;padding:0;color:var(--vv-ink);border-radius:0}
.clist .sku,.mini .sku{background:transparent}
.sheet-head .sku,.prod-id .sku{background:transparent;padding:0}
.who{display:inline-flex;align-items:center;gap:10px;min-width:0}
.who b{font-weight:600}

/* mobile cards */
.citem{border-radius:var(--a-r-lg)}
.pcard{display:grid;gap:12px;cursor:default}
.pc-top{display:flex;gap:12px;align-items:center;min-width:0}
.pcard .grow{display:grid;gap:4px;min-width:0}
.pc-row{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.pcard .foot{display:flex;gap:6px;flex-wrap:wrap}

/* editor sheet — right-hand side sheet on desktop, full screen on phones */
.sheet{width:min(640px,100vw);border-radius:0}
.sheet-head{padding:20px 24px 16px}
.sheet-head h2{font-size:20px;letter-spacing:-.2px}
.sheet-body{padding:20px 24px 28px;gap:28px}
.sheet-foot{padding:14px 24px calc(14px + env(safe-area-inset-bottom))}
.sheet-foot>div{justify-content:flex-end}
.sheet-foot .btn{flex:0 0 auto;min-width:112px}
.section{border-top:0;padding-top:0;gap:14px}
.section>h3{font-size:11px;letter-spacing:.7px;color:var(--vv-muted)}
.field-fixed>div{border:0;background:var(--a-well);border-radius:var(--a-r)}
.preview{background:var(--a-well);border:0;border-radius:var(--a-r-lg);padding:14px 16px}
.preview b{font-size:18px}
.ph-guide,.ph-detail,.nc-form{background:var(--a-well);border-color:transparent;border-radius:var(--a-r-lg)}
.ph-tile{border-radius:var(--a-r-lg)}
.ph-pick{border-radius:var(--a-r)}
.ph-badge{background:var(--a-accent-tint);color:var(--vv-accent)}
.ph-badge.thumb{background:var(--a-blue-bg);color:var(--a-blue)}
.ph-badge.crop{background:var(--a-grey-bg);color:var(--a-grey)}
.ph-pick{background:var(--vv-navy)}
.ph-pick img{background:var(--a-surface)}
.ph-move button{border-radius:var(--a-r);border-color:var(--a-field-line)}

/* crop editor — navy stage, previews panel on the right */
.cropdlg{width:min(960px,calc(100vw - 48px));border-radius:var(--a-r-lg)}
.crop-head{padding:20px 24px 16px}
.crop-body{grid-template-columns:minmax(0,1fr) 280px;gap:24px;padding:20px 24px}
.crop-stagewrap{background:var(--vv-navy);border:0;border-radius:var(--a-r-lg)}
.crop-stage{box-shadow:0 0 0 2px var(--a-surface)}
.crop-previews{border:1px solid var(--vv-line);border-radius:var(--a-r-lg);padding:16px;align-self:start}
.crop-previews h3{font-size:11px;letter-spacing:.7px}
.crop-foot{padding:14px 24px;justify-content:flex-end}
.crop-foot .grow{flex:1}

/* staff role dialog */
.roledlg{border:0;padding:0;border-radius:var(--a-r-lg);width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-shadow:var(--a-shadow-lg);background:var(--a-surface);color:var(--vv-ink)}
.roledlg::backdrop{background:var(--a-backdrop)}
.roledlg form{display:flex;flex-direction:column;max-height:calc(100dvh - 24px)}
.roledlg .sheet-body{padding:20px 24px}
.roledlg .sheet-foot{padding:14px 24px}
.roles{border:0;margin:0;padding:0;display:grid;gap:10px;min-width:0}
.rolecard{display:flex;align-items:center;gap:12px;border:1px solid var(--a-field-line);border-radius:var(--a-r);padding:14px;font-weight:400;cursor:pointer;background:var(--a-surface)}
.rolecard input{width:18px;height:18px;min-height:0;padding:0;accent-color:var(--vv-accent);flex:none}
.rolecard span{display:grid;gap:2px}.rolecard b{font-weight:600}.rolecard small{font-size:13px;color:var(--vv-muted)}
.rolecard:has(input:checked){border-color:var(--vv-accent);background:var(--a-accent-tint);box-shadow:inset 0 0 0 1px var(--vv-accent)}
.rolecard:has(input:focus-visible){outline:3px solid var(--cyan);outline-offset:2px}

/* compact type on pointer-fine screens (phones keep 16px so iOS never zooms) */
@media(min-width:1024px){input,select,textarea{font-size:14px}.btn{font-size:14px}}

/* ----- L: 1024–1279 → 76px icon rail ----- */
@media(min-width:1024px) and (max-width:1279px){
  :root{--a-side:76px;--a-pad:28px}
  .side-head{flex-direction:column;align-items:center;padding:18px 0 8px;gap:0}
  .side-logo,.side-tag{display:none}
  .side-mark{display:block}
  .nav{padding:6px 12px}
  .nav-label{height:1px;margin:10px 8px;padding:0;overflow:hidden;font-size:0;background:var(--vv-inverse-line)}
  .nav a{justify-content:center;padding:8px 0;gap:0}
  .nl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .side-foot{padding:12px 10px 16px}
  .me{justify-content:center;padding:0}.me-text{display:none}
  .side-actions{flex-direction:column}
  .side-link{padding:0}.side-link .nl{margin:0}
  .head-search{width:220px}
}
/* ----- M: 768–1023 ----- */
@media(max-width:1023px){
  :root{--a-pad:24px}
  .mbar{min-height:64px;padding:8px 20px 8px 12px;padding-top:calc(8px + env(safe-area-inset-top));gap:12px}
  .stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .stat{padding:14px}.stat-top{gap:8px}
  .stat b{font-size:26px}
  .toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
  .head-search{width:min(280px,100%)}
  .mbar-text{flex-direction:row;align-items:baseline;gap:10px}
  .mbar-title{font-size:14px}
  .mbar-title::before{content:"·";margin-right:10px;opacity:.6}
}
/* ----- S: ≤767 ----- */
@media(max-width:767px){
  :root{--a-pad:16px}
  .mbar{min-height:56px;padding:6px 16px 6px 8px;padding-top:calc(6px + env(safe-area-inset-top))}
  h1{font-size:20px;letter-spacing:-.2px}
  .page-head{align-items:stretch}
  .head-actions{width:100%;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px}
  .page-head .head-actions .btn{flex:0 0 auto;padding-left:14px;padding-right:14px}
  .head-search{width:auto;flex:1 1 0;min-width:0}
  .mbar-text{flex-direction:column;gap:0}
  .mbar-title::before{content:none}
  .mbar-title{font-size:12.5px}
  .stats,.stats3{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
  .stat{padding:14px}
  .stat b{font-size:24px}
  .stats3 .stat:last-child:nth-child(odd){grid-column:1/-1}
  .sheet-foot .btn.primary{flex:2 1 0}
  .toolbar{padding:12px;grid-template-columns:1fr}
  .toolbar.orders{grid-template-columns:1fr}
  .toolbar>.search{grid-column:auto}
  .sheet{width:100vw}
  .sheet-head{padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top))}
  .sheet-body{padding:16px 16px 24px;gap:24px}
  .sheet-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  .sheet-foot .btn{flex:1 1 0}
  .cropdlg{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
  .crop-form{max-height:100dvh}
  .crop-head,.crop-foot{padding-left:16px;padding-right:16px}
  .crop-body{grid-template-columns:1fr;padding:12px 16px}
  .roledlg{border-radius:var(--a-r-lg)}
  .roledlg .sheet-body,.roledlg .sheet-foot{padding-left:16px;padding-right:16px}
  .mini button,.mini .row-static{padding:12px 16px}
}
@media(max-width:430px){.toolbar.orders{grid-template-columns:1fr}.toolbar.orders>select{grid-column:auto}}

/* All products: Search · Brand · Category · Price type · Availability · Status */
.toolbar.five{grid-template-columns:minmax(200px,2fr) repeat(5,minmax(0,1fr))}
@media(min-width:1024px) and (max-width:1279px){.toolbar.five{grid-template-columns:repeat(3,minmax(0,1fr))}.toolbar.five>.search{grid-column:1/-1}}
@media(max-width:1023px){.toolbar.five{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar.five>.search{grid-column:1/-1}}
@media(max-width:767px){.toolbar.five{grid-template-columns:1fr}}

/* crop dialog: focal marker, quality note */
.crop-focal{position:absolute;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;border:3px solid var(--a-surface);box-shadow:0 0 0 2px var(--vv-accent),0 2px 6px rgba(20,24,46,.4);pointer-events:none}
.crop-focal[hidden]{display:none}
.crop-focal-switch{font-size:14px}
.crop-quality{display:flex;gap:8px;align-items:center;padding:12px;border-radius:var(--a-r);background:var(--a-well);font-size:13px;color:var(--vv-muted)}
.crop-quality.warn{background:var(--a-amber-bg);color:var(--a-amber)}

/* crop dialog: previews as a compact 2-column panel so the focal switch and quality note stay in view */
@media(min-width:768px){
  .crop-body{grid-template-columns:minmax(0,1fr) 300px}
  .crop-previews{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;align-content:start}
  .crop-previews h3,.crop-focal-switch,.crop-quality,.crop-previews .hint{grid-column:1/-1}
  .crop-pv figcaption{font-size:11.5px}
}
.crop-pv{align-content:start;align-self:start}

.life-acts{display:flex;flex-wrap:wrap;gap:8px}
.rev-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.rev-list li{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--vv-line);font-size:14px}
.rev-acts{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
@media(max-width:767px){.rev-list li{flex-direction:column}.rev-acts{justify-content:flex-start}.life-acts .btn,.rev-acts .btn{min-height:44px}}
.note{padding:10px 12px;border-radius:8px;background:var(--vv-stage);color:var(--vv-ink);font-size:14px}

.help-list{display:grid;gap:10px;max-width:760px}
.help-topic{border:1px solid var(--vv-line);border-radius:12px;background:var(--a-surface);padding:0 16px}
.help-topic summary{cursor:pointer;min-height:48px;display:flex;align-items:center;font-weight:600;list-style:none}
.help-topic summary::-webkit-details-marker{display:none}
.help-topic summary::after{content:"+";margin-left:auto;color:var(--vv-muted);font-size:20px}
.help-topic[open] summary::after{content:"\2212"}
.help-topic p{margin:0 0 12px;color:var(--vv-ink);font-size:15px;line-height:1.55}
.help-topic[open] summary{border-bottom:1px solid var(--vv-line);margin-bottom:12px}

/* ---------- Figma Section 12 & 13 operational additions ---------- */
.admin-sidebar-edge-zone{padding:8px 12px;display:flex;justify-content:flex-end}
.admin-sidebar-edge-control{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:var(--a-r);border:1px solid var(--vv-inverse-line);background:transparent;color:var(--vv-on-inverse-muted);cursor:pointer;transition:background-color .15s,color .15s,transform .2s}
.admin-sidebar-edge-control:hover{background:var(--vv-inverse-hover);color:var(--vv-on-inverse)}

@media(min-width:1280px){
  .app.admin-sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)}
  .app.admin-sidebar-collapsed .side{width:76px}
  .app.admin-sidebar-collapsed .side-head{padding-inline:10px;justify-content:center}
  .app.admin-sidebar-collapsed .brand-full-art{display:none!important}
  .app.admin-sidebar-collapsed .brand-compact-art{display:block!important}
  .app.admin-sidebar-collapsed .side-mark,.app.admin-sidebar-collapsed .side-tag{display:none}
  .app.admin-sidebar-collapsed .nav-label{display:none}
  .app.admin-sidebar-collapsed .nav a{padding-inline:0;justify-content:center}
  .app.admin-sidebar-collapsed .nav a .nl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .app.admin-sidebar-collapsed .me-text,.app.admin-sidebar-collapsed .side-link .nl{display:none}
  .app.admin-sidebar-collapsed .admin-sidebar-edge-control{transform:rotate(180deg)}
}
@media(max-width:1279px){
  .admin-sidebar-edge-zone{display:none}
}

.period-filter{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.period-filter button{min-height:34px;padding:6px 14px;border:1px solid var(--vv-line);border-radius:999px;background:var(--a-surface);color:var(--vv-muted);font:500 13px var(--a-font);cursor:pointer;transition:all .15s}
.period-filter button:hover{border-color:var(--vv-navy);color:var(--vv-ink)}
.period-filter button.active{background:var(--vv-navy);border-color:var(--vv-navy);color:var(--vv-on-inverse);font-weight:600}

.doc-workflow{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:20px}
.doc-step{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px;background:var(--a-surface);border:1px solid var(--vv-line);font-size:13px;color:var(--vv-muted)}
.doc-step.done{background:var(--a-green-bg);border-color:rgba(20,104,58,.2);color:var(--a-green);font-weight:600}
.doc-step.current{background:var(--a-blue-bg);border-color:rgba(7,94,140,.2);color:var(--a-blue);font-weight:600}
.doc-workflow > .doc-step > span.doc-step-num,
.doc-step > span:first-child{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:currentColor;color:var(--a-surface);font-size:11px;font-weight:700}
.doc-workflow > .doc-step.done > span.doc-step-num,
.doc-step.done > span:first-child{background:var(--a-green);color:var(--vv-on-inverse)}

.doc-preview{background:var(--a-surface);border:1px solid var(--vv-line);border-radius:12px;padding:32px;max-width:760px;margin:20px 0;box-shadow:var(--a-shadow)}
.doc-preview-head{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:20px;border-bottom:2px solid var(--vv-navy)}
.doc-preview-title{text-align:right}
.doc-preview-title h2{font-size:24px;color:var(--vv-navy);letter-spacing:.08em;text-transform:uppercase}
.doc-preview-parties{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px 0;border-bottom:1px solid var(--vv-line);font-size:14px}
.doc-preview-table{width:100%;border-collapse:collapse;margin:20px 0;font-size:14px}
.doc-preview-table th{background:var(--vv-stage);padding:10px 12px;text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid var(--vv-line)}
.doc-preview-table td{padding:12px;border-bottom:1px solid var(--vv-line)}
.doc-preview-totals{margin-left:auto;width:280px;display:grid;gap:6px;padding:14px 0;font-size:14px}
.doc-preview-totals .row{display:flex;justify-content:space-between}
.doc-preview-totals .grand{font-size:17px;font-weight:700;color:var(--vv-navy);border-top:2px solid var(--vv-navy);padding-top:8px}
.doc-preview-foot{margin-top:24px;padding-top:16px;border-top:1px solid var(--vv-line);font-size:12px;color:var(--vv-muted);text-align:center;line-height:1.6}

.pwa-card{display:flex;gap:20px;align-items:center;background:var(--a-surface);border:1px solid var(--vv-line);border-radius:var(--a-r-lg);padding:24px;margin-bottom:24px}
.pwa-icon{width:56px;height:56px;border-radius:14px;background:var(--vv-navy);display:grid;place-items:center;flex:none}
.pwa-info{flex:1}
.pwa-privacy{background:var(--a-notice-bg);border:1px solid var(--a-notice-line);border-radius:var(--a-r);padding:16px 20px;margin-bottom:24px;font-size:14px;color:var(--a-notice-ink)}
.pwa-privacy ul{margin:8px 0 0;padding-left:20px}

.safeguard-banner,.receipt-safeguard-card{display:flex;gap:16px;align-items:flex-start;background:var(--a-blue-bg);border:1px solid var(--a-blue-line);border-radius:var(--a-r-lg);padding:16px 20px;margin-bottom:20px;font-size:13.5px;color:var(--a-blue-ink);box-shadow:var(--a-shadow-sm)}
.safeguard-banner svg{color:var(--a-blue);margin-top:2px}
.receipt-safeguard-icon{width:40px;height:40px;border-radius:10px;background:var(--a-surface);border:1px solid var(--a-blue-line);display:grid;place-items:center;color:var(--a-blue);flex:none;box-shadow:var(--a-shadow-sm)}
.receipt-safeguard-body{flex:1;min-width:0}
.receipt-safeguard-title{font-size:14.5px;font-weight:650;color:var(--a-blue-ink);letter-spacing:-.01em}
.receipt-safeguard-desc{font-size:13.5px;color:var(--a-blue-ink);line-height:1.45;margin-top:4px}
.receipt-safeguard-desc b{font-weight:700}

/* ---------- Apple-inspired tooltips ---------- */
[data-tooltip]{position:relative}
[data-tooltip]::after{
  content:attr(data-tooltip);
  position:absolute;
  bottom:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%) scale(.92);
  background:var(--a-tooltip-bg);
  color:var(--a-tooltip-text);
  font:500 12px/1.3 var(--a-font);
  padding:5px 9px;
  border-radius:6px;
  white-space:nowrap;
  pointer-events:none;
  opacity:0;
  transition:opacity .15s ease,transform .15s ease;
  z-index:100;
  box-shadow:var(--a-shadow);
}
[data-tooltip]:hover::after,[data-tooltip]:focus-visible::after{
  opacity:1;
  transform:translateX(-50%) scale(1);
}
.side [data-tooltip]::after{left:calc(100% + 8px);bottom:50%;transform:translateY(50%) scale(.92)}
.side [data-tooltip]:hover::after,.side [data-tooltip]:focus-visible::after{transform:translateY(50%) scale(1)}

/* ---------- Prototype modules (Operational Data Integrity §8) ---------- */
.prototype-banner{
  display:flex;
  gap:12px;
  align-items:center;
  background:var(--a-prototype-bg);
  border:1px solid var(--a-prototype-line);
  color:var(--a-prototype-ink);
  border-radius:var(--a-r-lg);
  padding:12px 16px;
  margin-bottom:20px;
  box-shadow:var(--a-shadow-sm);
}
.prototype-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  background:var(--a-prototype-badge-bg);
  color:var(--a-prototype-badge-ink);
  font-size:11.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  padding:3px 8px;
  border-radius:999px;
  flex:none;
}
.prototype-badge svg{flex:none}
.prototype-content{font-size:13.5px;line-height:1.4;flex:1}
.prototype-content strong{font-weight:650}

.nav-preview-badge{
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  background:var(--vv-inverse-line);
  color:var(--vv-on-inverse-muted);
  padding:2px 6px;
  border-radius:999px;
  margin-left:6px;
  vertical-align:middle;
}
.nav-preview-tag{
  font-size:10px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.06em;
  background:var(--vv-inverse-line);
  color:var(--vv-on-inverse-muted);
  padding:2px 6px;
  border-radius:999px;
  margin-left:auto;
}
.nav a:hover .nav-preview-tag{color:var(--vv-on-inverse);background:var(--vv-inverse-active)}
.nav a[aria-current=page] .nav-preview-tag{background:rgba(255,255,255,.2);color:var(--vv-on-inverse)}
.app.admin-sidebar-collapsed .nav-preview-tag{display:none}

/* ---------- Confirmation dialog ---------- */
.confirm-dlg{
  border:0;
  padding:0;
  border-radius:var(--a-r-lg);
  box-shadow:var(--a-shadow-lg);
  color:var(--vv-ink);
  background:var(--a-surface);
  max-width:440px;
  width:92vw;
  margin:auto;
}
.confirm-dlg[open]{animation:confirmPop .2s var(--vv-ease-out)}
@keyframes confirmPop{from{transform:scale(.94);opacity:0}to{transform:none;opacity:1}}
.confirm-dlg::backdrop{background:var(--a-backdrop)}
.confirm-dlg form{padding:24px;display:grid;gap:18px}
.confirm-head{display:flex;gap:14px;align-items:flex-start}
.confirm-icon{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:none;
  background:var(--a-red-bg);
  color:var(--a-red);
}
.confirm-icon.warning{background:var(--a-amber-bg);color:var(--a-amber)}
.confirm-head h3{font-size:17px;font-weight:650;margin-bottom:4px}
.confirm-head p{color:var(--vv-muted);font-size:14px;line-height:1.4}
.confirm-foot{display:flex;justify-content:flex-end;gap:10px}

/* ---------- Skeletons & Empty states ---------- */
.skeleton{
  background:linear-gradient(90deg,var(--a-skeleton-base) 25%,var(--a-skeleton-highlight) 50%,var(--a-skeleton-base) 75%);
  background-size:200% 100%;
  animation:skeletonShimmer 1.5s infinite;
  border-radius:6px;
  display:inline-block;
  min-height:1em;
}
@keyframes skeletonShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.skeleton-row{display:flex;gap:12px;align-items:center;padding:12px 0}
.skeleton-box{height:44px;border-radius:8px}
.skeleton-text{height:16px;width:70%}
.empty-state{display:grid;place-items:center;text-align:center;padding:48px 24px;gap:12px}
.empty-state-icon{
  width:56px;
  height:56px;
  border-radius:50%;
  background:var(--vv-stage);
  border:1px solid var(--vv-line);
  display:grid;
  place-items:center;
  color:var(--vv-muted);
}
.empty-state-icon svg{width:26px;height:26px}
.empty-state h3{font-size:17px;font-weight:650;color:var(--vv-ink)}
.empty-state p{font-size:14px;color:var(--vv-muted);max-width:360px}

/* ---------- Business Operations Top Header (Phase 3) ---------- */
.top-nav{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:64px;
  height:64px;
  padding:0 24px;
  background:var(--a-surface);
  border-bottom:1px solid var(--vv-line);
  position:sticky;
  top:0;
  z-index:25;
  box-sizing:border-box;
}
@media(min-width:1024px){
  .top-nav{display:flex}
}
.top-nav-left{display:flex;align-items:center;gap:14px;flex:none}
.side-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;min-height:40px;border-radius:10px;color:var(--vv-muted);border:1px solid var(--vv-line);background:transparent;cursor:pointer;transition:all .15s ease}
.side-toggle-btn:hover{color:var(--vv-navy);background:var(--vv-stage);border-color:var(--a-field-line)}
.top-nav-context{display:flex;align-items:center}
.breadcrumb-trail{display:flex;align-items:center}
.breadcrumb-list{display:flex;align-items:center;gap:6px;list-style:none;margin:0;padding:0;font-size:13.5px}
.breadcrumb-item{display:inline-flex;align-items:center;color:var(--vv-muted);line-height:1}
.breadcrumb-item.current{color:var(--vv-navy);font-weight:650}
.breadcrumb-link{color:var(--vv-muted);text-decoration:none;transition:color .12s}
.breadcrumb-link:hover{color:var(--vv-pink)}
.breadcrumb-sep{display:inline-flex;align-items:center;color:var(--a-field-line)}
.breadcrumb-sep svg{display:block}

.top-nav-center{flex:1;max-width:460px;min-width:0;display:flex;align-items:center}
.top-search-wrap{position:relative;display:flex;align-items:center;width:100%;height:44px;min-height:44px;padding:0 8px 0 14px;gap:10px;background:var(--vv-stage);border:1px solid var(--vv-line);border-radius:10px;box-sizing:border-box;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}
.top-search-wrap:hover{background:var(--a-surface);border-color:var(--a-field-line)}
.top-search-wrap:focus-within{background:var(--a-surface);border-color:var(--cyan);box-shadow:0 0 0 3px rgba(14,165,233,.14)}
.top-search-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:18px;height:18px;color:var(--vv-muted);pointer-events:none}
.top-search-icon svg{display:block;width:18px;height:18px}
.top-search-wrap input,#topSearch{flex:1;min-width:0;height:100%;min-height:0;padding:0;border:0;background:transparent;color:var(--vv-ink);font:500 13.5px var(--a-font);outline:none;box-shadow:none;border-radius:0}
.top-search-wrap input::placeholder,#topSearch::placeholder{color:var(--vv-muted);font-weight:400;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.cmd-shortcut-btn{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;padding:2px 4px;height:28px;min-height:28px;border:0;background:transparent;cursor:pointer;border-radius:6px;transition:opacity .15s ease}
.cmd-shortcut-btn kbd{display:inline-flex;align-items:center;justify-content:center;font:600 11.5px/1.2 var(--a-mono);padding:3px 7px;min-height:22px;border-radius:6px;background:var(--a-surface);border:1px solid var(--vv-line);color:var(--vv-muted);box-shadow:0 1px 1px rgba(0,0,0,.05);letter-spacing:.02em;transition:all .15s ease}
.cmd-shortcut-btn:hover kbd{border-color:var(--a-field-line);color:var(--vv-ink);background:var(--a-hover);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.cmd-shortcut-btn:active kbd{transform:scale(.96)}

.top-nav-right{display:flex;align-items:center;gap:10px;flex:none}

/* Popovers & Contextual Action Menus */
.popover-wrap{position:relative}
.pop-chev{color:currentColor;opacity:.7;transition:transform .2s}
.popover-wrap[aria-expanded=true] .pop-chev,.quick-actions-btn[aria-expanded=true] .pop-chev{transform:rotate(180deg)}

.quick-actions-btn{padding:0 14px;min-height:40px;height:40px;font-size:13px;font-weight:600;border-radius:10px;display:inline-flex;align-items:center;gap:6px;transition:all .15s ease}
.action-popover{position:absolute;top:calc(100% + 8px);right:0;width:240px;background:var(--a-surface);border:1px solid var(--vv-line);border-radius:12px;box-shadow:var(--a-shadow-lg);z-index:60;animation:popIn .18s var(--vv-ease-out);display:grid;overflow:hidden}
.action-popover-head{padding:12px 14px;border-bottom:1px solid var(--vv-line);display:flex;justify-content:space-between;align-items:center;background:var(--a-subtle)}
.action-popover-head b{font-size:13.5px;color:var(--vv-navy)}
.action-menu-list{padding:6px;display:grid;gap:2px}
.action-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;font:500 13px var(--a-font);color:var(--vv-ink);text-decoration:none;border:0;background:transparent;width:100%;text-align:left;cursor:pointer;transition:background-color .12s}
.action-item:hover{background:var(--a-hover);color:var(--vv-navy)}
.action-item svg{color:var(--vv-muted);flex:none}
.action-item:hover svg{color:var(--vv-accent)}

.notif-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--vv-line);color:var(--vv-muted);width:40px;height:40px;min-width:40px;min-height:40px;border-radius:10px;background:transparent;transition:all .15s ease}
.notif-btn:hover{color:var(--vv-navy);background:var(--vv-stage);border-color:var(--a-field-line)}
.notif-badge{position:absolute;top:-4px;right:-4px;background:var(--a-red);color:var(--vv-on-inverse);font:700 11px/1 var(--a-font);padding:2px 5px;border-radius:999px;min-width:16px;text-align:center}
.notif-popover{width:320px}
.notif-popover-head{padding:12px 14px;border-bottom:1px solid var(--vv-line);display:flex;justify-content:space-between;align-items:center;background:var(--a-subtle)}
.notif-popover-head b{font-size:13.5px;color:var(--vv-navy)}
.notif-popover-list{max-height:280px;overflow-y:auto;padding:8px;display:grid;gap:6px}
.notif-card-item{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:9px;background:var(--a-subtle);border:1px solid var(--vv-line);text-decoration:none;cursor:pointer;transition:all .15s}
.notif-card-item:hover{border-color:var(--a-field-line);background:var(--a-hover)}
.notif-card-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;flex:none}
.notif-card-icon.amber{background:var(--a-amber-bg);color:var(--a-amber)}
.notif-card-icon.red{background:var(--a-red-bg);color:var(--a-red)}
.notif-card-icon.blue{background:var(--a-blue-bg);color:var(--a-blue)}
.notif-card-meta{display:grid;gap:2px;line-height:1.3;min-width:0}
.notif-card-title{font-size:13px;font-weight:650;color:var(--vv-navy)}
.notif-card-desc{font-size:12px;color:var(--vv-muted)}
.notif-empty{padding:20px 14px;text-align:center;font-size:13px;color:var(--vv-muted)}
.notif-popover-foot{padding:8px 12px;border-top:1px solid var(--vv-line);background:var(--a-subtle);text-align:center}
.notif-foot-link{font-size:12.5px;font-weight:600;color:var(--vv-pink);text-decoration:none}
.notif-foot-link:hover{text-decoration:underline}

.role-sim-wrap{display:flex;align-items:center;gap:6px;background:var(--a-subtle);border:1px solid var(--vv-line);border-radius:10px;height:40px;min-height:40px;padding:0 10px;box-sizing:border-box}
.role-sim-label{font-size:11px;font-weight:600;color:var(--vv-muted);text-transform:uppercase;letter-spacing:.04em}
.role-sim-wrap select{min-height:28px;height:28px;padding:2px 8px;font-size:12.5px;font-weight:600;border:1px solid var(--vv-line);border-radius:6px;background:var(--a-surface);width:auto}

.staff-trigger{display:inline-flex;align-items:center;gap:10px;height:40px;min-height:40px;padding:3px 12px 3px 4px;border:1px solid var(--vv-line);border-radius:999px;background:var(--a-surface);cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease;box-sizing:border-box}
.staff-trigger:hover{border-color:var(--a-field-line);box-shadow:var(--a-shadow-sm)}
.staff-trigger .avatar.sm{width:32px;height:32px;font-size:12.5px}
.staff-trigger-meta{display:flex;flex-direction:column;text-align:left;line-height:1.2}
.staff-trigger-name{font-size:13.5px;font-weight:650;color:var(--vv-navy);white-space:nowrap}
.staff-trigger-role{font-size:11px;font-weight:500;color:var(--vv-muted)}
.staff-trigger-chev{color:var(--vv-muted);transition:transform .2s}
.staff-trigger[aria-expanded=true] .staff-trigger-chev{transform:rotate(180deg)}

.staff-menu{position:absolute;top:calc(100% + 8px);right:0;width:250px;background:var(--a-surface);border:1px solid var(--vv-line);border-radius:12px;box-shadow:var(--a-shadow-lg);z-index:60;animation:popIn .18s var(--vv-ease-out);display:grid}
@keyframes popIn{from{transform:scale(.95);opacity:0}to{transform:none;opacity:1}}
.staff-menu-head{padding:14px 16px 12px;border-bottom:1px solid var(--vv-line);display:grid}
.staff-menu-head b{font-size:14px;color:var(--vv-navy)}
.staff-menu-group{padding:6px;display:grid;gap:2px}
.staff-menu-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;font:500 13.5px var(--a-font);color:var(--vv-ink);text-decoration:none;border:0;background:transparent;width:100%;text-align:left;cursor:pointer;transition:background-color .12s}
.staff-menu-item:hover{background:var(--a-hover)}
.staff-menu-item.danger{color:var(--a-red)}
.staff-menu-item.danger:hover{background:var(--a-red-bg)}

/* ---------- Command Palette Dialog ---------- */
.cmd-palette-dlg{border:0;padding:0;margin:auto;border-radius:16px;width:min(640px,94vw);max-height:80vh;background:var(--a-surface);color:var(--vv-ink);box-shadow:var(--a-shadow-lg);overflow:hidden}
.cmd-palette-dlg::backdrop{background:var(--a-backdrop);backdrop-filter:blur(3px)}
.cmd-palette-dlg[open]{animation:popIn .18s var(--vv-ease-out)}
.cmd-palette-header{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--vv-line);background:var(--a-surface)}
.cmd-palette-header svg{color:var(--vv-muted);flex:none}
.cmd-palette-header input{border:0;background:transparent;font-size:16px;padding:0;min-height:36px;height:36px;outline:none;box-shadow:none;flex:1;color:var(--vv-ink)}
.cmd-palette-header input:focus{border:0;outline:none}
.cmd-esc-hint{font:600 11px var(--a-mono);padding:2px 6px;border-radius:4px;background:var(--vv-stage);border:1px solid var(--vv-line);color:var(--vv-muted);flex:none}
.cmd-palette-body{max-height:360px;overflow-y:auto;padding:8px;overscroll-behavior:contain}
.cmd-group-label{padding:8px 10px 4px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--vv-muted)}
.cmd-palette-list{display:grid;gap:2px}
.cmd-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;color:var(--vv-ink);transition:background-color .1s;text-decoration:none;border:0;background:transparent;width:100%;text-align:left}
.cmd-item:hover,.cmd-item.selected{background:var(--a-hover);color:var(--vv-navy)}
.cmd-item-left{display:flex;align-items:center;gap:10px;min-width:0}
.cmd-item-left svg{color:var(--vv-muted);width:18px;height:18px;flex:none}
.cmd-item:hover .cmd-item-left svg,.cmd-item.selected .cmd-item-left svg{color:var(--vv-accent)}
.cmd-badge{font-size:11px;font-weight:600;padding:2px 6px;border-radius:4px;background:var(--vv-stage);border:1px solid var(--vv-line);color:var(--vv-muted);text-transform:uppercase;letter-spacing:.04em}
.cmd-palette-empty{padding:24px 16px;text-align:center;font-size:14px}
.cmd-palette-footer{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:10px 18px;border-top:1px solid var(--vv-line);background:var(--a-subtle);font-size:12px;color:var(--vv-muted)}
.cmd-foot-hint kbd{font:600 11px var(--a-mono);padding:1px 4px;border-radius:3px;background:var(--a-surface);border:1px solid var(--vv-line);color:var(--vv-ink)}

/* Mobile Header Enhancement */
.mbar-actions{display:flex;align-items:center;gap:4px;margin-left:auto}
.mbar-btn{color:var(--vv-on-inverse-muted);width:44px;height:44px;min-width:44px;min-height:44px;border-radius:8px;border:0}
.mbar-btn:hover{color:var(--vv-on-inverse);background:var(--vv-inverse-hover)}
.mbar-avatar-btn{background:transparent;border:0;padding:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:8px}
.mbar-avatar-btn .avatar{width:32px;height:32px;font-size:12px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Standardized Accessible Tooltips */
[data-tooltip]{position:relative}
[data-tooltip]::after{content:attr(data-tooltip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%) scale(.95);background:var(--a-tooltip-bg);color:var(--a-tooltip-text);font:500 11.5px var(--a-font);padding:4px 8px;border-radius:6px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .15s,transform .15s;z-index:90;box-shadow:var(--a-shadow-sm)}
[data-tooltip]:hover::after,[data-tooltip]:focus-visible::after{opacity:1;transform:translateX(-50%) scale(1)}

/* Standard Loading Skeletons */
.skeleton-box{background:linear-gradient(90deg,var(--a-skeleton-base) 25%,var(--a-skeleton-highlight) 50%,var(--a-skeleton-base) 75%);background-size:200% 100%;animation:skeletonShimmer 1.5s infinite;border-radius:6px}
.skeleton-text{height:14px;margin-bottom:6px;border-radius:4px}
.skeleton-card{height:120px;border-radius:12px;margin-bottom:12px}
@keyframes skeletonShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ---------- Button Loading States & Progress (Phase 2) ---------- */
.btn.loading{position:relative;cursor:wait;opacity:.85}
.btn-spinner{animation:spin .8s linear infinite;flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
.progress-wrap{width:100%;display:grid;gap:6px}
.progress-bar{height:6px;background:var(--vv-line);border-radius:999px;overflow:hidden;position:relative}
.progress-fill{height:100%;background:var(--vv-accent);border-radius:999px;transition:width .25s ease}
.progress-fill.indeterminate{width:40%;position:absolute;animation:indet 1.4s ease-in-out infinite}
@keyframes indet{0%{left:-40%}100%{left:100%}}

/* ---------- Staff Profile Drawer (Phase 5) ---------- */
.profile-drawer{width:min(520px,100vw)}
.profile-hero{display:flex;align-items:center;gap:16px;padding:16px;background:var(--vv-stage);border:1px solid var(--vv-line);border-radius:var(--a-r-lg)}
.profile-avatar-wrap{position:relative;display:inline-block;flex:none}
.avatar-upload-badge{position:absolute;bottom:-2px;right:-2px;background:var(--vv-navy);color:var(--vv-on-inverse);border-radius:50%;width:24px;height:24px;display:grid;place-items:center;cursor:pointer;border:2px solid var(--a-surface);box-shadow:var(--a-shadow-sm);transition:transform .15s,background .15s}
.avatar-upload-badge:hover{transform:scale(1.08);background:var(--vv-accent)}
.profile-hero-meta{display:grid;gap:2px}
.profile-hero-meta b{font-size:17px;color:var(--vv-navy)}
.avatar.xl{width:56px;height:56px;font-size:20px}
.role-grid{display:grid;gap:8px}
.role-card-opt{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--vv-line);border-radius:10px;cursor:pointer;transition:border-color .15s}
.role-card-opt:hover{border-color:var(--a-field-line)}
.role-card-opt.active{border-color:var(--vv-accent);background:var(--a-accent-tint)}
.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0}
.switch{position:relative;display:inline-block;width:44px;height:26px;flex:none}
.switch input{opacity:0;width:0;height:0}
.slider{position:absolute;cursor:pointer;inset:0;background:var(--a-field-line);border-radius:999px;transition:.2s}
.slider::before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:3px;background:var(--a-surface);border-radius:50%;transition:.2s;box-shadow:var(--a-shadow-sm)}
.switch input:checked + .slider{background:var(--vv-accent)}
.switch input:checked + .slider::before{transform:translateX(18px)}
.input-with-action{display:flex;align-items:center;gap:8px;position:relative}
.input-with-action input{flex:1;min-width:0}
.copy-id-btn{display:inline-flex;align-items:center;gap:6px;padding:0 12px;height:40px;flex:none}
.staff-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0 12px}
.staff-toolbar .search{flex:1;min-width:220px}
.staff-toolbar select{width:auto;min-width:140px}
.staff-id-pill{display:inline-flex;align-items:center;gap:6px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11.5px;color:var(--vv-muted);background:var(--vv-stage);padding:2px 8px;border-radius:6px;border:1px solid var(--vv-line);cursor:pointer;transition:border-color .15s}
.staff-id-pill:hover{border-color:var(--a-field-line);color:var(--vv-navy)}
.staff-act-group{display:inline-flex;align-items:center;gap:6px}
.profile-audit-item{display:flex;align-items:flex-start;gap:10px;padding:8px 0;border-bottom:1px solid var(--vv-line)}
.profile-audit-item:last-child{border-bottom:none}
.profile-audit-icon{width:28px;height:28px;border-radius:50%;background:var(--vv-stage);color:var(--vv-muted);display:grid;place-items:center;flex:none}
.profile-audit-text{display:grid;gap:2px;min-width:0;flex:1}
.profile-audit-text b{font-size:13px;color:var(--vv-navy)}
.profile-audit-text .sub{font-size:11.5px;color:var(--vv-muted)}
.role-card-opt.disabled{opacity:.6;cursor:not-allowed}
.role-card-opt.disabled:hover{border-color:var(--vv-line)}

/* ---------- Advanced Category Visual Cards (Phase 4) ---------- */
.cat-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-top:14px}
.cat-card{background:var(--a-surface);border:1px solid var(--vv-line);border-radius:var(--a-r-lg);box-shadow:var(--a-shadow-sm);overflow:hidden;display:flex;flex-direction:column;transition:border-color .15s,box-shadow .15s,transform .15s}
.cat-card:hover{border-color:var(--a-field-line);box-shadow:var(--a-shadow);transform:translateY(-2px)}
.cat-card-head{position:relative;height:120px;background:var(--vv-stage);display:grid;place-items:center;overflow:hidden}
.cat-card-head img{width:100%;height:100%;object-fit:cover}
.cat-card-head .cat-card-placeholder{display:grid;place-items:center;gap:6px;color:var(--vv-muted);font-size:12px;text-align:center}
.cat-card-body{padding:14px 16px;flex:1;display:grid;gap:8px;align-content:start}
.cat-card-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.cat-card-title-row h3{font-size:16px;font-weight:700;color:var(--vv-navy)}
.cat-card-meta{display:flex;gap:6px 10px;flex-wrap:wrap;align-items:center;font-size:12.5px;color:var(--vv-muted)}
.cat-card-foot{padding:10px 16px;border-top:1px solid var(--vv-line);background:var(--a-subtle);display:flex;justify-content:space-between;align-items:center;gap:8px}
.cat-card-acts{display:flex;gap:4px}
.cat-media-preview-box{display:grid;gap:12px}
.cat-cover-preview{width:100%;height:180px;border-radius:10px;border:1px dashed var(--vv-line);background:var(--vv-stage);display:grid;place-items:center;overflow:hidden;position:relative}
.cat-cover-preview img{width:100%;height:100%;object-fit:cover}
.cat-thumb-preview{width:130px;height:130px;border-radius:10px;border:1px dashed var(--vv-line);background:var(--vv-stage);display:grid;place-items:center;overflow:hidden;position:relative}
.cat-thumb-preview img{width:100%;height:100%;object-fit:cover}
.cat-media-placeholder{display:grid;place-items:center;gap:8px;color:var(--vv-muted);font-size:13px}
.cat-media-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}

/* ---------- History Diff Pills (Phase 6) ---------- */
.diff-pill{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600}
.diff-old{color:var(--a-red);text-decoration:line-through;opacity:.7}
.diff-arrow{color:var(--vv-muted)}
.diff-new{color:var(--a-green)}

/* ---------- Phase B: Visual Category Tabs & Pickers ---------- */
.cat-tabs{display:inline-flex;padding:4px;background:var(--vv-stage);border-radius:var(--a-r-pill);gap:4px;border:1px solid var(--vv-line);margin-bottom:18px}
.cat-tab{padding:6px 16px;border-radius:var(--a-r-pill);font-size:13px;font-weight:600;color:var(--vv-muted);background:transparent;border:none;cursor:pointer;transition:all .15s}
.cat-tab:hover{color:var(--vv-navy)}
.cat-tab.active{background:var(--a-surface);color:var(--vv-navy);box-shadow:var(--a-shadow-sm)}
.cat-photo-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.cat-photo-item{border:1px solid var(--vv-line);border-radius:var(--a-r-md);overflow:hidden;background:var(--a-surface);cursor:pointer;transition:all .15s;text-align:left;padding:0}
.cat-photo-item:hover{border-color:var(--vv-accent);box-shadow:var(--a-shadow)}
.cat-photo-thumb{aspect-ratio:1/1.06;background:var(--vv-stage);overflow:hidden;position:relative}
.cat-photo-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.cat-photo-meta{padding:6px 8px;display:grid;gap:2px}
.cat-photo-meta .sku{font-weight:600;font-size:11px;color:var(--vv-navy)}
.cat-photo-meta .name{font-size:11px;color:var(--vv-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trash-banner{padding:12px 16px;background:var(--a-subtle);border-radius:var(--a-r-md);border:1px dashed var(--vv-line);margin-bottom:16px;font-size:13.5px;color:var(--vv-muted)}

/* ---------- Wedding Cards UG Brand Lockup & Touchpoints ---------- */
.admin-brand-lockup{display:inline-flex;align-items:center;line-height:0;user-select:none}
.admin-brand-lockup .vv-logo{height:48px;width:auto;max-width:100%}
.brand-pill-wedding{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.admin-wc-mark{display:inline-flex;align-items:center;flex-shrink:0;line-height:0}
.admin-wc-mark .vv-logo{width:16px;height:16px}


/* Categories refinement: restore room for real actions, at every viewport.
   Keep primary editing visible; secondary operations expand inside each card,
   so neither Trash nor visibility controls are clipped by the grid. */
.duo.cats{grid-template-columns:minmax(0,1fr);gap:24px}
.duo.cats>.panel{min-width:0;margin-bottom:0;overflow:visible}
.duo.cats .cat-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px;padding:16px;margin-top:0;min-width:0}
.duo.cats .panel-head{padding:18px 20px;min-height:90px}
.admin-brand-original{display:block;max-width:min(100%,240px);width:240px;height:auto;max-height:68px;object-fit:contain;object-position:left center}
.cat-card{min-width:0}
.cat-card-head{height:150px}
.cat-card-head img{max-width:100%;object-fit:cover}
.cat-card-photo-action{position:absolute;right:10px;bottom:10px;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:7px 10px;border:1px solid var(--vv-line);border-radius:10px;background:var(--a-surface);color:var(--vv-navy);font:600 12px var(--a-font);box-shadow:var(--a-shadow-sm);cursor:pointer}
.cat-card-photo-action:hover{background:var(--a-hover)}
.cat-card-photo-action:focus-visible{outline:2px solid var(--vv-accent);outline-offset:2px}
.cat-card-photo-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cat-card-body{min-width:0;padding:14px 15px;gap:8px}
.cat-card-title-row h3{font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.cat-card-meta{gap:6px}
.cat-card-meta .pill{max-width:100%}
.cat-card-slug{font-size:12px;line-height:1.4;color:var(--vv-muted);overflow-wrap:anywhere}
.cat-card-description{font-size:12.5px;line-height:1.5;color:var(--vv-muted);margin:0}
.cat-card-foot{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:11px 14px;min-width:0}
.cat-card-foot-main{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.cat-card-order{display:flex;gap:6px;flex:none}
.cat-card-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border:1px solid var(--vv-line);border-radius:10px;background:var(--a-surface);color:var(--vv-navy);cursor:pointer}
.cat-card-icon:disabled{opacity:.35;cursor:not-allowed}
.cat-card-icon:hover:not(:disabled){background:var(--a-hover);border-color:var(--a-field-line)}
.cat-card-icon:focus-visible,.cat-card-more summary:focus-visible{outline:2px solid var(--vv-accent);outline-offset:2px}
.cat-card-foot svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cat-card-manage{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;white-space:nowrap}
.cat-card-more{min-width:0;border-top:1px solid var(--vv-line);padding-top:7px}
.cat-card-more summary{list-style:none;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:7px 8px;border-radius:8px;color:var(--vv-navy);font:600 13px var(--a-font);cursor:pointer}
.cat-card-more summary::-webkit-details-marker{display:none}
.cat-card-more summary:hover{background:var(--a-hover)}
.cat-card-more summary span:last-child{margin-left:2px;transition:transform .15s ease}
.cat-card-more[open] summary span:last-child{transform:rotate(180deg)}
.cat-card-menu{display:flex;flex-wrap:wrap;gap:8px;padding:9px 0 3px}
.cat-card-menu .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:1 1 145px;min-height:42px;padding:8px 10px;white-space:normal;text-align:center}
.cat-card-foot:has(button[data-act="restore"]){justify-items:end}
.cat-card-foot:has(button[data-act="restore"]) .btn{min-height:42px}
.cat-tabs{max-width:100%;flex-wrap:wrap}
.duo.cats .cat-add{align-items:center;flex-wrap:wrap}
.duo.cats .cat-add input{min-width:180px;flex:1 1 220px}
.duo.cats .cat-add .btn{min-height:42px}
@media(max-width:640px){
  .duo.cats{gap:16px}
  .duo.cats .panel-head{padding:14px 16px;min-height:78px}
  .duo.cats .cat-card-grid{grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}
  .cat-card-head{height:155px}
  .cat-card-foot{padding:11px 12px}
  .cat-card-icon{width:42px;height:42px}
  .cat-card-manage{min-height:42px}
  .cat-card-more summary{min-height:44px}
  .cat-card-photo-action{min-height:42px}
  .admin-brand-original{width:205px;max-height:58px}
}
@media(prefers-reduced-motion:reduce){
  .cat-card-more summary span:last-child{transition:none}
}

/* Clearly visible official Wedding Cards UG lockup within Category Manager. */
@media(max-width:640px){
          }

/* =====================================================================
   VENTURA VISUALS — MASTER 1440PX DASHBOARD & UI KIT (PHASES 2-6)
   Tokens only, 1440px desktop baseline, responsive to mobile/tablet.
   ===================================================================== */

/* 4-column KPI metric cards */
.kpi-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.stat-card{display:flex;flex-direction:column;gap:10px;background:var(--a-surface);border:1px solid var(--vv-line);border-radius:var(--a-r-lg);padding:18px 20px;color:inherit;text-decoration:none;box-shadow:var(--a-shadow-sm);transition:border-color .18s,box-shadow .18s,transform .18s;position:relative;overflow:hidden;min-width:0}
a.stat-card:hover{border-color:var(--a-field-line);box-shadow:var(--a-shadow);transform:translateY(-1px)}
.stat-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.stat-card-label{font-size:12.5px;font-weight:650;color:var(--vv-muted);text-transform:uppercase;letter-spacing:.04em}
.stat-card-val{font-size:28px;line-height:1.15;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.02em;color:var(--vv-ink)}
.stat-card-sub{font-size:12px;color:var(--vv-muted);line-height:1.35;margin-top:auto}
.stat-card.attention{border-color:rgba(122,31,61,.3);background:linear-gradient(to bottom,var(--a-surface),var(--a-accent-tint))}
.stat-card.attention .stat-card-val{color:var(--vv-accent)}
.stat-card.attention .stat-ic{background:var(--a-accent-tint);color:var(--vv-accent);border-color:rgba(122,31,61,.2)}

/* Production workflow pipeline panel */
.pipeline-card{background:var(--a-surface);border:1px solid var(--vv-line);border-radius:var(--a-r-lg);box-shadow:var(--a-shadow-sm);margin-bottom:24px;overflow:hidden}
.pipeline-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--vv-line);background:var(--a-subtle)}
.pipeline-title{display:flex;align-items:center;gap:10px}
.pipeline-title h2{font-size:16px;font-weight:650;color:var(--vv-navy)}
.pipeline-badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--a-blue-bg);color:var(--a-blue)}
.pipeline-track{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:18px 20px;gap:12px;background:var(--a-surface)}
.pipeline-step{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:10px;background:var(--vv-stage);border:1px solid var(--vv-line);transition:background .15s,border-color .15s}
.pipeline-step.active{background:var(--a-subtle);border-color:var(--a-field-line);box-shadow:var(--a-shadow-sm)}
.pipeline-step-head{display:flex;align-items:center;justify-content:space-between;gap:6px}
.pipeline-step-num{font-size:11px;font-weight:700;color:var(--vv-muted);text-transform:uppercase}
.pipeline-step-count{font-size:14px;font-weight:700;color:var(--vv-navy);font-variant-numeric:tabular-nums;background:var(--a-surface);border:1px solid var(--vv-line);border-radius:6px;padding:1px 6px}
.pipeline-step-name{font-size:13px;font-weight:650;color:var(--vv-ink);line-height:1.3}
.pipeline-step-desc{font-size:11.5px;color:var(--vv-muted);line-height:1.3}

/* 7-Step Commerce Workflow Pipeline */
.commerce-pipeline-card{margin-bottom:24px}
.commerce-steps-track{display:grid;grid-template-columns:repeat(7,minmax(136px,1fr));padding:16px 18px;gap:10px;background:var(--a-surface);overflow-x:auto;-webkit-overflow-scrolling:touch}
.commerce-step{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:10px;background:var(--vv-stage);border:1px solid var(--vv-line);min-width:0;box-sizing:border-box;transition:background .15s,border-color .15s,box-shadow .15s}
.commerce-step.active,
.commerce-step.current{background:var(--a-subtle);border-color:var(--cyan);box-shadow:var(--a-shadow-sm)}
.commerce-step.done{background:var(--a-green-bg);border-color:rgba(20,104,58,.25)}
.commerce-step-head{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;min-width:0}
.c-step-badge{display:inline-grid;place-items:center;width:22px;height:22px;min-width:22px;min-height:22px;border-radius:50%;background:var(--vv-line);color:var(--vv-ink);font-size:11px;font-weight:700;line-height:1;flex-shrink:0;box-sizing:border-box}
.c-step-badge.done{background:var(--a-green);color:var(--vv-on-inverse)}
.c-step-badge.active{background:var(--vv-navy);color:var(--vv-on-inverse)}
.commerce-step-pill{display:inline-flex;align-items:center;justify-content:center;width:auto !important;height:auto !important;min-width:0;max-width:calc(100% - 28px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:2px 7px !important;border-radius:999px !important;line-height:1.2 !important;background:var(--a-well);color:var(--vv-muted);border:1px solid var(--vv-line);box-sizing:border-box}
.commerce-step-pill.active{background:var(--a-blue-bg);color:var(--a-blue);border-color:var(--a-blue-line)}
.commerce-step-pill.done{background:rgba(20,104,58,.15);color:var(--a-green);border-color:rgba(20,104,58,.25)}
.commerce-step-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.commerce-step-name{font-size:12.5px;font-weight:650;color:var(--vv-navy);line-height:1.3;margin:0;word-break:break-word}
.commerce-step.active .commerce-step-name{color:var(--vv-navy);font-weight:700}
.commerce-step.done .commerce-step-name{color:var(--a-green)}
.commerce-step-desc{display:block;width:auto !important;height:auto !important;background:none !important;border-radius:0 !important;font-size:11px;color:var(--vv-muted);line-height:1.35 !important;word-break:break-word}

/* Production Calendar & Operational Date Strip */
.calendar-card{background:var(--a-surface);border:1px solid var(--vv-line);border-radius:var(--a-r-lg);box-shadow:var(--a-shadow-sm);margin-bottom:24px;overflow:hidden}
.calendar-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--vv-line);background:var(--a-subtle)}
.calendar-title-wrap{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.calendar-title-wrap h2{font-size:16px;font-weight:650;color:var(--vv-navy)}
.calendar-hours-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--a-green-bg);color:var(--a-green);border:1px solid rgba(20,104,58,.2)}
.calendar-date-strip{display:flex;gap:8px;padding:14px 20px;overflow-x:auto;border-bottom:1px solid var(--vv-line);background:var(--vv-stage);-webkit-overflow-scrolling:touch}
.calendar-day-btn{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:68px;padding:8px 10px;border:1px solid var(--vv-line);border-radius:10px;background:var(--a-surface);color:var(--vv-ink);cursor:pointer;transition:all .15s}
.calendar-day-btn:hover{background:var(--a-hover);border-color:var(--a-field-line)}
.calendar-day-btn[aria-pressed=true]{background:var(--vv-navy);color:var(--vv-on-inverse);border-color:var(--vv-navy)}
.calendar-day-btn.today:not([aria-pressed=true]){border-color:var(--vv-accent);background:var(--a-accent-tint)}
.calendar-day-name{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.calendar-day-num{font-size:17px;font-weight:700;line-height:1}
.calendar-agenda{padding:16px 20px;display:grid;gap:10px}
.calendar-event-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border-radius:10px;background:var(--vv-stage);border:1px solid var(--vv-line);transition:background .15s}
.calendar-event-item:hover{background:var(--a-hover);border-color:var(--a-field-line);cursor:pointer}
.calendar-event-meta{display:grid;gap:3px;min-width:0;flex:1}
.calendar-event-title{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:650;color:var(--vv-ink)}
.calendar-event-sub{font-size:12.5px;color:var(--vv-muted)}

/* Calendar Agenda Empty State & Filter Pills */
.cal-empty-card{padding:32px 20px;border-radius:var(--a-r-lg);background:var(--a-subtle);border:1px dashed var(--vv-line);text-align:center;display:flex;flex-direction:column;align-items:center;margin:6px 0}
.cal-empty-icon{width:48px;height:48px;border-radius:50%;background:var(--a-surface);border:1px solid var(--vv-line);display:grid;place-items:center;color:var(--vv-navy);margin-bottom:12px;box-shadow:var(--a-shadow-sm)}
.cal-empty-card h3{font-size:15.5px;font-weight:650;color:var(--vv-navy);margin:0 0 6px}
.cal-empty-desc{font-size:13.5px;color:var(--vv-muted);line-height:1.45;max-width:500px;margin:0 auto}
.cal-empty-actions{margin-top:14px}
.calendar-filter-pills{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px;align-items:center}

/* Interactive Accessible SVG Business Charts */
.charts-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.2fr);gap:16px;margin-bottom:24px}
.chart-card{background:var(--a-surface);border:1px solid var(--vv-line);border-radius:var(--a-r-lg);box-shadow:var(--a-shadow-sm);padding:20px;display:flex;flex-direction:column;gap:14px;min-width:0}
.chart-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.chart-card-title h3{font-size:15px;font-weight:650;color:var(--vv-navy)}
.chart-card-title p{font-size:12.5px;color:var(--vv-muted);margin-top:2px}
.chart-tabs{display:inline-flex;padding:3px;background:var(--vv-stage);border:1px solid var(--vv-line);border-radius:8px;gap:2px}
.chart-tab-btn{border:0;background:transparent;padding:4px 10px;border-radius:6px;font:600 12px var(--a-font);color:var(--vv-muted);cursor:pointer;transition:all .15s}
.chart-tab-btn:hover{color:var(--vv-ink)}
.chart-tab-btn.active{background:var(--a-surface);color:var(--vv-ink);box-shadow:var(--a-shadow-sm)}
.chart-svg-wrap{width:100%;height:220px;position:relative;display:flex;align-items:center;justify-content:center}
.chart-svg{width:100%;height:100%;overflow:visible}
.chart-tooltip{position:absolute;padding:6px 10px;background:var(--a-tooltip-bg);color:var(--a-tooltip-text);font-size:12px;font-weight:500;border-radius:6px;pointer-events:none;opacity:0;transition:opacity .15s;transform:translate(-50%,-100%);margin-top:-8px;white-space:nowrap;z-index:20}
.chart-tooltip.show{opacity:1}

/* Reusable Upload Manager Widget */
.vv-upload-widget{display:grid;gap:8px;padding:12px 14px;border:1px solid var(--vv-line);border-radius:10px;background:var(--a-subtle);margin-top:8px}
.vv-upload-status-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:600}
.vv-upload-filename{color:var(--vv-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vv-upload-meta{color:var(--vv-muted);font-size:12px;font-variant-numeric:tabular-nums;flex:none}
.vv-upload-bar-track{height:6px;width:100%;background:var(--vv-line);border-radius:999px;overflow:hidden;position:relative}
.vv-upload-bar-fill{height:100%;background:var(--vv-accent);border-radius:999px;transition:width .2s ease-out}
.vv-upload-bar-fill.processing{background:var(--cyan);animation:pulseShimmer 1.5s infinite ease-in-out}
.vv-upload-bar-fill.success{background:var(--a-green)}
.vv-upload-bar-fill.error{background:var(--a-red)}
@keyframes pulseShimmer{0%,100%{opacity:.6}50%{opacity:1}}
.vv-upload-actions-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}
.vv-upload-message{color:var(--vv-muted)}
.vv-upload-message.error{color:var(--a-red);font-weight:600}
.vv-upload-btns{display:flex;gap:6px}

/* Skeletons */
.skeleton-bar{display:block;height:1em;border-radius:6px;background:var(--a-skeleton-base);animation:pulseShimmer 1.5s infinite ease-in-out}

/* Responsive queries for KPI grid, charts, pipeline */
@media(max-width:1200px){
  .kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pipeline-track{grid-template-columns:repeat(3,minmax(0,1fr))}
  .commerce-steps-track{grid-template-columns:repeat(4,minmax(0,1fr))}
  .charts-grid{grid-template-columns:1fr}
}
@media(max-width:768px){
  .kpi-row{grid-template-columns:1fr}
  .pipeline-track{grid-template-columns:repeat(2,minmax(0,1fr))}
  .commerce-steps-track{grid-template-columns:repeat(2,minmax(0,1fr))}
  .calendar-head{flex-direction:column;align-items:flex-start}
  .calendar-date-strip{padding:10px 14px}
  .calendar-day-btn{min-width:58px;padding:6px 8px}
}
@media(max-width:480px){
  .pipeline-track{grid-template-columns:1fr}
  .commerce-steps-track{grid-template-columns:1fr}
}

