/* Slice 6 part 1 (17 Nov 2026): the kit layer over the Universe, board R3-1 (K1 header, K2 search). Only in the
   VIALO_KIT_UNIVERSE=1 build (build_site.sh removes this file and its link otherwise). The live WebGL universe is not
   touched: this file styles only what sits on top of it (header, search, hint, star sheet, tabs).
   The universe stays dark in light mode; the search list and the star sheet follow the theme (html[data-ksh=light]). */
@font-face{font-family:Inter;src:url(/fonts/Inter-Medium.woff2) format("woff2");font-weight:500;font-display:swap}
:root{
  --kbg:#05060f;--ksurf:#121a32;--kline:#1e2447;--kink:#f6f3ee;--kink2:#e7e7ea;--kmute:#a3a6c2;
  --kstage:#d9d5ce;--kstage-p:#ccc8c1;--kgreen:#5fd394;--kbuy:#f6f3ee;--konbuy:#05060f;--kbuy-p:#e2ded7;
  --ksans:Satoshi,system-ui,-apple-system,'Segoe UI',sans-serif;--kdata:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;
}
html[data-ksh=light]{
  --kbg:#f6f3ee;--ksurf:#ffffff;--kline:#d9d5cc;--kink:#05060f;--kink2:#1c2036;--kmute:#4a4d66;
  --kstage:#ebe7e0;--kstage-p:#dedad3;--kgreen:#1f8a57;--kbuy:#05060f;--konbuy:#f6f3ee;--kbuy-p:#23273d;
}
html,html *{-webkit-tap-highlight-color:transparent}

/* ---- header (K1): the same header as every page, at 72% deep space over the universe. No Browse / Scent map switch,
   no Shop list, no text Sign in: alerts + account icons like the rest of the site. No blur (cheaper over the WebGL canvas). */
