﻿/* Orvex â€” black and white with one accent colour (vermilion). The logo mark is always drawn without a background.
   Black and white with one accent colour. Green/red (user-selectable) are used only for price direction. */
:root {
  --brand: #FF5436; --brand-ink: #fff; --brand-soft: rgba(255, 84, 54, .14); --brand-line: rgba(255, 84, 54, .45);
  --up: #22C58B; --down: #F0506E;
  --bg: #050506; --panel: #0D0D0F; --panel-2: #17171A; --panel-3: #1F1F23; --chart-bg: #09090A;
  --border: #212125; --grid: rgba(255, 255, 255, .04);
  --text: #F5F5F6; --muted: #8C8C95; --shadow: 0 18px 50px rgba(0, 0, 0, .6);
  --ui: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --r: 10px;
}
:root[data-theme="light"] {
  --brand: #E8401F; --brand-ink: #fff; --brand-soft: rgba(232, 64, 31, .09); --brand-line: rgba(232, 64, 31, .4);
  --bg: #F3F3F5; --panel: #FFFFFF; --panel-2: #F2F2F5; --panel-3: #E9E9EE; --chart-bg: #FFFFFF;
  --border: #E3E3E8; --grid: rgba(0, 0, 0, .05);
  --text: #0A0A0B; --muted: #6A6A74; --shadow: 0 18px 50px rgba(0, 0, 0, .14);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font: 500 13px/1.45 var(--ui); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--brand); }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; }
.up { color: var(--up); } .dn { color: var(--down); }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; } ::-webkit-scrollbar-thumb:hover { background: var(--muted); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- motion ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -8px) scale(.96); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.btn, .ib, .tools button, .ivs button, .menu button, .srow, .wrow, .chips button, .tabs button, .bnav button, .set, .prov-h, .themes button, .model, .acct { transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease), opacity .18s; }
.btn:active, .ib:active, .tools button:active, .srow:active, .wrow:active, .set:active, .model:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- launch screen ---------- */
#app, #splash { -webkit-user-select: none; user-select: none; } input, textarea { -webkit-user-select: text; user-select: text; }
#splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); transition: opacity .5s var(--ease), visibility .5s; }
#splash.out { opacity: 0; visibility: hidden; } #splash.out .sp-in { transform: scale(1.08); }
.sp-in { display: flex; flex-direction: column; align-items: center; gap: 18px; animation: sp-grow 1.5s var(--ease) both; transition: transform .5s var(--ease); }
@keyframes sp-grow { from { transform: scale(.78); } to { transform: scale(1); } }
.sp-logo { width: 84px; height: 84px; overflow: visible; }
.sp-logo path { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sp-ring { animation: draw .8s var(--ease) .1s forwards; } .sp-line { stroke: var(--text) !important; animation: draw .55s var(--ease) .7s forwards; }
.sp-logo .sp-ring { stroke-width: 4.6; } .sp-logo .sp-line { stroke-width: 2.6; }
.sp-dot { fill: var(--text); opacity: 0; transform-box: fill-box; transform-origin: center; animation: sp-dot .4s var(--ease) 1.05s forwards; }
@keyframes sp-dot { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: none; } }
.sp-word { display: flex; gap: .38em; font: 700 22px var(--head); letter-spacing: .1em; padding-left: .38em; }
.sp-word span { opacity: 0; transform: translateY(8px); animation: sp-ch .45s var(--ease) forwards; }
.sp-word span:nth-child(1) { animation-delay: .75s; } .sp-word span:nth-child(2) { animation-delay: .83s; } .sp-word span:nth-child(3) { animation-delay: .91s; } .sp-word span:nth-child(4) { animation-delay: .99s; } .sp-word span:nth-child(5) { animation-delay: 1.07s; color: var(--brand); }
.sp-word { font-weight: 800; }
@keyframes sp-ch { to { opacity: 1; transform: none; } }

#app { display: flex; flex-direction: column; height: 100dvh; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); }

