/* Lius site: TICKET ROLL. Porcelain page, white ticket stock, Helius red, SN Pro + Maple Mono. */
@font-face { font-family: 'SN Pro'; font-style: normal; font-weight: 200 900; font-display: block; src: url('../assets/fonts/snpro-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'SN Pro'; font-style: normal; font-weight: 200 900; font-display: block; src: url('../assets/fonts/snpro-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Maple Mono'; font-style: normal; font-weight: 400; font-display: block; src: url('../assets/fonts/maplemono-regular.woff2') format('woff2'); }
@font-face { font-family: 'Maple Mono'; font-style: normal; font-weight: 500; font-display: block; src: url('../assets/fonts/maplemono-medium.woff2') format('woff2'); }
@font-face { font-family: 'Maple Mono'; font-style: normal; font-weight: 600; font-display: block; src: url('../assets/fonts/maplemono-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Maple Mono'; font-style: normal; font-weight: 700; font-display: block; src: url('../assets/fonts/maplemono-bold.woff2') format('woff2'); }

:root {
  --page: #F7F6F3; --card: #FFFFFF; --ink: #16110F; --ink-2: #3E3632; --mute: #6E6660; --mute-2: #8D847D;
  --line: #E9E5E0; --line-2: #DDD6CF; --well: #F4F1EE; --well-2: #EFEBE7;
  --red: #E64C2A; --red-a: #E35930; --red-b: #E84125; --red-l: #FF664D; --red-ink: #C23A1C; --tint: #FDE9E3; --tint-2: #FBDDD3;
  --green: #1E8E5A;
  --sans: 'SN Pro', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Maple Mono', ui-monospace, 'Cascadia Code', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
  --sh-paper: drop-shadow(0 1px 1px rgba(90, 36, 18, .07)) drop-shadow(0 22px 34px rgba(150, 56, 28, .13));
  --sh-1: 0 1px 1px rgba(90, 36, 18, .06), 0 3px 8px -3px rgba(120, 44, 20, .12);
  --sh-2: 0 1px 2px rgba(90, 36, 18, .06), 0 14px 30px -16px rgba(140, 50, 25, .30);
  --roll: min(1000px, calc(100vw - 48px));
  --pad-x: clamp(22px, 6.2vw, 76px);
  --notch: 13px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
html, body { margin: 0; background: var(--page); }
body { color: var(--ink); font: 500 18px/1.5 var(--sans); letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--tint-2); color: var(--ink); }
img, svg, canvas { display: block; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 10px; }
.mono { font-family: var(--mono); font-feature-settings: 'calt' 0; letter-spacing: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 650; transition: top .3s var(--ease); }
.skip:focus { top: 16px; }
html { scrollbar-color: #D9D1C9 var(--page); }
::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-track { background: var(--page); }
::-webkit-scrollbar-thumb { background: #DAD2CA; border-radius: 99px; border: 3px solid var(--page); } ::-webkit-scrollbar-thumb:hover { background: #CBC1B8; }

/* ---------- top chrome (no bar: floats on porcelain, gets a solid fill once you scroll) ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 3.2vw, 40px); pointer-events: none; }
.top::before { content: ''; position: absolute; inset: 0; background: var(--page); opacity: 0; transition: opacity .35s var(--ease); box-shadow: 0 1px 0 var(--line); }
.top.scrolled::before { opacity: .97; }
.top > * { position: relative; pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; height: 44px; padding: 0 4px; }
.brand-word { font-weight: 800; font-size: 30px; letter-spacing: -0.045em; line-height: 1; transform: translateY(-1px); }
.top-r { display: flex; align-items: center; gap: 10px; }
.x-chip, .ca-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-1); text-decoration: none; font-weight: 650; font-size: 16px; border: 0; white-space: nowrap; flex-shrink: 0; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.x-chip .ic { width: 17px; height: 17px; }
.ca-chip-a { font-size: 15px; color: var(--mute); }
.ca-chip .ic { width: 18px; height: 18px; color: var(--mute); }
.x-chip:hover, .ca-chip:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.wbtn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0; white-space: nowrap; transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease); box-shadow: 0 8px 18px -10px rgba(22, 17, 15, .55); }
.wbtn:hover { transform: translateY(-1px); background: #2A221E; }
.wbtn:active { transform: translateY(1px) scale(.98); }
.wbtn-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red-l); box-shadow: 0 0 0 3px rgba(255, 102, 77, .22); }
.wbtn.on { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.wbtn.on .wbtn-dot { background: #2FBF71; box-shadow: 0 0 0 3px rgba(47, 191, 113, .18); }
.wbtn img { width: 20px; height: 20px; border-radius: 6px; }

/* ---------- the stage (Lius) ---------- */
.stage { position: fixed; left: 0; top: 0; z-index: 30; width: 440px; height: 440px; pointer-events: none; transform-origin: 50% 50%; will-change: transform; contain: strict; }
.stage::before { content: ''; position: absolute; left: 31%; right: 31%; top: 72%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(140, 56, 28, .26), rgba(140, 56, 28, .08) 60%, rgba(140, 56, 28, 0)); filter: blur(3px); opacity: 0; transition: opacity .6s var(--ease); }
.stage.live::before, .stage.posterok::before { opacity: 1; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s var(--ease); }
.stage.live canvas { opacity: 1; }
.stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .5s var(--ease) .2s; }
.stage.live .stage-poster { opacity: 0; }
.js .stage:not(.placed) { visibility: hidden; }

/* ---------- the roll ---------- */
main { position: relative; z-index: 1; }
.hero { padding-top: clamp(150px, 19vh, 196px); }
.roll { width: var(--roll); margin: 0 auto; position: relative; }
.roll-mouth { position: absolute; left: 50%; top: 0; width: 0; height: 0; }

/* a ticket = a wrapper that casts the paper's shadow + paper parts joined by perforations with notches */
.tk { position: relative; filter: var(--sh-paper); }
.pp { background: var(--card); position: relative; }
.pp {
  --ntl: 0px; --ntr: 0px; --nbl: 0px; --nbr: 0px;
  -webkit-mask: radial-gradient(circle var(--ntl) at 0 0, #0000 calc(100% - .7px), #000) 0 0 / 51% 51% no-repeat, radial-gradient(circle var(--ntr) at 100% 0, #0000 calc(100% - .7px), #000) 100% 0 / 51% 51% no-repeat, radial-gradient(circle var(--nbl) at 0 100%, #0000 calc(100% - .7px), #000) 0 100% / 51% 51% no-repeat, radial-gradient(circle var(--nbr) at 100% 100%, #0000 calc(100% - .7px), #000) 100% 100% / 51% 51% no-repeat;
  mask: radial-gradient(circle var(--ntl) at 0 0, #0000 calc(100% - .7px), #000) 0 0 / 51% 51% no-repeat, radial-gradient(circle var(--ntr) at 100% 0, #0000 calc(100% - .7px), #000) 100% 0 / 51% 51% no-repeat, radial-gradient(circle var(--nbl) at 0 100%, #0000 calc(100% - .7px), #000) 0 100% / 51% 51% no-repeat, radial-gradient(circle var(--nbr) at 100% 100%, #0000 calc(100% - .7px), #000) 100% 100% / 51% 51% no-repeat;
}
.pp.jt { --ntl: var(--notch); --ntr: var(--notch); }
.pp.jb { --nbl: var(--notch); --nbr: var(--notch); }
.pp.jt::before { content: ''; position: absolute; left: calc(var(--notch) + 10px); right: calc(var(--notch) + 10px); top: -2px; height: 4px; background: radial-gradient(circle, #D9D0C7 1.25px, #0000 1.75px) 0 50% / 9px 4px repeat-x; }

/* first ticket: head + ask as two parts of one paper */
.ask-a { border-radius: 30px 30px 0 0; padding: 44px var(--pad-x) 40px; }
.ask-b { border-radius: 0 0 30px 30px; padding: 30px var(--pad-x) 34px; }
.slot.has .ask-b, #ask.fed .ask-b { border-radius: 0; }
#ask.fed .ask-b { --nbl: var(--notch); --nbr: var(--notch); }

.tk-ask-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; padding-right: 220px; }
.built { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-weight: 600; font-size: 16px; white-space: nowrap; }
.built img { height: 19px; width: auto; transform: translateY(-1px); }
h1 { margin: 0; font-weight: 800; font-size: clamp(40px, 5.6vw, 66px); line-height: .98; letter-spacing: -0.042em; text-wrap: balance; max-width: 13.5em; }
.lead { margin: 22px 0 0; max-width: 36em; color: var(--ink-2); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; font-weight: 500; text-wrap: pretty; }

/* the ask: modes, the giant sentence, options + Print */
.ask { position: relative; }
.modes { position: relative; display: inline-flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--well); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.modes::-webkit-scrollbar { display: none; }
.mode { position: relative; z-index: 1; border: 0; background: none; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 650; font-size: 16.5px; color: var(--mute); white-space: nowrap; transition: color .3s var(--ease); }
.mode[aria-checked="true"] { color: var(--ink); }
.mode:hover { color: var(--ink); }
.mode-ind { position: absolute; z-index: 0; top: 5px; left: 0; height: 42px; width: 0; border-radius: 999px; background: var(--card); box-shadow: 0 1px 1px rgba(90, 36, 18, .06), 0 4px 10px -4px rgba(120, 44, 20, .22); transition: transform .5s var(--ease), width .5s var(--ease); }

.say { position: relative; display: block; margin: 26px 0 0; cursor: text; }
.say-mirror, .say textarea { display: block; width: 100%; margin: 0; padding: 0; border: 0; font: 800 clamp(30px, 4.1vw, 50px)/1.13 var(--sans); letter-spacing: -0.034em; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 2; }
.say-mirror { position: relative; color: var(--ink); min-height: 1.13em; }
.say-mirror .w { transition: color .45s var(--ease); }
.say-mirror .hit { color: var(--red); }
.say-mirror .ph { color: #C9C0B8; }
.say textarea { position: absolute; inset: 0; height: 100%; resize: none; overflow: hidden; background: transparent; color: transparent; caret-color: var(--red); outline: none; -webkit-text-fill-color: transparent; }
.say textarea::selection { background: rgba(230, 76, 42, .16); }
.say textarea:focus-visible { outline: none; }
.say:focus-within::after { opacity: 1; }
.said { margin: 16px 0 0; min-height: 1.5em; font-size: 16.5px; color: var(--ink-2); }
.said:empty { display: none; }
.said b { font-weight: 600; color: var(--red-ink); }

.ask-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.ask-opts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pick { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px 0 16px; border-radius: 999px; border: 0; background: var(--well); font-size: 16px; font-weight: 650; color: var(--ink); white-space: nowrap; transition: background .3s var(--ease); }
.pick:hover { background: var(--well-2); }
.pick-k { color: var(--mute); font-weight: 550; }
.pick .ic { width: 18px; height: 18px; color: var(--mute); }
.switch { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 8px; border-radius: 999px; border: 0; background: var(--well); font-size: 16px; font-weight: 650; transition: background .3s var(--ease); }
.switch:hover { background: var(--well-2); }
.switch-k { position: relative; width: 44px; height: 28px; border-radius: 99px; background: #D8D0C8; transition: background .35s var(--ease); }
.switch-k::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(60, 20, 10, .25), 0 3px 6px -2px rgba(60, 20, 10, .2); transition: transform .4s var(--ease); }
.switch[aria-checked="true"] .switch-k { background: var(--red); }
.switch[aria-checked="true"] .switch-k::after { transform: translateX(16px); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 26px 0 28px; border-radius: 999px; border: 0; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease); }
.btn-red { color: #fff; background: linear-gradient(180deg, #EE623D 0%, #E64A26 55%, #E1401D 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(120, 20, 0, .18), 0 10px 22px -10px rgba(214, 60, 26, .75), 0 2px 4px rgba(150, 40, 15, .14); }
.btn-red:hover { transform: translateY(-1px); filter: saturate(1.06) brightness(1.03); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(120, 20, 0, .18), 0 14px 26px -12px rgba(214, 60, 26, .8), 0 2px 4px rgba(150, 40, 15, .14); }
.btn-red:active { transform: translateY(1px) scale(.985); }
.btn .ic { width: 21px; height: 21px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }

/* the printed ticket feeds out of the slot under the ask ticket (clipped only at the top) */
.slot { position: relative; clip-path: inset(0 -80px -120px -80px); }
.slot-feed { position: relative; }
.slot-feed > .tk { transition: transform .95s var(--ease); }
.slot-feed > .tk.feeding { transform: translateY(-101%); transition: none; }
.slot-feed > .tk.leaving { transform: translateY(40px); opacity: 0; transition: transform .38s var(--ease-in), opacity .3s linear; }

@media (max-width: 720px) {
  :root { --roll: calc(100vw - 24px); --notch: 11px; }
  .top { height: 64px; }
  .brand-word { font-size: 27px; }
  .hero { padding-top: 196px; }
  .ask-a { border-radius: 24px 24px 0 0; padding-top: 74px; padding-bottom: 32px; }
  .tk-ask-top { padding-right: 0; }
  .ask-b { border-radius: 0 0 24px 24px; padding-top: 24px; padding-bottom: 26px; }
  .tk-ask-top { margin-bottom: 18px; }
  .built { font-size: 15px; } .built img { height: 17px; }
  .lead { margin-top: 16px; }
  .modes { display: flex; width: 100%; }
  .mode { padding: 0 14px; font-size: 15.5px; }
  .say { margin-top: 20px; }
  .ask-row { margin-top: 22px; }
  .ask-row .btn { width: 100%; }
  .pick, .switch { height: 44px; font-size: 15.5px; }
  .x-chip { display: none; }
}
@media (max-width: 380px) {
  .pick-k { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- printed tickets ---------- */
.tk-body { padding: 44px var(--pad-x) 40px; }
.tk-last { border-radius: 0 0 30px 30px; }
.stub { border-radius: 0 0 30px 30px; padding: 30px var(--pad-x) 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; }
.tk-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.tk-t { margin: 0; font-size: clamp(26px, 2.5vw, 32px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.tk-venue { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); }
.tk-venue img { width: 26px; height: 26px; border-radius: 8px; }

.tkl-grid { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 30px; align-items: start; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; aspect-ratio: 1; border-radius: 24px; background: var(--well); cursor: pointer; padding: 18px; transition: background .3s var(--ease), box-shadow .3s var(--ease); overflow: hidden; }
.drop::before { content: ''; position: absolute; inset: 10px; border-radius: 16px; border: 2px dashed #D6CDC4; transition: border-color .3s var(--ease), opacity .3s var(--ease); pointer-events: none; }
.drop:hover, .drop.over { background: var(--tint); }
.drop:hover::before, .drop.over::before { border-color: rgba(230, 76, 42, .45); }
.drop-pic { position: absolute; inset: 0; }
.drop-pic img { width: 100%; height: 100%; object-fit: cover; }
.drop.has::before { opacity: 0; }
.drop.has .drop-t, .drop.has .drop-s { position: relative; z-index: 1; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .3s var(--ease); }
.drop.has:hover .drop-t, .drop.has:hover .drop-s { opacity: 1; }
.drop.has:hover .drop-pic::after { content: ''; position: absolute; inset: 0; background: rgba(22, 17, 15, .35); }
.drop-t { position: relative; font-weight: 750; font-size: 18px; letter-spacing: -0.015em; }
.drop-s { position: relative; font-size: 15px; color: var(--mute); line-height: 1.35; }

.fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px 16px; }
.f { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.f-wide { grid-column: 1 / -1; }
.f-k { font-size: 16px; font-weight: 650; color: var(--mute); }
.f input, .f textarea, .f-in { width: 100%; min-width: 0; height: 56px; border-radius: 16px; border: 0; background: var(--well); padding: 0 18px; font-size: 20px; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); outline: none; transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.f textarea { height: auto; min-height: 84px; padding: 15px 18px; resize: none; font-size: 18px; font-weight: 550; line-height: 1.45; }
.f input::placeholder, .f textarea::placeholder { color: #B9AFA6; font-weight: 550; }
.f input:hover, .f textarea:hover { background: var(--well-2); }
.f input:focus, .f textarea:focus, .f-in:focus-within { background: var(--card); box-shadow: 0 0 0 2px var(--red), 0 8px 20px -12px rgba(200, 70, 30, .45); }
.f-in { display: flex; align-items: center; padding: 0 0 0 18px; }
.f-in input { height: 100%; padding: 0 18px 0 2px; background: transparent !important; box-shadow: none !important; }
.f-pre { font-weight: 800; color: var(--red); font-size: 20px; }
.bad .f-in, .bad > input, .bad > textarea, .drop.bad { box-shadow: 0 0 0 2px var(--red); animation: nudge .38s var(--ease); }
.err { position: absolute; left: 0; top: calc(100% + 6px); z-index: 3; font-size: 15px; font-weight: 650; color: var(--red-ink); background: var(--card); padding: 6px 10px; border-radius: 10px; box-shadow: var(--sh-1); white-space: nowrap; }
.drop .err { left: 50%; transform: translateX(-50%); top: auto; bottom: 14px; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }

/* boarding-pass route: From -> ring -> To */
.route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 1.1fr) minmax(0, 1fr); align-items: center; gap: 18px; margin: 34px 0 6px; padding: 26px 0; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.route-p { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.route-p:last-child { text-align: right; align-items: flex-end; }
.route-k { font-size: 16px; font-weight: 650; color: var(--mute); }
.route-v { font-size: clamp(21px, 2.1vw, 26px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.route-s { font-size: 16px; color: var(--ink-2); font-weight: 550; }
.route-s b { font-weight: 750; color: var(--ink); }
.route-line { position: relative; height: 30px; }
.route-line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); background: radial-gradient(circle, #CFC5BB 1.2px, #0000 1.7px) 0 50% / 9px 4px repeat-x; }
.route-ring { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 5px solid var(--red); background: var(--card); box-shadow: 0 4px 10px -4px rgba(200, 70, 30, .6); }

.row-dev, .row-plan { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; padding: 22px 0 0; }
.row-plan { padding-top: 18px; }
.row-k { font-size: 17px; font-weight: 700; color: var(--ink); }
.row-s { grid-column: 2 / -1; font-size: 16px; color: var(--mute); font-weight: 550; margin-top: -2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--well); font-weight: 650; font-size: 16px; color: var(--ink-2); transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.chip:hover { background: var(--well-2); color: var(--ink); }
.chip[aria-checked="true"] { background: var(--ink); color: #fff; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pchip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px 8px 12px; border-radius: 14px; background: var(--tint); color: var(--ink-2); font-size: 16px; font-weight: 550; line-height: 1.3; }
.pchip::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 3.5px solid var(--red); }
.pchip b { font-weight: 750; color: var(--ink); }
.pchip-none { background: var(--well); color: var(--mute); }
.pchip-none::before { border-color: #CFC5BB; }
.lnk { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(230, 76, 42, .5); white-space: nowrap; transition: text-decoration-color .3s var(--ease); }
.lnk:hover { text-decoration-color: var(--red); }

.stub-l { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 14px; min-width: 0; }
.stub-k { font-size: 17px; font-weight: 700; }
.stub-v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.stub-s { grid-column: 1 / -1; font-size: 15.5px; color: var(--mute); }
.stub-r { display: flex; align-items: center; gap: 12px; }

/* ---------- popover menu + toast ---------- */
.menu { position: absolute; z-index: 60; padding: 6px; border-radius: 18px; background: var(--card); box-shadow: 0 1px 2px rgba(90, 36, 18, .08), 0 24px 48px -18px rgba(120, 44, 20, .35); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top; transition: opacity .22s var(--ease), transform .3s var(--ease); }
.menu.in { opacity: 1; transform: none; }
.menu-i { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 14px; border: 0; border-radius: 12px; background: none; text-align: left; font-size: 16.5px; font-weight: 650; transition: background .2s var(--ease); }
.menu-i img { width: 24px; height: 24px; border-radius: 7px; }
.menu-i:not(:has(img)) { grid-template-columns: 1fr auto; }
.menu-i:hover, .menu-i:focus-visible { background: var(--well); outline: none; }
.menu-i[aria-selected="true"] .menu-t::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-radius: 50%; background: var(--red); vertical-align: middle; }
.menu-s { font-size: 15px; font-weight: 550; color: var(--mute); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; max-width: min(560px, calc(100vw - 32px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 14px 20px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 16.5px; font-weight: 600; box-shadow: 0 18px 40px -16px rgba(22, 17, 15, .6); transition: opacity .3s var(--ease), transform .45s var(--ease); }
.toast.in { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .tk-body { padding-top: 32px; padding-bottom: 30px; }
  .tk-h { margin-bottom: 22px; }
  .tkl-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .drop { aspect-ratio: auto; height: 168px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .route { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px 0; }
  .route-p:last-child { text-align: left; align-items: flex-start; }
  .route-line { height: 24px; width: 100%; }
  .route-ring { left: 30px; }
  .row-dev, .row-plan { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .row-s { grid-column: 1; }
  .stub { padding-top: 24px; padding-bottom: 26px; }
  .stub-r, .stub-r .btn { width: 100%; }
}
