:root {
  color-scheme: dark;
  /* AI Pad: black, an off-white mark, greys with grain; the one hue is the "live" red, and green/red for numbers */
  --bg: #000; --bg-2: #060607; --surface: #0d0d0f; --surface-2: #141416; --surface-3: #1c1c1f;
  --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .18);
  --strong: #f4f2ec; --text: #b4b4b8; --fog: #80808a; --label: #5e5e66; --ink: #050506;
  --accent: #f4f2ec; --accent-text: #ffffff; --accent-soft: rgba(255, 255, 255, .08); --accent-line: rgba(255, 255, 255, .35);
  --live: #ff3d5a; --live-soft: rgba(255, 61, 90, .14);
  --pos: #3ddc97; --neg: #ff5c7a;
  --display: "Bricolage Grotesque", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 6px; --r-lg: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 24px 48px -24px rgba(0, 0, 0, .9);
  --w: 1400px; --rail: 76px; --rail-open: 272px; --gutter: clamp(36px, 3vw, 64px);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%2380808a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
  --grid: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; scrollbar-gutter: stable; }
/* scrollbars: thin, a pale thumb on no track */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background-color: rgba(255, 255, 255, .16); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .3); }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
}
body { position: relative; display: flex; flex-direction: column; min-width: 320px; min-height: 100vh; margin: 0; padding-left: var(--rail); color: var(--text);
       font: 14.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: var(--grain); opacity: .035; pointer-events: none; }
::selection { background: var(--accent); color: var(--ink); }
:where(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* the page sits centred in the space right of the rail, up to a width */
main { flex: 1 0 auto; width: min(var(--w), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 32px 0 96px; }

a { color: var(--strong); text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 1px; text-underline-offset: 3px;
    transition: color .15s, text-decoration-color .15s; }
a:hover { text-decoration-color: var(--accent); }
p { margin: 0 0 14px; }
strong { color: var(--strong); }
h1, h2 { color: var(--strong); font-family: var(--display); font-weight: 700; letter-spacing: -.03em; }
h1 { margin: 0 0 14px; font-size: clamp(40px, 5.2vw, 68px); line-height: .98; }
h2 { margin: 0 0 8px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.04; }
h3 { margin: 0 0 6px; color: var(--strong); font: 700 16px/1.3 var(--body); letter-spacing: -.01em; }
.dim { color: var(--fog); }
.pos { color: var(--pos) !important; }
.neg { color: var(--neg) !important; }
/* a small label: mono, caps, with a lime tick before it */
.k { margin: 0; color: var(--label); font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* the rail: a narrow strip down the left edge showing only the mark and the icons; it opens over the page when the
   mouse is on it (or something in it has focus), with the names large. On narrow screens it's a bar across the top
   instead (below). The icon column is always --rail wide, so nothing in it moves as it opens. */
header.site { position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; display: flex; flex-direction: column; width: var(--rail); overflow: hidden; border-right: 1px solid var(--line); background: var(--bg-2);
              transition: width .22s cubic-bezier(.4, 0, .2, 1), box-shadow .22s; }
header.site:is(:hover, :focus-within) { width: var(--rail-open); box-shadow: 24px 0 48px -24px rgba(0, 0, 0, .8); }
header.site .bar { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 0; width: var(--rail-open); min-height: 0; padding: 12px 0 14px; overflow: hidden auto; }
footer.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); }
footer.site-foot .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 44px; padding: 0 var(--gutter);
                        color: var(--label); font: 500 11px/1 var(--mono); letter-spacing: .04em; }