/* ---------- brand + symbol imagery ---------- */
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); margin-right: 6px; }
.logo-ic { width: 28px; height: 28px; flex: none; } .lg-r { stroke: var(--brand); } .lg-m { stroke: var(--text); } .lg-f { fill: var(--text); }
.logo-tx { font: 700 15px var(--head); letter-spacing: .16em; }
.si { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; background: var(--panel-3); color: var(--muted); font: 700 10px var(--head); vertical-align: middle; }
.si b { font-weight: 700; } .si img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--panel-2); }
.si.sq { border-radius: 6px; } .si.sq img { object-fit: contain; padding: 2px; background: #fff; }
.si.badge { color: #fff; font-size: 8.5px; letter-spacing: -.2px; } .si.tint { background: var(--brand-soft); color: var(--brand); } .si.tint .ic { width: 14px; height: 14px; }
.si.own { background: none; } .si.own .logo-ic { width: 100%; height: 100%; }
.si.fx { width: 30px; overflow: visible; background: none; display: inline-block; height: 22px; }
.si.fx span { position: absolute; top: 0; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--panel); background: var(--panel-3); }
.si.fx span:first-child { left: 0; z-index: 1; } .si.fx span:last-child { left: 11px; top: 3px; } .si.fx img { position: static; display: block; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 12px; background: var(--panel); border-bottom: 1px solid var(--border); flex: none; overflow-x: auto; scrollbar-width: none; }
.top::-webkit-scrollbar { display: none; }
.top > * { flex: none; } .sp { flex: 1 1 auto !important; min-width: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 11px; border-radius: 9px; font-weight: 600; color: var(--text); white-space: nowrap; text-decoration: none; }
.btn:hover, .ib:hover { background: var(--panel-2); }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 4px 16px -4px var(--brand-line); }
.btn.primary:hover { filter: brightness(1.1); box-shadow: 0 6px 22px -4px var(--brand-line); } .btn.primary:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn.danger { background: var(--down); color: #fff; box-shadow: none; }
.btn.wide { width: 100%; } .btn.ghost { color: var(--muted); border: 1px dashed var(--border); } .btn.ghost:hover { color: var(--text); border-color: var(--muted); }
.btn.link { border: 1px solid var(--border); color: var(--brand); } .btn.busy .ic { animation: spin .8s linear infinite; }
.sym { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px 0 6px; border-radius: 12px; text-align: left; transition: background .18s var(--ease), box-shadow .18s var(--ease); }
.sym:hover { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--border); } .sym:active { transform: scale(.98); }
.sym .si { width: 28px; height: 28px; } .sym .si.fx { width: 34px; height: 26px; } .sym .si.fx span { width: 22px; height: 22px; } .sym .si.fx span:last-child { left: 12px; top: 4px; }
.sym-t { display: flex; flex-direction: column; line-height: 1.15; } .sym-t b { font: 700 14.5px var(--head); letter-spacing: .01em; } .sym-t small { font: 600 9.5px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.sym > .ic { width: 15px; height: 15px; color: var(--muted); }
.tf { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 9px 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); transition: border-color .18s, background .18s; }
.tf:hover, .dd.open > .tf { border-color: var(--brand-line); } .tf b { font: 600 12.5px var(--mono); color: var(--brand); min-width: 24px; text-align: center; } .tf .ic { width: 15px; height: 15px; color: var(--muted); } .dd.open > .tf .ic:last-child { transform: rotate(180deg); } .tf .ic:last-child { transition: transform .22s var(--ease); }
.menu.tfm { min-width: 232px; } .menu.tfm > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 6px 6px; }
.menu.tfm button { justify-content: center; padding: 0; height: 32px; border-radius: 9px; border: 1px solid var(--border); font: 600 12px var(--mono); } .menu.tfm button.on { border-color: var(--brand); }
.ib { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--muted); } .ib:hover { color: var(--text); }
.ivs { display: flex; align-self: stretch; gap: 2px; }
.ivs button { position: relative; min-width: 32px; padding: 0 7px; color: var(--muted); font: 600 12px var(--mono); }
.ivs button::after { content: ''; position: absolute; left: 7px; right: 7px; bottom: 0; height: 2.5px; border-radius: 3px 3px 0 0; background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease); }
.ivs button:hover { color: var(--text); } .ivs button.on { color: var(--text); } .ivs button.on::after { transform: scaleX(1); }
.menu button.on { background: var(--brand-soft); color: var(--brand); }
.acct { height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; } .acct:hover { border-color: var(--brand-line); }
.acct img, .acct .av { width: 26px; height: 26px; border-radius: 50%; margin: 0 -8px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.dd .menu { display: none; position: fixed; z-index: 60; min-width: 200px; padding: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow); max-height: 80dvh; overflow-y: auto; }
.dd.open .menu { display: block; animation: rise .18s var(--ease); } .dd.open .menu.cols { display: grid; grid-template-columns: repeat(4, 1fr); min-width: 0; gap: 2px; } .menu.cols p { grid-column: 1 / -1; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 9px; white-space: nowrap; }
.menu button .ic { color: var(--muted); } .menu button.on .ic, .menu button:hover .ic { color: var(--brand); }
.menu button:hover { background: var(--panel-2); } .menu.cols button { justify-content: center; }
.menu p { margin: 5px 10px 7px; font: 600 10.5px var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ---------- layout ---------- */
.main { flex: 1; display: flex; min-height: 0; position: relative; }
.tools { width: 48px; flex: none; padding: 7px 6px; display: flex; flex-direction: column; gap: 3px; background: var(--panel); border-right: 1px solid var(--border); overflow-y: auto; scrollbar-width: none; }
.tools > button, .tg > button { width: 36px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; color: var(--muted); position: relative; }
.tools > button:hover, .tg > button:hover { background: var(--panel-2); color: var(--text); } .tools > button.on, .tg > button.on { background: var(--brand-soft); color: var(--brand); }
.tools i { height: 1px; background: var(--border); margin: 5px 4px; flex: none; } .tools .dd { flex: none; }
.tg > button::after { content: ''; position: absolute; right: 3px; bottom: 3px; border: 3px solid transparent; border-right-color: currentColor; border-bottom-color: currentColor; opacity: .5; }
.grid { flex: 1; min-width: 0; display: grid; gap: 4px; padding: 4px; background: var(--bg); grid-template: 1fr / 1fr; }
.grid[data-layout="2v"] { grid-template: 1fr / 1fr 1fr; } .grid[data-layout="2h"] { grid-template: 1fr 1fr / 1fr; } .grid[data-layout="4"] { grid-template: 1fr 1fr / 1fr 1fr; }
.pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--chart-bg); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; animation: fade .3s ease-out; transition: border-color .2s, box-shadow .2s; }
.pane.off { display: none; }
.grid:not([data-layout="1"]) .pane.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.pane-head { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; flex: none; font-size: 12px; white-space: nowrap; overflow: hidden; }
.p-sym { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px var(--head); letter-spacing: .02em; padding: 3px 6px 3px 3px; border-radius: 7px; } .p-sym:hover { background: var(--panel-2); color: var(--brand); }
.p-sym .si { width: 18px; height: 18px; } .p-sym .si.fx { width: 26px; height: 18px; } .p-sym .si.fx span { width: 16px; height: 16px; } .p-sym .si.fx span:last-child { left: 9px; top: 2px; }
.p-iv { color: var(--muted); font: 600 11px var(--mono); } .p-sp { flex: 1; }
.p-cd { font: 500 10.5px var(--mono); color: var(--muted); padding: 1px 6px; border-radius: 5px; background: var(--panel-2); } .p-cd:empty { display: none; }
.p-legend { display: flex; gap: 9px; color: var(--muted); overflow: hidden; font: 500 11px var(--mono); } .p-legend b { font-weight: 500; margin-left: 3px; }
.p-btn { padding: 2px 7px; border-radius: 6px; color: var(--muted); font: 600 10.5px var(--mono); } .p-btn:hover { background: var(--panel-2); } .p-btn.on { background: var(--brand-soft); color: var(--brand); }
.pane-body { position: relative; flex: 1; min-height: 0; }
.lc, .draw { position: absolute; inset: 0; width: 100%; height: 100%; }
.draw { z-index: 3; pointer-events: none; touch-action: none; } .draw.active { pointer-events: auto; cursor: crosshair; }
.wm { position: absolute; left: 12px; bottom: 36px; z-index: 2; display: flex; align-items: center; gap: 7px; opacity: .42; pointer-events: none; }
.wm .logo-ic { width: 20px; height: 20px; } .wm .logo-tx { font-size: 11px; } .no-wm .wm { display: none; }
.p-zoom { position: absolute; left: 50%; bottom: 38px; transform: translate(-50%, 6px); z-index: 4; display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); opacity: 0; transition: opacity .2s, transform .2s var(--ease); }
.pane-body:hover .p-zoom { opacity: 1; transform: translate(-50%, 0); }
.p-zoom button { width: 30px; height: 28px; border-radius: 8px; font-size: 15px; color: var(--muted); } .p-zoom button:hover { color: var(--brand); background: var(--brand-soft); }
.p-inds { position: absolute; left: 8px; top: 6px; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-height: 60%; overflow: hidden; }
.p-inds span { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 2px 0 8px; border-radius: 7px; background: color-mix(in srgb, var(--panel) 82%, transparent); border: 1px solid var(--border); backdrop-filter: blur(4px); animation: rise .2s var(--ease); }
.p-inds b { font: 600 10.5px var(--mono); margin-right: 3px; } .p-inds span.off b { opacity: .45; text-decoration: line-through; }
.p-inds button { width: 20px; height: 18px; display: grid; place-items: center; border-radius: 5px; color: var(--muted); } .p-inds button:hover { background: var(--panel-3); color: var(--text); } .p-inds button[data-a=rm]:hover { color: var(--down); }
.p-inds svg, .p-sel svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hide-all .p-inds { opacity: .35; }
.p-sel { position: absolute; top: 8px; left: 50%; transform: translate(-50%, -6px); z-index: 5; display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; border-radius: 11px; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .18s, transform .22s var(--ease); white-space: nowrap; }
.p-sel.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.p-sel button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: color-mix(in srgb, var(--down) 16%, transparent); color: var(--down); font-weight: 600; } .p-sel button:hover { background: var(--down); color: #fff; }
.p-msg { position: absolute; inset: 0; z-index: 5; display: none; place-items: center; text-align: center; padding: 20px; color: var(--muted); background: var(--chart-bg); } .p-msg.on { display: grid; }
.p-load { position: absolute; inset: 0; z-index: 6; display: none; place-items: center; background: var(--chart-bg); }
.loading .p-load { display: grid; animation: fade .15s; }
.p-load i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--panel-3); border-top-color: var(--brand); animation: spin .7s linear infinite; }
/* AI presence on the chart */
.ai-status { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 5; max-width: min(90%, 540px); padding: 8px 15px 8px 12px; border-radius: 20px; background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 8px 28px -6px var(--brand-line); display: none; align-items: center; gap: 8px; }
.ai-status.on { display: flex; animation: pop .28s var(--ease); }
.ai-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; box-shadow: 0 0 0 0 #fff; animation: ring 1.2s infinite; }
.ai-cur { position: absolute; left: 0; top: 0; z-index: 5; opacity: 0; pointer-events: none; transition: transform .42s cubic-bezier(.4, 0, .2, 1), opacity .25s; }
.ai-cur.on { opacity: 1; }
.ai-cur svg { position: absolute; left: -3px; top: -2px; width: 24px; height: 24px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); transition: transform .12s; }
.ai-cur svg path { fill: var(--brand); stroke: var(--brand-ink); stroke-width: 1.6; stroke-linejoin: round; }
.ai-cur span { position: absolute; left: 17px; top: 19px; padding: 2px 8px; border-radius: 4px 10px 10px 10px; background: var(--brand); color: var(--brand-ink); font: 700 10px var(--head); letter-spacing: .06em; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.ai-cur::before { content: ''; position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; }
.ai-cur.click svg { transform: scale(.82); } .ai-cur.click::before { animation: ring .4s ease-out; }

/* ---------- side panel ---------- */
.side { width: 330px; flex: none; display: none; flex-direction: column; background: var(--panel); border-left: 1px solid var(--border); min-height: 0; }
.side-open .side { display: flex; animation: slide-in .24s var(--ease); }
.tabs { display: flex; align-items: center; padding: 6px; gap: 2px; border-bottom: 1px solid var(--border); flex: none; }
.tabs button[data-tab] { position: relative; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border-radius: 9px; font-weight: 600; font-size: 12px; color: var(--muted); }
.tabs button[data-tab]:hover { color: var(--text); } .tabs button.on { background: var(--brand-soft); color: var(--brand); } .tabs .ic { width: 16px; height: 16px; }
@media (min-width: 760px) { .tabs button[data-tab]:not(.on) span { display: none; } .tabs button[data-tab]:not(.on) { width: 36px; justify-content: center; padding: 0; } }
.dot::after { content: ''; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--down); }
.side-x { margin-left: auto; }
.panel { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 11px; animation: fade .2s; }
.panel label, .sheet-b label { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); flex: none; }
.panel label { display: block; } .panel label > select, .panel label > textarea { display: block; margin-top: 6px; }
.panel label .ic { width: 14px; height: 14px; display: inline; vertical-align: -3px; margin-right: 5px; color: var(--brand); }
select, textarea, .inp { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); outline: none; resize: vertical; font-weight: 500; transition: border-color .18s, box-shadow .18s; }
select:focus, textarea:focus, .inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); } .inp.num { font-family: var(--mono); }
.row2 { display: flex; gap: 8px; flex-wrap: wrap; } .row2 > * { flex: 1; min-width: 0; } .row2 > .btn { flex: 0 0 auto; } .row2 > .btn.wide { flex: 1; } .row2 #aiStop { border: 1px solid var(--border); }
.model { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel-2); text-align: left; }
.model:hover { border-color: var(--brand-line); } .model .si { width: 30px; height: 30px; border-radius: 8px; }
.model span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; } .model small { font-size: 10.5px; color: var(--muted); } .model b { font: 600 12.5px var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .model > .ic { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .chip { padding: 5px 11px; border-radius: 14px; border: 1px solid var(--border); font-size: 11.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.chips button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chip { margin: 0 6px 6px 0; color: var(--text); padding-right: 5px; } .chip .ic { width: 13px; height: 13px; color: var(--brand); } .chip button { color: var(--brand); font: 600 11px var(--mono); padding: 1px 5px; border-radius: 6px; display: grid; } .chip button:hover { background: var(--brand-soft); }
#aiLog { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
#aiLog li { position: relative; padding: 8px 10px 8px 32px; border-radius: 10px; background: var(--panel-2); font-size: 12.5px; animation: rise .24s var(--ease); }
#aiLog li::before { content: ''; position: absolute; left: 11px; top: 11px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
#aiLog li.done::before { animation: none; border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
#aiSum:empty { display: none; } #aiSum { padding: 13px; border-radius: 12px; font-size: 13px; animation: rise .3s var(--ease); } #aiSum p { margin: 7px 0 0; white-space: pre-wrap; font-weight: 500; }
#aiSum b { display: flex; align-items: center; gap: 6px; font-family: var(--head); } #aiSum b .ic { color: var(--brand); }
#aiSum.ok { background: var(--brand-soft); border: 1px solid var(--brand-line); } #aiSum.err { background: rgba(240, 80, 110, .1); border: 1px solid var(--down); } #aiSum.note { background: var(--panel-2); color: var(--muted); }
details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--muted); font-size: 12px; } details > summary::-webkit-details-marker { display: none; }
#aiHist > summary .ic { width: 14px; height: 14px; } #aiHistList { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.hist { padding: 9px 11px; border-radius: 10px; background: var(--panel-2); } .hist summary { flex-direction: column; align-items: flex-start; gap: 1px; color: var(--text); } .hist small { color: var(--muted); font-weight: 500; } .hist p { margin: 8px 0 0; white-space: pre-wrap; font-size: 12px; color: var(--muted); }
.fine { font-size: 11.5px; font-weight: 500; color: var(--muted); margin: 4px 0; } .fine.empty { text-align: center; padding: 18px 8px; }
.card { padding: 12px; border-radius: 12px; background: var(--panel-2); display: flex; flex-direction: column; gap: 8px; } .card-t { display: flex; align-items: center; gap: 7px; font-family: var(--head); font-size: 12.5px; } .card-t .ic { color: var(--brand); } .card .inp { background: var(--panel); }
#alSym { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; } #alSym b { color: var(--text); }
.wl-head, .wrow { display: grid; grid-template-columns: 30px 1fr auto 62px 18px; gap: 8px; align-items: center; padding: 0 6px; }
.wl-head { grid-template-columns: 1fr auto 62px 18px; font: 600 10px var(--head); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; } .wl-head span:not(:first-child) { text-align: right; }
.wrow { height: 40px; border-radius: 9px; cursor: pointer; } .wrow:hover { background: var(--panel-2); }
.wrow b { font: 600 12.5px var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wrow b i, .srow b i { font-style: normal; font-weight: 500; color: var(--muted); font-size: 11px; }
.wrow span, .wrow em { text-align: right; font: 500 12px var(--mono); font-style: normal; }
.wrow em { padding: 2px 5px; border-radius: 6px; font-size: 11px; } .wrow em.up { background: color-mix(in srgb, var(--up) 14%, transparent); } .wrow em.dn { background: color-mix(in srgb, var(--down) 14%, transparent); }
.wrow button { color: var(--muted); opacity: 0; display: grid; } .wrow:hover button { opacity: 1; } .wrow button .ic { width: 14px; height: 14px; } .wrow button:hover { color: var(--down); }
.wrow.mv { grid-template-columns: 16px 26px 1fr auto 62px; } .wrow.mv small { color: var(--muted); font: 500 10.5px var(--mono); }
.al { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--panel-2); margin-bottom: 6px; animation: rise .22s var(--ease); } .al > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .al small { color: var(--muted); font: 500 11px var(--mono); }
.al.hit { box-shadow: inset 3px 0 0 var(--brand); } .al.hit small { color: var(--brand); } .al button { color: var(--muted); display: grid; } .al button:hover { color: var(--down); }

/* ---------- windows ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; grid-template-columns: minmax(0, 1fr); place-items: center; background: rgba(3, 3, 5, .62); backdrop-filter: blur(6px); padding: 16px; }
.modal.on { display: grid; animation: fade .2s ease-out; } .modal.on .sheet, .modal.on .dlg { animation: rise .26s var(--ease); } #dialog { z-index: 90; }
.sheet { width: min(540px, 100%); max-height: min(680px, 88dvh); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); } .sheet.wide { width: min(600px, 100%); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 13px 12px 13px 20px; border-bottom: 1px solid var(--border); font: 700 15px var(--head); } .sheet-h small { margin-left: 6px; padding: 2px 7px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font: 600 11px var(--mono); }
.sheet-b { padding: 14px 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 11px; min-height: 0; }
.dlg { width: min(380px, 100%); padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; } .dlg b { font: 700 15px var(--head); } .dlg p { margin: 0; color: var(--muted); } .dlg .row2 { justify-content: flex-end; } .dlg .btn { border: 1px solid var(--border); min-width: 84px; } .dlg .btn.primary { border-color: transparent; }
.search { display: flex; align-items: center; gap: 9px; padding: 0 12px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel-2); flex: none; transition: border-color .18s, box-shadow .18s; } .search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search .ic { color: var(--muted); } .search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-weight: 500; }
.seg { display: flex; gap: 4px; overflow-x: auto; flex: none; scrollbar-width: none; padding-bottom: 1px; } .seg::-webkit-scrollbar { display: none; }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; transition: background .18s, color .18s; } .seg button .ic { width: 14px; height: 14px; } .seg button:hover { color: var(--text); } .seg button.on { background: var(--brand-soft); color: var(--brand); }
.rows { display: flex; flex-direction: column; overflow-y: auto; min-height: 140px; }
.srow { display: grid; grid-template-columns: 32px 96px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 8px; border-radius: 10px; flex: none; } .srow:hover { background: var(--panel-2); }
.srow b { font: 600 13px var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .srow span:not(.si) { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .srow em { font: 500 11.5px var(--mono); font-style: normal; color: var(--muted); }
.srow .si { width: 26px; height: 26px; } .srow .si.fx { width: 32px; }
.srow.ind { grid-template-columns: 30px 1fr auto 18px; } .srow.ind > .ic { color: var(--muted); width: 15px; height: 15px; } .srow.ind:hover > .ic { color: var(--brand); } .srow.ind b { font-family: var(--ui); }
.set { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px; border-radius: 12px; } .set:hover { background: var(--panel-2); } .set .si { width: 34px; height: 34px; border-radius: 10px; } .set .si .ic { width: 17px; height: 17px; }
.set span:last-child { display: flex; flex-direction: column; } .set b { font: 600 13.5px var(--head); } .set small { color: var(--muted); font-weight: 500; }
.pcard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--border); } .pcard img, .pcard .av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font: 700 16px var(--head); object-fit: cover; }
.pcard > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pcard b { font: 700 14px var(--head); } .pcard small { color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; } .pcard .btn:not(.primary) { border: 1px solid var(--border); }
.about { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--border); } .about p { margin: 0; } .about small { color: var(--muted); font-family: var(--mono); } .about .logo-ic { width: 34px; height: 34px; } .about .logo-tx { font-size: 18px; }
.kb { display: flex; align-items: center; gap: 14px; padding: 7px 4px; } kbd { min-width: 78px; text-align: center; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--border); border-bottom-width: 2px; background: var(--panel-2); font: 600 11.5px var(--mono); }
.sec { display: flex; align-items: center; gap: 7px; margin: 6px 0 0; font: 600 11px var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); } .sec .ic { width: 15px; height: 15px; color: var(--brand); }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .themes button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel-2); font-weight: 600; font-size: 12px; }
.themes button:hover { border-color: var(--muted); } .themes button.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); color: var(--brand); } .themes svg { width: 54px; height: 34px; }
input[type=color] { width: 100%; height: 38px; padding: 3px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); cursor: pointer; }
.sw { flex-direction: row !important; align-items: center; justify-content: space-between; padding: 9px 2px; font-size: 13px !important; color: var(--text) !important; cursor: pointer; } .sw input { display: none; }
.sw i { width: 38px; height: 22px; border-radius: 12px; background: var(--panel-3); position: relative; transition: background .2s; flex: none; } .sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .22s var(--ease); }
.sw input:checked + i { background: var(--brand); } .sw input:checked + i::after { transform: translateX(16px); }
.prov { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 8px; transition: border-color .2s, box-shadow .2s; } .prov.cur { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.prov-h { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; text-align: left; } .prov-h:hover { background: var(--panel-2); } .prov-h .si { width: 34px; height: 34px; border-radius: 9px; }
.prov-h > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .prov-h b { font: 600 13.5px var(--head); } .prov-h small { color: var(--muted); font-weight: 500; } .prov-h small.ok { color: var(--up); } .prov.cur .prov-h small { color: var(--brand); }
.prov-h > .ic { color: var(--muted); transition: transform .25s var(--ease); } .prov.open .prov-h > .ic { transform: rotate(180deg); }
.prov-b { display: none; flex-direction: column; gap: 10px; padding: 4px 12px 14px; } .prov.open .prov-b { display: flex; animation: rise .22s var(--ease); } .prov-b .msg:empty { display: none; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 12px; background: #fff; color: #1f1f1f; font-weight: 600; border: 1px solid #dadce0; transition: box-shadow .18s, transform .12s; } .gbtn:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .18); } .gbtn:active { transform: scale(.98); }
#toast { position: fixed; left: 50%; bottom: 86px; transform: translate(-50%, 16px) scale(.96); z-index: 120; padding: 10px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); max-width: 90vw; text-align: center; box-shadow: var(--shadow); }
#toast.on { opacity: 1; transform: translate(-50%, 0); } #toast.ok { background: var(--brand); color: var(--brand-ink); }
.bnav { display: none; }

/* ---------- medium screens: small laptops and tablets ---------- */
@media (max-width: 1180px) { .side { width: 300px; } .lbl { display: none; } }
@media (min-width: 760px) and (max-width: 1099px) { .side { position: absolute; top: 0; right: 0; bottom: 0; z-index: 30; box-shadow: var(--shadow); } }

/* ---------- phones ---------- */
@media (max-width: 759px) {
  html, body { font-size: 12.5px; }
  .top { height: 46px; gap: 3px; padding: 0 8px; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); } .logo-tx { display: none; } .logo-ic { width: 26px; height: 26px; } .brand { margin-right: 2px; }
  .btn { height: 32px; padding: 0 8px; } .ib { width: 32px; height: 32px; } .ivs button { min-width: 28px; padding: 0 5px; font-size: 11px; } .sym { height: 36px; gap: 7px; padding: 0 6px 0 3px; } .sym-t b { font-size: 13px; } .tf { height: 32px; padding: 0 7px; } .tf .ic:first-child { display: none; } .p-inds b { font-size: 10px; }
  .tools { display: none; position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 20; width: auto; flex-direction: row; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; padding: 5px 6px; box-shadow: var(--shadow); }
  .tools-open .tools { display: flex; animation: rise .22s var(--ease); } .tools i { width: 1px; height: auto; margin: 4px; }
  .side { position: absolute; inset: auto 0 0 0; z-index: 30; width: auto; height: min(74%, 580px); border: 0; border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; box-shadow: var(--shadow); }
  .side-open .side { animation: sheet-up .3s var(--ease); } .tabs { padding: 8px 8px 6px; } .tabs button[data-tab] { flex: 1; justify-content: center; padding: 0 4px; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); flex: none; background: var(--panel); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .bnav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; font: 600 10px var(--head); letter-spacing: .02em; color: var(--muted); } .bnav button.on { color: var(--brand); }
  .bnav .hero .ic { width: 34px; height: 34px; padding: 8px; margin-top: -16px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px -4px var(--brand-line), 0 0 0 4px var(--panel); }
  .grid { gap: 3px; padding: 3px; } .pane-head { height: 28px; gap: 6px; } .p-legend { gap: 6px; font-size: 10.5px; } .p-legend span:nth-child(-n+3) { display: none; } .p-zoom { display: none; } .wm { left: 8px; bottom: 32px; } .wm .logo-tx { display: inline; font-size: 10px; }
  .modal { padding: 0; place-items: end center; } .sheet, .sheet.wide { width: 100%; border-radius: 18px 18px 0 0; max-height: 88dvh; border-bottom: 0; } .modal.on .sheet { animation: sheet-up .3s var(--ease); }
  #dialog { place-items: center; padding: 16px; } .srow { grid-template-columns: 30px 84px 1fr auto; gap: 8px; } .themes svg { width: 44px; height: 28px; }
  #toast { bottom: 74px; } .ai-status { font-size: 11.5px; padding: 6px 12px 6px 10px; top: 6px; }
}
@media (max-width: 380px) { .ivs button:nth-child(n+6) { display: none; } .srow { grid-template-columns: 28px 74px 1fr auto; } }
/* phone in landscape / fullscreen: maximise chart area */
@media (max-height: 520px) and (orientation: landscape) {
  .top { height: 40px; } .bnav { display: none; } .side { width: 300px; height: auto; inset: 0 0 0 auto; border-radius: 0; border-left: 1px solid var(--border); position: absolute; z-index: 30; }
  .tools { width: 42px; padding: 4px; display: flex; position: static; flex-direction: column; border: 0; border-right: 1px solid var(--border); border-radius: 0; box-shadow: none; } .tools i { width: auto; height: 1px; } .pane-head { height: 26px; }
  .tools > button, .tg > button { width: 32px; height: 28px; }
}
/* large desktops */
@media (min-width: 1700px) { .side { width: 380px; } html, body { font-size: 13.5px; } .top { height: 56px; } .tools { width: 52px; } .tools > button, .tg > button { width: 40px; height: 36px; } }