header{z-index:6;height:auto;padding:0;gap:0;background:rgba(5,6,15,.72);-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:0;flex-wrap:wrap;align-items:center}
header .logo{order:1;height:56px;padding-left:16px;gap:8px;margin-right:auto}
header .logo .m{height:24px}header .logo .w{display:block;height:19px}
header .kicons{order:3;display:flex;padding-right:6px}
header .ico{width:44px;height:44px;display:grid;place-items:center;color:#f6f3ee;text-decoration:none;border-radius:3px}
header .ico:active{transform:scale(.97)}
#listbtn,#soonuni,#acctbtn,#helpbtn,#vg-hint,#panel{display:none !important}
.legend{display:none !important}   /* board R3-1: no legend line */
/* C180 (his call 17 Nov late): the family chips are useful. Desktop: the chip row as before. Phone: one "Filter" button
   next to the search, the chips open in a small sheet (they were in the way as a row over the universe). */
.chip{border-radius:3px;font:500 13px/18px var(--ksans)}
#kfbtn,#kfbg,#chips .kfh{display:none}
header .searchwrap{order:4;flex:0 0 100%;max-width:none;padding:0 16px 12px;position:relative}
label.kfield{height:50px;display:flex;align-items:center;gap:10px;padding:0 4px 0 14px;border:1px solid #1e2447;border-radius:3px;background:rgba(18,26,50,.92);color:#a3a6c2;box-sizing:border-box;cursor:text}
label.kfield:focus-within{border-color:#f6f3ee;box-shadow:inset 0 0 0 .5px #f6f3ee}
label.kfield>svg{flex:none}
label.kfield #q{flex:1;min-width:0;height:auto;padding:0;border:0;border-radius:0;background:none;outline:0;color:#f6f3ee;font:400 16px/20px var(--kdata);-webkit-appearance:none;appearance:none}
label.kfield #q::placeholder{color:#a3a6c2}
label.kfield #q::-webkit-search-cancel-button,label.kfield #q::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
.kclear{width:40px;height:40px;flex:none;display:grid;place-items:center;padding:0;border:0;background:none;color:#a3a6c2;cursor:pointer}
.kclear[hidden]{display:none}

/* ---- search suggestions (K2): bottle on the stage, name, house, "from" price; follows the theme */
#res.kslist{left:16px;right:16px;top:58px;max-height:min(520px,calc(100dvh - 200px));background:var(--kbg);border:1px solid var(--kline);border-radius:3px;padding:4px 0;overflow:hidden auto;overscroll-behavior:contain;box-shadow:0 18px 40px rgba(0,0,0,.45);z-index:7;color:var(--kink)}
html[data-ksh=light] #res.kslist{box-shadow:0 18px 40px rgba(5,6,15,.25)}
#res.kslist a{display:flex;align-items:center;gap:12px;min-height:68px;padding:0 16px;color:var(--kink);text-decoration:none}
#res.kslist a.on{background:var(--ksurf)}
@media (hover:hover) and (pointer:fine){#res.kslist a:hover{background:var(--ksurf)}}
.kslist .ksec{padding:16px 16px 4px;font:500 13px/18px var(--kdata);color:var(--kmute)}
.kslist .ksp{width:44px;flex:none;aspect-ratio:4/5;border-radius:4px;background:var(--kstage);display:flex;align-items:center;justify-content:center;overflow:hidden}
.kslist .ksp img{width:100%;height:auto;display:block;mix-blend-mode:multiply}
.kslist .ksp.none{background:#05060f;border:1px solid var(--kline)}
.kslist .kstar{width:7px;height:7px;border-radius:50%;opacity:.75;box-shadow:0 0 8px currentColor}
.kslist .ksn{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.kslist .ksn b{font:500 15px/20px var(--ksans);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#res.kslist .ksn small{margin:0;font:400 13px/18px var(--kdata);color:var(--kmute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kslist .ksr{display:flex;flex-direction:column;align-items:flex-end;flex:none;max-width:38%;text-align:right}
#res.kslist .ksr small{margin:0;font:400 12px/16px var(--kdata);color:var(--kmute)}
.kslist .ksr b{font:700 16px/20px var(--ksans);font-variant-numeric:tabular-nums}
.kslist .kns{font:400 12px/16px var(--kdata);color:var(--kmute)}
#res.kslist a.ksh{min-height:56px}
.kslist .ksi{width:44px;height:44px;flex:none;border-radius:50%;border:1px solid var(--kline);display:grid;place-items:center;font:500 14px/18px var(--ksans);color:var(--kink)}
.kslist .ksmsg{padding:16px 16px 4px;font:400 15px/20px var(--kdata);color:var(--kmute)}
.kslist .ksmsg b{font:500 15px/20px var(--ksans);color:var(--kink)}

/* ---- the hint line (board R3-1), until the first touch */
#khint{position:absolute;left:16px;right:16px;bottom:calc(var(--tab) + env(safe-area-inset-bottom) + 20px);z-index:3;display:flex;justify-content:center;pointer-events:none;transition:opacity .4s ease}
#khint span{font:400 13px/18px var(--kdata);color:#e7e7ea;background:rgba(18,26,50,.92);border:1px solid #1e2447;border-radius:3px;padding:8px 12px;text-align:center}
#khint .kd{display:none}
#khint.gone{opacity:0}

/* ---- bottom tabs (phone), kit look */
.tabs{background:#05060f;-webkit-backdrop-filter:none;backdrop-filter:none;border-top-color:#1e2447}
.tabs a{font:500 11px/14px var(--ksans);gap:3px;color:#a3a6c2}
.tabs a.on{color:#f6f3ee}.tabs a.on svg{fill:none}
.tabs svg{width:22px;height:22px}

/* ---- the star sheet: follows the theme, the universe behind it stays dark */
#ksheet{position:fixed;z-index:30;left:0;right:0;bottom:0;height:88dvh;background:var(--kbg);color:var(--kink);border-radius:16px 16px 0 0;padding:10px 16px calc(24px + env(safe-area-inset-bottom));overflow:hidden;overscroll-behavior:contain;box-shadow:0 -12px 40px rgba(0,0,0,.45);font-family:var(--ksans);transform:translateY(calc(88dvh - var(--kpeek,300px)));transition:transform .3s cubic-bezier(.2,.8,.2,1);outline:0}
#ksheet:not(.full){touch-action:none}
#ksheet.full{transform:none;overflow:hidden auto;touch-action:pan-y}
#ksheet .kgrip{cursor:pointer}
#ksheet[hidden]{display:none}
#ksheet .kgrip{display:block;width:36px;height:4px;border-radius:2px;background:var(--kline);margin:0 auto 12px}
#ksheet .kx{position:absolute;right:6px;top:6px;width:44px;height:44px;display:grid;place-items:center;border:0;background:none;color:var(--kmute);cursor:pointer;padding:0}
#ksheet .kbody{display:flex;flex-direction:column;gap:12px}
#ksheet .ktop{display:flex;gap:14px;padding-right:36px}
#ksheet .kst{width:84px;flex:none;aspect-ratio:4/5;border-radius:8px;background:var(--kstage);display:flex;align-items:center;overflow:hidden}
#ksheet .kst img,#ksheet .kst2 img{width:100%;height:auto;display:block;mix-blend-mode:multiply}
#ksheet .kmeta{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
#ksheet .ksub{display:flex;align-items:center;gap:6px;font:400 13px/18px var(--kdata);color:var(--kmute)}
#ksheet .kdot{width:8px;height:8px;border-radius:50%;flex:none}
#ksheet .knm{margin:0;font:500 22px/28px var(--ksans);color:var(--kink)}
#ksheet .kpr{font:700 20px/24px var(--ksans);font-variant-numeric:tabular-nums}
#ksheet .kact{display:flex;gap:10px}
#ksheet .kbuy{flex:1;height:52px;display:flex;align-items:center;justify-content:center;border-radius:3px;background:var(--kbuy);color:var(--konbuy);font:700 16px/20px var(--ksans);text-decoration:none;padding:0 12px;text-align:center}
#ksheet .kbuy:active{background:var(--kbuy-p);transform:scale(.97)}
#ksheet .kall,#ksheet .kbell{height:52px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;border:1px solid var(--kline);border-radius:3px;background:none;color:var(--kink);font:500 15px/20px var(--ksans);text-decoration:none;cursor:pointer;flex:none}
#ksheet .kbell{height:44px;width:100%}
#ksheet .kbell:disabled{color:var(--kmute);cursor:default}
#ksheet .kall:active,#ksheet .kbell:active{transform:scale(.97)}
#ksheet .klbl{margin:4px 0 0;font:500 15px/20px var(--ksans);color:var(--kink)}
#ksheet .ktxt{margin:0;font:400 15px/22px var(--kdata);color:var(--kink2)}
#ksheet .krows{display:flex;flex-direction:column}
#ksheet .krow{display:flex;align-items:center;gap:12px;min-height:60px;width:100%;padding:6px 0;border:0;border-top:1px solid var(--kline);background:none;color:var(--kink);text-align:left;cursor:pointer;font-family:inherit}
#ksheet .kst2{width:40px;flex:none;aspect-ratio:4/5;border-radius:4px;background:var(--kstage);display:flex;align-items:center;overflow:hidden}
#ksheet .kn{flex:1;min-width:0;display:flex;flex-direction:column}
#ksheet .kn b{font:500 14px/20px var(--ksans)}
#ksheet .kn small{font:400 12px/16px var(--kdata);color:var(--kmute)}
#ksheet .kr{display:flex;flex-direction:column;align-items:flex-end;flex:none}
#ksheet .kr b{font:700 15px/20px var(--ksans);font-variant-numeric:tabular-nums}
#ksheet .kless{font:500 12px/16px var(--kdata);color:var(--kgreen)}
#ksheet .sk-row{height:60px;margin:0;border-top:1px solid var(--kline);border-radius:0}
html[data-ksh=light] #ksheet .sk{background:linear-gradient(90deg,#ebe7e0 0,#f3f0ea 50%,#ebe7e0 100%);background-size:200% 100%}
@media (hover:hover) and (pointer:fine){#ksheet .krow:hover b{text-decoration:underline;text-underline-offset:3px}}

@media (max-width:767px){
  header{padding-top:env(safe-area-inset-top)}
  header .dnav{display:none}
  #khint .kp{display:inline}
  header .searchwrap{display:flex;gap:8px}
  header .searchwrap label.kfield{flex:1;min-width:0}
  #kfbtn{display:flex;flex:none;align-items:center;gap:8px;height:50px;padding:0 14px;border:1px solid #1e2447;border-radius:3px;background:rgba(18,26,50,.92);color:#f6f3ee;font:500 14px/20px var(--ksans);cursor:pointer;box-sizing:border-box}
  #kfbtn:active{transform:scale(.97)}
  #kfbtn.on{border-color:#f6f3ee}
  #kfbtn i{width:8px;height:8px;border-radius:50%;background:#f6f3ee}
  #kfbtn i[hidden]{display:none}
  #chips{display:none !important}
  body.kfopen #chips{display:flex !important;position:fixed;z-index:41;left:0;right:0;top:auto;bottom:0;flex-wrap:wrap;gap:8px;overflow:visible;padding:8px 16px calc(20px + env(safe-area-inset-bottom));background:#05060f;border-top:1px solid #1e2447;border-radius:16px 16px 0 0;box-shadow:0 -12px 40px rgba(0,0,0,.45);-webkit-mask-image:none;mask-image:none}
  body.kfopen #chips .kfh{display:flex;flex:0 0 100%;align-items:center;justify-content:space-between;min-height:44px;font:500 15px/20px var(--ksans);color:#f6f3ee}
  #chips .kfh button{height:44px;padding:0 4px;border:0;background:none;color:#f6f3ee;font:500 14px/20px var(--ksans);text-decoration:underline;text-underline-offset:4px;cursor:pointer}
  body.kfopen #kfbg{display:block;position:fixed;inset:0;z-index:40;background:rgba(5,6,15,.35)}
}
@media (min-width:768px){
  header{height:68px;flex-wrap:nowrap;gap:24px;padding:0 16px 0 24px}
  header .logo{order:0;height:68px;padding:0;margin:0}
  header .logo .m{height:28px}header .logo .w{height:22px}
  header .dnav{order:1;display:flex}
  header .dnav a.on{box-shadow:none;color:#f6f3ee}
  header .searchwrap{order:2;flex:0 1 420px;margin-left:auto;padding:0}
  header .kicons{order:3;padding:0}
  #res.kslist{left:0;right:0;top:56px;max-height:min(560px,calc(100dvh - 120px))}
  #khint{bottom:32px}
  #chips{bottom:32px}
  body.ksel #chips{right:480px}
  #khint .kp{display:none}#khint .kd{display:inline}
  #ksheet{top:68px;height:auto;left:auto;width:440px;border-radius:0;border-left:1px solid var(--kline);padding:24px 28px 40px;box-shadow:none;transform:none;overflow:hidden auto}
  #ksheet .kgrip{display:none}
  #ksheet .kx{right:12px;top:12px}
  #ksheet .kst{width:120px}
  #ksheet .knm{font-size:26px;line-height:32px}
  #ksheet .kpr{font-size:24px;line-height:30px}
}

/* ---- the fuller star panel (his ask after the first preview): sizes, what it smells like, best worn, actions, closest */
#ksheet .kmeta .ktxt{margin-top:6px;font-size:14px;line-height:20px}
#ksheet .ksz{display:flex;flex-wrap:wrap;gap:8px}
#ksheet .kszb{min-width:76px;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:0 10px;border:1px solid var(--kline);border-radius:3px;background:none;color:var(--kink);font-family:inherit;cursor:pointer}
#ksheet .kszb b{font:500 14px/18px var(--ksans)}#ksheet .kszb small{font:400 12px/16px var(--kdata);color:var(--kmute);font-variant-numeric:tabular-nums}
#ksheet .kszb.on{border-color:var(--kink);box-shadow:inset 0 0 0 .5px var(--kink)}
#ksheet .kszb:active{transform:scale(.97)}
#ksheet .kmore-body{display:flex;flex-direction:column;gap:12px;margin-top:8px;padding-top:16px;border-top:1px solid var(--kline)}
#ksheet .kacc{display:flex;flex-direction:column;gap:8px}
#ksheet .kbar{display:flex;gap:4px;width:100%}#ksheet .kbar span{height:10px;border-radius:5px}
#ksheet .kaw{display:flex;flex-wrap:wrap;gap:4px 16px;font:500 14px/20px var(--ksans)}
#ksheet .knotes{display:flex;flex-direction:column;gap:8px}
#ksheet .kng{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
#ksheet .knt{display:flex;align-items:center;gap:8px;font:400 14px/20px var(--kdata);color:var(--kink2);min-width:0}
#ksheet .knt svg{flex:none}
#ksheet .kmore{font:500 14px/20px var(--ksans);color:var(--kink);text-decoration:underline;text-underline-offset:4px;align-self:flex-start}
#ksheet .kf-worn{display:flex;flex-direction:column;gap:12px;margin-top:4px}
#ksheet .kf-icons{display:flex;align-items:flex-start;gap:2px}
#ksheet .kf-si{display:flex;flex-direction:column;align-items:center;gap:4px;width:50px;font:400 12px/16px var(--kdata);color:var(--kmute)}
#ksheet .kf-si svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#ksheet .kf-si.off svg{opacity:.4}#ksheet .kf-si.on{color:var(--kink);font-weight:500}
#ksheet .kf-sep{width:1px;align-self:stretch;background:var(--kline);margin:0 4px}
#ksheet .kf-meters{display:flex;gap:40px}
#ksheet .kf-meter{display:flex;flex-direction:column;gap:4px}
#ksheet .kf-ml{font:500 13px/18px var(--kdata);color:var(--kmute)}
#ksheet .kf-mv{display:flex;align-items:center;gap:8px;font:500 15px/20px var(--ksans);color:var(--kink)}
#ksheet .kf-mv svg{flex:none;overflow:visible}
#ksheet .kacts{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:4px 0;padding:8px 0;border-top:1px solid var(--kline);border-bottom:1px solid var(--kline)}
#ksheet .kab{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:56px;padding:6px 2px;border:0;background:none;color:var(--kink);font:500 12px/16px var(--ksans);cursor:pointer;text-align:center}
#ksheet .kab.on{color:var(--kink)}#ksheet .kab.ksave.on svg{fill:#e5484d;stroke:#e5484d}#ksheet .kab.kown.on svg,#ksheet .kab.kalert.on svg{fill:currentColor;fill-opacity:.15}
#ksheet .kab:active{transform:scale(.97)}
#ksheet .krow.dim .kn b{color:var(--kmute);font-weight:400}
#ksheet .kst.none,#ksheet .kst2.none{background:#05060f;border:1px solid var(--kline);justify-content:center}
#ksheet .kst.none{justify-content:center}#ksheet .kst.none .kstar{width:10px;height:10px}
#ksheet .kstar{width:7px;height:7px;border-radius:50%;opacity:.8;box-shadow:0 0 8px currentColor}
#ksheet .kns{font:400 12px/16px var(--kdata);color:var(--kmute)}
