:root{
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
  --bar:#000; --bar-ink:#fff;
  --bg:#fff; --surface:#f2f2f2; --ink:#000; --ink-2:#5c5c5c; --line:#dcdcdc;
  --orange:#ff5a00; --on-orange:#000; --danger:#c62828; --ok:#1b7f3b;
  --display:"Bricolage Grotesque","Arial Narrow",Arial,sans-serif;
  --body:"Instrument Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){--bg:#000;--surface:#151515;--ink:#fff;--ink-2:#a8a8a8;--line:#2b2b2b;--danger:#ff6b6b;--ok:#4cc16f}
}
:root[data-theme="dark"]{--bg:#000;--surface:#151515;--ink:#fff;--ink-2:#a8a8a8;--line:#2b2b2b;--danger:#ff6b6b;--ok:#4cc16f}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.5 var(--body);-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:var(--display);letter-spacing:-.02em;line-height:1.05;margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

/* header */
.bar{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--bar);color:var(--bar-ink);display:flex;align-items:center;gap:16px;padding:10px clamp(12px,3vw,32px);flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;background:none;border:0;padding:0}
.brand svg{width:40px;height:40px;flex:none}
.brand-logo-img{height:40px;width:auto;max-width:160px;object-fit:contain;flex:none}
.wm-text{display:flex;flex-direction:column;line-height:1}
.wm-text b{font:800 1.15rem var(--display);letter-spacing:.06em}
.wm-text span{font:600 .6rem var(--body);letter-spacing:.42em;margin-top:4px;opacity:.85}
nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.bar nav{margin-left:10px}
.acct{margin-left:auto;display:flex;align-items:center;gap:8px}
.bar .btn.ghost{color:#fff;border-color:#5a5a5a}
.bar .btn.ghost:hover{border-color:#fff}
.nv{background:none;border:0;color:#fff;padding:8px 12px;border-radius:6px;font-weight:500;position:relative}
.nv:hover{background:#222}
.nv.on{box-shadow:inset 0 -3px 0 var(--orange)}
.badge{background:var(--orange);color:#000;font-size:.72rem;font-weight:700;border-radius:99px;padding:0 6px;margin-left:6px}
.me{display:flex;align-items:center;gap:8px;background:#1a1a1a;color:#fff;border:1px solid #333;border-radius:99px;padding:4px 12px 4px 4px;max-width:190px}
.me .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}
.av{width:28px;height:28px;border-radius:50%;background:var(--orange);color:#000;display:grid;place-items:center;font-weight:700;flex:none}
.notif-bell{position:relative;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:none;border:0;color:#fff;flex:none}
.notif-bell:hover{background:#222}
.notif-bell svg{width:19px;height:19px}
.notif-dot{position:absolute;top:5px;right:6px;width:9px;height:9px;border-radius:50%;background:var(--orange);border:2px solid #000}
.notif-dot.cart-count{width:auto;height:auto;min-width:14px;padding:0 3px;top:1px;right:1px;font-size:.62rem;line-height:14px;font-weight:700;color:#000;text-align:center}
.cart-item{display:flex;align-items:center;gap:8px}
.cart-item span{flex:1}
.cart-item button[data-act="cartRemove"]{font-size:1.1rem;line-height:1;padding:2px 8px;flex:none}
.cart-total{border-top:1px solid var(--line);font-size:.95rem}
/* .notif-panel/#cartPanel sit inside <header class="bar"> only for CSS positioning (see index.html) -- they
   are not part of the dark bar visually, so buttons inside them need to opt back out of .bar .btn.ghost{color:
   #fff}, which otherwise renders white-on-white here. #id selectors keep this correct regardless of the
   stylesheet's rule order. */
#notifPanel .btn.ghost, #cartPanel .btn.ghost{color:var(--ink);border-color:var(--line)}
.notif-panel{position:absolute;top:100%;right:clamp(12px,3vw,32px);z-index:25;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:8px;margin-top:8px;width:340px;max-width:90vw;max-height:420px;overflow-y:auto;box-shadow:0 10px 28px rgba(0,0,0,.28)}
.notif-empty{padding:20px;text-align:center;color:var(--ink-2);font-size:.9rem}
.notif-item{display:block;width:100%;text-align:left;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:none;color:inherit;font-size:.88rem;line-height:1.4;cursor:pointer}
.notif-item:last-child{border-bottom:0}
.notif-item:hover{background:var(--surface)}
.notif-item.unread{border-left:3px solid var(--orange);padding-left:11px}
.notif-time{display:block;color:var(--ink-2);font-size:.78rem;margin-top:3px}

/* buttons and forms */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 18px;border-radius:6px;border:2px solid var(--ink);background:var(--ink);color:var(--bg);font-weight:600;text-decoration:none}
.btn.primary{background:var(--orange);border-color:var(--orange);color:var(--on-orange)}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn.danger{background:transparent;color:var(--danger);border-color:var(--danger)}
.btn.sm{height:34px;padding:0 12px;font-size:.9rem}
.btn:disabled{opacity:.5;cursor:not-allowed}
.like-btn.on{color:var(--orange);border-color:var(--orange)}
.save-menu{position:absolute;top:100%;left:0;z-index:5;background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:12px;margin-top:6px;min-width:230px;max-width:min(320px,80vw);box-shadow:0 6px 20px rgba(0,0,0,.18)}
.save-menu label.chk{margin:4px 0}
label{display:flex;flex-direction:column;gap:4px;font-size:.88rem;color:var(--ink-2);font-weight:500}
input,select,textarea{border:1px solid var(--line);border-radius:6px;background:var(--bg);padding:9px 11px;min-height:40px;color:var(--ink);width:100%}
textarea{min-height:70px;resize:vertical}
label.chk{flex-direction:row;align-items:flex-start;gap:10px;color:var(--ink);font-size:.92rem;font-weight:400}
label.chk input{width:18px;min-height:18px;height:18px;margin-top:3px;accent-color:var(--orange);flex:none}

/* layout */
main{padding:0 clamp(12px,3vw,32px) 64px;max-width:1500px;margin:0 auto}
.seo-landing{padding-top:22px}
.seo-landing h1{font-size:clamp(1.6rem,3.4vw,2.3rem);margin:0 0 8px}
.seo-landing>.hint{margin:0 0 20px;font-size:1rem}
.seo-pager{display:flex;gap:16px;align-items:center;justify-content:center;margin:28px 0 8px;color:var(--ink-2);font-size:.92rem}
.seo-pager a{color:var(--ink);font-weight:600}
.hero{position:relative;background:#0d0d0d;color:#fff;border-radius:14px;padding:clamp(28px,5vw,64px) clamp(20px,4vw,56px);margin:20px 0 22px}
.hero::before{content:"";position:absolute;right:22px;top:22px;width:54px;height:54px;border-top:4px solid var(--orange);border-right:4px solid var(--orange);pointer-events:none;z-index:3}
.hero::after{content:"";position:absolute;left:22px;bottom:22px;width:54px;height:54px;border-bottom:4px solid #2b2b2b;border-left:4px solid #2b2b2b;pointer-events:none;z-index:3}
.hero-bg{position:absolute;inset:0;z-index:0;overflow:hidden;border-radius:14px}
.hero-bg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.06);filter:brightness(1.08);transition:opacity 1.6s ease}
.hero-bg img.on{opacity:1;animation:heroZoom 9s ease-out forwards}
.hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.3) 55%,rgba(0,0,0,.6));z-index:1}
@keyframes heroZoom{from{transform:scale(1.06)}to{transform:scale(1)}}
.hero-content{position:relative;z-index:2}
.hero h1{font-size:clamp(2rem,4.6vw,3.5rem);font-weight:800;max-width:22ch;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.55)}
.hero p{color:#e6e6e6;font-size:1.05rem;margin:14px 0 0;max-width:56ch;text-shadow:0 1px 8px rgba(0,0,0,.7)}
.hero-search{position:relative;z-index:1;display:flex;max-width:820px;margin-top:26px}
.hero-search input{flex:1;min-width:0;height:56px;border:0;border-radius:8px 0 0 8px;padding:0 18px;background:#fff;color:#000;font-size:1.08rem}
.hero-search input::placeholder{color:#6b6b6b}
.hero-search button{height:56px;padding:0 30px;border:0;background:var(--orange);color:var(--on-orange);font-weight:700;font-size:1.05rem;border-radius:0 8px 8px 0}
.hero-search button:hover{filter:brightness(1.1)}
@media (max-width:640px){.hero-search input{height:50px}.hero-search button{height:50px;padding:0 18px}}
.search-suggest{position:absolute;top:100%;left:0;right:0;z-index:6;background:var(--bg);color:var(--ink);border-radius:8px;margin-top:6px;overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.28);text-align:left}
.search-suggest .ss-group{padding:6px}
.search-suggest .ss-label{padding:8px 10px 4px;font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-2)}
.search-suggest button{display:flex;align-items:center;gap:10px;width:100%;height:auto;padding:9px 10px;border:0;border-radius:6px;background:none;color:inherit;font-size:.95rem;text-align:left;cursor:pointer}
.search-suggest button .ss-ic{color:var(--ink-2);flex:0 0 auto}
.search-suggest button:hover,.search-suggest button.on{background:var(--surface)}
.toolbar{display:flex;gap:16px;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:transparent;border-radius:99px;padding:6px 14px;font-size:.9rem}
.chip:hover{border-color:var(--ink)}
.chip.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.tools{display:flex;gap:8px 12px;flex-wrap:wrap}
.tools label{flex-direction:row;align-items:center;gap:8px}
.tools select{width:auto;min-height:34px;padding:4px 8px}
.count{color:var(--ink-2);padding:14px 0 12px;font-size:.92rem}
.grid{columns:250px;column-gap:12px}
.tile{position:relative;display:block;width:100%;margin:0 0 12px;padding:0;border:0;background:var(--surface);break-inside:avoid;overflow:hidden;border-radius:3px;text-align:left;color:#fff;text-decoration:none;transition:box-shadow .3s ease,transform .3s ease;animation:fadeInUp .5s ease both}
.tile:hover,.tile:focus-visible{box-shadow:0 14px 32px rgba(0,0,0,.3);transform:translateY(-2px)}
.tile img{display:block;width:100%;height:auto;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.tile:hover img,.tile:focus-visible img{transform:scale(1.045)}
.tile .cap{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;gap:8px;padding:28px 12px 10px;background:linear-gradient(transparent,rgba(0,0,0,.78));opacity:0;transform:translateY(6px);transition:opacity .25s ease,transform .25s ease}
.tile .cap b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile:hover .cap,.tile:focus-visible .cap{opacity:1;transform:translateY(0)}
@keyframes fadeInUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.tile:nth-child(6n+1){animation-delay:0ms}
.tile:nth-child(6n+2){animation-delay:50ms}
.tile:nth-child(6n+3){animation-delay:100ms}
.tile:nth-child(6n+4){animation-delay:150ms}
.tile:nth-child(6n+5){animation-delay:200ms}
.tile:nth-child(6n+6){animation-delay:250ms}
.vf{position:absolute;inset:18px;pointer-events:none;opacity:0;transition:opacity .15s,inset .15s}
.vf i{position:absolute;width:20px;height:20px;border:0 solid var(--orange)}
.vf i:nth-child(1){top:0;left:0;border-top-width:3px;border-left-width:3px}
.vf i:nth-child(2){top:0;right:0;border-top-width:3px;border-right-width:3px}
.vf i:nth-child(3){bottom:0;right:0;border-bottom-width:3px;border-right-width:3px}
.vf i:nth-child(4){bottom:0;left:0;border-bottom-width:3px;border-left-width:3px}
.tile:hover .vf,.tile:focus-visible .vf{opacity:1;inset:10px}
.free-strip{margin:6px 0 8px}
.free-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px}
.free-head h2{font-size:1.3rem}
/* The main .grid is a multi-column masonry layout, meant for many variable-aspect photos -- with only a
   handful of uniform cards here, its column-balancing leaves whole columns empty (the reported gap). A plain
   single row fits this strip's actual content instead: no gaps, and it never wraps to a second, half-empty line. */
.free-strip .grid{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:14px;scroll-snap-type:x proximity;padding-bottom:4px}
.free-strip .tile{flex:0 0 220px;width:220px;margin:0;scroll-snap-align:start}
.free-strip .tile img{aspect-ratio:4/3;object-fit:cover}
/* column-span:all is load-bearing here: .cat-grid renders inside #grid, which is styled .grid (a CSS multi-column
   masonry container for the photo-tile results). Without it, this nested grid's auto-fill can't get a definite
   width to size its own columns against, so Chrome collapses it to one narrow column and the ancestor's
   multi-column layout re-fragments that single stack by accumulated height instead of by row -- which is what
   was throwing the category cards out of alignment whenever captions wrapped to a different number of lines. */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px;margin:6px 0 32px;column-span:all}
.cat-card{display:block;width:100%;padding:0;border:0;background:none;text-align:left;color:inherit;animation:fadeInUp .5s ease both}
.cat-card:nth-child(4n+1){animation-delay:0ms}
.cat-card:nth-child(4n+2){animation-delay:60ms}
.cat-card:nth-child(4n+3){animation-delay:120ms}
.cat-card:nth-child(4n+4){animation-delay:180ms}
.cat-card img,.cat-ph{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:var(--surface);transition:transform .5s cubic-bezier(.2,.8,.2,1),filter .3s ease}
.cat-ph{background:linear-gradient(135deg,var(--surface),var(--line))}
.cat-card:hover img{filter:brightness(.85);transform:scale(1.035)}
.cat-cap{display:block;margin-top:10px;transition:color .2s ease}
.cat-card:hover .cat-cap b{color:var(--orange)}
.cat-cap b{display:block;font:600 1.05rem var(--display);letter-spacing:-.01em}
.cat-cap span{display:block;color:var(--ink-2);font-size:.86rem;margin-top:3px;line-height:1.4}
.empty{padding:56px 0;max-width:52ch}
.empty h2{font-size:1.8rem;margin-bottom:10px}
.empty p{color:var(--ink-2);margin:0 0 18px}
.note{color:var(--ink-2);padding:24px 0}
.banner{background:var(--surface);border-left:4px solid var(--orange);padding:10px 14px;margin:16px 0;font-size:.92rem}

/* dialog */
dialog{border:0;border-radius:8px;padding:0;background:var(--bg);color:var(--ink);width:min(980px,94vw);max-height:92vh;overflow:auto}
dialog::backdrop{background:rgba(0,0,0,.65)}
.dlg-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);z-index:2}
.dlg-head h2{font-size:1.3rem}
.x{background:none;border:0;font-size:1.6rem;line-height:1;padding:4px 10px;border-radius:6px}
.x:hover{background:var(--surface)}
.dlg-body{padding:18px}
.detail{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:24px}
@media (max-width:760px){.detail{grid-template-columns:1fr}}
.similar{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
.similar h3{margin:0 0 14px}
.pic{position:relative;background:var(--surface);border-radius:4px;overflow:hidden;align-self:start}
.pic img{display:block;width:100%;height:auto}
.zoomable{cursor:zoom-in}
.zoom-hint{position:absolute;left:8px;bottom:8px;background:rgba(0,0,0,.65);color:#fff;font-size:.78rem;padding:3px 9px;border-radius:99px;opacity:0;transition:opacity .15s}
.pic.zoomable:hover .zoom-hint{opacity:1}
td img.zoomable:hover{outline:2px solid var(--orange)}
.zoom-wrap{overflow:auto;max-height:78vh;text-align:center;background:var(--surface);border-radius:4px}
.zoom-img{max-width:100%;height:auto;cursor:zoom-in;display:inline-block}
.zoom-img.full{max-width:none;cursor:zoom-out}
.side h2{font-size:1.7rem;margin-bottom:6px}
.by{color:var(--ink-2);margin:0 0 12px}
.specs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:14px 18px;margin:4px 0 18px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.spec b{display:block;color:var(--ink-2);font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;margin-bottom:3px}
.spec span{font-size:.95rem}
.kw{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px}
.kw button{border:1px solid var(--line);background:transparent;border-radius:99px;padding:3px 11px;font-size:.85rem}
.kw button:hover{border-color:var(--orange)}
.lic{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.lic label{flex-direction:row;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:6px;padding:12px;color:var(--ink);cursor:pointer}
.lic label:has(input:checked){border-color:var(--orange);box-shadow:inset 0 0 0 1px var(--orange)}
.lic input{width:18px;min-height:18px;height:18px;margin-top:3px;accent-color:var(--orange)}
.lic .t{display:flex;justify-content:space-between;gap:12px;font-weight:600}
.lic small{display:block;color:var(--ink-2);font-weight:400;font-size:.84rem;margin-top:2px}
.tag{display:inline-block;background:var(--surface);border-radius:4px;padding:2px 8px;font-size:.8rem;margin-right:6px}
.tag.warn{background:var(--orange);color:#000;font-weight:600}
.terms{font-size:.85rem;color:var(--ink-2);padding-left:18px;margin:8px 0 16px}
.terms li{margin:3px 0}

/* panels */
.page{padding-top:28px}
.page h1{font-size:clamp(1.8rem,4vw,2.6rem);margin-bottom:6px}
.page .sub{color:var(--ink-2);margin:0 0 22px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:24px}
.stat{border:1px solid var(--line);border-radius:6px;padding:14px 16px}
.stat b{display:block;font:700 1.9rem var(--display);letter-spacing:-.02em}
.stat span{color:var(--ink-2);font-size:.88rem}
.clock-widget{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--surface);border-radius:8px;padding:10px 14px;margin:14px 0}
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-bottom:20px;overflow-x:auto}
.tabs button{background:none;border:0;padding:10px 14px;font-weight:500;color:var(--ink-2);white-space:nowrap;border-bottom:3px solid transparent}
.tabs button.on{color:var(--ink);border-bottom-color:var(--orange)}
table{border-collapse:collapse;width:100%;font-size:.92rem}
th{text-align:left;font-weight:600;color:var(--ink-2);padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:10px;border-bottom:1px solid var(--line);vertical-align:middle}
.scroll{overflow-x:auto}
td img{width:56px;height:42px;object-fit:cover;border-radius:3px;display:block;background:var(--surface)}
.st{display:inline-block;padding:2px 9px;border-radius:99px;font-size:.8rem;font-weight:600;background:var(--surface)}
.st.approved,.st.active{color:var(--ok)}
.st.pending{background:var(--orange);color:#000}
.st.rejected,.st.suspended,.st.removed,.st.deleted{color:var(--danger)}
.row-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.drop{border:2px dashed var(--line);border-radius:8px;padding:34px 20px;text-align:center;margin:14px 0}
.drop.over{border-color:var(--orange);background:var(--surface)}
.drop p{margin:0 0 12px;color:var(--ink-2)}
.stg{display:grid;grid-template-columns:120px 1fr auto;gap:14px;border:1px solid var(--line);border-radius:6px;padding:12px;margin-bottom:10px}
.stg img{width:120px;height:90px;object-fit:cover;border-radius:3px}
.stg .thumb-ph{width:120px;height:90px}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.fields .wide{grid-column:1/-1}
.stg .side-c{display:flex;flex-direction:column;gap:8px;align-items:flex-end;font-size:.85rem;color:var(--ink-2)}
@media (max-width:640px){.stg{grid-template-columns:1fr}.stg img,.stg .thumb-ph{width:100%;height:auto;min-height:70px}.stg .side-c{align-items:flex-start}}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;max-width:760px}
.stack{display:flex;flex-direction:column;gap:12px}
.rej{display:flex;gap:6px}
.rej input{min-height:34px;padding:4px 8px}
.review{display:grid;grid-template-columns:200px 1fr;gap:16px;border:1px solid var(--line);border-radius:6px;padding:12px;margin-bottom:12px}
.review img{width:100%;height:auto;border-radius:3px;display:block}
@media (max-width:640px){.review{grid-template-columns:1fr}}
#toasts{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(20px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:8px;z-index:100;align-items:center;pointer-events:none}
.toast{background:#000;color:#fff;border-left:4px solid var(--orange);padding:10px 16px;border-radius:6px;box-shadow:0 6px 24px rgba(0,0,0,.3);max-width:90vw}
.toast.err{border-left-color:#ff5252}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* additions for the deployable site */
.tile img{background:var(--surface)}
.more{display:flex;justify-content:center;padding:24px 0}
.newsletter{background:var(--bar);color:#fff;text-align:center;padding:56px clamp(16px,4vw,32px) 48px;margin-top:40px}
.newsletter h2{font-size:1.8rem;margin:0 0 10px;color:#fff}
.newsletter p{color:#b8b8b8;margin:0 0 24px;font-size:1rem}
.newsletter form{display:flex;max-width:420px;margin:0 auto}
.newsletter input{flex:1;padding:12px 16px;border:0;border-radius:6px 0 0 6px;font:inherit}
.newsletter button{border:0;background:var(--orange);color:var(--on-orange);font-weight:700;padding:0 22px;border-radius:0 6px 6px 0;cursor:pointer}
@media (max-width:480px){.newsletter form{flex-direction:column;gap:10px}.newsletter input,.newsletter button{border-radius:6px;width:100%}}
.footer{background:var(--bar);color:#9a9a9a;margin-top:0}
.footer-top{max-width:1500px;margin:0 auto;padding:52px clamp(12px,3vw,32px) 36px;display:flex;gap:48px;flex-wrap:wrap;justify-content:space-between}
.footer-brand{flex:1 1 240px;max-width:320px}
.footer-brand .brand-mark{display:flex;align-items:center;gap:10px}
.footer-brand svg{width:34px;height:34px;flex:none}
.footer-brand .brand-logo-img{height:34px}
.footer-brand .wm-text{display:flex;flex-direction:column;line-height:1}
.footer-brand .wm-text b{font:800 1.05rem var(--display);color:#fff;letter-spacing:.06em}
.footer-brand .wm-text span{font:600 .55rem var(--body);letter-spacing:.4em;margin-top:4px;color:#9a9a9a}
.footer-tag{margin:16px 0 0;font-size:.88rem;line-height:1.55;color:#8a8a8a;max-width:34ch}
.footer-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,170px));gap:32px;flex:2 1 480px;justify-content:flex-end}
.footer-cols nav{display:flex;flex-direction:column;gap:11px}
.footer-cols h3{margin:0 0 3px;font:700 .72rem var(--body);letter-spacing:.12em;text-transform:uppercase;color:#6e6e6e}
.footer a,.footer .linklike{color:#d4d4d4;font-size:.9rem;text-decoration:none;text-align:left;background:none;border:0;padding:0;cursor:pointer;font-family:inherit;transition:color .15s}
.footer a:hover,.footer .linklike:hover{color:var(--orange)}
.footer-bottom{border-top:1px solid #262626;padding:18px clamp(12px,3vw,32px);max-width:1500px;margin:0 auto;font-size:.8rem;color:#6e6e6e}
@media (max-width:640px){.footer-cols{grid-template-columns:repeat(2,minmax(130px,1fr));flex:1 1 100%}}
.auth-tabs{display:flex;gap:4px;margin-bottom:14px}
.auth-tabs button{flex:1;height:40px;border:1px solid var(--line);background:transparent;border-radius:6px;font-weight:600}
.auth-tabs button.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.err{color:var(--danger);font-size:.9rem;margin:0;min-height:1.3em}
.divider{display:flex;align-items:center;gap:12px;color:var(--ink-2);font-size:.85rem;margin:2px 0}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--surface);padding:8px 12px;border-radius:6px;display:inline-block;user-select:all}
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.filters select,.filters input{width:auto;min-width:160px}
.inline-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.inline-form input{width:110px;min-height:34px;padding:4px 8px}

.by a,.terms a{color:var(--ink)}
@media (max-width:760px){.bar{position:relative}.bar .brand{order:1}.acct{order:2}.bar nav{order:3;width:100%;margin-left:0}}

/* announcement, cookie banner, maintenance */
.announce{background:var(--orange);color:#000;text-align:center;padding:8px 16px;font-weight:600;font-size:.95rem}
.consent{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:60;max-width:720px;margin:0 auto;background:#000;color:#fff;border:1px solid #333;border-left:4px solid var(--orange);border-radius:8px;padding:14px 16px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;box-shadow:0 8px 32px rgba(0,0,0,.4)}
.consent p{margin:0;flex:1 1 260px;font-size:.92rem}
.consent a{color:#fff}
.consent .btn.ghost{color:#fff;border-color:#555}

/* segmented controls, KPIs and charts */
.seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.seg button{background:transparent;border:0;padding:7px 14px;font-weight:500;color:var(--ink-2)}
.seg button+button{border-left:1px solid var(--line)}
.seg button.on{background:var(--ink);color:var(--bg)}
.bar-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:18px}
.kpi{border:1px solid var(--line);border-radius:6px;padding:12px 14px;text-align:left;background:transparent;color:inherit}
button.kpi{cursor:pointer}
button.kpi.on{border-color:var(--orange);box-shadow:inset 0 0 0 1px var(--orange)}
.kpi b{display:block;font:700 1.6rem var(--display);letter-spacing:-.02em}
.kpi span{color:var(--ink-2);font-size:.86rem}
.chart{border:1px solid var(--line);border-radius:8px;padding:14px 10px 6px;margin-bottom:22px}
.chart svg{display:block;width:100%;height:auto}
.chart .axis{fill:var(--ink-2);font:12px var(--body)}
.chart .grid{stroke:var(--line);stroke-width:1}
.chart .col{fill:var(--orange)}
.chart .col:hover{fill:var(--ink)}
.chart .none{fill:var(--ink-2);font:14px var(--body)}
.two-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:22px}
.two-col h3{font-size:1.1rem;margin-bottom:8px}
.sub-tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin:4px 0 20px;overflow-x:auto}
.sub-tabs button{background:none;border:0;padding:9px 14px;font-weight:500;color:var(--ink-2);white-space:nowrap;border-bottom:3px solid transparent}
.sub-tabs button.on{color:var(--ink);border-bottom-color:var(--orange)}
.card{border:1px solid var(--line);border-radius:8px;padding:16px 18px;margin-bottom:18px}
.card h3{font-size:1.1rem;margin-bottom:6px}
.price-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin:20px 0}
.price-card{margin:0;display:flex;flex-direction:column}
.price-amount{font:700 1.7rem var(--display);margin:2px 0 14px;display:flex;align-items:baseline;gap:6px}
.price-amount span{font:400 .8rem var(--body);color:var(--ink-2)}
.price-rows{list-style:none;margin:2px 0 14px;padding:0}
.price-rows li{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:1.02rem;border-bottom:1px solid var(--line)}
.price-rows li:last-child{border-bottom:0}
.price-rows b{font:700 1rem var(--display)}
.price-list{margin:0 0 16px;padding-left:18px;color:var(--ink-2);font-size:.9rem;line-height:1.6;flex:1}
.price-card .btn{align-self:flex-start}
.copy-row{display:flex;gap:8px;align-items:center}
.copy-row input{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88rem}
.badge-pill{display:inline-block;padding:2px 10px;border-radius:99px;font-size:.8rem;font-weight:600;background:var(--surface)}
.badge-pill.ok{color:var(--ok)}
.badge-pill.warn{background:var(--orange);color:#000}
.badge-pill.bad{color:var(--danger)}
.meter{height:10px;background:var(--surface);border-radius:99px;overflow:hidden;margin:8px 0}
.meter i{display:block;height:100%;background:var(--orange)}
.hint{color:var(--ink-2);font-size:.86rem;margin:2px 0 0}

/* admin settings: menu on the left, form on the right */
.settings{display:grid;grid-template-columns:270px minmax(0,1fr);gap:32px;align-items:start}
.snav{border:1px solid var(--line);border-radius:8px;overflow:hidden;position:sticky;top:12px}
.snav button{display:flex;align-items:center;gap:14px;width:100%;padding:13px 16px;background:transparent;border:0;border-bottom:1px solid var(--line);text-align:left;font-size:1rem;color:var(--ink)}
.snav button:last-child{border-bottom:0}
.snav button:hover{background:var(--surface)}
.snav button.on{background:var(--surface);box-shadow:inset 3px 0 0 var(--orange);font-weight:600}
.snav svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.spanel{min-width:0}
.spanel>h2{font-size:1.6rem;margin-bottom:6px}
.spanel>.sub{color:var(--ink-2);margin:0 0 20px;max-width:64ch}
.form-stack{display:flex;flex-direction:column;gap:14px;max-width:640px}
.form-stack .row2{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.sect-title{font-size:1rem;font-weight:600;margin:10px 0 0}
@media (max-width:860px){
  .settings{grid-template-columns:1fr;gap:18px}
  .snav{position:static;display:flex;overflow-x:auto}
  .snav button{width:auto;white-space:nowrap;border-bottom:0;border-right:1px solid var(--line);padding:11px 14px}
  .snav button.on{box-shadow:inset 0 -3px 0 var(--orange)}
}
.maint{max-width:52ch;padding:80px 0}
.maint h1{font-size:2.4rem;margin-bottom:10px}
.maint p{color:var(--ink-2)}

/* type labels, contributor forms, releases */
.tile-tags{position:absolute;top:8px;right:8px;display:flex;flex-direction:column;gap:4px;align-items:flex-end;z-index:2}
.type-tag{background:var(--ink);color:var(--bg);font:700 .72rem var(--body);padding:2px 7px;border-radius:99px;letter-spacing:.03em}
.type-tag.video{background:var(--ok);color:#fff}
.type-tag.free{background:var(--orange);color:#000}
.type-tag.ai{background:var(--orange);color:#000}
.linklike{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
.stg .fields .chk.wide,.stg .fields .hint.wide{grid-column:1/-1}
.form-stack select,.form-stack input[type=date]{width:100%}
.cert{background:var(--surface);border-left:4px solid var(--orange);padding:10px 14px;font-size:.9rem;margin:0}
.who{display:grid;grid-template-columns:minmax(140px,220px) 1fr;gap:6px 16px;margin:0 0 14px}
.who dt{color:var(--ink-2)}
.who dd{margin:0;overflow-wrap:anywhere}
[hidden]{display:none !important}

/* mega menu host: no box of its own, so the menu can stick to the top of the page under the header */
#megamenu{display:contents}
#megamenu[hidden]{display:none}

/* image codes */
.mono,.tag.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.02em}
b.mono{font-weight:700}

/* timeline chart */
.chart .tl-line{fill:none;stroke:var(--orange);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.chart .tl-area{fill:var(--orange);opacity:.14}
.chart .tl-dot{fill:var(--bg);stroke:var(--orange);stroke-width:2}
.chart .tl-dot.has{fill:var(--orange)}
.chart .tl-hit{fill:transparent;cursor:default}
.chart .tl-hit:hover{fill:rgba(255,90,0,.18)}
.delta{display:block;margin-top:3px;font-size:.78rem;font-weight:600}
.delta.up{color:var(--ok)}.delta.down{color:var(--danger)}.delta.flat{color:var(--ink-2)}