/* ============================ v2.1 â€” one seamless surface ============================ */
/* Header, toolbar, chart, side panel and footer share one background; only hairlines separate them. */
:root { --bg: #050506; --panel: #050506; --chart-bg: #050506; --panel-2: #131316; --panel-3: #1D1D21; --border: #19191D; }
:root[data-theme="light"] { --bg: #FFFFFF; --panel: #FFFFFF; --chart-bg: #FFFFFF; --panel-2: #F3F3F5; --panel-3: #E9E9EE; --border: #EEEEF1; }
.top { border-bottom-color: transparent; } .tools { border-right-color: transparent; } .side { border-left-color: var(--border); }
.main { border-top: 1px solid var(--border); }
.grid { gap: 0; padding: 0; } .pane { border-radius: 0; border-color: transparent; }
.grid:not([data-layout="1"]) .pane { border-color: var(--border); }
.dd .menu, .sheet, .dlg, .p-zoom, .p-sel { background: var(--panel-2); }
.sheet .inp, .sheet select, .sheet .search, .card .inp { background: var(--panel-3); } .set:hover, .srow:hover, .prov-h:hover, .menu button:hover { background: var(--panel-3); }
/* No visible scrollbars anywhere; content still scrolls by wheel, touch and keys. */
* { scrollbar-width: none; } *::-webkit-scrollbar { display: none; }
.m-only { display: none; }

/* Brand loader: the Orvex ring turns while data arrives. It only appears if loading takes longer than a moment. */
.p-load .logo-ic, .bload .logo-ic { width: 44px; height: 44px; overflow: visible; }
.p-load .lg-r, .bload .lg-r { stroke-dasharray: 62 33; transform-box: fill-box; transform-origin: center; animation: spin .9s linear infinite; }
.p-load .lg-f, .bload .lg-f { transform-box: fill-box; transform-origin: center; animation: beat .9s ease-in-out infinite alternate; }
@keyframes beat { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.loading .p-load { animation: fade .2s .22s both; } .bload { display: grid; place-items: center; padding: 28px 0; }
.p-msg.on { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; } .p-msg p { margin: 0; max-width: 300px; }

/* Selected drawing: colour, thickness, delete */
.p-sel { gap: 7px; padding: 5px 5px 5px 12px; } .p-sel > span { color: var(--muted); margin-right: 2px; }
.p-sel i { width: 18px; height: 18px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); transition: transform .15s var(--ease); } .p-sel i:hover { transform: scale(1.2); }
.p-sel button[data-w] { background: var(--panel-3); color: var(--text); } .p-sel button[data-w]:hover { background: var(--border); color: var(--text); }

/* Welcome */
#welcome { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: var(--bg); overflow-y: auto; animation: fade .35s ease-out; transition: opacity .35s var(--ease), transform .35s var(--ease); }
#welcome.out { opacity: 0; transform: scale(1.03); pointer-events: none; }
.wc { width: min(400px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: rise .5s var(--ease) .1s both; }
.wc > .logo-ic { width: 64px; height: 64px; } .wc h1 { margin: 6px 0 0; font: 800 24px var(--head); letter-spacing: -.01em; } .wc > p { margin: 0; color: var(--muted); }
.wc ul { list-style: none; margin: 14px 0 10px; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.wc li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: var(--panel-2); } .wc li .si { width: 36px; height: 36px; border-radius: 10px; } .wc li .si .ic { width: 18px; height: 18px; }
.wc li span:last-child { display: flex; flex-direction: column; } .wc li b { font: 600 13.5px var(--head); } .wc li small { color: var(--muted); font-weight: 500; }
.wc .gbtn, .wc .btn { width: 100%; height: 48px; border-radius: 13px; } .wc .btn { border: 1px solid var(--border); }

/* ---------- phones: a header that fits, a footer that does not repeat itself ---------- */
@media (max-width: 759px) {
  .top { overflow: visible; -webkit-mask-image: none; mask-image: none; gap: 4px; }
  .ivs, .lay-dd, #styleBtn, #snapBtn, #fsBtn, #themeBtn, #setBtn, #aiBtn, #acctBtn { display: none; }
  .m-only { display: block; } .sym { flex: 0 1 auto; min-width: 0; } .sym-t b { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tf .ic:first-child { display: none; } .menu.tfm { min-width: min(300px, 92vw); } .menu.tfm button { height: 38px; font-size: 13px; }
  .bnav { border-top-color: var(--border); background: var(--panel); } .bnav button { gap: 3px; padding: 8px 0 7px; }
  .side { background: var(--panel-2); } .side .inp, .side select, .side textarea, .side .model, .side .card, #aiLog li, .hist, .al { background: var(--panel-3); } .wrow:hover { background: var(--panel-3); }
  .tools { background: var(--panel-2); }
  .p-sel { top: 34px; max-width: 96%; } .p-sel > span { display: none; } .p-inds { top: 4px; }
}

/* Footer: AI sits in line with the other four tabs (same size, no raised circle); only its icon carries the accent. */
@media (max-width: 759px) { .bnav .hero .ic { width: 18px; height: 18px; padding: 0; margin: 0; border-radius: 0; background: none; box-shadow: none; color: var(--brand); } .bnav button .ic { width: 20px; height: 20px; } .bnav .hero .ic { width: 20px; height: 20px; } .bnav button.on::before { content: ''; position: absolute; top: 0; left: 32%; right: 32%; height: 2.5px; border-radius: 0 0 3px 3px; background: var(--brand); } }

/* Indicator list can be folded away */
.p-inds .pi-tg { width: auto; height: 20px; display: inline-flex; align-items: center; gap: 4px; padding: 0 5px 0 8px; border-radius: 7px; font: 600 10px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--panel) 82%, transparent); border: 1px solid var(--border); }
.p-inds .pi-tg svg { transition: transform .22s var(--ease); } .p-inds.collapsed .pi-tg svg { transform: rotate(-90deg); } .p-inds.collapsed span { display: none; }
/* Timeframe: just the value, no pill and no arrows */
.tf, .tf:hover, .dd.open > .tf { border: 0; background: none; padding: 0 8px; } .tf .ic { display: none !important; } .tf b { font-size: 14px; min-width: 0; }
.tf:hover b, .dd.open > .tf b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
/* Phones: Lists (watchlist, movers, alerts) and AI are two separate sheets */
@media (max-width: 759px) {
  body:not(.side-ai) .tabs [data-tab="ai"], body.side-ai .tabs [data-tab]:not([data-tab="ai"]) { display: none; }
  body.side-ai .tabs [data-tab="ai"] { flex: 0 0 auto; background: none; color: var(--text); font: 700 14px var(--head); pointer-events: none; padding: 0 8px; }
}

/* ============================ v2.2 ============================ */
.top { padding-left: 8px; }
.tf b, .tf:hover b { color: var(--text); }                       /* timeframe: normal text colour, the only timeframe control */
#favBtn.on { color: var(--brand); }
.srow { grid-template-columns: 32px 96px 1fr auto 28px; }
.srow .st { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--muted); transition: background .15s, color .15s, transform .15s var(--ease); }
.srow .st:hover { background: var(--panel-3); color: var(--text); } .srow .st.on { color: var(--brand); } .srow .st:active { transform: scale(.85); } .srow .st .ic { width: 16px; height: 16px; }
.wrow.rc { grid-template-columns: 30px 1fr auto 26px; } .wrow.rc button { opacity: 1; } .wrow.rc button.on { color: var(--brand); } .wrow.rc button:hover { color: var(--brand); }
@keyframes logo-in { from { opacity: 0; } to { opacity: 1; } } .si img { animation: logo-in .25s ease-out; }   /* logos fade in over the letter */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tiles div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border-radius: 13px; background: var(--panel-3); }
.tiles b { font: 700 18px var(--head); } .tiles small { font-size: 10.5px; color: var(--muted); font-weight: 600; text-align: center; }
.ver { margin: 6px 0 0; text-align: center; color: var(--muted); font: 500 11px var(--mono); }
.dsheet { display: none; }
@media (max-width: 759px) {
  :root { --nav-h: calc(57px + env(safe-area-inset-bottom)); }
  /* Windows stop above the footer, which stays visible and usable */
  #modal { bottom: var(--nav-h); } .bnav { position: relative; z-index: 86; }
  #snapBtn, #themeBtn { display: inline-grid; }
  .srow { grid-template-columns: 30px 86px 1fr auto 26px; gap: 8px; }
  .tools { display: none !important; }
  .dsheet { position: absolute; inset: auto 0 0 0; z-index: 30; max-height: 70%; flex-direction: column; background: var(--panel-2); border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; box-shadow: var(--shadow); }
  .tools-open .dsheet { display: flex; animation: sheet-up .3s var(--ease); }
  .ds-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 6px 18px; font: 700 14px var(--head); flex: none; }
  .ds-b { overflow-y: auto; padding: 4px 12px 14px; } .ds-b p { margin: 12px 4px 7px; font: 600 10.5px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .ds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .ds-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 8px 4px; border-radius: 12px; background: var(--panel-3); color: var(--text); font-size: 10.5px; font-weight: 600; text-align: center; line-height: 1.2; transition: background .15s, color .15s, transform .12s var(--ease); }
  .ds-grid button .ic { width: 20px; height: 20px; color: var(--muted); } .ds-grid button:active { transform: scale(.95); }
  .ds-grid button.on { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-line); } .ds-grid button.on .ic { color: var(--brand); }
  .tiles b { font-size: 16px; }
}

