.num, .tiles dd, .rows dd, .table td, .levels b { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.up { color: var(--up); }
.down { color: var(--down); }
:is(.cab, .sheet) :is(h1, h2, h3) { font-weight: 650; font-stretch: 112%; }
.cab h1 { font-size: clamp(1.625rem, 5vw, 2rem); letter-spacing: -.005em; }

.topbar {
  position: sticky; top: 0; z-index: 20; flex-wrap: wrap; gap: 0 1.75rem;
  padding: 0 max(1rem, calc((100% - var(--wide)) / 2));
}
.topbar .brand { flex: none; min-height: 3.5rem; }
.topbar nav { display: flex; align-items: stretch; gap: 1.375rem; align-self: stretch; flex: 1; }
.topbar nav a { display: flex; align-items: center; gap: .625rem; min-height: 3.5rem; color: var(--muted); font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.topbar nav a:hover { color: var(--text); }
.topbar nav a[aria-current="page"] { color: var(--text); font-weight: 650; border-bottom-color: var(--brass-line); }
.topbar nav .ico { display: none; flex: none; width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.topbar .bar-end { display: flex; align-items: center; gap: .875rem; margin-left: auto; }
.topbar .sign-out { min-height: 2.5rem; padding: .25rem .875rem; background: transparent; border-color: var(--line2); color: var(--muted); font-size: .9375rem; font-weight: 600; }
.topbar .sign-out:hover { color: var(--text); }
.menu-button, .topbar > .demo-pill { display: none; }
.demo-pill { display: inline-flex; align-items: center; gap: .375rem; padding: .1875rem .75rem; border: 1px dashed var(--warn); border-radius: 999px; color: var(--warn); font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.demo-pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.nav-dot { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 3px var(--down-t); }
.menu-button { position: relative; }
.topbar.problems .menu-button::after { content: ""; position: absolute; top: .5rem; right: .5rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--down); }
.theme-button { flex: none; width: 2.5rem; min-height: 2.5rem; padding: 0; margin-left: -.875rem; background: transparent; border-color: var(--line2); color: var(--muted); }
.theme-button:hover { color: var(--text); }
.theme-button svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.theme-button .moon, :root[data-theme="light"] .theme-button .sun { display: none; }
:root[data-theme="light"] .theme-button .moon { display: block; }
.topbar .sign-out { white-space: nowrap; }
@media (max-width: 899px) { .topbar .demo-pill .long { display: none; } }
@media (min-width: 720px) and (max-width: 1099px) {
  .topbar { gap: 0 1rem; }
  .topbar nav { gap: .75rem; }
  .topbar nav a { font-size: .9375rem; }
  .topbar .bar-end { gap: .5rem; }
  .topbar .sign-out { padding: .25rem .625rem; }
  .theme-button { margin-left: -.5rem; }
}
@media (max-width: 719px) {
  .topbar { flex-wrap: nowrap; gap: 0 .75rem; }
  .menu-button { display: inline-flex; flex: none; width: 2.75rem; min-height: 2.75rem; padding: 0; background: transparent; border-color: transparent; }
  .menu-button svg { width: 1.5rem; height: 1.5rem; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
  .topbar > .demo-pill { display: inline-flex; margin-left: auto; }
  .theme-button { width: 2.75rem; min-height: 2.75rem; margin-left: 0; border-color: transparent; color: var(--text); }
  .theme-button svg { width: 1.5rem; height: 1.5rem; }
  .topbar > .demo-pill[hidden] ~ .theme-button { margin-left: auto; }
  .topbar .bar-end { flex-direction: column; align-items: stretch; gap: .75rem; margin: 1rem 0 0; }
  .topbar .bar-end .demo-pill { align-self: flex-start; }
  .topbar nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: .5rem 1rem 1.25rem; background: var(--panel); border-bottom: 1px solid var(--line2); box-shadow: var(--lift);
  }
  .topbar.open nav { display: flex; }
  .topbar nav a { min-height: 3.5rem; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.125rem; }
  .topbar nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .topbar nav .ico { display: block; }
  .topbar .sign-out { width: 100%; min-height: 3rem; font-size: 1rem; }
}
.mockup { margin: 0; padding: .375rem 1rem; text-align: center; font-size: .875rem; font-weight: 650; color: var(--warn-ink); background: var(--warn-t); border-bottom: 1px solid var(--line); }
.mockup-note { margin: 1.25rem 0 0; font-size: .8125rem; font-weight: 650; color: var(--warn); }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 2.5rem 1.25rem; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; }
.empty-state .big-ico { width: 3rem; height: 3rem; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h2 { margin: 0; }
.cab .empty-state p { max-width: 32rem; color: var(--muted); }
.empty-state .row { justify-content: center; margin-top: .25rem; }
.wait-ico .wait-dot { fill: var(--brass); stroke: none; animation: wait-step 2.5s ease-in-out infinite; }
@keyframes wait-step { 0%, 16% { transform: translateY(0); } 33%, 50% { transform: translateY(5px); } 66%, 84% { transform: translateY(10px); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .wait-ico .wait-dot { animation: none; } }

.cab { max-width: calc(var(--wide) + 2rem); margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.cab h1 { margin: 0; }
.cab p { margin: 0; }
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; }
.back { margin-bottom: .75rem; font-size: 1rem; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--text); }
.sub, .checked { color: var(--muted); font-size: .9375rem; }
.cab .hint { margin-top: .5rem; }

.nt-hint { display: flex; align-items: center; gap: 1rem; padding: .75rem .75rem .75rem 1rem; background: var(--panel); border: 1px solid var(--line2); border-radius: .75rem; }
.nt-hint-ico { flex: none; width: 1.75rem; height: 1.75rem; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nt-hint-t { display: flex; flex-direction: column; gap: .125rem; flex: 1; min-width: 0; }
.nt-hint-t b { font-size: 1.0625rem; font-weight: 650; }
.nt-hint-t span { color: var(--muted); font-size: .9375rem; }
.nt-hint-go { flex: none; }
.cab .nt-x { flex: none; width: 2.75rem; min-height: 2.75rem; padding: 0; color: var(--muted); background: transparent; border: 0; }
.cab .nt-x:hover { color: var(--text); background: var(--raise); }
.nt-x svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 719px) {
  .nt-hint { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .625rem .75rem; padding: .875rem .375rem .875rem .875rem; }
  .nt-hint-ico { grid-column: 1; grid-row: 1; width: 1.5rem; height: 1.5rem; margin-top: .125rem; }
  .nt-hint-t { grid-column: 2; grid-row: 1; }
  .cab .nt-x { grid-column: 3; grid-row: 1; width: 2.5rem; min-height: 2.5rem; margin-top: -.375rem; }
  .nt-hint-go { grid-column: 2 / -1; grid-row: 2; justify-self: start; }
}

.button, :is(.cab, .sheet) button {
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem;
  min-height: 3rem; padding: .625rem 1.125rem; margin: 0; cursor: pointer;
  background: var(--raise); color: var(--text); border: 1px solid var(--line2); border-radius: .5rem;
  font: inherit; font-size: 1rem; font-weight: 650; line-height: 1.2; text-decoration: none; text-align: center;
}
.button:hover, :is(.cab, .sheet) button:hover { border-color: var(--muted); }
.button.primary, :is(.cab, .sheet) button.primary { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
.button.primary:hover, :is(.cab, .sheet) button.primary:hover { filter: brightness(1.07); }
.button.danger, :is(.cab, .sheet) button.danger { background: transparent; color: var(--down); border-color: var(--down); }
.button.danger:hover, :is(.cab, .sheet) button.danger:hover { background: var(--down-t); }
.button.danger.primary, :is(.cab, .sheet) button.danger.primary { background: var(--down); color: var(--night); }
.button.quiet, :is(.cab, .sheet) button.quiet { background: transparent; border-color: var(--line2); }
.button.small { min-height: 2.75rem; padding: .375rem 1rem; }
:is(.cab, .sheet) button:disabled { opacity: 1; cursor: default; color: var(--muted); background: transparent; border-color: var(--line2); border-style: dashed; filter: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pill { display: inline-flex; align-items: center; gap: .375rem; padding: .1875rem .625rem; border-radius: 999px; font-size: .875rem; font-weight: 650; white-space: nowrap; background: var(--raise); color: var(--muted); }
.pill::before { content: ""; flex: none; width: .4375rem; height: .4375rem; border-radius: 50%; background: currentColor; }
.pill.running { background: var(--up-t); color: var(--up); }
.pill.paused { background: var(--brass-t); color: var(--accent); }
.pill.stopped { background: var(--raise); color: var(--muted); }
.pill.problem { background: var(--down-t); color: var(--down); }
.pill.warn { background: var(--warn-t); color: var(--warn); }
.practice { display: inline-block; padding: 0 .5rem; border: 1px dashed var(--warn); border-radius: .375rem; color: var(--warn); font-size: .8125rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; }
.sim-note { margin-top: .375rem; color: var(--warn); font-size: .9375rem; font-weight: 600; }

.bl-tabs { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--panel); border: 1px solid var(--line); border-radius: .625rem; }
.bl-tabs a, .cab .bl-tabs button { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .25rem .875rem; border-radius: .4375rem; color: var(--muted); font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cab .bl-tabs button { background: transparent; border: 0; }
.bl-tabs a:hover, .cab .bl-tabs button:hover { color: var(--text); }
.bl-tabs a[aria-current="true"], .cab .bl-tabs button[aria-current="true"] { background: var(--raise); color: var(--text); box-shadow: inset 0 -2px 0 var(--brass-line); }
.bl-alert { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 3px var(--down-t); }
.bl-alert.calm { background: var(--accent); box-shadow: 0 0 0 3px var(--brass-t); }
.cab .bl-tabs button.off { position: relative; color: var(--faint); }
.cab .bl-tabs button.off[aria-current="true"] { color: var(--muted); }
.bl-tabs button.off svg { flex: none; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) {
  .bl-tabs button.off .w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.n6 { --n: 6; } .n7 { --n: 7; } .n8 { --n: 8; } .n9 { --n: 9; } .n10 { --n: 10; } .n11 { --n: 11; }
.n12 { --n: 12; } .n13 { --n: 13; } .n14 { --n: 14; } .n15 { --n: 15; } .n16 { --n: 16; }
.tiles dt { color: var(--muted); font-size: .9375rem; }
.tiles dd { margin: 0; font-size: 1.3125rem; font-weight: 650; font-stretch: 112%; }
.symbol { color: var(--text); font-size: 1.375rem; font-weight: 750; font-stretch: 118%; letter-spacing: .01em; text-decoration: none; }
.dot-buy { fill: var(--up); }
.key-buy-dot { width: .75rem; height: .75rem; border-radius: 50%; background: var(--up); }

#signed-out .lead { margin: .75rem 0 1.5rem; color: var(--muted); }
:is(.halt-bar, .notices, .cab p.quiet) { overflow-wrap: anywhere; }
.cab button.small { min-height: 2.75rem; padding: .375rem 1rem; }
.halt-bar { margin-top: .875rem; padding: .75rem 1rem; background: var(--down-t); border-left: 4px solid var(--down); border-radius: .5rem; font-size: .9375rem; }
.halt-bar strong { color: var(--down); }
.halt-bar.calm { background: var(--raise); border-left-color: var(--line2); }
.halt-bar.calm strong { color: var(--text); }
.halt-bar ul { margin: .25rem 0; padding-left: 1.25rem; }
.cab p.quiet { margin-top: .5rem; color: var(--warn); font-size: .9375rem; font-weight: 600; }
.notices { display: grid; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.notices .notice { margin-top: 0; }
.cab .empty { color: var(--muted); }
.pill.paused::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.pill.stopped::before { border-radius: 1px; }
.stale-note { margin: 0; padding: .5rem 1rem; text-align: center; font-size: .9375rem; font-weight: 650; color: var(--warn-ink); background: var(--warn-t); border-bottom: 1px solid var(--line); }
body.stale .cab { filter: grayscale(1); opacity: .6; }
dialog.sheet { width: calc(100% - 2rem); max-width: 36rem; margin: auto; }
dialog.sheet::backdrop { background: var(--shade); }
dialog.sheet h2 { margin: 0 0 .5rem; font-size: 1.375rem; }
dialog.sheet p { margin: .75rem 0 0; }
dialog.sheet .note { color: var(--text); font-weight: 600; }
dialog.sheet .note:empty { display: none; }
@media (max-width: 599px) { dialog.sheet { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; } }
dialog.sheet .notice { margin-top: .75rem; }

.price-big { font-size: clamp(1.625rem, 5vw, 2rem); font-weight: 650; font-stretch: 112%; font-variant-numeric: tabular-nums; line-height: 1.15; }
.price-at { color: var(--muted); font-size: .8125rem; }
@media (max-width: 599px) { .price-big { font-size: 1.375rem; } }
.chart { padding: .875rem; background: var(--panel); border: 1px solid var(--line); border-radius: .625rem; }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.chart-head h2 { margin: 0; font-size: 1.125rem; }
.chart svg { display: block; width: 100%; height: auto; }
.lv { stroke: var(--line2); stroke-width: 1.5; }
.price-line { fill: none; stroke: var(--price); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ring { fill: var(--panel); stroke: var(--down); stroke-width: 2.5; }
.tag { fill: var(--text); font-size: 12px; font-weight: 700; text-anchor: end; }
@media (max-width: 599px) { .tag { font-size: 16px; } }
.legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .625rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .875rem; }
.key { display: inline-block; vertical-align: middle; margin-right: .375rem; }
.key-lot { width: .75rem; height: .75rem; border-radius: 50%; background: var(--lot); }
.key-sell { width: .8125rem; height: .8125rem; border-radius: 50%; border: 2.5px solid var(--down); }
.key-buy, .key-later, .key-price { width: 1.25rem; border-top: 2px solid var(--up); }
.key-later { border-top-style: dashed; opacity: .7; }
.key-price { border-top-color: var(--price); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.tiles div { padding: .875rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; }
.tiles dd { font-size: 1.5rem; }
.tiles .note { display: block; margin-top: .125rem; color: var(--muted); font-size: .875rem; font-weight: 400; font-stretch: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips input, .tabs input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.chips label { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .25rem .875rem; background: var(--panel); border: 1px solid var(--line2); border-radius: 999px; color: var(--muted); font-size: 1rem; font-weight: 500; cursor: pointer; }
.chips label:hover { color: var(--text); }
.chips input:checked + label { background: var(--raise); border-color: var(--muted); color: var(--text); font-weight: 650; }
.chips input:disabled + label { opacity: .45; cursor: default; }
.chips input:focus-visible + label, .tabs input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding: 0 1rem; border-bottom: 1px solid var(--line); }
.tabs label { padding: .75rem 0 .625rem; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; cursor: pointer; }
.tabs label:hover { color: var(--text); }
.tabs input:checked + label { color: var(--text); font-weight: 650; border-bottom-color: var(--brass-line); }
.bot-tabs { margin-top: 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: .625rem; }
.tab-panel { display: none; padding: .5rem 1rem 1rem; }
.bot-tabs:has(#tab-orders:checked) #panel-orders, .bot-tabs:has(#tab-lots:checked) #panel-lots,
.bot-tabs:has(#tab-levels:checked) #panel-levels, .bot-tabs:has(#tab-journal:checked) #panel-journal { display: block; }

.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th { padding: .5rem .5rem .375rem 0; color: var(--muted); font-size: .8125rem; font-weight: 500; text-align: left; }
.table td { padding: .625rem .5rem .625rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.side { font-weight: 650; }
.side::before { content: ""; display: inline-block; width: .6875rem; height: .6875rem; margin-right: .375rem; border-radius: 50%; }
.side.buy { color: var(--up); }
.side.buy::before { background: var(--up); }
.side.sell { color: var(--down); }
.side.sell::before { box-shadow: inset 0 0 0 .15rem var(--down); }
@media (max-width: 599px) { .table .wide { display: none; } }
.levels { margin: 0; padding: 0; list-style: none; }
.levels li { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: .75rem; padding: .5rem .5rem; border-bottom: 1px solid var(--line); }
.levels b { font-weight: 650; }
.levels .lot b { color: var(--lot); }
.levels .buy b { color: var(--up); }
.levels .sell b { color: var(--down); }
.levels .now { background: var(--raise); border-bottom: 1px dashed var(--price); font-weight: 650; }
.levels .later { color: var(--muted); }
.levels .gap { display: block; color: var(--muted); font-size: .9375rem; text-align: center; }

.feed { margin: 0; padding: 0; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: .625rem; overflow: hidden; }
.bot-tabs .feed { background: transparent; border: 0; border-radius: 0; }
.feed .event { display: grid; grid-template-columns: 1.25rem 5.5rem minmax(0, 1fr); gap: .25rem .75rem; align-items: baseline; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.bot-tabs .feed .event:first-child { border-top: 0; }
.bot-tabs .feed .event { padding-left: 0; padding-right: 0; }
.feed time { color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.feed .problem { background: var(--warn-t); }
.bot-tabs .feed .problem { padding-left: .5rem; padding-right: .5rem; border-radius: .5rem; }
@media (max-width: 599px) {
  .feed .event { grid-template-columns: 1.25rem minmax(0, 1fr); }
  .feed .event p { grid-column: 2; }
}
.icon { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; background: var(--line2); }
.icon.buy { background: var(--up); }
.icon.sell { background: transparent; box-shadow: inset 0 0 0 .15rem var(--down); }
.icon.bad { position: relative; top: .125rem; width: 1.125rem; height: 1.125rem; background: var(--warn); color: var(--night); font-size: .8125rem; font-weight: 800; line-height: 1.125rem; text-align: center; }
.icon.bad::before { content: "!"; }
.times { display: inline-block; margin-left: .375rem; padding: 0 .5rem; border-radius: 999px; background: var(--warn-t); color: var(--warn); font-size: .8125rem; font-weight: 750; }

.window { display: none; }
.window:target { display: block; position: fixed; inset: 0; z-index: 10; overflow-y: auto; padding: 1.5rem 1rem; background: var(--shade); }
.sheet { max-width: 36rem; margin: 0 auto; padding: 1.25rem 1.25rem 1.5rem; background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: .75rem; box-shadow: var(--lift); }
.sheet.wide { max-width: 44rem; }
.foot { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
@media (max-width: 599px) {
  .window:target { padding: 0; }
  .sheet { min-height: 100%; border: 0; border-radius: 0; box-shadow: none; }
}
.rows { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 1rem 0; padding: .25rem .875rem; background: var(--night); border: 1px solid var(--line); border-radius: .5rem; }
.rows dt, .rows dd { margin: 0; padding: .5rem 0; border-top: 1px solid var(--line); }
.rows dt:first-of-type, .rows dt:first-of-type + dd { border-top: 0; }
.rows dt { color: var(--muted); }
.rows dd { padding-left: 1rem; font-weight: 650; text-align: right; }
@media (max-width: 599px) {
  .rows { grid-template-columns: minmax(0, 1fr); }
  .rows dt { padding-bottom: 0; }
  .rows dd { padding: .125rem 0 .5rem; border-top: 0; text-align: left; }
}
.notice { margin-top: .75rem; padding: .625rem .875rem; background: var(--warn-t); color: var(--warn-ink); border-radius: .5rem; font-size: .9375rem; }

dialog.sheet.bw { max-width: 32rem; padding: 1.25rem 1.25rem 1rem; border-radius: 1rem; overflow-wrap: anywhere; }
dialog.bw p { margin: 0; }
dialog.bw .bw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
dialog.bw .bw-head h2 { margin: .25rem 0 0; font-size: 1.375rem; line-height: 1.25; }
dialog.bw .bw-head h2:focus { outline: none; }
dialog.bw .bw-head h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
dialog.bw .bw-head .practice { margin-left: .375rem; vertical-align: .125rem; }
dialog.bw button.bw-x { flex: none; width: 2.25rem; height: 2.25rem; min-height: 0; padding: 0; background: var(--raise); color: var(--muted); border: 0; border-radius: 50%; }
dialog.bw button.bw-x:hover { color: var(--text); }
dialog.bw .bw-x svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
dialog.bw .bw-sub { margin-top: .375rem; color: var(--muted); font-size: .9375rem; }
dialog.bw .bw-have { margin-top: .875rem; padding: .625rem .875rem; background: var(--raise); border-radius: .5rem; color: var(--muted); font-size: .9375rem; text-align: center; }
dialog.bw .bw-have b { color: var(--text); font-variant-numeric: tabular-nums; }
dialog.bw .bw-lead { margin-top: .875rem; }
dialog.bw :is(.sim-note, .notice) { margin-top: .75rem; }
dialog.bw .bw-off { margin-top: .875rem; padding: .625rem .875rem; background: var(--raise); border-left: 4px solid var(--warn); border-radius: .5rem; font-weight: 600; }
dialog.bw .bw-wait { display: flex; align-items: center; gap: .75rem; margin-top: .875rem; padding: .625rem .875rem; background: var(--raise); border-left: 4px solid var(--brass-line); border-radius: .5rem; font-size: .9375rem; font-weight: 600; }
dialog.bw .bw-wait .wait-ico { flex: none; width: 1.75rem; height: 1.75rem; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
dialog.bw .bw-note { margin-top: 1rem; padding: .75rem .875rem; background: var(--raise); border-radius: .5rem; font-weight: 600; }
dialog.bw .bw-note.ok { background: var(--up-t); }
dialog.bw .bw-note.bad { background: var(--down-t); }
dialog.bw .bw-note:empty { display: none; }
dialog.bw .bw-opts { display: grid; gap: .625rem; min-width: 0; margin: .875rem 0 0; padding: 0; border: 0; }
dialog.bw .bw-opt { position: relative; background: var(--night); border: 1px solid var(--line2); border-radius: .75rem; overflow: hidden; }
dialog.bw .bw-opt:has(> .bw-opt-head input:checked) { background: var(--raise); border-color: var(--brass-line); }
dialog.bw .bw-opt:has(> .bw-opt-head input:checked)::after { content: ""; position: absolute; right: 0; bottom: 0; width: 1.75rem; height: 1.75rem; background: linear-gradient(135deg, transparent 50%, var(--brass-line) 50%); }
dialog.bw .bw-opt:has(> .bw-opt-head input:checked)::before { content: ""; position: absolute; right: .3125rem; bottom: .4375rem; z-index: 1; width: .3125rem; height: .5625rem; border: solid var(--brass-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
dialog.bw .bw-opt:has(> .bw-opt-head input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
dialog.bw .bw-opt-head { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .875rem; align-items: start; padding: .875rem 1rem; cursor: pointer; }
dialog.bw .bw-opt-head input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
dialog.bw .bw-ico { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--raise); }
dialog.bw .bw-opt:has(> .bw-opt-head input:checked) .bw-ico, dialog.bw .bw-info .bw-ico { background: var(--night); }
dialog.bw .bw-ico::before { content: ""; width: .875rem; height: .875rem; border-radius: 50%; }
dialog.bw .bw-ico.sell::before { border: 2.5px solid var(--down); }
dialog.bw .bw-ico.keep::before { background: var(--lot); }
dialog.bw .bw-ico.gone::before { border: 2px dashed var(--muted); }
dialog.bw .bw-t b { display: block; font-size: 1.0625rem; font-weight: 650; }
dialog.bw .bw-t > span { display: block; margin-top: .25rem; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
dialog.bw .bw-t .why-off { color: var(--warn); font-weight: 600; }
dialog.bw .bw-ways { display: none; gap: .375rem; margin: 0 1rem 1rem 4.375rem; padding-top: .75rem; border-top: 1px solid var(--line2); }
dialog.bw .bw-opt:has(> .bw-opt-head input:checked) .bw-ways { display: grid; }
dialog.bw .bw-way { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .625rem; align-items: start; padding: .5rem .625rem; border-radius: .5rem; cursor: pointer; }
dialog.bw .bw-way:has(input:checked) { background: var(--night); box-shadow: inset 0 0 0 1px var(--brass-line); }
dialog.bw .bw-way input { width: 1.125rem; height: 1.125rem; margin: .1875rem 0 0; accent-color: var(--brass-line); }
dialog.bw .bw-way.off { cursor: default; }
dialog.bw .bw-way.off b { color: var(--muted); }
dialog.bw .bw-way b { font-size: 1rem; }
dialog.bw .bw-way .bw-t > span { font-size: .875rem; }
dialog.bw .bw-limit { display: none; margin: 0 0 .25rem 2.5rem; }
dialog.bw .bw-ways:has(input[value="limit"]:checked) .bw-limit { display: block; }
dialog.bw .bw-limit .input { max-width: 15rem; margin-top: 0; }
dialog.bw .bw-limit .input.bad { border-color: var(--down); box-shadow: 0 0 0 1px var(--down); }
dialog.bw .bw-limit :is(.hint, .error) { margin-top: .375rem; font-size: .875rem; }
dialog.bw .bw-info { display: grid; margin: .875rem 0 0; padding: 0 1rem; background: var(--raise); border-radius: .75rem; list-style: none; }
dialog.bw .bw-info li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .875rem; padding: .875rem 0; border-top: 1px solid var(--line2); }
dialog.bw .bw-info li:first-child { border-top: 0; }
dialog.bw .bw-rows { display: grid; margin: .875rem 0 0; padding: .375rem .875rem; background: var(--raise); border-radius: .625rem; }
dialog.bw .bw-rows + .bw-rows { margin-top: .5rem; }
dialog.bw .bw-rows > div { display: flex; align-items: baseline; gap: .5rem; padding: .375rem 0; }
dialog.bw .bw-rows dt { display: flex; flex: 1 1 auto; align-items: baseline; color: var(--muted); font-size: .9375rem; }
dialog.bw .bw-rows dt::after { content: ""; flex: 1; min-width: 1rem; margin-left: .5rem; border-bottom: 1px dotted var(--line2); }
dialog.bw .bw-rows dd { margin: 0; max-width: 62%; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
dialog.bw .bw-terms { margin-top: .875rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
dialog.bw .bw-foot { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.25rem; }
dialog.bw .bw-foot > :is(.bw-go, .bw-next) { flex: 1 1 auto; }
dialog.bw .bw-foot:has(> .bw-next:not([hidden])) > .bw-go { flex: 0 0 auto; }
dialog.bw .bw-foot:has(> .bw-go[hidden]) > .bw-cancel { flex: 1 1 auto; }
dialog.bw .bw-foot button:disabled { background: transparent; color: var(--muted); border-color: var(--line2); border-style: dashed; }
dialog.bw .bw-fine { flex: 1 0 100%; color: var(--muted); font-size: .8125rem; text-align: center; }
dialog.bw .bw-fine:empty { display: none; }
@media (max-width: 599px) {
  dialog.sheet.bw { padding: 1rem 1rem 0; border-radius: 0; }
  dialog.bw[open] { display: flex; flex-direction: column; }
  dialog.bw[open] > * { flex: none; }
  dialog.bw .bw-ways { margin: 0 .75rem .875rem; }
  dialog.bw .bw-opt-head { gap: .75rem; padding: .875rem; }
  dialog.bw .bw-foot { position: sticky; bottom: 0; margin-top: auto; padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
  dialog.bw .bw-rows > div { flex-wrap: wrap; gap: .125rem .5rem; }
  dialog.bw .bw-rows dt { flex-basis: 100%; }
  dialog.bw .bw-rows dt::after { display: none; }
  dialog.bw .bw-rows dd { max-width: none; text-align: left; }
}

.big { font-size: 2rem; font-weight: 650; font-stretch: 112%; font-variant-numeric: tabular-nums; }

dialog.bw .cs-until { text-align: left; color: var(--text); line-height: 1.5; }
dialog.bw .cs-what { margin-top: 1rem; }
dialog.bw .cs-what h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 650; font-stretch: 100%; }
dialog.bw .cs-what ul { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
dialog.bw .cs-what li { padding: .125rem 0 .125rem .875rem; border-left: 2px solid var(--brass-line); }
dialog.bw .cs-what a { font-size: .875rem; font-weight: 650; }
dialog.bw .cs-what li p { margin: .1875rem 0 0; font-size: .9375rem; line-height: 1.45; }
dialog.bw .cs-check { display: flex; gap: .625rem; align-items: flex-start; margin-top: 1rem; font-size: 1rem; line-height: 1.45; cursor: pointer; }
dialog.bw .cs-check input { flex: none; width: 1.375rem; height: 1.375rem; margin: .05rem 0 0; accent-color: var(--brass-line); }
dialog.bw .cs-check + .error { margin: .375rem 0 0 2rem; }
.cs-strip { background: var(--panel); border-bottom: 1px solid var(--line2); }
.cs-strip-in { display: flex; align-items: center; gap: .875rem; max-width: calc(var(--wide) + 2rem); margin: 0 auto; padding: .625rem 1rem; }
.cs-strip-in p { flex: 1; min-width: 0; margin: 0; font-weight: 600; }
.cs-ico { flex: none; width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cs-strip .cs-review { flex: none; }
@media (max-width: 599px) {
  .cs-strip-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem .75rem; padding: .75rem 1rem; }
  .cs-strip .cs-review { grid-column: 2; justify-self: start; }
}
