/* iChill 0.0.5 — one interface for every screen: watch → phone → laptop → TV */
:root {
  --bg: #FFFBEA; --bg2: #FFF3BF; --card: #FFFFFF; --ink: #141414; --muted: #5f5b4f; --line: #141414;
  --yellow: #FFD21F; --green: #16A34A; --knob: #22C55E; --red: #C2410C; --blue: #2563EB;
  --soft: rgba(20,20,20,.07); --shadow: 3px 3px 0 var(--line); --r: 16px; --gap: 16px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121210; --bg2: #1d1b14; --card: #1b1a17; --ink: #F5F1E3; --muted: #aaa48f; --line: #F5F1E3;
  --soft: rgba(255,255,255,.08); --shadow: 3px 3px 0 #000; color-scheme: dark;
}
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--font); min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .7em; }
small, .muted { color: var(--muted); }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; word-break: break-all; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

/* ---------- shell ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--yellow); border-bottom: 2px solid #141414; color: #141414; }
.top .in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.25rem var(--display); }
.brand svg { width: 38px; height: 38px; }
.nav { display: flex; gap: 4px; margin-left: 12px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 7px 12px; border-radius: 999px; font-weight: 600; }
.nav a.on, .nav a:hover { background: #141414; color: var(--yellow); }
.grow { flex: 1; }
.mode { display: flex; border: 2px solid #141414; border-radius: 999px; overflow: hidden; background: #fff; }
.mode a { padding: 5px 12px; text-decoration: none; font-weight: 700; font-size: .9rem; }
.mode a.on { background: #141414; color: var(--yellow); }
.iconbtn { position: relative; border: 2px solid #141414; background: #fff; border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; text-decoration: none; font-size: 1.1rem; }
.badge { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #141414; }
main { max-width: 1280px; margin: 0 auto; padding: 22px 18px 110px; }
.bottom { display: none; }
footer.foot { max-width: 1280px; margin: 0 auto; padding: 24px 18px 120px; color: var(--muted); font-size: .85rem; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-top: 1px dashed var(--soft); }
footer.foot svg { width: 34px; height: 34px; flex: none; }

/* ---------- pieces ---------- */
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
.sp { height: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid #141414; background: var(--yellow); color: #141414; font-weight: 750; padding: 10px 16px; border-radius: 12px; cursor: pointer; text-decoration: none; box-shadow: 2px 2px 0 #141414; transition: transform .06s; min-height: 44px; }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn.ink { background: #141414; color: var(--yellow); }
.btn.go { background: var(--knob); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.danger { background: #fff; color: var(--red); border-color: var(--red); box-shadow: none; }
.btn.sm { padding: 6px 10px; min-height: 34px; font-size: .9rem; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .8rem; font-weight: 700; white-space: nowrap; background: var(--card); }
.chip.owned { background: var(--knob); color: #0b2e15; border-color: #0b2e15; }
.chip.trial { background: #DBEAFE; color: #1e3a8a; border-color: #1e3a8a; }
.chip.soon { background: var(--bg2); }
.chip.warn { background: #FFEDD5; color: #7c2d12; border-color: #7c2d12; }
.chip.off { opacity: .6; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.chips button { border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.chips button.on { background: var(--ink); color: var(--bg); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=search], input[type=date], select, textarea {
  width: 100%; border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 12px; min-height: 44px; }
textarea { min-height: 110px; resize: vertical; }
label.f { display: block; font-weight: 650; font-size: .92rem; }
label.f > span { display: block; margin-bottom: 4px; }
label.f small { display: block; font-weight: 400; margin-top: 3px; }
.fgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.err { background: #FEE2E2; color: #7f1d1d; border: 2px solid #7f1d1d; border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.ok { background: #DCFCE7; color: #14532d; border: 2px solid #14532d; border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.note { background: var(--bg2); border: 2px dashed var(--line); border-radius: 12px; padding: 12px 14px; }
table.t { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.t th, table.t td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--soft); vertical-align: top; }
table.t th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.scroll { overflow-x: auto; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
hr.d { border: 0; border-top: 2px dashed var(--soft); margin: 18px 0; }

/* switch (the iChill toggle) */
.sw { --w: 64px; position: relative; width: var(--w); height: calc(var(--w) * .52); border-radius: 999px; background: #141414; border: 2px solid #141414; display: inline-block; flex: none; }
.sw::after { content: "i"; position: absolute; top: 50%; left: 4%; transform: translateY(-50%); width: 42%; aspect-ratio: 1; border-radius: 50%; background: #9ca3af; color: #141414; font: 900 calc(var(--w) * .26) / 1 Georgia, serif; display: grid; place-items: center; transition: left .5s cubic-bezier(.5,1.6,.4,1), background .3s; }
.sw.on::after { left: 54%; background: var(--knob); }

/* ---------- shop ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: center; background: var(--yellow); color: #141414; border: 2px solid #141414; border-radius: 26px; padding: clamp(18px, 4vw, 40px); box-shadow: 5px 5px 0 #141414; margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 4.2rem); }
.hero .sw { --w: clamp(110px, 18vw, 220px); }
.hero .art { display: grid; place-items: center; gap: 12px; text-align: center; font-weight: 700; }
.hero .lead { font-size: 1.15rem; max-width: 34em; }
.status { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-bottom: 22px; }
.status .card { padding: 14px 16px; }
.meter { height: 10px; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--card); margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--knob); }
.tile { display: flex; flex-direction: column; gap: 10px; position: relative; text-decoration: none; }
.tile .head { display: flex; gap: 12px; align-items: center; }
.glyph { width: 52px; height: 52px; border-radius: 14px; border: 2px solid #141414; display: grid; place-items: center; color: #fff; font: 900 1.5rem var(--display); flex: none; }
.glyph.big { width: 88px; height: 88px; font-size: 2.6rem; border-radius: 22px; }
.tile .name { font: 800 1.08rem var(--display); }
.tile .tag { color: var(--muted); font-size: .92rem; min-height: 2.6em; }
.tile .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.price { font: 800 1.2rem var(--display); }
.price s { font-weight: 500; color: var(--muted); font-size: .85em; margin-right: 4px; }
.sect { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 30px 0 12px; flex-wrap: wrap; }
.offers { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.offers .card h3 { display: flex; align-items: center; gap: 8px; }
.pkg { display: flex; flex-direction: column; gap: 10px; }
.pkg.hl { background: #141414; color: #FFFBEA; }
.pkg.hl .muted { color: #cfc8ad; }
.pkg .save { font-weight: 800; color: var(--green); }
.pkg.hl .save { color: var(--knob); }
.pkg ul { margin: 0; padding-left: 18px; }
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.eds { display: grid; gap: 10px; }
.ed { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; flex-wrap: wrap; }
.pickgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.pick { display: flex; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; background: var(--card); }
.pick.on { background: var(--knob); color: #0b2e15; }
.methods { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.method { text-align: left; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.method.on { background: var(--yellow); color: #141414; box-shadow: var(--shadow); }
.method b { font-size: 1rem; }
.pay { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.qr { background: #fff; border: 2px solid #141414; border-radius: 16px; padding: 10px; width: 240px; }
.qr svg { width: 100%; height: auto; display: block; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; align-items: baseline; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; font-weight: 650; }
.copy { cursor: pointer; border-bottom: 1px dashed currentColor; }
.big { font: 850 clamp(1.6rem, 4vw, 2.4rem) var(--display); }
.count { font-variant-numeric: tabular-nums; }
.msg { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--soft); text-decoration: none; }
.msg.unread b::before { content: "● "; color: var(--green); }
.receipt { max-width: 640px; }

/* ---------- auth ---------- */
.auth { max-width: 980px; margin: 4vh auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.auth .pitch { background: var(--yellow); color: #141414; border: 2px solid #141414; border-radius: 26px; padding: 30px; box-shadow: 5px 5px 0 #141414; }
.auth .pitch .sw { --w: 140px; margin: 10px 0 18px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button { flex: 1; border: 2px solid var(--line); background: var(--card); padding: 9px; border-radius: 12px; font-weight: 750; cursor: pointer; }
.tabs button.on { background: var(--ink); color: var(--bg); }
.code { font: 800 1.4rem ui-monospace, Consolas, monospace; letter-spacing: .08em; background: var(--yellow); color: #141414; padding: 12px 16px; border: 2px dashed #141414; border-radius: 12px; text-align: center; }

/* ---------- founder ---------- */
.gate { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.side { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 4px; }
.side a { text-decoration: none; padding: 9px 12px; border-radius: 12px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.side a.on { background: var(--ink); color: var(--bg); }
.side a:hover:not(.on) { background: var(--soft); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.kpis .card { padding: 12px 14px; }
.kpis .card > small, .kpis .card > b { display: block; }
.kpis .card > b { font: 800 1.35rem var(--display); overflow-wrap: anywhere; }
.kpi { padding: 14px; }
.kpi .v { font: 850 1.65rem var(--display); font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: .85rem; font-weight: 600; }
.chillmeter { background: #141414; color: #FFFBEA; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.chillmeter .v { font: 900 2.4rem var(--display); color: var(--knob); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 10px; }
.bars div { flex: 1; background: var(--yellow); border: 1.5px solid var(--line); border-bottom: 0; border-radius: 5px 5px 0 0; min-height: 2px; position: relative; }
.bars div.zero { background: var(--soft); border-color: transparent; }
.axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); border-top: 2px solid var(--line); padding-top: 4px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 140px) 1fr auto; gap: 10px; align-items: center; margin: 6px 0; font-size: .92rem; }
.hbar .b { height: 16px; background: var(--soft); border-radius: 8px; overflow: hidden; }
.hbar .b i { display: block; height: 100%; background: var(--green); border-radius: 8px; }
.funnel { display: grid; gap: 6px; }
.funnel div { background: var(--yellow); color: #141414; border: 2px solid #141414; border-radius: 10px; padding: 6px 10px; font-weight: 700; display: flex; justify-content: space-between; min-width: 140px; }
.todo { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; }
.dot.ok { background: var(--knob); border: 0; padding: 0; }
.dot.bad { background: var(--red); }
.railrow { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: .92rem; }
details.panel { border: 2px solid var(--line); border-radius: var(--r); background: var(--card); margin-bottom: 14px; }
details.panel > summary { cursor: pointer; padding: 14px 16px; font-weight: 750; display: flex; align-items: center; gap: 10px; list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "＋"; margin-left: auto; }
details.panel[open] > summary::after { content: "－"; }
details.panel > div { padding: 0 16px 16px; }
.secret { display: flex; gap: 8px; align-items: center; }
.lanqr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.lanqr .qr { width: 170px; }

#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(30px); background: #141414; color: var(--yellow); border: 2px solid var(--yellow); padding: 12px 18px; border-radius: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; max-width: 92vw; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.gate > *, .detail > *, .pay > *, .hero > *, .auth > * { min-width: 0; }
.mono { overflow-wrap: anywhere; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .hero, .detail, .auth, .pay, .gate { grid-template-columns: minmax(0, 1fr); }
  .hero .art { order: -1; }
  .top .nav, .top .search, .top .acct { display: none; }
  .bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--yellow); border-top: 2px solid #141414; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); color: #141414; }
  .bottom a { flex: 1; text-decoration: none; display: flex; flex-direction: column; align-items: center; font-size: .72rem; font-weight: 700; padding: 4px 0; border-radius: 10px; position: relative; }
  .bottom a span.i { font-size: 1.25rem; line-height: 1.2; }
  .bottom a.on { background: #141414; color: var(--yellow); }
  .bottom .badge { top: 0; right: 18%; }
  .side { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .side a { white-space: nowrap; border: 2px solid var(--line); }
  .qr { width: min(240px, 70vw); margin: 0 auto; }
  main { padding-top: 16px; }
}

/* small phones: the Founder's Shop | Gateway switch and the brand share one row without clipping */
@media (max-width: 420px) {
  .brand { font-size: 1.05rem; gap: 6px; white-space: nowrap; }
  .brand svg { width: 30px; height: 30px; }
  .mode a { padding: 5px 9px; font-size: .8rem; }
}
@media (max-width: 380px) { .brand span { display: none; } }
/* landscape phone with Chilly beside the page */
@media (max-width: 960px) and (max-height: 520px) and (orientation: landscape) { body.chilly-open .brand span { display: none; } }
/* ---------- watch (tiny round/square screens) ---------- */
@media (max-width: 330px) {
  html { font-size: 13px; }
  main { padding: 10px 8px 90px; }
  .top .in { padding: 6px 8px; gap: 6px; }
  .brand span, .mode, .top .acct { display: none; }
  .brand svg { width: 30px; height: 30px; }
  .hero { padding: 14px; border-radius: 18px; }
  .hero .lead, .hero .cta2, .hero .art, .offers, .tile .tag, footer.foot, .hide-watch { display: none !important; }
  .hero h1 { font-size: 1.6rem; }
  .card { padding: 12px; border-radius: 14px; }
  .glyph { width: 38px; height: 38px; font-size: 1.1rem; }
  .bottom a .t { display: none; }
  .bottom a span.i { font-size: 1.35rem; }
  .btn { min-height: 40px; padding: 8px 10px; }
  .grid { gap: 10px; }
  .status { gap: 8px; }
}

/* ---------- TV (10-foot) ---------- */
@media (min-width: 1700px) {
  html { font-size: 22px; }
  main, .top .in, footer.foot { max-width: 2100px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
  :focus-visible { outline: 6px solid var(--knob); outline-offset: 4px; }
  .tile:focus-within, a.card:focus { transform: scale(1.03); }
}
@media (min-width: 2600px) { html { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .top, .bottom, footer.foot, .noprint { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }

/* ---------- 0.0.5 ---------- */
.ver { font-size: .7rem; font-weight: 700; color: var(--muted); border: 1px solid var(--soft); border-radius: 6px; padding: 0 5px; vertical-align: middle; }
.badge.static { position: static; display: inline-grid; margin-left: 4px; }
.side .toshop { margin-top: 10px; border: 2px dashed var(--line); border-radius: 12px; }
.feats { margin: 0 0 .8em; padding-left: 1.2em; }
.feats li { margin: .2em 0; }
.ainote { border: 2px dashed var(--line); border-radius: 14px; padding: 10px 14px; background: var(--bg2); }
.ed.best { outline: 3px solid var(--knob); outline-offset: 2px; border-radius: 12px; }
.paircard { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.qr.big { width: 220px; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.tm { max-width: 82%; }
.tm .b { border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px; background: var(--card); white-space: normal; overflow-wrap: anywhere; }
.tm.user { align-self: flex-end; text-align: right; }
.tm.user .b { background: var(--yellow); color: #141414; border-bottom-right-radius: 4px; text-align: left; }
.tm.chil .b { border-bottom-left-radius: 4px; }
#offbar { position: fixed; left: 0; right: 0; top: 0; z-index: 60; background: #141414; color: var(--yellow); text-align: center; font-weight: 700; font-size: .85rem; padding: 6px 12px; }
body.is-offline .top { top: 30px; }

/* drop zone */
.dropzone { display: block; border: 3px dashed var(--line); border-radius: 22px; padding: 18px; background: var(--card); cursor: pointer; margin-bottom: 14px; transition: background .2s, transform .2s; }
.dropzone.over { background: var(--yellow); color: #141414; transform: scale(1.01); }
.dz-in { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.dz-in .sw { --w: 72px; }
.upq { display: grid; gap: 8px; margin-top: 10px; }
.upitem { font-size: .9rem; }
.upitem.done span { color: var(--green); }
.upitem.bad span { color: var(--red); }

/* realms: an app opens inside iChill like a new world */
#realm { position: fixed; inset: 0; z-index: 80; display: none; flex-direction: column; background: #0d0d0b; }
#realm.on { display: flex; animation: realmIn .45s cubic-bezier(.2,.9,.2,1); }
@keyframes realmIn { from { clip-path: circle(0% at 92% 92%); } to { clip-path: circle(150% at 92% 92%); } }
.realm-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--yellow); color: #141414; border-bottom: 3px solid var(--rc, #141414); }
.realm-bar .glyph { width: 32px; height: 32px; font-size: 1rem; border-radius: 9px; }
.realm-bar .muted { color: #4b4637; }
#realmFrame { flex: 1; width: 100%; border: 0; background: #fff; opacity: 0; transition: opacity .3s; }
#realm.loaded #realmFrame { opacity: 1; }
.realm-gate { position: absolute; inset: 52px 0 0; display: grid; place-content: center; gap: 12px; justify-items: center; color: var(--yellow); font-weight: 800; pointer-events: none; }
#realm.loaded .realm-gate { display: none; }
body.in-realm { overflow: hidden; }
body.in-realm #chilly { display: none; }

/* ---------- Chilly ---------- */
#chilly { position: fixed; right: 18px; bottom: 18px; z-index: 70; }
.chilly-fab { width: 66px; height: 66px; border-radius: 22px; border: 0; padding: 0; background: transparent; cursor: pointer; position: relative; filter: drop-shadow(3px 3px 0 #141414); }
.chilly-fab > svg { animation: bob 3.2s ease-in-out infinite; }
.chilly-fab:hover > svg { animation-play-state: paused; transform: rotate(-6deg) scale(1.06); }
.chilly-fab[data-timer]:not([data-timer=""])::after { content: attr(data-timer); position: absolute; left: -8px; top: -8px; background: #141414; color: var(--yellow); border-radius: 99px; font: 800 .7rem var(--font); padding: 2px 6px; }
.chilly-dot { position: absolute; right: -2px; top: -2px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 2px solid #141414; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.chilly-face { width: 100%; height: 100%; display: block; }
.chilly-face .eyes { display: none; }
.chilly-face.blink .shades { transform: translateY(1px) scaleY(.85); transform-origin: 40px 38px; }
.chilly-face.think .shades { display: none; } .chilly-face.think .eyes { display: block; } .chilly-face.think .mouth { d: path("M30 56 q10 -2 20 0"); }
.chilly-face.party .mouth { d: path("M26 52 q14 16 28 0"); } .chilly-face.party .tuft { animation: wiggle .3s infinite alternate; }
@keyframes wiggle { to { transform: rotate(6deg); transform-origin: 40px 12px; } }
.chilly-face .glint { animation: glint 4s infinite; } @keyframes glint { 0%, 80%, 100% { opacity: 1; } 90% { opacity: .2; } }
.chilly-panel { position: fixed; right: 18px; bottom: 96px; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 130px)); display: flex; flex-direction: column; background: var(--card); color: var(--ink); border: 3px solid #141414; border-radius: 24px; box-shadow: 6px 6px 0 #141414; overflow: hidden; animation: pop .25s cubic-bezier(.2,1.4,.4,1); }
.chilly-panel[hidden] { display: none; }
@keyframes pop { from { transform: translateY(20px) scale(.96); opacity: 0; } }
.chilly-panel header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--yellow); color: #141414; border-bottom: 3px solid #141414; }
.chilly-panel header .av { width: 40px; height: 40px; }
.chilly-panel header small { display: block; color: #4b4637; font-size: .78rem; }
.chilly-x { border: 2px solid #141414; background: #fff; color: #141414; border-radius: 10px; width: 34px; height: 34px; cursor: pointer; font-weight: 800; }
.chilly-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.cm { display: flex; gap: 8px; align-items: flex-end; }
.cm .av { width: 28px; height: 28px; flex: none; }
.cm .b { border: 2px solid var(--line); border-radius: 16px; padding: 8px 12px; background: var(--card); max-width: 85%; font-size: .93rem; overflow-wrap: anywhere; }
.cm.bot .b { border-bottom-left-radius: 4px; }
.cm.me { justify-content: flex-end; }
.cm.me .b { background: #141414; color: var(--yellow); border-color: #141414; border-bottom-right-radius: 4px; }
.cm .b a { font-weight: 700; }
.chilly-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-top: 2px solid var(--soft); max-height: 120px; overflow-y: auto; }
.chilly-chips button { border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 11px; font-size: .83rem; font-weight: 700; cursor: pointer; }
.chilly-chips button:hover { background: var(--yellow); color: #141414; }
.chilly-in { display: flex; gap: 8px; padding: 10px; border-top: 3px solid #141414; }
.chilly-in input { flex: 1; border: 2px solid var(--line); border-radius: 999px; padding: 9px 14px; background: var(--bg); min-width: 0; }
.chilly-in button { width: 44px; border-radius: 50%; border: 2px solid #141414; background: var(--yellow); color: #141414; font-weight: 900; cursor: pointer; }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 4px; }
.cv { border: 2px solid var(--line); border-radius: 14px; padding: 8px; background: var(--card); font-size: .82rem; }
.cv-h { width: 30px; height: 30px; border-radius: 9px; border: 2px solid #141414; color: #fff; display: grid; place-items: center; font-weight: 900; margin-bottom: 4px; }
.cv small { display: block; color: var(--muted); }
.cv p { margin: 4px 0; }
.breath { display: grid; justify-items: center; gap: 10px; padding: 8px; }
.breath .sq { width: 110px; height: 110px; border: 3px solid var(--line); border-radius: 18px; position: relative; }
.breath .sq i { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--knob); border: 2px solid #141414; left: -11px; top: 95px; transition: all 4s linear; }
.breath[data-step="0"] .sq i { top: -11px; left: -11px; }
.breath[data-step="1"] .sq i { top: -11px; left: 95px; }
.breath[data-step="2"] .sq i { top: 95px; left: 95px; }
.breath[data-step="3"] .sq i { top: 95px; left: -11px; }
.breath[data-step="0"] .sq, .breath[data-step="1"] .sq { background: var(--bg2); transition: background 4s; }
.focusbox b { font: 900 2.2rem var(--display); display: block; text-align: center; padding: 6px; }
@media (max-width: 860px) {
  #chilly { right: 12px; bottom: 84px; }
  .chilly-fab { width: 56px; height: 56px; }
  .chilly-panel { right: 0; left: 0; bottom: 0; width: 100%; height: min(88vh, 100% - 40px); border-radius: 24px 24px 0 0; border-bottom: 0; }
  body.chilly-open .bottom { display: none; }
}
@media (max-width: 330px) {
  #chilly { right: 6px; bottom: 60px; }
  .chilly-fab { width: 44px; height: 44px; }
  .dz-in .sw { display: none; }
}
@media (min-width: 1700px) { .chilly-panel { width: 480px; height: 760px; } .chilly-fab { width: 84px; height: 84px; } }

/* ---------- Chilly split screen: half the screen, the page stays usable beside it ---------- */
:root { --chilly-w: clamp(340px, 50vw, 860px); --chilly-h: max(300px, 50vh); }
@supports (height: 1dvh) { :root { --chilly-h: max(300px, min(50dvh, 100dvh - 96px)); } }
body.chilly-open { padding-right: var(--chilly-w); }
body.chilly-open .chilly-fab { display: none; }
body.chilly-open .chilly-panel { top: 0; right: 0; bottom: 0; left: auto; width: var(--chilly-w); height: auto; border-radius: 0; border-width: 0 0 0 3px; box-shadow: -6px 0 0 rgba(20,20,20,.18); animation: slidein .22s ease-out; }
body.chilly-full .chilly-panel { width: 100vw; border-left-width: 0; }
body.chilly-full { padding-right: 0; overflow: hidden; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
@keyframes slideup { from { transform: translateY(30px); opacity: 0; } }
/* phones and narrow windows: Chilly takes the bottom half, the page scrolls in the top half */
@media (max-width: 860px) {
  body.chilly-open { padding-right: 0; padding-bottom: var(--chilly-h); }
  body.chilly-open .chilly-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: var(--chilly-h); border-width: 3px 0 0; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 0 rgba(20,20,20,.18); padding-bottom: env(safe-area-inset-bottom); animation: slideup .22s ease-out; }
  body.chilly-open .chilly-panel header { padding: 8px 10px; }
  body.chilly-open .chilly-chips { max-height: 84px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  body.chilly-open .chilly-chips button { white-space: nowrap; flex: none; }
  body.chilly-open #toast { bottom: calc(var(--chilly-h) + 14px); }
  body.chilly-full { padding-bottom: 0; }
  body.chilly-full .chilly-panel { height: 100%; border-radius: 0; border-top-width: 0; }
}
/* while Chilly takes half a laptop or tablet screen, the page beside it switches to its phone layout so nothing gets squashed */
@media (min-width: 861px) and (max-width: 1719px) {
  body.chilly-open:not(.chilly-full) :is(.hero, .detail, .auth, .pay, .gate) { grid-template-columns: minmax(0, 1fr); }
  body.chilly-open:not(.chilly-full) .hero .art { order: -1; }
  body.chilly-open:not(.chilly-full) :is(.top .nav, .top .search, .top .acct) { display: none; }
  body.chilly-open:not(.chilly-full) .bottom { display: flex; position: fixed; left: 0; right: var(--chilly-w); bottom: 0; z-index: 30; background: var(--yellow); border-top: 2px solid #141414; padding: 6px 4px; color: #141414; }
  body.chilly-open:not(.chilly-full) .bottom a { flex: 1; text-decoration: none; display: flex; flex-direction: column; align-items: center; font-size: .72rem; font-weight: 700; padding: 4px 0; border-radius: 10px; position: relative; }
  body.chilly-open:not(.chilly-full) .bottom a span.i { font-size: 1.25rem; line-height: 1.2; }
  body.chilly-open:not(.chilly-full) .bottom a.on { background: #141414; color: var(--yellow); }
  body.chilly-open:not(.chilly-full) .bottom .badge { top: 0; right: 18%; }
  body.chilly-open:not(.chilly-full) .side { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  body.chilly-open:not(.chilly-full) .side a { white-space: nowrap; border: 2px solid var(--line); }
  body.chilly-open:not(.chilly-full) main { padding-bottom: 90px; }
  body.chilly-open:not(.chilly-full) #toast { left: calc((100vw - var(--chilly-w)) / 2); }
}
/* phones held sideways: side by side, like a split screen */
@media (max-width: 960px) and (max-height: 520px) and (orientation: landscape) {
  body.chilly-open { padding-bottom: 0; padding-right: 50vw; }
  body.chilly-open .chilly-panel { top: 0; bottom: 0; left: auto; right: 0; width: 50vw; height: auto; border-width: 0 0 0 3px; border-radius: 0; padding-right: env(safe-area-inset-right); animation: slidein .22s ease-out; }
  body.chilly-open .chilly-log { padding: 8px; }
  body.chilly-full { padding-right: 0; }
  body.chilly-full .chilly-panel { width: 100vw; border-left-width: 0; }
}
@media print { #chilly, #realm { display: none !important; } }

/* 0.1.0: logos, product media, licences, realm home */
img.glyph.logo { background: none; object-fit: contain; padding: 0; display: block; }
.shots { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.shot { flex: 0 0 min(78%, 420px); padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: none; cursor: zoom-in; scroll-snap-align: start; }
.shot img { display: block; width: 100%; height: auto; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: 12px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; } .lightbox .btn { position: absolute; top: 12px; right: 12px; }
.guidevid { width: 100%; border-radius: 12px; background: #000; max-height: 70vh; }
ol.steps { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
textarea.key { width: 100%; font-size: .78rem; word-break: break-all; resize: vertical; }
.lic { margin-bottom: 12px; } .licqr { text-align: center; }
.picks { display: flex; flex-wrap: wrap; gap: 8px 16px; } .pick { display: inline-flex; gap: 6px; align-items: center; }
.ok2 { border: 2px solid var(--green, #1f7a4d); }
.realm-home { display: inline-flex; align-items: center; gap: 6px; border: 2px solid #141414; background: #141414; color: var(--yellow); font-weight: 800; border-radius: 999px; padding: 3px 12px 3px 3px; cursor: pointer; min-height: 38px; }
.realm-home svg { width: 30px; height: 30px; border-radius: 50%; display: block; }
.realm-bar .rname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.realm-bar img.glyph.logo { width: 32px; height: 32px; border-radius: 9px; }
@media (max-width: 640px) { .hide-phone { display: none !important; } .realm-bar { gap: 6px; padding: 6px 8px; } }
#fbody { padding-bottom: 96px; }
.guidebox summary { cursor: pointer; list-style: none; } .guidebox summary::-webkit-details-marker { display: none; }
.guidebox video { width: 100%; max-height: 70vh; margin-top: 12px; border-radius: 14px; background: #000; }

/* ---------- Chillions ---------- */
.wallet { background: radial-gradient(120% 140% at 0% 0%, #ffe270 0%, #FFD21F 45%, #f5b400 100%); color: #141414; border: 0; display: grid; gap: 6px; padding: 22px; box-shadow: 0 18px 40px -18px rgba(245,180,0,.7); }
.wallet small { opacity: .75; } .wallet .bal { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .wallet .bal b { font-size: clamp(2.6rem, 11vw, 4rem); line-height: 1; letter-spacing: -.03em; } .wallet .bal span:last-child { font-weight: 700; }
.wallet .coin { font-size: 2.2rem; animation: coin 4s ease-in-out infinite; display: inline-block; } @keyframes coin { 0%, 100% { transform: rotateY(0) } 50% { transform: rotateY(180deg) } }
@media (prefers-reduced-motion: reduce) { .wallet .coin { animation: none; } }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.pack { border: 2px solid var(--line, rgba(127,127,127,.3)); border-radius: 14px; padding: 12px 6px; font-weight: 800; background: transparent; color: inherit; cursor: pointer; font-size: 1rem; }
.pack.on { border-color: #FFD21F; background: rgba(255,210,31,.16); }
.walletline { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255,210,31,.12); }
.tlist { display: grid; gap: 6px; } .trow { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(127,127,127,.08); min-width: 0; }
.trow > div { min-width: 0; flex: 1; } .trow b, .trow small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plus { color: #16a34a; } .minus { color: #dc2626; }
.glyph.logo[src*="retrievar"], .glyph.logo[src*="vanishar"], .glyph.logo[src*="clonar"], .glyph.logo[src*="duplar"], .glyph.logo[src*="shrinkar"], .glyph.logo[src*="tools-for-you"] { border-radius: 0; background: transparent; }

/* ---------- TASKAR & TICKETAR ---------- */
.mkbar { display: flex; align-items: center; gap: 12px; margin: -6px 0 10px; }
.mkbrand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 1; min-width: 0; }
.mkbrand svg, .mkswitch svg { width: 42px; height: 42px; flex: none; }
.mkbrand b { display: block; font: 900 1.3rem var(--display); letter-spacing: .04em; }
.mkbrand small { display: block; color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkswitch { display: flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; font-size: .78rem; letter-spacing: .04em; border: 2px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 4px; background: var(--card); }
.mkswitch svg { width: 26px; height: 26px; }
.mktabs { position: sticky; top: 62px; z-index: 15; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; margin-bottom: 14px; background: var(--bg); border-bottom: 2px solid var(--soft); }
.mktabs a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 2px solid transparent; }
.mktabs a.on { background: var(--ink); color: var(--bg); }
.mktabs a:not(.on):hover { border-color: var(--line); }
.mkhero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: center; background: #141414; color: #FFFBEA; border-radius: 26px; padding: clamp(18px, 4vw, 38px); border: 2px solid #141414; box-shadow: var(--shadow); }
.mkhero.ti { background: var(--yellow); color: #141414; }
.mkhero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
.mkhero .lead { max-width: 36em; font-size: 1.08rem; }
.mkhero .btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.mkhero .chipbtn { border-color: currentColor; }
.mkstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mkstats div { border: 2px solid currentColor; border-radius: 16px; padding: 12px; }
.mkstats b { display: block; font: 900 1.8rem var(--display); }
.mkstats small { opacity: .8; }
.search { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.search input[type=search] { flex: 1 1 220px; min-width: 0; }
.search input.city { flex: 1 1 110px; max-width: 200px; min-width: 0; }
.mkhero > *, .detail > *, .mkbody { min-width: 0; }
.search select { flex: 0 1 220px; width: auto; }
.mkhero .search input, .mkhero .search select { border-color: #141414; background: #fff; color: #141414; }
.catgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.cat { display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--line); border-radius: 16px; padding: 12px; text-decoration: none; background: var(--card); }
.cat span { font-size: 1.6rem; }
.cat:hover { box-shadow: var(--shadow); transform: translate(-1px, -1px); }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chipbtn { display: inline-flex; align-items: center; gap: 4px; border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-weight: 700; white-space: nowrap; text-decoration: none; color: inherit; }
.mkhero .chipbtn { background: transparent; }
.chipbtn.on { background: var(--ink); color: var(--bg); }
.mktask, .mkevent, .mkperson { display: flex; flex-direction: column; gap: 8px; text-decoration: none; min-width: 0; }
.mktask h3, .mkevent h3 { margin: 0; overflow-wrap: anywhere; }
.mktask:hover, .mkevent:hover, .mkperson:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: #141414; border: 2px solid #141414; display: grid; place-items: center; font: 900 1.2rem var(--display); flex: none; }
.avatar.big { width: 72px; height: 72px; font-size: 2rem; }
.stars { font-weight: 800; color: #b45309; white-space: nowrap; }
:root[data-theme="dark"] .stars { color: #fbbf24; }
.price small { font-size: .7em; color: var(--muted); font-weight: 600; }
.price.big { font-size: 2rem; }
.narrow { max-width: 760px; margin: 0 auto; }
.prose { overflow-wrap: anywhere; }
.bid { border-top: 1px dashed var(--soft); padding-top: 12px; }
.bid.declined, .bid.withdrawn { opacity: .55; }
.ms { border: 2px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.ms.approved.paid { background: rgba(34, 197, 94, .12); }
.starpick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; font-size: 2rem; }
.starpick input { position: absolute; opacity: 0; }
.starpick span { cursor: pointer; color: var(--soft); -webkit-text-stroke: 1px var(--line); }
.starpick input:checked ~ span, .starpick label:hover span, .starpick label:hover ~ label span { color: #f59e0b; }
.starpick label:has(input:checked) span, .starpick label:has(input:checked) ~ label span { color: #f59e0b; }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.chathead { border-bottom: 1px dashed var(--soft); padding-bottom: 8px; }
.msgs { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; min-height: 140px; overflow-y: auto; padding: 4px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; border: 2px solid var(--line); overflow-wrap: anywhere; }
.msg small { display: block; color: var(--muted); font-size: .72rem; margin-top: 3px; }
.msg.me { align-self: flex-end; background: var(--yellow); color: #141414; border-bottom-right-radius: 4px; }
.msg.me small { color: #4a4639; }
.msg.them { align-self: flex-start; background: var(--card); border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; max-width: 95%; background: var(--bg2); border-style: dashed; font-size: .9rem; text-align: center; }
.send { align-items: flex-end; }
.send textarea { min-height: 52px; flex: 1; }
.inbox { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 14px; align-items: start; }
.trow.on { outline: 2px solid var(--line); }
a.trow { text-decoration: none; }
.poster { aspect-ratio: 16 / 9; border-radius: 12px; border: 2px solid var(--line); background-size: cover; background-position: center; display: grid; place-items: center; font-size: 3rem; overflow: hidden; }
.poster.big { aspect-ratio: 2 / 1; font-size: 5rem; border-radius: 20px; }
.poster[class*="g-"] { background: linear-gradient(135deg, #FFD21F, #22C55E); }
.g-music, .g-festival { background: linear-gradient(135deg, #FFD21F, #F97316) !important; }
.g-nightlife, .g-gaming { background: linear-gradient(135deg, #7C3AED, #EC4899) !important; }
.g-sports, .g-fitness { background: linear-gradient(135deg, #16A34A, #2563EB) !important; }
.g-theatre, .g-film, .g-arts { background: linear-gradient(135deg, #DC2626, #F59E0B) !important; }
.g-business, .g-classes, .g-online { background: linear-gradient(135deg, #2563EB, #06B6D4) !important; }
.g-faith, .g-charity, .g-family { background: linear-gradient(135deg, #FDE68A, #F472B6) !important; }
.dateblock { display: grid; place-items: center; width: 52px; height: 56px; border: 2px solid var(--line); border-radius: 12px; flex: none; background: var(--card); line-height: 1.05; }
.dateblock b { font: 900 1.35rem var(--display); }
.dateblock small { text-transform: uppercase; font-weight: 800; font-size: .7rem; color: var(--red); }
.versus { display: flex; align-items: center; gap: 14px; font: 900 1.5rem var(--display); flex-wrap: wrap; }
.versus span { color: var(--muted); font-size: 1rem; }
.tier { display: flex; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.tier.off { opacity: .55; }
.stepper { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; flex: none; }
.stepper button { width: 40px; height: 42px; border: 0; background: var(--bg2); font-weight: 900; font-size: 1.2rem; cursor: pointer; }
.stepper input { width: 46px !important; min-height: 42px; border: 0 !important; border-radius: 0 !important; text-align: center; padding: 0 !important; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pass { gap: 12px; display: flex; flex-direction: column; }
.pass.used { opacity: .75; }
.qr.pq { width: min(100%, 260px); margin: 0 auto; }
.center { text-align: center; }
.tierrow { padding: 12px; display: grid; gap: 8px; }
.cam { position: relative; border-radius: 20px; overflow: hidden; border: 2px solid var(--line); background: #000; aspect-ratio: 1; max-height: 55vh; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam .frame { position: absolute; inset: 18%; border: 4px solid var(--yellow); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.scanres { border: 2px solid var(--line); border-radius: 16px; padding: 16px; text-align: center; font-size: 1.1rem; min-height: 86px; display: grid; place-items: center; }
.scanres b { font-size: 1.6rem; }
.scanres.yes { background: #16A34A; color: #fff; border-color: #14532d; }
.scanres.no { background: #DC2626; color: #fff; border-color: #7f1d1d; }
.methods .method small { font-size: .8rem; }
@media (max-width: 860px) {
  .mktabs { top: 58px; margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .mkhero { grid-template-columns: minmax(0, 1fr); }
  .mkstats { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .mkstats div { padding: 8px 6px; border-radius: 12px; }
  .mkstats b { font-size: 1.2rem; }
  .mkstats small { font-size: .7rem; display: block; line-height: 1.2; }
  .inbox { grid-template-columns: 1fr; }
  .inbox.open .threads { display: none; }
  .inbox:not(.open) #chatbox { display: none; }
  .catgrid { grid-template-columns: repeat(2, 1fr); }
  .msg { max-width: 92%; }
  .mkswitch span { display: none; }
  .mkswitch { padding: 3px; }
}
@media (max-width: 420px) { .mkstats { grid-template-columns: 1fr 1fr; } .mkbrand small { display: none; } .kpis { grid-template-columns: 1fr 1fr; gap: 8px; } }
.mkentry { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: 0 0 22px; }
.mkentry a { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.mkentry svg { width: 56px; height: 56px; flex: none; }
.mkentry div { flex: 1; min-width: 0; }
.mkentry b { display: block; font: 900 1.25rem var(--display); letter-spacing: .04em; }
.mkentry span:not(.btn) { color: var(--muted); font-size: .92rem; }

/* ---------- CHIL agents ---------- */
.aghero { background: linear-gradient(135deg, #141414, #1e293b); color: #FFFBEA; border-radius: 26px; padding: clamp(18px, 4vw, 38px); border: 2px solid #141414; box-shadow: var(--shadow); }
.aghero .btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.aghero .note { color: var(--ink); }
.agface { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font: 900 1.4rem var(--display); border: 2px solid #141414; object-fit: cover; }
.agface.big { width: 84px; height: 84px; font-size: 2.2rem; }
.agcard { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.agcard:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.cv h3 { margin-bottom: 4px; }
.cv ul { margin: 0; padding-left: 20px; }
.cv ul.never li::marker { content: "✕  "; color: var(--red); }
.agbusy { display: flex; gap: 14px; align-items: center; }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--line); animation: agdot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes agdot { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
.md { overflow-wrap: anywhere; }
.md h2, .md h3, .md h4, .md h5 { margin: 1em 0 .35em; }
.md ul, .md ol { padding-left: 22px; margin: 0 0 .8em; }
.md pre { background: var(--bg2); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; overflow-x: auto; font-size: .88rem; white-space: pre-wrap; }
.md code { background: var(--bg2); padding: 1px 5px; border-radius: 6px; }
.mdrow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; border-bottom: 1px solid var(--soft); padding: 6px 0; font-size: .92rem; }
.agedit details summary { cursor: pointer; font-weight: 700; }