/* ============================ v2.3 ============================ */
/* Speed: no backdrop blur (it is very slow over a live chart on phones) */
.modal { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(3, 3, 5, .74); } .p-inds span, .p-inds .pi-tg { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--panel-2); }
/* Selected-drawing toolbar: colour Â· thickness Â· duplicate Â· delete */
.p-sel { gap: 2px; padding: 4px; border-radius: 12px; overflow: visible; }
.p-sel button, .p-sel button[data-w], .p-sel button[data-del] { width: 32px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 8px; background: none; color: var(--muted); }
.p-sel button:hover, .p-sel button[data-w]:hover { background: var(--panel-3); color: var(--text); } .p-sel button.on { background: var(--brand-soft); color: var(--brand); }
.p-sel button[data-w] i { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: none; transform: none; }
.p-sel .ps-c i { display: block; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.p-sel u { width: 1px; height: 18px; background: var(--border); margin: 0 3px; text-decoration: none; }
.p-sel button[data-del] { color: var(--down); } .p-sel button[data-del]:hover { background: color-mix(in srgb, var(--down) 16%, transparent); color: var(--down); }
.p-sel svg { width: 16px; height: 16px; }
.ps-pal { display: none; position: absolute; top: calc(100% + 6px); left: 0; gap: 7px; padding: 8px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); box-shadow: var(--shadow); font-style: normal; }
.p-sel.pal .ps-pal { display: flex; animation: rise .16s var(--ease); } .ps-pal i { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
/* Bar countdown under the live price */
.pane-body .p-cd { position: absolute; right: 0; z-index: 4; display: none; padding: 1px 0 2px; text-align: center; font: 500 10.5px var(--mono); color: #fff; border-radius: 0 0 3px 3px; pointer-events: none; }

@media (max-width: 759px) { .sym { flex: none; } .sym-t { min-width: 0; } .sym-t b { max-width: 30vw; } .tf { flex: none; padding: 0 6px; } }

@media (max-width: 759px) { #snapBtn { display: none; } .top { gap: 2px; padding: 0 6px; } }

/* ============================ v2.4 ============================ */
/* Header: the Orvex mark and wordmark; the symbol is named once, on the chart */
.top .brand { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 0 4px; } .top .brand .logo-ic { width: 26px; height: 26px; } .top .brand .logo-tx { display: inline; font-size: 14px; letter-spacing: .18em; }
.pane-head { height: 36px; } .p-sym { font-size: 14px; padding: 4px 6px 4px 4px; gap: 7px; } .p-sym .si { width: 22px; height: 22px; } .p-sym .si.fx { width: 30px; height: 22px; } .p-sym .si.fx span { width: 20px; height: 20px; } .p-sym .si.fx span:last-child { left: 11px; top: 3px; }
.p-chev { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.grid:not([data-layout="1"]) .pane-head { height: 30px; } .grid:not([data-layout="1"]) .p-sym { font-size: 12.5px; }
/* Bar countdown: bottom-right corner, in the time-axis row */
.pane-body .p-cd { top: auto; bottom: 0; right: 0; height: 26px; line-height: 26px; padding: 0; background: none !important; color: var(--muted); border-radius: 0; font: 500 11px/26px var(--mono); }
/* Footer: the AI tab carries the app mark */
.bnav .logo-ic { width: 22px; height: 22px; } .bnav button:not(.on) .logo-ic .lg-r { stroke: var(--muted); } .bnav button:not(.on) .logo-ic .lg-m { stroke: var(--muted); } .bnav button:not(.on) .logo-ic .lg-f { fill: var(--muted); }
/* Indicator list: neutral icons, like the drawing tools */
.srow.ind .si.tint { background: var(--panel-3); color: var(--muted); } .srow.ind:hover .si.tint { color: var(--text); } .chip .ic { color: var(--muted); } #icats button .ic { color: inherit; }
/* Indicator settings */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .pgrid .inp { font-size: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; } .swatches button { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); transition: transform .15s var(--ease), box-shadow .15s; }
.swatches button.on { box-shadow: 0 0 0 2px var(--panel-2), 0 0 0 4px var(--text); transform: scale(.9); } .swatches .auto { width: auto; padding: 0 12px; border-radius: 15px; background: var(--panel-3); font-size: 12px; font-weight: 600; }
.acts { margin-top: 6px; } .acts .btn { border: 1px solid var(--border); flex: 1; } .acts .btn.primary { border-color: transparent; }
/* Profile: about block */
.about2 { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px 14px; border-radius: 14px; background: var(--panel-3); text-align: center; }
.about2 .logo-ic { width: 40px; height: 40px; } .about2 .logo-tx { font-size: 18px; } .about2 > p { margin: 0; color: var(--muted); } .about2 small { color: var(--muted); font: 500 11px var(--mono); }
.about2 ul { list-style: none; margin: 8px 0 4px; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.about2 li { display: flex; flex-direction: column; padding: 9px 11px; border-radius: 10px; background: var(--panel-2); } .about2 li b { font: 600 12.5px var(--head); } .about2 li span { color: var(--muted); font-size: 11.5px; }
@media (max-width: 759px) {
  .top .brand { margin: 0 6px 0 2px; } .top .brand .logo-tx { font-size: 13px; }
  .bnav button .logo-ic { margin-bottom: -1px; }
  /* every sheet ends exactly on the footer */
  #modal { bottom: var(--nav-h); } .side, .dsheet { bottom: 0; }
}

/* Windows never grow past the space above the footer */
@media (max-width: 759px) { #modal { grid-template-rows: minmax(0, 1fr); align-items: end; } #modal .sheet, #modal .sheet.wide { max-height: 100%; } }

/* v2.5: the drawing layer gets its own compositor layer so moving a drawing never repaints the chart under it */
.draw { will-change: transform; }

/* ============================ v2.6 ============================ */
/* One wordmark everywhere: ORVE + accent X, the same as on the launch screen */
.logo-tx, .sp-word { font-family: var(--head); font-weight: 800; letter-spacing: .3em; } .logo-tx b { color: var(--brand); font-weight: inherit; }
.sp-word { gap: 0; padding-left: .3em; } .sp-word span { display: inline-block; }
/* Chart header: price facts. The symbol is named in the top bar; with several charts each chart keeps a small name. */
.grid[data-layout="1"] .p-sym, .grid[data-layout="1"] .p-iv { display: none; }
.p-legend { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; gap: 10px; font-size: 11.5px; } .p-legend .d24 b { color: var(--text); }
.pane-head { padding: 0 10px; }
@media (max-width: 759px) {
  .p-legend { gap: 7px; font-size: 10.5px; } .p-legend span:nth-child(-n+3) { display: inline; } .pane-head { padding: 0 8px; }
  /* Sheets take part of the screen, never all of it */
  #modal .sheet, #modal .sheet.wide { max-height: min(100%, 76dvh); }
}

/* v2.7: AI pointers. The main one pulses while the plan is being made; the second one holds a drawing's first anchor. */
.ai-cur { z-index: 7; } .ai-cur.think::before { opacity: 1; animation: ring 1.1s ease-out infinite; }
.ai-cur.c2 svg path { fill: var(--text); stroke: var(--bg); } .ai-cur.c2 span { background: var(--text); color: var(--bg); }

/* ============================ v2.8 — from the UI audit ============================ */
/* Buttons in panels keep their full height (they were being squeezed to 19px) */
.panel > .btn, .panel .row2 > .btn { flex: none; min-height: 40px; }
@media (max-width: 759px) {
  .p-btn { min-width: 40px; min-height: 28px; display: inline-grid; place-items: center; }
  .p-inds button, .chip button { min-width: 26px; min-height: 26px; } .p-inds span { height: 28px; } .p-inds .pi-tg { height: 26px; }
}
/* Small phones held sideways: the footer stays (as a slim row) so Lists, AI, Draw and Profile are always reachable */
@media (max-width: 759px) and (orientation: landscape) {
  .bnav { display: grid; } .bnav button { flex-direction: row; justify-content: center; gap: 7px; padding: 6px 0; font-size: 11px; }
  .bnav button .ic, .bnav .logo-ic { width: 17px; height: 17px; } .bnav button.on::before { left: 38%; right: 38%; }
  .side, .dsheet { height: 88%; max-height: 88%; } #modal .sheet, #modal .sheet.wide { max-height: 100%; } .top { height: 40px; } .pane-head { height: 26px; }
}

/* ============================ v2.9 — filled surfaces, no outlines ============================ */
/* Boxes are separated by tone, not by thin lines. */
.dd .menu, .sheet, .dlg, .p-sel, .ps-pal, .dsheet, .p-inds span, .p-inds .pi-tg, .prov, .about, .pcard, .acct, kbd { border: 0; }
select, textarea, .inp, .search, .model, .themes button, .chips button, .chip, input[type=color] { border-color: transparent; }
.sheet-h, .tabs { border-bottom: 0; } .main { border-top: 0; } .side { border-left-color: transparent; } .bnav { border-top-color: transparent; }
.btn.ghost, .btn.link, .acts .btn, .dlg .btn, .wc .btn, .pcard .btn, .row2 #aiStop { border: 0; background: var(--panel-3); }
.btn.ghost { color: var(--muted); } .btn.link { color: var(--brand); }
.acts .btn.primary, .dlg .btn.primary, .pcard .btn.primary, .wc .btn.primary { background: var(--brand); color: var(--brand-ink); } .dlg .btn.danger { background: var(--down); color: #fff; }
.chips button, .chip { background: var(--panel-3); } .acct { background: var(--panel-2); }
.prov { background: var(--panel-3); } .prov.cur { background: var(--brand-soft); box-shadow: none; }
.themes button { background: var(--panel-3); } .themes button.on { background: var(--brand-soft); box-shadow: none; }
.grid:not([data-layout="1"]) .pane.active { box-shadow: none; }
/* Timeframe: no line under the value; the choices are filled chips */
.tf:hover b, .dd.open > .tf b { text-decoration: none; } .tf:hover, .dd.open > .tf { background: var(--panel-2); border-radius: 9px; }
.menu.tfm button, .menu.tfm button.on { border: 0; background: var(--panel-3); } .menu.tfm button.on { background: var(--brand-soft); color: var(--brand); }
/* Bar countdown: a small pill in the bottom-right corner */
.pane-body .p-cd { width: auto !important; right: 6px; bottom: 3px; height: 20px; line-height: 20px; padding: 0 8px; border-radius: 6px; background: var(--panel-3) !important; color: var(--text); font: 500 10.5px/20px var(--mono); }
/* Responsiveness: no double-tap delay, long lists only lay out what is on screen, sheets animate on the compositor */
html { touch-action: manipulation; }
.rows .srow, #mv .wrow, #wl .wrow, #rcList .wrow { content-visibility: auto; contain-intrinsic-size: auto 44px; }
.modal.on .sheet, .side-open .side, .tools-open .dsheet, .dd.open .menu { will-change: transform, opacity; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } } @keyframes sheet-up { from { transform: translateY(100%); opacity: .6; } }
.modal.on .sheet { animation-duration: .26s; } .dd.open .menu { animation-duration: .16s; }

/* ============================ v3.0 — from testing with real touches ============================ */
/* Indicators window: what is on the chart sits in one row that scrolls sideways, so the list below never jumps */
#iact:empty { display: none; } .chiprow { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; } .chiprow::-webkit-scrollbar { display: none; }
.chiprow .chip { flex: none; margin: 0; height: 34px; align-items: center; } .chip button { place-items: center; align-self: center; }
/* Selected tool in the Draw sheet: filled, no outline */
.ds-grid button.on { box-shadow: none; }
/* Messages: one calm style */
#toast, #toast.ok { background: var(--panel-3); color: var(--text); font-size: 12.5px; }
@media (max-width: 759px) {
  /* Drawing toolbar sits at the top right, clear of the indicator names on the left */
  .p-sel { left: auto; right: 76px; top: 6px; transform: translateY(-6px); } .p-sel.on { transform: none; }
}

/* v3.1: the chart is its own layer. Its internal pane dividers have a high z-index and were sitting above open sheets, so a tap on a sheet button that happened to lie over a divider went to the chart instead (this is why Clear AI drawings did nothing). */
.pane-body .lc { isolation: isolate; }

@media (max-width: 759px) { #toast { bottom: calc(var(--nav-h, 64px) + 14px); } }

/* v3.2: no outlines on the AI summary and history cards either */
#aiSum, #aiSum.ok, #aiSum.err, .hist, #aiLog li, .p-inds span, .p-inds .pi-tg { border: 0; }

/* v3.3: short screens (phone held sideways): the tool column fits without being cut off */
@media (min-width: 760px) and (max-height: 460px) { .tools { overflow-y: auto; scrollbar-width: none; padding-block: 2px; gap: 0; } .tools > button, .tg > button { height: 30px; } }


/* ============================ v3.4 ============================ */
/* Which chart is active (2 or 4 charts): a quiet neutral frame, not red. A tap on empty space hides it; a tap on a chart shows it. */
.grid:not([data-layout="1"]) .pane.active { border-color: color-mix(in srgb, var(--text) 38%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 38%, transparent); }
body.no-mark .grid:not([data-layout="1"]) .pane.active { border-color: var(--border); box-shadow: none; }
/* One profile button in the header */
#acctBtn.in .ic { color: var(--text); }
/* Legend: short enough to fit, no scrolling */
.p-legend { gap: 9px; } .p-legend > b:first-child { margin-left: 0; color: var(--text); font-weight: 600; } .p-legend span:nth-child(-n+3) { display: inline; }

/* ============================ v3.5 — the app's own dropdowns and colour pickers ============================ */
select.cx, input[type=color].cx { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; padding: 0 !important; border: 0 !important; }
label:has(> .csel), label:has(> .ccol) { position: relative; }
.csel, .ccol { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 12px; border-radius: 11px; background: var(--panel-3); color: var(--text); font: 600 12.5px var(--body, inherit); text-align: left; transition: background .15s, transform .12s var(--ease); }
.csel span, .ccol span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ccol span { font-family: var(--mono); font-weight: 500; }
.csel .ic, .ccol .ic { width: 15px; height: 15px; color: var(--muted); flex: none; transition: transform .18s var(--ease); } .csel.open .ic, .ccol.open .ic { transform: rotate(180deg); }
.csel:active, .ccol:active { transform: scale(.985); } .csel.open, .ccol.open { background: var(--brand-soft); }
.ccol i { width: 20px; height: 20px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35); }
.cpop { position: fixed; z-index: 200; max-height: min(320px, 60vh); overflow-y: auto; scrollbar-width: none; padding: 6px; border-radius: 14px; background: var(--panel-2); box-shadow: var(--shadow); animation: rise .16s var(--ease); display: flex; flex-direction: column; gap: 2px; }
.cpop::-webkit-scrollbar { display: none; }
.cpop > button { min-height: 38px; padding: 0 12px; border-radius: 9px; text-align: left; font-weight: 600; font-size: 12.5px; color: var(--text); white-space: nowrap; } .cpop > button:hover { background: var(--panel-3); }
.cpop > button.on { background: var(--brand-soft); color: var(--brand); }
.cgrid { display: grid; grid-template-columns: repeat(6, 34px); gap: 8px; padding: 6px; }
.cgrid button { width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35); transition: transform .12s var(--ease); } .cgrid button:active { transform: scale(.9); }
.cgrid button.on { box-shadow: 0 0 0 2px var(--panel-2), 0 0 0 4px var(--text); }
/* Number fields: no device spinner arrows */
input[type=number] { -moz-appearance: textfield; appearance: textfield; } input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Text fields and buttons: no device focus ring or tap flash, the app's own instead */
* { -webkit-tap-highlight-color: transparent; } input, textarea, button, select { outline: none; } input:focus-visible, textarea:focus-visible { box-shadow: inset 0 0 0 1.5px var(--brand-line); }
textarea { resize: none; }
.themes button, .themes button.on { border: 0; outline: 0; }


/* v3.6: Space Grotesk has no 800 weight; headings and the wordmark use 700 so the browser never fakes a bolder one */
h1, h2, h3, .logo-tx, .sp-word { font-synthesis: none; } .logo-tx, .sp-word span { font-weight: 700; }

/* ============================ v4.0 — new features (js/plus.js) ============================ */
.x-d.dot, #alBtn.dot { position: relative; } #alBtn.dot::after { content: ''; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
@media (max-width: 759px) { #top .x-d { display: none; } }
[data-undo].dim, [data-redo].dim { opacity: .35; }
/* list rows used by alerts, watchlists and compare */
.al { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--panel-3); margin: 0 0 6px; border: 0; }
.al > span:not(.si) { flex: 1; min-width: 0; display: flex; flex-direction: column; } .al b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .al small { color: var(--muted); font-size: 11px; }
.al > button:not(.btn) { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); flex: none; } .al > button:not(.btn):hover { background: var(--panel-2); color: var(--text); }
.al > .btn { min-height: 30px; padding: 0 10px; font-size: 11.5px; flex: none; } .al.cur { background: var(--brand-soft); } .al.hit small { color: var(--brand); }
.al .ic { width: 16px; height: 16px; } .sheet-b .row2 { display: flex; gap: 8px; margin: 8px 0; } .sheet-b .row2 > .inp { flex: 1; min-width: 0; }
/* watchlist chooser */
.wl-lists { display: flex; gap: 6px; align-items: center; padding: 2px 0 8px; } .wl-lists .csel { flex: 1; } .wl-lists .ib { flex: none; background: var(--panel-3); border-radius: 11px; width: 40px; height: 40px; }
/* drawing settings */
.xsw { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; } .xsw button { width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(128,128,128,.35); } .xsw button.on { box-shadow: 0 0 0 2px var(--panel-2), 0 0 0 4px var(--text); }
#dW, #dS { margin-bottom: 8px; } #dW button { min-width: 56px; } .p-sel [data-set] .ic { width: 16px; height: 16px; }
/* bar replay */
.rp-bar { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 13px; background: var(--panel-2); box-shadow: var(--shadow); white-space: nowrap; }
.rp-bar button { min-width: 36px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--text); font: 600 12px var(--mono); padding: 0 6px; } .rp-bar button:hover { background: var(--panel-3); } .rp-bar .ic { width: 17px; height: 17px; }
.rp-bar span { font: 500 11px var(--mono); color: var(--muted); padding: 0 8px; } .pane.rp .p-cd { display: none !important; } .pane.rp-pick .lc { cursor: crosshair; }
@media (max-width: 759px) { .rp-bar span { display: none; } }
/* market closed */
.p-legend .closed { color: var(--muted); background: var(--panel-3); border-radius: 6px; padding: 1px 7px; font: 600 10px var(--ui); letter-spacing: .02em; }
/* AI follow-up */
#askBox { display: flex; flex-direction: column; gap: 8px; } #askBox .row2 { display: flex; gap: 8px; } #askBox .row2 > .inp { flex: 1; min-width: 0; } #askBox .btn .ic { width: 15px; height: 15px; }
.qa { padding: 10px 12px; border-radius: 12px; background: var(--panel-3); } .qa b { font-size: 12.5px; } .qa p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); white-space: pre-line; } #askOut { display: flex; flex-direction: column; gap: 8px; }
/* legal links */
.legal { display: flex; justify-content: center; gap: 18px; margin: 14px 0 4px; } .legal a { color: var(--muted); font-size: 11.5px; text-decoration: none; } .legal a:hover { color: var(--text); }
#tplRow { margin-top: 8px; } #tplRow .chip .ic { width: 13px; height: 13px; } #tplRow > button.chip { color: var(--brand); gap: 5px; }.legal a { padding: 8px 8px; min-width: 44px; min-height: 30px; display: inline-grid; place-items: center; }
