  :root{
    --bg:#F7F7F8;
    --panel:#FFFFFF;
    --panel-2:#FBFBFC;
    --well:#F2F2F4;
    --ink:#18181B;
    --ink-2:#3F3F46;
    --muted:#5F5F68;
    --faint:#6C6C75;
    --hair:#E7E7EA;
    --hair-2:#D8D8DE;
    --brand:#FF751F;
    --brand-ink:#B4470A;
    --brand-soft:#FFF1E6;
    --brand-on:#1B1007;
    --ok:#15803D; --ok-soft:#E9F7EE;
    --warn:#B45309; --warn-soft:#FFF6E6;
    --stop:#B91C1C; --stop-soft:#FDECEC;

    --e1:0 1px 2px rgba(16,16,22,.04), 0 0 0 1px rgba(16,16,22,.04);
    --e2:0 1px 2px rgba(16,16,22,.04), 0 4px 12px rgba(16,16,22,.05), 0 0 0 1px rgba(16,16,22,.05);
    --e3:0 2px 6px rgba(16,16,22,.05), 0 12px 28px rgba(16,16,22,.07), 0 0 0 1px rgba(16,16,22,.05);
    --e4:0 8px 20px rgba(16,16,22,.10), 0 32px 64px rgba(16,16,22,.14);
    --in1:inset 0 1px 2px rgba(16,16,22,.06), inset 0 -1px 0 rgba(255,255,255,.7);

    --r:16px; --r-sm:11px; --r-xs:8px; --r-pill:999px;
    --sans:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,sans-serif;
    --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
    --ease:cubic-bezier(.22,.68,.24,1);
    --header-h:64px;
    color-scheme:light;
  }
  html[data-mode="dark"]{
    --ok:#4ADE80; --warn:#FBBF24; --stop:#F87171;
    --bg:#0A0A0C;
    --panel:#151517;
    --panel-2:#1A1A1D;
    --well:#101012;
    --ink:#F4F4F5;
    --ink-2:#D4D4D8;
    --muted:#A1A1AA;
    --faint:#8E8E98;
    --hair:#26262B;
    --hair-2:#34343B;
    --brand-soft:#241610;
    --brand-ink:#FFA268;
    --brand-on:#1B1007;
    --ok-soft:#0E1A13; --warn-soft:#1C1710; --stop-soft:#1E1113;
    --e1:0 1px 2px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.05);
    --e2:0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
    --e3:0 2px 8px rgba(0,0,0,.5), 0 14px 32px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.07);
    --e4:0 10px 26px rgba(0,0,0,.6), 0 36px 72px rgba(0,0,0,.65);
    --in1:inset 0 1px 3px rgba(0,0,0,.5), inset 0 -1px 0 rgba(255,255,255,.04);
  }
  *{box-sizing:border-box}
  html,body{margin:0;padding:0}
  body{
    background:var(--bg); color:var(--ink); font-family:var(--sans);
    font-size:15px; line-height:1.55; -webkit-font-smoothing:antialiased;
    padding-bottom:80px;
  }
  .wrap{max-width:1040px;margin:0 auto;padding:0 24px}
  .num{font-variant-numeric:tabular-nums}
  .mono{font-family:var(--mono)}
  a{color:inherit}
  button{font:inherit;color:inherit}
  :focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:var(--r-xs)}
  a,button,input,select{touch-action:manipulation;-webkit-tap-highlight-color:rgba(255,117,31,.16)}
  [id]{scroll-margin-top:104px}

  /* ---------- type ---------- */
  h1{font-size:30px;line-height:1.15;letter-spacing:-.025em;font-weight:650;margin:0 0 10px;text-wrap:balance}
  h2{font-size:18px;letter-spacing:-.015em;font-weight:640;margin:0}
  h3{font-size:14.5px;font-weight:620;margin:0;letter-spacing:-.008em}
  .lede{font-size:15.5px;color:var(--muted);margin:0;max-width:62ch;text-wrap:pretty}
  .meta{font-size:12.5px;color:var(--faint)}
  .small{font-size:13px;color:var(--muted)}
  .sec{margin:44px 0 20px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
  .sec .n{font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums}
  .eyebrow{
    font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--faint);
    display:block;margin-bottom:10px;
  }

  /* ---------- header ---------- */
  .top{
    position:sticky;top:0;z-index:40;background:rgba(247,247,248,.86);
    backdrop-filter:saturate(180%) blur(14px);
    border-bottom:1px solid var(--hair);
  }
  html[data-mode="dark"] .top{background:rgba(10,10,12,.82)}
  .topin{display:flex;align-items:center;gap:16px;height:var(--header-h)}
  .top img{height:28px;width:auto;display:block}
  .top a.brandlink{display:inline-flex;align-items:center;min-height:40px;padding:6px 0}
  .search{
    position:relative;flex:1;max-width:340px;margin-left:10px;
  }
  .search svg{
    position:absolute;left:12px;top:50%;transform:translateY(-50%);
    width:15px;height:15px;stroke:var(--faint);stroke-width:1.8;fill:none;stroke-linecap:round;
  }
  .search input{
    width:100%;height:42px;padding:0 12px 0 34px;border:1px solid var(--hair);border-radius:var(--r-pill);
    background:var(--panel);font:inherit;font-size:13.5px;color:var(--ink);
    box-shadow:var(--e1);transition:border-color .15s var(--ease),box-shadow .15s var(--ease);
  }
  .search input::placeholder{color:var(--faint)}
  .search input:focus{outline:none;border-color:var(--hair-2);box-shadow:var(--e2)}
  .topnav{margin-left:auto;display:flex;align-items:center;gap:2px}
  .navlink{
    position:relative;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 12px;
    border-radius:var(--r-pill);font-size:13.5px;color:var(--muted);text-decoration:none;cursor:pointer;
    background:none;border:0;transition:background-color .15s var(--ease),color .15s var(--ease);
  }
  .navlink:hover{background:var(--panel);color:var(--ink)}
  .navlink svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
  .navlink .count{
    min-width:19px;height:19px;padding:0 5px;border-radius:var(--r-pill);
    background:var(--brand);color:var(--brand-on);font-size:11px;font-weight:700;
    display:none;align-items:center;justify-content:center;font-variant-numeric:tabular-nums;
    box-shadow:0 1px 2px rgba(196,80,8,.3);
  }
  .navlink .count.on{display:inline-flex}
  .modetoggle{
    width:40px;height:40px;display:grid;place-items:center;cursor:pointer;
    border:1px solid var(--hair);background:var(--panel);border-radius:var(--r-pill);
    box-shadow:var(--e1);transition:box-shadow .15s var(--ease);
  }
  .modetoggle:hover{box-shadow:var(--e2)}
  .modetoggle svg{width:16px;height:16px;stroke:var(--ink-2);stroke-width:1.7;fill:none;stroke-linecap:round}

  /* ---------- announcement strip ---------- */
  .strip{
    background:var(--ink);color:var(--bg);font-size:12.5px;text-align:center;
    padding:8px 16px;letter-spacing:.005em;
  }
  html[data-mode="dark"] .strip{background:#000;color:var(--ink)}

  /* ---------- hero ---------- */
  .hero{padding:52px 0 8px}
  .hero .lede{margin-bottom:28px}
  .herogrid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:40px;align-items:center}
  .heroart{
    aspect-ratio:4/3;border-radius:var(--r);box-shadow:var(--e3);overflow:hidden;
    background:
      radial-gradient(90% 70% at 30% 20%, color-mix(in srgb,var(--brand) 12%,transparent), transparent 70%),
      var(--panel);
    border:1px solid var(--hair);
    display:grid;place-items:center;position:relative;
  }
  .heroart .stack{display:flex;flex-direction:column;gap:12px;align-items:center}
  .heroart .chiprow{display:flex;gap:8px}
  .heroart .m{
    width:58px;height:58px;border-radius:var(--r-sm);display:grid;place-items:center;
    background:var(--panel);box-shadow:var(--e2);border:1px solid var(--hair);
  }
  .heroart .m svg{width:30px;height:30px}

  /* ---------- trust strip ---------- */
  .trust{
    display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--hair);
    border:1px solid var(--hair);border-radius:var(--r);overflow:hidden;margin-top:40px;
  }
  .trust div{background:var(--panel);padding:16px 18px}
  .trust b{display:block;font-size:13px;font-weight:620;margin-bottom:3px}
  .trust span{font-size:12.5px;color:var(--muted);line-height:1.45;display:block}

  /* ---------- category rail + toolbar ---------- */
  .toolbar{
    position:sticky;top:var(--header-h);z-index:30;margin:0 -24px 0;padding:12px 24px;
    background:rgba(247,247,248,.92);backdrop-filter:saturate(180%) blur(14px);
    border-bottom:1px solid var(--hair);
    display:flex;align-items:center;gap:10px;
  }
  html[data-mode="dark"] .toolbar{background:rgba(10,10,12,.86)}
  .cats{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0;
    mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 28px),transparent 100%)}
  .cats::-webkit-scrollbar{display:none}
  @media (min-width:900px){
    /* Room to breathe: on a desk the rail wraps instead of hiding a chip behind a fade. */
    .cats{flex-wrap:wrap;overflow:visible;mask-image:none;row-gap:7px}
    .toolbar{align-items:flex-start}
  }
  .cats button,.cats a{
    flex:none;border:1px solid var(--hair);background:var(--panel);border-radius:var(--r-pill);
    padding:11px 14px;font-size:13px;color:var(--muted);white-space:nowrap;cursor:pointer;
    box-shadow:var(--e1);transition:background-color .15s var(--ease),color .15s var(--ease),
      border-color .15s var(--ease),box-shadow .15s var(--ease);
  }
  .cats button:hover,.cats a:hover{color:var(--ink);box-shadow:var(--e2)}
  .cats button.on,.cats a.on{background:var(--ink);border-color:var(--ink);color:var(--bg);font-weight:560}
  html[data-mode="dark"] .cats button.on,html[data-mode="dark"] .cats a.on{background:var(--ink);color:#0A0A0C}
  .sort{
    display:flex;align-items:center;gap:8px;flex:none;
  }
  .sort label{font-size:12.5px;color:var(--faint)}
  .sort select{
    height:34px;padding:0 30px 0 11px;border:1px solid var(--hair);border-radius:var(--r-pill);
    background:var(--panel);font:inherit;font-size:13px;color:var(--ink-2);cursor:pointer;
    box-shadow:var(--e1);appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236C6C75' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 10px center;
  }
  .sort select:focus{outline:none;box-shadow:var(--e2)}

  /* ---------- product grid ---------- */
  .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
  .pcard{
    background:var(--panel);border-radius:var(--r);overflow:hidden;box-shadow:var(--e1);
    display:flex;flex-direction:column;
    transition:box-shadow .22s var(--ease),transform .22s var(--ease);
  }
  .pcard:hover{box-shadow:var(--e3);transform:translateY(-3px)}
  .pcard:active{transform:translateY(-1px)}
  .visual{
    position:relative;aspect-ratio:4/3;display:grid;place-items:center;
    background:
      radial-gradient(110% 90% at 50% 15%, color-mix(in srgb,var(--mark) 16%,transparent), transparent 68%),
      var(--panel-2);
    border-bottom:1px solid var(--hair);
  }
  .visual .m{
    width:64px;height:64px;border-radius:14px;display:grid;place-items:center;
    background:var(--panel);box-shadow:var(--e2);border:1px solid color-mix(in srgb,var(--mark) 22%,var(--hair));
    pointer-events:none;
  }
  .visual{position:relative}
  .visual::after{content:"";position:absolute;inset:0}
  .visual .m svg{width:34px;height:34px}
  .visual .flags{position:absolute;top:12px;left:12px;display:flex;gap:6px}
  .visual .flag{
    font-size:11px;font-weight:600;letter-spacing:.03em;color:var(--ink-2);
    background:var(--panel);border:1px solid var(--hair);border-radius:var(--r-pill);
    padding:4px 9px;box-shadow:var(--e1);
  }
  .visual .flag.new{color:var(--brand-ink);border-color:color-mix(in srgb,var(--brand) 34%,transparent);background:var(--brand-soft)}
  .pbody{padding:16px 17px 14px;flex:1}
  .pname{font-size:15.5px;letter-spacing:-.012em;font-weight:640;margin:0 0 4px;line-height:1.3}
  .pname a{display:inline-block;padding:11px 0;margin:-11px 0;min-height:40px}
  .pdesc{font-size:12.5px;color:var(--muted);margin:0 0 12px;line-height:1.5;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .pmeta{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-bottom:13px}

  /* tier list + inline add */
  .tiers{display:flex;flex-direction:column;gap:1px;background:var(--hair);border-top:1px solid var(--hair)}
  .tier{
    display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;
    padding:11px 17px;background:var(--panel);text-decoration:none;
    transition:background-color .14s var(--ease);
  }
  .tier:hover{background:var(--panel-2)}
  .tier .term{font-size:13.5px;font-weight:550;display:block}
  .tier .own{font-size:11.5px;color:var(--muted);display:block;margin-top:1px}
  .tier .price{font-size:14px;font-weight:640;font-variant-numeric:tabular-nums;white-space:nowrap}
  .tier .add{
    width:40px;height:40px;border-radius:var(--r-xs);border:1px solid var(--hair-2);
    background:var(--panel);color:var(--ink-2);cursor:pointer;display:grid;place-items:center;
    transition:background-color .14s var(--ease),color .14s var(--ease),border-color .14s var(--ease);
  }
  .tier .add:hover{background:var(--brand);border-color:var(--brand);color:var(--brand-on)}
  .tier .add svg{width:15px;height:15px;stroke:currentColor;stroke-width:2.1;stroke-linecap:round}
  .pcard.sold .tier .term,.pcard.sold .tier .price{color:var(--faint)}
  .pcard.sold .visual{filter:grayscale(.9)}
  .pfoot{
    border-top:1px solid var(--hair);padding:0 17px;display:flex;align-items:center;gap:10px;
    background:var(--panel-2);min-height:46px;
  }
  .pfoot a{
    font-size:12.5px;color:var(--brand-ink);font-weight:600;text-decoration:none;
    padding:15px 0;display:inline-flex;align-items:center;gap:5px;
  }
  .pfoot a:hover{text-decoration:underline}

  /* ---------- chips ---------- */
  .chip{
    display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:var(--ink-2);
    background:var(--panel-2);border:1px solid var(--hair);border-radius:var(--r-pill);
    padding:3px 9px;white-space:nowrap;
  }
  .dot{width:6px;height:6px;border-radius:50%;background:var(--faint);flex:none}
  .dot.ok{background:var(--ok)} .dot.warn{background:var(--warn)} .dot.stop{background:var(--stop)}
  .chip.ok{background:var(--ok-soft);border-color:color-mix(in srgb,var(--ok) 22%,transparent);color:var(--ok)}
  .chip.warn{background:var(--warn-soft);border-color:color-mix(in srgb,var(--warn) 24%,transparent);color:var(--warn)}
  .chip.stop{background:var(--stop-soft);border-color:color-mix(in srgb,var(--stop) 22%,transparent);color:var(--stop)}
  .form{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--ink-2)}
  .form svg{width:14px;height:14px;flex:none;stroke:var(--faint);stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}

  /* ---------- product detail ---------- */
  .pdp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:48px;align-items:start}
  .pdp .visual{aspect-ratio:1;border-radius:var(--r);box-shadow:var(--e2);border:1px solid var(--hair)}
  .pdp .visual .m{width:132px;height:132px;border-radius:24px}
  .pdp .visual .m svg{width:72px;height:72px}
  .pdp h1{margin-bottom:8px}
  .price-lead{font-size:30px;font-weight:660;letter-spacing:-.02em;font-variant-numeric:tabular-nums;margin:20px 0 2px}
  .price-lead small{font-size:13px;font-weight:500;color:var(--muted);letter-spacing:0;margin-left:8px}
  .optlabel{font-size:13px;font-weight:600;margin:26px 0 9px}
  .optlist{display:flex;flex-direction:column;gap:1px;background:var(--hair);border:1px solid var(--hair);border-radius:var(--r-sm);overflow:hidden}
  .opt{
    display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;
    padding:13px 15px;background:var(--panel);border:0;cursor:pointer;text-align:left;width:100%;
    font:inherit;color:inherit;
    transition:background-color .14s var(--ease);
  }
  .opt:hover{background:var(--panel-2)}
  .opt.on{background:var(--brand-soft);box-shadow:inset 3px 0 0 var(--brand)}
  .opt .term{font-size:14px;font-weight:560;display:block}
  .opt .own{font-size:12px;color:var(--muted);display:block;margin-top:1px}
  .opt .price{font-size:14.5px;font-weight:640;font-variant-numeric:tabular-nums}
  .qtyrow{display:flex;align-items:center;gap:14px;margin-top:22px}
  .qty{display:inline-flex;align-items:center;border:1px solid var(--hair-2);border-radius:var(--r-sm);background:var(--panel);box-shadow:var(--e1);overflow:hidden}
  .qty button{width:44px;height:44px;border:0;background:none;cursor:pointer;color:var(--ink-2);font-size:17px;line-height:1}
  .qty button:hover{background:var(--panel-2)}
  .qty span{min-width:38px;text-align:center;font-size:14.5px;font-weight:600;font-variant-numeric:tabular-nums}
  .buyrow{display:flex;gap:12px;margin-top:22px;flex-wrap:wrap}

  /* ---------- buttons ---------- */
  .btn{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;
    border-radius:var(--r-sm);border:1px solid var(--hair-2);background:var(--panel);
    font-size:14.5px;font-weight:560;cursor:pointer;text-decoration:none;box-shadow:var(--e1);
    transition:box-shadow .15s var(--ease),background-color .15s var(--ease),transform .1s var(--ease);
  }
  .btn:hover{box-shadow:var(--e2)}
  .btn:active{transform:translateY(1px);box-shadow:var(--in1)}
  .btn svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
  .btn.primary{
    background:linear-gradient(180deg,#FF8A3D,var(--brand));border-color:#E2620E;
    color:var(--brand-on);font-weight:620;
    box-shadow:0 1px 2px rgba(196,80,8,.28),inset 0 1px 0 rgba(255,255,255,.3);
  }
  .btn.primary:hover{box-shadow:0 3px 10px rgba(196,80,8,.30),inset 0 1px 0 rgba(255,255,255,.3)}
  .btn.primary:active{transform:translateY(1px);box-shadow:0 1px 2px rgba(196,80,8,.24),inset 0 2px 6px rgba(120,45,4,.3)}
  .btn.block{width:100%}
  .btn.lg{height:52px;font-size:15.5px;border-radius:var(--r-sm)}
  .btn:disabled{opacity:.5;cursor:not-allowed}
  .btnrow{display:flex;gap:10px;flex-wrap:wrap}

  /* ---------- basket drawer ---------- */
  .scrim{
    position:fixed;inset:0;background:rgba(12,12,16,.42);z-index:60;opacity:0;pointer-events:none;
    transition:opacity .22s var(--ease);backdrop-filter:blur(2px);
  }
  .scrim.on{opacity:1;pointer-events:auto}
  .drawer{
    position:fixed;top:0;right:0;bottom:0;width:min(430px,100vw);z-index:61;
    background:var(--panel);display:flex;flex-direction:column;
    transform:translateX(100%);transition:transform .26s var(--ease);
    box-shadow:var(--e4);
  }
  .drawer.on{transform:translateX(0)}
  .dhead{
    display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid var(--hair);
  }
  .dhead h2{font-size:16px}
  .dclose{
    margin-left:auto;width:40px;height:40px;border-radius:var(--r-xs);border:1px solid var(--hair);
    background:var(--panel-2);cursor:pointer;display:grid;place-items:center;color:var(--ink-2);
  }
  .dclose:hover{background:var(--well)}
  .dclose svg{width:15px;height:15px;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .dbody{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:8px 0}
  .brow{
    display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:13px;align-items:center;
    padding:14px 20px;border-bottom:1px solid var(--hair);
  }
  .bthumb{
    width:52px;height:52px;border-radius:var(--r-xs);display:grid;place-items:center;
    background:color-mix(in srgb,var(--mark) 12%,var(--panel-2));
    border:1px solid color-mix(in srgb,var(--mark) 20%,var(--hair));
  }
  .bthumb svg{width:26px;height:26px}
  .bname{font-size:13.5px;font-weight:580;display:block}
  .bopt{font-size:11.5px;color:var(--muted);display:block;margin-top:2px}
  .bqty{display:inline-flex;align-items:center;gap:2px;margin-top:8px;border:1px solid var(--hair);border-radius:var(--r-xs);background:var(--panel)}
  .bqty button{width:30px;height:30px;border:0;background:none;cursor:pointer;color:var(--ink-2);font-size:14px;line-height:1}
  .bqty button:hover{background:var(--panel-2)}
  .bqty span{min-width:24px;text-align:center;font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums}
  .bprice{font-size:14px;font-weight:640;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
  .bremove{
    display:block;margin-top:6px;margin-left:auto;font-size:11.5px;color:var(--faint);background:none;
    border:0;cursor:pointer;text-decoration:underline;text-underline-offset:2px;padding:4px 0;
  }
  .bremove:hover{color:var(--stop)}
  .dempty{padding:56px 32px;text-align:center;color:var(--muted)}
  .dempty h3{margin-bottom:6px;color:var(--ink)}
  .dempty p{font-size:13.5px;margin:0 0 18px}
  .dfoot{border-top:1px solid var(--hair);padding:16px 20px 20px;background:var(--panel-2)}
  .sumrow{display:flex;justify-content:space-between;align-items:baseline;font-size:13.5px;color:var(--muted);margin-bottom:7px}
  .sumrow.total{font-size:17px;font-weight:660;color:var(--ink);margin:12px 0 14px}
  .sumrow.total .v{font-variant-numeric:tabular-nums}
  .dnote{font-size:11.5px;color:var(--faint);text-align:center;margin-top:11px}

  /* ---------- full basket page ---------- */
  .bpage{max-width:900px}
  .bpage .row{
    display:grid;grid-template-columns:64px minmax(0,1fr) auto auto;gap:16px;align-items:center;
    padding:18px 0;border-bottom:1px solid var(--hair);
  }
  .bpage .row .bthumb{width:64px;height:64px}
  .bpage .row .bthumb svg{width:32px;height:32px}
  .bpage .row .bprice{font-size:15px}

  /* ---------- receipt ---------- */
  .receipt{background:var(--panel);border-radius:var(--r);box-shadow:var(--e2);overflow:hidden}
  .rhead{padding:20px;border-bottom:1px dashed var(--hair-2)}
  .rhead .t{font-size:12px;color:var(--faint);margin-bottom:10px}
  .rcode{
    font-family:var(--mono);font-size:26px;letter-spacing:.1em;font-weight:600;
    background:var(--well);border-radius:var(--r-sm);padding:13px 15px;box-shadow:var(--in1);
    display:inline-block;
  }
  .rline{
    display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px 20px;
    border-bottom:1px solid var(--hair);font-size:14px;align-items:center;
  }
  .rline .k{color:var(--muted)}
  .rline .v{font-variant-numeric:tabular-nums;text-align:right}
  .rtotal{
    display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px 20px;
    border-top:2px solid var(--ink);font-size:17px;font-weight:660;background:var(--panel-2);
  }
  .rtotal .v{font-variant-numeric:tabular-nums}
  .rprod{display:flex;gap:13px;align-items:center}
  .rmark{
    width:42px;height:42px;border-radius:var(--r-xs);display:grid;place-items:center;flex:none;
    background:color-mix(in srgb,var(--mark) 12%,var(--panel-2));
    border:1px solid color-mix(in srgb,var(--mark) 20%,var(--hair));
  }
  .rmark svg{width:24px;height:24px}
  .codeitem{padding:18px 20px;border-bottom:1px solid var(--hair)}
  .codeitem:last-child{border-bottom:0}
  .codebox{
    font-family:var(--mono);font-size:14.5px;word-break:break-all;background:var(--well);
    border-radius:var(--r-sm);padding:13px 14px;margin:9px 0 11px;box-shadow:var(--in1);
  }
  .codebox.hidden{filter:blur(6px);user-select:none}

  /* ---------- pay ---------- */
  .paybox{background:var(--panel);border-radius:var(--r);padding:26px;text-align:center;box-shadow:var(--e3)}
  .qr{width:236px;height:236px;margin:0 auto 18px;border-radius:var(--r-sm);background:#fff;padding:13px;box-shadow:var(--e3)}
  .qr svg{display:block;width:100%;height:100%}
  .apps{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:18px}
  .apps button{
    border:1px solid var(--hair);background:var(--panel);border-radius:var(--r-sm);height:46px;
    font-size:12.5px;font-weight:560;cursor:pointer;box-shadow:var(--e1);
  }
  .apps button:hover{box-shadow:var(--e2)}
  .timer{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:13px;color:var(--muted)}

  /* ---------- panels / form ---------- */
  .panel{border-radius:var(--r);background:var(--panel);padding:18px 19px;box-shadow:var(--e1);border-left:3px solid var(--hair-2)}
  .panel.warn{background:var(--warn-soft);border-left-color:var(--warn)}
  .panel.ok{background:var(--ok-soft);border-left-color:var(--ok)}
  .panel.accent{border-left-color:var(--brand)}
  .panel p{margin:6px 0 0;font-size:13.5px;color:var(--ink-2)}
  .panel h3{margin-bottom:2px}
  .field{margin-bottom:16px}
  .field label{display:block;font-size:13px;color:var(--ink-2);margin-bottom:7px;font-weight:560}
  .field .hint{font-size:12px;color:var(--faint);margin-top:6px}
  .field input{
    width:100%;height:46px;padding:0 14px;border:1px solid var(--hair-2);border-radius:var(--r-sm);
    background:var(--panel);font:inherit;font-size:15px;color:var(--ink);
    box-shadow:var(--e1);transition:box-shadow .15s var(--ease),border-color .15s var(--ease);
  }
  .field input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 22%,transparent)}
  .field input::placeholder{color:var(--faint)}
  .field .opt{font-size:12px;color:var(--faint);font-weight:400;margin-left:6px}
  .col2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}

  /* ---------- footer ---------- */
  .foot{
    margin-top:64px;border-top:1px solid var(--hair);background:var(--panel);
  }
  .footin{
    display:grid;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));gap:36px;
    padding:44px 0 34px;
  }
  .footin img{height:26px;margin-bottom:14px}
  .footin p{font-size:13px;color:var(--muted);margin:0;max-width:38ch;line-height:1.55}
  .footin h4{font-size:12px;font-weight:620;letter-spacing:.05em;text-transform:uppercase;color:var(--faint);margin:0 0 12px}
  .footin ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
  .footin ul a{
    font-size:13.5px;color:var(--muted);text-decoration:none;display:inline-block;
    padding:11px 0;min-height:40px;
  }
  .footin ul a:hover{color:var(--ink);text-decoration:underline}
  .footbar{
    border-top:1px solid var(--hair);padding:16px 0;font-size:12.5px;color:var(--faint);
    display:flex;gap:14px;flex-wrap:wrap;align-items:center;
  }
  .paymarks{display:flex;gap:7px;flex-wrap:wrap}
  .paymarks span{
    font-size:11px;font-weight:560;color:var(--ink-2);background:var(--panel-2);
    border:1px solid var(--hair);border-radius:var(--r-xs);padding:4px 8px;
  }

  /* ---------- crumbs / toast ---------- */
  .crumbs{display:flex;gap:7px;align-items:center;font-size:13px;color:var(--faint);margin:22px 0 18px;flex-wrap:wrap}
  .crumbs a{color:var(--muted);text-decoration:none;padding:16px 0;margin:-16px 0;border-radius:var(--r-xs);display:inline-block;min-height:40px}
  .crumbs a:hover{color:var(--ink);text-decoration:underline}
  .toast{
    position:fixed;left:50%;bottom:26px;transform:translate(-50%,14px);z-index:70;
    background:var(--ink);color:var(--bg);border-radius:var(--r-pill);
    padding:12px 20px;font-size:13.5px;box-shadow:var(--e4);
    display:flex;align-items:center;gap:10px;
    opacity:0;pointer-events:none;transition:opacity .2s var(--ease),transform .2s var(--ease);
    max-width:calc(100vw - 32px);
  }
  html[data-mode="dark"] .toast{background:#F4F4F5;color:#0A0A0C}
  .toast.on{opacity:1;transform:translate(-50%,0)}
  .toast svg{width:16px;height:16px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}

  .hidden{display:none !important}
  .rowflex{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
  .grow{flex:1;min-width:0}
  .mt{margin-top:16px}

  @media (prefers-reduced-motion: reduce){
    *{transition-duration:.01ms !important;animation-duration:.01ms !important}
    .pcard:hover,.drawer.on{transform:none}
    .drawer.on{transform:translateX(0)}
  }
  @media (max-width:980px){
    .herogrid,.pdp{grid-template-columns:1fr;gap:28px}
    .pdp .visual{aspect-ratio:4/3}
    .trust{grid-template-columns:1fr 1fr}
    .footin{grid-template-columns:1fr 1fr}
  }
  @media (max-width:680px){
    .wrap{padding:0 16px}
    .search{max-width:none}
    .search input{display:none}
    .grid{grid-template-columns:1fr;gap:16px}
    .trust{grid-template-columns:1fr}
    .footin{grid-template-columns:1fr;gap:28px}
    .col2{grid-template-columns:1fr}
    .hero{padding:32px 0 4px}
    h1{font-size:25px}
    .toolbar{flex-wrap:wrap;margin:0 -16px 0;padding:10px 16px}
    .cats{order:2;width:100%}
  }

  /* ==========================================================================
     Storefront build (Round A) — additions to the approved sketch.
     Tokens above are the storefront's own; nothing here is shared with the console.
     ========================================================================== */

  /* the 16 sprite marks: the tint is a fact about the vendor's mark, never a status */
  .tint-chatgpt-plus{--mark:#10A37F}
  .tint-claude-pro{--mark:#D97757}
  .tint-gemini-advanced{--mark:#8E75B2}
  .tint-midjourney{--mark:#1A222D}
  .tint-canva-pro{--mark:#00C4CC}
  .tint-photoshop{--mark:#31A8FF}
  .tint-capcut-pro{--mark:#1B1B1F}
  .tint-cursor-pro{--mark:#26251E}
  .tint-github-copilot{--mark:#24292F}
  .tint-figma-pro{--mark:#A259FF}
  .tint-netflix{--mark:#E50914}
  .tint-spotify{--mark:#1ED760}
  .tint-ps-plus{--mark:#0070D1}
  .tint-steam-wallet{--mark:#1A1918}
  .tint-tg-premium{--mark:#26A5E4}
  .tint-tg-stars{--mark:#26A5E4}
  .tint-none{--mark:#8E8E98}

  .visual .m svg,.heroart .m svg{color:var(--mark)}
  .heroart .m{background:var(--panel)}

  /* the accessibility floor is 44px; the sketch's 40/42px controls are raised here */
  .navlink{height:44px}
  .modetoggle{width:44px;height:44px}
  .search input{height:44px}
  .cats button,.cats a{min-height:44px}
  .sort select{height:44px}
  .tier .add{width:44px;height:44px}
  .footin ul a{min-height:44px}
  .crumbs a{min-height:44px}
  .brandlink{min-height:44px}

  /* an inert control keeps its contrast; only the cursor and the assistive state say so */
  .btn:disabled{opacity:1;cursor:not-allowed}
  .navlink:disabled{cursor:default;color:var(--muted)}
  .linklike{cursor:default}

  /* the mode control carries both glyphs; the attribute picks one, no script required */
  .mode-moon{display:none}
  html[data-mode="dark"] .mode-sun{display:none}
  html[data-mode="dark"] .mode-moon{display:block}

  .visually-hidden{
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
    clip:rect(0 0 0 0);white-space:nowrap;border:0;
  }
  .stockunknown .dot{background:var(--faint)}
  .count{display:inline-flex}

  /* Round A: the count is always shown (it is 0 until the basket exists), and every
     inert footer/panel action reads as text, not as a dead link. */
  .navlink .count{display:inline-flex}
  .footin ul .footlink{
    font-size:13.5px;color:var(--faint);display:inline-block;padding:11px 0;min-height:44px;
  }
  .pfoot .linklike{
    font-size:12.5px;color:var(--faint);padding:15px 0;display:inline-flex;align-items:center;
  }
  .empty{text-align:center;padding:44px 20px}
  .empty h3{margin-bottom:6px}
  .empty p{margin:0}
  .endnote{margin-top:28px}
  .endnote p:last-child{margin-bottom:0}
  .pdpmeta{margin-top:16px}
  .planlink{text-decoration:none}
  .btnrow{margin-top:22px}
  .pname a{min-height:44px}

  /* Round A mobile: the wordmark and the two controls fit a 390px header once the
     labels collapse to their icons (the accessible names are on the controls). */
  @media (max-width:680px){
    .topin{gap:8px}
    .navlink{padding:0 9px}
    .navlink .navlabel{display:none}
  }
  .top a.brandlink{min-height:44px}
  .btn.primary{background-color:var(--brand)}

  /* ==========================================================================
     Storefront build (Round B) — the transaction surface.
     Same tokens; the basket, checkout, pay page and order page reuse the sketch's
     receipt and form primitives. Nothing here is shared with the console.
     ========================================================================== */

  /* a card's add control is a form so the basket works without JavaScript; the form
     itself must not add a grid cell, so it contributes its button in place */
  .addform{display:contents}

  /* product page: a labelled number input replaces the display-only stepper */
  .qtyfield input{
    width:86px;height:44px;padding:0 12px;border:1px solid var(--hair-2);
    border-radius:var(--r-sm);background:var(--panel);font:inherit;font-size:15px;
    color:var(--ink);box-shadow:var(--e1);font-variant-numeric:tabular-nums;
  }
  .qtyfield input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 22%,transparent)}

  /* basket page — one row is one form, so every control works with JavaScript off */
  .blist{margin-top:22px;border-top:1px solid var(--hair)}
  .bline{
    display:grid;grid-template-columns:64px minmax(0,1fr) auto auto auto;gap:16px;
    align-items:center;padding:18px 0;border-bottom:1px solid var(--hair);margin:0;
  }
  .bline .bthumb{width:64px;height:64px}
  .bline .bthumb svg{width:32px;height:32px}
  .binfo{min-width:0}
  .binfo .bname{font-size:15px;text-decoration:none}
  .binfo .bname:hover{text-decoration:underline}
  .bqty{
    display:inline-flex;align-items:center;gap:6px;border:1px solid var(--hair);
    border-radius:var(--r-sm);background:var(--panel);padding:5px;
  }
  .bqty button{
    min-width:34px;height:34px;border:0;background:none;cursor:pointer;color:var(--ink-2);
    font-size:15px;line-height:1;border-radius:var(--r-xs);
  }
  .bqty button:hover{background:var(--well)}
  .bqty input{
    width:58px;height:34px;padding:0 6px;border:1px solid var(--hair);
    border-radius:var(--r-xs);background:var(--panel);font:inherit;font-size:14px;
    color:var(--ink);text-align:center;font-variant-numeric:tabular-nums;
  }
  .bqty .qupdate{width:auto;padding:0 10px;font-size:12px;color:var(--muted);border:1px solid var(--hair)}
  .bline .bprice{font-size:15px;font-weight:640;font-variant-numeric:tabular-nums;white-space:nowrap}
  .bline .bremove{margin:0}
  .btotal{
    display:flex;justify-content:flex-end;align-items:baseline;gap:16px;
    padding:20px 0 0;font-size:15px;color:var(--muted);
  }
  .btotal .v{font-size:22px;font-weight:660;color:var(--ink);font-variant-numeric:tabular-nums}
  .bbuttons{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;flex-wrap:wrap}

  /* checkout — the form and a receipt summary, the sketch's two-column pdp grid */
  .copage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,380px);gap:40px;align-items:start;margin-top:24px}
  .coform{margin:0}
  .coitems{font-size:13.5px;font-weight:600;margin-top:6px}

  /* pay page — the scanner apps are labels, not dead buttons */
  .apps .payapp{
    display:flex;align-items:center;justify-content:center;
    border:1px solid var(--hair);background:var(--panel);border-radius:var(--r-sm);
    min-height:46px;font-size:12.5px;font-weight:560;box-shadow:var(--e1);
  }

  /* order page */
  .orderchips{margin-bottom:16px}
  .codeshead{margin:30px 0 14px}
  .codecard{margin-bottom:12px}
  .codehead{margin-bottom:2px}
  .codebox-empty{
    font-family:var(--sans);font-size:14px;color:var(--muted);
    background:var(--well);box-shadow:none;
  }
  .linkstrong{color:var(--brand-ink);font-weight:600;text-decoration:none}
  .linkstrong:hover{text-decoration:underline}

  /* lookup */
  .lookupform{max-width:420px;margin-top:22px}

  @media (max-width:860px){
    .copage{grid-template-columns:1fr;gap:24px}
  }
  @media (max-width:680px){
    .bline{grid-template-columns:52px minmax(0,1fr);grid-auto-rows:auto;row-gap:10px}
    .bline .bthumb{width:52px;height:52px}
    .bqty{grid-column:1 / -1;justify-self:start}
    .bline .bprice{grid-column:1 / -1;justify-self:start;text-align:left}
    .bline .bremove{grid-column:1 / -1;justify-self:start}
  }

  /* Round B accessibility pass, measured at 390px: the header's icon-only nav link and
     the crumb links were narrower than 44px, the basket stepper was 34px, and an inline
     prose link had a 16px box. Each is now a 44px target; the prose link keeps its
     visual position with symmetric padding and a matching negative margin. */
  .navlink{min-width:44px}
  .crumbs a{min-width:44px;text-align:center}
  .binfo .bname{display:inline-flex;align-items:center;min-height:44px}
  .bqty button{min-width:44px;height:44px}
  .bqty input{height:44px}
  .bqty .qupdate{height:44px}
  .linkstrong{display:inline-block;padding:14px 0;margin:-14px 0}
  .bline .bremove{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}

  /* ---------- quick buy dialog (w3k-style product popup) ---------- */
  dialog.qbuy{
    width:min(620px,calc(100vw - 32px));margin:auto;padding:0;border:0;
    border-radius:var(--r);background:var(--panel);color:var(--ink);
    box-shadow:var(--e4);overflow:hidden;
  }
  dialog.qbuy::backdrop{
    background:rgba(12,12,16,.46);backdrop-filter:blur(2px);
  }
  dialog.qbuy[open]{animation:qbuyin .18s var(--ease)}
  @keyframes qbuyin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
  @media (prefers-reduced-motion:reduce){dialog.qbuy[open]{animation:none}}
  .qbuy-head{
    display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:14px;align-items:start;
    padding:18px 20px;border-bottom:1px solid var(--hair);background:var(--panel-2);
  }
  .qbuy-visual{
    width:64px;height:64px;border-radius:14px;aspect-ratio:auto;
  }
  .qbuy-info h2{font-size:17px;margin:0 0 4px}
  .qbuy-info .meta{margin:0 0 8px}
  .qbuy-x{
    width:40px;height:40px;border-radius:var(--r-xs);border:1px solid var(--hair);
    background:var(--panel);color:var(--ink-2);cursor:pointer;display:grid;place-items:center;
    font-size:18px;line-height:1;
  }
  .qbuy-x:hover{background:var(--well)}
  .qbuy-tiers{padding:12px 20px 18px;display:flex;flex-direction:column;gap:10px}
  .qbuy-tier{
    display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:10px;align-items:center;
    padding:12px;border:1px solid var(--hair);border-radius:var(--r-sm);background:var(--panel);
  }
  .qbuy-term{min-width:0}
  .qbuy-term .term{font-size:13.5px;font-weight:560;display:block}
  .qbuy-term .own{font-size:11.5px;color:var(--muted);display:block;margin-top:1px}
  .qbuy-tier .qtyfield input{width:68px;height:40px}
  @media (max-width:680px){
    .qbuy-tier{grid-template-columns:minmax(0,1fr) auto;grid-auto-rows:auto;row-gap:8px}
    .qbuy-tier .price{grid-column:1/-1}
    .qbuy-tier .qtyfield{grid-column:1/-1;justify-self:start}
    .qbuy-tier .btn{grid-column:1/-1;width:100%}
  }

  /* w3k-style product icon lift */
  .visual .m{transition:transform .22s var(--ease),box-shadow .22s var(--ease)}
  .pcard:hover .visual .m{transform:translateY(-2px) scale(1.05);box-shadow:var(--e3)}
  .pdp .visual .m{transition:transform .22s var(--ease)}

  /* ---------- w3k-style smaller cards ---------- */
  .grid{grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:16px}
  .pcard{border-radius:18px}
  .pcard .visual{aspect-ratio:16/10}
  .pcard .visual .m{width:52px;height:52px;border-radius:12px}
  .pcard .visual .m svg{width:28px;height:28px}
  .pcard .pbody{padding:12px 14px 10px}
  .pcard .pname{font-size:14.5px;margin-bottom:3px}
  .pcard .pdesc{font-size:12px;margin-bottom:9px;-webkit-line-clamp:2}
  .pcard .pmeta{margin-bottom:10px;gap:6px}
  .pcard .tier{padding:9px 14px;gap:8px}
  .pcard .tier .term{font-size:13px}
  .pcard .tier .own{font-size:11px}
  .pcard .tier .price{font-size:13px}
  .pcard .tier .add{width:36px;height:36px}
  .pcard .tier .add svg{width:14px;height:14px}
  .pcard .pfoot{min-height:40px;padding:0 14px}
  .pcard .pfoot a,.pcard .pfoot .btn{font-size:12px;padding:12px 0}
  .pcard .qbuy-open{height:36px;padding:0 12px;font-size:12.5px}
  @media (max-width:680px){.grid{grid-template-columns:1fr;gap:12px}}

  /* hero floating tiles */
  .heroart .m{animation:herofloat 6s ease-in-out infinite}
  .heroart .m:nth-child(2){animation-delay:-2s}
  .heroart .m:nth-child(3){animation-delay:-4s}
  @keyframes herofloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
  @media (prefers-reduced-motion:reduce){.heroart .m{animation:none}}

  /* gradient headline word */
  .grad{
    background:linear-gradient(90deg,var(--brand),#FFB36B 60%,var(--brand-ink));
    -webkit-background-clip:text;background-clip:text;color:transparent;
  }

  /* hero search */
  .hero-search{
    display:flex;gap:8px;margin:18px 0 6px;max-width:520px;
  }
  .hero-search input{
    flex:1;height:46px;padding:0 14px;border:1px solid var(--hair);border-radius:var(--r-pill);
    background:var(--panel);font:inherit;font-size:14.5px;color:var(--ink);box-shadow:var(--e1);
  }
  .hero-search input:focus{outline:none;border-color:var(--hair-2);box-shadow:var(--e2)}
  .hero-search button{
    height:46px;padding:0 18px;border-radius:var(--r-pill);border:0;
    background:linear-gradient(180deg,#FF8A3D,var(--brand));color:var(--brand-on);
    font-weight:620;cursor:pointer;box-shadow:var(--e1);
  }

  /* ---------- orbit hero ---------- */
  .orbit{position:relative;aspect-ratio:1;display:grid;place-items:center;min-height:320px}
  .orbit .ring{position:absolute;inset:10%;border:1px dashed var(--hair-2);border-radius:50%;animation:spin 24s linear infinite}
  .orbit .ring.r2{inset:24%;animation-duration:16s;animation-direction:reverse}
  .orbit .core{width:112px;height:112px;border-radius:24px;display:grid;place-items:center;background:var(--panel);box-shadow:var(--e3);border:1px solid var(--hair);position:relative;z-index:2}
  .orbit .core svg{width:48px;height:48px}
  .orb-tile{position:absolute;width:52px;height:52px;border-radius:13px;display:grid;place-items:center;color:#fff;font-weight:700;font-size:12px;box-shadow:var(--e2);animation:float 5s ease-in-out infinite}
  .orb-tile.t1{top:8%;left:18%;animation-delay:0s}
  .orb-tile.t2{top:20%;right:6%;animation-delay:-1.2s}
  .orb-tile.t3{bottom:12%;left:10%;animation-delay:-2.4s}
  .orb-tile.t4{bottom:22%;right:14%;animation-delay:-3.6s}
  @keyframes spin{to{transform:rotate(360deg)}}
  @media (prefers-reduced-motion:reduce){.orbit .ring,.orb-tile{animation:none}}
  @media (max-width:900px){.orbit{max-width:320px;margin:0 auto;min-height:260px}}

  /* ==========================================================================
     The install surface (Phase A of the PWA round). Everything here is hidden
     until the browser says it can install — a JavaScript-off buyer sees exactly
     the header they had before, and nothing is advertised that cannot happen.
     ========================================================================== */
  .installbtn{
    display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 14px;
    border:1px solid var(--hair);border-radius:var(--r-pill);background:var(--panel);
    color:var(--ink);font:inherit;font-size:13.5px;font-weight:560;cursor:pointer;
    box-shadow:var(--e1);transition:box-shadow .15s var(--ease),transform .1s var(--ease);
  }
  .installbtn:hover{box-shadow:var(--e2)}
  .installbtn:active{transform:translateY(1px);box-shadow:var(--in1)}
  .installbtn svg{width:16px;height:16px;stroke:var(--brand-ink);stroke-width:1.9;fill:none;
    stroke-linecap:round;stroke-linejoin:round}
  .installbtn[hidden]{display:none}
  html[data-standalone="1"] .installbtn{display:none}

  /* The worker says a new version is waiting; the page offers the reload rather
     than reloading under a buyer mid-checkout. */
  .swupdate{
    position:fixed;left:50%;transform:translateX(-50%);
    bottom:calc(18px + env(safe-area-inset-bottom));z-index:60;
    display:flex;align-items:center;gap:10px;
    max-width:calc(100vw - 24px);padding:10px 12px 10px 16px;
    background:var(--ink);color:var(--bg);border-radius:var(--r-pill);
    box-shadow:var(--e4);font-size:13.5px;
  }
  .swupdate[hidden]{display:none}
  .swupdate button{
    border:0;border-radius:var(--r-pill);padding:6px 12px;cursor:pointer;
    background:var(--brand);color:var(--brand-on);font:inherit;font-weight:640;font-size:13px;
  }
  .swupdate .swdismiss{
    background:transparent;color:inherit;font-size:17px;line-height:1;
    padding:2px 6px;opacity:.72;
  }
  .swupdate .swdismiss:hover{opacity:1}

  dialog.iosinstall{padding:22px 22px 18px}
  dialog.iosinstall h3{margin:0 0 8px;font-size:17px}
  dialog.iosinstall p{margin:0 0 18px;color:var(--muted);font-size:14px;line-height:1.5}

  /* An installed app owns the bottom safe area; a browser tab does not. */
  body{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  @media (max-width:720px){
    .installbtn{height:44px;padding:0 12px}
    .installbtn span{display:none}
    .installbtn{padding:0 12px}
  }

  /* ==========================================================================
     Phase B — the app-store browse surface. All of it is links and forms;
     no tile, rail or bar holds behaviour of its own.
     ========================================================================== */

  /* ---------- featured band (the console's first two rows) ---------- */
  .featured{
    display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:20px;margin-bottom:8px;
  }
  .fcard{
    display:flex;flex-direction:column;background:var(--panel);border-radius:var(--r);
    overflow:hidden;box-shadow:var(--e1);
  }
  .fcard .visual{aspect-ratio:16/7;border-bottom:1px solid var(--hair)}
  .fcard .visual .m{width:72px;height:72px;border-radius:16px}
  .fcard .visual .m svg{width:38px;height:38px}
  .fbody{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1}
  .fname{font-size:17px;font-weight:640;letter-spacing:-.014em;margin:0 0 3px;line-height:1.3}
  .fname a{text-decoration:none;display:inline-block;padding:8px 0;margin:-8px 0;min-height:40px}
  .fterm{font-size:13px;color:var(--muted);margin:0 0 10px}
  .ffoot{display:flex;align-items:center;gap:12px;margin-top:auto}
  .fprice{font-size:18px;font-weight:660;font-variant-numeric:tabular-nums;margin-right:auto}
  .fcard.sold .visual{filter:grayscale(.9)}

  /* ---------- category rails ---------- */
  .rail{margin:30px 0 0}
  .railhead{display:flex;align-items:baseline;gap:10px;margin:0 0 12px}
  .railhead .n{
    font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums;
  }
  .railrow{
    display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 0 6px;
  }
  .railrow::-webkit-scrollbar{display:none}
  .tile{
    flex:0 0 246px;scroll-snap-align:start;display:flex;align-items:center;gap:12px;
    padding:13px 14px;border-radius:var(--r);text-decoration:none;color:inherit;
    background:
      radial-gradient(120% 100% at 12% 12%, color-mix(in srgb,var(--mark) 20%,transparent), transparent 70%),
      var(--panel);
    border:1px solid color-mix(in srgb,var(--mark) 18%,var(--hair));
    box-shadow:var(--e1);
    transition:box-shadow .18s var(--ease),transform .18s var(--ease);
  }
  .tile:hover{box-shadow:var(--e2);transform:translateY(-2px)}
  .tile .m{
    width:56px;height:56px;border-radius:14px;flex:none;display:grid;place-items:center;
    background:var(--panel);box-shadow:var(--e1);
    border:1px solid color-mix(in srgb,var(--mark) 22%,var(--hair));
  }
  .tile .m svg{width:32px;height:32px;color:var(--mark)}
  .tilebody{display:flex;flex-direction:column;min-width:0;gap:2px}
  .tilename{
    font-size:13.5px;font-weight:620;line-height:1.3;white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis;
  }
  .tileterm{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tileprice{font-size:13.5px;font-weight:640;font-variant-numeric:tabular-nums;margin-top:2px}
  .raillink{
    display:inline-flex;align-items:center;min-height:44px;margin-top:4px;
    font-size:13px;font-weight:600;color:var(--brand-ink);text-decoration:none;
  }
  .raillink:hover{text-decoration:underline}

  /* per-mark tint for the tiles: the same vendor palette the cards already use */
  .tile[data-mark="chatgpt-plus"]{--mark:#10A37F}
  .tile[data-mark="claude-pro"]{--mark:#D97757}
  .tile[data-mark="gemini-advanced"]{--mark:#8E75B2}
  .tile[data-mark="midjourney"]{--mark:#1A222D}
  .tile[data-mark="canva-pro"]{--mark:#00C4CC}
  .tile[data-mark="photoshop"]{--mark:#31A8FF}
  .tile[data-mark="capcut-pro"]{--mark:#1B1B1F}
  .tile[data-mark="cursor-pro"]{--mark:#26251E}
  .tile[data-mark="github-copilot"]{--mark:#24292F}
  .tile[data-mark="figma-pro"]{--mark:#A259FF}
  .tile[data-mark="netflix"]{--mark:#E50914}
  .tile[data-mark="spotify"]{--mark:#1ED760}
  .tile[data-mark="ps-plus"]{--mark:#0070D1}
  .tile[data-mark="steam-wallet"]{--mark:#1A1918}
  .tile[data-mark="tg-premium"],.tile[data-mark="tg-stars"]{--mark:#26A5E4}
  .tile[data-mark="none"]{--mark:#8E8E98}

  /* ---------- listing page ---------- */
  .pdp .visual .m{width:88px;height:88px;border-radius:18px}
  .pdp .visual .m svg{width:52px;height:52px}
  .sellerline{font-size:13px;color:var(--muted);margin:-3px 0 12px}
  .whatlist{list-style:none;margin:10px 0 0;padding:0}
  .whatlist li{
    display:flex;gap:14px;padding:8px 0;border-top:1px solid var(--hair);
    font-size:13px;line-height:1.45;
  }
  .whatlist li:first-child{border-top:0}
  .whatlist .k{width:84px;flex:none;color:var(--muted)}
  .whatlist .v{color:var(--ink-2)}
  .infotable{width:100%;border-collapse:collapse;margin-top:8px}
  .infotable th{
    text-align:left;font-weight:500;font-size:12.5px;color:var(--muted);
    width:120px;padding:8px 12px 8px 0;vertical-align:top;
  }
  .infotable td{font-size:13px;padding:8px 0;border-top:1px solid var(--hair)}
  .infotable tr:first-child th,.infotable tr:first-child td{border-top:0}

  /* the add bar is a second *view* of one form, never a second submission path */
  .stickyadd{display:none}

  /* ---------- mobile chrome: tab bar, icon search, safe areas ---------- */
  .searchlink{display:none}
  .tabbar{display:none}

  @media (max-width:720px){
    body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
    .top .search{display:none}
    .searchlink{
      display:inline-grid;place-items:center;width:44px;height:44px;margin-left:auto;
      border-radius:var(--r-pill);border:1px solid var(--hair);background:var(--panel);
      box-shadow:var(--e1);text-decoration:none;
    }
    .searchlink svg{
      width:17px;height:17px;stroke:var(--ink-2);stroke-width:1.8;fill:none;
      stroke-linecap:round;
    }
    .topnav{margin-left:0}
    .topnav .navlink{display:none}
    .tabbar{
      display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;
      background:color-mix(in srgb,var(--bg) 94%,transparent);
      backdrop-filter:saturate(180%) blur(14px);
      border-top:1px solid var(--hair);
      padding:0 4px env(safe-area-inset-bottom);
    }
    .tab{
      flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;
      justify-content:center;gap:2px;height:58px;text-decoration:none;
      font-size:10.5px;font-weight:560;color:var(--muted);
    }
    .tab svg{
      width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;
      stroke-linecap:round;stroke-linejoin:round;
    }
    .tab[aria-current="page"]{color:var(--brand-ink)}
    .tabcount{
      display:inline-flex;align-items:center;justify-content:center;
      min-width:16px;height:16px;padding:0 4px;border-radius:var(--r-pill);
      background:var(--brand);color:var(--brand-on);font-size:9.5px;font-weight:700;
    }
    /* Fixed, not sticky: at the end of the form a sticky element has already scrolled
       past its containing block and never appears. The bar rides above the tab bar
       (58px) and the page reserves room for both at the bottom. */
    .stickyadd{
      display:flex;position:fixed;left:0;right:0;
      bottom:calc(58px + env(safe-area-inset-bottom));
      z-index:45;align-items:center;gap:12px;
      margin:0;padding:10px 16px;
      background:color-mix(in srgb,var(--bg) 95%,transparent);
      backdrop-filter:blur(12px);border-top:1px solid var(--hair);
      box-shadow:0 -1px 0 rgba(16,16,22,.03);
    }
    .pdp{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
    .stickyadd .btn{flex:none}
    .stickyprice{
      margin-right:auto;font-size:17px;font-weight:660;font-variant-numeric:tabular-nums;
    }
    .stickyprice small{
      display:block;font-size:11px;font-weight:500;color:var(--muted);letter-spacing:0;
    }
    .swupdate{bottom:calc(76px + env(safe-area-inset-bottom))}
    .featured{grid-template-columns:1fr}
    .tile{flex-basis:232px}
  }

  /* a payment screen never moves on its own */
  body.no-anim *,body.no-anim *::before,body.no-anim *::after{
    transition:none !important;animation:none !important;
  }

  /* ==========================================================================
     The editorial shelf (Phase C). One product per hairline row, the price set
     as a figure, one action. No posters, no rails — at four products a rail is
     an empty corridor, and a card grid shouts louder than the catalogue.
     ========================================================================== */
  .ed{max-width:none}
  .edhero{
    padding:52px 0 6px;border-bottom:1px solid var(--hair);
    display:grid;grid-template-columns:1fr;gap:8px;
  }
  @media (min-width:900px){
    .edhero{grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr);column-gap:56px;align-items:start}
    .edhero > .eyebrow,.edhero > h1,.edhero > .lede,.edhero > .edsearch{grid-column:1}
    .edhero > .edtrust{grid-column:2;grid-row:1 / span 4;padding-top:34px}
  }
  .edtrust{list-style:none;margin:0;padding:0;display:grid;gap:14px;max-width:46ch}
  .edtrust li{display:grid;gap:2px}
  .edtrust b{font-size:13px;font-weight:600}
  .edtrust span{font-size:12.5px;color:var(--muted)}
  @media (max-width:899px){.edtrust{display:none}}
  .edhero .eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}
  .edhero h1{
    margin:14px 0 0;font-size:clamp(30px,5.6vw,52px);line-height:1.04;
    letter-spacing:-.035em;font-weight:620;
  }
  .edhero .lede{margin-top:16px;max-width:46ch;color:var(--muted);font-size:15px}
  .edsearch{
    margin:26px 0 34px;display:flex;align-items:center;max-width:420px;
    border-bottom:1px solid var(--ink);padding-bottom:2px;
  }
  .edsearch input{
    flex:1;min-width:0;border:0;background:none;font:inherit;font-size:15px;
    padding:9px 2px;outline:none;color:var(--ink);
  }
  .edsearch button{
    border:0;background:none;font:inherit;font-size:13px;font-weight:600;
    color:var(--brand-ink);cursor:pointer;padding:0 4px;
  }
  .plist{list-style:none;margin:0;padding:0;border-top:1px solid var(--hair)}
  .prow{display:flex;align-items:center;gap:18px;padding:22px 0;border-bottom:1px solid var(--hair)}
  .prow .rowmark{
    width:40px;height:40px;flex:none;border-radius:11px;display:grid;place-items:center;
    text-decoration:none;overflow:hidden;
    /* it borrows the card's visual class for the tint; the card's 4:3 poster sizing does
       not belong on a 40px row tile, so it is reset here rather than forked */
    aspect-ratio:auto;border-bottom:0;box-shadow:var(--e1);
  }
  .prow .rowmark .m{
    width:26px;height:26px;border-radius:8px;border:0;box-shadow:none;background:transparent;
  }
  .pinfo{min-width:0;flex:1}
  .rowmark .m{display:grid;place-items:center}
  .rowmark .m svg{width:24px;height:24px}
  .pname{margin:0;font-size:16px;font-weight:560;letter-spacing:-.01em;line-height:1.3}
  .pname a{color:inherit;text-decoration:none}
  .pname a:hover{color:var(--brand-ink)}
  .prow .pmeta{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin-top:5px}
  .pamount{flex:none;text-align:right;min-width:104px}
  .pamount .price{
    font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;
  }
  .pamount small{display:block;margin-top:2px;font-size:12px;color:var(--muted)}
  .prowcta{flex:none}
  .prowcta .btn{height:34px;padding:0 15px;font-size:12.5px;border-radius:var(--r-pill)}
  .prowcta.solid{
    display:inline-flex;align-items:center;font-size:12.5px;color:var(--muted);
    border:1px solid var(--hair);border-radius:var(--r-pill);padding:7px 13px;
  }
  .ednote{margin:26px 0 8px;color:var(--muted);font-size:13.5px;max-width:62ch}
  @media (max-width:520px){
    .edhero{padding:34px 0 4px}
    .prow{gap:12px;padding:16px 0}
    .pamount .price{font-size:14.5px}
    .prowcta .btn{padding:0 12px}
  }
  html[data-mode="dark"] .edsearch{border-bottom-color:var(--ink)}

  /* The listing keeps its structure and borrows the shelf's type scale. */
  .pdp .price-lead{font-size:clamp(24px,4.4vw,32px);letter-spacing:-.03em}
  .pdp h1{letter-spacing:-.035em;font-weight:620}
