/* Yew. A decision terminal: black page, lime text, magenta for losses and
   refusals, olive for the quiet parts. One family (JetBrains Mono), zero
   radius, hairline panes that tile like a terminal multiplexer. */
:root {
  --bg: #0b0f0a;
  --panel: #10150e;
  --panel-2: #151c12;
  --line: #1f2a1a;
  --line-2: #2c3a24;
  --lime: #c6ff00;
  --lime-soft: rgba(198, 255, 0, 0.82);
  --lime-18: rgba(198, 255, 0, 0.18);
  --lime-10: rgba(198, 255, 0, 0.1);
  --lime-05: rgba(198, 255, 0, 0.05);
  --mag: #ff3df2;
  --mag-14: rgba(255, 61, 242, 0.14);
  --olive: #6b7a5a;
  --olive-2: #8b9c78;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1440px;
  --gut: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--lime);
  font: 16px/1.5 var(--mono); font-variant-numeric: lining-nums tabular-nums;
  padding: 0 var(--gut); min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
b, strong { font-weight: 700; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
code { font: inherit; }
img { max-width: 100%; }
svg { display: inline-block; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
::selection { background: var(--lime); color: var(--bg); }
::placeholder { color: var(--olive); opacity: 1; }
button { font: inherit; }

/* ---- words ------------------------------------------------------------ */
.yw-lbl, .yw-eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); font-weight: 500; }
.yw-mute { color: var(--olive); }
.yw-dim { color: var(--olive-2); }
.yw-up { color: var(--lime); }
.yw-down, .is-down { color: var(--mag); }
.yw-warn { color: var(--mag); }
.yw-num { font-variant-numeric: lining-nums tabular-nums; }
.yw-state { color: var(--olive); margin: 12px 0; }
.yw-state:empty { display: none; }
.yw-prose { color: var(--lime-soft); max-width: 72ch; }
.yw-prose p { margin: 0 0 14px; }
.yw-tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  padding: 1px 6px; border: 1px solid currentColor; line-height: 1.5; vertical-align: 1px; white-space: nowrap;
}
.yw-tag.is-mag { color: var(--mag); }
.yw-tag.is-olive { color: var(--olive); }
.yw-tag.is-fill { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.yw-sample { color: var(--mag); border: 1px dashed var(--mag); padding: 1px 6px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }

/* ---- header ----------------------------------------------------------- */
.yw-top { position: sticky; top: 0; z-index: 30; background: var(--bg); margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); border-bottom: 1px solid var(--line); }
.yw-top-in { max-width: var(--max); margin: 0 auto; height: 50px; display: flex; align-items: center; gap: 22px; }
.yw-brand { display: inline-flex; align-items: center; height: 100%; padding-right: 6px; color: var(--lime); }
.yw-brand:hover { text-decoration: none; }
.yw-mark { display: block; width: 41px; height: 17px; }
.yw-nav { display: flex; gap: 4px; }
.yw-nav a { display: inline-flex; align-items: center; height: 50px; padding: 0 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.yw-nav a:hover { color: var(--lime); text-decoration: none; }
.yw-nav a[aria-current="page"] { color: var(--lime); border-bottom-color: var(--lime); }
.yw-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.yw-burger { display: none; }
.yw-connect.is-connected { border-color: var(--lime); }
.yw-connect.is-connected span { text-transform: none; letter-spacing: 0; }

/* status strip */
.yw-strip { margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); border-bottom: 1px solid var(--line); background: var(--panel); }
.yw-strip-in { max-width: var(--max); margin: 0 auto; display: flex; height: 30px; align-items: stretch; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.yw-strip-in::-webkit-scrollbar { display: none; }
.yw-si { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 0; margin-right: 14px; border-right: 1px solid var(--line); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); }
.yw-si:last-child { border-right: 0; margin-right: 0; }
.yw-si b { font-weight: 500; color: var(--lime); letter-spacing: 0.06em; }
.yw-si.is-mag b { color: var(--mag); }
.yw-si.is-olive b { color: var(--olive-2); }
.yw-si.is-right { margin-left: auto; }
.yw-dot { display: inline-block; width: 7px; height: 7px; background: var(--lime); animation: yw-blink 1.6s steps(1) infinite; }
.yw-si.is-olive .yw-dot { background: var(--olive); animation: none; }
.yw-si.is-mag .yw-dot { background: var(--mag); animation: none; }
@keyframes yw-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---- shell ------------------------------------------------------------ */
.yw-main { max-width: var(--max); margin: 0 auto; padding: 14px 0 56px; }
.yw-two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px; align-items: start; }
.yw-two.is-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.yw-two.is-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.yw-col { display: grid; gap: 8px; min-width: 0; }
.yw-desk { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px; align-items: stretch; margin-top: 8px; }
.yw-stack { display: grid; gap: 8px; margin-top: 8px; }

