/* White Rabbit Algo. Matte black, mint and white. Mint is the brand and "up"; red is "down". Quicksand for the brand, Inter Tight for UI. */
:root {
  --bg: #070808; --rail: #050606; --panel: #0C0E0D; --raise: #121514; --hover: #171B1A; --line: #191C1B; --line2: #252A28;
  --text: #E9EEEC; --muted: #8E9693; --dim: #5A625F; --acc: #3FE7B0; --acc-dim: rgba(63,231,176,.12); --acc-ink: #04120C;
  --up: #3FE7B0; --up-dim: rgba(63,231,176,.12); --dn: #FF5C6C; --dn-dim: rgba(255,92,108,.12); --warn: #E8B54A; --warn-dim: rgba(232,181,74,.12); --info: #8FB8FF;
  --vio: #B48CFF; --vio-dim: rgba(180,140,255,.12);
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --serif: 'Quicksand', 'Inter Tight', sans-serif; --brand: 'Quicksand', 'Inter Tight', sans-serif;
  --r-s: 6px; --r-m: 10px; --r-l: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; } a.btn { text-decoration: none; } .mobile-only { display: none !important; }
code { word-break: break-all; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--up); } .neg { color: var(--dn); } .muted { color: var(--muted); } .dim { color: var(--dim); } .warn { color: var(--warn); }
.small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.err { color: var(--dn); min-height: 1.2em; margin: 4px 0 0; font-size: 13px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r-s);
  border: 1px solid var(--line2); background: var(--raise); cursor: pointer; font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); border-color: #2b4136; }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: var(--dn); border-color: var(--dn); color: #1d0306; font-weight: 600; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--hover); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.wide { width: 100%; height: 40px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.link { background: none; border: 0; color: var(--acc); cursor: pointer; padding: 0; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
input, select, textarea { background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r-s); padding: 8px 10px; color: var(--text); width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-dim); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--up); }
input[type=checkbox] { accent-color: var(--up); width: 16px; height: 16px; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r-s); padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); height: 26px; padding: 0 10px; border-radius: 4px; cursor: pointer; font-size: 12.5px; }
.seg button.on { background: var(--raise); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.seg button:hover:not(.on) { color: var(--text); }
.toggle { position: relative; width: 38px; height: 22px; flex: none; }
.toggle input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; background: var(--line2); border-radius: 99px; transition: background .15s; }
.toggle span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.toggle input:checked + span { background: var(--up); } .toggle input:checked + span::after { transform: translateX(16px); background: var(--acc-ink); }

/* ---------- gate ---------- */
.gate { position: fixed; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; overflow: auto; }
.gate-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 56px; border-right: 1px solid var(--line);
  background: radial-gradient(120% 90% at 0% 100%, #1a1c21 0%, #0d0e11 60%); overflow: hidden; }
.gate-art .rabbit-big { position: absolute; right: -60px; bottom: -40px; width: 460px; height: 460px; color: #1c1e23; }
.gate-art h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.01em; margin: 0; max-width: 11ch; position: relative; }
.gate-art p { color: var(--muted); max-width: 42ch; margin: 18px 0 0; font-size: 15px; position: relative; }
.gate-art .foot { color: var(--dim); font-size: 12.5px; position: relative; }
.gate-form { display: grid; place-items: center; padding: 32px 20px; }
.gate-card { width: min(380px, 100%); }
.gate-card h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 4px; font-weight: 600; }
.gate-card .lead { color: var(--muted); margin: 0 0 22px; font-size: 13.5px; }
.gate-card form { display: grid; gap: 12px; }
.mark svg { width: 26px; height: 26px; flex: none; } .mark span { color: var(--text); font-family: var(--serif); font-size: 21px; line-height: 1; }
.switch-mode { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .gate { grid-template-columns: 1fr; } .gate-art { padding: 28px 22px 34px; border-right: 0; border-bottom: 1px solid var(--line); } .gate-art .rabbit-big { width: 260px; height: 260px; right: -40px; bottom: -50px; } .gate-art .foot { display: none; } }