footer.site-foot a { color: var(--fog); text-decoration: none; }
footer.site-foot a:hover { color: var(--strong); }
.brand { display: flex; flex: none; align-items: center; gap: 0; height: 64px; padding: 0 0 20px; color: var(--strong); text-decoration: none; }
.brand img, .brand svg { display: block; flex: none; width: 40px; height: 40px; margin: 0 calc((var(--rail) - 40px) / 2); }
.brand span { font: 800 22px/1 var(--display); letter-spacing: -.02em; }
.site-nav { display: flex; flex: none; flex-direction: column; gap: 4px; }
.site-nav::before { content: "Browse"; margin: 0 0 10px calc((var(--rail) - 22px) / 2); color: var(--label); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.site-nav a { position: relative; display: flex; align-items: center; gap: 0; height: 56px; padding: 0; color: var(--fog);
              font: 700 20px/1 var(--display); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.site-nav a:hover { background: rgba(255, 255, 255, .05); color: var(--strong); }
.site-nav a[aria-current] { background: var(--surface-2); color: var(--strong); }
.site-nav a[aria-current]::after { content: ""; position: absolute; top: 14px; bottom: 14px; left: 0; width: 3px; border-radius: 0 2px 2px 0; background: var(--accent); }
.site-nav svg { flex: none; width: 22px; height: 22px; margin: 0 calc((var(--rail) - 22px) / 2); color: var(--fog); }
.site-nav a:hover svg, .site-nav a[aria-current] svg { color: var(--strong); }
.site-nav a:not([aria-current]) svg { opacity: .8; }
/* the bottom: free launches, X, the wallet. Each one a 48px row whose icon sits in the icon column */
.actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; margin-top: auto; padding: 24px 12px 0; }
.actions .wc { display: flex; }
.actions .wc-button { flex: 1; justify-content: flex-start; gap: 0; height: 48px; padding: 0; font-size: 15px; }
.actions .wc-button::before { content: ""; flex: none; width: 22px; height: 22px; margin: 0 calc((var(--rail) - 22px) / 2 - 12px); background: currentColor;
                              -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5h12A2.5 2.5 0 0 1 20 7.5v9a2.5 2.5 0 0 1-2.5 2.5h-12A2.5 2.5 0 0 1 3 16.5z'/%3E%3Cpath d='M3 9.5h17M15.5 13.5h2'/%3E%3C/svg%3E") center / contain no-repeat;
                              mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5h12A2.5 2.5 0 0 1 20 7.5v9a2.5 2.5 0 0 1-2.5 2.5h-12A2.5 2.5 0 0 1 3 16.5z'/%3E%3Cpath d='M3 9.5h17M15.5 13.5h2'/%3E%3C/svg%3E") center / contain no-repeat; }
.actions .wc-button.on { padding: 0; font-size: 14px; }
.actions .wc-button.on i { position: absolute; top: 11px; left: calc((var(--rail) - 22px) / 2 + 6px); margin: 0; box-shadow: 0 0 0 2px var(--bg-2), 0 0 8px var(--pos); }
.actions .wc-button { position: relative; }
.actions .icon-link { width: auto; height: 48px; gap: 0; padding: 0; color: var(--fog); font: 600 15px/1 var(--body); justify-content: flex-start; }
.actions .icon-link svg { flex: none; width: 20px; height: 20px; margin: 0 calc((var(--rail) - 20px) / 2 - 12px); }
.actions .icon-link::after { content: "Follow on X"; }
.actions .free-pill { justify-content: flex-start; gap: 0; height: 48px; padding: 0 8px 0 0; font-size: 12px; white-space: nowrap; }
.actions .free-pill b { overflow: hidden; text-overflow: ellipsis; }
.actions .free-pill i { flex: none; width: 10px; height: 10px; margin: 0 calc((var(--rail) - 10px) / 2 - 12px); }
.actions .wc-menu { top: auto; right: 0; bottom: calc(100% + 8px); left: 0; width: auto; }
/* shut: the names are see-through and the text in the bottom rows is gone, only the icons stay */
@media (min-width: 1101px) {
  header.site:not(:hover, :focus-within) :is(.brand span, .site-nav a, .actions .icon-link, .actions .free-pill, .actions .wc-button), header.site:not(:hover, :focus-within) .site-nav::before { color: transparent; }
  header.site:not(:hover, :focus-within) .actions .wc-button::before { background: var(--ink); }
  header.site:not(:hover, :focus-within) .actions .wc-button.on::before { background: var(--strong); }
  header.site:not(:hover, :focus-within) .actions .icon-link svg { color: var(--fog); }
  header.site:not(:hover, :focus-within) .site-nav svg { color: var(--fog); }
  header.site:not(:hover, :focus-within) .site-nav a[aria-current] svg { color: var(--strong); }
  .brand span, .site-nav a, .actions .icon-link, .actions .free-pill, .actions .wc-button { transition: color .18s; }
}
.ca-pill { display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 34px; padding: 0 3px 0 10px;
           border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--label);
           font: 600 10.5px/1 var(--mono); letter-spacing: .08em; }
.ca { overflow: hidden; color: var(--strong); font-weight: 500; letter-spacing: 0; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.copy { flex: none; margin-left: auto; padding: 6px 8px; border: 0; border-radius: 4px; background: var(--surface-3);
        color: var(--text); font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.copy:hover { background: var(--accent); color: var(--ink); }
.icon-link { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px;
             border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--strong);
             text-decoration: none; transition: border-color .15s, background .15s; }
.icon-link:hover, .icon-link[aria-current] { border-color: var(--line-strong); background: var(--surface-2); }
/* the free launches left (site.js) */
.free-pill { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--accent-line); border-radius: var(--r);
             background: var(--accent-soft); color: var(--accent-text); font: 600 11px/1 var(--mono); letter-spacing: .02em; text-decoration: none; transition: border-color .15s, background .15s; }
.free-pill:hover { border-color: var(--accent); background: rgba(255, 255, 255, .14); }
.free-pill i { width: 6px; height: 6px; border-radius: 1px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.free-pill b { font-weight: 600; }
.actions .free-pill { justify-content: center; height: 36px; }
.menu .free-pill { height: auto; margin-top: 4px; padding: 12px; font-size: 12px; }
/* on phones the actions fold into a menu behind the hamburger */
.burger { display: none; flex: none; flex-direction: column; justify-content: center; gap: 4px; width: 36px; height: 36px; padding: 0 9px;
          border: 1px solid var(--line); border-radius: var(--r); background: transparent; cursor: pointer; }
.burger span { display: block; height: 1.5px; border-radius: 1px; background: var(--strong); transition: transform .18s, opacity .18s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.menu { display: none; gap: 4px; width: calc(100% - 24px); margin: 0 auto; padding: 8px 0 12px; }
.menu[hidden] { display: none; }
.menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--r); color: var(--strong);
          font: 600 15px/1.2 var(--body); text-decoration: none; }
.menu a:hover, .menu a[aria-current] { background: var(--surface-2); }
.menu a svg { flex: none; }

/* buttons, badges, chips */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px;
          border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent; color: var(--strong);
          font: 700 13px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.button:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .04); }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.button.primary:hover { border-color: #ffffff; background: #ffffff; }
.button.icon { width: 38px; padding: 0; }
.badge { display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 22px; padding: 0 9px; border-radius: 4px;
         background: var(--surface-3); color: var(--fog); font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
         white-space: nowrap; }
.badge i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--label); color: var(--live); }
.badge.live { background: var(--live); color: #fff; }
.badge.live i { background: #fff; color: #fff; }
.badge.live i::after { content: ""; position: absolute; inset: -3px; border: 1px solid currentColor; border-radius: 50%;
                       animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }

/* home: the latest swaps as a tape across the top; a page head; the featured stream beside the numbers as a column of
   tiles; the agents as rows; the four steps on a rail */
main.home { width: min(2000px, calc(100% - 2 * var(--gutter))); padding: 32px 0 72px; }
/* the hero's backdrop runs the full width beside the rail: a faint grid and a glow that fade out down the hero, and the
   banner's dashed circle off the top right edge */
main.home::before { content: ""; position: absolute; top: 0; right: 0; left: var(--rail); z-index: -1; height: 620px;
                    background: radial-gradient(50% 70% at 70% 0%, rgba(255, 255, 255, .07), transparent 70%), var(--grid) 0 0 / 48px 48px;
                    -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); }
main.home::after { content: ""; position: absolute; top: -200px; left: 30%; z-index: -1; width: 680px; height: 680px; border: 1px dashed rgba(255, 255, 255, .24); border-radius: 50%;
                   -webkit-mask-image: linear-gradient(#000 50%, transparent 95%); mask-image: linear-gradient(#000 50%, transparent 95%); }
.hero { position: relative; display: grid; grid-template-columns: minmax(360px, 2fr) minmax(0, 3fr); grid-template-areas: "text screen" "stats stats"; gap: 20px clamp(28px, 3vw, 56px); align-items: center; padding: 20px 0 0; }
.hero-text { display: grid; grid-area: text; grid-template-columns: minmax(0, 1fr); grid-template-areas: "eyebrow" "h1" "p" "cta"; align-content: center; align-self: center; gap: 0; padding-bottom: 24px; }
.eyebrow { display: inline-flex; grid-area: eyebrow; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--accent-text); font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { grid-area: h1; margin: 0 0 14px; max-width: none; color: var(--strong); font: 700 clamp(34px, 3.6vw, 66px)/1 var(--display); letter-spacing: -.035em; }
.hero-text > p:not(.eyebrow) { grid-area: p; max-width: 560px; margin: 0; color: var(--text); font-size: clamp(15px, 1.05vw, 18px); line-height: 1.55; }
.hero .cta { grid-area: cta; margin-top: 24px; }
.hero-stats { display: grid; grid-area: stats; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; }
.hero-stats > div { position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 104px; padding: 16px 18px 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.hero-stats > div::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: var(--accent); }
.hero-stats dt { color: var(--fog); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hero-stats dd { margin: 0; color: var(--strong); font: 600 clamp(26px, 1.9vw, 36px)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero .button { min-height: 42px; padding: 0 20px; font-size: 14px; }
.hero .button.ghost { border-color: var(--line-strong); background: transparent; color: var(--strong); }
.hero .button.ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); }
.hero .button.light, .hero .button[hidden] + .button { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.hero .button.light:hover, .hero .button[hidden] + .button:hover { background: #ffffff; border-color: #ffffff; }
.text-link { padding: 0 6px; color: var(--fog); font: 600 13px/1 var(--body); text-decoration: none; }
.text-link:hover { color: var(--strong); }
/* the featured stream: the live streams in turn, as wide as the page allows, a channel strip under it; the whole thing is the link */
.hero-chamber { display: grid; grid-area: screen; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg);
                background: #000; color: #fff; text-decoration: none; transition: border-color .15s; }
.hero-chamber:hover { border-color: var(--line-strong); }
.hero-chamber .screen { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.hero-chamber .screen > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.hero-chamber .screen img { object-fit: cover; filter: saturate(.7) brightness(.65); }
.hero-chamber .screen img.poster { filter: blur(2px) brightness(.8); opacity: 0; transition: opacity .3s ease; }
.hero-chamber .screen iframe { opacity: 0; transition: opacity .5s ease; }
.hero-chamber .screen .off { inset: auto 10px 10px auto; width: auto; height: auto; padding: 5px 8px; border-radius: 4px; background: rgba(0, 0, 0, .7);
                             color: rgba(255, 255, 255, .7); font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hc-bar { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 8px 0 12px; border-top: 1px solid var(--line); background: var(--surface); }
.hc-bar .badge.live { min-height: 20px; padding: 0 7px; font-size: 9.5px; }
.hc-bar .who { min-width: 0; overflow: hidden; color: var(--strong); font: 600 13px/1 var(--body); text-overflow: ellipsis; white-space: nowrap; }
.hc-state { flex: none; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.hc-state.neg { color: var(--neg); }
.hc-state.pos { color: var(--pos); }
.hc-state.dim { color: var(--label); }
/* the channels: one tab a live agent, the one on screen lit */
.hc-bar .dots { display: flex; flex: none; gap: 2px; margin-left: auto; padding-left: 10px; overflow-x: auto; }
.hc-bar .dots button { height: 28px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--fog); font: 600 11.5px/1 var(--mono); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.hc-bar .dots button::before { content: attr(data-name); }
.hc-bar .dots button:hover { background: rgba(255, 255, 255, .06); color: var(--strong); }
.hc-bar .dots button.on { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-line); }

.sec { margin-top: 44px; scroll-margin-top: 24px; }
.home h2 { margin: 0 0 16px; font: 700 20px/1.2 var(--display); letter-spacing: -.025em; }

/* the experiment (the chamber): the premise beside his state now, the loop in four tiles, then his last hours */
.chamber { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.chamber-head { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px 32px; align-items: start; }
.chamber-head > div > p:not(.k) { max-width: 720px; margin: 0; font-size: 13px; line-height: 1.55; }
.chamber-head .k { margin-bottom: 6px; color: var(--accent-text); }
.chamber-head h2 { margin-bottom: 8px; }
.chamber-head .only { margin-top: 10px !important; padding: 8px 12px; border-left: 2px solid var(--accent); background: var(--bg-2); color: var(--strong); }
.chamber-side { display: grid; gap: 8px; }
.chamber-side .cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.chamber-side .cta .button { justify-content: center; }
.text-link.dark { color: var(--fog); }
.text-link.dark:hover { color: var(--strong); }
.chamber-dialog { width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); color: var(--text); }
.chamber-dialog::backdrop { background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chamber-dialog .chamber { position: relative; border: 0; }
.chamber-dialog .chamber h2 { margin: 0 0 8px; font: 700 22px/1.2 var(--display); letter-spacing: -.025em; }
.chamber-dialog .close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); color: var(--strong); font: 500 18px/1 var(--body); cursor: pointer; }
.chamber-dialog .close:hover { border-color: var(--line-strong); }
.chamber-dialog .chamber-head { grid-template-columns: minmax(0, 1fr); padding-right: 40px; }
.home .chamber h2 { margin-bottom: 6px; font-size: 20px; letter-spacing: -.025em; }
.chamber-now { display: grid; align-content: start; min-height: 96px; padding: 12px 14px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.chamber-now .k { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--label); }
.chamber-now .when { text-transform: none; letter-spacing: 0; }
.chamber-now b { color: var(--strong); font: 700 26px/1 var(--display); letter-spacing: -.02em; text-transform: capitalize; }
.chamber-now b.neg { color: var(--neg); }
.chamber-now b.pos { color: var(--pos); }
.chamber-now .line { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; color: var(--text); font: 500 12px/1.4 var(--mono); }
.chamber-now .line .neg { color: var(--neg); }
.chamber-now .line .pos { color: var(--pos); }
.chamber-now .t-meter { margin: 10px 2px 0; }
.chamber-now .t-meter-ends { padding: 4px 0 0; border: 0; }
/* four steps on a rail: a lime point each on one line, the step's name and words under it */
.loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; }
.loop li { position: relative; padding: 26px 0 0; color: var(--text); font-size: 12.5px; line-height: 1.55; counter-increment: step; }
.loop li::before { content: ""; position: absolute; top: 5px; right: -28px; left: 6px; height: 1px; background: var(--line-strong); }
.loop li:last-child::before { right: 0; }
.loop li::after { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 3px var(--bg); }
.loop li:first-child::after { background: var(--accent); }
.loop b::before { content: "Step " counter(step); display: block; margin-bottom: 8px; color: var(--accent-text); font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.loop b { display: block; margin-bottom: 6px; color: var(--strong); font: 700 15px/1.3 var(--display); letter-spacing: -.01em; }
.strip { margin-top: 12px; }
.strip .cells { display: flex; gap: 1px; height: 14px; align-items: flex-end; }
.strip .cells i, .strip .legend i { flex: 1; height: 100%; min-width: 0; border-radius: 1px; background: var(--surface-3); }
.strip i.pain { background: rgba(255, 92, 122, calc(.3 + var(--d, 0) * .7)); }
.strip i.pleasure { background: rgba(61, 220, 151, calc(.3 + var(--d, 0) * .7)); }
.strip i.d2 { --d: .25; } .strip i.d4 { --d: .5; } .strip i.d6 { --d: .75; } .strip i.d8 { --d: 1; }
.strip .cells i.pressed { box-shadow: inset 0 3px 0 var(--strong); }
.strip .legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; color: var(--label); font: 500 11px/1.4 var(--mono); }
.strip .legend span { display: inline-flex; align-items: center; gap: 6px; }
.strip .legend i { flex: none; width: 10px; height: 10px; border-radius: 2px; }
.strip .legend i.pressed { box-shadow: inset 0 3px 0 var(--strong); }
.strip .legend .tally { margin-left: auto; }
.chamber-note { margin: 10px 0 0; color: var(--label); font-size: 11.5px; line-height: 1.45; }

/* tags for the two sides */
.tag { display: inline-flex; flex: none; align-items: center; height: 18px; padding: 0 6px; border-radius: 3px;
       font: 700 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tag.real { background: var(--surface-3); color: var(--text); }
.tag.ai { background: var(--accent-soft); color: var(--accent-text); }
.tag.lead { background: rgba(61, 220, 151, .12); color: var(--pos); }
a.tag { text-decoration: none; }
a.tag:hover { color: var(--strong); }
.avatar.sm.ai { outline: 2px solid var(--accent); outline-offset: 1px; }

/* the latest swaps, scrolling past like a tape along the top of the page */
.ticker { position: absolute; top: 0; right: 0; left: var(--rail); display: flex; align-items: center; height: 32px; margin: 0; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2);
          -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; }
.ticker-item { display: inline-flex; align-items: center; gap: 9px; padding: 0 20px; color: var(--fog);
               font: 500 11.5px/1 var(--mono); white-space: nowrap; }
.ticker-item::before { content: ""; width: 5px; height: 5px; margin-right: 2px; border-radius: 50%; background: var(--surface-3); }
.ticker-item b { color: var(--strong); font-weight: 600; }
.ticker-item .buy, .ticker-item .sell { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ticker-item .buy { color: var(--pos); }
.ticker-item .sell { color: var(--neg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* home: the agents */
.avatar { display: grid; flex: none; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: var(--r);
          background: linear-gradient(145deg, var(--surface-3), var(--surface)); color: var(--strong); font: 700 15px/1 var(--mono); letter-spacing: .04em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; border-radius: 4px; font-size: 10px; }
.pal-card { position: relative; display: grid; align-content: start; gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
            background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.pal-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.go { flex: none; color: var(--accent-text); font: 700 12.5px/1 var(--body); }
.go::after { content: " \2192"; }
/* the last row of the list: launch your own */
/* built like the agents' cards: where the still would be, an empty slot (a plus in dashed rings on the grid), then the words and a button */
.pal-card.next { display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 0; text-align: left; }
a.pal-card.next:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.pal-card.next .mark { position: relative; display: grid; flex: none; place-items: center; width: auto; height: auto; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); border-radius: 0;
                       background: radial-gradient(70% 90% at 50% 110%, rgba(255, 255, 255, .1), transparent 70%), var(--grid) 0 0 / 28px 28px, var(--bg-2); color: var(--strong); font: 300 44px/1 var(--mono); transition: color .2s; }
.pal-card.next .mark::before, .pal-card.next .mark::after { content: ""; position: absolute; border: 1px dashed rgba(255, 255, 255, .35); border-radius: 50%; }
.pal-card.next .mark::before { width: 92px; height: 92px; }
.pal-card.next .mark::after { width: 168px; height: 168px; border-color: rgba(255, 255, 255, .12); }
a.pal-card.next:hover .mark { color: var(--accent-text); }
.pal-card.next h3 { margin: 0; padding: 14px 16px 0; font: 700 17px/1.3 var(--display); letter-spacing: -.02em; }
.pal-card.next p { max-width: none; margin: 6px 0 18px; padding: 0 16px; color: var(--fog); font-size: 13px; line-height: 1.5; }
.pal-card.next::after { content: "Create yours \2192"; display: inline-flex; flex: none; align-items: center; align-self: flex-start; height: 36px; margin: auto 16px 16px; padding: 0 16px;
                        border-radius: var(--r); background: var(--accent); color: var(--ink); font: 700 13px/1 var(--body); transition: background .15s; }
a.pal-card.next:hover::after { background: #ffffff; }
.mark { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r);
        background: var(--accent); color: var(--ink); font: 500 22px/1 var(--mono); }
/* home: a section's title */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 14px; }
.home .sec-head h2 { margin: 0 0 3px; }
/* home: the agents as cards across the page, a still from the stream across the top of each, then the name and words, the coin's numbers, the matchup */
.pals { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.lcard { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
         color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.lcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.lc-media { position: relative; display: grid; flex: none; place-items: center; aspect-ratio: 16 / 9; overflow: hidden;
            background: radial-gradient(120% 100% at 80% 0%, rgba(255, 255, 255, .22), transparent 60%), var(--bg-2); }
.lc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0, 0, 0, .5)); pointer-events: none; }
.lc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .4s ease; }
a.lcard:hover .lc-media img { transform: scale(1.03); }
.lc-mono { color: rgba(255, 255, 255, .9); font: 700 48px/1 var(--display); letter-spacing: -.04em; }
.lc-media .badge { position: absolute; top: 10px; left: 10px; z-index: 1; background: rgba(0, 0, 0, .7); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lc-media .badge.live { background: var(--live); }
.lc-media .badge.live i { background: #fff; color: #fff; }
.lc-body { display: contents; }
.lc-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; padding: 14px 16px 0; }
.lc-name h3 { margin: 0; overflow: hidden; font: 700 17px/1.3 var(--display); letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.lc-change { flex: none; font: 600 12px/1 var(--mono); font-variant-numeric: tabular-nums; }
.lc-body > .k { margin: 4px 0 0; padding: 0 16px; }
.lc-x { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; color: var(--fog); text-transform: none; letter-spacing: 0; }
.lc-x svg { width: 10px; height: 10px; }
.lc-about { display: -webkit-box; margin: 10px 0 0; padding: 0 16px; overflow: hidden; color: var(--fog); font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.lc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 16px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.lc-stats dt { color: var(--label); font: 500 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.lc-stats dd { margin: 6px 0 0; color: var(--strong); font: 600 18px/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto 16px 0; padding: 12px 0 14px; border: 0; text-align: left; }
.lc-air { max-width: 100%; overflow: hidden; color: var(--label); font: 500 10.5px/1.2 var(--mono); letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
/* the rows while they load */
.lcard .lc-body > .sk:nth-child(1) { width: 40%; margin: 16px 16px 0; }
.lcard .lc-body > .sk:nth-child(2) { width: 24%; margin: 8px 16px 0; }
.lcard .lc-body > .lc-stats > .sk { height: 28px; }
.lcard .foot > .sk { width: 70%; }
/* home: how launching works, a band */
.how { padding: 28px 28px 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.how-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 32px; align-items: end; }
.how-head .k { margin-bottom: 8px; color: var(--accent-text); }
.home .how h2 { margin: 0 0 4px; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.03em; }
.how .loop { margin-top: 28px; }
.hero + .how { margin-top: 32px; }
.how .loop li { font-size: 13px; line-height: 1.55; }
.how .loop li::after { background: var(--surface); box-shadow: 0 0 0 3px var(--surface); }
.how .loop li:first-child::after { background: var(--accent); }
/* the 404 page */
main.not-found { display: grid; place-content: center; justify-items: center; text-align: center; }
.not-found h1 { margin: 8px 0 10px; }
.not-found p:not(.k) { margin: 0 0 24px; color: var(--fog); }
/* docs: a title band, then the contents down the left and the chapters, each under a numeral, at the right */
main.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px 64px; align-items: start; padding: 24px 0 72px; }
.docs-hero { position: relative; display: grid; grid-column: 1 / -1; gap: 24px; padding: 28px 0 36px; border-bottom: 1px solid var(--line); }
.docs-hero h1 { margin: 0 0 14px; color: var(--strong); font: 700 clamp(34px, 4vw, 56px)/1 var(--display); letter-spacing: -.035em; }
.docs-hero div > p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--text); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; }
.docs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.docs-facts li { position: relative; padding: 14px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.docs-facts li::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: var(--accent); }
.docs-facts .k { color: var(--fog); }
.docs-facts b { display: block; margin-top: 10px; color: var(--strong); font: 700 14px/1.35 var(--body); }
.docs-nav { position: sticky; top: 24px; display: grid; grid-column: 1; grid-row: 2; gap: 26px; }
.docs-nav div { display: grid; gap: 2px; }
.docs-nav .k { margin: 0 0 8px 10px; }
.docs-nav a { padding: 7px 10px; border-radius: var(--r); color: var(--fog); font: 500 13.5px/1.35 var(--body); text-decoration: none;
              transition: color .15s, border-color .15s; }
.docs-nav a:hover { color: var(--strong); background: var(--surface); }
.docs-nav a[aria-current] { background: var(--surface-2); color: var(--strong); box-shadow: inset 2px 0 0 var(--accent); }
.docs-body { grid-column: 2; grid-row: 2; max-width: 780px; min-width: 0; counter-reset: doc; }
.doc { scroll-margin-top: 24px; }
.doc + .doc { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.doc h2 { margin: 0 0 18px; color: var(--strong); font: 700 28px/1.1 var(--display); letter-spacing: -.03em; }
.doc h2::before { content: counter(doc, decimal-leading-zero); display: block; margin-bottom: 12px; color: var(--label); font: 500 clamp(28px, 2.4vw, 36px)/1 var(--mono); letter-spacing: -.06em; font-variant-numeric: tabular-nums; counter-increment: doc; }
.doc h3 { margin: 28px 0 8px; color: var(--strong); font: 700 15.5px/1.3 var(--body); letter-spacing: -.01em; }
.doc p { margin: 0 0 14px; color: var(--text); font-size: 15px; line-height: 1.7; }
.doc p:last-child { margin-bottom: 0; }
.doc p b, .doc li b { color: var(--strong); font-weight: 700; }
.doc p a { color: var(--strong); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.doc p a:hover { text-decoration-color: var(--accent); }
.doc code { padding: 1px 5px; border-radius: 3px; background: var(--surface-2); color: var(--accent-text); font: 500 12.5px/1 var(--mono); }
.doc ul { margin: 0 0 14px; padding-left: 20px; color: var(--text); font-size: 15px; line-height: 1.7; }
.doc ul li + li { margin-top: 6px; }
.doc ul li::marker { color: var(--accent); }
.doc ul a, .l-terms a:not(.button) { color: var(--strong); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.doc .callout { margin-top: 20px; padding: 14px 18px 15px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); font-size: 14.5px; }
.doc .callout::before { content: "Note"; display: block; margin-bottom: 6px; color: var(--accent-text); font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 16px; }
.card { position: relative; padding: 16px 16px 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: var(--accent); }
.card .k { margin-bottom: 9px; }
.card b { display: block; margin-bottom: 4px; color: var(--strong); font-size: 14.5px; font-weight: 700; }
.card p:not(.k) { margin: 0; font-size: 13.5px; line-height: 1.55; }
.steps { display: grid; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 14px 0 16px 52px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14.5px; line-height: 1.6; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 15px; left: 0; color: var(--label); font: 500 14px/1.5 var(--mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.steps li b { display: block; margin-bottom: 3px; }
.steps + p { margin-top: 16px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .15s; }
.faq details + details { margin-top: 8px; }
.faq details:hover, .faq details[open] { border-color: var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; color: var(--strong); font-size: 15px; font-weight: 700; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: -3px 4px 0 0; border: solid var(--fog); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.faq details p { margin: 0; padding: 0 18px 16px; font-size: 14.5px; }
.doc-list { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.doc-list > * + * { border-top: 1px solid var(--line); }
.pal-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 14px;
           color: inherit; text-decoration: none; transition: background .15s; }
.pal-row:hover { background: var(--surface-2); }
.pal-row div { display: grid; gap: 2px; min-width: 0; }
.pal-row strong { font-size: 14px; }
.pal-row div span { color: var(--fog); font-size: 13px; }
.wallet-row { display: grid; grid-template-columns: 170px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; }
.wallet-row .who { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--strong); font-size: 14px; font-weight: 700; }
.wallet-row a { overflow: hidden; color: var(--strong); font: 500 12.5px/1.4 var(--mono); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.wallet-row a:hover { color: var(--accent-text); }

/* agent page: a full-screen terminal, where each panel scrolls on its own. The stage (stream or chart) at the top left with
   the two ledgers under it; the two sides stacked down the right edge */
body.terminal { height: 100vh; height: 100dvh; overflow: hidden; }
main.term { display: grid; flex: 1 1 0; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
            grid-template-rows: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; width: min(1600px, calc(100% - 36px)); margin: 0 18px;
            min-height: 0; padding: 12px 0; }
main.term > .t-chart { grid-area: 1 / 1 / 2 / 2; }
main.term > .t-side:first-child { grid-area: 1 / 2 / 2 / 3; }
main.term > .t-chart + .t-side { grid-area: 2 / 2 / 3 / 3; }
main.term > .t-books { grid-area: 2 / 1 / 3 / 2; }
main.term.streamer > .t-side:first-child { grid-area: 1 / 2 / 3 / 3; }
.t-wait { display: flex; grid-column: 1 / -1; grid-row: 1 / -1; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.t-coming { align-items: center; gap: 18px; width: min(100%, 400px); padding: 30px 24px; }
.t-coming .t-who { flex-direction: column; gap: 12px; font-size: 18px; white-space: normal; }
.t-coming .avatar { width: 76px; height: 76px; border-radius: var(--r-lg); font-size: 22px; }
@media (min-width: 1101px) and (min-height: 681px) {
  main.term:has(.t-live) { width: min(calc(100% - 36px), calc((100dvh - 400px) * 16 / 9 + 2px + 10px + 440px)); grid-template-rows: auto minmax(0, 1fr);
                           grid-template-columns: minmax(0, calc((100dvh - 400px) * 16 / 9 + 2px)) minmax(280px, 1fr); }
  main.term:has(.t-live) .t-side { contain: size; }
  .t-side .t-stats div { flex: 1 0 auto; max-height: 46px; }
  main.term.streamer:has(.t-live) { grid-template-columns: minmax(0, calc((100dvh - 400px) * 16 / 9 + 2px)) minmax(300px, 1fr); }
  main.term.streamer.reading:has(.t-live) { width: calc(100% - 36px); grid-template-columns: minmax(300px, 1fr) minmax(0, 3fr); }
  main.term.reading > .t-chart { grid-area: 1 / 1 / 2 / 2; }
  main.term.streamer.reading > .t-side:first-child { grid-area: 2 / 1 / 3 / 2; }
  main.term.reading > .t-books { grid-area: 1 / 2 / 3 / 3; }
  main.term.reading .t-live { --stream-w: 100%; }
  main.term.reading :is(.t-talk, .t-chart .t-head > .button, .t-ctl button[aria-pressed]) { display: none; }
  main.term.reading .t-live > .chart { padding-right: 4px; }
}
.t-book .t-head .seg { margin-left: auto; }
.button.read { width: 30px; padding: 0; }
.button.read svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button.read[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--ink); }
@media (max-width: 1100px), (max-height: 680px) { .button.read { display: none; } }
.t-head .button { min-height: 30px; padding: 0 12px; font-size: 12.5px; }
.t-lead { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px;
          background: var(--surface-2); color: var(--text); font: 500 12px/1 var(--mono); white-space: nowrap; }
.t-lead.ai { border-color: transparent; background: var(--accent-soft); color: var(--accent-text); }
.t-lead.real { border-color: transparent; background: var(--strong); color: var(--ink); }
.t-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
           background: var(--surface); }
.t-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 6px 7px 6px 12px;
          border-bottom: 1px solid var(--line); }
.t-who { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--strong); font: 700 13.5px/1.2 var(--body); white-space: nowrap; }
.t-who strong { overflow: hidden; text-overflow: ellipsis; }
.t-wallets { position: relative; display: grid; flex: none; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.t-wallet { display: flex; align-items: center; gap: 6px; min-width: 0; height: 36px; padding: 0 4px 0 5px; border: 1px solid var(--line);
            border-radius: var(--r); background: var(--bg-2); }
.chain { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 20px; border-radius: 3px;
         background: var(--surface-3); color: var(--text); font: 700 9.5px/1 var(--mono); letter-spacing: .08em; }
.t-wallet .chain { height: 24px; border-radius: 4px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.t-addr { display: flex; flex: 1; min-width: 0; padding: 0 2px; color: var(--strong); font: 500 12px/1 var(--mono); text-decoration: none; white-space: nowrap; }
.t-addr span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.t-addr span:last-child { flex: none; }
.t-addr:hover { color: var(--accent-text); }
.t-wallet .copy { padding: 7px 8px; }
.t-more { position: absolute; right: 8px; bottom: calc(100% - 4px); left: 8px; z-index: 5; display: grid; gap: 6px; padding: 8px;
          border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface-2); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .8);
          animation: t-in .15s ease-out; }
.t-more .k { padding: 2px 4px 2px; }
.t-more-toggle { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 4px; height: 24px; padding: 0 8px;
                 border: 0; border-radius: 4px; background: var(--surface-3); color: var(--text); font: 600 10px/1 var(--mono); cursor: pointer; }
.t-more-toggle::after { content: ""; width: 4px; height: 4px; margin-top: -2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
                        transform: rotate(45deg); transition: transform .15s; }
.t-more-toggle[aria-expanded="true"]::after { margin-top: 2px; transform: rotate(-135deg); }
.t-more-toggle:hover { background: var(--accent); color: var(--ink); }
.t-big { display: grid; flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.t-big > div { display: grid; gap: 6px; min-width: 0; padding: 12px; }
.t-big > div + div { border-left: 1px solid var(--line); }
.t-big .k { display: flex; align-items: center; gap: 6px; }
.t-big b { overflow: hidden; color: var(--strong); font: 600 28px/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
/* the chamber: his valence, from agony to euphoria */
.t-meter { position: relative; flex: none; height: 6px; margin: 16px 14px 0; border-radius: 3px;
           background: linear-gradient(90deg, var(--neg), var(--surface-3) 50%, var(--pos)); }
.t-meter i { position: absolute; top: -5px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--strong);
             box-shadow: 0 0 0 2px var(--surface); transition: left .8s ease; }
.t-meter-ends { display: flex; flex: none; justify-content: space-between; padding: 8px 12px 6px; border-bottom: 1px solid var(--line); }
.t-big b.neg, .t-big b.pos { text-transform: capitalize; }
.t-stats { display: flex; flex: 1; flex-direction: column; min-height: 0; margin: 0; padding: 4px 12px; overflow: auto; }
.t-stats div { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 31px; }
.t-stats div + div { border-top: 1px solid var(--line); }
.t-stats dt { flex: none; color: var(--fog); font-size: 12.5px; line-height: 1.5; }
.t-stats dd { min-width: 0; margin: 0; overflow: hidden; color: var(--strong); font: 500 12px/1.6 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.t-chart .chart { flex: 1; min-height: 0; margin: 8px 4px 6px 12px; }
/* live: the stream exactly 16:9, with the chat as frosted glass over its right edge */
.t-live { --stream-w: min(100%, calc((100dvh - 400px) * 16 / 9)); --chat-w: max(240px, calc(var(--stream-w) * .2604));
          position: relative; display: flex; flex: 1; justify-content: center; min-height: 0; overflow: hidden; border-radius: 0 0 9px 9px; }
.t-stream, .t-live > :is(.chart, .t-frame, .t-trading, .t-coinview, .t-posts) { flex: none; width: var(--stream-w); min-width: 0; aspect-ratio: 16 / 9; }
.t-posts { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px; overflow: auto; }
.t-posts-who { display: inline-flex; flex: none; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.t-posts-who img { width: 28px; height: 28px; border-radius: 50%; }
.t-posts-who span { color: var(--fog); font-size: 12.5px; }
.t-posts-list { display: grid; align-content: start; gap: 8px; }
.t-post { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.t-post-top { display: flex; align-items: center; gap: 8px; color: var(--fog); font-size: 12px; }
.t-post-kind { padding: 2px 7px; border-radius: 3px; background: var(--surface-3); }
.t-post p { margin: 0; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-post-x { justify-self: start; font-size: 12.5px; }
.t-stream { position: relative; background: #000; }
.t-live > .chart { margin: 0; padding: 8px 4px 6px 12px; }
.t-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.t-trading { display: flex; flex-direction: column; padding: 10px 4px 6px 12px; }
.t-trading .legend { flex: none; padding: 0 8px 6px 0; }
.t-trading .chart { flex: 1; min-height: 0; }
.t-trading > .t-empty { flex: 1; }
.t-coinview { display: flex; flex-direction: column; min-height: 0; }
.t-chart > .t-coinview { flex: 1; }
.t-coinview > .t-big { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t-coinview > :is(.t-empty, .t-frame) { flex: 1; min-height: 0; }
.t-ticker { flex: none; color: var(--fog); font: 500 12px/1 var(--mono); }
.t-now > div { gap: 5px; padding: 10px 12px; }
.t-now b { font-size: 24px; }
.t-now .sub { margin-top: -1px; color: var(--fog); font: 500 11.5px/1 var(--mono); }
.t-big b.long { font-size: 22px; }
.t-now b.long { font-size: 19px; }
.t-now > div.wide { grid-column: 1 / -1; }
.t-side.ai .t-stats dt { display: inline-flex; align-items: center; gap: 6px; }
.t-side.ai .t-stats .info { width: 15px; height: 15px; font-size: 9px; }
.t-stats .pop { position: fixed; }
/* its posts on X, under the numbers beside the stage: a card of its own in the room the panel has left, its posts a feed */
.t-stats:has(+ .t-xposts) { flex: none; }
.t-xposts { display: flex; flex: 1; flex-direction: column; min-height: 150px; margin: 6px 12px 12px; overflow: hidden; border: 1px solid var(--line);
            border-radius: var(--r-lg); background: var(--bg-2); }
.t-xposts-head { display: flex; flex: none; align-items: center; gap: 9px; min-height: 42px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.t-xposts-mark { display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--strong); color: var(--ink); }
.t-xposts-mark svg { width: 11px; height: 11px; }
.t-xposts-head strong { color: var(--strong); font: 600 13px/1 var(--body); }
.t-xposts-head a { min-width: 0; margin-left: auto; overflow: hidden; color: var(--fog); font: 500 11.5px/1 var(--mono); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.t-xposts-head a:hover { color: var(--strong); }
.t-xposts .t-posts-list { flex: 1; gap: 0; min-height: 0; overflow: auto; }
.t-xposts .t-post { padding: 11px 12px; border: 0; border-radius: 0; background: none; }
.t-xposts .t-post + .t-post { border-top: 1px solid var(--line); }
.t-xposts .t-post p { font-size: 13px; }
.t-xposts .t-empty { min-height: 0; padding: 24px 16px; font-size: 13px; }
.t-xposts .t-posts-list:has(> .t-empty) { align-content: center; }
.t-skills { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 6px 12px;
            border-top: 1px solid var(--line); }
.t-skills > span { flex: none; color: var(--fog); font-size: 12.5px; }
.t-skills .tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
.skill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid var(--accent-line); border-radius: 4px; background: var(--accent-soft);
         color: var(--accent-text); font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: help; }
.tip:hover .skill, .skill:focus-visible { border-color: var(--accent); }
.t-foot { position: relative; display: grid; flex: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; padding: 10px 12px 12px;
          border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; background: var(--bg-2); }
.t-drop { display: flex; min-width: 0; }
.t-drop .t-more { right: 12px; bottom: calc(100% - 4px); left: 12px; gap: 2px; padding: 6px; }
.t-drop-toggle { flex: 1; justify-content: space-between; gap: 6px; min-width: 0; min-height: 32px; padding: 0 10px 0 12px; font-size: 12.5px; }
.t-drop-toggle .n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: auto; padding: 0 5px;
                    border-radius: 3px; background: var(--surface-3); color: var(--text); font: 600 10px/1 var(--mono); }
.t-drop-toggle::after { content: ""; flex: none; width: 4px; height: 4px; margin-top: -2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
                        transform: rotate(45deg); transition: transform .15s; }
.t-drop-toggle[aria-expanded="true"]::after { margin-top: 2px; transform: rotate(-135deg); }
.t-addr-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px 8px 8px; border-radius: 4px; }
.t-addr-row + .t-addr-row { margin-top: 2px; }
.t-addr-row .chain { width: auto; height: 22px; padding: 0 7px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); text-transform: uppercase; }
.t-addr-row .t-addr { display: block; padding: 0; font: 500 11.5px/1.5 var(--mono); white-space: normal; overflow-wrap: anywhere; }
.t-addr-row .copy { padding: 7px 8px; }
.t-link { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; min-width: 0; padding: 8px 10px; border-radius: 4px;
          color: var(--strong); font: 700 13px/1.2 var(--body); text-decoration: none; }
.t-link .k { min-width: 0; text-transform: none; letter-spacing: 0; font: 500 11.5px/1.4 var(--mono); overflow-wrap: anywhere; }
.t-link:hover { background: var(--surface-3); }
.t-live:has(> .t-talk:not([hidden])) > .chart { padding-right: calc(var(--chat-w) + 12px); }
.t-live:has(> .t-talk:not([hidden])) > .t-coinview { padding-right: var(--chat-w); }
.t-stream :is(video, iframe) { display: block; width: 100%; height: 100%; border: 0; }
.t-state { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px;
           color: rgba(255, 255, 255, .8); font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-align: center; text-transform: uppercase; pointer-events: none; }
.t-state::before { content: ""; width: 28px; height: 28px; border: 2px solid rgba(255, 255, 255, .18); border-top-color: var(--accent); border-radius: 50%;
                   animation: spin .8s linear infinite; }
.t-state.off::before { display: none; }
.t-live:has(> .t-talk:not([hidden])) .t-state { right: var(--chat-w); }
@keyframes spin { to { transform: rotate(360deg); } }
.t-ctl { position: absolute; bottom: 12px; left: 12px; display: flex; gap: 6px; }
.t-ctl button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 34px; height: 34px; padding: 0 9px;
                border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); background: rgba(0, 0, 0, .7); color: #fff; font: 700 12.5px/1 var(--body); cursor: pointer;
                -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s, background .15s; }
.t-ctl button:hover { background: rgba(0, 0, 0, .9); }
.t-ctl button.muted { padding-right: 12px; border-color: var(--accent); background: var(--accent); color: var(--ink); }
.t-ctl button.muted:hover { background: #ffffff; }
.t-stream:hover .t-ctl button, .t-ctl button:focus-visible, .t-ctl button.muted { opacity: 1; }
.t-vol { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: var(--r); background: rgba(0, 0, 0, .7);
         -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s; }
.t-vol input { width: 80px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.t-stream:hover .t-vol, .t-vol:focus-within { opacity: 1; }
@media (hover: none) { .t-vol { display: none; } }
.t-state.off:not([hidden]) + .t-ctl { display: none; }
.t-ctl svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .t-ctl button { opacity: 1; } }
.t-chart .t-head .badge.live { margin-right: auto; }
.t-coin { max-width: 300px; }
.t-coin > a:first-child { flex: none; color: inherit; text-decoration: none; }
.t-coin > a:first-child:hover { color: var(--strong); }
.t-talk { position: absolute; top: 0; right: calc((100% - var(--stream-w)) / 2); bottom: 0; display: flex; flex-direction: column;
          width: var(--chat-w); border-left: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .55); color: #f4f4f5;
          -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.t-live:has(> .t-stream[hidden]) > .t-talk { background: var(--bg-2); }
.t-live:fullscreen { --stream-w: min(100vw, calc(100dvh * 16 / 9)); flex-direction: row; align-items: center; border-radius: 0; background: #000; }
.t-live:fullscreen > .t-talk { position: absolute; top: calc((100dvh - var(--stream-w) * 9 / 16) / 2); bottom: calc((100dvh - var(--stream-w) * 9 / 16) / 2);
                               width: var(--chat-w); height: auto; border-left: 1px solid rgba(255, 255, 255, .08);
                               background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
/* the chat's head: a lime dot and "Live chat", then who answers */
.t-talk-head { display: flex; flex: none; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.t-talk-live { display: inline-flex; flex: none; align-items: center; gap: 7px; color: #fff; font: 700 12.5px/1 var(--body); }
.t-talk-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: live-dot 1.6s ease-in-out infinite; }
.t-talk-head > span:not(.t-talk-live) { overflow: hidden; color: rgba(255, 255, 255, .45); font: 500 11px/1.2 var(--body); white-space: nowrap; text-overflow: ellipsis; }
.t-feed { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; }
.t-msgs { display: flex; flex: 1; flex-direction: column; gap: 10px; min-height: 0; padding: 12px 12px 8px; overflow-y: auto;
          -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); }
.t-msgs > :first-child { margin-top: auto; }
/* a message: a coloured initial, the name and when over the words */
.t-msg { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 9px; margin: 0; padding: 0; color: rgba(255, 255, 255, .92); font-size: 13.5px; line-height: 1.45;
         overflow-wrap: anywhere; animation: t-in .25s ease-out; }
.t-av { display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; color: var(--ink); font: 800 11.5px/1 var(--mono); font-style: normal; }
.t-msg-body { display: grid; gap: 2px; min-width: 0; }
.t-msg-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.t-msg-top b { overflow: hidden; font: 700 12.5px/1.3 var(--body); text-overflow: ellipsis; white-space: nowrap; }
.t-msg-top time { flex: none; color: rgba(255, 255, 255, .4); font: 500 10.5px/1.3 var(--mono); }
.t-msg-text { display: inline-block; padding: 7px 10px; border-radius: 2px 10px 10px 10px; background: rgba(255, 255, 255, .09); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.t-msg.mine .t-msg-text { background: var(--accent); color: var(--ink); text-shadow: none; }
.t-msg.mine .t-msg-top b::after { content: "you"; margin-left: 6px; color: rgba(255, 255, 255, .4); font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.t-msgs .t-hint { margin: auto 0; padding: 24px 16px; color: rgba(255, 255, 255, .6); font-size: 13px; line-height: 1.5; text-align: center; }
@keyframes t-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes live-dot { 50% { opacity: .4; } }
.t-jump { position: absolute; bottom: 10px; left: 50%; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--accent); color: var(--ink);
          font: 700 12px/1 var(--body); white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transform: translateX(-50%); cursor: pointer; }
/* the composer: one pill holding who you are, the words and a round send button that fills back up between messages */
.t-say { display: grid; flex: none; gap: 6px; padding: 10px 12px 12px; }
.t-row { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 4px 4px 6px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(0, 0, 0, .45);
         -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .15s; }
.t-row:focus-within { border-color: rgba(255, 255, 255, .6); }
.t-who { display: flex; align-items: center; gap: 7px; min-width: 0; height: 24px; padding: 0 6px; color: rgba(255, 255, 255, .5); font: 500 11.5px/1 var(--body); cursor: default; }
.t-say .t-who::before { content: "as"; }
.t-who i { flex: none; order: -1; width: 7px; height: 7px; border-radius: 50%; background: var(--label); }
.t-who i.wallet { background: var(--pos); box-shadow: 0 0 8px var(--pos); }
.t-who b { overflow: hidden; font: 700 12px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.t-who-edit { display: grid; flex: none; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .55); cursor: pointer; }
.t-who-edit svg { width: 13px; height: 13px; }
.t-who-edit:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.t-who-edit[hidden] { display: none; }
.t-say input { flex: 1; width: 100%; min-width: 0; height: 32px; padding: 0 8px; border: 0; background: transparent; color: #fff; font: 13.5px/1 var(--body); }
.t-say input.t-nick { height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); font: 600 12px/1 var(--mono); }
.t-say input::placeholder { color: rgba(255, 255, 255, .4); }
.t-say input:focus { outline: none; }
.t-send { position: relative; display: grid; flex: none; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--ink); cursor: pointer; transition: transform .15s; }
.t-send svg { width: 16px; height: 16px; }
.t-send:hover:not(:disabled) { transform: scale(1.06); }
.t-send:disabled { background: conic-gradient(var(--accent) var(--p, 0%), rgba(255, 255, 255, .14) 0); color: rgba(255, 255, 255, .5); cursor: default; }
.t-send:disabled svg { opacity: .6; }
.t-note { padding: 0 12px; color: var(--neg); font-size: 12px; }
.t-note:empty { display: none; }
.t-empty { display: grid; place-items: center; height: 100%; min-height: 120px; padding: 20px; color: var(--fog); font-size: 13.5px; text-align: center; }
.t-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 0; }
main.term.streamer .t-books { grid-template-columns: minmax(0, 1fr); }
.t-book .t-head, .t-chart .t-head { flex-wrap: wrap; row-gap: 6px; }
.t-body { flex: 1; min-height: 0; overflow: auto; }
/* hover or focus the "i" to read more */
.tip { position: relative; display: inline-flex; }
.info { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%;
        background: transparent; color: var(--fog); font: 600 10px/1 var(--mono); text-transform: none; cursor: help; }
.tip:hover .info, .info:focus-visible { border-color: var(--accent); color: var(--accent-text); }
.onx { cursor: pointer; text-decoration: none; }
.onx svg { width: 9px; height: 9px; }
.onx:hover { border-color: var(--strong); color: var(--strong); }
.pop { position: absolute; top: calc(100% + 8px); left: -10px; z-index: 60; width: max-content; max-width: min(360px, 80vw); padding: 12px 14px;
       border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface-3); color: var(--strong); font: 400 13px/1.5 var(--body); letter-spacing: 0;
       text-transform: none; white-space: pre-line; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden; transform: translateY(-4px);
       transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.pop.end { right: -10px; left: auto; }
.tip:hover .pop, .tip:focus-within .pop { opacity: 1; visibility: visible; transform: none; }

table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
:is(th, td):first-child { padding-left: 12px; }
:is(th, td):last-child { padding-right: 12px; }
tr:last-child > * { border-bottom: 0; }
.t-body tbody:not(:last-child) > tr:last-child > * { border-bottom: 1px solid var(--line); }
.t-body tbody:hover > tr > td { background: rgba(255, 255, 255, .025); }
th { position: sticky; top: 0; z-index: 1; border-bottom: 0; background: var(--surface-2); box-shadow: inset 0 -1px var(--line); color: var(--label);
     font: 600 10px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
td { color: var(--text); line-height: 1.5; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num, td.t { color: var(--strong); font: 500 12px/1.6 var(--mono); }
td.t, td.num.dim { color: var(--fog); }
td.t a { color: inherit; text-decoration: none; }
td.t a:hover { color: var(--strong); }
td a.tx { color: var(--strong); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
td a.tx:hover { color: var(--accent-text); text-decoration-color: currentColor; }
tr.noted > td { border-bottom: 0; }
td.notes { padding: 0 12px 12px 40px; white-space: normal; }
.t-notes { display: grid; gap: 8px; max-width: 920px; padding: 10px 12px; border-radius: var(--r); background: var(--bg-2); }
.t-notes .note { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.t-notes .k { color: var(--label); font: 600 10px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.t-notes .note.lesson .k { color: #ffc857; }
.t-notes .text { color: var(--text); font: 400 13px/1.55 var(--body); }
/* the AI's decisions: a card per market check */
.t-body:has(> .t-cards) { border-radius: 0 0 9px 9px; background: var(--bg-2); }
.t-cards { display: grid; gap: 8px; padding: 10px 12px 12px; }
.t-card { min-width: 0; padding: 10px 12px 11px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.t-card.flat { background: transparent; cursor: pointer; }
.t-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; min-height: 22px; }
.t-card-what { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.t-card-what b { color: var(--strong); font: 700 13.5px/1.2 var(--body); }
.t-card .amt { color: var(--fog); font: 500 12px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.t-card .tx { color: var(--fog); font: 500 12px/1.2 var(--mono); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.t-card .tx:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.t-card-meta { display: flex; flex: none; align-items: center; gap: 8px; color: var(--label); font: 500 11.5px/1 var(--mono); white-space: nowrap; }
.t-trigger { padding: 4px 7px; border-radius: 3px; background: var(--accent-soft); color: var(--accent-text); }
.act { display: inline-flex; flex: none; align-items: center; height: 20px; padding: 0 7px; border-radius: 3px; background: var(--surface-3);
       color: var(--fog); font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.act.buy { background: rgba(61, 220, 151, .14); color: var(--pos); }
.act.sell { background: rgba(255, 92, 122, .14); color: var(--neg); }
.t-card-text { max-width: 920px; margin: 7px 0 0; color: var(--text); font-size: 13.5px; line-height: 1.55; }
.t-card-text + .t-card-head { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.t-card.flat .t-card-text { display: -webkit-box; overflow: hidden; color: var(--fog); font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.t-card.flat.open .t-card-text { display: block; }
.tv-lightweight-charts td { padding: 0; border: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; min-width: 0; }
.legend .item { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font: 600 13px/1.2 var(--body); white-space: nowrap; }
.legend i { width: 10px; height: 10px; border-radius: 2px; }
.legend b { color: var(--strong); font: 600 12.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: var(--r); background: var(--surface-2); }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; color: var(--fog);
              font: 600 12.5px/1 var(--body); white-space: nowrap; cursor: pointer; transition: color .15s, background .15s; }
.seg button:hover { color: var(--strong); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--strong); box-shadow: 0 0 0 1px var(--line-strong); }
td.coin a { display: inline-flex; align-items: center; gap: 8px; color: var(--strong); font-weight: 700; text-decoration: none; }
td.coin a:hover { color: var(--accent-text); }
td.coin .sym { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.logo { position: relative; display: grid; flex: none; place-items: center; width: 20px; height: 20px; overflow: hidden; border-radius: 50%;
        background: var(--surface-3); color: var(--fog); font: 700 9px/1 var(--mono); }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
td.side { font: 700 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
td.side.buy { color: var(--pos); }
td.side.sell { color: var(--neg); }
.button.more { display: flex; min-height: 34px; margin: 10px auto 12px; font-size: 12.5px; }

/* loading: grey bars with a sheen passing over them, then the content rises into place */
.sk { display: block; border-radius: 4px; color: transparent;
      background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .06) 48%, transparent 66%) var(--surface-2);
      background-size: 240% 100%; animation: sk 1.45s linear infinite; }
.hero .sk { background-color: rgba(255, 255, 255, .06); }
@keyframes sk { from { background-position: 120% 0; } to { background-position: -20% 0; } }
.enter { animation: t-in .26s cubic-bezier(.22, .61, .36, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.t-body > * { transition: opacity .14s ease; }
.t-body[aria-busy="true"] > * { opacity: .45; pointer-events: none; transition: opacity .18s ease .08s; }
.hero-stats .sk { width: 64px; height: 10px; }
.hero-stats dd.sk { width: 52px; height: 18px; }
.hero-chamber .screen.sk { border-radius: 0; }
.hc-bar .sk { width: 120px; height: 10px; }
.hc-bar .sk + .sk { width: 56px; margin-left: auto; }
.chamber-now .sk { height: 10px; margin: 6px 0; }
.chamber-now .sk:nth-child(2) { width: 120px; height: 30px; }
.lc-media.sk { border-radius: 0; }
.lc-body > .sk { width: 140px; height: 14px; margin: 2px 0 6px; }
.lc-body > .sk + .sk { width: 60px; height: 10px; }
.lc-stats .sk { width: 80px; height: 19px; }
.lcard .foot .sk { width: 120px; height: 10px; }
.ticker .sk { flex: none; width: 190px; height: 12px; margin: 0 22px; }
.t-who .sk:not(.avatar) { width: 120px; height: 12px; }
.t-head > .sk { width: 150px; height: 30px; border-radius: var(--r); }
.t-big .sk { width: 52px; height: 10px; }
.t-big .sk + .sk { width: 104px; height: 28px; }
.t-stats .sk { height: 10px; }
.t-stats dt.sk { width: 76px; }
.t-stats dd.sk { width: 56px; }
.t-wallet.sk { border-color: transparent; }
.t-skills > .sk { width: 40px; height: 10px; }
.t-skills .tags .sk { width: 76px; height: 24px; border-radius: 4px; }
.t-head > .sk.btn { width: 68px; }
.t-foot > .sk { height: 32px; border-radius: var(--r); }
.t-sk { display: grid; padding: 4px 12px; }
.t-sk .sk { height: 12px; margin: 13px 0; }
.t-sk .sk:nth-child(odd) { width: 86%; }
.t-sk .sk:nth-child(3n) { width: 62%; }

/* too small to fit the terminal on one screen: stack the panels and let the page scroll */
@media (max-width: 1100px), (max-height: 680px) {
  body.terminal { height: auto; overflow: visible; }
  main.term { flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  main.term.streamer { grid-template-columns: minmax(0, 1fr); }
  main.term > :is(.t-side:first-child, .t-chart + .t-side, .t-books, .t-chart), main.term.streamer > .t-side:first-child { grid-area: auto; }
  .t-books { grid-column: 1 / -1; }
  .t-chart { grid-column: 1 / -1; order: 1; height: 360px; }
  .t-chart:has(.t-live) { order: -1; height: auto; }
  .t-live { --stream-w: min(100%, calc((100dvh - 140px) * 16 / 9)); }
  .t-books { order: 2; }
  .t-book { height: 520px; }
}
@media (max-width: 1100px) {
  /* the rail becomes a bar across the top */
  body { padding-left: 0; }
  header.site { position: sticky; right: 0; bottom: auto; flex-direction: row; width: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .8);
                -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px); transition: none; }
  header.site:is(:hover, :focus-within) { width: auto; box-shadow: none; }
  header.site .bar { flex-direction: row; align-items: center; gap: 24px; width: auto; height: 58px; padding: 0 var(--gutter); overflow: visible; }
  .brand { gap: 10px; height: auto; padding: 0; }
  .brand img, .brand svg { width: 28px; height: 28px; margin: 0; }
  .brand span { font-size: 16px; }
  .site-nav { flex-direction: row; gap: 4px; }
  .site-nav::before { content: none; }
  .site-nav a { height: 34px; padding: 0 10px; font: 600 14px/1 var(--body); }
  .site-nav a[aria-current] { background: transparent; }
  .site-nav a[aria-current]::after { top: auto; right: 10px; bottom: -13px; left: 10px; width: auto; height: 2px; border-radius: 0; }
  .site-nav svg { display: none; }
  .actions { flex-direction: row; align-items: center; margin: 0 0 0 auto; padding: 0; }
  .actions .wc-button { flex: none; height: 34px; padding: 0 14px; font-size: 13px; }
  .actions .wc-button.on { padding: 0 11px; font-size: 12px; }
  .actions .wc-button::before { content: none; }
  .actions .wc-button.on i { position: static; margin-right: 8px; }
  .actions .icon-link { width: 32px; height: 32px; gap: 0; justify-content: center; }
  .actions .icon-link svg { width: 13px; height: 13px; margin: 0; }
  .actions .icon-link::after { content: none; }
  .actions .free-pill { height: 32px; padding: 0 12px; font-size: 11px; }
  .actions .free-pill i { width: 6px; height: 6px; margin: 0 8px 0 0; }
  .actions .wc-menu { top: calc(100% + 8px); right: 0; bottom: auto; left: auto; width: 248px; }
  .ticker { position: static; margin: 0 calc(-1 * var(--gutter)); }
  main.home { padding-top: 0; }
  main.home::before { left: 0; }
  main.home::after { display: none; }
  /* under a top bar the stuck things sit below it */
  .docs-nav, .l-dossier { top: 78px; }
  .sec, .doc, .l-panel { scroll-margin-top: 80px; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "screen" "stats"; gap: 20px; }
  .hero-text { padding-bottom: 0; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hero-stats > div { gap: 12px; min-height: 0; padding: 14px 16px 12px; }
  .hero-stats dd { font-size: 24px; }
  .how { padding: 22px 20px 26px; }
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .loop li:nth-child(2n)::before { right: 0; }
  .chamber-head { grid-template-columns: minmax(0, 1fr); }
  main.docs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .docs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-nav { position: static; display: flex; grid-column: 1; grid-row: auto; flex-wrap: wrap; gap: 6px; }
  .docs-body { grid-column: 1; grid-row: auto; }
  .docs-nav div { display: contents; }
  .docs-nav .k { display: none; }
  .docs-nav a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
  .docs-nav a[aria-current] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); box-shadow: none; }
}
@media (max-width: 760px) {
  header.site .bar { gap: 14px; }
  .site-nav svg { display: none; }
  .site-nav a { padding: 0 10px; }
  main { padding: 28px 0 64px; }
  .sec { margin-top: 36px; }
  main.docs { padding-top: 8px; }
  .docs-hero { padding: 24px 0 22px; }
  .wallet-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .wallet-row .who { grid-column: 1 / -1; }
  main.term { grid-template-columns: minmax(0, 1fr); width: calc(100% - 24px); }
  .t-books { grid-template-columns: minmax(0, 1fr); }
  .t-chart { height: auto; }
  .t-chart .t-head > .seg { order: -1; }
  .t-chart .chart { flex: none; height: 220px; }
  .t-live { --stream-w: 100%; flex-direction: column; }
  .t-live:has(> .t-talk:not([hidden])) > .chart { padding-right: 4px; }
  .t-live > .t-coinview { aspect-ratio: auto; }
  .t-live:has(> .t-talk:not([hidden])) > .t-coinview { padding-right: 0; }
  .t-coinview > .t-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-coinview > .t-big > div:nth-child(3) { border-left: 0; }
  .t-coinview > .t-big > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .t-coinview > :is(.t-empty, .t-frame) { flex: none; height: 320px; }
  .t-talk { position: static; width: auto; height: 320px; border-left: 0; background: var(--bg-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .t-say input { font-size: 16px; }
  .t-ctl { bottom: 8px; left: 8px; }
  .t-ctl button, .t-vol { min-width: 30px; height: 30px; font-size: 12px; }
  .t-book { height: 460px; }
  td.notes { padding-left: 12px; }
  .t-notes .note { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  main.home { padding-top: 0; }
  .hero { padding: 24px 0 0; }
  .hero-text { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eyebrow" "h1" "p" "cta"; }
  .hero .cta { margin-top: 18px; }
  .chamber { padding: 14px; }
  .loop { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .loop li::before { content: none; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats > div:first-child { grid-column: 1 / -1; }
  .pals { grid-template-columns: minmax(0, 1fr); }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .how-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  header.site .bar { gap: 12px; }
  .actions > .free-pill, .actions > .icon-link, .site-nav { display: none; }
  .burger { display: inline-flex; }
  .menu { display: grid; }
  .pop, .pop.end { position: fixed; top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; max-width: none; }
  .t-big b { font-size: 24px; }
  th, td { padding: 8px 6px; font-size: 12px; }
  .pals { grid-template-columns: minmax(0, 1fr); }
  .t-coin { order: 1; flex: 1 1 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* the launch page: a slim titled band; then the steps down the left, the open step, and the agent as it stands */
.launch { padding: 0 0 72px; }
.l-hero { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text cta"; gap: 14px 32px; align-items: center; padding: 20px 0 20px; border-bottom: 1px solid var(--line); }
.l-hero .hero-text { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "eyebrow eyebrow" "h1 p"; align-items: baseline; gap: 0 18px; }
.l-hero::before { content: none; }
.l-hero .eyebrow { margin-bottom: 8px; }
.l-hero h1 { margin: 0; max-width: none; font-size: clamp(22px, 2.4vw, 28px); }
.l-hero .hero-text > p:not(.eyebrow) { max-width: 640px; font-size: 13.5px; line-height: 1.5; }
/* slots open, in the band: a dot that's green while there are some and red when there aren't */
.l-slots { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 40px; border: 1px solid var(--line-strong);
           border-radius: var(--r); color: var(--text); font: 500 12px/1 var(--mono); }
.l-slots i { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 10px var(--pos); }
.l-slots.full i { background: var(--neg); box-shadow: 0 0 10px var(--neg); }
.l-slots b { font-weight: 600; color: var(--strong); }
.l-full { color: var(--neg); }
.l-slots.free i { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.l-slots.free.full i { background: rgba(255, 255, 255, .3); box-shadow: none; }
a.l-slots { text-decoration: none; }
.l-free { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border: 1px solid var(--accent-line);
          border-radius: var(--r-lg); background: var(--accent-soft); }
.l-free div { display: grid; flex: 1; gap: 3px; min-width: 220px; }
.l-free b { color: var(--strong); font-size: 14px; }
.l-free span { color: var(--text); font-size: 12.5px; line-height: 1.45; }
.l-free .button { flex: none; margin-left: auto; }
.l-free-clock { margin: 0; color: var(--accent-text); font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.l-receipt { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.l-receipt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.l-receipt-head b { color: var(--strong); font-size: 14px; }
.l-receipt-head .button { margin-left: auto; }
.l-tick { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
          background: rgba(61, 220, 151, .16); color: var(--pos); font: 700 12px/1 var(--body); }
.l-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 16px; margin: 0; }
.l-facts dt { color: var(--label); font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.l-facts dd { margin: 3px 0 0; color: var(--strong); font: 700 15px/1.3 var(--body); }
.l-receipt > .l-text { margin: 0; }
.button.small { min-height: 30px; padding: 0 11px; font-size: 12px; }
.l-balance { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); }
.l-balance b { color: var(--strong); font: 600 26px/1.1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.l-balance small { color: var(--fog); font-size: 12px; }
.l-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.l-steps { display: grid; gap: 12px; min-width: 0; }
.l-step { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.l-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.l-n { color: var(--accent); font: 600 11px/1 var(--mono); }
.l-head h2 { margin: 0; color: var(--strong); font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.l-tag { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 3px; background: var(--accent-soft); color: var(--accent-text);
         font: 700 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.l-body { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 16px 18px 18px; border: 0; }
.l-preview-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 18px 0; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface-2); }
.l-preview-note div { display: grid; flex: 1; gap: 2px; min-width: 200px; }
.l-preview-note b { color: var(--strong); font-size: 14px; }
.l-preview-note span { color: var(--text); font-size: 12.5px; line-height: 1.4; }
.l-preview-note .button { flex: none; margin-left: auto; }
.l-body.locked :is(button, input, textarea, select):disabled:not([data-view] *, [data-view]) { opacity: .45; cursor: default; }
.l-body.locked :is(.l-drop, .l-voice) { cursor: default; }
.l-body.locked .l-drop { opacity: .55; pointer-events: none; }
.l-pane { display: grid; gap: 14px; min-width: 0; }
.l-text { margin: 0; font-size: 14px; }
.l-mono { color: var(--strong); font: 500 12.5px/1.4 var(--mono); }
.l-label { color: var(--label); font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.l-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.l-row .dim { font-size: 12.5px; }
.l-field { display: grid; gap: 6px; }
.l-field > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; color: var(--fog); font: 600 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.l-field > span small { color: var(--label); font: 400 11.5px/1.3 var(--body); letter-spacing: 0; text-transform: none; }
.l-input { width: 100%; min-height: 42px; padding: 10px 14px; border: 1px solid transparent; border-radius: 8px; background: var(--surface-2);
           color: var(--strong); font: 400 14px/1.45 var(--body); transition: border-color .15s, background .15s; }
.l-input::placeholder { color: var(--label); }
.l-input:hover { border-color: var(--line-strong); }
.l-input:focus { border-color: var(--accent); background: var(--bg-2); outline: none; }
textarea.l-input { resize: vertical; }
select.l-input { padding-right: 32px; appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis; font: 500 13.5px/1.3 var(--body);
                 background-image: var(--chevron); background-repeat: no-repeat; background-position: right 11px center; background-size: 12px; }
select.l-input:hover { border-color: var(--line-strong); }
select.l-input:disabled { cursor: default; opacity: .55; }
.l-two { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 12px; }
.l-group { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 14px; align-items: start; }
.l-group > span { padding-top: 8px; color: var(--label); font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.l-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.l-chip { min-height: 32px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text);
          font: 600 12.5px/1 var(--body); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.l-chip:hover { border-color: rgba(255, 255, 255, .3); color: var(--strong); }
.l-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.l-tabs { display: flex; flex-wrap: wrap; gap: 0 26px; justify-self: stretch; padding: 0; border-bottom: 1px solid var(--line); }
.l-tabs button { position: relative; min-height: 38px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--fog); font: 600 13.5px/1 var(--body); cursor: pointer; transition: color .15s; }
.l-tabs button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; transition: background .15s; }
.l-tabs button:hover { color: var(--strong); }
.l-tabs button[aria-selected="true"] { color: var(--strong); }
.l-tabs button[aria-selected="true"]::after { background: var(--accent); }
.l-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.l-pics:empty { display: none; }
.l-pic { position: relative; aspect-ratio: 3 / 2; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: var(--r); background: var(--surface-2); cursor: pointer; }
.l-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.l-pic:hover { border-color: var(--line-strong); }
.l-pic[aria-pressed="true"] { border-color: var(--accent); }
.l-pic span { position: absolute; bottom: 6px; left: 6px; max-width: calc(100% - 12px); overflow: hidden; padding: 3px 7px; border-radius: 3px;
              background: rgba(0, 0, 0, .8); color: #fff; font: 600 11px/1.2 var(--body); text-overflow: ellipsis; white-space: nowrap; }
.l-faces { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); grid-auto-rows: max-content; gap: 14px 10px; max-height: 440px; overflow-y: auto; padding: 4px 4px 4px 0; }
.l-faces .l-pic { aspect-ratio: 1; overflow: visible; border: 0; border-radius: 50%; background: none; }
.l-faces .l-pic img { border: 2px solid transparent; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); transition: box-shadow .15s, border-color .15s; }
.l-faces .l-pic:hover img { box-shadow: 0 0 0 1px var(--strong); }
.l-faces .l-pic[aria-pressed="true"] img { border-color: var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.l-faces .l-pic span { position: static; display: block; max-width: none; margin-top: 8px; padding: 0; background: none; color: var(--fog); font: 600 12px/1.2 var(--body); text-align: center; }
.l-faces .l-pic[aria-pressed="true"] span { color: var(--strong); }
.l-lookform { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.l-lookform:disabled { opacity: .5; pointer-events: none; }
.l-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.l-idea { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px;
          background: transparent; color: var(--strong); font: 600 12.5px/1 var(--body); cursor: pointer; transition: border-color .15s, background .15s; }
.l-idea:hover { border-color: var(--strong); }
.l-idea.dice { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.l-idea.dice:hover { border-color: var(--accent); }
.l-idea.clear { border-color: transparent; background: none; color: var(--fog); }
.l-idea.clear:hover { color: var(--strong); }
.l-sections { display: grid; gap: 8px; }
.l-section { border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.l-section > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; list-style: none; cursor: pointer; }
.l-section > summary::-webkit-details-marker { display: none; }
.l-section > summary b { flex: none; color: var(--strong); font: 700 13.5px/1.2 var(--body); }
.l-section > summary::after { content: ""; flex: none; width: 6px; height: 6px; margin: -3px 2px 0 auto; border: solid var(--fog); border-width: 0 1.5px 1.5px 0;
                              transform: rotate(45deg); transition: transform .15s; }
.l-section[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.l-section-picked { min-width: 0; overflow: hidden; color: var(--fog); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.l-section-body { display: grid; gap: 12px; padding: 2px 14px 14px; }
.l-section-body .l-drop { max-width: 420px; }
.l-look { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); }
.l-look p { margin: 0; color: var(--strong); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.l-look p.dim { color: var(--fog); }
.l-look small { justify-self: end; font: 500 11px/1 var(--mono); }
.l-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.l-shots:empty { display: none; }
.l-shot { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2); }
.l-shot::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-radius: var(--r-lg); pointer-events: none; }
.l-shot.picked::after { border-color: var(--accent); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); }
.l-shot-pick { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.l-shot-pick img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.l-shot:hover .l-shot-pick img { transform: scale(1.03); }
.l-shot-badge { position: absolute; top: 8px; left: 8px; padding: 5px 8px; border-radius: 3px; background: var(--accent); color: var(--ink); font: 700 11px/1 var(--body); pointer-events: none; }
.l-shot-acts { position: absolute; right: 8px; bottom: 8px; left: 8px; display: flex; justify-content: flex-end; gap: 6px; opacity: 0; transform: translateY(4px);
               transition: opacity .15s, transform .15s; }
.l-shot:hover .l-shot-acts, .l-shot:focus-within .l-shot-acts { opacity: 1; transform: none; }
.l-shot-act { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r);
              background: rgba(0, 0, 0, .8); color: #fff; font: 600 12px/1 var(--body); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; }
.l-shot-act:hover:not(:disabled) { background: rgba(0, 0, 0, .95); }
.l-shot-act.del:hover:not(:disabled) { border-color: var(--neg); background: var(--neg); }
.l-shot-act:disabled { opacity: .45; cursor: default; }
.l-shot.wait { display: grid; place-items: center; background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%) 0 0 / 250% 100%;
               animation: sk 1.4s linear infinite; }
.l-shot.wait span { color: var(--fog); font: 500 12px/1 var(--mono); }
.l-dialog.l-viewer { width: min(980px, calc(100% - 32px)); max-height: 94dvh; }
.l-viewer-body { display: grid; gap: 12px; padding: 0 20px 20px; }
.l-viewer-body img { display: block; width: 100%; max-height: 66dvh; object-fit: contain; border-radius: var(--r); background: var(--surface-2); }
@media (hover: none) { .l-shot-acts { opacity: 1; transform: none; } }
.l-voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; max-height: 400px; overflow-y: auto; padding-right: 4px; border-top: 1px solid var(--line); }
.l-voice { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "dot b play" "dot small play"; gap: 1px 12px; align-items: center; padding: 9px 4px 9px 6px;
           border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.l-voice::before { content: ""; grid-area: dot; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 50%; transition: border-color .15s, background .15s; }
.l-voice:hover { background: var(--surface-2); }
.l-voice[aria-pressed="true"]::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.l-voice b { grid-area: b; color: var(--text); font: 700 13.5px/1.2 var(--body); text-transform: capitalize; }
.l-voice[aria-pressed="true"] b { color: var(--strong); }
.l-voice small { grid-area: small; overflow: hidden; color: var(--label); font: 400 11.5px/1.3 var(--body); text-overflow: ellipsis; white-space: nowrap; }
.l-play { display: grid; grid-area: play; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%;
          background: transparent; color: var(--strong); cursor: pointer; transition: background .15s, border-color .15s; }
.l-play:hover { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.l-options { display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; }
.l-option { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "dot b em" "dot span em"; gap: 2px 12px; align-items: center; padding: 11px 14px; border: 0; border-top: 1px solid var(--line);
            background: var(--surface); text-align: left; cursor: pointer; transition: background .15s; }
.l-option:first-child { border-top: 0; }
.l-option::before { content: ""; grid-area: dot; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 50%; transition: border-color .15s, background .15s; }
.l-option:hover:not(:disabled) { background: var(--surface-2); }
.l-option[aria-pressed="true"] { background: var(--surface-2); }
.l-option[aria-pressed="true"]::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface-2); }
.l-option b { grid-area: b; color: var(--strong); font: 700 13.5px/1.2 var(--body); }
.l-option span { grid-area: span; color: var(--fog); font: 400 12px/1.3 var(--body); }
.l-option em { grid-area: em; color: var(--pos); font: 700 10px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.l-option em.extra { color: var(--accent-text); }
.l-switch { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 0; border: 0; background: none; color: var(--strong);
            font: 700 13.5px/1.2 var(--body); cursor: pointer; }
.l-track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong);
           transition: background .15s; }
.l-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
                  box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: transform .15s; }
.l-switch[aria-pressed="true"] .l-track { background: var(--accent); box-shadow: none; }
.l-switch[aria-pressed="true"] .l-track::after { background: var(--ink); transform: translateX(14px); }
.l-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r); }
.l-makers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; border-right: 1px solid var(--line); }
.l-makers button { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 12px; border: 0;
                   border-bottom: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 12.5px/1 var(--body); cursor: pointer; }
.l-makers button:nth-child(odd) { border-right: 1px solid var(--line); }
.l-makers button small { color: var(--label); font: 500 10px/1 var(--mono); }
.l-makers button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.l-makers button[aria-pressed="true"] small { color: rgba(0, 0, 0, .6); }
.l-models { display: grid; align-content: start; }
.l-model { display: grid; gap: 3px; justify-items: start; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); border-left: 2px solid transparent;
           background: var(--surface); color: var(--strong); font: 600 13px/1.2 var(--body); text-align: left; cursor: pointer; }
.l-model small { color: var(--label); font: 400 10.5px/1.2 var(--mono); }
.l-model:hover { background: var(--surface-2); }
.l-model[aria-pressed="true"] { border-left-color: var(--accent); background: var(--surface-2); }
.l-range { display: grid; gap: 6px; padding-top: 4px; }
.l-range input { width: 100%; accent-color: var(--accent); }
.l-check { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.l-check li { display: flex; align-items: center; gap: 8px; color: var(--fog); font-size: 13.5px; }
.l-check li::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 50%; }
.l-check li.ok { color: var(--strong); }
.l-check li.ok::before { border-color: var(--pos); background: var(--pos) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23050506' stroke-width='3'/%3E%3C/svg%3E") center / 10px no-repeat; }
.l-error { margin: 0; padding: 9px 12px; border-left: 2px solid var(--neg); border-radius: 0 var(--r) var(--r) 0; background: rgba(255, 92, 122, .08); color: var(--strong); font-size: 13.5px; }
.l-side { position: sticky; top: 86px; display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.l-face { display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: var(--r); background: var(--surface-2) center / cover no-repeat;
          color: var(--label); font: 500 11px/1 var(--mono); }
.l-who { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.l-who > div { min-width: 0; }
.l-who b { display: block; overflow: hidden; color: var(--strong); font: 700 18px/1.25 var(--display); letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.l-who > div > span { color: var(--label); font: 500 12px/1 var(--mono); }
.l-status { flex: none; margin-top: 3px; padding: 5px 9px; border-radius: 3px; background: var(--surface-3); color: var(--text); font: 700 10px/1 var(--mono);
            letter-spacing: .1em; text-transform: uppercase; }
.l-status.configuring, .l-status.building, .l-status.launching { background: var(--accent-soft); color: var(--accent-text); }
.l-status.live { background: var(--live); color: #fff; }
.l-status.stuck { background: rgba(255, 92, 122, .14); color: var(--neg); }
.l-bar { display: flex; height: 6px; overflow: hidden; border-radius: 3px; background: var(--surface-3); }
.l-bar i { display: block; height: 100%; }
.l-bar .spent { background: var(--strong); }
.l-bar .free { background: var(--accent); }
.l-bar .keep { background: var(--label); }
.l-lines { display: grid; gap: 6px; margin: 0; }
.l-lines div { display: flex; justify-content: space-between; gap: 12px; }
.l-lines dt { display: flex; align-items: center; gap: 7px; color: var(--fog); font-size: 12.5px; }
.l-lines dd { margin: 0; color: var(--strong); font: 500 12.5px/1.4 var(--mono); white-space: nowrap; }
.l-lines div.spent dt::before, .l-lines div.free dt::before, .l-lines div.keep dt::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.l-lines div.spent dt::before { background: var(--strong); }
.l-lines div.free dt::before { background: var(--accent); }
.l-lines div.keep dt::before { background: var(--label); }
.l-wallet { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.l-wallet a { color: var(--strong); text-decoration: none; }
.l-wallet a:hover { text-decoration: underline; }
.l-wallet .copy { margin-left: 0; padding: 3px 6px; font-size: 9px; }
.l-facts dd.l-wallet { font: 500 14px/1.3 var(--mono); }
.l-note { min-height: 1em; margin: 0; color: var(--label); font-size: 12px; }
.l-note.bad { color: var(--neg); }

/* the studio: the agent's dossier down the left (its face and name, its budget, then the five steps as a checklist, each
   saying what's been set), and the open step as a sheet filling the right */
.l-studio { grid-template-columns: 340px minmax(0, 1fr); gap: 24px; }
.l-dossier { position: sticky; top: 20px; display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.l-dossier .l-side { position: static; border: 0; border-radius: 0; background: transparent; }
.l-nav { display: grid; gap: 0; align-content: start; border-top: 1px solid var(--line); counter-reset: none; }
.l-nav-step { display: grid; grid-template-columns: 28px minmax(0, 1fr) 10px; gap: 2px 12px; align-items: center; min-height: 58px; padding: 10px 16px 10px 14px; border: 0; border-top: 1px solid var(--line);
              border-radius: 0; background: none; color: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.l-nav-step:first-child { border-top: 0; }
.l-nav-step::after { content: ""; grid-column: 3; grid-row: 1 / 3; width: 6px; height: 6px; border-right: 1.5px solid var(--label); border-bottom: 1.5px solid var(--label); transform: rotate(-45deg); opacity: 0; transition: opacity .15s; }
.l-nav-step:hover:not(:disabled) { background: var(--surface-2); }
.l-nav-step:hover:not(:disabled)::after { opacity: 1; }
.l-nav-step[aria-current="step"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.l-nav-step[aria-current="step"]::after { opacity: 1; border-color: var(--accent); }
.l-nav-step:disabled { cursor: default; opacity: .45; }
.l-nav-n { display: grid; grid-row: span 2; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--line-strong); border-radius: 50%;
           color: var(--label); font: 600 12px/1 var(--mono); }
.l-nav-step[aria-current="step"] .l-nav-n { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.l-nav-n.done { border-color: var(--pos); background: var(--pos) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23050506' stroke-width='3'/%3E%3C/svg%3E") center / 12px no-repeat; color: transparent; }
.l-nav-step b { color: var(--strong); font: 700 14.5px/1.2 var(--display); letter-spacing: -.01em; }
.l-nav-step small { overflow: hidden; color: var(--label); font: 400 12px/1.3 var(--body); text-overflow: ellipsis; white-space: nowrap; }
.l-nav-step small.set { color: var(--accent-text); font-weight: 600; }
/* the sheet: which step of how many above its title */
.l-panel { position: relative; min-width: 0; scroll-margin-top: 24px; }
.l-panel .l-step { border-radius: var(--r-lg); }
.l-panel .l-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "n h2 how" "n hint how"; gap: 3px 18px; align-items: center; padding: 20px 24px 18px; }
.l-head-n { grid-area: n; align-self: center; color: var(--label); font: 500 clamp(30px, 2.6vw, 38px)/1 var(--mono); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.l-panel .l-head h2 { grid-area: h2; font: 700 24px/1.1 var(--display); letter-spacing: -.03em; text-transform: none; }
.l-head-hint { grid-area: hint; margin: 0; color: var(--fog); font-size: 13px; line-height: 1.4; }
.l-panel .l-head .l-how { grid-area: how; align-self: center; }
.l-panel .l-body { padding: 22px 24px 24px; }
.l-panel .l-preview-note { margin: 0; padding: 12px 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--accent-soft); }
.l-panel .l-foot { padding: 16px 24px; border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--bg-2); }
.l-panel .l-foot .primary { min-height: 42px; padding: 0 20px; }
.launch .button:disabled, .l-dialog .button:disabled { opacity: .45; cursor: default; }
.launch .button:disabled:hover, .l-dialog .button:disabled:hover { border-color: var(--line-strong); background: transparent; }
.launch .button.primary:disabled:hover, .l-dialog .button.primary:disabled:hover { border-color: var(--accent); background: var(--accent); }
.l-footbox:empty { display: none; }
.l-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.l-foot .primary { margin-left: auto; }
.l-short { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 18px 18px; padding: 12px 14px; border: 1px solid rgba(255, 92, 122, .45);
           border-radius: var(--r); background: rgba(255, 92, 122, .08); }
.l-body > .l-short { margin: 0; }
.l-short-mark { display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--neg); color: var(--ink); font: 700 13px/1 var(--body); }
.l-short-words { display: grid; flex: 1; gap: 2px; min-width: 200px; }
.l-short-words b { color: var(--neg); font-size: 14px; }
.l-short.wait { border-color: var(--line); background: var(--surface-2); }
.l-short.wait .l-short-words b { color: var(--strong); }
.l-short-words span { color: var(--text); font-size: 12.5px; line-height: 1.4; }
.l-short .button { flex: none; margin-left: auto; }
.l-short .l-busy { flex: none; }
.l-amounts { display: grid; gap: 10px; }
.l-amount-own .l-input { width: 120px; font-variant-numeric: tabular-nums; }
.l-topup { display: grid; gap: 14px; padding-top: 10px; }
.l-topup p { margin: 0; }
.l-topup .l-error:empty { display: none; }
.l-confirm { display: grid; gap: 16px; padding-top: 8px; }
.l-confirm p { margin: 0; }
.l-dialog .button.danger { border-color: var(--neg); background: var(--neg); color: var(--ink); }
.l-dialog .button.danger:hover { border-color: #ff7a93; background: #ff7a93; }
.l-ca { width: 100%; height: 38px; padding: 0 4px 0 12px; font-size: 11.5px; }
.l-ca .ca { flex: 1; font-size: 12.5px; }
.l-live { display: grid; gap: 16px; padding-top: 8px; }
.l-live .l-who { display: grid; justify-items: center; gap: 4px; text-align: center; }
.l-live .l-who img { width: 96px; height: 96px; margin-bottom: 8px; border-radius: var(--r-lg); object-fit: cover; }
.l-live .l-row { justify-content: center; }
.l-balance-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.l-balance-head .button { min-height: 26px; padding: 0 9px; font-size: 11.5px; }
.l-coming { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--fog); font-size: 12px; }
.l-coming-link { color: var(--fog); text-decoration: underline; }
.l-how { display: inline-flex; flex: none; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 4px;
         background: transparent; color: var(--fog); font: 600 11px/1 var(--body); cursor: pointer; }
.l-how:hover { border-color: var(--strong); color: var(--strong); }
.l-row > .l-how { align-self: flex-start; }
.l-row > .l-text { flex: 1 1 320px; }
.l-dialog { width: min(560px, calc(100% - 32px)); max-height: min(80dvh, 720px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
            background: var(--surface); color: var(--strong); box-shadow: 0 32px 80px rgba(0, 0, 0, .6); }
.l-dialog[open] { display: flex; flex-direction: column; }
.l-dialog::backdrop { background: rgba(0, 0, 0, .65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.l-dialog-body { min-height: 0; padding: 4px 20px 20px; overflow-y: auto; color: var(--text); font-size: 14px; line-height: 1.55; }
.l-dialog-body p { margin: 12px 0 0; }
.l-dialog-body ul, .l-dialog-body ol { margin: 10px 0 0; padding-left: 20px; }
.l-dialog-body li { margin: 4px 0; }
.l-dialog-body ol li { margin: 8px 0; }
.l-dialog-body ol li::marker { color: var(--accent); font: 600 12px/1 var(--mono); }
.l-dialog-body b { color: var(--strong); }
.l-busy { display: inline-flex; align-items: center; gap: 10px; color: var(--strong); font-size: 14px; }
.l-busy i { flex: none; width: 14px; height: 14px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: l-spin .8s linear infinite; }
@keyframes l-spin { to { transform: rotate(360deg); } }
.l-check-grid { display: grid; gap: 12px; max-width: 640px; }
.l-check-grid:empty { display: none; }
.l-drop { position: relative; max-width: 640px; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.l-drop.empty { border: 1px solid var(--line-strong); background: var(--grid) 0 0 / 28px 28px, var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s; }
.l-drop.empty:hover, .l-drop.over { border-color: var(--accent); background: var(--grid) 0 0 / 28px 28px, var(--surface-2); }
.l-drop-empty { display: grid; justify-items: center; gap: 4px; padding: 34px 20px; text-align: center; }
.l-drop-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border: 1px dashed var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--strong); transition: background .15s, color .15s; }
.l-drop.over .l-drop-icon, .l-drop.empty:hover .l-drop-icon { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.l-drop-empty b { color: var(--strong); font-size: 14px; }
.l-drop-empty span { font-size: 12.5px; }
.l-drop:not(.empty) .l-drop-empty, .l-drop.busy .l-drop-empty, .l-drop.empty .l-drop-filled { display: none; }
.l-drop > .l-progress { padding: 24px 20px; max-width: none; }
.l-drop-filled { position: relative; display: grid; place-items: center; }
.l-drop-filled img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: contain; }
.l-drop-filled video { display: block; width: 100%; max-height: 440px; background: #000; }
.l-drop-filled audio { display: block; width: 100%; padding: 14px 56px 14px 14px; box-sizing: border-box; }
.l-drop.in .l-drop-filled { animation: l-spread .5s cubic-bezier(.2, .7, .2, 1) both; }
.l-drop.out .l-drop-filled { animation: l-wipe-down .35s ease-in both; }
@keyframes l-spread { from { clip-path: inset(0 50% 0 50% round 6px); opacity: .5; } to { clip-path: inset(0 0 0 0 round 0); opacity: 1; } }
@keyframes l-wipe-down { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(100% 0 0 0); } }
.l-bin { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(255, 255, 255, .25);
         border-radius: var(--r); background: rgba(0, 0, 0, .75); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.l-bin:hover { background: var(--neg); border-color: var(--neg); }
.l-drop-filled audio + .l-bin { top: 50%; transform: translateY(-50%); border-color: var(--line-strong); background: var(--surface); color: var(--strong); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.l-drop-filled audio + .l-bin:hover { background: var(--neg); border-color: var(--neg); color: #fff; }
.l-checkbar { max-width: 640px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.l-checkbar.ok { border-color: rgba(61, 220, 151, .45); background: rgba(61, 220, 151, .05); }
.l-checkbar.soft { border-color: rgba(255, 92, 122, .35); background: rgba(255, 92, 122, .04); }
.l-checkbar.bad { border-color: rgba(255, 92, 122, .5); background: rgba(255, 92, 122, .06); }
.l-checkbar-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; }
.l-checkbar-text { display: grid; gap: 2px; flex: 1; min-width: 180px; }
.l-checkbar-text b { color: var(--strong); font-size: 14px; }
.l-checkbar-text span { color: var(--fog); font-size: 12.5px; line-height: 1.4; }
.l-checkbar.ok .l-checkbar-text b { color: var(--pos); }
.l-checkbar.bad .l-checkbar-text b { color: var(--neg); }
.l-checkbar-acts { display: flex; flex: none; gap: 8px; margin-left: auto; }
.l-checkbar-acts .l-busy { padding: 0 4px; }
.l-check-fails { padding: 0 14px 12px; gap: 8px; }
.l-check-fails li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; }
.l-checkbar .l-check-fails li small { grid-column: 3; color: var(--neg); font-size: 12.5px; text-align: right; }
.l-checkbar-passed { border-top: 1px solid var(--line); }
.l-checkbar-passed summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; list-style: none; cursor: pointer; }
.l-checkbar-passed summary::-webkit-details-marker { display: none; }
.l-checkbar-passed summary::before { content: ""; flex: none; width: 14px; height: 14px; border: 1.5px solid var(--pos); border-radius: 50%;
  background: var(--pos) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23050506' stroke-width='3'/%3E%3C/svg%3E") center / 10px no-repeat; }
.l-checkbar.wait .l-checkbar-passed summary::before { border-color: var(--line-strong); background: none; border-style: dashed; animation: l-spin 1.6s linear infinite; }
.l-checkbar-more { display: inline-flex; align-items: center; gap: 6px; color: var(--strong); font-size: 13px; }
.l-checkbar-more::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid var(--fog); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .15s; }
.l-checkbar-passed[open] .l-checkbar-more::after { margin-top: 3px; transform: rotate(-135deg); }
.l-checkbar-passed .l-check-list { padding: 0 14px 12px 36px; }
.l-checkbar-note { margin: 0; padding: 0 14px 12px; }
.l-done { display: flex; align-items: center; gap: 12px; max-width: 480px; padding: 12px 14px; }
.l-done .l-tick { flex: none; }
.l-check-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 14px; }
.l-check-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 2px 8px; align-items: start; }
.l-check-list li::before { margin-top: 2px; }
.l-check li.no { color: var(--strong); }
.l-check li.no::before { border-color: var(--neg); background: var(--neg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23050506' stroke-width='3'/%3E%3C/svg%3E") center / 9px no-repeat; }
.l-check li.wait::before { border-style: dashed; animation: l-spin 1.6s linear infinite; }
.l-check li small { grid-column: 2; color: var(--label); font-size: 12px; line-height: 1.35; }
.l-text.ok { color: var(--pos); }
.l-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; max-width: 480px; }
.l-progress-bar { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 3px; background: var(--surface-3); }
.l-progress-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--accent); transition: width .2s; }
.l-progress span { color: var(--strong); font-size: 13.5px; }
.l-progress small { color: var(--label); font: 500 11.5px/1 var(--mono); }
/* toasts: what just happened or went wrong, stacked at the foot of the window, newest last */
.toasts { position: fixed; left: 50%; bottom: 18px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content;
          max-width: min(560px, calc(100vw - 32px)); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; max-width: 100%; padding: 11px 10px 11px 14px; border: 1px solid var(--line-strong); border-left: 3px solid var(--fog);
         border-radius: var(--r); background: var(--surface-3); color: var(--strong); font: 600 13.5px/1.4 var(--body); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
         pointer-events: auto; animation: toast-in .2s ease-out; }
.toast.error { border-color: rgba(255, 92, 122, .4); border-left-color: var(--neg); }
.toast.ok { border-color: rgba(61, 220, 151, .4); border-left-color: var(--pos); }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.toast button { flex: none; width: 26px; height: 26px; border: 0; border-radius: 4px; background: transparent; color: var(--fog); font-size: 18px; line-height: 1; cursor: pointer; }
.toast button:hover { background: rgba(255, 255, 255, .08); color: var(--strong); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }
.l-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line-strong);
             border-radius: var(--r); background: var(--bg-2); color: var(--strong); font-size: 13px; line-height: 1.45; cursor: pointer; }
.l-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.l-make { display: grid; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.l-make-head { display: grid; gap: 4px; }
.l-make-head h3 { margin: 0; color: var(--strong); font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.l-hd { display: grid; gap: 8px; max-width: 480px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.l-hd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.l-hd-head b { color: var(--strong); font-size: 13px; }
.l-hd-head span { color: var(--fog); font: 500 12px/1.3 var(--mono); text-align: right; }
.l-hd-track { height: 6px; overflow: hidden; border-radius: 3px; background: var(--surface-3); }
.l-hd-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s ease; }
.l-hd p { margin: 0; font-size: 12.5px; line-height: 1.45; }
.l-hd.small { gap: 6px; max-width: none; padding: 10px 12px; }
.l-hd.small .l-hd-head b { font-size: 12.5px; }
.l-hd.small .l-hd-head span { font-size: 11.5px; }
.l-hd.small .l-hd-track { height: 4px; }
.l-test { display: grid; gap: 12px; }
.l-test:empty { display: none; }
.l-test + .l-stack { padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.l-test:empty + .l-stack { padding-top: 0; border-top: 0; }
.l-stack { display: grid; gap: 14px; }
.l-coin { display: grid; gap: 14px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-strong); }
.l-coin-names { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 12px 14px; }
.l-coin-names:has(input[type="url"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.l-ticker { display: flex; align-items: center; gap: 2px; padding-left: 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg-2); color: var(--label); font: 500 15px/1 var(--mono); }
.l-ticker .l-input { flex: 1; min-width: 0; padding-left: 2px; border: 0; background: transparent; font: 500 15px/1.2 var(--mono); }
.l-ticker:focus-within { border-color: var(--accent); }
.l-input[aria-invalid="true"] { border-color: var(--neg); }
.l-devbuy { display: grid; gap: 10px; padding-top: 4px; }
.l-devbuy-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.l-devbuy-head label { color: var(--strong); font: 700 13px/1.2 var(--body); }
.l-devbuy-head span { color: var(--fog); font-size: 12.5px; }
.l-devbuy-input { display: grid; grid-template-columns: minmax(120px, 1fr) auto auto; align-items: center; min-height: 52px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg-2); }
.l-devbuy-input:focus-within { border-color: var(--accent); }
.l-devbuy-amount { width: 100%; min-width: 0; height: 50px; padding: 0 12px; border: 0; background: transparent; color: var(--strong); font: 500 19px/1 var(--mono); outline: none; font-variant-numeric: tabular-nums; }
.l-devbuy-amount::placeholder { color: var(--label); }
.l-devbuy-presets { display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.l-devbuy-presets button { min-width: 42px; height: 30px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--fog); font: 700 12.5px/1 var(--body); cursor: pointer; }
.l-devbuy-presets button:hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface-3); color: var(--strong); }
.l-devbuy-presets button:disabled { cursor: default; opacity: .4; }
.l-devbuy-unit { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; height: 50px; min-width: 104px; padding: 0 12px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--strong); cursor: pointer; }
.l-devbuy-unit:hover { background: var(--surface); }
.l-devbuy-unit svg { color: var(--fog); }
.l-devbuy-unit b { font: 700 13px/1 var(--body); white-space: nowrap; }
.l-devbuy-est { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding-top: 10px; border-top: 1px solid var(--line); }
.l-devbuy-est > span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.l-devbuy-est > span:last-child { display: grid; gap: 3px; text-align: right; }
.l-devbuy-est small { color: var(--fog); font-size: 12.5px; white-space: nowrap; }
.l-devbuy-est strong { color: var(--strong); font-size: 14px; }
.l-devbuy-est em { color: var(--fog); font-size: 12.5px; font-style: normal; white-space: nowrap; }
.l-permanent { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface-2); }
.l-permanent .l-short-mark { background: var(--strong); color: var(--ink); }
.l-permanent b { color: var(--strong); font-size: 14px; line-height: 1.4; }
.l-call { display: block; width: 100%; max-width: 640px; aspect-ratio: 16 / 10; border: 0; border-radius: var(--r); background: #000; }
.l-clock { color: var(--fog); font: 500 12.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
.l-preview { max-width: 480px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: #000; }
.l-preview video, .l-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.l-switch { align-items: flex-start; text-align: left; }
.l-switch .l-track { flex: none; margin-top: 1px; }
.l-switch-words { display: grid; gap: 3px; }
.l-switch-words b { font: 700 13.5px/1.2 var(--body); }
.l-switch-words small { color: var(--fog); font: 400 12px/1.35 var(--body); }
.l-remove { flex: none; padding: 0; border: 0; background: none; color: var(--neg); font: 600 12px/1 var(--body); cursor: pointer; }
.l-remove:disabled { opacity: .4; cursor: default; }
/* the agent step: the agent at the top, then its sections, each with what's in it and an Add button */
.l-pal-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 6px; }
.l-pal-face { display: grid; place-items: center; width: 96px; height: 96px; padding: 0; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
              background: var(--surface-2) center / cover no-repeat; color: var(--label); font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.l-pal-face[data-src]:not([data-src=""]) { border-style: solid; }
.l-pal-face:hover { border-color: var(--accent); }
.l-pal-face video { display: block; width: 100%; height: 100%; object-fit: cover; }
.l-pal-names { display: grid; gap: 8px; min-width: 0; }
.l-pal-name { min-height: 44px; padding: 6px 10px; border-color: transparent; background: transparent; color: var(--strong); font: 700 24px/1.2 var(--display); letter-spacing: -.03em; }
.l-pal-name::placeholder { color: var(--label); }
.l-pal-name:hover { border-color: var(--line); }
.l-pal-name:focus { border-color: var(--line-strong); }
.l-pal-line { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; padding: 2px 10px 0; }
.l-pal-set { display: grid; align-content: center; gap: 3px; min-width: 0; max-width: 100%; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: var(--r);
             background: var(--surface); color: var(--label); font: 500 9.5px/1.2 var(--mono); letter-spacing: .1em; text-align: left; text-transform: uppercase;
             cursor: pointer; transition: border-color .15s, background-color .15s; }
.l-pal-set b { overflow: hidden; color: var(--strong); font: 600 13px/1.25 var(--body); letter-spacing: 0; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.l-pal-set:hover { border-color: var(--accent); }
.l-pal-set.more { display: inline-flex; align-items: center; gap: 7px; border-color: transparent; background: var(--surface-2); color: var(--strong);
                  font: 700 13px/1.2 var(--body); letter-spacing: 0; text-transform: none; }
.l-pal-set.more:hover { border-color: var(--accent); background: var(--surface-3); }
.l-pal-set.more svg { flex: none; }
.l-sec { display: grid; gap: 12px; min-width: 0; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
.l-sec-head h3 svg { box-sizing: border-box; width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: var(--surface-2); }
.l-sec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.l-sec-head > div { display: grid; gap: 3px; min-width: 0; }
.l-sec-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--strong); font: 700 16px/1.2 var(--body); letter-spacing: -.01em; }
.l-sec-head h3 svg { flex: none; color: var(--accent); }
.l-sec-head p { margin: 0 0 0 40px; color: var(--fog); font-size: 13px; line-height: 1.45; }
.l-sec-head .button { flex: none; margin-top: 2px; }
.l-sec-body { display: grid; gap: 6px; }
.l-sec-body .l-label { padding: 6px 0 2px; }
.l-sec-body .l-label:first-child { padding-top: 0; }
.l-prompt { min-height: 150px; font-size: 14px; line-height: 1.55; resize: vertical; overflow-y: auto; }
.l-under { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.l-under .l-count { flex: 1 1 auto; min-width: 0; }
.l-under .l-start, .l-under .button { flex: none; }
.l-count { color: var(--label); font: 400 11.5px/1.3 var(--mono); }
.l-count.short { color: var(--neg); }
.l-empty { margin: 0; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--fog); font-size: 13px; line-height: 1.45; }
.l-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.l-item-words { display: grid; gap: 2px; min-width: 0; }
.l-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.l-item-top b { min-width: 0; overflow-wrap: anywhere; color: var(--strong); font: 600 13.5px/1.35 var(--body); }
.l-item-top .l-tag { padding: 2px 7px; font-size: 10px; }
.l-item-words small { color: var(--label); font-size: 12px; line-height: 1.4; }
.l-item-acts { display: flex; flex: none; align-items: center; gap: 12px; }
.l-kind { flex: none; padding: 2px 6px; border-radius: 3px; background: var(--surface-3); color: var(--fog); font: 500 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.l-tag.soft { background: var(--surface-3); color: var(--fog); }
.l-tag.warn { background: rgba(255, 92, 122, .14); color: var(--neg); }
.l-dialog-title { display: grid; gap: 2px; min-width: 0; padding: 8px 0; }
.l-dialog-title p { margin: 0; color: var(--fog); font-size: 12.5px; line-height: 1.4; }
.l-settings { padding-top: 6px; }
.l-set { border-bottom: 1px solid var(--line); }
.l-set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 2px; border: 0;
             background: none; color: var(--strong); font: 600 14px/1.3 var(--body); text-align: left; cursor: pointer; }
.l-set-row:hover { color: var(--accent-text); }
.l-set-row b { overflow: hidden; color: var(--fog); font-weight: 400; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.l-set-row i { color: var(--label); font-style: normal; font-size: 18px; line-height: 1; transition: transform .15s; }
.l-set.open .l-set-row i { transform: rotate(90deg); }
.l-set-opts { display: grid; gap: 10px; padding: 2px 2px 16px; }
.l-set-opts > p { margin: 0; font-size: 12.5px; line-height: 1.45; }
.l-set-opts > .l-label { padding-top: 6px; }
.l-set-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.l-set-pair.one { grid-template-columns: minmax(0, 1fr); }
.l-dialog-note { margin: 14px 0 0; color: var(--label); font-size: 12px; line-height: 1.45; }
.l-add { display: grid; gap: 14px; padding-top: 12px; }
.l-add .l-pane[hidden] { display: none; }
.l-drop-many { max-width: none; }
.l-drop-many .l-drop-empty { padding: 26px 20px; }
.l-drop-many .l-drop-empty span { max-width: 460px; }
.l-drop-many.full { border-style: solid; cursor: default; }
.l-drop-many.full:hover { border-color: var(--line-strong); background: transparent; }
.l-drop-many.full .l-drop-icon { opacity: .5; }
.l-have { display: grid; gap: 6px; }
.l-doc-edit { min-height: 220px; max-height: 50dvh; font: 400 13px/1.5 var(--mono); resize: vertical; }
.l-ex { display: grid; gap: 6px; }
.l-ex + .l-ex { padding-top: 8px; }
.l-ex-head { display: flex; align-items: center; gap: 9px; padding: 4px 0 2px; }
.l-ex-head img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.l-ex-head b { color: var(--strong); font: 700 13.5px/1.2 var(--body); }
.l-ex-head small { color: var(--label); font-size: 12px; }
.l-ex .l-item-acts { gap: 6px; }
.l-added { color: var(--pos); font: 700 12px/1 var(--body); white-space: nowrap; }
.l-read { display: grid; gap: 14px; padding-top: 10px; }
.l-doc { max-height: 50dvh; margin: 0; padding: 14px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); color: var(--text);
         font: 400 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.l-caps-dialog { display: grid; gap: 10px; padding-top: 12px; }
.l-cap-row { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.l-cap-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-left: 44px; }
.l-cap-row.soon .l-switch { filter: grayscale(1); opacity: .45; cursor: not-allowed; }
.l-setup { display: grid; gap: 14px; padding-top: 12px; }
.l-x-account { display: flex; align-items: center; gap: 12px; max-width: 560px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.l-x-account .button { margin-left: auto; }
.l-x-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.l-x-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.l-x-who > div { display: grid; min-width: 0; }
.l-x-who > div b { color: var(--strong); font: 700 15px/1.2 var(--body); }
.l-x-who > div span { color: var(--fog); font-size: 12.5px; }
.l-x-value { color: var(--strong); font: 700 13.5px/1.3 var(--body); text-align: right; }
.l-x-login { display: grid; gap: 8px; max-width: 560px; padding: 12px 14px; border: 1px solid rgba(255, 92, 122, .45); border-radius: var(--r); background: rgba(255, 92, 122, .06); }
.l-x-login b { color: var(--neg); font: 700 13.5px/1.3 var(--body); }
.l-x-login .dim { font-size: 12.5px; }
.l-x-count { display: grid; grid-column: 1 / -1; gap: 4px; max-width: 420px; }
.l-x-count.off { opacity: .45; }
.l-x-count input { width: 100%; margin: 0; accent-color: var(--accent); }
.l-x-count input:disabled { cursor: default; }
.l-x-count-pace { color: var(--fog); font: 400 12px/1.35 var(--body); }
.l-x-count-pace b { color: var(--strong); font-weight: 700; }
.l-x-total { padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); color: var(--text); font-size: 12.5px; line-height: 1.45; }
.l-x-rules { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: var(--text); font-size: 13px; line-height: 1.4; }
.l-x-rules li::marker { color: var(--pos); }
.l-x-edit { display: grid; gap: 8px; }
.l-x-edit textarea { font-size: 13.5px; }
.l-x-kind { display: grid; align-content: start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.l-x-kind.on { border-color: var(--accent); }
.l-coin-talk { margin-left: 44px; opacity: .45; }
.l-x-kind.on .l-coin-talk { opacity: 1; }
.l-x-kind > .l-tag { justify-self: start; margin-left: 44px; }
.l-x-kind .l-switch:disabled { cursor: not-allowed; opacity: .55; }
.l-dialog.l-wide { width: min(1080px, calc(100% - 32px)); max-height: min(92dvh, 980px); }
.l-x-empty { display: grid; gap: 8px; max-width: 680px; }
.l-x-ghost { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: var(--r); font-size: 12.5px; }
.l-x-out { display: grid; gap: 8px; max-width: 680px; }
.l-x-out:empty { display: none; }
.l-x-out > p { margin: 0; font-size: 12.5px; }
.l-x-out > .l-label { padding-top: 8px; }
.l-x-post { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.l-x-post-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; }
.l-x-post-top .dim { font-size: 11.5px; }
.l-x-post-kind { padding: 2px 8px; border-radius: 3px; background: var(--accent-soft); color: var(--accent-text); font: 600 11px/1.4 var(--body); }
.l-x-post p { margin: 0; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.l-x-post p.dim { font-size: 12.5px; }
.l-x-mention { border-color: var(--line); }
.l-x-mention.let-go, .l-x-post.off { opacity: .6; }
.l-x-said { color: var(--fog); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.l-x-said b { color: var(--strong); font-weight: 700; }
.l-x-said span { display: block; margin-top: 2px; color: var(--text); }
/* the Trading dialog: a fixed header (the three ways in, and what the skill is), the view under it, Done in a footer */
.l-dialog.l-skill-dialog { height: min(92dvh, 940px); }
.l-dialog-body.l-skill { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; }
.l-skill-bar { display: flex; flex: none; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 4px 20px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.l-skill-tabs { display: flex; gap: 2px; margin-left: -12px; }
.l-skill-tabs button { display: grid; gap: 2px; justify-items: start; margin-bottom: -1px; padding: 12px 12px 10px; border: 0; border-bottom: 2px solid transparent; background: none; text-align: left; cursor: pointer; }
.l-skill-tabs button b { color: var(--fog); font: 700 14px/1.2 var(--body); }
.l-skill-tabs button small { color: var(--label); font: 400 11.5px/1.2 var(--body); }
.l-skill-tabs button:hover b { color: var(--strong); }
.l-skill-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); }
.l-skill-tabs button[aria-selected="true"] b { color: var(--strong); }
.l-skill-state { display: grid; align-content: center; gap: 2px; justify-items: end; padding: 8px 0; text-align: right; }
.l-skill-state b { color: var(--strong); font: 700 13px/1.2 var(--body); }
.l-skill-state small { color: var(--fog); font: 400 11.5px/1.2 var(--body); }
.l-skill-view { flex: 1 1 auto; min-height: 0; }
.l-skill-foot { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 20px; border-top: 1px solid var(--line); }
.l-skill-foot > .dim { flex: 1 1 200px; font-size: 12px; line-height: 1.4; }
.l-skill-saved { color: var(--pos); font: 500 11.5px/1.4 var(--mono); white-space: nowrap; }
.l-skill-saved.busy { color: var(--fog); }
.l-skill-saved.bad { color: var(--neg); }
.l-skill-problems { display: grid; gap: 4px; margin: 0; padding: 9px 12px; border-left: 2px solid var(--neg); border-radius: 0 var(--r) var(--r) 0; background: rgba(255, 92, 122, .08); font-size: 12.5px; line-height: 1.4; list-style: none; overflow-wrap: anywhere; }
.l-skill-problems li.soft { color: var(--fog); }
.l-skill-presets { display: grid; align-content: start; gap: 12px; height: 100%; padding: 14px 20px 18px; overflow-y: auto; }
.l-skill-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 9px 14px; border-radius: var(--r); background: var(--surface-2); }
.l-skill-now b { color: var(--strong); font: 700 13px/1.4 var(--body); }
.l-skill-now span { color: var(--text); font-size: 12.5px; line-height: 1.4; }
.l-skill-grid-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 10px; }
.l-skill-preset { display: grid; align-content: start; gap: 6px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.l-skill-preset.current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.l-skill-preset.custom { border-style: dashed; background: var(--bg-2); }
.l-skill-preset > p { margin: 0; color: var(--text); font-size: 12.5px; line-height: 1.4; }
.l-skill-preset-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 28px; }
.l-skill-preset-head b { color: var(--strong); font: 700 14.5px/1.2 var(--body); }
.l-skill-preset-head .button { margin-left: auto; }
.l-skill-badge { padding: 3px 6px; border-radius: 3px; background: var(--surface-3); color: var(--fog); font: 700 9.5px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.l-skill-badge.on { background: var(--accent); color: var(--ink); }
.l-skill-pals { display: flex; align-items: center; gap: 8px; min-height: 20px; color: var(--fog); font-size: 12px; line-height: 1.3; }
.l-skill-faces { display: inline-flex; flex: none; }
.l-skill-faces img { width: 20px; height: 20px; border: 2px solid var(--surface); border-radius: 50%; object-fit: cover; }
.l-skill-faces img + img { margin-left: -7px; }
.l-skill-facts { color: var(--fog); font: 500 11px/1.5 var(--mono); }
.l-skill-preset-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 2px; }
@media (max-height: 860px) {
  .l-dialog.l-skill-dialog { height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); }
  .l-skill-dialog .wc-head { min-height: 0; padding: 4px 10px 2px 20px; }
  .l-skill-dialog .l-dialog-title { padding: 6px 0; }
  .l-skill-dialog .l-skill-tabs button { padding: 9px 12px 7px; }
  .l-skill-dialog .l-skill-foot { padding: 7px 20px; }
  .l-skill-dialog .l-skill-presets { gap: 10px; padding: 10px 20px 12px; }
}
@media (max-height: 720px) {
  .l-skill-dialog .l-dialog-title p, .l-skill-dialog .l-skill-tabs button small, .l-skill-dialog .l-skill-state small { display: none; }
  .l-skill-dialog .l-skill-presets { padding: 8px 20px 10px; }
}
.l-skill-settings { display: grid; grid-template-columns: 224px minmax(0, 1fr); height: 100%; }
.l-skill-nav { display: grid; align-content: start; gap: 2px; padding: 10px; border-right: 1px solid var(--line); background: var(--bg-2); overflow-y: auto; }
.l-skill-nav > .l-label { padding: 10px 10px 4px; }
.l-skill-nav button { display: grid; gap: 2px; justify-items: start; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r); background: none; text-align: left; cursor: pointer; }
.l-skill-nav button:hover { background: var(--surface-2); }
.l-skill-nav button b { color: var(--strong); font: 700 13px/1.2 var(--body); }
.l-skill-nav button small { max-width: 100%; overflow: hidden; color: var(--fog); font: 400 11.5px/1.3 var(--body); text-overflow: ellipsis; white-space: nowrap; }
.l-skill-nav button[aria-current="true"] { background: var(--accent); }
.l-skill-nav button[aria-current="true"] b { color: var(--ink); }
.l-skill-nav button[aria-current="true"] small { color: rgba(0, 0, 0, .65); }
.l-skill-nav button small.bad { color: var(--neg); font-weight: 600; }
.l-skill-nav button[aria-current="true"] small.bad { color: #7a1d2e; }
.l-skill-main { display: grid; align-content: start; gap: 16px; min-width: 0; padding: 16px 24px 24px; overflow-y: auto; }
.l-skill-context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 12px; border-radius: var(--r); background: var(--surface-2); color: var(--text); font-size: 12.5px; line-height: 1.4; }
.l-skill-head { display: grid; gap: 4px; }
.l-skill-head h3 { margin: 0; color: var(--strong); font: 700 18px/1.2 var(--display); letter-spacing: -.02em; }
.l-skill-head p { margin: 0; color: var(--fog); font-size: 13px; line-height: 1.45; }
.l-skill-rows { display: grid; border-top: 1px solid var(--line); }
.l-skill-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.l-skill-row.stack { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.l-skill-words { display: grid; gap: 3px; }
.l-skill-words b, .l-skill-words label { color: var(--strong); font: 700 13.5px/1.25 var(--body); }
.l-skill-words small { color: var(--fog); font-size: 12px; line-height: 1.4; }
.l-skill-words .l-tag { justify-self: start; margin-top: 3px; }
.l-skill-row.off > .l-skill-words > b, .l-skill-row.off > .l-skill-words > small { opacity: .55; }
.l-skill-row .l-switch:disabled { cursor: not-allowed; opacity: .55; }
.l-skill-row > .l-input, .l-skill-row > .l-skill-unit { width: 200px; }
.l-skill-row.stack > .l-input { width: 100%; }
.l-skill-row > .l-switch { position: relative; }
.l-skill-row > .l-switch .l-switch-words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.l-skill select.l-input { font-size: 13px; }
.l-skill-unit { position: relative; }
.l-skill-unit .l-input { width: 100%; padding-right: 46px; }
.l-skill-unit small { position: absolute; top: 50%; right: 11px; transform: translateY(-50%); color: var(--fog); font: 500 12px/1 var(--mono); pointer-events: none; }
.l-skill-unit[data-unit="$"] .l-input { padding-right: 10px; padding-left: 24px; }
.l-skill-unit[data-unit="$"] small { right: auto; left: 11px; }
.l-skill .l-chip[aria-pressed="true"]::before { content: "\2713"; margin-right: 6px; font-size: 11px; }
.l-skill-pick { display: grid; gap: 8px; }
.l-skill-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--fog); font-size: 12px; }
.l-skill-link { padding: 0; border: 0; background: none; color: var(--accent-text); font: 600 12px/1.4 var(--body); cursor: pointer; }
.l-skill-link:hover { text-decoration: underline; }
.l-skill-bounds { display: grid; gap: 8px; max-width: 520px; }
.l-skill-bound { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; align-items: center; gap: 10px; }
.l-skill-bound > span { color: var(--strong); font: 600 13px/1.3 var(--body); }
.l-skill-bound em { color: var(--fog); font-style: normal; font-weight: 400; }
.l-skill-addbound { max-width: 260px; }
.l-skill-money { display: grid; gap: 14px; max-width: 560px; }
.l-skill-money .l-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.l-skill-money .l-facts dd { font: 600 22px/1.2 var(--mono); letter-spacing: -.03em; }
.l-skill-money .l-range .dim { font-size: 12.5px; }
.l-skill-money > p { margin: 0; font-size: 12.5px; }
.l-skill-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.l-skill-fields > .wide { grid-column: 1 / -1; }
.l-skill-fields > .l-field { grid-template-rows: minmax(0, 1fr) auto; }
.l-skill-fields .l-field > span { align-content: start; font-size: 12.5px; }
.l-skill-fields .l-field > span small { display: block; font-size: 11px; line-height: 1.35; }
.l-skill-fields .l-input { min-height: 36px; padding: 7px 10px; font-size: 13px; }
.l-skill-cards { display: grid; gap: 10px; }
.l-skill-card { display: grid; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.l-skill-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.l-skill-card-head b { color: var(--strong); font: 700 13.5px/1.2 var(--body); }
.l-skill-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.l-skill-ov { display: grid; align-content: start; gap: 6px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); text-align: left; cursor: pointer; }
.l-skill-ov:hover { border-color: var(--accent); }
.l-skill-ov p { margin: 0; color: var(--text); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.l-skill-ov em { color: var(--accent-text); font: 700 11px/1 var(--body); font-style: normal; }
.l-skill-mended { display: grid; gap: 8px; }
.l-skill-codeview { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); height: 100%; }
.l-skill-codebox { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 16px 20px 20px; border-right: 1px solid var(--line); }
.l-skill-codehead { display: grid; gap: 3px; }
.l-skill-codehead b { color: var(--strong); font: 700 15px/1.2 var(--body); }
.l-skill-codehead small { color: var(--fog); font-size: 12px; line-height: 1.45; }
.l-skill-codebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 0 2px; }
.l-skill-codebar .l-row { gap: 6px; }
.l-skill-codebar .l-label { margin-right: 4px; }
.l-skill-code { flex: 1 1 auto; min-height: 200px; font: 500 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: break-word; overflow: auto; tab-size: 2; resize: none; }
.l-skill-codefoot { display: grid; gap: 6px; font-size: 12.5px; }
.l-skill-dirty { color: var(--accent-text); font-weight: 700; }
.l-skill-ref { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 16px 20px 20px; overflow-y: auto; background: var(--bg-2); font-size: 12px; line-height: 1.4; }
.l-skill-ref > b { color: var(--strong); font: 700 13.5px/1.2 var(--body); }
.l-skill-ref > .l-label { padding-top: 10px; }
.l-skill-ref > p { margin: 0 0 2px; color: var(--fog); font-size: 12px; }
.l-skill-ref ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.l-skill-ref li { display: grid; gap: 1px; margin: 0; overflow-wrap: anywhere; }
.l-skill-ref code { color: var(--accent-text); font: 500 11.5px/1.4 var(--mono); }
.l-skill-ref li > span { color: var(--label); font: 500 10.5px/1.4 var(--mono); }
.l-skill-ref small { color: var(--text); font-size: 11.5px; }
@media (max-width: 960px) {
  .l-skill-bar { flex-direction: column; gap: 0; }
  .l-skill-state { justify-items: start; padding: 0 0 10px; text-align: left; }
  .l-skill-settings { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .l-skill-nav { display: flex; gap: 4px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .l-skill-nav > .l-label { display: none; }
  .l-skill-nav button { flex: none; width: auto; max-width: 180px; }
  .l-skill-row { grid-template-columns: minmax(0, 1fr); }
  .l-skill-row > .l-input, .l-skill-row > .l-skill-unit { width: 100%; }
  .l-skill-bound { grid-template-columns: minmax(0, 1fr) 110px auto; }
  .l-skill-overview { grid-template-columns: 1fr; }
  .l-skill-codeview { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; overflow-y: auto; }
  .l-skill-codebox { border-right: 0; }
  .l-skill-ref { max-height: 40dvh; }
}
.l-row .l-end { margin-left: auto; }
.l-hold { flex: 1 1 100%; margin: 0 0 4px; padding: 10px 12px; border: 1px solid rgba(255, 92, 122, .45); border-radius: var(--r); background: rgba(255, 92, 122, .06); color: var(--neg); font-size: 12.5px; line-height: 1.4; }
.l-chip-select { max-width: 200px; padding: 0 22px 0 10px; appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis; font: 600 12.5px/1 var(--body);
                 background: var(--surface-2) var(--chevron) no-repeat right 7px center / 10px; }
.l-house { display: grid; gap: 6px; padding: 10px 14px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.l-house ul { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: var(--text); font-size: 13px; line-height: 1.4; }
.l-house li::marker { color: var(--pos); }
.l-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 16px; margin: 0; padding: 12px 14px; border: 1px solid var(--line);
             border-radius: var(--r); background: var(--bg-2); }
.l-summary div { display: grid; gap: 2px; }
.l-summary dt { color: var(--label); font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.l-summary dd { margin: 0; color: var(--strong); font-size: 13.5px; }
.l-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.l-hero, .l-mine { margin-bottom: 16px; }
.l-mine .l-label { margin-right: 4px; }
.l-mine-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: var(--r);
               background: var(--surface); color: var(--strong); text-decoration: none; }
.l-mine-chip:has(img) { padding-left: 4px; }
.l-mine-chip:hover { border-color: var(--accent); }
.l-mine-chip[aria-current="page"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.l-mine-chip img { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; }
.l-mine-chip b { font: 700 13px/1 var(--body); }
.l-mine-chip small { color: var(--label); font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.l-mine-chip.new { border-style: dashed; color: var(--fog); }
.l-face { overflow: hidden; }
.l-face video { display: block; width: 100%; height: 100%; object-fit: cover; }
.l-option:disabled { opacity: .5; cursor: default; }
.l-tabs { flex-wrap: wrap; }
@media (max-width: 1100px) {
  .l-studio { grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 960px) {
  .l-grid { grid-template-columns: minmax(0, 1fr); }
  .l-dossier { position: static; }
  .l-nav { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; }
  .l-nav-step { min-height: 0; padding: 12px 14px; border-top: 0; border-left: 1px solid var(--line); }
  .l-nav-step:first-child { border-left: 0; }
  .l-nav-step::after { content: none; }
  .l-nav-step[aria-current="step"] { box-shadow: inset 0 3px 0 var(--accent); }
  .l-side { position: static; order: -1; grid-template-columns: 120px minmax(0, 1fr); align-items: center; }
  .l-side > :not(.l-face):not(.l-who) { grid-column: 1 / -1; }
  .l-nav { order: -1; }
  .l-drop-filled img, .l-drop-filled video { max-height: 360px; }
}
@media (max-width: 560px) {
  .l-two, .l-group, .l-picker { grid-template-columns: minmax(0, 1fr); }
  .l-group > span { padding-top: 0; }
  .l-pal-head { grid-template-columns: minmax(0, 1fr); }
  .l-coin-names, .l-set-pair { grid-template-columns: minmax(0, 1fr); }
  .l-devbuy-input { grid-template-columns: minmax(0, 1fr) auto; }
  .l-devbuy-presets { display: grid; grid-row: 2; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px; border-top: 1px solid var(--line); }
  .l-devbuy-presets button { min-width: 0; }
  .l-devbuy-unit { grid-row: 1; grid-column: 2; }
  .l-devbuy-est { grid-template-columns: 1fr; gap: 8px; }
  .l-devbuy-est > span:last-child { text-align: left; }
  .l-makers { border-right: 0; border-bottom: 1px solid var(--line); }
  .l-nav { grid-auto-columns: minmax(120px, 1fr); }
  .l-item { flex-wrap: wrap; }
  .l-item-words { flex: 1 1 200px; }
  .l-item-acts { margin-left: auto; }
  .l-sec-head { flex-wrap: wrap; }
  .l-nav-step small { display: none; }
}

/* the header's wallet button, its picker and its menu (wallet.js) */
.wc { position: relative; flex: none; }
.wc-button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--accent); border-radius: var(--r);
             background: var(--accent); color: var(--ink); font: 700 12.5px/1 var(--body); white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.wc-button:hover { border-color: #ffffff; background: #ffffff; }
.wc-button.on { padding: 0 11px; border-color: var(--line-strong); background: transparent; color: var(--strong); font: 500 12px/1 var(--mono); }
.wc-button.on:hover, .wc-button.on[aria-expanded="true"] { border-color: rgba(255, 255, 255, .3); background: var(--surface-2); }
.wc-button i { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 8px var(--pos); }
.wc-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; display: grid; gap: 2px; width: 248px; padding: 6px;
           border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface-2); box-shadow: var(--shadow); }
.wc-menu[hidden] { display: none; }
.wc-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 4px;
           background: none; color: var(--strong); font: 600 13.5px/1.2 var(--body); text-align: left; text-decoration: none; cursor: pointer; }
.wc-item:hover, .wc-item[aria-current] { background: var(--surface-3); }
.wc-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-item small { flex: none; color: var(--label); font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.wc-item .wc-mono { font: 500 12.5px/1 var(--mono); }
.wc-label { padding: 10px 10px 4px; border-top: 1px solid var(--line); color: var(--label); font: 500 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.wc-out { color: var(--neg); }
.wc-dialog { width: min(400px, calc(100% - 32px)); max-height: min(560px, calc(100dvh - 32px)); padding: 0; border: 1px solid var(--line-strong);
             border-radius: var(--r-lg); background: var(--surface); color: var(--strong); box-shadow: 0 32px 80px rgba(0, 0, 0, .6); }
.wc-dialog[open] { display: flex; flex-direction: column; }
.wc-dialog::backdrop { background: rgba(0, 0, 0, .65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wc-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; min-height: 58px; padding: 8px 10px 8px 20px;
           border-bottom: 1px solid var(--line); }
.wc-head h2 { margin: 0; font: 700 16px/1.2 var(--display); letter-spacing: -.02em; }
.wc-close { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: var(--r); background: none; color: var(--fog);
            font: 400 22px/1 var(--body); cursor: pointer; }
.wc-close:hover { background: var(--surface-3); color: var(--strong); }
.wc-list { display: grid; gap: 2px; min-height: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; }
.wc-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 60px; padding: 10px 12px;
          border: 0; border-radius: var(--r); background: none; color: var(--strong); text-align: left; text-decoration: none; cursor: pointer; }
.wc-row:hover:not(:disabled), .wc-row:focus-visible, .wc-row[aria-busy="true"] { background: var(--surface-2); }
.wc-row:disabled { cursor: default; }
.wc-row:disabled:not([aria-busy="true"]) { opacity: .45; }
.wc-logo { display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r);
           background: var(--surface-2); color: var(--fog); font: 700 12px/1 var(--body); text-transform: uppercase; }
.wc-logo img { width: 100%; height: 100%; object-fit: cover; }
.wc-words b, .wc-words small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-words b { font: 700 15px/1.25 var(--body); }
.wc-words small { margin-top: 3px; color: var(--label); font: 13px/1.3 var(--body); }
.wc-row[aria-busy="true"] small { color: var(--accent-text); }
.wc-arrow { color: var(--label); }
.wc-problem { flex: none; margin: 0; padding: 0 20px 16px; color: var(--neg); font: 13px/1.45 var(--body); }
.wc-problem:empty { display: none; }