/* panes tile like a multiplexer: hairline, no radius, a title in the border */
.yw-pane { background: var(--panel); border: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.yw-pane-h { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); font-weight: 700; min-height: 32px; }
.yw-pane-h .yw-pane-m { margin-left: auto; color: var(--olive); font-weight: 500; letter-spacing: 0.08em; display: inline-flex; gap: 10px; align-items: center; }
.yw-pane-h .yw-btn { margin-left: auto; }
.yw-pane-b { padding: 12px; }
.yw-pane-b.is-tight { padding: 0; }
.yw-pane.is-fresh { animation: yw-tremble 0.5s ease; box-shadow: inset 0 0 0 1px var(--lime); }
.yw-row.is-fresh { animation: yw-tremble 0.5s ease; box-shadow: inset 0 0 0 1px var(--lime); }
@keyframes yw-tremble { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }

/* ---- controls --------------------------------------------------------- */
.yw-btn, .tp-btn, .ip-btn, .yw-copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 10px; min-height: 28px;
  border: 1px solid var(--line-2); background: transparent; color: var(--lime); cursor: pointer;
  font: inherit; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; line-height: 1.4; white-space: nowrap;
}
.yw-btn:hover, .tp-btn:hover, .ip-btn:hover, .yw-copy:hover { background: var(--lime-10); border-color: var(--lime); text-decoration: none; }
.yw-btn-primary, .tp-btn-primary { background: var(--lime); color: var(--bg); border-color: var(--lime); font-weight: 700; }
.yw-btn-primary:hover, .tp-btn-primary:hover { background: var(--lime); color: var(--bg); box-shadow: inset 0 0 0 1px var(--bg); }
.yw-btn-mag { color: var(--mag); border-color: var(--mag); }
.yw-btn-mag:hover { background: var(--mag-14); border-color: var(--mag); }
.yw-btn:disabled, .tp-btn:disabled, .ip-btn:disabled { opacity: 0.38; cursor: default; }
.yw-btn:disabled:hover, .tp-btn:disabled:hover { background: transparent; border-color: var(--line-2); box-shadow: none; }
.yw-btn-primary:disabled:hover, .tp-btn-primary:disabled:hover { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.yw-copy.is-ok { color: var(--bg); background: var(--lime); border-color: var(--lime); }
.yw-btn.is-on { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.yw-btn-sm { padding: 2px 7px; min-height: 22px; font-size: 10px; }
.yw-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

input, textarea, select { font: inherit; }
.yw-in, .yw-kv input, .yw-kv textarea, .yw-kv select, .tp-custom input, .ip-drop + div input, .yw-inline input {
  width: 100%; background: var(--bg); color: var(--lime); border: 1px solid var(--line-2); padding: 7px 10px; min-height: 36px;
  font: inherit; font-size: 14px; line-height: 1.4; -webkit-appearance: none; appearance: none; border-radius: 0;
}
.yw-kv input:focus, .yw-kv textarea:focus, .yw-kv select:focus, .yw-in:focus, .yw-inline input:focus { outline: 0; border-color: var(--lime); }
.yw-kv textarea { resize: vertical; min-height: 84px; }
.yw-kv select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23c6ff00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; padding-right: 30px; }
select option { background: var(--panel); color: var(--lime); }
input[type="datetime-local"] { color-scheme: dark; }
input[type="checkbox"] { width: 14px; height: 14px; margin: 0 6px 0 0; accent-color: var(--lime); vertical-align: -2px; }
.yw-inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.yw-inline input { width: auto; min-width: 90px; flex: 1 1 140px; }

/* config blocks: the launch forms read like a file that becomes a transaction */
.yw-cfg { border: 1px solid var(--line); background: var(--panel); margin: 0 0 8px; padding: 6px 12px 12px; min-width: 0; }
.yw-cfg legend { padding: 0 6px; margin-left: -6px; font-size: 12px; letter-spacing: 0.1em; color: var(--lime); font-weight: 700; }
.yw-cfg-help { color: var(--olive); font-size: 13px; margin: 2px 0 10px; }
.yw-kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.yw-kv:first-of-type { border-top: 0; }
.yw-kv > label, .yw-kv > .yw-k { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive-2); padding-top: 9px; line-height: 1.4; }
.yw-kv > label small, .yw-kv > .yw-k small { display: block; text-transform: none; letter-spacing: 0; color: var(--olive); font-size: 11px; }
.yw-kv .yw-v { min-width: 0; }
.yw-hint { font-size: 12px; color: var(--olive); margin-top: 5px; }
.yw-err { display: block; font-size: 12px; color: var(--mag); margin-top: 5px; min-height: 0; }
.yw-err:empty { display: none; }
.yw-err::before { content: "! "; font-weight: 700; }
.yw-cfg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.yw-cfg-grid label { display: grid; gap: 4px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive-2); }
.yw-cfg-grid input { width: 100%; background: var(--bg); color: var(--lime); border: 1px solid var(--line-2); padding: 7px 10px; min-height: 36px; font: inherit; font-size: 14px; }
.yw-cfg-grid input:focus { outline: 0; border-color: var(--lime); }
.yw-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); cursor: pointer; }
.yw-phase { border: 1px solid var(--line); margin: 8px 0 0; padding: 8px 12px 12px; background: var(--bg); }
.yw-phase legend { padding: 0 6px; margin-left: -6px; font-size: 12px; color: var(--lime); font-weight: 700; letter-spacing: 0.08em; }
.yw-phase legend .yw-check { font-weight: 700; }
.yw-phase-help { font-size: 12px; color: var(--olive); margin: 0 0 8px; }
.yw-phase textarea { width: 100%; background: var(--bg); color: var(--lime); border: 1px solid var(--line-2); padding: 7px 10px; font: inherit; font-size: 13px; min-height: 72px; resize: vertical; }
.yw-form-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.yw-status { color: var(--olive); font-size: 14px; }