/* ---------- shell ---------- */
#app { display: flex; height: 100%; }
.rail { width: 216px; flex: none; background: var(--rail); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 12px 10px; gap: 2px; }
.rail a { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: var(--r-s); color: var(--muted); text-decoration: none; font-weight: 500; }
.rail a svg { width: 19px; height: 19px; flex: none; }
.rail a:hover { color: var(--text); background: var(--hover); }
.rail a.on { color: var(--text); background: var(--raise); box-shadow: none; }
.rail a.on svg { color: var(--text); }
.rail-brand { height: 46px !important; margin-bottom: 8px; color: var(--acc) !important; background: none !important; box-shadow: none !important; }
.rail-brand svg { width: 30px !important; height: 30px !important; }
.rail-brand::after { content: 'WHITE RABBIT'; color: var(--text); font-family: var(--brand); font-weight: 600; font-size: 13.5px; letter-spacing: .2em; }
.rail-gap { flex: 1; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { height: 56px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.top h1 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.spacer { flex: 1; }
.auto-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border-radius: 99px; border: 1px solid var(--line2);
  background: var(--panel); cursor: pointer; font-weight: 500; font-size: 13px; }
.auto-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.auto-pill.on { border-color: rgba(47,191,133,.45); } .auto-pill.on i { background: var(--up); box-shadow: 0 0 0 4px var(--up-dim); }
.auto-pill.halt { border-color: rgba(239,95,107,.5); color: var(--dn); } .auto-pill.halt i { background: var(--dn); }
.who { height: 32px; min-width: 32px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; font-size: 13px; }
#view { flex: 1; min-height: 0; overflow: auto; outline: none; }
.page { padding: 24px clamp(16px, 3vw, 36px) 48px; max-width: 1360px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: -.005em; line-height: 1.1; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }

/* ---------- surfaces ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.card .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card .hd h3 { flex: 1; }
.card p { margin: 6px 0 0; }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; }
.stat .v { font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin-top: 2px; }
.stat .k { color: var(--muted); font-size: 12.5px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 500; background: var(--raise);
  color: var(--muted); border: 1px solid var(--line2); white-space: nowrap; }
.badge.good { color: var(--up); background: var(--up-dim); border-color: transparent; }
.badge.bad { color: var(--dn); background: var(--dn-dim); border-color: transparent; }
.badge.warn { color: var(--warn); background: var(--warn-dim); border-color: transparent; }
.badge.info { color: var(--info); background: rgba(94,200,224,.1); border-color: transparent; }
.list .row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list .row:last-child { border-bottom: 0; }
.empty { border: 1px dashed var(--line2); border-radius: var(--r-m); padding: 22px; text-align: center; color: var(--muted); }
.empty b { color: var(--text); display: block; margin-bottom: 4px; font-weight: 600; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); white-space: nowrap; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; }
table.t tbody tr { cursor: default; } table.t tbody tr.click { cursor: pointer; } table.t tbody tr.click:hover { background: var(--hover); }
.tbl { overflow: auto; }
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--raise); }
.step .dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; flex: none; font-size: 12px; color: var(--muted); }
.step.done .dot { background: var(--up); border-color: var(--up); color: #07140e; }
.step .tx { flex: 1; } .step .tx b { display: block; font-weight: 500; } .step .tx span { color: var(--muted); font-size: 12.5px; }

/* switch hero */
.switch-card { display: flex; align-items: center; gap: 18px; }
.switch-card .state { font-family: var(--serif); font-size: 34px; font-weight: 400; }
.switch-card.on .state { color: var(--up); }
.bigtoggle { width: 64px; height: 36px; } .bigtoggle span::after { width: 28px; height: 28px; left: 4px; top: 4px; } .bigtoggle input:checked + span::after { transform: translateX(28px); }

/* ---------- charts page ---------- */
.chartpage { display: flex; height: 100%; min-height: 0; }
.chartcol { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ctool { height: 46px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ctool::-webkit-scrollbar { display: none; }
.symbtn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--line2); background: var(--raise); cursor: pointer; font-weight: 600; }
.symbtn small { color: var(--muted); font-weight: 400; font-size: 12px; white-space: nowrap; }
.vsep { width: 1px; height: 22px; background: var(--line2); flex: none; }
.cwrap { flex: 1; min-height: 0; position: relative; }
#chart { position: absolute; inset: 0; }
.legend { position: absolute; left: 10px; top: 6px; z-index: 3; pointer-events: none; font-size: 12px; display: grid; gap: 1px; max-width: calc(100% - 90px); }
.legend > div { background: rgba(6,10,8,.72); padding: 1px 6px; border-radius: 4px; width: max-content; max-width: 100%; }
.legend .l1 { font-size: 13px; } .legend .l1 b { font-size: 14px; margin-right: 8px; }
.legend .ind { pointer-events: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); width: max-content; }
.legend .ind i { width: 8px; height: 2px; border-radius: 2px; }
.legend .ind button { opacity: 0; border: 0; background: var(--raise); color: var(--muted); border-radius: 4px; width: 20px; height: 18px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.legend .ind:hover button { opacity: 1; } .legend .ind button svg { width: 12px; height: 12px; }
.side { width: 300px; flex: none; overflow-y: auto; border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.side h4 { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 500; padding: 12px 14px 6px; }
.watch { flex: 1; overflow: auto; min-height: 120px; }
.watch .w { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 14px; cursor: pointer; font-size: 13px; }
.watch .w:hover { background: var(--hover); } .watch .w.on { background: var(--raise); }
.ticket { border-top: 1px solid var(--line); padding: 12px 14px 16px; display: grid; gap: 10px; }
.ticket .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buy { background: var(--up); color: #06140d; border-color: var(--up); font-weight: 600; }
.sell { background: var(--dn); color: #1d0306; border-color: var(--dn); font-weight: 600; }

/* indicator picker */
.picker { display: grid; grid-template-columns: 1fr; gap: 10px; }
.picker .search { position: sticky; top: 0; }
.picker .grp { color: var(--muted); font-size: 12px; margin: 10px 0 2px; }
.picker .it { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--r-s); cursor: pointer; }
.picker .it:hover { background: var(--hover); }
.picker .it .badge { visibility: hidden; } .picker .it:hover .badge { visibility: visible; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line2); background: var(--panel); color: var(--muted); cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { color: var(--text); border-color: #6b6e77; background: var(--raise); }
.chip b { font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--dim); }
.chip.on b { color: var(--text); }

/* ---------- scanner ---------- */
.mood { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.mood .face { font-family: var(--serif); font-size: 28px; font-weight: 400; }
.breadth { flex: 1; min-width: 200px; height: 8px; border-radius: 99px; background: var(--dn-dim); overflow: hidden; }
.breadth i { display: block; height: 100%; background: var(--up); border-radius: 99px; }
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.coin { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; cursor: pointer; display: grid; gap: 10px; transition: border-color .12s; }
.coin:hover { border-color: #2c4438; }
.coin .top1 { display: flex; align-items: baseline; gap: 10px; }
.coin .sym { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.coin .px { font-family: var(--mono); color: var(--muted); font-size: 12.5px; }
.coin .chg { margin-left: auto; font-family: var(--mono); font-weight: 500; }
.coin .why { color: #b8c9be; font-size: 13px; line-height: 1.45; }
.coin .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.coin canvas { width: 100%; height: 36px; display: block; }
.heat { height: 3px; border-radius: 99px; background: var(--line2); overflow: hidden; } .heat i { display: block; height: 100%; background: var(--muted); }

/* ---------- connections & bots ---------- */
.conn-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ctype { text-align: left; background: var(--raise); border: 1px solid var(--line2); border-radius: var(--r-m); padding: 14px; cursor: pointer; display: grid; gap: 4px; }
.ctype:hover { border-color: var(--acc); } .ctype b { font-weight: 600; } .ctype span { color: var(--muted); font-size: 12.5px; }
.bot { display: grid; gap: 12px; }
.bot .row1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bot .row1 h3 { flex: 1; min-width: 120px; }
.strat-pick { display: grid; gap: 6px; }
.strat-pick .sp { display: grid; grid-template-columns: auto 1fr 90px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--line); }
.strat-pick .sp small { color: var(--muted); display: block; font-size: 12px; }
.strat-pick input[type=number] { padding: 5px 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; } .kv > span:nth-child(odd) { color: var(--muted); }
.copy { display: flex; gap: 6px; } .copy input { font-family: var(--mono); font-size: 12px; }
.feed { font-size: 12.5px; max-height: 320px; overflow: auto; }
.feed .f { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.feed .f time { color: var(--dim); font-family: var(--mono); font-size: 11.5px; }

/* deals */
.deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.deal { display: grid; gap: 10px; align-content: start; }
.deal .code { color: var(--text) !important; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px dashed var(--line2); border-radius: var(--r-s); padding: 8px 10px; font-family: var(--mono); color: var(--acc); }

/* modal, toasts */
.modal { position: fixed; inset: 0; background: rgba(2,5,4,.72); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-card { width: min(560px, 100%); max-height: 88vh; overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r-l); padding: 20px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal-card.wide { width: min(820px, 100%); }
.modal-card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.modal-card .form { display: grid; gap: 12px; margin-top: 14px; }
.modal-card .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--raise); border: 1px solid var(--line2); border-radius: var(--r-m); padding: 10px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5); font-size: 13.5px; }
.toast.bad { border-color: rgba(239,95,107,.5); } .toast.good { border-color: rgba(47,191,133,.45); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: tin .18s ease-out; } @keyframes tin { from { transform: translateY(6px); opacity: 0; } } }

/* AI */
.ai { display: grid; grid-template-rows: 1fr auto; height: 100%; max-width: 900px; margin: 0 auto; padding: 16px clamp(16px, 3vw, 28px); gap: 12px; }
.msgs { overflow: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.msg { padding: 10px 14px; border-radius: var(--r-m); background: var(--panel); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; max-width: 92%; }
.msg.user { align-self: flex-end; background: var(--raise); }
.msg.tool { font-family: var(--mono); font-size: 11.5px; color: var(--dim); background: transparent; border-style: dashed; }
.composer { display: flex; gap: 8px; align-items: flex-end; } .composer textarea { resize: none; min-height: 46px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .rail { width: 64px; padding: 12px 8px; } .rail a span, .rail-brand::after { display: none; } .rail a { justify-content: center; padding: 0; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .g2, .g3 { grid-template-columns: 1fr; } .span2, .span3 { grid-column: auto; }
  .side { display: none; } .chartpage.ticket-open .side { display: flex; position: fixed; inset: auto 0 64px 0; width: auto; max-height: 60vh; z-index: 20; border-top: 1px solid var(--line2); }
}
@media (max-width: 720px) {
  #app { flex-direction: column-reverse; }
  .rail { width: 100%; height: 62px; flex-direction: row; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); justify-content: space-around; gap: 0; }
  .rail a { flex: 1; height: 48px; flex-direction: column; gap: 2px; font-size: 10.5px; }
  .rail a span { display: block !important; } .rail-brand, .rail-gap, .rail a[data-v=deals], .rail a[data-v=ai], .rail a[data-v=strategies], .rail a[data-v=admin], .rail a[data-v=settings], .rail a[data-v=dna], .rail a[data-v=arena], .rail a[data-v=alerts] { display: none !important; }
  .rail .mobile-only { display: flex !important; }
  .top { padding: 0 14px; height: 52px; } .who { display: none; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .page { padding: 16px 14px 32px; }
}

/* ---------- demo / live ---------- */
.mode-pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #4A3F1E; background: #17140B; color: var(--warn); font-weight: 600; font-size: 12.5px; cursor: pointer; letter-spacing: .04em; }
.mode-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mode-pill.live { border-color: #5A2A30; background: #1A0D0F; color: var(--dn); }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 7px 16px; background: linear-gradient(90deg, rgba(232,181,74,.10), rgba(232,181,74,.02)); border-bottom: 1px solid #2A2412; color: #D9C38F; font-size: 12.5px; }
.demo-bar b { color: var(--warn); }
.cp-wrap:fullscreen, .chartpage:fullscreen { background: var(--bg); }
.chartpage.pseudo-fs { position: fixed; inset: 0; z-index: 50; background: var(--bg); }
.brand-word { font-family: var(--brand); font-weight: 600; letter-spacing: .2em; }

/* ---------- Rabbit Hole ---------- */
.rh { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; padding: 18px; align-items: start; }
.rh-hero { grid-column: 1 / -1; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(63,231,176,.16), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(180,140,255,.10), transparent 60%), var(--panel); }
.rh-hero h2 { margin: 0; font-family: var(--brand); font-size: 28px; font-weight: 700; letter-spacing: .02em; }
.rh-hero p { margin: 6px 0 0; color: var(--muted); max-width: 720px; }
.rh-hero .tunnel { position: absolute; right: -40px; top: -60px; width: 320px; height: 320px; opacity: .55; pointer-events: none; }
.rh-hero .row { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--raise); color: var(--muted); font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.chip.on { border-color: #1F5E4B; background: #0D1915; color: var(--acc); }
.chip .n { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.rh-card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.rh-card > h3 { margin: 0; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.rh-feed { max-height: 760px; overflow: auto; }
.rh-item { display: grid; grid-template-columns: 76px 1fr; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid #121514; cursor: pointer; }
.rh-item:hover { background: var(--raise); } .rh-item.on { background: #0D1513; box-shadow: inset 3px 0 0 var(--acc); }
.rh-item .t { font-family: var(--mono); font-size: 11.5px; color: var(--dim); padding-top: 2px; }
.rh-item .h { font-weight: 500; line-height: 1.35; }
.rh-item .meta { grid-column: 2; display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.tag.me_escalation, .tag.war_outbreak, .tag.tariff_up, .tag.crypto_shock, .tag.fed_emergency { background: var(--dn-dim); color: var(--dn); }
.tag.me_deescalation, .tag.tariff_down, .tag.crypto_positive { background: var(--up-dim); color: var(--up); }
.tag.cpi, .tag.nfp, .tag.fomc { background: var(--warn-dim); color: var(--warn); }
.tag.alerted { background: var(--vio-dim); color: var(--vio); }
.rh-study { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.rh-study .big { font-family: var(--brand); font-size: 20px; font-weight: 700; }
.rh-grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rh-grid th { text-align: right; color: var(--dim); font-weight: 500; padding: 6px 8px; font-size: 11.5px; }
.rh-grid th:first-child, .rh-grid td:first-child { text-align: left; }
.rh-grid td { padding: 8px; text-align: right; font-family: var(--mono); border-top: 1px solid #121514; white-space: nowrap; }
.rh-grid td:first-child { font-family: var(--sans); white-space: normal; }
.rh-grid td small { display: block; color: var(--dim); font-size: 10.5px; }
.rh-path { height: 190px; border: 1px solid var(--line); border-radius: 10px; }
.rh-past { display: flex; flex-direction: column; }
.rh-past div { display: grid; grid-template-columns: 92px 1fr 64px 64px; gap: 10px; padding: 7px 0; border-top: 1px solid #121514; font-size: 12.5px; }
.rh-past div span:nth-child(n+3) { text-align: right; font-family: var(--mono); }
.rh-note { font-size: 12px; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line); }
@media (max-width: 1000px) { .rh { grid-template-columns: 1fr; } }

/* ---------- chart AI dock + Ask-AI line ---------- */
.aidock { display: none; width: 340px; flex: none; border-left: 1px solid var(--line); background: #090B0A; flex-direction: column; min-height: 0; }
.chartpage.dock-open .aidock { display: flex; } .chartpage.dock-open .side { display: none; }
.dock-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); line-height: 1.2; }
.dock-ai { width: 28px; height: 28px; border-radius: 8px; background: #0D1915; color: var(--acc); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.aidock .msgs { flex: 1; padding: 12px; } .aidock .msg { max-width: 100%; font-size: 13px; }
.dock-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 8px; } .aidock .composer { padding: 0 12px 12px; }
.btn.ask-ai { border-color: #3D2F5C; background: #120F1A; color: var(--vio); } .btn.ask-ai.on, .btn.ask-ai:hover { background: #1B1528; border-color: var(--vio); }
#aiDockBtn.on { background: #0D1915; border-color: #1F5E4B; color: var(--acc); }
.note-pop { position: absolute; left: 40%; z-index: 6; width: 290px; padding: 10px; border-radius: 12px; background: #0E1110; border: 1px solid #3D2F5C; box-shadow: 0 14px 40px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 8px; }
.note-pop .np-h { display: flex; gap: 8px; align-items: center; } .note-pop .np-h select { height: 30px; padding-top: 0; padding-bottom: 0; }
.note-pop textarea { resize: none; font-size: 13px; } .note-pop .np-a { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 900px) { .chartpage.dock-open .aidock { position: fixed; inset: auto 0 64px 0; width: auto; height: 60vh; z-index: 21; } }

.ctool { height: auto; min-height: 46px; padding: 7px 12px; flex-wrap: wrap; row-gap: 6px; overflow: visible; } .ctool #typeSel { min-width: 128px; }

.rail-h { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 12px 12px 4px; }
@media (max-width: 1100px) { .rail-h { display: none; } }
/* ---------- Algo Lab ---------- */
.lab { display: flex; height: 100%; min-height: 0; }
.lab-side { width: 330px; flex: none; overflow: auto; border-right: 1px solid var(--line); background: var(--panel); padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.lab-sec { display: flex; flex-direction: column; gap: 8px; } .lab-sec h5 { margin: 4px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.lab-sec .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.cardchk { flex-direction: row; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid var(--line2); border-radius: 7px; font-size: 11.5px; color: var(--text); cursor: pointer; }
.cardchk input, .row-chk input { width: auto; } .row-chk { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.lab-main { flex: 1; min-width: 0; overflow: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.lab-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mc-in { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); } .mc-in input { width: 72px; height: 30px; padding: 4px 6px; }
.lab-card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.lab-card h4 { margin: 0; font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; background: #0A0C0B; }
.tile span { font-size: 11px; color: var(--dim); } .tile b { font-family: var(--mono); font-size: 15px; font-weight: 500; } .tile.hl { border-color: #1F5E4B; background: #0B1612; }
.lab-eq { height: 240px; }
.lab-trades { display: flex; flex-direction: column; max-height: 320px; overflow: auto; }
.lab-trades div { display: grid; grid-template-columns: 140px 60px 1fr 70px 80px; gap: 10px; padding: 6px 0; border-top: 1px solid #121514; font-size: 12.5px; align-items: center; }
.mc-hist { width: 100%; height: 70px; }
.lab-dock { position: fixed; right: 0; top: 0; bottom: 0; z-index: 30; box-shadow: -20px 0 40px rgba(0,0,0,.5); }
.lab-dock.open { display: flex; }
@media (max-width: 900px) { .lab { flex-direction: column; } .lab-side { width: auto; border-right: 0; } .lab-dock.open { inset: auto 0 64px 0; height: 65vh; width: auto; } }

/* ---------- Rabbit Hole desk ---------- */
.desk { display: grid; grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1fr) 340px; grid-template-areas: "top top top top" "l c c r" "tiles tiles tiles tiles" "log log study study";
  grid-template-rows: auto minmax(470px, auto) auto auto; gap: 10px; padding: 12px; min-height: 100%;
  background: radial-gradient(70% 50% at 50% 28%, rgba(63,231,176,.07), transparent 70%), var(--bg); }
.dp { background: rgba(12,14,13,.9); border: 1px solid #1A1E1D; border-radius: 12px; padding: 12px; min-width: 0; }
.dp h6 { margin: 0 0 10px; font: 600 10.5px var(--sans); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.desk-top { grid-area: top; display: flex; align-items: center; gap: 14px; padding: 8px 12px; border: 1px solid #1A1E1D; border-radius: 12px; background: rgba(12,14,13,.9); overflow-x: auto; }
.desk-brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; } .desk-brand svg { width: 26px; height: 22px; } .desk-brand b { font-family: var(--brand); letter-spacing: .2em; font-size: 13px; }
.desk-pipe { display: flex; flex: 1; gap: 6px; min-width: 0; }
.pp { position: relative; flex: 1; min-width: 108px; padding: 6px 10px; border-radius: 9px; background: #0A0C0B; border: 1px solid #191C1B; display: flex; flex-direction: column; line-height: 1.35; padding-bottom: 1px; }
.pp-k { font-size: 9.5px; letter-spacing: .14em; color: var(--dim); } .pp b { font-family: var(--mono); font-size: 13.5px; color: var(--acc); } .pp-s { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-arrow { position: absolute; right: -6px; top: 50%; width: 6px; height: 1px; background: #1F5E4B; }
.desk-live { display: flex; align-items: center; gap: 7px; font: 600 11px var(--mono); color: var(--acc); white-space: nowrap; } .desk-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.desk-l { grid-area: l; display: flex; flex-direction: column; gap: 10px; min-height: 0; } .desk-r { grid-area: r; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.desk-r .dp:first-child { flex: 1; overflow: auto; }
.mk { display: grid; grid-template-columns: 42px 1fr auto 52px; gap: 6px; align-items: center; padding: 5px 0; color: var(--text); text-decoration: none; font-size: 12px; border-bottom: 1px solid #111413; }
.mk svg { width: 100%; height: 18px; } .mk:hover { color: var(--acc); }
.vol { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 4px 0; font-size: 12px; } .vol b { font-family: var(--mono); color: var(--warn); } .vol .tiny { grid-column: 1 / -1; }
.gauge { display: flex; flex-direction: column; align-items: center; gap: 2px; } .gauge svg { width: 150px; } .gauge b { font: 700 15px var(--mono); letter-spacing: .1em; }
.desk-c { grid-area: c; position: relative; overflow: hidden; border-radius: 14px; border: 1px solid #1A1E1D; background: #050606; }
.desk-c canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.desk-cap { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; color: var(--muted); } .desk-cap b { font-family: var(--brand); color: var(--text); letter-spacing: .04em; }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; width: 33%; max-width: 300px; pointer-events: auto; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 9px 11px; border-radius: 10px;
  background: rgba(7,8,8,.82); border: 1px solid rgba(63,231,176,.25); backdrop-filter: blur(3px); font-size: 12px; line-height: 1.3; transition: border-color .15s, transform .15s; }
.orb:hover, .orb.on { border-color: var(--acc); transform: translateY(-2px); }
.mx-h, .mx-r { display: grid; grid-template-columns: minmax(0, 1fr) repeat(6, 30px); gap: 3px; align-items: center; font-size: 11px; }
.mx-h { color: var(--dim); font-size: 10px; margin-bottom: 4px; } .mx-h span:not(:first-child) { text-align: center; }
.mx-r { cursor: pointer; padding: 1px 0; } .mx-r > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); } .mx-r > span i { font-style: normal; color: var(--dim); font-family: var(--mono); font-size: 10px; }
.mx-r:hover > span:first-child, .mx-r.on > span:first-child { color: var(--acc); }
.mx-c { height: 17px; border-radius: 3px; border: 1px solid #141716; }
.desk-tiles { grid-area: tiles; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.rt { background: rgba(12,14,13,.9); border: 1px solid #1A1E1D; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rt > span:first-child { font-size: 10.5px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; } .rt b { font: 600 17px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-log { grid-area: log; } .lgs { max-height: 560px; overflow: auto; }
.lg { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; padding: 7px 4px; border-bottom: 1px solid #111413; font-size: 12.5px; cursor: pointer; } .lg:hover { background: var(--raise); } .lg.on { background: #0D1513; box-shadow: inset 2px 0 0 var(--acc); }
.desk-study { grid-area: study; padding: 0; } .desk-study .rh-study { padding: 14px; }
@media (max-width: 1100px) { .desk { grid-template-columns: 1fr; grid-template-areas: "top" "c" "r" "l" "tiles" "study" "log"; grid-template-rows: auto 380px auto auto auto auto auto; }
  .desk-tiles { grid-template-columns: repeat(2, 1fr); } .orb { width: 44%; } }

/* ---------- Kalshi 15-minute strip (under the chart; lays out by the chart column's width) ---------- */
.chartcol { container-type: inline-size; container-name: ccol; }
.kstrip { flex: none; display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(180px, 1.3fr) auto minmax(0, 1fr); grid-template-areas: "id clock odds trade side";
  align-items: center; gap: 8px 16px; padding: 10px 14px; border-top: 1px solid var(--line); background: linear-gradient(90deg, rgba(180,140,255,.07), transparent 45%), var(--panel); }
.kstrip .k-note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.k-id { grid-area: id; display: grid; gap: 2px; min-width: 0; } .k-id b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-id .num { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-tag { font: 600 10px/1 var(--mono); letter-spacing: .12em; color: var(--vio); }
.k-clock { grid-area: clock; font-size: 26px; font-weight: 600; letter-spacing: .02em; color: var(--text); min-width: 88px; text-align: center; }
.k-odds { grid-area: odds; display: grid; gap: 5px; min-width: 0; }
.k-bar { position: relative; height: 10px; border-radius: 5px; background: var(--dn-dim); box-shadow: inset 0 0 0 1px rgba(255,92,108,.25); }
.k-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: linear-gradient(90deg, rgba(63,231,176,.55), var(--up)); }
.k-bar em { position: absolute; top: -4px; width: 2px; height: 18px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.6); border-radius: 1px; }
.k-lbl { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.k-trade { grid-area: trade; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.k-q { flex-direction: row; align-items: center; gap: 6px; font-size: 11.5px; } .k-q input { width: 60px; height: 28px; padding: 3px 6px; }
.k-edge { font: 600 10.5px var(--mono); margin-left: 3px; padding: 1px 4px; border-radius: 4px; background: rgba(0,0,0,.35); }
.k-route { font: 600 10px/1 var(--mono); letter-spacing: .08em; padding: 5px 7px; border-radius: 5px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.k-route.paper { color: var(--warn); border-color: rgba(232,181,74,.35); } .k-route.demo { color: var(--info); border-color: rgba(143,184,255,.35); } .k-route.live { color: var(--dn); border-color: rgba(255,92,108,.5); background: var(--dn-dim); }
.k-side { grid-area: side; display: grid; gap: 4px; justify-items: end; text-align: right; min-width: 0; }
.k-dots { display: flex; gap: 3px; } .k-dots i { width: 9px; height: 9px; border-radius: 2px; background: var(--dn); opacity: .85; } .k-dots i.u { background: var(--up); }
#kalBtn.on { color: var(--vio); background: var(--vio-dim); border-color: rgba(180,140,255,.35); }
@container ccol (max-width: 1240px) { .kstrip { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "id clock trade" "odds odds side"; } }
@container ccol (max-width: 640px) { .kstrip { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id clock" "odds odds" "trade trade" "side side"; }
  .k-side { justify-items: start; text-align: left; } .k-trade .btn { flex: 1; } }

/* ---------- Strategy DNA ---------- */
.dna-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dna-t tr[data-id] { cursor: pointer; } .dna-t tr[data-id]:hover td { background: var(--hover); } .dna-t tr.on td { background: var(--acc-dim); }
.dna-t td { vertical-align: top; white-space: normal; }
.dna-detail { margin-top: 14px; padding: 18px; }
.dna-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.dna-tiles { display: flex; gap: 10px; flex-wrap: wrap; } .dna-tiles > div { background: var(--raise); border: 1px solid var(--line2); border-radius: var(--r-m); padding: 8px 12px; display: grid; min-width: 110px; }
.dna-tiles span { font-size: 11.5px; color: var(--muted); } .dna-tiles b { font-size: 18px; }
.dna-ww { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.dna-ww h4 { margin: 0 0 6px; font-size: 13px; } .dna-ww ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dna-ww li { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 13px; padding: 6px 10px; background: var(--raise); border-radius: var(--r-s); }
.dna-ww li .num { margin-left: auto; font-size: 12px; }
.dna-grid { display: grid; gap: 6px; }
.dna-row { display: grid; grid-template-columns: 190px 1fr; gap: 10px; align-items: center; }
.dna-l { font-size: 12.5px; color: var(--muted); }
.dna-bars { display: flex; gap: 3px; min-width: 0; }
.dna-b { position: relative; min-width: 0; height: 52px; border-radius: 6px; padding: 5px 7px; display: grid; align-content: center; overflow: hidden; border: 1px solid transparent; }
.dna-b i { position: absolute; inset: 0; z-index: 0; } .dna-b > span { position: relative; z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; padding-bottom: 1px; }
.dna-b .v { font-size: 11.5px; color: var(--text); } .dna-b .num { font-size: 11.5px; } .dna-b .pos { color: #c9ffe9; } .dna-b .neg { color: #ffd6da; }
.dna-b.now { border-color: #fff; box-shadow: 0 0 0 1px #fff inset; }
@media (max-width: 760px) { .dna-ww { grid-template-columns: 1fr; } .dna-row { grid-template-columns: 1fr; gap: 3px; } .dna-bars { flex-wrap: wrap; } .dna-b { min-width: 30%; } }

/* ---------- AI Arena ---------- */
.ar-av { --c: #888; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; font: 600 13px var(--brand); color: #070808; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.ar-av.xl { width: 74px; height: 74px; font-size: 30px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent), 0 0 40px color-mix(in srgb, var(--c) 30%, transparent); }
.ar-hero { text-align: center; padding: 40px 20px 34px; border: 1px solid var(--line); border-radius: var(--r-l); background: radial-gradient(ellipse at 50% 0%, rgba(63,231,176,.09), transparent 60%), var(--panel); }
.ar-hero h2 { font: 300 44px/1.1 var(--brand); letter-spacing: .14em; margin: 22px 0 10px; text-transform: uppercase; }
.ar-hero p { max-width: 680px; margin: 0 auto 18px; color: var(--muted); }
.ar-vs { display: flex; align-items: center; justify-content: center; gap: 18px; } .ar-x { font: 600 12px var(--mono); color: var(--dim); letter-spacing: .1em; }
.ar-rules { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 22px; max-width: 760px; }
.ar-rules span { font-size: 12px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line2); color: var(--text); background: var(--raise); }
.ar-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; } .ar-sc { display: grid; gap: 6px; padding: 14px; text-decoration: none; }
.ar-strip { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-m); color: var(--muted); margin-bottom: 14px; background: var(--panel); }
.ar-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ar-card { padding: 16px; border-top: 3px solid var(--c); display: grid; gap: 4px; }
.ar-top { display: flex; align-items: center; gap: 10px; } .ar-rank { font: 600 13px var(--mono); color: var(--dim); min-width: 20px; }
.ar-ret { font-size: 30px; font-weight: 600; margin-top: 8px; }
.ar-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin-top: 8px; } .ar-kv span { color: var(--muted); } .ar-kv b { font-weight: 500; text-align: right; }
.ar-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ar-chartcard { margin: 14px 0; padding: 12px 12px 6px; position: relative; } .ar-ch-h { margin: 0 0 4px 4px; }
#arChart { height: 260px; } .ar-chart-empty { position: absolute; inset: 40px 12px 12px; display: grid; place-content: center; pointer-events: none; }
.ar-tabs { margin: 4px 0 12px; }
.ar-log { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.ar-li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 9px 10px; border-left: 2px solid var(--c); background: var(--panel); border-radius: 0 var(--r-s) var(--r-s) 0; }
.ar-li .ar-av { width: 24px; height: 24px; font-size: 11px; box-shadow: none; }
.ar-li > div > div { white-space: pre-wrap; word-break: break-word; } .ar-li.lk-tool > div > div { color: var(--muted); word-break: break-all; }
.ar-li.lk-trade { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 12%, transparent), var(--panel) 60%); } .ar-li.lk-plan { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.ar-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; } .ar-plan { padding: 16px; border-top: 3px solid var(--c); }
.ar-plan h5 { margin: 12px 0 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .ar-plan p { margin: 0; }
.ar-rows { display: grid; gap: 6px; } .ar-row { display: grid; grid-template-columns: 1fr 1.4fr 1.1fr 1.6fr auto; gap: 6px; align-items: center; } .ar-row input:not(.hidden) + input.hidden { display: none; }
.ar-row [data-k=base]:not(.hidden) { grid-column: 1 / -2; }
@media (max-width: 760px) { .ar-row { grid-template-columns: 1fr 1fr; } .ar-hero h2 { font-size: 32px; } .ar-av.xl { width: 56px; height: 56px; font-size: 24px; } }

/* =================== Motion (web/motion.js) =================== */
/* intro: plays once after sign-in, then hands over to the real page underneath */
.intro { position: fixed; inset: 0; z-index: 100; background: #070808; opacity: calc(1 - var(--out, 0)); }
.intro svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(calc(1 + var(--out, 0) * .06)); transform-origin: 72% 55%; }
.intro-word { position: absolute; left: 50%; top: 9%; transform: translate(-50%, calc((1 - var(--word, 0)) * 14px)); opacity: calc(var(--word, 0) * (1 - var(--out, 0))); white-space: nowrap;
  font: 300 clamp(18px, 2.4vw, 30px) var(--brand); letter-spacing: .34em; color: var(--text); }
.intro-word b { font-weight: 500; color: var(--acc); }
.intro-skip { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); height: 32px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--line2); background: rgba(12,14,13,.7); color: var(--muted); cursor: pointer; font: 500 12.5px var(--sans); backdrop-filter: blur(6px); }
.intro-skip:hover { color: var(--text); border-color: #2f5546; }
body.intro-on { overflow: hidden; }
/* the logo hops when the intro hands over (and after sign-in when the intro is off) */
.rail-brand svg.hop { animation: logoHop .7s cubic-bezier(.3,.7,.3,1); transform-origin: 50% 100%; }
@keyframes logoHop { 0% { transform: scale(.4); } 35% { transform: translateY(-9px) scale(1.06, .96); } 60% { transform: translateY(0) scale(1.12, .86); } 80% { transform: scale(.97, 1.04); } 100% { transform: none; } }

/* sign-in screen: live price line behind the art, rabbit follows the cursor, copy rises in */
.gate-live { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.gate-art > :not(canvas) { position: relative; z-index: 1; }
.gate-art .rabbit-big { position: absolute; z-index: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1); opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .gate:not(.hidden) .gate-art h2, .gate:not(.hidden) .gate-art p, .gate:not(.hidden) .gate-card { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .gate:not(.hidden) .gate-art p { animation-delay: .12s; } .gate:not(.hidden) .gate-card { animation-delay: .2s; }
  .gate:not(.hidden) .mark svg { animation: logoHop .8s .3s cubic-bezier(.3,.7,.3,1) both; transform-origin: 50% 100%; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } }

/* page enter: content rises in, cards stagger */
@media (prefers-reduced-motion: no-preference) {
  #view.v-in > * { animation: vin .5s cubic-bezier(.2,.7,.2,1) both; }
  #view.v-in > .chartpage { animation-name: vfade; }
  #view.v-in .page > * { animation: vin .55s cubic-bezier(.2,.7,.2,1) both; }
  #view.v-in .page > :nth-child(2) { animation-delay: .05s; } #view.v-in .page > :nth-child(3) { animation-delay: .1s; } #view.v-in .page > :nth-child(4) { animation-delay: .15s; }
  #view.v-in .page > :nth-child(5) { animation-delay: .2s; } #view.v-in .page > :nth-child(n+6) { animation-delay: .25s; }
  #view.v-in .grid > *, #view.v-in .ar-board > *, #view.v-in .ar-list > * { animation: vin .55s cubic-bezier(.2,.7,.2,1) both; }
  #view.v-in .grid > :nth-child(2), #view.v-in .ar-board > :nth-child(2) { animation-delay: .08s; } #view.v-in .grid > :nth-child(3), #view.v-in .ar-board > :nth-child(3) { animation-delay: .16s; }
  #view.v-in .grid > :nth-child(n+4), #view.v-in .ar-board > :nth-child(n+4) { animation-delay: .22s; }
}
@keyframes vin { from { opacity: 0; transform: translateY(12px); } }
@keyframes vfade { from { opacity: 0; } }

/* nav marker that slides between pages */
.rail { position: relative; }
.rail a { position: relative; z-index: 1; }
.rail-ind { position: absolute; left: 10px; right: 10px; top: 0; height: 38px; border-radius: var(--r-s); background: var(--raise); z-index: 0; pointer-events: none; opacity: 0;
  transition: transform .45s cubic-bezier(.3,.9,.2,1), height .3s, opacity .2s; box-shadow: inset 2px 0 0 var(--acc), 0 0 24px rgba(63,231,176,.06); }
.rail:has(.rail-ind) a.on { background: transparent; }
.rail a.on svg { color: var(--acc); transition: color .3s; }
@media (max-width: 1100px) { .rail-ind { left: 8px; right: 8px; } }

/* hop loader */
.hop-load { display: grid; justify-items: center; gap: 2px; padding: 56px 16px; color: var(--muted); font-size: 13px; }
.hop-load svg { width: 54px; height: 45px; animation: hopL .9s cubic-bezier(.3,.6,.4,1) infinite; transform-origin: 50% 100%; }
.hop-load i { width: 34px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.6); box-shadow: 0 0 0 1px rgba(63,231,176,.12); animation: hopS .9s cubic-bezier(.3,.6,.4,1) infinite; margin-bottom: 8px; }
@keyframes hopL { 0%, 100% { transform: scale(1.12, .86); } 15% { transform: scale(.95, 1.08) translateY(-4px); } 50% { transform: translateY(-26px) rotate(-6deg); } 85% { transform: scale(1, 1) translateY(0); } }
@keyframes hopS { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .hop-load svg, .hop-load i { animation: none; } }

/* cursor spotlight on cards */
.card, .ar-card, .dna-detail { background-image: radial-gradient(520px circle at var(--mx, -999px) var(--my, -999px), rgba(63,231,176,.055), transparent 42%); }
.card:hover { border-color: #202725; }

/* controls feel physical */
.btn { transition: background .15s, border-color .15s, transform .12s, box-shadow .2s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary:hover { box-shadow: 0 0 0 4px rgba(63,231,176,.12), 0 8px 30px rgba(63,231,176,.18); }
.badge.good { box-shadow: 0 0 14px rgba(63,231,176,.12); }

/* modals: blur behind, card scales in */
.modal { backdrop-filter: blur(8px) saturate(1.1); -webkit-backdrop-filter: blur(8px) saturate(1.1); }
@media (prefers-reduced-motion: no-preference) {
  .modal:not(.hidden) { animation: mbg .2s ease-out; } .modal:not(.hidden) .modal-card { animation: mcard .32s cubic-bezier(.2,.8,.2,1.1); }
  .toast { animation: tin2 .35s cubic-bezier(.2,.8,.2,1.1) !important; }
  .kstrip:not(.hidden) { animation: vin .45s cubic-bezier(.2,.7,.2,1); }
  .dna-b { animation: dnab .6s cubic-bezier(.2,.7,.2,1) both; }
  .dna-row:nth-child(2) .dna-b { animation-delay: .05s; } .dna-row:nth-child(3) .dna-b { animation-delay: .1s; } .dna-row:nth-child(4) .dna-b { animation-delay: .15s; } .dna-row:nth-child(5) .dna-b { animation-delay: .2s; }
  .dna-row:nth-child(6) .dna-b { animation-delay: .25s; } .dna-row:nth-child(7) .dna-b { animation-delay: .3s; } .dna-row:nth-child(8) .dna-b { animation-delay: .35s; } .dna-row:nth-child(9) .dna-b { animation-delay: .4s; }
  .dna-b.now { animation: dnab .6s cubic-bezier(.2,.7,.2,1) both, nowPulse 2.4s 1s ease-in-out infinite; }
  .ar-li { animation: vin .4s cubic-bezier(.2,.7,.2,1) both; }
  .k-clock.neg { animation: tickPulse 1s steps(1) infinite; }
}
@keyframes mbg { from { opacity: 0; } }
@keyframes mcard { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes tin2 { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes dnab { from { opacity: 0; transform: scaleX(.3); transform-origin: left; } }
@keyframes nowPulse { 50% { box-shadow: 0 0 0 1px #fff inset, 0 0 18px rgba(255,255,255,.25); } }
@keyframes tickPulse { 50% { opacity: .55; } }
.gate-art .rabbit-big { opacity: .13; filter: saturate(.6); }
.gate-form { background: radial-gradient(600px circle at 50% 42%, rgba(63,231,176,.07), transparent 60%), var(--bg); }
.gate-card { padding: 30px 28px; border: 1px solid var(--line2); border-radius: var(--r-l); background: linear-gradient(180deg, rgba(18,21,20,.9), rgba(12,14,13,.9)); box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.03); }
.gate-card h1 { font-family: var(--brand); font-weight: 500; letter-spacing: .02em; }

/* =================== Solana memecoins =================== */
.mm-wallet { display: flex; gap: 6px; }
.mm-wallet > div { display: grid; padding: 6px 12px; border: 1px solid var(--line2); border-radius: var(--r-m); background: var(--panel); min-width: 104px; }
.mm-wallet span { font-size: 11px; color: var(--muted); } .mm-wallet b { font-size: 16px; } .mm-wallet small { font-size: 11px; color: var(--dim); }
.mm-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.mm-side { padding: 10px; display: grid; gap: 8px; position: sticky; top: 0; max-height: calc(100vh - 150px); grid-template-rows: auto auto auto 1fr; }
.mm-tabs { display: flex; flex-wrap: wrap; gap: 4px; } .mm-tabs button { font: 500 12px var(--sans); padding: 5px 9px; border-radius: 99px; border: 1px solid var(--line2); background: none; color: var(--muted); cursor: pointer; }
.mm-tabs button.on { color: var(--acc-ink); background: var(--acc); border-color: var(--acc); }
.mm-note { margin: 0; min-height: 2.6em; } .mm-find { display: flex; gap: 6px; } .mm-find input { height: 32px; padding: 4px 10px; font-size: 12.5px; }
.mm-list { overflow: auto; display: grid; gap: 2px; align-content: start; min-height: 200px; margin: 0 -4px; padding: 0 4px; }
.mm-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 62px; gap: 8px; align-items: center; padding: 7px 8px; border-radius: var(--r-s); border: 1px solid transparent; background: none; color: inherit; text-align: left; cursor: pointer; }
.mm-row:hover { background: var(--hover); } .mm-row.on { background: var(--acc-dim); border-color: rgba(63,231,176,.3); }
.mm-row b { font-size: 13px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mm-row small { font-size: 11px; color: var(--dim); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-nm { min-width: 0; } .mm-v { text-align: right; } .mm-v b { font-size: 12px; font-weight: 500; }
.mm-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--raise); display: grid; place-items: center; overflow: hidden; font: 600 13px var(--brand); color: var(--acc); flex: none; box-shadow: 0 0 0 1px var(--line2); }
.mm-ic img { width: 100%; height: 100%; object-fit: cover; } .mm-ic.xl { width: 54px; height: 54px; font-size: 22px; } .mm-ic.sm { width: 22px; height: 22px; font-size: 10px; }
.mm-main { padding: 16px; min-width: 0; display: grid; gap: 14px; }
.mm-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; }
.mm-title h3 { margin: 0; font-size: 20px; } .mm-title h3 .muted { font-size: 14px; font-weight: 400; }
.mm-addr { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 4px; }
.mm-px { text-align: right; display: grid; } .mm-px b { font-size: 22px; } .mm-px sub, .mm-row sub, .mm-t sub { font-size: .7em; vertical-align: -0.2em; }
.mm-px b.up { animation: flashUp .9s ease-out; } .mm-px b.dn { animation: flashDn .9s ease-out; }
@keyframes flashUp { 0% { color: var(--up); text-shadow: 0 0 14px rgba(63,231,176,.7); } } @keyframes flashDn { 0% { color: var(--dn); text-shadow: 0 0 14px rgba(255,92,108,.7); } }
.mm-grade { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font: 600 24px var(--brand); border: 1px solid; }
.mm-grade.sm { width: 20px; height: 20px; border-radius: 5px; font-size: 11.5px; display: inline-grid; margin-left: 6px; }
.g-a { color: var(--up); border-color: rgba(63,231,176,.5); background: var(--up-dim); box-shadow: 0 0 22px rgba(63,231,176,.2); } .g-b { color: #9ff0d2; border-color: rgba(63,231,176,.3); background: rgba(63,231,176,.06); }
.g-c { color: var(--warn); border-color: rgba(232,181,74,.45); background: var(--warn-dim); } .g-d { color: #ff9a6c; border-color: rgba(255,154,108,.45); background: rgba(255,154,108,.1); }
.g-f { color: var(--dn); border-color: rgba(255,92,108,.55); background: var(--dn-dim); box-shadow: 0 0 22px rgba(255,92,108,.18); }
.mm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.mm-stats > div { background: var(--panel); padding: 8px 12px; display: grid; } .mm-stats span { font-size: 11px; color: var(--muted); } .mm-stats b { font-size: 14px; font-weight: 500; }
.mm-chartbox { position: relative; } .mm-chartbox .seg { position: absolute; z-index: 3; left: 8px; top: 6px; } #mmChart { height: 330px; }
.mm-nochart { position: absolute; inset: 0; display: grid; place-content: center; }
.mm-safety h4 { margin: 0 0 8px; font-size: 14px; } .mm-safety ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ck { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 8px 10px; border-radius: var(--r-s); background: var(--raise); }
.ck i { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; } .ck.pass i { background: var(--up); box-shadow: 0 0 8px rgba(63,231,176,.6); } .ck.warn i { background: var(--warn); } .ck.fail i { background: var(--dn); box-shadow: 0 0 8px rgba(255,92,108,.6); }
.ck b { font-size: 13px; font-weight: 600; display: block; } .ck span { font-size: 12.5px; color: var(--muted); } .ck.fail { background: linear-gradient(90deg, rgba(255,92,108,.08), var(--raise) 60%); }
.mm-right { display: grid; gap: 12px; position: sticky; top: 0; align-content: start; }
.mm-ticket { padding: 16px; display: grid; gap: 12px; }
.mm-ticket h4 { margin: 0; display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.mm-paper { font: 600 10px var(--mono); letter-spacing: .1em; color: var(--warn); border: 1px solid rgba(232,181,74,.4); padding: 3px 7px; border-radius: 5px; }
.mm-amt { display: flex; flex-wrap: wrap; gap: 6px; } .mm-amt input { width: 84px; height: 30px; padding: 3px 8px; }
.mm-q { padding: 10px 12px; border-radius: var(--r-s); background: var(--raise); line-height: 1.6; }
.mm-rsum { color: var(--muted); line-height: 1.5; }
.mm-rules summary { cursor: pointer; font-size: 12.5px; color: var(--acc); } .mm-rgrid { display: grid; gap: 8px; margin-top: 10px; }
.mm-rgrid label { font-size: 12px; } .mm-in { display: flex; align-items: center; gap: 6px; } .mm-in input { height: 30px; padding: 3px 8px; } .mm-in em { font-style: normal; font-size: 11px; color: var(--dim); white-space: nowrap; }
.mm-t td { vertical-align: middle; } .mm-t tr[data-m] { cursor: pointer; } .mm-t tr.sel td { background: rgba(63,231,176,.04); }
.mm-tk { display: inline-flex; align-items: center; gap: 8px; } .mm-acts { display: inline-flex; gap: 4px; }
.mm-ladder { display: inline-flex; gap: 3px; margin-right: 6px; } .mm-ladder i { font: 600 10.5px var(--mono); font-style: normal; padding: 2px 5px; border-radius: 4px; border: 1px solid var(--line2); color: var(--muted); }
.mm-ladder i.done { color: var(--acc-ink); background: var(--acc); border-color: var(--acc); }
@media (prefers-reduced-motion: no-preference) { .mm-row { animation: vin .4s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 18ms); } .ck { animation: vin .4s both; } }
@media (max-width: 1280px) { .mm-grid { grid-template-columns: 290px minmax(0, 1fr); } .mm-right { grid-column: 1 / -1; position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .mm-right { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .mm-grid { grid-template-columns: 1fr; } .mm-side { position: static; max-height: 460px; } .mm-stats { grid-template-columns: repeat(2, 1fr); } .mm-head { grid-template-columns: auto 1fr auto; } .mm-px { grid-column: 1 / -1; text-align: left; } .mm-wallet { flex-wrap: wrap; } #mmChart { height: 260px; } }
/* memecoin levels, AI, autopilot */
.mm-levels { margin: 0 0 12px; display: grid; gap: 6px; }
.mm-lv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mm-lv button { text-align: left; display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--r-m); border: 1px solid var(--line2); background: var(--panel); color: inherit; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.mm-lv button b { font-size: 14px; } .mm-lv button span { font-size: 12px; color: var(--muted); }
.mm-lv button:hover { border-color: #2f5546; } .mm-lv button.on { border-color: rgba(63,231,176,.55); background: var(--acc-dim); box-shadow: 0 0 24px rgba(63,231,176,.1); }
.mm-lv button[data-l=auto].on { border-color: rgba(232,181,74,.6); background: var(--warn-dim); box-shadow: 0 0 24px rgba(232,181,74,.12); }
.mm-ai { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; align-items: start; }
.mm-chat { display: grid; grid-template-rows: auto minmax(200px, 46vh) auto auto; gap: 8px; padding: 14px; } .mm-chat .msgs { overflow: auto; display: grid; gap: 8px; align-content: start; }
.mm-chat .msg.card { background: var(--raise); border: 1px solid var(--line2); border-radius: var(--r-m); padding: 10px 12px; }
.mm-props { display: grid; gap: 6px; margin-bottom: 10px; } .mm-prop { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: var(--r-m); background: var(--acc-dim); border: 1px solid rgba(63,231,176,.3); }
.mm-prop > div { display: grid; } @media (prefers-reduced-motion: no-preference) { .mm-prop { animation: vin .4s both, nowPulse 2.4s 1s ease-in-out 3; } }
.mm-plset summary { cursor: pointer; font-size: 12.5px; color: var(--acc); } .mm-lists { display: flex; flex-wrap: wrap; gap: 4px 10px; padding-top: 4px; }
.mm-log { display: grid; gap: 4px; max-height: 320px; overflow: auto; } .mm-li { padding: 6px 10px; border-left: 2px solid var(--line2); background: var(--raise); border-radius: 0 6px 6px 0; }
.mm-li.ktrade { border-left-color: var(--acc); } .mm-li.kpropose { border-left-color: var(--info); } .mm-li.kerror, .mm-li.kblocked { border-left-color: var(--dn); } .mm-li.kpaused { border-left-color: var(--warn); }
.mm-doc { max-height: 300px; overflow: auto; padding: 12px 14px; border: 1px solid var(--line2); border-radius: var(--r-m); background: var(--bg); font-size: 13px; color: #c9d1ce; margin-top: 10px; }
.mm-doc p { margin: 0 0 10px; } .mm-acks { display: grid; gap: 6px; margin-top: 12px; }
@media (max-width: 960px) { .mm-ai { grid-template-columns: 1fr; } .mm-lv { grid-template-columns: 1fr; } }
.mm-venue { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
#mmVen button.on.live { color: #1d0306; background: var(--dn); border-color: var(--dn); }
.mm-paper.live { color: var(--dn); border-color: rgba(255,92,108,.55); background: var(--dn-dim); }
.mm-signbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 8px; border-radius: var(--r-m); border: 1px solid rgba(255,92,108,.5); background: linear-gradient(90deg, rgba(255,92,108,.14), var(--panel)); font-size: 13.5px; }
.mm-signbar .btn { margin-left: auto; }
@media (prefers-reduced-motion: no-preference) { .mm-signbar { animation: vin .4s both, signPulse 1.6s ease-in-out infinite; } }
@keyframes signPulse { 50% { box-shadow: 0 0 0 1px rgba(255,92,108,.5), 0 0 26px rgba(255,92,108,.25); } }

/* ---------- Liquidity (order-book heatmap) ---------- */
.lq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .lq-grid { grid-template-columns: minmax(0, 1fr); } }
.lq-chart { padding: 10px 12px 12px; min-width: 0; }
.lq-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.lq-tools .check { flex-direction: row; align-items: center; gap: 6px; }
.lq-tools .check input { width: auto; }
.lq-box { position: relative; width: 100%; }
.lq-box canvas { display: block; border-radius: var(--r-s); cursor: crosshair; }
.lq-tip { position: absolute; pointer-events: none; background: var(--raise); border: 1px solid var(--line2); border-radius: var(--r-s); padding: 6px 9px; font-size: 12px; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.45); z-index: 2; }
.lq-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.lq-legend i { display: inline-block; width: 22px; height: 8px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.lq-side h4 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.lq-side h4:first-child { margin-top: 2px; }
.lq-side .kv { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lq-side .kv b { font-family: var(--mono); font-weight: 500; font-size: 12.5px; text-align: right; }

/* ---------- Flow chart (Liquidity page) ---------- */
.lq-chart:fullscreen { background: #06080A; padding: 14px 18px; overflow: auto; }
.lq-box canvas { touch-action: none; background: #06080A; }
.lq-tools { gap: 6px; }
.lq-chip { height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: all .12s; }
.lq-chip:hover { color: var(--text); border-color: #34403b; }
.lq-chip.on { background: var(--acc-dim); border-color: rgba(63,231,176,.45); color: var(--acc); }
.lq-sl { flex-direction: row; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); margin-left: 6px; }
.lq-sl input { width: 64px; padding: 0; height: 18px; accent-color: var(--acc); border: 0; background: transparent; box-shadow: none !important; }
.lq-sel { width: auto; height: 26px; padding: 0 26px 0 9px; font-size: 12px; margin-left: 4px; }
.lq-live { gap: 6px; }
.lq-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.lq-live.on { color: var(--acc); }
.lq-live.on i { background: var(--acc); box-shadow: 0 0 0 0 rgba(63,231,176,.6); animation: lqLive 1.6s infinite; }
@keyframes lqLive { 70% { box-shadow: 0 0 0 7px rgba(63,231,176,0); } 100% { box-shadow: 0 0 0 0 rgba(63,231,176,0); } }
.lq-legend { align-items: center; gap: 14px; }
.lq-legend i.ramp { width: 36px; }
.lq-legend i.dot { width: 9px; height: 9px; border-radius: 50%; }
.lq-legend i.dia { width: 8px; height: 8px; border-radius: 1px; transform: rotate(45deg); }
.lq-legend i.ln { width: 16px; height: 2px; vertical-align: 3px; }
.lq-tip { background: rgba(14,17,16,.94); backdrop-filter: blur(6px); line-height: 1.55; }
.lq-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.lq-price span { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.lq-price b { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.lq-press { margin-bottom: 8px; }
.lq-bar { height: 8px; border-radius: 99px; background: var(--dn); overflow: hidden; margin: 5px 0 4px; }
.lq-bar i { display: block; height: 100%; background: var(--up); transition: width .6s ease; box-shadow: 2px 0 0 #06080A; }
.lq-press-n { display: flex; justify-content: space-between; }
.lq-dot { display: inline-block; width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); margin-right: 7px; }
.lq-tape { max-height: 330px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.lq-tr { position: relative; flex-shrink: 0; display: grid; grid-template-columns: 62px 1fr auto; gap: 8px; padding: 3px 7px; border-radius: 4px; font-size: 12px; overflow: hidden; }
.lq-tr > i { position: absolute; inset: 0 auto 0 0; opacity: .16; z-index: 0; }
.lq-tr > span, .lq-tr > b { position: relative; z-index: 1; }
.lq-tr.b > i { background: var(--up); } .lq-tr.s > i { background: var(--dn); }
.lq-tr.b b { color: var(--up); } .lq-tr.s b { color: var(--dn); }
.lq-tr b { font-weight: 500; text-align: right; }
.lq-tr.new { animation: lqNew 1.2s ease-out; }
@keyframes lqNew { 0% { background: rgba(255,255,255,.22); transform: translateX(-6px); } 100% { background: transparent; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lq-tr.new, .lq-live.on i { animation: none; } }
@media (max-width: 700px) { .lq-sl { display: none; } .lq-legend .dim:first-of-type { display: none; } }

/* ---------- charts: drawing tools, layouts, replay, compare ---------- */
.cmain { flex: 1; min-height: 0; display: flex; }
.dtools { width: 40px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-right: 1px solid var(--line); background: var(--panel); overflow-y: auto; scrollbar-width: none; }
.dtools::-webkit-scrollbar { display: none; }
.dtools button { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.dtools button:hover { background: var(--hover); color: var(--text); }
.dtools button.on { background: var(--acc-dim); color: var(--acc); }
.dtools svg { width: 18px; height: 18px; }
.dtools i { width: 22px; height: 1px; background: var(--line2); margin: 4px 0; flex: none; }
.cgrid { flex: 1; min-width: 0; min-height: 0; display: grid; gap: 2px; background: var(--line); }
.cgrid.lay1 { grid-template: 1fr / 1fr; }
.cgrid.lay2 { grid-template: 1fr / 1fr 1fr; }
.cgrid.lay3 { grid-template: 1fr 1fr / 1.6fr 1fr; } .cgrid.lay3 > .cwrap:first-child { grid-row: span 2; }
.cgrid.lay4 { grid-template: 1fr 1fr / 1fr 1fr; }
.cgrid > .cwrap { background: #070808; min-height: 0; min-width: 0; }
.cwrap.mini { display: flex; flex-direction: column; }
.mini-h { height: 30px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
.mini-h button { height: 22px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 5px; background: var(--raise); color: var(--text); cursor: pointer; font-size: 11.5px; }
.mini-h .mini-sym { font-weight: 600; }
.mini-h .mini-link { color: var(--muted); } .mini-h .mini-link.on { color: var(--acc); border-color: rgba(63,231,176,.4); }
.mini-h select { width: auto; height: 22px; padding: 0 22px 0 6px; font-size: 11.5px; }
.mini-h .mini-px { margin-left: auto; color: var(--text); }
.mini-c { flex: 1; min-height: 0; position: relative; }
.csel { width: auto !important; height: 30px; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 12.5px; }
.cmp-chips { display: inline-flex; gap: 4px; }
.cmp-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 4px 0 8px; border-radius: 99px; border: 1px solid var(--c); color: var(--c); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cmp-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 3px; }
.dsel { position: absolute; top: 8px; right: 84px; z-index: 6; display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 10px; background: rgba(14,17,16,.95); border: 1px solid var(--line2); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.dsel .sw { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.dsel .sw.on { border-color: #fff; }
.replaybar { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; background: rgba(14,17,16,.96); border: 1px solid rgba(232,181,74,.45); box-shadow: 0 10px 30px rgba(0,0,0,.55); white-space: nowrap; }
.rp-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--warn); padding: 2px 6px; border-radius: 4px; background: var(--warn-dim); }
.replaybar .seg button { padding: 0 7px; }
#replayBtn.on { color: var(--warn); }
.legend { left: 10px; }
@media (max-width: 900px) { .dtools { display: none; } .cgrid.lay2, .cgrid.lay3, .cgrid.lay4 { grid-template: 1fr / 1fr; } .cgrid > .cwrap.mini { display: none; } .replaybar { flex-wrap: wrap; max-width: 96%; white-space: normal; } }

/* ---------- Kraken trading panel ---------- */
.trade-h { display: flex; align-items: center; gap: 8px; }
.trade-h .seg { margin-left: auto; } .trade-h .seg button { height: 22px; padding: 0 8px; font-size: 11.5px; }
.kx { display: grid; gap: 8px; }
.kx label { gap: 3px; }
.kx-mk { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 6px 0 2px; }
.kx-mk b { font-size: 14px; } .kx-mk > span.num:first-of-type { font-size: 15px; font-weight: 600; }
.kx-mk .tiny { flex-basis: 100%; }
.kx-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line2); border-radius: var(--r-s); overflow: hidden; }
.kx-side button { height: 32px; border: 0; background: var(--raise); color: var(--muted); font-weight: 600; cursor: pointer; }
.kx-side button.on.buy { background: var(--up); color: var(--acc-ink); } .kx-side button.on.sell { background: var(--dn); color: #1d0306; }
.kx-pct { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.kx-pct button { height: 24px; border: 1px solid var(--line2); border-radius: 5px; background: transparent; color: var(--muted); font-size: 11.5px; cursor: pointer; }
.kx-pct button:hover { color: var(--text); background: var(--hover); }
.kx-adv { border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px 8px; }
.kx-adv summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.kx-adv[open] { display: grid; gap: 8px; }
.kx-chk { display: flex; gap: 14px; } .kx-chk label { flex-direction: row; align-items: center; gap: 6px; } .kx-chk input { width: auto; }
.kx-est .kv, .modal-card .kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.kx-est .kv b, .modal-card .kv b { font-family: var(--mono); font-weight: 500; }
.kx-foot { margin: 0; }
.btn.buy { background: var(--up); border-color: var(--up); color: var(--acc-ink); font-weight: 600; } .btn.sell { background: var(--dn); border-color: var(--dn); color: #1d0306; font-weight: 600; }
.kxdock { flex: none; max-height: 210px; border-top: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.kx-dock-h { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.kx-dock-h .seg button { height: 24px; font-size: 12px; }
.kx-body { overflow: auto; }
.kx-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.kx-t th { text-align: left; color: var(--muted); font-weight: 500; padding: 5px 10px; position: sticky; top: 0; background: var(--panel); }
.kx-t td { padding: 4px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.kx-t td .btn { height: 24px; padding: 0 8px; }
.kx-empty { padding: 12px; }
.side .ticket { overflow: auto; min-height: 0; } .side .watch { min-height: 90px; flex: 0 1 30%; }
.totp-qr { background: #fff; padding: 10px; border-radius: 10px; width: max-content; margin: 8px 0; } .totp-qr svg { display: block; width: 190px; height: 190px; }

/* AI dock + trade panel side by side; pop-out chart window */
.chartpage.dock-open .side { display: flex; width: 270px; }
.chartpage.dock-open .side .watch, .chartpage.dock-open .side > h4:first-child { display: none; }
.chartpage.dock-open .aidock { width: 320px; }
.aidock .msgs { overflow-y: auto; }
body.popout .rail, body.popout .top, body.popout #demoBar, body.popout .mobile-nav, body.popout .bottomnav { display: none !important; }
body.popout .main { margin-left: 0 !important; }
body.popout #view { height: 100vh; }

/* AI page: saved chats */
.ai.ai-wrap { display: flex; flex-direction: row; gap: 0; }
.ai-list { width: 230px; flex: none; border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; background: var(--panel); }
.ai-list > .btn { width: 100%; }
.ai-chat { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 7px 26px 7px 9px; border-radius: 7px; cursor: pointer; font-size: 12.5px; color: var(--muted); }
.ai-chat span { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-chat small { font-size: 10.5px; color: var(--dim); }
.ai-chat:hover { background: var(--hover); } .ai-chat.on { background: var(--acc-dim); } .ai-chat.on span { color: var(--acc); }
.ai-chat button { position: absolute; right: 4px; top: 6px; border: 0; background: none; color: var(--dim); cursor: pointer; font-size: 15px; opacity: 0; }
.ai-chat:hover button { opacity: 1; } .ai-chat button:hover { color: var(--dn); }
.ai-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.ai-head { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.ai-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.ai-main .msgs { flex: 1; overflow-y: auto; }
@media (max-width: 800px) { .ai.ai-wrap { flex-direction: column; } .ai-list { width: auto; max-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); } }
.ai.ai-wrap { max-width: 1250px; padding: 0; height: 100%; }

/* approvals card (every page) */
#approvals { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.appr { background: rgba(14,17,16,.97); border: 1px solid rgba(232,181,74,.6); border-radius: 12px; padding: 12px 14px; display: grid; gap: 5px; box-shadow: 0 12px 32px rgba(0,0,0,.6); animation: apprIn .3s ease-out; }
.appr-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.appr-a { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; }
@keyframes apprIn { from { transform: translateY(12px); opacity: 0; } }
/* live position monitor (chart side panel) */
.posmon { border-top: 1px solid var(--line); padding: 8px 10px 14px; display: grid; gap: 8px; overflow-y: auto; max-height: 46vh; }
.pm-tot { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; font-size: 12px; }
.pm { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; cursor: pointer; background: rgba(255,255,255,.015); }
.pm.on { border-color: var(--line2); background: rgba(255,255,255,.04); }
.pm-a, .pm-c { display: flex; align-items: center; gap: 6px; font-size: 12.5px; } .pm-a .spacer, .pm-c .spacer { flex: 1; }
.pm-a b.num { font-size: 14px; }
.pm-b { font-size: 11.5px; }
.pm-bar { position: relative; height: 4px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,92,108,.55), rgba(255,255,255,.08) 50%, rgba(63,231,176,.55)); }
.pm-bar i { position: absolute; top: -3px; width: 2px; height: 10px; background: var(--text); transform: translateX(-1px); }
.side .ticket { flex: none; overflow: visible; } .side .posmon { flex: none; max-height: none; }
.rail a.sub { padding-left: 24px; height: 34px; font-size: 13.5px; } .rail a.sub svg { width: 17px; height: 17px; }
.pm-bad { border-color: rgba(255,92,108,.35); cursor: default; }
/* ---------- Backtest studio ---------- */
.studio { display: flex; height: 100%; min-height: 0; }
.st-side { width: 300px; }
.st-side .st-run { flex-direction: row; flex-wrap: wrap; gap: 6px; } .st-side .st-run .btn { flex: 1; min-width: 90px; }
.st-tiles.tiles { grid-template-columns: repeat(2, 1fr); gap: 6px; } .st-tiles .tile b { font-size: 15px; }
.st-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.st-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.st-nav { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; min-height: 40px; }
.st-nav .st-tr { font-weight: 600; } .st-nav .btn.sm { height: 26px; padding: 0 8px; }
.st-chartwrap { flex: 1; min-height: 260px; display: flex; min-width: 0; }
.st-chart { flex: 1; min-width: 0; position: relative; }
.st-tools .sep { height: 1px; width: 22px; background: var(--line); margin: 4px 0; } .st-tools button.on { background: var(--acc-dim); color: var(--acc); }
.st-bottom { height: 190px; flex: none; display: flex; border-top: 1px solid var(--line); min-height: 0; }
.st-eq { flex: 1; min-width: 0; } .st-list { width: 380px; flex: none; overflow-y: auto; border-left: 1px solid var(--line); font-size: 12px; }
.st-list .tr { display: grid; grid-template-columns: 36px 100px 14px 1fr 48px 52px; gap: 6px; padding: 4px 10px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; }
.st-list .tr:hover { background: var(--hover); } .st-list .tr.on { background: var(--acc-dim); }
#stStudy { padding: 0 12px; } #stStudy .lab-card { margin: 8px 0; } .st-study h4 { margin: 0 0 4px; font-size: 13px; }
.st-dock { position: static; box-shadow: none; width: 360px; } .st-dock.open { display: flex; }
.find { border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 10px; margin-bottom: 8px; display: grid; gap: 4px; }
.find-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .find-h b { font-size: 13px; } .find-h .btn.sm { height: 22px; padding: 0 6px; }
.badge.good { color: var(--acc); border-color: var(--acc-dim); } .badge.warn { color: var(--warn); } .badge.bad { color: var(--dn); }
@media (max-width: 1100px) { .st-dock { position: fixed; right: 0; top: 0; bottom: 0; z-index: 30; box-shadow: -20px 0 40px rgba(0,0,0,.5); display: none; } .st-dock.open { display: flex; } }
@media (max-width: 900px) { .studio { flex-direction: column; overflow: auto; } .st-side { width: auto; border-right: 0; } .st-list { width: 160px; } }
.st-warn { font-size: 12px; color: var(--warn); background: var(--warn-dim); border-radius: var(--r-s); padding: 6px 8px; margin: 6px 0; }
.st-rules { display: grid; gap: 8px; margin-top: 8px; } .st-rules textarea { font-family: var(--mono); font-size: 12px; }
.studio:fullscreen { background: var(--bg); }
.dflt { font-size: 10.5px; color: var(--dim); font-family: var(--mono); font-weight: 400; }
#stForm input.changed { border-color: var(--acc); }
/* AI composer attachments */
.composer { position: relative; flex-wrap: wrap; } .composer textarea { flex: 1 1 120px; min-width: 0; } .composer.drop { outline: 2px dashed var(--acc); outline-offset: -2px; }
.composer .att-btn { height: 34px; width: 34px; padding: 0; flex: none; }
.att-strip { display: flex; gap: 6px; flex-wrap: wrap; flex: 0 0 100%; padding: 0 0 6px; }
.att { position: relative; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line2); border-radius: 6px; background: var(--raise); font-size: 11.5px; padding: 2px; }
.att img { height: 44px; width: auto; border-radius: 4px; display: block; } .att-file { padding: 6px 8px; font-family: var(--mono); }
.att button { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; border: 0; background: var(--dn); color: #1d0306; font-size: 12px; line-height: 16px; padding: 0; cursor: pointer; }
.att-file button { position: static; margin-left: 4px; }