/* term sheet */
.yw-sheet { position: sticky; top: 92px; }
.yw-kvs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 0; }
.yw-kvs dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); padding: 7px 14px 7px 0; border-top: 1px solid var(--line); }
.yw-kvs dd { margin: 0; padding: 7px 0; border-top: 1px solid var(--line); text-align: right; font-size: 14px; overflow-wrap: anywhere; }
.yw-kvs dt:first-of-type, .yw-kvs dd:first-of-type { border-top: 0; }
.yw-kvs .is-hi { color: var(--lime); font-weight: 700; }
.yw-kvs .is-mag { color: var(--mag); }

/* ---- tables ----------------------------------------------------------- */
.yw-tablewrap { overflow-x: auto; }
.yw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.yw-table th { text-align: left; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); font-weight: 500; padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.yw-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.yw-table tr:last-child td { border-bottom: 0; }
.yw-table tbody tr:hover td { background: var(--panel-2); }
.yw-table .is-r, .yw-table th.is-r { text-align: right; }
.yw-table .is-w { white-space: normal; }
.yw-table .yw-btn { margin: -3px 0; }

/* ---- hero ------------------------------------------------------------- */
.yw-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; padding: 22px 0 18px; border-bottom: 1px solid var(--line); }
.yw-hero h1 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.01em; max-width: 26ch; text-transform: lowercase; }
.yw-hero h1 .yw-cur { vertical-align: -2px; }
.yw-hero-sub { color: var(--olive-2); margin: 8px 0 0; max-width: 62ch; }
.yw-hero-act { display: flex; gap: 8px; flex-wrap: wrap; }
.yw-cur { display: inline-block; width: 0.6em; height: 1em; background: var(--lime); vertical-align: -0.15em; animation: yw-cursor 1.1s steps(1) infinite; }
.yw-cur.is-mag { background: var(--mag); }
@keyframes yw-cursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---- tape ------------------------------------------------------------- */
.yw-tape { border: 1px solid var(--line); border-top: 0; background: var(--panel); overflow: hidden; display: flex; align-items: stretch; height: 32px; }
.yw-tape-lbl { display: inline-flex; align-items: center; padding: 0 12px; font-size: 11px; letter-spacing: 0.14em; color: var(--lime); font-weight: 700; border-right: 1px solid var(--line); background: var(--panel); flex: none; z-index: 1; }
.yw-tape-win { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.yw-tape-in { display: inline-flex; gap: 0; white-space: nowrap; will-change: transform; animation: yw-tape 46s linear infinite; }
.yw-tape:hover .yw-tape-in, .yw-tape:focus-within .yw-tape-in { animation-play-state: paused; }
.yw-tape-it { display: inline-flex; gap: 10px; align-items: baseline; padding: 0 18px; border-right: 1px solid var(--line); font-size: 12px; letter-spacing: 0.04em; color: var(--olive-2); }
.yw-tape-it b { color: var(--lime); font-weight: 700; }
.yw-tape-it:hover { text-decoration: none; background: var(--lime-05); }
.yw-tape-it .is-down { color: var(--mag); }
@keyframes yw-tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.yw-tape-empty { padding: 0 14px; font-size: 12px; color: var(--olive); }

/* ---- event stream ----------------------------------------------------- */
.yw-stream { height: 392px; overflow-y: auto; overscroll-behavior: contain; padding: 8px 0; font-size: 13px; scrollbar-color: var(--line-2) transparent; scrollbar-width: thin; }
.yw-ln { display: grid; grid-template-columns: 62px 58px minmax(0, 1fr); gap: 0 10px; padding: 3px 12px; align-items: baseline; line-height: 1.45; }
.yw-ln:hover { background: var(--lime-05); }
.yw-ln.is-new { animation: yw-flash 1.6s ease-out; }
@keyframes yw-flash { 0% { background: var(--lime-18); } 100% { background: transparent; } }
.yw-ln-t { color: var(--olive); font-size: 12px; letter-spacing: 0.02em; }
.yw-ln-tag { font-size: 10px; letter-spacing: 0.12em; font-weight: 700; text-transform: uppercase; color: var(--lime); border: 1px solid var(--lime); padding: 0 5px; text-align: center; line-height: 1.5; }
.yw-ln-tag.is-mag { color: var(--mag); border-color: var(--mag); }
.yw-ln-tag.is-olive { color: var(--olive-2); border-color: var(--line-2); }
.yw-ln-tag.is-fill { background: var(--lime); color: var(--bg); }
.yw-ln-x { color: var(--lime); overflow-wrap: anywhere; }
.yw-ln-x a { border-bottom: 1px dotted var(--olive); }
.yw-ln-x a:hover { text-decoration: none; border-bottom-color: var(--lime); }
.yw-ln-x .yw-sample { margin-left: 8px; font-size: 9px; padding: 0 4px; }
.yw-ln-x .yw-mute { color: var(--olive-2); }
.yw-prompt { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--lime); }
.yw-prompt b { color: var(--lime); font-weight: 700; }
.yw-prompt .yw-mute { color: var(--olive); }
.yw-stream-empty { padding: 16px 12px; color: var(--olive); font-size: 13px; }

/* ---- radar bars: cells, not gradients ----------------------------------- */
.yw-radar { display: grid; gap: 0; }
.yw-rr { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 4px 12px; padding: 9px 12px; border-top: 1px solid var(--line); align-items: center; }
.yw-rr:first-child { border-top: 0; }
.yw-rr:hover { background: var(--lime-05); }
.yw-rr-id { display: grid; gap: 2px; min-width: 0; }
.yw-rr-id a { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yw-rr-id small { font-size: 11px; color: var(--olive); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yw-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 12px; }
.yw-bar { display: grid; gap: 3px; min-width: 0; }
.yw-bar-l { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive); white-space: nowrap; }
.yw-bar-l b { color: var(--lime); font-weight: 500; letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; }
.yw-bar-l b.is-down { color: var(--mag); }
.yw-cells { display: block; width: 100%; height: 8px; }
.yw-cells rect { fill: var(--line-2); }
.yw-cells rect.on { fill: var(--lime); }
.yw-cells rect.on.mag { fill: var(--mag); }
.yw-cells rect.mid { fill: var(--olive); }

/* ---- pool rows (feed) ------------------------------------------------- */
.yw-tabs { display: inline-flex; gap: 0; border: 1px solid var(--line-2); }
.yw-tabs button { font: inherit; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 12px; border: 0; background: transparent; color: var(--olive-2); cursor: pointer; font-weight: 500; }
.yw-tabs button + button { border-left: 1px solid var(--line-2); }
.yw-tabs button.is-on { background: var(--lime); color: var(--bg); font-weight: 700; }
.yw-tabs button:hover:not(.is-on) { color: var(--lime); }
.yw-rows { display: grid; gap: 0; }
.yw-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(0, 3fr) auto; gap: 10px 16px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.yw-row:first-child { border-top: 0; }
.yw-row:hover { background: var(--lime-05); }
.yw-row-id { display: flex; gap: 10px; align-items: center; min-width: 0; }
.yw-row-id:hover { text-decoration: none; }
.yw-row-id > div { min-width: 0; }
.yw-row-id b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yw-row-id span { display: block; font-size: 12px; color: var(--olive-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yw-logo { width: 40px; height: 40px; flex: none; object-fit: cover; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 700; color: var(--lime); font-size: 16px; }
.yw-logo.is-lg { width: 64px; height: 64px; font-size: 24px; }
.yw-row-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px 10px; min-width: 0; }
.yw-row-stats > div { min-width: 0; }
.yw-row-stats i { display: block; font-style: normal; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); white-space: nowrap; }
.yw-row-stats b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yw-row-stats s { display: block; text-decoration: none; font-size: 11px; color: var(--olive); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yw-row-act { display: flex; gap: 6px; justify-content: flex-end; }
.yw-drop-line { font-size: 12px; color: var(--olive-2); }
.yw-drop-line .is-live { color: var(--lime); }
.yw-empty { padding: 26px 12px; color: var(--olive); text-align: left; }
.yw-empty b { color: var(--lime); }
.yw-more { display: flex; justify-content: center; padding: 10px; border-top: 1px solid var(--line); }

/* ---- id card (token and collection heads) ------------------------------ */
.yw-idcard { padding: 14px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; align-items: center; }
.yw-idcard h1 { font-size: 22px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.yw-idcard h1 .yw-sym { color: var(--olive-2); font-weight: 500; font-size: 16px; }
.yw-idcard .yw-addr { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 12px; color: var(--olive-2); }
.yw-idcard .yw-addr code { color: var(--lime); font-size: 12px; overflow-wrap: anywhere; }
.yw-idcard .yw-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.yw-banner { width: 100%; height: 150px; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.yw-idwrap { padding: 0; }

/* scorecard */
.yw-score { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.yw-sc { background: var(--panel); padding: 10px 12px; min-width: 0; }
.yw-sc i { display: block; font-style: normal; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yw-sc b { display: block; font-size: 17px; font-weight: 700; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yw-sc s { display: block; text-decoration: none; font-size: 11px; color: var(--olive-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yw-sc.is-down b { color: var(--mag); }
.yw-embed { width: 100%; height: 420px; border: 0; display: block; background: var(--bg); }
.yw-spark { display: block; width: 100%; height: auto; }
.yw-chartwrap { padding: 0; }
.yw-chartwrap p { padding: 14px 12px; }

/* ---- order pane (PadTrade) ------------------------------------------- */
.tp-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 10px; border: 1px solid var(--line-2); }
.tp-tab { font: inherit; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 7px; border: 0; background: transparent; color: var(--olive-2); cursor: pointer; }
.tp-tab + .tp-tab { border-left: 1px solid var(--line-2); }
.tp-tab.is-on { background: var(--lime); color: var(--bg); }
.tp-tab[data-tab="sell"].is-on { background: var(--mag); color: var(--bg); }
.tp-leg { border: 1px solid var(--line-2); padding: 8px 10px; margin: 0; background: var(--bg); }
.tp-leg-get { border-top: 0; }
.tp-leg-top { display: flex; gap: 8px; align-items: center; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); }
.tp-bal { margin-left: auto; color: var(--olive-2); text-transform: none; letter-spacing: 0.02em; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-btn-max { padding: 1px 6px; min-height: 20px; font-size: 10px; }
.tp-amt { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.tp-input { flex: 1; min-width: 0; font: inherit; font-size: 22px; font-weight: 500; border: 0; outline: 0; background: transparent; color: var(--lime); padding: 2px 0; }
.tp-input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.yw-kv input:focus-visible, .yw-kv textarea:focus-visible, .yw-kv select:focus-visible, .yw-in:focus-visible, .yw-inline input:focus-visible, .yw-cfg-grid input:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
.tp-out { flex: 1; min-width: 0; font-size: 22px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-asset { font-size: 12px; letter-spacing: 0.08em; color: var(--olive-2); font-weight: 700; flex: none; }
.is-dim { color: var(--olive); }
.tp-mid { height: 0; }
.tp-facts { display: grid; gap: 0; font-size: 12px; margin: 10px 0 0; }
.tp-fact { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); }
.tp-fact dt { color: var(--olive); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; align-self: center; }
.tp-fact dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.tp-hint { font-size: 12px; color: var(--olive); margin: 8px 0 0; }
.tp-slip { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tp-slip .tp-lbl { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); }
.tp-seg { display: inline-flex; border: 1px solid var(--line-2); }
.tp-seg button { font: inherit; font-size: 11px; padding: 2px 8px; border: 0; background: transparent; color: var(--olive-2); cursor: pointer; }
.tp-seg button + button { border-left: 1px solid var(--line-2); }
.tp-seg button.is-on { background: var(--lime); color: var(--bg); font-weight: 700; }
.tp-custom { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--olive); }
.tp-custom input { width: 90px; min-height: 30px; padding: 4px 8px; }
.tp-steps { display: flex; gap: 8px; align-items: center; font-size: 12px; margin: 10px 0 0; color: var(--olive-2); flex-wrap: wrap; }
.tp-steps i { font-style: normal; }
.tp-act { margin-top: 12px; }
.tp-act .tp-btn { width: 100%; padding: 10px; font-size: 12px; }
.tp-note { font-size: 12px; color: var(--olive-2); margin: 8px 0 0; }
.tp-note.is-warn { color: var(--mag); }
.tp-cap { display: flex; gap: 8px; align-items: center; font-size: 12px; margin-top: 8px; color: var(--olive-2); flex-wrap: wrap; }
.tp-cap i { font-style: normal; }
.tp-foot { font-size: 12px; margin: 8px 0 0; color: var(--olive-2); }
.tp-foot a { color: var(--lime); }
.tp-empty { color: var(--olive); font-size: 13px; margin: 0; }
.yw-off { color: var(--olive-2); font-size: 13px; }
.yw-off b { color: var(--mag); }

/* ---- picture picker (PadImagePick) ------------------------------------- */
.ip-drop { border: 1px dashed var(--line-2); padding: 10px; display: flex; gap: 12px; align-items: center; background: var(--bg); }
.ip-drop.is-over { border-color: var(--lime); background: var(--lime-05); }
.ip-prev { width: 64px; height: 64px; object-fit: cover; background: var(--panel); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--olive); flex: none; }
.ip-main { min-width: 0; }
.ip-title { font-weight: 700; font-size: 13px; }
.ip-sub { font-size: 12px; color: var(--olive); }
.ip-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ip-btn-ghost { border-color: var(--line); color: var(--olive-2); }
.ip-err { color: var(--mag); font-size: 12px; margin-top: 4px; }
.ip-err:empty { display: none; }

/* ---- collection: schedule + mint console ------------------------------- */
.yw-phase-row.is-open td { color: var(--lime); }
.yw-phase-row.is-open td:first-child { border-left: 2px solid var(--lime); }
.yw-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); }
.yw-stepper button { font: inherit; font-size: 16px; width: 36px; border: 0; background: transparent; color: var(--lime); cursor: pointer; }
.yw-stepper button:hover { background: var(--lime-10); }
.yw-stepper button:disabled { opacity: 0.35; cursor: default; }
.yw-stepper b { min-width: 48px; display: grid; place-items: center; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); font-size: 16px; }
.yw-mintline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.yw-total { font-size: 14px; }
.yw-total b { font-size: 18px; }
.yw-go { width: 100%; padding: 10px; font-size: 12px; margin-top: 4px; }

/* ---- launch chooser --------------------------------------------------- */
.yw-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.yw-choice a { display: block; background: var(--panel); border: 1px solid var(--line); padding: 18px 16px 16px; min-height: 180px; }
.yw-choice a:hover { text-decoration: none; border-color: var(--lime); background: var(--panel-2); }
.yw-choice .yw-eyebrow { color: var(--olive); }
.yw-choice h2 { font-size: 20px; margin: 6px 0 8px; }
.yw-choice p { color: var(--olive-2); font-size: 14px; }
.yw-choice .yw-cmd { color: var(--lime); font-size: 13px; margin-top: 14px; }
.yw-choice .yw-cmd b { font-weight: 700; }

/* ---- learn ------------------------------------------------------------ */
.yw-learn { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 8px; align-items: start; }
.yw-index a { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--olive-2); }
.yw-index a:first-child { border-top: 0; }
.yw-index a:hover { color: var(--lime); text-decoration: none; background: var(--lime-05); }
.yw-index a[aria-current="page"] { color: var(--lime); background: var(--lime-10); }
.yw-index a i { font-style: normal; color: var(--olive); font-size: 11px; flex: none; }
.yw-article { padding: 18px 20px 24px; }
.yw-article h1 { font-size: 22px; margin: 0 0 16px; text-transform: lowercase; }
.yw-article h1::before { content: "# "; color: var(--olive); }
.yw-article p { color: var(--lime-soft); max-width: 72ch; margin: 0 0 14px; }
.yw-article .yw-lede { color: var(--lime); margin-bottom: 18px; }
.yw-article .yw-nextprev { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

/* ---- dashboard -------------------------------------------------------- */
.yw-connectbox { padding: 26px 12px; display: grid; gap: 12px; justify-items: start; }
.yw-connectbox p { margin: 0; color: var(--olive-2); }

/* ---- 404 -------------------------------------------------------------- */
.yw-404 { padding: 28px 16px; }
.yw-404 .yw-big { font-size: clamp(48px, 10vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--mag); }
.yw-404 .yw-line { margin: 12px 0; color: var(--lime); }
.yw-404 .yw-line .yw-mute { color: var(--olive); }

/* ---- footer + toast -------------------------------------------------- */
.yw-foot { border-top: 1px solid var(--line); margin: 0 calc(-1 * var(--gut)); padding: 14px var(--gut) 22px; color: var(--olive); font-size: 12px; }
.yw-foot-in { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
.yw-foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.yw-foot nav a { letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; color: var(--olive-2); }
.yw-foot nav a:hover { color: var(--lime); }
.yw-foot .yw-mark { width: 29px; height: 12px; color: var(--olive-2); margin-right: 10px; }
.yw-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 14px); opacity: 0; background: var(--bg); color: var(--lime); border: 1px solid var(--lime); border-left-width: 4px; padding: 9px 14px; font-size: 13px; transition: 0.18s; z-index: 60; max-width: min(92vw, 560px); pointer-events: none; }
.yw-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.yw-toast::before { content: "> "; color: var(--olive-2); }

/* ---- motion off ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .yw-dot, .yw-cur { animation: none; }
  .yw-tape-in { animation: none; }
  .yw-tape-win { overflow-x: auto; }
  .yw-ln.is-new { animation: none; background: var(--lime-10); }
  .yw-pane.is-fresh, .yw-row.is-fresh { animation: none; }
  .yw-toast { transition: none; }
}

/* ---- widths ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .yw-row-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yw-score { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yw-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .yw-desk, .yw-two, .yw-two.is-even, .yw-two.is-wide, .yw-learn, .yw-choice { grid-template-columns: minmax(0, 1fr); }
  .yw-hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .yw-sheet { position: static; }
  .yw-row { grid-template-columns: minmax(0, 1fr); }
  .yw-row-act { justify-content: flex-start; }
  .yw-stream { height: 320px; }
}
@media (max-width: 760px) {
  .yw-nav { display: none; position: absolute; left: 0; right: 0; top: 50px; background: var(--bg); flex-direction: column; gap: 0; padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
  .yw-nav.is-open { display: flex; }
  .yw-nav a { height: 44px; padding: 0 var(--gut); border-bottom: 0; margin: 0; border-left: 2px solid transparent; }
  .yw-nav a[aria-current="page"] { border-left-color: var(--lime); border-bottom-color: transparent; }
  .yw-burger { display: inline-flex; }
  .yw-top-in { gap: 12px; }
  .yw-kv { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .yw-kv > label, .yw-kv > .yw-k { padding-top: 0; }
  .yw-cfg-grid { grid-template-columns: minmax(0, 1fr); }
  .yw-score { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-row-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-embed { height: 320px; }
  .yw-idcard { grid-template-columns: minmax(0, 1fr); }
  .yw-idcard h1 { font-size: 19px; }
  .yw-ln { grid-template-columns: 58px 52px minmax(0, 1fr); gap: 0 8px; padding: 3px 10px; }
  .yw-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-rr { grid-template-columns: minmax(0, 1fr); }
  .yw-kvs { grid-template-columns: minmax(0, 1fr); }
  .yw-kvs dd { text-align: left; padding-top: 0; border-top: 0; }
  .yw-kvs dt { padding-bottom: 2px; }
  .yw-kvs dd:first-of-type { border-top: 0; }
  .yw-table th, .yw-table td { padding: 7px 8px; }
  .yw-article { padding: 14px 12px 18px; }
  .yw-hero { padding: 16px 0 14px; }
}
