/* New ("tape") layout for PA Empire. Generated from the approved concept
   (concept/concept.css) by scoping every rule to the new layout's own
   containers, so Classic pages rendered inside the new shell are untouched.
   Performance rules: no backdrop-filter, no looping animation, static
   gradients, one SVG per chart, lazy images. */
body.tp {
  --bg: #0b1628;
  --surface: #111f35;
  --surface-2: #162841;
  --surface-3: #1c3050;
  --hair: rgba(255, 255, 255, 0.07);
  --hair-2: rgba(255, 255, 255, 0.12);
  --ink: #eef3f8;
  --dim: #8391a3;
  --faint: #4f5c6e;
  --up: #08d48c;
  --down: #ff405e;
  --cyan: #08bcd4;
  --gold: #ff9f1c;
  --cream: #fffcbc;
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --serif: "Iowan Old Style", "Charter", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --mono: "Cascadia Code", "SF Mono", ui-monospace, Consolas, monospace;
  --r: 22px;
  color-scheme: dark;
}
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet), body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) * { box-sizing: border-box; }
body.tp {
  margin: 0; min-height: 100dvh; color: var(--ink); font-family: var(--sans); font-size: 15px !important; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 620px at -8% -18%, rgba(var(--cream-rgb), 0.07), transparent 62%),
    radial-gradient(900px 520px at 108% -10%, rgba(var(--cyan-rgb), 0.06), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}
body.tp-locked { overflow: hidden; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) button:disabled { opacity: 0.35; cursor: default; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) a { color: inherit; text-decoration: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .up { color: var(--up); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .down { color: var(--down); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .cyan { color: var(--cyan); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .dim { color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .small { font-size: 12px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) :focus-visible { outline: 2px solid rgba(var(--up-rgb), 0.7); outline-offset: 2px; border-radius: 8px; }
body.tp .tp-wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .card { border-radius: var(--r); background: linear-gradient(180deg, rgba(var(--hl-rgb), 0.035), rgba(var(--hl-rgb), 0.008)), var(--surface); border: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-icon-btn { width: 36px; height: 36px; border-radius: 11px; display: inline-grid; place-items: center; color: var(--dim); background: rgba(var(--hl-rgb), 0.04); border: 1px solid var(--hair); transition: color .15s, border-color .15s; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-icon-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--hair-2); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .link { font-size: 12.5px !important; font-weight: 650; color: var(--dim); transition: color .15s; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .link:hover { color: var(--ink); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-bar { display: flex; align-items: center; gap: 14px; padding: calc(18px + env(safe-area-inset-top)) 0 10px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .mark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px !important; letter-spacing: 0.16em !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .mark img { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--hair-2); object-fit: cover; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .mark b { color: var(--cream); font-weight: 800; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .top-spacer { flex: 1; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .scope { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .scope select,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .pill-select {
  appearance: none; font: inherit; font-size: 13px !important; color: var(--ink); background: var(--surface); border: 1px solid var(--hair-2);
  border-radius: 99px; padding: 7px 30px 7px 14px; font-weight: 600; max-width: 220px;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) kbd { font-weight: 600; font-size: 11px !important; font-family: var(--mono); color: var(--dim); border: 1px solid var(--hair-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding: 40px 0 26px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .eyebrow { font-size: 11px !important; font-weight: 700; letter-spacing: 0.16em !important; text-transform: uppercase; color: var(--dim); display: flex; gap: 10px; align-items: center; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); flex: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .eyebrow i.red { background: var(--down); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .eyebrow i.spark { background: var(--cyan); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .headline { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.3vw, 46px) !important; line-height: 1.16; letter-spacing: -0.015em !important; margin: 14px 0 0; max-width: 23ch; text-wrap: balance; color: var(--ink-soft); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .headline em { font-style: normal; font-family: var(--sans); font-weight: 700; letter-spacing: -0.03em !important; color: var(--ink); font-size: 0.86em !important; padding: 0 0.12em; border-radius: 0.2em; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .headline em.up { color: var(--up); background: rgba(var(--up-rgb), 0.09); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .headline em.down { color: var(--down); background: rgba(var(--down-rgb), 0.09); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .headline em.cream { color: var(--cream); background: rgba(var(--cream-rgb), 0.07); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .headline em.cyan { color: var(--cyan); background: rgba(var(--cyan-rgb), 0.09); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .netblock { text-align: right; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .netblock .label { font-size: 11px !important; font-weight: 700; letter-spacing: 0.16em !important; color: var(--dim); text-transform: uppercase; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .net { font-size: clamp(44px, 6vw, 84px) !important; font-weight: 800; letter-spacing: -0.05em !important; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .net.up { background: linear-gradient(180deg, #7dffcf, var(--up)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .net.down { background: linear-gradient(180deg, #ff9aa9, var(--down)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .net-sub { margin-top: 10px; font-size: 13px !important; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .net-sub b { font-weight: 650; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 34px 0 18px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px) !important; letter-spacing: -0.02em !important; margin: 8px 0 4px; line-height: 1.05; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .page-sub { margin: 0; color: var(--dim); font-size: 14px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .page-sub b { color: var(--ink); font-weight: 650; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tape-card { padding: 18px 20px 12px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tape-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tape-head h2 { margin: 0; font-size: 11px !important; font-weight: 700; letter-spacing: 0.16em !important; text-transform: uppercase; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .legend { display: flex; gap: 14px; font-size: 12px !important; color: var(--faint); align-items: center; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .legend .l-line { width: 14px; height: 2px; background: var(--cream); vertical-align: 3px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .legend .l-cmp { width: 14px; height: 0; border-top: 2px dashed var(--cyan); vertical-align: 3px; border-radius: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .legend .l-dd { background: rgba(var(--down-rgb), 0.35); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .seg { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--hair); border-radius: 99px; background: rgba(var(--hl-rgb), 0.025); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tape-head .seg[data-group="tapeMode"] { margin-left: auto; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .seg button { padding: 6px 13px; border-radius: 99px; font-size: 12.5px !important; font-weight: 650; color: var(--dim); transition: background-color .15s, color .15s; display: inline-flex; align-items: center; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .seg button:hover { color: var(--ink); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .seg button.on { background: var(--ink); color: var(--on-ink); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .seg.small button { padding: 5px 11px; font-size: 12px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .seg.icons button { padding: 5px 9px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .seg.icons svg { width: 16px; height: 16px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf { position: relative; height: 300px; margin: 0 -4px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf svg { display: block; width: 100%; height: 100%; overflow: visible; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .zero { stroke: rgba(var(--hl-rgb), 0.14); stroke-dasharray: 3 5; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .grid { stroke: var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .eq-line { fill: none; stroke: var(--cream); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .cmp-line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: round; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .dd { fill: rgba(var(--down-rgb), 0.13); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .b.bu { fill: var(--up); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .b.bd { fill: var(--down); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .b.out { opacity: 0.22; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .dots { stroke: rgba(var(--hl-rgb), 0.16); stroke-linecap: round; fill: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .rng { fill: rgba(var(--hl-rgb), 0.022); stroke: rgba(var(--hl-rgb), 0.08); stroke-dasharray: 3 4; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .tick { stroke: var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .gapline { stroke: rgba(var(--hl-rgb), 0.07); stroke-dasharray: 2 4; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .axis { fill: var(--faint); font-weight: 600; font-size: 10.5px !important; font-family: var(--sans); letter-spacing: 0.12em !important; text-transform: uppercase; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .peak { fill: var(--cream); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .peak-l { fill: var(--dim); font-weight: 600; font-size: 11px !important; font-family: var(--sans); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .end.up { fill: var(--up); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .end.down { fill: var(--down); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .end { fill: var(--cream); stroke: var(--bg); stroke-width: 2; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .endline { stroke: rgba(var(--hl-rgb), 0.18); stroke-dasharray: 2 3; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .echip { fill: var(--surface-3); stroke: var(--hair-2); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .echip.up { fill: rgba(var(--up-rgb), 0.16); stroke: rgba(var(--up-rgb), 0.4); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .echip.down { fill: rgba(var(--down-rgb), 0.16); stroke: rgba(var(--down-rgb), 0.4); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .echip.cmp { fill: rgba(var(--cyan-rgb), 0.14); stroke: rgba(var(--cyan-rgb), 0.45); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .echip-t { fill: var(--ink); font-weight: 700; font-size: 12px !important; font-family: var(--sans); font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .echip-t.cmp { fill: var(--cyan); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .cross { stroke: rgba(var(--hl-rgb), 0.28); stroke-dasharray: 2 3; pointer-events: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .cross-dot { fill: var(--bg); stroke: var(--cream); stroke-width: 2; pointer-events: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf .chart-empty { fill: var(--faint); font-family: var(--sans); font-size: 13px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tip { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 3; min-width: 160px; background: var(--surface-3); border: 1px solid var(--hair-2); border-radius: 12px; padding: 9px 11px; font-size: 12.5px !important; box-shadow: 0 12px 30px rgba(var(--shade-rgb), 0.45); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tip b { display: block; font-size: 16px !important; font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tip small { color: var(--dim); display: block; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tip-row { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--hair); margin-top: 6px; padding-top: 6px; color: var(--dim); font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tip-row + .tip-row { margin-top: 0; border-top: 0; padding-top: 2px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tip-row span:last-child { color: var(--ink); font-weight: 650; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .mini-perf { padding: 12px 14px 6px; margin-bottom: 16px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .compact-perf { height: 120px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 26px 0 8px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger > div { padding: 16px 18px; border-left: 1px solid var(--hair); min-width: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger > div:first-child { border-left: 0; padding-left: 2px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger span { display: block; font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger b { display: block; font-size: 23px !important; font-weight: 750; letter-spacing: -0.03em !important; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger b span { display: inline; font-size: inherit !important; letter-spacing: inherit !important; text-transform: none; font-weight: inherit; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger b .slash { color: var(--faint); font-weight: 400; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger small { display: block; color: var(--faint); font-size: 12px !important; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .meter { height: 3px; border-radius: 3px; background: rgba(var(--hl-rgb), 0.07); margin-top: 8px; overflow: hidden; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .meter i { display: block; height: 100%; background: var(--up); border-radius: 3px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .section-title { display: flex; align-items: baseline; gap: 12px; margin: 38px 0 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .section-title h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 25px !important; letter-spacing: -0.01em !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .section-title p { margin: 0; color: var(--faint); font-size: 13px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .section-title .link { margin-left: auto; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signal { position: relative; overflow: hidden; border-radius: 18px; padding: 16px 16px 18px; min-height: 142px; text-align: left; background: var(--surface); border: 1px solid var(--hair); display: flex; flex-direction: column; transition: border-color .15s; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signal:hover { border-color: var(--hair-2); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signal::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px 140px at 0% 0%, var(--tint, rgba(var(--up-rgb), 0.12)), transparent 70%); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signal .kind { position: relative; display: flex; align-items: center; gap: 8px; font-size: 11px !important; font-weight: 700; letter-spacing: 0.12em !important; text-transform: uppercase; color: var(--tone, var(--up)); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signal .kind svg { width: 16px; height: 16px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signal .h3 { position: relative; margin-top: auto; padding-top: 16px; font-size: 18px !important; font-weight: 700; letter-spacing: -0.02em !important; line-height: 1.25; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signal .p { position: relative; margin-top: 6px; color: var(--dim); font-size: 13px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signal.t-down { --tone: var(--down); --tint: rgba(var(--down-rgb), 0.13); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signal.t-cyan { --tone: var(--cyan); --tint: rgba(var(--cyan-rgb), 0.13); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signal.t-gold { --tone: var(--gold); --tint: rgba(var(--gold-rgb), 0.12); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .lower { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .pane { border-radius: var(--r); background: var(--surface); border: 1px solid var(--hair); padding: 8px 18px 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .pane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 6px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .pane-head h3 { margin: 0; font-size: 11px !important; font-weight: 700; letter-spacing: 0.16em !important; text-transform: uppercase; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .day { padding: 8px 0 6px; border-top: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .day:first-child { border-top: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .day-h { display: flex; width: 100%; justify-content: space-between; align-items: baseline; font-size: 12px !important; font-weight: 700; color: var(--dim); letter-spacing: 0.06em !important; text-transform: uppercase; padding: 6px 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .day-h:hover span { color: var(--ink); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .day-h b { font-size: 13px !important; letter-spacing: 0 !important; font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .trade { display: grid; grid-template-columns: 30px 64px minmax(0, 1fr) 92px 76px 84px; align-items: center; gap: 12px; padding: 8px 8px; margin: 0 -8px; border-radius: 12px; transition: background-color .12s; cursor: pointer; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .trade:hover { background: rgba(var(--hl-rgb), 0.035); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .dir { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--hl-rgb), 0.05); color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .dir.pos { color: var(--up); background: rgba(var(--up-rgb), 0.1); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .dir.neg { color: var(--down); background: rgba(var(--down-rgb), 0.1); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .dir svg { width: 15px; height: 15px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .sym { font-weight: 750; font-size: 14px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .sym small { display: block; font-weight: 500; color: var(--faint); font-size: 11.5px !important; font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .what { min-width: 0; font-size: 13px !important; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .what b { color: var(--ink); font-weight: 600; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .rrw { display: block; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .rr { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: rgba(var(--hl-rgb), 0.06); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .rr .sl { background: rgba(var(--down-rgb), 0.75); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .rr .tp { background: rgba(var(--up-rgb), 0.75); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .rr-l { display: block; font-size: 11px !important; color: var(--faint); margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .pnl { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .thumb { position: relative; display: block; width: 76px; height: 46px; border-radius: 9px; overflow: hidden; background: var(--surface-3) linear-gradient(110deg, transparent 30%, rgba(var(--hl-rgb), 0.04) 50%, transparent 70%); border: 1px solid var(--hair); cursor: zoom-in; transition: border-color .15s; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .thumb:hover { border-color: rgba(var(--cream-rgb), 0.4); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .thumb.is-empty { visibility: hidden; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .thumb.no-img { background: var(--surface-2); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .thumb em { position: absolute; right: 4px; bottom: 3px; z-index: 1; font-style: normal; font-size: 10px !important; font-weight: 800; background: rgba(var(--bg-rgb), 0.85); padding: 0 5px; border-radius: 5px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .heat-head,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .heat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 70px; gap: 6px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .heat-head span { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.12em !important; color: var(--faint); text-transform: uppercase; padding: 4px 2px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .heat-row { margin-top: 6px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .cell { aspect-ratio: 1.25; border-radius: 11px; padding: 7px 8px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(var(--hl-rgb), 0.03); border: 1px solid transparent; font-size: 11px !important; color: rgba(var(--ink-rgb), 0.7); text-align: left; min-width: 0; transition: border-color .12s; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .cell:hover { border-color: var(--hair-2); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .cell.is-blank { background: transparent; border: 1px dashed rgba(var(--hl-rgb), 0.05); cursor: default; color: var(--faint); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .cell b { font-size: 12px !important; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .cell.today { border-color: var(--cyan); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .wk { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; font-size: 12px !important; font-weight: 750; font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .wk small { font-size: 10.5px !important; color: var(--faint); font-weight: 600; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .weekdays { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .wd { display: grid; grid-template-columns: 34px 1fr 1fr 78px; align-items: center; font-size: 12px !important; padding: 4px 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .wd span { color: var(--dim); font-weight: 600; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .wd .neg,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .wd .pos { height: 8px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .wd .neg { display: flex; justify-content: flex-end; border-right: 1px solid var(--hair-2); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .wd .neg i { background: var(--down); border-radius: 4px 0 0 4px; height: 100%; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .wd .pos i { display: block; background: var(--up); border-radius: 0 4px 4px 0; height: 100%; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .wd b { text-align: right; font-variant-numeric: tabular-nums; }
body.tp .tp-bigcal { position: fixed; inset: 0; z-index: 40; background: rgba(var(--scrim-rgb), 0.78); overflow-y: auto; padding: 24px; }
body.tp .tp-bigcal-box { max-width: 1400px; margin: 0 auto; background: var(--surface); border: 1px solid var(--hair-2); border-radius: 28px; padding: 24px 26px 26px; box-shadow: 0 40px 100px rgba(var(--shade-rgb), 0.6); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-head h2 { font-family: var(--serif); font-weight: 400; font-size: 40px !important; margin: 6px 0 0; line-height: 1; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-sum { margin-left: auto; text-align: right; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-sum b { display: block; font-size: 30px !important; font-weight: 800; letter-spacing: -0.04em !important; font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-sum small { color: var(--dim); font-size: 13px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-nav { display: flex; gap: 8px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-grid { display: grid; gap: 10px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 130px; gap: 10px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-labels span { font-size: 11px !important; font-weight: 700; letter-spacing: 0.14em !important; color: var(--faint); text-transform: uppercase; padding: 0 4px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-cell { position: relative; overflow: hidden; min-height: 150px; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; text-align: left; background: rgba(var(--hl-rgb), 0.03); border: 1px solid var(--hair); transition: border-color .15s; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-cell:hover { border-color: rgba(var(--cream-rgb), 0.35); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-cell.out { background: transparent; border: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-cell.is-blank { border-style: dashed; background: transparent; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-cell.g { border-color: rgba(var(--up-rgb), 0.35); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-cell.r { border-color: rgba(var(--down-rgb), 0.35); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-cell.today { box-shadow: inset 0 0 0 1px var(--cyan); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-d,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-v,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-n { position: relative; z-index: 1; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-d { position: absolute; top: 10px; left: 12px; font-size: 13px !important; font-weight: 750; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-v { font-size: 20px !important; font-weight: 800; letter-spacing: -0.03em !important; font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-n { display: flex; align-items: center; gap: 6px; font-size: 12px !important; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-n svg { width: 13px; height: 13px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-wk { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 2px; padding: 0 6px; border-left: 1px dashed var(--hair-2); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-wk span { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.14em !important; color: var(--faint); text-transform: uppercase; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-wk b { font-size: 18px !important; font-weight: 800; font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-wk small { color: var(--faint); font-size: 12px !important; }
body.tp .tp-sheet { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(520px, calc(100vw - 24px)); z-index: 45; background: var(--surface-2); border: 1px solid var(--hair-2); border-radius: 24px; padding: 22px; box-shadow: -20px 0 60px rgba(var(--shade-rgb), 0.5); overflow-y: auto; overscroll-behavior: contain; transform: translateX(0); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
body.tp .tp-sheet h2 { font-family: var(--serif); font-weight: 400; font-size: 28px !important; margin: 6px 0 2px; }
body.tp .tp-sheet .total { font-size: 40px !important; font-weight: 800; letter-spacing: -0.04em !important; font-variant-numeric: tabular-nums; margin: 8px 0 16px; }
body.tp .tp-sheet .trade { grid-template-columns: 30px 60px minmax(0, 1fr) 76px 80px; }
body.tp .tp-sheet .trade .rrw { display: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .shots { margin-bottom: 16px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .shot-main { position: relative; display: block; width: 100%; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .thumb.big { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .shot-main .zoom { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; font-size: 12px !important; font-weight: 700; background: rgba(var(--bg-rgb), 0.85); border: 1px solid var(--hair-2); border-radius: 99px; padding: 5px 10px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .shot-main .zoom svg { width: 14px; height: 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .shot-strip { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .shot-strip .thumb { width: 88px; height: 54px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .noshot { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px !important; padding: 14px; border: 1px dashed var(--hair-2); border-radius: 14px; margin-bottom: 16px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .facts > div { background: var(--surface-2); padding: 10px 12px; min-width: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .facts span { display: block; font-size: 10px !important; font-weight: 700; letter-spacing: 0.12em !important; text-transform: uppercase; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .facts b { display: block; font-size: 13.5px !important; font-weight: 650; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-chip { font-size: 12px !important; padding: 4px 10px; border-radius: 99px; background: rgba(var(--hl-rgb), 0.05); border: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .note { border-top: 1px solid var(--hair); padding: 12px 0 4px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .note h4 { margin: 0 0 4px; font-size: 11px !important; font-weight: 700; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--cream); opacity: 0.8; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .note p { margin: 0; white-space: pre-wrap; color: var(--ink-2); font-size: 14px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .qa { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 13.5px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .qa dt { color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .qa dd { margin: 0; font-weight: 600; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .rec { display: inline-block; margin-top: 12px; color: var(--cyan); font-weight: 650; font-size: 13.5px !important; }
body.tp .tp-viewer { position: fixed; inset: 0; z-index: 60; background: rgba(2, 4, 7, 0.95); display: grid; place-items: center; padding: 60px 70px 70px; }
body.tp .tp-viewer img { max-width: 100%; max-height: calc(100dvh - 140px); border-radius: 12px; box-shadow: 0 30px 80px rgba(var(--shade-rgb), 0.6); background: var(--surface); }
body.tp .tp-viewer-close { position: absolute; top: 16px; right: 16px; }
body.tp .tp-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; }
body.tp .tp-viewer-nav.prev { left: 16px; }
body.tp .tp-viewer-nav.next { right: 16px; }
body.tp .tp-viewer-cap { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 13px !important; color: var(--dim); white-space: nowrap; }
body.tp .tp-viewer-cap b { color: var(--ink); }
body.tp .tp-viewer-cap span { margin-left: 10px; color: var(--faint); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 40px; border-radius: 99px; background: var(--surface); border: 1px solid var(--hair-2); color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: inherit; font-size: 14px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .list-pane { padding-top: 4px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .empty-note { padding: 20px 0; margin: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .more { display: block; margin: 16px auto 0; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--hair-2); font-size: 13px !important; font-weight: 650; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .more:hover { color: var(--ink); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gcard { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--hair); cursor: pointer; transition: border-color .15s; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gcard:hover { border-color: var(--hair-2); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gimg { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-3); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .thumb.fill { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; cursor: pointer; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gpnl { position: absolute; left: 10px; top: 10px; font-size: 13px !important; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(var(--bg-rgb), 0.85); font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gzoom { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(var(--bg-rgb), 0.85); color: var(--ink); cursor: zoom-in; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gzoom svg { width: 15px; height: 15px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gmeta { display: block; padding: 10px 14px 12px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gmeta b { display: block; font-size: 14px !important; font-weight: 700; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gmeta small { color: var(--dim); font-size: 12px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .cmp-card { padding: 6px 20px 14px; margin-bottom: 18px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .table-scroll { overflow-x: auto; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .cmp { width: 100%; border-collapse: collapse; font-size: 13px !important; font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .cmp th { text-align: left; font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.1em !important; text-transform: uppercase; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .cmp td { padding: 10px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .cmp tr:last-child td { border-bottom: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gap { font-weight: 700; padding: 2px 8px; border-radius: 99px; font-size: 12px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gap.ok { color: var(--up); background: rgba(var(--up-rgb), 0.1); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gap.bad { color: var(--down); background: rgba(var(--down-rgb), 0.1); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .daystrip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .dayc { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 18px; text-align: left; background: var(--surface); border: 1px solid var(--hair); transition: border-color .15s; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .dayc:hover { border-color: var(--hair-2); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .dayc.on { border-color: rgba(var(--cream-rgb), 0.45); background: linear-gradient(180deg, rgba(var(--cream-rgb), 0.05), transparent), var(--surface); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .dname { font-size: 11px !important; font-weight: 700; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ddate { font-size: 30px !important; font-weight: 800; letter-spacing: -0.04em !important; line-height: 1; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .dnews { display: flex; gap: 4px; min-height: 16px; align-items: center; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .dnews small { color: var(--faint); font-size: 11.5px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .dnews i,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .news i { width: 9px; height: 9px; border-radius: 3px; background: var(--faint); flex: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .hi i,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) i.hi { background: var(--down); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .md i,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) i.md { background: var(--gold); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .lo i,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) i.lo { background: #e8d44d; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .vol { font-size: 11px !important; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(var(--hl-rgb), 0.05); color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .vol.v-low { color: var(--cyan); background: rgba(var(--cyan-rgb), 0.1); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .vol.v-medium { color: var(--gold); background: rgba(var(--gold-rgb), 0.1); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .vol.v-high,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .vol.v-extreme { color: var(--down); background: rgba(var(--down-rgb), 0.1); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .prep-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .plan-news { display: grid; gap: 8px; margin: 6px 0 12px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .news { display: flex; align-items: center; gap: 10px; font-size: 14px !important; font-weight: 600; padding: 9px 12px; border-radius: 12px; background: rgba(var(--hl-rgb), 0.03); border: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .plan-field { border-top: 1px solid var(--hair); padding: 12px 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .plan-field span { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .plan-field p { margin: 4px 0 0; font-family: var(--serif); font-size: 19px !important; line-height: 1.35; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .plan-field p.dim { font-family: var(--sans); font-size: 14px !important; color: var(--faint); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .concept-note { font-size: 12px !important; color: var(--faint); margin: 4px 0 6px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .record { display: grid; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .rec-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .rec-row:first-child { border-top: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .rec-row b { font-size: 14px !important; font-weight: 650; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .rec-row small { display: block; color: var(--faint); font-size: 12px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .rec-row > span { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .advice { display: flex; gap: 10px; align-items: flex-start; font-size: 13px !important; color: #ffd3da; background: rgba(var(--down-rgb), 0.08); border: 1px solid rgba(var(--down-rgb), 0.25); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .advice svg { color: var(--down); margin-top: 1px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ck-ans { display: flex; flex-wrap: wrap; gap: 6px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .coach-hero { align-items: center; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .scores { display: grid; grid-template-columns: repeat(3, 150px); gap: 12px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .score { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .score span { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .score b { display: block; font-size: 30px !important; font-weight: 800; letter-spacing: -0.04em !important; margin-top: 4px; font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .score b small { font-size: 13px !important; color: var(--faint); font-weight: 600; letter-spacing: 0 !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .score > small { display: block; color: var(--faint); font-size: 11.5px !important; margin-top: 6px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .sim-card { padding: 18px 20px 12px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .sim-out { margin-left: auto; font-size: 14px !important; font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .sim-out b { font-size: 18px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .factors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .factor { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .factor.leak { background: linear-gradient(180deg, rgba(var(--down-rgb), 0.05), transparent 60%), var(--surface); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .factor.edge { background: linear-gradient(180deg, rgba(var(--up-rgb), 0.05), transparent 60%), var(--surface); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .f-top { display: flex; justify-content: space-between; gap: 8px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .f-group { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .conf { font-size: 10.5px !important; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(var(--hl-rgb), 0.05); color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .conf.c-high { color: var(--cream); background: rgba(var(--cream-rgb), 0.08); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .conf.c-medium { color: var(--cyan); background: rgba(var(--cyan-rgb), 0.08); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .f-label { font-size: 17px !important; font-weight: 700; letter-spacing: -0.02em !important; line-height: 1.25; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .f-bar { height: 6px; border-radius: 6px; background: rgba(var(--hl-rgb), 0.05); overflow: hidden; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .f-bar i { display: block; height: 100%; border-radius: 6px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .leak .f-bar i { background: var(--down); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .edge .f-bar i { background: var(--up); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .f-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px !important; color: var(--ink); font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .f-stats small { color: var(--faint); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .f-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .f-foot > b { font-size: 18px !important; font-weight: 800; font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .f-foot > small { color: var(--faint); font-size: 12px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .f-foot .link { margin-left: auto; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .rule-toggle { flex-basis: 100%; display: flex; align-items: center; gap: 8px; font-size: 13px !important; font-weight: 600; cursor: pointer; padding: 6px 0 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .rule-toggle input { width: 16px; height: 16px; accent-color: var(--up); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .notes-pane { padding-top: 4px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .how { display: flex; gap: 10px; align-items: flex-start; margin: 30px 0 0; color: var(--faint); font-size: 13px !important; max-width: 80ch; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .how svg { color: var(--cyan); margin-top: 2px; }
body.tp .tp-dock { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 4px; padding: 6px; background: var(--surface-2); border: 1px solid var(--hair-2); border-radius: 24px; box-shadow: 0 18px 40px rgba(var(--shade-rgb), 0.55), inset 0 1px 0 rgba(var(--hl-rgb), 0.05); }
body.tp .tp-dock button { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 18px; color: var(--dim); font-size: 13px !important; font-weight: 650; transition: background-color .15s, color .15s; }
body.tp .tp-dock button:hover { color: var(--ink); }
body.tp .tp-dock button.on { color: var(--ink); background: rgba(var(--hl-rgb), 0.07); }
body.tp .tp-dock button.on svg { color: var(--up); }
body.tp .tp-dock .add { width: 52px; height: 52px; padding: 0; justify-content: center; margin: -14px 6px 0; border-radius: 18px; color: #03140e; background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)); box-shadow: 0 10px 24px rgba(var(--up-rgb), 0.35), inset 0 1px 0 rgba(var(--hl-rgb), 0.35); }
body.tp .tp-dock .add:hover { color: #03140e; }
body.tp .tp-dock .add svg { width: 22px; height: 22px; stroke-width: 2.4; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .askbar { margin-top: 26px; scroll-margin-top: 12px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-orb { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #03140e; background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-orb svg { width: 20px; height: 20px; stroke-width: 2.2; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-orb.small { width: 30px; height: 30px; border-radius: 10px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-orb.small svg { width: 16px; height: 16px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-actions button {
  font-size: 13px !important; font-weight: 600; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--hair-2);
  background: rgba(var(--hl-rgb), 0.03); color: var(--dim); transition: border-color .15s, background-color .15s, color .15s;
}
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-actions button:hover { color: var(--ink); border-color: rgba(var(--up-rgb), 0.45); background: rgba(var(--up-rgb), 0.07); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer {
  margin-top: 16px; padding: 16px 20px 18px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(var(--up-rgb), 0.045), transparent 140px), var(--surface);
  border: 1px solid rgba(var(--up-rgb), 0.22);
}
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); margin-bottom: 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-q { flex: 1; min-width: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-q b { display: block; font-size: 15px !important; font-weight: 700; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-q small { color: var(--faint); font-size: 12px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-body.with-chart { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-text { margin: 0 0 14px; font-size: 17px !important; line-height: 1.55; color: var(--ink-soft); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-text b { color: var(--ink); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-text b.up { color: var(--up); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-text b.down { color: var(--down); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-note { font-size: 13px !important; color: var(--faint); border-left: 2px solid var(--hair-2); padding-left: 10px; margin: -4px 0 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--hair); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-stats > div { padding: 10px 12px; border-left: 1px solid var(--hair); min-width: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-stats > div:first-child { border-left: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-stats span { display: block; font-size: 10px !important; font-weight: 700; letter-spacing: 0.12em !important; text-transform: uppercase; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-stats b { display: block; font-size: 18px !important; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-chart { padding: 10px 10px 8px; border: 1px solid var(--hair); border-radius: 16px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-perf { height: 170px; margin: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-chart .legend { margin-top: 6px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-trades { margin-top: 14px; border-top: 1px solid var(--hair); padding-top: 4px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer .more { margin-top: 10px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-list { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: n; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--hair); counter-increment: n; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-list li:first-child { border-top: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-list li > div { min-width: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-list li b { font-size: 14px !important; font-weight: 650; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-list li b::before { content: counter(n) ". "; color: var(--faint); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-list small { display: block; color: var(--faint); font-size: 12px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-list li > span { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px !important; margin-bottom: 14px; font-variant-numeric: tabular-nums; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-table th,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-table td { padding: 8px 12px; border-bottom: 1px solid var(--hair); text-align: right; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-table tr:last-child td { border-bottom: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-table th:first-child,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-table td:first-child { text-align: left; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-table th { font-size: 11.5px !important; font-weight: 700; color: var(--ink); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-table td.best { color: var(--ink); font-weight: 750; background: rgba(var(--up-rgb), 0.07); }

@media (max-width: 760px) {
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .askbar { margin-top: 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ask-orb { width: 36px; height: 36px; border-radius: 12px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer { padding: 14px 14px 16px; border-radius: 18px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-body.with-chart { grid-template-columns: minmax(0, 1fr); gap: 4px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-text { font-size: 16px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-stats > div:nth-child(3) { border-left: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-stats > div:nth-child(n + 3) { border-top: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .answer-perf { height: 140px; }
}

@media (max-width: 1100px) {
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .lower,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .prep-grid { grid-template-columns: minmax(0, 1fr); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger > div:nth-child(4) { border-left: 0; padding-left: 2px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger > div:nth-child(n + 4) { border-top: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .coach-hero { grid-template-columns: 1fr; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .scores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-row { grid-template-columns: repeat(5, minmax(0, 1fr)) 96px; }
}

@media (max-width: 760px) {
body.tp .tp-wrap { padding: 0 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-bar { gap: 10px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .scope label { display: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .scope select { max-width: 150px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .hero { grid-template-columns: 1fr; gap: 16px; padding: 22px 0 18px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .netblock { text-align: left; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .headline { font-size: 27px !important; max-width: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tape-card,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .sim-card { padding: 14px 10px 8px; border-radius: 18px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tape-head .legend { display: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tape-head .seg[data-group="tapeMode"] { margin-left: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .perf { height: 240px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger > div { padding: 12px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger > div:nth-child(odd) { border-left: 0; padding-left: 2px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger > div:nth-child(4) { border-left: 1px solid var(--hair); padding-left: 12px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger > div:nth-child(n + 3) { border-top: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .ledger b { font-size: 19px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signals,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .factors { grid-template-columns: minmax(0, 1fr); gap: 10px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .signal { min-height: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .section-title { flex-wrap: wrap; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .section-title p { flex-basis: 100%; order: 3; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .trade { grid-template-columns: 28px 52px minmax(0, 1fr) 60px 72px; gap: 8px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .trade .rrw { display: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .thumb { width: 60px; height: 38px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-head { flex-wrap: wrap; padding-top: 22px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .daystrip { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; margin: 0 -14px 18px; padding: 0 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .scores { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .score { padding: 10px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .score b { font-size: 22px !important; }
body.tp .tp-dock { gap: 0; padding: 5px; }
body.tp .tp-dock button { padding: 0 9px; flex-direction: column; gap: 2px; height: 50px; font-size: 10.5px !important; justify-content: center; }
body.tp .tp-dock .add { width: 50px; height: 50px; margin: -16px 3px 0; }
body.tp .tp-sheet { top: auto; left: 6px; right: 6px; bottom: 6px; width: auto; max-height: 86dvh; border-radius: 24px; padding: 18px 16px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.tp .tp-bigcal { padding: 0; }
body.tp .tp-bigcal-box { border-radius: 0; min-height: 100%; padding: 16px 12px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-head { flex-wrap: wrap; gap: 12px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-head h2 { font-size: 30px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-sum { order: 3; flex-basis: 100%; text-align: left; margin: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-nav { margin-left: auto; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-wk,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-labels span:last-child { display: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-cell { min-height: 92px; border-radius: 12px; padding: 7px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-v { font-size: 13px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-n { display: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-d { top: 6px; left: 8px; font-size: 11px !important; }
body.tp .tp-viewer { padding: 56px 8px 64px; }
body.tp .tp-viewer-nav { top: auto; bottom: 12px; transform: none; }
body.tp .tp-viewer-cap { bottom: 24px; font-size: 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet), body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) * { transition-duration: 0.01ms !important; }
}

body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .coach-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(var(--up-rgb), 0.12), rgba(var(--cyan-rgb), 0.06)), var(--surface);
  border: 1px solid rgba(var(--up-rgb), 0.35); color: var(--ink); transition: border-color .15s;
}
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .coach-btn:hover { border-color: rgba(var(--up-rgb), 0.7); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .coach-btn svg { width: 18px; height: 18px; color: var(--up); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .coach-btn span { font-size: 13.5px !important; font-weight: 700; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .coach-btn small { font-size: 12px !important; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .back { display: inline-flex; align-items: center; gap: 4px; margin-top: 22px; font-size: 13px !important; font-weight: 650; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .back:hover { color: var(--ink); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .back svg { width: 16px; height: 16px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin-bottom: 18px; overflow: hidden; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-main { padding: 8px 22px 18px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-side { padding: 8px 22px 12px; border-left: 1px solid var(--hair); background: rgba(var(--hl-rgb), 0.015); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px !important; font-weight: 650; color: var(--faint); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-status.live { color: var(--up); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-status.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-read { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 8px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-bias { font-size: 28px !important; font-weight: 800; letter-spacing: -0.03em !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-bias.up { color: var(--up); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-bias.down { color: var(--down); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-bias.cyan { color: var(--cyan); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-conf { display: inline-flex; align-items: center; gap: 10px; font-size: 13px !important; color: var(--dim); font-variant-numeric: tabular-nums; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-conf .meter { width: 110px; margin: 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-driver { margin: 0 0 10px; font-family: var(--serif); font-size: 19px !important; line-height: 1.4; color: var(--ink-soft); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-why { margin: 0 0 12px; padding-left: 18px; color: var(--dim); font-size: 13.5px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-why li { margin: 3px 0; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-note { font-size: 12.5px !important; color: var(--faint); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-hist { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--hair); font-size: 13px !important; color: var(--dim); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-hist svg { width: 15px; height: 15px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-hist b.up { color: var(--up); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-hist b.down { color: var(--down); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-hist b.cyan { color: var(--cyan); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-cell { cursor: pointer; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-cell.has-img { padding-right: calc(44% + 14px); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-thumb { position: absolute; top: 10px; right: 10px; bottom: 10px; width: 44%; height: auto; border-radius: 12px; cursor: zoom-in; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-thumb:hover { border-color: rgba(var(--cream-rgb), 0.55); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .thumb.crop-left img { width: 200%; max-width: none; object-fit: cover; object-position: left center; }
body.tp .tp-viewer { padding: 18px 64px 52px; }
body.tp .tp-viewer img { width: min(96vw, 1900px); height: calc(100dvh - 74px); max-width: 100%; max-height: none; object-fit: contain; background: transparent; box-shadow: none; border-radius: 0; }

@media (max-width: 760px) {
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .coach-btn { margin-left: 0; order: 2; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .coach-btn small { display: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund { grid-template-columns: minmax(0, 1fr); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-main,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-side { padding: 6px 14px 14px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-side { border-left: 0; border-top: 1px solid var(--hair); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .fund-driver { font-size: 17px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-cell.has-img { padding-right: 7px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .bc-thumb { display: none; }
body.tp .tp-viewer { padding: 52px 6px 64px; }
body.tp .tp-viewer img { width: 100%; height: calc(100dvh - 130px); }
}

body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch { position: relative; display: flex; align-items: center; height: 38px; border-radius: 99px; border: 1px solid var(--hair-2); background: var(--surface); transition: border-color .15s, background-color .15s; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch:hover { border-color: rgba(var(--up-rgb), 0.45); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--dim); flex: none; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch:hover .tsearch-btn,
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch.is-open .tsearch-btn { color: var(--up); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch-form { width: 0; overflow: hidden; transition: width .2s cubic-bezier(.2, .8, .2, 1); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch-form input { width: 100%; height: 36px; padding: 0 14px 0 0; background: none; border: 0; outline: none; color: var(--ink); font: inherit; font-size: 14px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch-form input::placeholder { color: var(--faint); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch.is-open { border-color: rgba(var(--up-rgb), 0.6); box-shadow: 0 0 0 4px rgba(var(--up-rgb), 0.1); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch.is-open .tsearch-form { width: 320px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch-pop {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: 380px; padding: 8px;
  background: var(--surface-2); border: 1px solid var(--hair-2); border-radius: 18px; box-shadow: 0 24px 60px rgba(var(--shade-rgb), 0.55);
}
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch.is-open .tsearch-pop { display: block; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-label { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--faint); padding: 8px 10px 4px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 11px; font-size: 14px !important; color: var(--dim); text-align: left; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-item:hover { background: rgba(var(--hl-rgb), 0.05); color: var(--ink); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-item svg { width: 16px; height: 16px; color: var(--faint); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-item:hover svg { color: var(--up); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-foot { margin-top: 6px; padding: 10px 10px 4px; border-top: 1px solid var(--hair); font-size: 11.5px !important; color: var(--faint); }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-foot kbd { font-size: 10px !important; }

@media (max-width: 760px) {
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch.is-open { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 50; height: 46px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch.is-open .tsearch-form { width: auto; flex: 1; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch.is-open .tsearch-form input { height: 44px; font-size: 16px !important; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tsearch-pop { left: 0; right: 0; width: auto; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .tp-foot { display: none; }
}

body.tp .tp-top { position: sticky; top: 0; z-index: 25; background: rgba(var(--bg-rgb), 0.96); border-bottom: 1px solid var(--hair); }
body.tp .tp-top .tp-bar { padding-bottom: 12px; }
body.tp :is(.tp-top, .tp-main, .tp-dock, .tp-bigcal, .tp-viewer, .tp-sheet) .askbar { scroll-margin-top: 76px; }

/* ------------------------------------------------ integration with the app */
/* The old stylesheets force the page background with !important. */
html body.tp {
  background:
    radial-gradient(1100px 620px at -8% -18%, rgba(var(--cream-rgb), 0.07), transparent 62%),
    radial-gradient(900px 520px at 108% -10%, rgba(var(--cyan-rgb), 0.06), transparent 60%),
    var(--bg) !important;
  background-repeat: no-repeat !important;
  color: var(--ink);
  font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

/* Layering: journal modals sit at z-index 20 and must stay on top of the
   dock, top bar and big calendar; the image viewer is above everything. */
body.tp .tp-top { z-index: 17; }
body.tp .tp-dock { z-index: 18; }
body.tp .tp-bigcal { z-index: 19; }
body.tp .tp-viewer { z-index: 60; }

body.tp .tp-bar .mark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px !important; letter-spacing: 0.16em !important; color: var(--ink); }
body.tp .tp-bar .mark b { color: var(--cream-hi); font-weight: 800; }
body.tp .tp-sync { font-size: 11.5px !important; color: var(--faint); white-space: nowrap; }

/* Old CSS styles every input/select with !important; take ours back. */
body.tp .tp-top .scope { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px !important; }
body.tp .tp-top .scope select {
  appearance: none !important; height: 36px !important; min-height: 0 !important; font-size: 13px !important; font-weight: 600 !important; color: var(--ink) !important;
  background-color: var(--surface) !important; border: 1px solid rgba(var(--hl-rgb), 0.12) !important; border-radius: 99px !important;
  padding: 0 30px 0 14px !important; box-shadow: none !important; max-width: 240px;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%) !important;
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52% !important; background-size: 5px 5px !important; background-repeat: no-repeat !important;
}
body.tp .tp-top .tsearch-form input {
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  height: 36px !important; min-height: 0 !important; padding: 0 14px 0 0 !important; color: var(--ink) !important;
}
body.tp .tp-main .rule-toggle input { appearance: auto !important; width: 16px !important; height: 16px !important; min-height: 0 !important; padding: 0 !important; background: initial !important; border: initial !important; box-shadow: none !important; }
body.tp .tp-top .tp-icon-btn.on { color: var(--up); border-color: rgba(var(--up-rgb), 0.4); }

/* Hide P&L and Share under the big number */
body.tp .tp-main .net-tools { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
body.tp .tp-main .pill-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 99px; font-size: 13px !important; font-weight: 650;
  color: var(--dim); background: rgba(var(--hl-rgb), 0.04); border: 1px solid rgba(var(--hl-rgb), 0.12); transition: color .15s, border-color .15s;
}
body.tp .tp-main .pill-btn:hover:not(:disabled) { color: var(--ink); border-color: rgba(var(--up-rgb), 0.45); }
body.tp .tp-main .pill-btn svg { width: 16px; height: 16px; }
body.tp .tp-main .cell.is-blank { background: transparent; border: 1px dashed rgba(var(--hl-rgb), 0.05); cursor: default; color: var(--faint); }

/* Classic pages shown inside the new shell until they get redesigned */
body.tp .tp-classic-wrap { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
body.tp .tp-classic.main { background: transparent !important; padding: 18px 0 0 !important; max-width: none !important; width: 100% !important; min-height: 0 !important; }
body.tp .tp-classic .page-head { margin-top: 6px; }

@media (max-width: 760px) {
  body.tp .tp-top .scope > span, body.tp .tp-sync { display: none; }
  body.tp .tp-top .scope select { max-width: 150px; }
  body.tp .tp-main .net-tools { justify-content: flex-start; }
  body.tp .tp-classic.main { padding-top: 12px !important; }
}

/* Balance label on the chart: a solid pill so it reads at a glance */
body.tp .tp-main .perf .echip.up { fill: var(--up); stroke: none; }
body.tp .tp-main .perf .echip.down { fill: var(--down); stroke: none; }
body.tp .tp-main .perf .echip.up + .chip-t, body.tp .tp-main .perf .echip.down + .chip-t { fill: #041710; font-weight: 800; }
body.tp .tp-main .perf .echip.down + .chip-t { fill: #fff; }
body.tp .tp-main .perf .end.up { fill: var(--up); }
body.tp .tp-main .perf .end.down { fill: var(--down); }

/* ------------------------------------------------ phase 2: trades + panels */
/* The panel lives in the journal's modal layer; the old .modal-backdrop
   rules center things, so take the backdrop over completely. */
body.tp #modal-root .modal-backdrop.tp-sheet-wrap {
  position: fixed; inset: 0; z-index: 20; display: block !important; padding: 0 !important;
  background: rgba(var(--scrim-rgb), 0.62) !important; overflow: hidden;
}
body.tp .tp-sheet { outline: none; animation: tpSheetIn .2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tpSheetIn { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
body.tp .tp-sheet .sheet-top { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; }
body.tp .tp-sheet .sheet-nav { display: flex; gap: 6px; margin-right: auto; }
body.tp .tp-sheet .sheet-spacer { margin-right: auto; }
body.tp .tp-sheet .prep-note .qa { margin-top: 6px; }
body.tp .tp-sheet .rec-link { display: flex; align-items: center; gap: 8px; margin: 6px 0; color: var(--cyan); font-weight: 650; font-size: 13.5px !important; word-break: break-all; }
body.tp .tp-sheet .rec-link svg { width: 16px; height: 16px; flex: none; }
body.tp .tp-sheet .legacy { color: var(--ink-2); }
body.tp .tp-sheet .legacy h3 { font-size: 11px !important; letter-spacing: 0.14em !important; text-transform: uppercase; color: rgba(var(--cream-rgb), 0.8); margin: 0 0 6px; }

body.tp :is(.tp-main, .tp-sheet) .pill-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 99px; font-size: 13px !important; font-weight: 650;
  color: var(--dim); background: rgba(var(--hl-rgb), 0.04); border: 1px solid rgba(var(--hl-rgb), 0.12); transition: color .15s, border-color .15s;
}
body.tp :is(.tp-main, .tp-sheet) .pill-btn:hover:not(:disabled) { color: var(--ink); border-color: rgba(var(--up-rgb), 0.45); }
body.tp :is(.tp-main, .tp-sheet) .pill-btn svg { width: 16px; height: 16px; }
body.tp :is(.tp-main, .tp-sheet) .pill-btn.primary { color: #03140e; border-color: transparent; background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)); }
body.tp :is(.tp-main, .tp-sheet) .pill-btn.primary:hover { color: #03140e; filter: brightness(1.05); }
body.tp :is(.tp-main, .tp-sheet) .pill-btn.danger { color: var(--down-soft); border-color: rgba(var(--down-rgb), 0.35); background: rgba(var(--down-rgb), 0.08); }
body.tp :is(.tp-main, .tp-sheet) .pill-btn.danger:hover:not(:disabled) { color: #fff; border-color: rgba(var(--down-rgb), 0.7); }

body.tp .tp-main .head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
body.tp .tp-main .tp-notice { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; font-size: 13px !important; color: var(--info-ink); background: rgba(var(--cyan-rgb), 0.08); border: 1px solid rgba(var(--cyan-rgb), 0.25); }
body.tp .tp-main .tp-notice.subtle { color: var(--dim); background: rgba(var(--hl-rgb), 0.03); border-color: rgba(var(--hl-rgb), 0.07); }

/* Selecting trades to delete */
body.tp :is(.tp-main, .tp-sheet) .trade.selecting { grid-template-columns: 22px 30px 64px minmax(0, 1fr) 92px 76px 84px; }
body.tp :is(.tp-main, .tp-sheet) .trade .row-check { appearance: auto !important; width: 18px !important; height: 18px !important; min-height: 0 !important; margin: 0; padding: 0 !important; accent-color: var(--down); background: initial !important; border: initial !important; box-shadow: none !important; }
body.tp :is(.tp-main, .tp-sheet) .trade.is-selected { background: rgba(var(--down-rgb), 0.08); }

/* Old CSS styles inputs/selects with !important */
body.tp .tp-main .toolbar .search input { background: none !important; border: 0 !important; box-shadow: none !important; height: 38px !important; min-height: 0 !important; padding: 0 !important; color: var(--ink) !important; font-size: 14px !important; }
body.tp .tp-main .pill-select {
  appearance: none !important; height: 38px !important; min-height: 0 !important; color: var(--ink) !important; background-color: var(--surface) !important;
  border: 1px solid rgba(var(--hl-rgb), 0.12) !important; border-radius: 99px !important; padding: 0 30px 0 14px !important; box-shadow: none !important; font-size: 13px !important; font-weight: 600 !important;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%) !important;
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52% !important; background-size: 5px 5px !important; background-repeat: no-repeat !important;
}

@media (max-width: 760px) {
  body.tp #modal-root .tp-sheet { animation-name: tpSheetUp; }
  body.tp :is(.tp-main, .tp-sheet) .trade.selecting { grid-template-columns: 22px 28px 52px minmax(0, 1fr) 72px; }
  body.tp .tp-main .head-actions { width: 100%; }
}
@keyframes tpSheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------ journal components in the new look */
/* The old stylesheets read these variables; pointing them at the new
   palette re-skins every remaining journal component (forms, dialogs,
   history windows) while its markup and behaviour stay the same. */
html body.tp {
  --app-font: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --display-font: var(--app-font);
  --text: var(--ink); --muted: var(--dim); --line: rgba(var(--hl-rgb), 0.08); --glass-border: rgba(var(--hl-rgb), 0.08); --glass-highlight: transparent;
  --panel: var(--surface); --panel-2: var(--surface-2); --panel-3: var(--surface-3); --panel-soft: var(--surface);
  --accent: var(--cyan); --cream: var(--ink); --positive: var(--up); --negative: var(--down); --warning: var(--warn);
  --pae-bg: var(--bg); --pae-surface: var(--surface); --pae-surface-raised: var(--surface-2); --pae-surface-soft: var(--field); --pae-sidebar: var(--bg);
  --pae-line: rgba(var(--hl-rgb), 0.09); --pae-line-soft: rgba(var(--hl-rgb), 0.06); --pae-text: var(--ink); --pae-muted: var(--dim); --pae-radius: 16px;
  --shadow: none;
}

body.tp :is(#modal-root, .tp-legacy) .modal,
body.tp :is(#modal-root, .tp-legacy) .panel {
  background: var(--surface-2) !important; border: 1px solid rgba(var(--hl-rgb), 0.12) !important; border-radius: 22px !important; box-shadow: 0 30px 80px rgba(var(--shade-rgb), 0.55) !important;
}
body.tp .tp-legacy .panel { background: var(--surface) !important; box-shadow: none !important; }
body.tp :is(#modal-root, .tp-legacy) :is(h2, h3) { font-family: var(--app-font) !important; color: var(--ink) !important; letter-spacing: -0.01em !important; }
body.tp #modal-root .modal-head h2 { font-family: "Iowan Old Style", Charter, Georgia, serif !important; font-weight: 400 !important; font-size: 28px !important; }
body.tp :is(#modal-root, .tp-legacy) .panel-head h3,
body.tp :is(#modal-root, .tp-legacy) label,
body.tp :is(#modal-root, .tp-legacy) .detail-grid span {
  font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: 0.12em !important; text-transform: uppercase; color: var(--dim) !important;
}
body.tp :is(#modal-root, .tp-legacy) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea, .tag-combo input) {
  background: var(--field) !important; border: 1px solid rgba(var(--hl-rgb), 0.12) !important; border-radius: 12px !important; color: var(--ink) !important;
  font-family: var(--app-font) !important; font-size: 14px !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important;
}
body.tp :is(#modal-root, .tp-legacy) :is(input, select, textarea):focus { border-color: rgba(var(--up-rgb), 0.6) !important; box-shadow: 0 0 0 3px rgba(var(--up-rgb), 0.12) !important; }
body.tp :is(#modal-root, .tp-legacy) textarea { font-family: "Cascadia Code", "SF Mono", ui-monospace, Consolas, monospace !important; font-size: 13.5px !important; line-height: 1.55 !important; }
body.tp :is(#modal-root, .tp-legacy) .button,
body.tp :is(#modal-root, .tp-legacy) .upload-button {
  border-radius: 99px !important; font-family: var(--app-font) !important; font-weight: 650 !important; font-size: 13px !important; letter-spacing: 0 !important; text-transform: none !important;
  background: rgba(var(--hl-rgb), 0.05) !important; border: 1px solid rgba(var(--hl-rgb), 0.12) !important; color: var(--ink) !important; box-shadow: none !important; min-height: 38px;
}
body.tp :is(#modal-root, .tp-legacy) .button.primary { background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)) !important; border-color: transparent !important; color: #03140e !important; }
body.tp :is(#modal-root, .tp-legacy) .button.danger { background: rgba(var(--down-rgb), 0.1) !important; border-color: rgba(var(--down-rgb), 0.4) !important; color: var(--down-soft) !important; }
body.tp :is(#modal-root, .tp-legacy) .icon-button { border-radius: 12px !important; background: rgba(var(--hl-rgb), 0.04) !important; border: 1px solid rgba(var(--hl-rgb), 0.08) !important; color: var(--dim) !important; box-shadow: none !important; }
body.tp :is(#modal-root, .tp-legacy) .segmented { background: rgba(var(--hl-rgb), 0.03) !important; border: 1px solid rgba(var(--hl-rgb), 0.08) !important; border-radius: 99px !important; padding: 3px !important; }
body.tp :is(#modal-root, .tp-legacy) .segmented button { border-radius: 99px !important; background: transparent !important; color: var(--dim) !important; font-family: var(--app-font) !important; font-weight: 650 !important; border: 0 !important; box-shadow: none !important; }
body.tp :is(#modal-root, .tp-legacy) .segmented button.is-active { background: var(--ink) !important; color: var(--on-ink) !important; }
body.tp :is(#modal-root, .tp-legacy) .combo-list { background: var(--surface-3) !important; border: 1px solid rgba(var(--hl-rgb), 0.12) !important; border-radius: 14px !important; box-shadow: 0 18px 40px rgba(var(--shade-rgb), 0.5) !important; }
body.tp #modal-root .modal-backdrop { background: rgba(var(--scrim-rgb), 0.62) !important; }
body.tp #modal-root .confirm { max-width: 460px; }

/* ------------------------------------------ Add / Edit trade as a side panel */
body.tp #modal-root .modal-backdrop.tp-form-wrap { display: block !important; padding: 0 !important; overflow: hidden; }
body.tp #modal-root .tp-form-wrap > .modal {
  position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(760px, calc(100vw - 24px)); max-width: none !important; max-height: none !important;
  margin: 0 !important; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 0 !important; animation: tpSheetIn .2s cubic-bezier(.2, .8, .2, 1) both;
}
body.tp #modal-root .tp-form-wrap .modal-head { border: 0 !important; padding: 0 0 6px !important; margin: 0 !important; }
body.tp #modal-root .tp-form-wrap #tradeForm { display: grid; gap: 14px; }
body.tp #modal-root .tp-form-wrap #tradeForm > :is(.form-grid, .fixed-tags, .stock-form-section, .stock-exit-block, .stock-preview-block, .recording-panel, .screenshot-panel, .notes-label, .tp-prep-card) {
  background: var(--surface); border: 1px solid rgba(var(--hl-rgb), 0.07); border-radius: 18px; padding: 34px 16px 16px; position: relative; margin: 0 !important;
}
body.tp #modal-root .tp-form-wrap #tradeForm > :is(.form-grid, .fixed-tags, .notes-label)::before {
  position: absolute; top: 12px; left: 16px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(var(--cream-rgb), 0.75);
}
body.tp #modal-root .tp-form-wrap #tradeForm > .form-grid::before { content: "Trade"; }
body.tp #modal-root .tp-form-wrap #tradeForm > .fixed-tags::before { content: "Context"; }
body.tp #modal-root .tp-form-wrap #tradeForm > .notes-label::before { content: "Notes"; }
body.tp #modal-root .tp-form-wrap .panel-head { padding: 0 !important; margin: -22px 0 10px !important; border: 0 !important; background: none !important; }
body.tp #modal-root .tp-form-wrap .panel-head h3 { color: rgba(var(--cream-rgb), 0.75) !important; }
body.tp #modal-root .tp-form-wrap .trade-mode-row { display: flex; align-items: center; gap: 12px; }
body.tp #modal-root .tp-form-wrap .pnl-preview {
  display: flex; align-items: baseline; justify-content: space-between; padding: 14px 18px; border-radius: 18px;
  background: linear-gradient(90deg, rgba(var(--up-rgb), 0.08), transparent), var(--surface); border: 1px solid rgba(var(--up-rgb), 0.25);
}
body.tp #modal-root .tp-form-wrap .pnl-preview span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em !important; color: var(--dim); }
body.tp #modal-root .tp-form-wrap .pnl-preview strong { font-size: 30px !important; font-weight: 800; letter-spacing: -0.03em !important; font-family: var(--app-font) !important; }
body.tp #modal-root .tp-form-wrap .paste-zone { border: 1px dashed rgba(var(--hl-rgb), 0.18) !important; border-radius: 14px !important; background: rgba(var(--hl-rgb), 0.02) !important; }
body.tp #modal-root .tp-form-wrap .modal-actions {
  position: sticky; bottom: 0; z-index: 2; margin: 6px -24px 0 !important; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)) !important;
  background: linear-gradient(180deg, rgba(var(--surface2-rgb), 0.6), var(--surface-2) 40%) !important; border-top: 1px solid rgba(var(--hl-rgb), 0.07) !important;
}
/* Prep that day, attached to the trade */
body.tp #modal-root .tp-prep-card h4 { position: absolute; top: 12px; left: 16px; margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
body.tp #modal-root .tp-prep-card .tp-prep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 13.5px; color: var(--ink-2); }
body.tp #modal-root .tp-prep-card .tp-prep-grid b { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
body.tp #modal-root .tp-prep-card .tp-prep-grid .wide { grid-column: 1 / -1; }
body.tp #modal-root .tp-prep-card .tp-prep-empty { color: var(--faint); font-size: 13px; margin: 0; }
body.tp #modal-root .tp-prep-card label.tp-prep-toggle { display: flex; align-items: center; gap: 8px; margin-top: 12px; text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; color: var(--ink-2) !important; font-weight: 600 !important; }
body.tp #modal-root .tp-prep-card label.tp-prep-toggle input { appearance: auto !important; width: 16px !important; height: 16px !important; min-height: 0 !important; padding: 0 !important; accent-color: var(--up); background: initial !important; border: initial !important; }

@media (max-width: 760px) {
  body.tp #modal-root .tp-form-wrap > .modal { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 94dvh; border-radius: 22px 22px 0 0 !important; padding: 18px 14px 0 !important; animation-name: tpSheetUp; }
  body.tp #modal-root .tp-form-wrap .modal-actions { margin: 6px -14px 0 !important; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)) !important; }
  body.tp #modal-root .tp-prep-card .tp-prep-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Label capitals must not leak into values shown inside labels */
body.tp :is(#modal-root, .tp-legacy) label :is(.news-selected, .pending-files, .tag-combo, .combo-list, .news-picker) * { text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; font-weight: 600 !important; color: var(--ink) !important; }

/* Trade form fields: two per row in the side panel, one on phones */
body.tp #modal-root .tp-form-wrap #tradeForm > :is(.form-grid, .fixed-tags),
body.tp #modal-root .tp-form-wrap .stock-form-grid,
body.tp #modal-root .tp-form-wrap .stock-exit-block .form-grid {
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px 14px !important;
}
body.tp #modal-root .tp-form-wrap :is(.span-wide, .stock-confluence-field, .narrative-result-label) { grid-column: 1 / -1 !important; }
body.tp #modal-root .tp-form-wrap #tradeForm label { display: grid !important; gap: 6px !important; margin: 0 !important; }
body.tp #modal-root .tp-form-wrap #tradeForm :is(input, select) { height: 42px !important; min-height: 0 !important; width: 100% !important; }
@media (max-width: 520px) {
  body.tp #modal-root .tp-form-wrap #tradeForm > :is(.form-grid, .fixed-tags),
  body.tp #modal-root .tp-form-wrap .stock-form-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ------------------------------------------------------------- phase 3: Prep */
body.tp .tp-main .fund-actions { display: inline-flex; align-items: center; gap: 10px; }
body.tp .tp-main .plan-field { display: grid; gap: 6px; border-top: 1px solid rgba(var(--hl-rgb), 0.07); padding: 12px 0; }
body.tp .tp-main .plan-field > span { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--dim); }
body.tp .tp-main .plan-field textarea {
  width: 100%; resize: vertical; min-height: 78px; padding: 10px 12px !important; border-radius: 12px !important;
  background: var(--field) !important; border: 1px solid rgba(var(--hl-rgb), 0.1) !important; color: var(--ink) !important; box-shadow: none !important;
  font-family: "Iowan Old Style", Charter, Georgia, serif !important; font-size: 17px !important; line-height: 1.4 !important; letter-spacing: 0 !important;
}
body.tp .tp-main .plan-field textarea:focus { outline: none; border-color: rgba(var(--up-rgb), 0.55) !important; box-shadow: 0 0 0 3px rgba(var(--up-rgb), 0.1) !important; }
body.tp .tp-main .plan-vol { display: inline-flex; align-items: center; gap: 8px; }
body.tp .tp-main .plan-vol span { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--dim); }
body.tp .tp-main .plan-vol select {
  appearance: none !important; height: 32px !important; min-height: 0 !important; padding: 0 28px 0 12px !important; border-radius: 99px !important; font-size: 12.5px !important; font-weight: 700 !important;
  color: var(--ink) !important; background-color: var(--field) !important; border: 1px solid rgba(var(--hl-rgb), 0.12) !important; box-shadow: none !important;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%) !important;
  background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52% !important; background-size: 5px 5px !important; background-repeat: no-repeat !important;
}
body.tp .tp-main .plan-news .news small { margin-left: auto; color: var(--dim); font-size: 12px !important; font-weight: 600; }
body.tp .tp-main .day-reading {
  display: grid; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(var(--hl-rgb), 0.08);
  background: rgba(var(--hl-rgb), 0.025); transition: border-color .15s;
}
body.tp .tp-main .day-reading:hover { border-color: rgba(var(--cyan-rgb), 0.45); }
body.tp .tp-main .day-reading b { font-size: 18px !important; font-weight: 800; letter-spacing: -0.02em !important; }
body.tp .tp-main .day-reading b.up { color: var(--up); } body.tp .tp-main .day-reading b.down { color: var(--down); } body.tp .tp-main .day-reading b.cyan { color: var(--cyan); }
body.tp .tp-main .day-reading span { color: var(--ink-2); font-size: 13.5px !important; }
body.tp .tp-main .day-reading small { color: var(--faint); font-size: 12px !important; }

body.tp .tp-main .section-title.slim { margin: 22px 0 10px; }
body.tp .tp-main .section-title.slim h2 { font-size: 20px !important; }
body.tp .tp-main .readings { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: thin; }
body.tp .tp-main .reading {
  flex: 0 0 150px; display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 16px; background: var(--surface);
  border: 1px solid rgba(var(--hl-rgb), 0.07); transition: border-color .15s;
}
body.tp .tp-main .reading:hover { border-color: rgba(var(--hl-rgb), 0.2); }
body.tp .tp-main .reading .r-date { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.12em !important; text-transform: uppercase; color: var(--dim); }
body.tp .tp-main .reading b { font-size: 15px !important; font-weight: 800; }
body.tp .tp-main .reading.up b { color: var(--up); } body.tp .tp-main .reading.down b { color: var(--down); } body.tp .tp-main .reading.cyan b { color: var(--cyan); }
body.tp .tp-main .reading .r-conf { font-size: 12px !important; color: var(--faint); }

body.tp .tp-main .tp-fold { margin: 22px 0 0; border-radius: 22px; background: var(--surface); border: 1px solid rgba(var(--hl-rgb), 0.07); }
body.tp .tp-main .tp-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; padding: 16px 20px; }
body.tp .tp-main .tp-fold > summary::-webkit-details-marker { display: none; }
body.tp .tp-main .tp-fold > summary::before { content: "+"; color: var(--up); font-weight: 800; width: 12px; }
body.tp .tp-main .tp-fold[open] > summary::before { content: "−"; }
body.tp .tp-main .tp-fold > summary span { font-family: "Iowan Old Style", Charter, Georgia, serif; font-size: 20px !important; }
body.tp .tp-main .tp-fold > summary small { color: var(--faint); font-size: 13px !important; }
body.tp .tp-main .tp-fold > .tp-legacy { padding: 0 14px 14px; }

/* The journal's Q&A section and NQ panel inside the new page */
body.tp .tp-main .tp-legacy { color: var(--ink-2); }
body.tp .tp-main .tp-legacy .panel { margin-bottom: 14px; }
body.tp .tp-main .tp-legacy .panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
body.tp .tp-main .tp-legacy .panel-head h2 { font-size: 11px !important; font-weight: 700 !important; letter-spacing: 0.16em !important; text-transform: uppercase; color: var(--dim) !important; }
body.tp .tp-main .tp-legacy .trade-table { background: transparent !important; }
body.tp .tp-main .tp-legacy .trade-table th { font-size: 10.5px !important; letter-spacing: 0.1em !important; color: var(--faint) !important; }
body.tp .tp-main .tp-legacy .trade-table td { border-color: rgba(var(--hl-rgb), 0.07) !important; }
body.tp .tp-main .tp-legacy .qa-save-row .button.primary { min-width: 200px; }
@media (max-width: 760px) {
  body.tp .tp-main .readings { margin: 0 -14px 18px; padding: 0 14px 4px; }
  body.tp .tp-main .tp-fold > summary { flex-wrap: wrap; }
}

/* journal settings internals, new look */
body.tp .tp-main .tp-legacy :is(.settings-section, .sync-card, .restore-item, .saved-value-category, .stock-account-card, .security-row, .profile-field) {
  background: rgba(var(--hl-rgb), 0.025) !important; border: 1px solid rgba(var(--hl-rgb), 0.07) !important; border-radius: 14px !important; box-shadow: none !important;
}
body.tp .tp-main .tp-legacy :is(strong, b) { color: var(--ink); }
body.tp .tp-main .tp-legacy :is(small, .sync-note, .muted) { color: var(--dim) !important; }
body.tp .tp-main .tp-legacy .panel-head span { color: var(--faint) !important; font-size: 12px !important; }
body.tp .tp-main .tp-legacy .tag-pill,
body.tp .tp-main .tp-legacy .saved-value-chip { border-radius: 99px !important; background: rgba(var(--hl-rgb), 0.05) !important; border: 1px solid rgba(var(--hl-rgb), 0.1) !important; color: var(--ink) !important; }

/* Headline type-on: caret exists only while typing; chips fill in after */
body.tp .tp-main .headline[data-tp-retype] { cursor: pointer; }
body.tp .tp-main .headline em { transition: background-color .35s ease; }
body.tp .tp-main .headline.is-typing em { background-color: transparent !important; }
body.tp .tp-main .headline .type-caret {
  display: inline-block; width: 3px; height: 0.95em; margin-left: 3px; vertical-align: -0.1em; border-radius: 2px;
  background: var(--up); animation: tpCaret 0.9s steps(1) infinite;
}
@keyframes tpCaret { 50% { opacity: 0; } }

/* ------------------------------------------ new Add / Edit trade form (tf-) */
body.tp #modal-root .tf-modal .modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
body.tp #modal-root .tf-title h2 { margin: 6px 0 0 !important; font-size: 34px !important; }
body.tp #modal-root .tf-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
body.tp #modal-root .tf-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
body.tp #modal-root .tf-modal .trade-mode-row { display: flex; align-items: center; gap: 12px; }
body.tp #modal-root .tf-modal .trade-mode-row > span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }

/* hero: outcome + live P&L */
body.tp #modal-root .tf-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
body.tp #modal-root .tf-outcome { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.tp #modal-root .tf-outcome label { position: relative; display: block !important; cursor: pointer; margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
body.tp #modal-root .tf-outcome input { position: absolute; opacity: 0; width: 1px !important; height: 1px !important; }
body.tp #modal-root .tf-outcome span {
  display: grid; gap: 2px; height: 100%; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(var(--hl-rgb), 0.08);
  transition: background-color .15s, border-color .15s;
}
body.tp #modal-root .tf-outcome b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--dim); }
body.tp #modal-root .tf-outcome small { font-size: 12px; color: var(--faint); font-weight: 600; }
body.tp #modal-root .tf-win input:checked + span { background: linear-gradient(145deg, rgba(var(--up-rgb), 0.22), rgba(var(--up-rgb), 0.06)); border-color: rgba(var(--up-rgb), 0.6); }
body.tp #modal-root .tf-win input:checked + span b { color: var(--up); }
body.tp #modal-root .tf-loss input:checked + span { background: linear-gradient(145deg, rgba(var(--down-rgb), 0.22), rgba(var(--down-rgb), 0.06)); border-color: rgba(var(--down-rgb), 0.6); }
body.tp #modal-root .tf-loss input:checked + span b { color: var(--down); }
body.tp #modal-root .tf-outcome input:focus-visible + span { outline: 2px solid rgba(var(--up-rgb), 0.7); outline-offset: 2px; }
body.tp #modal-root .tf-pnl { display: grid; align-content: center; gap: 2px; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(var(--hl-rgb), 0.08); }
body.tp #modal-root .tf-pnl > span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--dim); }
body.tp #modal-root .tf-pnl strong { font-size: 34px !important; font-weight: 800; letter-spacing: -0.04em !important; font-family: var(--app-font) !important; font-variant-numeric: tabular-nums; }
body.tp #modal-root .tf-pnl strong.positive { color: var(--up); } body.tp #modal-root .tf-pnl strong.negative { color: var(--down); }
body.tp #modal-root .tf-pnl small { font-size: 13px; color: var(--dim); font-weight: 700; font-variant-numeric: tabular-nums; }

/* cards */
body.tp #modal-root .tf-card { position: relative; display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(var(--hl-rgb), 0.07); }
body.tp #modal-root .tf-card h4 { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(var(--cream-rgb), 0.8); }
body.tp #modal-root .tf-card h4 small { letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 600; color: var(--faint); }
body.tp #modal-root .tf-news h4 small { color: var(--cyan); }
body.tp #modal-root .tf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
body.tp #modal-root .tf-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.tp #modal-root .tf-field { display: grid !important; gap: 6px !important; margin: 0 !important; min-width: 0; }
body.tp #modal-root .tf-field > span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
body.tp #modal-root .tf-wide { grid-column: 1 / -1; }

/* steppers */
body.tp #modal-root .tf-step { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; border: 1px solid rgba(var(--hl-rgb), 0.12); border-radius: 12px; overflow: hidden; background: var(--field); }
body.tp #modal-root .tf-step button { height: 42px; font-size: 20px; font-weight: 600; color: var(--dim); background: rgba(var(--hl-rgb), 0.03); border: 0; cursor: pointer; transition: color .12s, background-color .12s; }
body.tp #modal-root .tf-step button:hover { color: var(--ink); background: rgba(var(--up-rgb), 0.12); }
body.tp #modal-root .tf-step input { border: 0 !important; border-radius: 0 !important; text-align: center; font-size: 16px !important; font-weight: 700; font-variant-numeric: tabular-nums; background: transparent !important; height: 42px !important; -moz-appearance: textfield; }
body.tp #modal-root .tf-step input::-webkit-inner-spin-button, body.tp #modal-root .tf-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* segmented options (symbol, narrative) */
body.tp #modal-root .tf-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 14px; background: var(--field); border: 1px solid rgba(var(--hl-rgb), 0.1); width: fit-content; max-width: 100%; }
body.tp #modal-root .tf-opt { position: relative; display: block !important; margin: 0 !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; }
body.tp #modal-root .tf-opt input { position: absolute; opacity: 0; width: 1px !important; height: 1px !important; }
body.tp #modal-root .tf-opt span { display: block; padding: 8px 14px; border-radius: 11px; font-size: 13.5px; font-weight: 650; color: var(--dim); transition: background-color .12s, color .12s; }
body.tp #modal-root .tf-opt:hover span { color: var(--ink); }
body.tp #modal-root .tf-opt input:checked + span { background: var(--ink); color: var(--on-ink); }
body.tp #modal-root .tf-opt input:focus-visible + span { outline: 2px solid rgba(var(--up-rgb), 0.7); outline-offset: 1px; }
body.tp #modal-root .tf-opt input[value="Bullish"]:checked + span, body.tp #modal-root .tf-opt input[value="Right"]:checked + span { background: var(--up); color: #03140e; }
body.tp #modal-root .tf-opt input[value="Bearish"]:checked + span, body.tp #modal-root .tf-opt input[value="Wrong"]:checked + span { background: var(--down); color: #fff; }
body.tp #modal-root .tf-opt input[value="Neutral"]:checked + span { background: var(--cyan); color: #03140e; }

/* stop vs target */
body.tp #modal-root .tf-rr { display: grid; gap: 6px; }
body.tp #modal-root .tf-rr-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: rgba(var(--hl-rgb), 0.06); }
body.tp #modal-root .tf-rr-bar .sl { background: var(--down); transition: width .2s; }
body.tp #modal-root .tf-rr-bar .tp { background: var(--up); transition: width .2s; }
body.tp #modal-root .tf-rr span { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
body.tp #modal-root .tf-held { margin: 0; font-size: 12.5px; color: var(--dim); }
body.tp #modal-root .tf-held.bad { color: var(--down); }

/* strategy chips */
body.tp #modal-root .tf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.tp #modal-root .tf-chip { padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); background: rgba(var(--hl-rgb), 0.04); border: 1px solid rgba(var(--hl-rgb), 0.1); cursor: pointer; }
body.tp #modal-root .tf-chip:hover, body.tp #modal-root .tf-chip.on { border-color: rgba(var(--up-rgb), 0.6); color: var(--ink); background: rgba(var(--up-rgb), 0.1); }

/* notes: one box per template section */
body.tp #modal-root .tf-modal .notes-label { display: none !important; }
body.tp #modal-root .tf-note { display: grid !important; gap: 6px !important; margin: 0 !important; }
body.tp #modal-root .tf-note > span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan) !important; }
body.tp #modal-root .tf-note textarea { resize: none; overflow: hidden; min-height: 64px; font-family: var(--app-font) !important; font-size: 14.5px !important; line-height: 1.5 !important; }
body.tp #modal-root .tf-notes #tfNoteSections { display: grid; gap: 12px; }

/* footer */
body.tp #modal-root .tf-modal .modal-actions { display: flex; align-items: center; gap: 10px; }
body.tp #modal-root .tf-foot-pnl { display: grid; margin-right: auto; line-height: 1.1; }
body.tp #modal-root .tf-foot-pnl small { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--dim); }
body.tp #modal-root .tf-foot-pnl b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
body.tp #modal-root .tf-foot-pnl b.positive { color: var(--up); } body.tp #modal-root .tf-foot-pnl b.negative { color: var(--down); }
body.tp #modal-root .tf-modal .trade-save-notice:empty { display: none; }

@media (max-width: 640px) {
  body.tp #modal-root .tf-hero { grid-template-columns: minmax(0, 1fr); }
  body.tp #modal-root .tf-grid.three { grid-template-columns: minmax(0, 1fr); }
  body.tp #modal-root .tf-title h2 { font-size: 28px !important; }
}

/* ------------------------------------------------------------- sign in */
body.tp .tp-auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); color: var(--ink); font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, Roboto, Arial, sans-serif; }
body.tp .tp-auth .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
body.tp .tp-auth-art {
  display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 56px clamp(28px, 6vw, 88px);
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(var(--cream-rgb), 0.08), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(var(--cyan-rgb), 0.07), transparent 60%);
  border-right: 1px solid rgba(var(--hl-rgb), 0.06);
}
body.tp .tp-auth-mark { display: flex; align-items: center; gap: 12px; font-size: 14px !important; font-weight: 700; letter-spacing: 0.18em !important; }
body.tp .tp-auth-mark img { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(var(--hl-rgb), 0.14); object-fit: cover; }
body.tp .tp-auth-mark b { color: var(--cream-hi); font-weight: 800; }
body.tp .tp-auth-mark.small { display: none; }
body.tp .tp-auth-art h1 { margin: 12px 0 0; font-family: "Iowan Old Style", Charter, Georgia, serif; font-weight: 400; font-size: clamp(40px, 4.6vw, 68px) !important; line-height: 1.05; letter-spacing: -0.02em !important; color: var(--ink); }
body.tp .tp-auth-art h1 em { font-style: normal; font-family: "Inter", "Segoe UI", Arial, sans-serif; font-weight: 800; font-size: 0.84em; color: var(--up); background: rgba(var(--up-rgb), 0.1); padding: 0 0.14em; border-radius: 0.18em; letter-spacing: -0.03em; }
body.tp .tp-auth-art > p { margin: 0; color: var(--dim); font-size: 17px !important; max-width: 36ch; }
body.tp .tp-auth-tape { width: 100%; max-width: 560px; height: auto; margin: 8px 0; }
body.tp .tp-auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 520px; }
body.tp .tp-auth-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--dim); font-size: 14px !important; }
body.tp .tp-auth-points li .i { color: var(--up); margin-top: 2px; }
body.tp .tp-auth-points b { color: var(--ink); font-weight: 700; margin-right: 6px; }

body.tp .tp-auth-panel { display: grid; place-items: center; padding: 40px 24px; }
body.tp .tp-auth-card { width: min(420px, 100%); display: grid; gap: 14px; }
body.tp .tp-auth-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px !important; font-weight: 700; letter-spacing: 0.16em !important; text-transform: uppercase; color: var(--dim); }
body.tp .tp-auth-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
body.tp .tp-auth-card h2 { margin: 0; font-family: "Iowan Old Style", Charter, Georgia, serif; font-weight: 400; font-size: 38px !important; letter-spacing: -0.015em !important; color: var(--ink); }
body.tp .tp-auth-sub { margin: -6px 0 4px; color: var(--dim); font-size: 14.5px !important; }
body.tp .tp-auth-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 99px; background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.08); }
body.tp .tp-auth-switch button { height: 36px; border: 0; border-radius: 99px; background: transparent; color: var(--dim); font: 650 13px/1 "Inter", "Segoe UI", Arial, sans-serif; cursor: pointer; letter-spacing: 0 !important; transition: background-color .15s, color .15s; }
body.tp .tp-auth-switch button:hover { color: var(--ink); }
body.tp .tp-auth-switch button.on { background: var(--ink); color: var(--on-ink); }
body.tp .tp-auth-form { display: grid; gap: 12px; }
body.tp .tp-auth-form label { display: grid; gap: 6px; }
body.tp .tp-auth-form label span { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--dim); }
body.tp .tp-auth-form input {
  height: 48px !important; min-height: 0 !important; padding: 0 16px !important; border-radius: 14px !important; font-size: 16px !important; letter-spacing: 0 !important;
  color: var(--ink) !important; background: var(--surface) !important; border: 1px solid rgba(var(--hl-rgb), 0.12) !important; box-shadow: none !important; font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}
body.tp .tp-auth-form input:focus { outline: none; border-color: rgba(var(--up-rgb), 0.6) !important; box-shadow: 0 0 0 4px rgba(var(--up-rgb), 0.12) !important; }
body.tp .tp-auth-form input.tp-auth-code { text-align: center; font-size: 26px !important; font-weight: 700; letter-spacing: 0.3em !important; height: 60px !important; font-variant-numeric: tabular-nums; }
body.tp .tp-auth-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; margin-top: 4px; border: 0; border-radius: 14px; cursor: pointer;
  color: #03140e; font: 750 15px/1 "Inter", "Segoe UI", Arial, sans-serif; letter-spacing: 0 !important;
  background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)); box-shadow: 0 12px 28px rgba(var(--up-rgb), 0.25); transition: filter .15s;
}
body.tp .tp-auth-submit:hover { filter: brightness(1.05); }
body.tp .tp-auth-submit:disabled { opacity: 0.6; cursor: default; }
body.tp .tp-auth-note { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 13px !important; color: var(--info-ink); background: rgba(var(--cyan-rgb), 0.08); border: 1px solid rgba(var(--cyan-rgb), 0.22); }
body.tp .tp-auth-local { height: 40px; border-radius: 12px; border: 1px dashed rgba(var(--hl-rgb), 0.18); background: transparent; color: var(--dim); font: 650 13px/1 "Inter", "Segoe UI", Arial, sans-serif; cursor: pointer; }
body.tp .tp-auth-foot { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 0; font-size: 12.5px !important; color: var(--faint); }

@media (max-width: 900px) {
  body.tp .tp-auth { grid-template-columns: minmax(0, 1fr); }
  body.tp .tp-auth-art { display: none; }
  body.tp .tp-auth-mark.small { display: flex; margin-bottom: 10px; }
  body.tp .tp-auth-panel { align-items: start; padding: calc(40px + env(safe-area-inset-top)) 20px 40px; }
}

/* Face ID unlock screen, same look */
body.tp .face-id-lock-overlay { background: rgba(var(--bg-rgb), 0.96) !important; backdrop-filter: none !important; }
body.tp .face-id-lock-card {
  background: var(--surface-2) !important; border: 1px solid rgba(var(--hl-rgb), 0.12) !important; border-radius: 26px !important; box-shadow: 0 30px 80px rgba(var(--shade-rgb), 0.6) !important;
  font-family: "Inter", "Segoe UI", Arial, sans-serif !important; color: var(--ink);
}
body.tp .face-id-lock-card h2 { font-family: "Iowan Old Style", Charter, Georgia, serif !important; font-weight: 400 !important; font-size: 32px !important; color: var(--ink) !important; }
body.tp .face-id-lock-card p, body.tp .face-id-lock-card small { color: var(--dim) !important; }
body.tp .face-id-lock-kicker { font-size: 11px !important; letter-spacing: 0.16em !important; text-transform: uppercase; color: var(--up) !important; font-weight: 700; }
body.tp .face-id-lock-card .button { border-radius: 14px !important; font-family: "Inter", "Segoe UI", Arial, sans-serif !important; letter-spacing: 0 !important; }
body.tp .face-id-lock-card .button.primary { background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)) !important; color: #03140e !important; border: 0 !important; }
body.tp .face-id-lock-card .button.ghost { background: rgba(var(--hl-rgb), 0.05) !important; color: var(--ink) !important; border: 1px solid rgba(var(--hl-rgb), 0.12) !important; }

/* ================================================================ round 2 */
/* The generator drops the prototype's [hidden] rule; without it anything
   with its own display (the image viewer is display:grid) never hides. */
html body.tp [hidden] { display: none !important; }

/* ---------------------------------------------- focus mode (Ask periods) */
body.tp .tp-main .hero .eyebrow { flex-wrap: wrap; row-gap: 8px; }
body.tp .tp-main .focus-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 8px 0 10px; margin-left: 4px; border-radius: 99px;
  font-size: 12px !important; font-weight: 700; letter-spacing: 0 !important; text-transform: none; color: #03140e;
  background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)); box-shadow: 0 6px 18px rgba(var(--up-rgb), 0.25);
}
body.tp .tp-main .focus-chip svg { width: 14px; height: 14px; stroke-width: 2.2; }
body.tp .tp-main .focus-chip svg:last-child { opacity: 0.7; }
body.tp .tp-main .focus-chip:hover svg:last-child { opacity: 1; }
body.tp .tp-main .cell.out-focus { opacity: 0.28; }

/* ----------------------------------------------------- mobile tab bar */
body.tp .tp-dock .add span { display: none; }
@media (max-width: 760px) {
  html body.tp { padding-bottom: 0 !important; }
  body.tp .tp-main, body.tp .tp-classic-wrap { padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
  /* Full-width tab bar pinned to the bottom edge, icon over label, like
     the tab bars in iOS apps (web pages cannot use the native one). */
  body.tp .tp-dock {
    left: 0 !important; right: 0 !important; bottom: 0 !important; transform: none !important; width: auto !important;
    display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 !important;
    padding: 6px 6px calc(4px + env(safe-area-inset-bottom)) !important; border-radius: 0 !important;
    background: var(--tabbar) !important; border: 0 !important; border-top: 1px solid rgba(var(--hl-rgb), 0.08) !important;
    box-shadow: 0 -12px 30px rgba(var(--shade-rgb), 0.45) !important;
  }
  body.tp .tp-dock button {
    display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 3px !important;
    height: 50px !important; padding: 0 !important; margin: 0 !important; border-radius: 12px !important; background: none !important;
    font-size: 10.5px !important; font-weight: 650 !important; letter-spacing: 0.01em !important; color: var(--dim-2) !important; box-shadow: none !important;
  }
  body.tp .tp-dock button svg { width: 23px !important; height: 23px !important; stroke-width: 1.9; }
  body.tp .tp-dock button.on { color: var(--up) !important; }
  body.tp .tp-dock button.on svg { color: var(--up) !important; stroke-width: 2.2; }
  body.tp .tp-dock .add { width: auto !important; }
  body.tp .tp-dock .add span { display: block; }
  body.tp .tp-dock .add svg {
    width: 38px !important; height: 26px !important; padding: 4px 11px; box-sizing: border-box; border-radius: 10px; stroke-width: 2.6 !important;
    color: #03140e; background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)); box-shadow: 0 6px 16px rgba(var(--up-rgb), 0.3);
  }
  body.tp .tp-dock .add { color: var(--ink) !important; }
  body.tp.has-modal .tp-dock { display: none !important; }
}

/* ------------------------------------------------------------ settings */
body.tp .tp-main .set-head { margin-bottom: 14px; }
body.tp .tp-main .set-id {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 24px; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(var(--up-rgb), 0.12), transparent 42%),
    radial-gradient(500px 200px at 100% 0%, rgba(var(--cream-rgb), 0.07), transparent 70%),
    repeating-linear-gradient(90deg, rgba(var(--hl-rgb), 0.025) 0 1px, transparent 1px 28px),
    var(--surface);
  border: 1px solid rgba(var(--hl-rgb), 0.09);
}
body.tp .tp-main .set-avatar {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 18px; font-size: 24px !important; font-weight: 800; color: #03140e;
  background: linear-gradient(145deg, var(--cream-hi), #3df5b4 45%, var(--cyan)); box-shadow: 0 0 0 4px rgba(var(--up-rgb), 0.12), 0 12px 30px rgba(var(--up-rgb), 0.2);
}
body.tp .tp-main .set-avatar.small { width: 40px; height: 40px; border-radius: 13px; font-size: 17px !important; box-shadow: 0 0 0 3px rgba(var(--up-rgb), 0.1); }
body.tp .tp-main .set-avatar.tiny { width: 20px; height: 20px; border-radius: 7px; font-size: 10.5px !important; box-shadow: none; }
body.tp .tp-main .set-id-main { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
body.tp .tp-main .set-id-main b { font-size: 22px !important; font-weight: 750; letter-spacing: -0.02em !important; color: var(--ink); }
body.tp .tp-main .set-id-main > span { color: var(--ink-2); font-size: 14px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tp .tp-main .set-id-main small { display: flex; align-items: center; gap: 7px; font-size: 12.5px !important; color: var(--dim); }
body.tp .tp-main .set-id-main small i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
body.tp .tp-main .set-id-main small.ok i { background: var(--up); box-shadow: 0 0 0 3px rgba(var(--up-rgb), 0.18); }

body.tp .tp-main .set-ghost {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px; flex: none;
  font-size: 13px !important; font-weight: 650; color: var(--ink-2); background: rgba(var(--hl-rgb), 0.04); border: 1px solid rgba(var(--hl-rgb), 0.12);
  transition: color .15s, border-color .15s, background-color .15s;
}
body.tp .tp-main .set-ghost:hover:not(:disabled) { color: var(--ink); border-color: rgba(var(--up-rgb), 0.5); background: rgba(var(--up-rgb), 0.07); }
body.tp .tp-main .set-ghost:disabled { opacity: 0.5; cursor: default; }
body.tp .tp-main .set-ghost svg { width: 16px; height: 16px; }

body.tp .tp-main .set-nav { position: sticky; top: 70px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 12px; margin: 0 0 4px; background: linear-gradient(180deg, var(--bg) 75%, transparent); }
body.tp .tp-main .set-nav::-webkit-scrollbar { display: none; }
body.tp .tp-main .set-nav button { flex: none; height: 34px; padding: 0 14px; border-radius: 99px; font-size: 13px !important; font-weight: 650; color: var(--dim); border: 1px solid rgba(var(--hl-rgb), 0.1); background: rgba(var(--hl-rgb), 0.03); }
body.tp .tp-main .set-nav button:hover { color: var(--ink); border-color: rgba(var(--up-rgb), 0.45); }

body.tp .tp-main .set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.tp .tp-main .set-card { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid rgba(var(--hl-rgb), 0.07); scroll-margin-top: 130px; min-width: 0; }
body.tp .tp-main .set-card.set-wide { grid-column: 1 / -1; }
body.tp .tp-main .set-card > header { display: flex; align-items: flex-start; gap: 12px; }
body.tp .tp-main .set-card > header > svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 12px; color: var(--up); background: rgba(var(--up-rgb), 0.1); border: 1px solid rgba(var(--up-rgb), 0.2); }
body.tp .tp-main .set-card h2 { margin: 0; font-family: "Iowan Old Style", Charter, Georgia, serif; font-weight: 400; font-size: 23px !important; color: var(--ink); }
body.tp .tp-main .set-card header p { margin: 2px 0 0; color: var(--dim); font-size: 13px !important; }
body.tp .tp-main .set-field { display: grid; gap: 6px; }
body.tp .tp-main .set-field > span, body.tp .tp-main .exp-label, body.tp .tp-main .set-sub {
  font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--dim);
}
body.tp .tp-main .set-sub small { margin-left: 8px; letter-spacing: 0 !important; text-transform: none; font-weight: 600; color: var(--faint); font-size: 12px !important; }
body.tp .tp-main :is(.set-field input, .val-search input, .mt-grant input) {
  height: 46px !important; min-height: 0 !important; padding: 0 14px !important; border-radius: 14px !important; font-size: 15px !important; font-weight: 600 !important;
  color: var(--ink) !important; background: var(--field) !important; border: 1px solid rgba(var(--hl-rgb), 0.12) !important; box-shadow: none !important; letter-spacing: 0 !important; width: 100%;
}
body.tp .tp-main :is(.set-field input, .val-search input, .mt-grant input):focus { outline: none; border-color: rgba(var(--up-rgb), 0.6) !important; box-shadow: 0 0 0 4px rgba(var(--up-rgb), 0.12) !important; }
body.tp .tp-main .set-foot { margin: 0; color: var(--faint); font-size: 12.5px !important; }

body.tp .tp-main .set-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(var(--hl-rgb), 0.025); border: 1px solid rgba(var(--hl-rgb), 0.06); }
body.tp .tp-main .set-switch-row b { display: block; font-size: 14.5px !important; color: var(--ink); }
body.tp .tp-main .set-switch-row small { color: var(--dim); font-size: 12.5px !important; }
body.tp .tp-main .set-switch { position: relative; flex: none; width: 52px; height: 30px; border-radius: 99px; background: var(--switch-off); border: 1px solid rgba(var(--hl-rgb), 0.12); transition: background-color .2s; }
body.tp .tp-main .set-switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--dim); transition: transform .2s, background-color .2s; }
body.tp .tp-main .set-switch.on { background: linear-gradient(145deg, #3df5b4, var(--up)); border-color: transparent; }
body.tp .tp-main .set-switch.on i { transform: translateX(22px); background: #fff; }
body.tp .tp-main .set-switch:disabled { opacity: 0.45; cursor: default; }
body.tp .tp-main .set-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; font-size: 12px !important; font-weight: 700; color: var(--dim); border: 1px solid rgba(var(--hl-rgb), 0.1); }
body.tp .tp-main .set-pill.on { color: var(--cyan); border-color: rgba(var(--cyan-rgb), 0.35); background: rgba(var(--cyan-rgb), 0.08); }
body.tp .tp-main .set-pill svg { width: 14px; height: 14px; }

/* security rows from the journal */
body.tp .tp-main .set-security .panel { background: transparent !important; border: 0 !important; padding: 0 !important; }
body.tp .tp-main .set-security .panel-head { display: none !important; }
body.tp .tp-main .set-security .security-list { display: grid; gap: 10px; }
body.tp .tp-main .set-security .security-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px !important; }
body.tp .tp-main .set-security .security-row strong { display: block; font-size: 14.5px !important; }
body.tp .tp-main .set-security .security-row span { color: var(--dim); font-size: 12.5px !important; }
body.tp .tp-main .set-security .security-actions { display: flex; gap: 8px; flex-wrap: wrap; }
body.tp .tp-main .set-security .sync-note { margin: 10px 0 0 !important; font-size: 12.5px !important; }

/* saved values */
body.tp .tp-main .val-search { position: relative; display: flex; align-items: center; }
body.tp .tp-main .val-search > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
body.tp .tp-main .val-search input { padding-left: 42px !important; padding-right: 96px !important; }
body.tp .tp-main .val-search input::-webkit-search-cancel-button { filter: invert(0.6); }
body.tp .tp-main .val-search > span { position: absolute; right: 14px; font-size: 12px !important; font-weight: 700; color: var(--up); pointer-events: none; }
body.tp .tp-main .val-cats { display: flex; gap: 6px; flex-wrap: wrap; }
body.tp .tp-main .val-cats button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 6px 0 12px; border-radius: 99px; font-size: 12.5px !important; font-weight: 650; color: var(--ink-2); background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.09); }
body.tp .tp-main .val-cats button b { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; font-size: 11px !important; background: rgba(var(--hl-rgb), 0.07); color: var(--dim); }
body.tp .tp-main .val-cats button:hover { border-color: rgba(var(--up-rgb), 0.45); }
body.tp .tp-main .val-cats button.on { color: #03140e; background: var(--ink); border-color: var(--ink); }
body.tp .tp-main .val-cats button.on b { background: rgba(3, 20, 14, 0.12); color: #03140e; }
body.tp .tp-main .val-list { display: grid; gap: 6px; }
body.tp .tp-main .val-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 4px 6px 4px 14px; border-radius: 14px; background: rgba(var(--hl-rgb), 0.025); border: 1px solid rgba(var(--hl-rgb), 0.06); }
body.tp .tp-main .val-cat { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.1em !important; text-transform: uppercase; color: var(--cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tp .tp-main .val-v { font-size: 14.5px !important; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
body.tp .tp-main .val-v mark { background: rgba(var(--cream-rgb), 0.2); color: var(--cream-hi); border-radius: 4px; padding: 0 1px; }
body.tp .tp-main .val-del { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--dim); border: 1px solid transparent; transition: color .15s, background-color .15s, border-color .15s; }
body.tp .tp-main .val-del:hover { color: var(--down-soft); background: rgba(var(--down-rgb), 0.1); border-color: rgba(var(--down-rgb), 0.35); }
body.tp .tp-main .val-del svg { width: 17px; height: 17px; }
body.tp .tp-main .val-hint { margin: 0; color: var(--faint); font-size: 12.5px !important; }

/* export */
body.tp .tp-main .exp { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: stretch; }
body.tp .tp-main .exp-pick { display: grid; gap: 8px; align-content: start; min-width: 0; }
body.tp .tp-main .exp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
body.tp .tp-main .exp-chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
body.tp .tp-main .exp-chips button { flex: none; height: 32px; padding: 0 13px; border-radius: 99px; font-size: 12.5px !important; font-weight: 650; color: var(--ink-2); background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.09); }
body.tp .tp-main .exp-chips button:hover { border-color: rgba(var(--up-rgb), 0.45); }
body.tp .tp-main .exp-chips button.on { color: #03140e; background: var(--ink); border-color: var(--ink); }
body.tp .tp-main .exp-go { display: grid; gap: 10px; align-content: center; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, rgba(var(--up-rgb), 0.1), transparent 60%), var(--field); border: 1px solid rgba(var(--up-rgb), 0.22); }
body.tp .tp-main .exp-count { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; }
body.tp .tp-main .exp-count b { font-size: 30px !important; font-weight: 800; letter-spacing: -0.03em !important; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
body.tp .tp-main .exp-count span { font-size: 12px !important; color: var(--dim); font-weight: 650; }
body.tp .tp-main .exp-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 14px; font-size: 14.5px !important; font-weight: 750; color: #03140e;
  background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)); box-shadow: 0 10px 24px rgba(var(--up-rgb), 0.22);
}
body.tp .tp-main .exp-btn:disabled { opacity: 0.45; box-shadow: none; cursor: default; }
body.tp .tp-main .exp-btn svg { width: 18px; height: 18px; stroke-width: 2.2; }
body.tp .tp-main .exp-note { color: var(--info-ink); font-size: 12.5px !important; }
body.tp .tp-main .set-restore { display: grid; gap: 6px; }
body.tp .tp-main .set-restore-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 14px; background: rgba(var(--hl-rgb), 0.025); border: 1px solid rgba(var(--hl-rgb), 0.06); }
body.tp .tp-main .set-restore-row b { display: block; font-size: 14px !important; }
body.tp .tp-main .set-restore-row small { color: var(--dim); font-size: 12.5px !important; }
body.tp .tp-main .set-login .panel { padding: 0 !important; border: 0 !important; background: transparent !important; }
body.tp .tp-main .set-login :is(.profile-settings-card, .panel-head) { display: none !important; }

@media (max-width: 760px) {
  body.tp .tp-main .set-grid { grid-template-columns: minmax(0, 1fr); }
  body.tp .tp-main .set-id { padding: 16px; gap: 12px; flex-wrap: wrap; }
  body.tp .tp-main .set-id .set-ghost { width: 100%; justify-content: center; }
  body.tp .tp-main .set-avatar { width: 48px; height: 48px; font-size: 20px !important; }
  body.tp .tp-main .set-nav { top: 60px; margin: 0 -14px 4px; padding: 12px 14px; }
  body.tp .tp-main .set-card { padding: 16px 14px; }
  body.tp .tp-main .val-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  body.tp .tp-main .val-cat { grid-column: 1; }
  body.tp .tp-main .val-v { grid-column: 1; }
  body.tp .tp-main .val-del { grid-column: 2; grid-row: 1 / span 2; }
  body.tp .tp-main .exp { grid-template-columns: minmax(0, 1fr); }
  body.tp .tp-main .exp-chips.scroll { margin: 0 -14px; padding: 0 14px 4px; }
}

/* ----------------------------------------------------------- mentoring */
body.tp .tp-main .mt-head { align-items: flex-end; }
body.tp .tp-main .mt-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; margin-bottom: 6px; }
body.tp .tp-main .mt-grant { display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: linear-gradient(120deg, rgba(var(--up-rgb), 0.1), transparent 55%), var(--surface); border: 1px solid rgba(var(--up-rgb), 0.2); }
body.tp .tp-main .mt-grant-t b { display: block; font-family: "Iowan Old Style", Charter, Georgia, serif; font-weight: 400; font-size: 23px !important; color: var(--ink); }
body.tp .tp-main .mt-grant-t small { color: var(--dim); font-size: 13px !important; }
body.tp .tp-main .mt-grant-row { display: flex; gap: 8px; }
body.tp .tp-main .mt-grant-row button { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 46px; padding: 0 18px; border-radius: 14px; font-size: 14px !important; font-weight: 750; color: #03140e; background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)); }
body.tp .tp-main .mt-grant-row button svg { width: 17px; height: 17px; stroke-width: 2.4; }
body.tp .tp-main .mt-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.tp .tp-main .mt-stats > div { display: grid; align-content: center; gap: 2px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid rgba(var(--hl-rgb), 0.07); }
body.tp .tp-main .mt-stats span { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--dim); }
body.tp .tp-main .mt-stats b { font-size: 34px !important; font-weight: 800; letter-spacing: -0.03em !important; color: var(--ink); line-height: 1.1; }
body.tp .tp-main .mt-stats small { color: var(--faint); font-size: 12.5px !important; }
body.tp .tp-main .mt-students { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
body.tp .tp-main .mt-student { display: grid; border-radius: 20px; background: var(--surface); border: 1px solid rgba(var(--hl-rgb), 0.07); overflow: hidden; transition: border-color .15s; }
body.tp .tp-main .mt-student:hover { border-color: rgba(var(--hl-rgb), 0.16); }
body.tp .tp-main .mt-student.on { border-color: rgba(var(--up-rgb), 0.55); box-shadow: 0 0 0 3px rgba(var(--up-rgb), 0.1); }
body.tp .tp-main .mt-student-main { display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; }
body.tp .tp-main .mt-who { display: grid; min-width: 0; margin-right: auto; }
body.tp .tp-main .mt-who b { font-size: 15px !important; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tp .tp-main .mt-who small { font-size: 12px !important; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tp .tp-main .mt-pnl { font-size: 15px !important; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.tp .tp-main .mt-student-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid rgba(var(--hl-rgb), 0.06); background: rgba(var(--hl-rgb), 0.015); }
body.tp .tp-main .mt-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12px !important; color: var(--dim); min-width: 0; }
body.tp .tp-main .mt-dot i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
body.tp .tp-main .mt-dot.ok i { background: var(--up); }
body.tp .tp-main .mt-revoke { font-size: 12px !important; font-weight: 650; color: var(--faint); padding: 4px 8px; border-radius: 8px; }
body.tp .tp-main .mt-revoke:hover { color: var(--down-soft); background: rgba(var(--down-rgb), 0.08); }
body.tp .tp-main .mt-feed { display: grid; gap: 8px; }
body.tp .tp-main .mt-item { border-radius: 18px; background: var(--surface); border: 1px solid rgba(var(--hl-rgb), 0.06); overflow: hidden; }
body.tp .tp-main .mt-item-tag { display: flex; align-items: center; gap: 8px; padding: 10px 14px 0; font-size: 12px !important; font-weight: 700; color: var(--ink-2); }
body.tp .tp-main .mt-item-tag em { font-style: normal; margin-left: 2px; padding: 1px 8px; border-radius: 99px; font-size: 10.5px !important; letter-spacing: 0.08em !important; text-transform: uppercase; color: var(--cyan); background: rgba(var(--cyan-rgb), 0.1); }
body.tp .tp-main .mt-item .trade { border-top: 0 !important; }
@media (max-width: 760px) {
  body.tp .tp-main .mt-top { grid-template-columns: minmax(0, 1fr); }
  body.tp .tp-main .mt-grant-row button span { display: none; }
  body.tp .tp-main .mt-grant-row button { padding: 0 14px; }
  body.tp .tp-main .mt-students { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------------------------------- trade form, round 2 */
/* The old stylesheet shows the plain notes box with an id selector. */
html body.tp #modal-root .tf-modal #tradeForm > .notes-label { display: none !important; }
body.tp #modal-root .tf-narrative-read { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--field); border: 1px solid rgba(var(--hl-rgb), 0.08); }
body.tp #modal-root .tf-narrative-read b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
body.tp #modal-root .tf-narrative-read b.up { color: var(--up); }
body.tp #modal-root .tf-narrative-read b.down { color: var(--down); }
body.tp #modal-root .tf-narrative-read b.cyan { color: var(--cyan); }
body.tp #modal-root .tf-narrative-read small { font-size: 12.5px; color: var(--dim); }
body.tp #modal-root .tf-narr-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--faint); }
body.tp #modal-root .tf-narr-dot.up { background: var(--up); box-shadow: 0 0 0 5px rgba(var(--up-rgb), 0.15); }
body.tp #modal-root .tf-narr-dot.down { background: var(--down); box-shadow: 0 0 0 5px rgba(var(--down-rgb), 0.15); }
body.tp #modal-root .tf-narr-dot.cyan { background: var(--cyan); box-shadow: 0 0 0 5px rgba(var(--cyan-rgb), 0.15); }

/* inputs that looked like browser defaults */
body.tp #modal-root .tf-modal .tf-card :is(input[type="datetime-local"], input[name="strategy"], .tag-combo input) {
  height: 46px !important; min-height: 0 !important; padding: 0 14px !important; border-radius: 14px !important; width: 100%;
  font-size: 15px !important; font-weight: 650 !important; font-variant-numeric: tabular-nums; color-scheme: dark;
  background: linear-gradient(180deg, var(--field-top), var(--field)) !important; border: 1px solid rgba(var(--hl-rgb), 0.1) !important;
  transition: border-color .15s, box-shadow .15s;
}
body.tp #modal-root .tf-modal .tf-card :is(input[type="datetime-local"], input[name="strategy"], .tag-combo input):hover { border-color: rgba(var(--hl-rgb), 0.2) !important; }
body.tp #modal-root .tf-modal .tf-card :is(input[type="datetime-local"], input[name="strategy"], .tag-combo input):focus { border-color: rgba(var(--up-rgb), 0.6) !important; box-shadow: 0 0 0 4px rgba(var(--up-rgb), 0.12) !important; outline: none; }
body.tp #modal-root .tf-modal input[type="datetime-local"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.75; filter: invert(0.75) sepia(1) saturate(4) hue-rotate(110deg); }
body.tp #modal-root .tf-modal .tf-card .tag-combo { position: relative; }
body.tp #modal-root .tf-modal .tf-card .tag-combo::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -5px; pointer-events: none;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg);
}
body.tp #modal-root .tf-modal .tf-card .tag-combo input { padding-right: 36px !important; }
body.tp #modal-root .tf-modal .tf-held:not(:empty) { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-weight: 650; background: rgba(var(--hl-rgb), 0.04); border: 1px solid rgba(var(--hl-rgb), 0.08); }
body.tp #modal-root .tf-modal .tf-held.bad { border-color: rgba(var(--down-rgb), 0.4); background: rgba(var(--down-rgb), 0.08); }

/* news that day: chips + an "add" field */
body.tp #modal-root .tf-news-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; }
body.tp #modal-root .tf-news-list:empty::before { content: "No USD news logged for this day yet."; color: var(--faint); font-size: 13px; }
body.tp #modal-root .tf-news-list .pending-file {
  display: inline-flex !important; align-items: center; gap: 6px; height: 32px; padding: 0 4px 0 12px !important; border-radius: 99px !important;
  font-size: 13px !important; font-weight: 650; color: var(--info-ink) !important; background: rgba(var(--cyan-rgb), 0.08) !important; border: 1px solid rgba(var(--cyan-rgb), 0.28) !important;
}
body.tp #modal-root .tf-news-list .pending-file button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0 !important; border-radius: 50% !important; color: var(--dim); background: transparent !important; border: 0 !important; min-height: 0 !important; }
body.tp #modal-root .tf-news-list .pending-file button:hover { color: #fff; background: rgba(var(--down-rgb), 0.5) !important; }
body.tp #modal-root .tf-news-list .pending-file svg { width: 13px; height: 13px; }
body.tp #modal-root .tf-news-add .tag-combo::after { display: none; }

/* charts: upload / paste tiles and thumbnails */
body.tp #modal-root .tf-modal #tradeForm > .screenshot-panel.tf-shots { display: grid; gap: 12px; padding: 16px !important; }
body.tp #modal-root .tf-shots-h { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(var(--cream-rgb), 0.75); }
body.tp #modal-root .tf-shots-h small { letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 600; color: var(--faint); }
body.tp #modal-root .tf-shot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.tp #modal-root .tf-shot-btn {
  display: grid !important; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left;
  padding: 12px 14px !important; margin: 0 !important; border-radius: 16px !important; cursor: pointer; min-height: 0 !important;
  background: rgba(var(--hl-rgb), 0.03) !important; border: 1px dashed rgba(var(--hl-rgb), 0.16) !important; color: var(--ink) !important;
  text-transform: none !important; letter-spacing: 0 !important; transition: border-color .15s, background-color .15s;
}
body.tp #modal-root .tf-shot-btn:hover { border-color: rgba(var(--up-rgb), 0.6) !important; background: rgba(var(--up-rgb), 0.06) !important; }
body.tp #modal-root .tf-shot-ic { grid-row: 1 / span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--up); background: rgba(var(--up-rgb), 0.12); }
body.tp #modal-root .tf-shot-ic svg { width: 19px; height: 19px; }
body.tp #modal-root .tf-shot-btn b { font-size: 14.5px !important; font-weight: 750; color: var(--ink) !important; }
body.tp #modal-root .tf-shot-btn small { font-size: 12px !important; font-weight: 600; color: var(--dim) !important; text-transform: none !important; letter-spacing: 0 !important; }
body.tp #modal-root .tf-shots .paste-zone { min-height: 44px !important; height: 44px; padding: 0 14px !important; display: flex; align-items: center; font-size: 13px !important; color: var(--faint) !important; overflow: hidden; }
body.tp #modal-root .tf-shots .screenshot-paste-notice:empty { display: none; }
body.tp #modal-root .tf-shots :is(#savedFiles, #pendingFiles) { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
body.tp #modal-root .tf-shots :is(#savedFiles, #pendingFiles):empty { display: none; }
body.tp #modal-root .tf-shots #savedFiles > :not(.saved-shot) { grid-column: 1 / -1; }
body.tp #modal-root .tf-shots #savedFiles .saved-shot-grid { display: contents; }
body.tp #modal-root .tf-shots .saved-shot { position: relative; margin: 0 !important; border-radius: 12px !important; overflow: hidden; background: var(--field) !important; border: 1px solid rgba(var(--hl-rgb), 0.1) !important; aspect-ratio: 16 / 10; }
body.tp #modal-root .tf-shots .saved-shot img { width: 200% !important; max-width: none !important; height: 100% !important; object-fit: cover; object-position: left center; display: block; }
body.tp #modal-root .tf-shots .saved-shot > span { display: grid; place-items: center; height: 100%; font-size: 12px; color: var(--dim); }
body.tp #modal-root .tf-shots .saved-shot em { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 99px; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #03140e; background: var(--up); }
body.tp #modal-root .tf-shots .saved-shot button { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px !important; height: 28px !important; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; color: #fff !important; background: rgba(var(--bg-rgb), 0.75) !important; border: 1px solid rgba(var(--hl-rgb), 0.2) !important; }
body.tp #modal-root .tf-shots .saved-shot button:hover { background: var(--down) !important; }
body.tp #modal-root .tf-shots .saved-shot button svg { width: 14px; height: 14px; }

/* recordings */
body.tp #modal-root .tf-recs .recording-editor { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto; gap: 8px; }
body.tp #modal-root .tf-recs .recording-editor input { height: 44px !important; border-radius: 14px !important; }

@media (max-width: 760px) {
  body.tp #modal-root .tf-shot-actions { grid-template-columns: 1fr 1fr; }
  body.tp #modal-root .tf-shot-btn { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; justify-items: center; text-align: center; row-gap: 4px; padding: 14px 8px !important; }
  body.tp #modal-root .tf-shot-ic { grid-row: auto; }
  body.tp #modal-root .tf-shots :is(#savedFiles, #pendingFiles) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tp #modal-root .tf-recs .recording-editor { grid-template-columns: minmax(0, 1fr); }
  body.tp #modal-root .tf-modal .tf-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------ image viewer, phones */
body.tp .tp-viewer [data-tp-viewer="close"] { z-index: 2; }
body.tp .tp-reading-sheet .tp-reading-signals { margin: 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 4px; }
body.tp .tp-reading-sheet > .pill-btn { margin-top: 14px; }
body.tp .tp-reading-sheet .total.cyan { color: var(--cyan); }
body.tp .tp-main .set-login :is(.sync-layout, form) { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; display: grid; gap: 10px; }
body.tp .tp-main .set-login form::before { content: "Connect to sync"; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--up); }
body.tp .tp-main .set-login .button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ================================================================ round 3 */
/* ----------------------------------------------- account menu (multi) */
body.tp .tp-top .acct { position: relative; }
body.tp .tp-top .acct-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; max-width: 280px; padding: 0 10px 0 14px; border-radius: 99px;
  color: var(--ink); background: var(--surface); border: 1px solid rgba(var(--hl-rgb), 0.12); font-size: 13px !important; transition: border-color .15s;
}
body.tp .tp-top .acct-btn:hover, body.tp .tp-top .acct-btn[aria-expanded="true"] { border-color: rgba(var(--up-rgb), 0.5); }
body.tp .tp-top .acct-l { color: var(--dim); font-weight: 600; }
body.tp .tp-top .acct-btn b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
body.tp .tp-top .acct-btn svg { width: 16px; height: 16px; flex: none; color: var(--dim); }
body.tp .tp-top .acct-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: 300px; max-height: min(70dvh, 520px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; border-radius: 18px; background: var(--surface-2); border: 1px solid rgba(var(--hl-rgb), 0.12); box-shadow: 0 24px 60px rgba(var(--shade-rgb), 0.6);
}
body.tp .tp-top .acct-pop .tp-label { padding: 10px 10px 6px; font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--faint); }
body.tp .tp-top .acct-pop .tp-label small { margin-left: 6px; letter-spacing: 0 !important; text-transform: none; font-weight: 600; color: var(--faint); font-size: 11.5px !important; }
body.tp .tp-top .acct-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 6px 10px; border-radius: 12px; text-align: left; color: var(--ink-2); font-size: 14px !important; font-weight: 600; }
body.tp .tp-top .acct-row:hover { background: rgba(var(--hl-rgb), 0.05); color: var(--ink); }
body.tp .tp-top .acct-name { display: grid; min-width: 0; }
body.tp .tp-top .acct-name small { font-size: 11.5px !important; color: var(--dim); font-weight: 600; }
body.tp .tp-top .acct-radio, body.tp .tp-top .acct-check { flex: none; width: 20px; height: 20px; border: 2px solid rgba(var(--hl-rgb), 0.22); transition: background-color .15s, border-color .15s; }
body.tp .tp-top .acct-radio { border-radius: 50%; }
body.tp .tp-top .acct-check { border-radius: 6px; position: relative; }
body.tp .tp-top .acct-row.on .acct-radio { border: 6px solid var(--up); }
body.tp .tp-top .acct-row.on, body.tp .tp-top .acct-row[aria-pressed="true"] { color: var(--ink); }
body.tp .tp-top .acct-row[aria-pressed="true"] .acct-check { background: var(--up); border-color: var(--up); }
body.tp .tp-top .acct-row[aria-pressed="true"] .acct-check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #03140e; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
body.tp .tp-top .acct-foot { position: sticky; bottom: -8px; margin: 6px -8px -8px; padding: 8px; background: var(--surface-2); border-top: 1px solid rgba(var(--hl-rgb), 0.07); }
body.tp .tp-top .acct-apply { width: 100%; height: 42px; border-radius: 12px; font-size: 14px !important; font-weight: 750; color: #03140e; background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)); }
body.tp .tp-top .acct-apply:disabled { opacity: 0.4; cursor: default; }

/* ---------------------------------------------- Prep: week capsule, right */
body.tp .tp-main .prep-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
body.tp .tp-main .weekcap { display: inline-flex; align-items: center; height: 40px; padding: 3px; border-radius: 99px; background: var(--surface); border: 1px solid rgba(var(--hl-rgb), 0.1); }
body.tp .tp-main .weekcap > button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--dim); transition: background-color .15s, color .15s; }
body.tp .tp-main .weekcap > button:hover { color: #03140e; background: var(--up); }
body.tp .tp-main .weekcap > button svg { width: 17px; height: 17px; stroke-width: 2.2; }
body.tp .tp-main .weekcap-l { display: grid; justify-items: center; min-width: 150px; padding: 0 8px; line-height: 1.15; }
body.tp .tp-main .weekcap-l b { font-size: 13px !important; font-weight: 700; color: var(--ink); white-space: nowrap; }
body.tp .tp-main .weekcap-l i, body.tp .tp-main .weekcap-l em { font-style: normal; font-size: 10px !important; font-weight: 700; letter-spacing: 0.12em !important; text-transform: uppercase; color: var(--up); }
body.tp .tp-main .weekcap-l em { color: var(--warn); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------ calendar P&L on phones */
body.tp .tp-main .pl-short { display: none; }

@media (max-width: 760px) {
  /* top bar: logo + name fully visible, compact account button */
  body.tp .tp-top .tp-bar { gap: 6px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  body.tp .tp-bar .mark { flex: none; gap: 7px; font-size: 11px !important; letter-spacing: 0.1em !important; white-space: nowrap; margin: 0; padding: 0; }
  body.tp .tp-bar .mark img { width: 28px; height: 28px; }
  body.tp .tp-top .acct-l { display: none; }
  body.tp .tp-top .acct-btn { max-width: 124px; height: 34px; padding: 0 6px 0 11px; gap: 4px; font-size: 12.5px !important; }
  body.tp .tp-top .tp-icon-btn, body.tp .tp-top .tsearch-btn { width: 34px !important; height: 34px !important; }
  body.tp .tp-top .acct-pop { position: fixed; top: 60px; left: 10px; right: 10px; width: auto; }

  /* smaller type so more fits on screen */
  body.tp .tp-main .headline { font-size: 21px !important; line-height: 1.22; margin-top: 8px; }
  body.tp .tp-main .hero { padding: 14px 0 12px !important; gap: 10px !important; }
  body.tp .tp-main .net { font-size: 34px !important; margin-top: 4px; }
  body.tp .tp-main .net-sub { margin-top: 6px; font-size: 12px !important; }
  body.tp .tp-main .net-tools { margin-top: 10px; }
  body.tp .tp-main .pill-btn { height: 30px; padding: 0 11px; font-size: 12px !important; }
  body.tp .tp-main .page-title { font-size: 28px !important; margin: 4px 0 2px; }
  body.tp .tp-main .page-sub { font-size: 13px !important; }
  body.tp .tp-main .eyebrow { font-size: 10px !important; }
  body.tp .tp-main .section-title h2 { font-size: 19px !important; }
  body.tp .tp-main .section-title p { font-size: 12px !important; }
  body.tp .tp-main .ledger b { font-size: 16px !important; }
  body.tp .tp-main .ledger span, body.tp .tp-main .ledger small { font-size: 11px !important; }
  body.tp .tp-main .signal .h3 { font-size: 15px !important; }
  body.tp .tp-main .signal .p { font-size: 12px !important; }
  body.tp .tp-main .perf { height: 210px; }
  body.tp .tp-main .set-card h2, body.tp .tp-main .mt-grant-t b { font-size: 19px !important; }
  body.tp .tp-main .set-id-main b { font-size: 18px !important; }
  body.tp .tp-main .mt-stats b { font-size: 26px !important; }
  body.tp .tp-main .fund-bias { font-size: 24px !important; }
  body.tp .tp-main .fund-driver { font-size: 14px !important; }
  body.tp #modal-root .tp-sheet h2 { font-size: 22px !important; }
  body.tp #modal-root .tp-sheet .total { font-size: 32px !important; }

  /* Prep: week capsule full width under the title */
  body.tp .tp-main .prep-side { width: 100%; align-items: stretch; }
  body.tp .tp-main .weekcap { justify-content: space-between; }

  /* mini calendar: short P&L so every day shows its number */
  body.tp .tp-main .heat-head, body.tp .tp-main .heat-row { grid-template-columns: repeat(5, minmax(0, 1fr)) 52px; gap: 4px; }
  body.tp .tp-main .heat-head span { font-size: 9.5px !important; letter-spacing: 0.06em !important; }
  body.tp .tp-main .cell { padding: 4px 5px; border-radius: 9px; font-size: 10px !important; aspect-ratio: 1.05; }
  body.tp .tp-main .cell b { font-size: 10.5px !important; letter-spacing: -0.02em !important; overflow: visible; text-overflow: clip; }
  body.tp .tp-main .pl-full { display: none; }
  body.tp .tp-main .pl-short { display: inline; }
  body.tp .tp-main .heat-row .wk { font-size: 10.5px !important; }
}

/* ================================================================ round 4 */
/* The page scrolls on <html>; while a popup, the form or the big calendar
   is open, the page behind it must not move. */
html:has(body.tp.has-modal), html:has(body.tp.tp-locked) { overflow: hidden !important; }
body.tp #modal-root .modal-backdrop { overscroll-behavior: contain; }
body.tp #modal-root :is(.tp-sheet, .modal) { overscroll-behavior: contain; }

/* short P&L helpers are used outside .tp-main too (big calendar) */
body.tp .pl-short { display: none; }

/* ------------------------------------------------ image viewer + zoom */
body.tp .tp-viewer { padding: 0 !important; display: block !important; }
body.tp .tp-viewer[hidden] { display: none !important; }
body.tp .tp-viewer .tp-viewer-stage { position: absolute; inset: 64px 72px 60px; overflow: hidden; }
body.tp .tp-viewer .tp-viewer-stage img {
  position: absolute; left: 0; top: 0; max-width: none !important; max-height: none !important; width: auto; height: auto;
  object-fit: fill !important; border-radius: 6px; box-shadow: 0 30px 80px rgba(var(--shade-rgb), 0.6) !important; background: var(--surface) !important;
  transition: left .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1);
}
body.tp .tp-viewer-zoom {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2; height: 38px; padding: 0 16px; border-radius: 99px;
  font: 700 13px/1 "Inter", "Segoe UI", Arial, sans-serif; letter-spacing: 0 !important; color: #03140e; cursor: pointer; border: 0;
  background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)); box-shadow: 0 10px 24px rgba(var(--up-rgb), 0.3);
}
body.tp .tp-viewer-zoom[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { body.tp .tp-viewer .tp-viewer-stage img { transition: none; } }

/* ------------------------------------------- calendars: empty days add */
body.tp .tp-main button.cell.is-blank { cursor: pointer; font: inherit; text-align: left; }
body.tp .tp-main button.cell.is-blank:hover { border-color: rgba(var(--up-rgb), 0.45); border-style: solid; color: var(--up); }
body.tp .tp-bigcal .bc-cell.is-blank { cursor: pointer; }
body.tp .tp-bigcal .bc-add { position: absolute; right: 12px; bottom: 8px; font-size: 22px !important; font-weight: 300; color: var(--up); opacity: 0; transition: opacity .15s; }
body.tp .tp-bigcal .bc-cell.is-blank:hover .bc-add, body.tp .tp-bigcal .bc-cell.is-blank:focus-visible .bc-add { opacity: 1; }
body.tp .tp-bigcal .bc-cell.is-blank:hover { border-color: rgba(var(--up-rgb), 0.45); }
body.tp .tp-sheet .day-add { margin-top: 14px; width: 100%; justify-content: center; }

/* ------------------------------------------------------------- prep */
body.tp .tp-main .prep-flow { display: flex; flex-direction: column; }
body.tp .tp-main .prep-flow > * { min-width: 0; }

/* ----------------------------------------------------------- settings */
body.tp .tp-main .set-id-actions { display: grid; gap: 6px; justify-items: end; flex: none; }
body.tp .tp-main .set-lock { color: #03140e !important; border-color: transparent !important; background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)) !important; font-weight: 750 !important; }
body.tp .tp-main .set-textbtn { font-size: 12px !important; font-weight: 650; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; padding: 2px 4px; }
body.tp .tp-main .set-textbtn:hover { color: var(--down-soft); }
body.tp .tp-main .set-hint { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; font-size: 13px !important; color: var(--dim); background: rgba(var(--up-rgb), 0.05); border: 1px dashed rgba(var(--up-rgb), 0.3); }
body.tp .tp-main .set-hint svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--up); }
body.tp .tp-main .set-hint b { color: var(--ink); }

/* ---------------------------------------------------- mentoring scope */
body.tp .tp-main .mt-scope { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 12px; border-radius: 99px; background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.08); }
body.tp .tp-main .mt-scope button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 8px 0 14px; border-radius: 99px; font-size: 13px !important; font-weight: 650; color: var(--dim); }
body.tp .tp-main .mt-scope button b { min-width: 22px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; font-size: 11px !important; background: rgba(var(--hl-rgb), 0.07); }
body.tp .tp-main .mt-scope button.on { color: #03140e; background: var(--ink); }
body.tp .tp-main .mt-scope button.on b { background: rgba(3, 20, 14, 0.12); }

@media (max-width: 760px) {
  /* Overview: calendar first, then the sessions list */
  body.tp .tp-main .lower > .pane:nth-child(2) { order: -1; }

  /* Prep: the fundamental read goes to the bottom */
  body.tp .tp-main .prep-fund-block { order: 9; margin-top: 18px; }

  /* big calendar on phones: every day with a chart shows it */
  body.tp .tp-bigcal .bc-cell { min-height: 104px !important; padding: 6px !important; justify-content: flex-end; }
  body.tp .tp-bigcal .bc-cell.has-img { padding-right: 6px !important; }
  body.tp .tp-bigcal .bc-thumb {
    display: block !important; position: absolute; top: 24px; left: 4px; right: 4px; bottom: 26px; width: auto !important; height: auto !important;
    border-radius: 8px !important;
  }
  body.tp .tp-bigcal .bc-v { font-size: 11.5px !important; letter-spacing: -0.02em !important; white-space: nowrap; }
  body.tp .tp-bigcal .pl-full { display: none; }
  body.tp .tp-bigcal .pl-short { display: inline; }
  body.tp .tp-bigcal .bc-add { opacity: 0.55; right: 8px; bottom: 4px; font-size: 18px !important; }

  body.tp .tp-viewer .tp-viewer-stage { inset: 60px 4px 64px; }
  body.tp .tp-viewer-zoom { top: 14px; height: 34px; font-size: 12.5px; }
  body.tp .tp-main .set-id-actions { width: 100%; justify-items: stretch; }
  body.tp .tp-main .set-id-actions .set-textbtn { justify-self: center; }
}

/* Add / Edit trade: tapping outside asks before discarding a filled form */
body.tp #modal-root .tp-form-wrap { cursor: pointer; }
body.tp #modal-root .tp-form-wrap > .modal { cursor: auto; }
body.tp #modal-root .tf-discard {
  position: sticky; top: -22px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: -22px -24px 14px; padding: 12px 16px; background: #2a1319; border-bottom: 1px solid rgba(var(--down-rgb), 0.45);
  animation: tpSheetIn .18s ease both;
}
body.tp #modal-root .tf-discard span { display: grid; margin-right: auto; }
body.tp #modal-root .tf-discard b { font-size: 14.5px; color: #fff; }
body.tp #modal-root .tf-discard small { font-size: 12.5px; color: #ffb3bf; }
body.tp #modal-root .tf-discard button { height: 36px; padding: 0 14px; border-radius: 99px; font: 700 13px/1 "Inter", "Segoe UI", Arial, sans-serif; letter-spacing: 0 !important; cursor: pointer; color: var(--ink); background: rgba(var(--hl-rgb), 0.08); border: 1px solid rgba(var(--hl-rgb), 0.18); }
body.tp #modal-root .tf-discard button.go { color: #fff; background: var(--down); border-color: var(--down); }
@media (max-width: 760px) {
  body.tp #modal-root .tf-discard { top: -18px; margin: -18px -14px 12px; }
}

/* ================================================================ round 6 */
/* "Why do I lose?" rows open their trades */
body.tp .tp-main .ask-list li { padding: 0 !important; display: block !important; }
body.tp .tp-main .ask-li { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px 10px 14px; text-align: left; cursor: pointer; transition: background-color .15s; }
body.tp .tp-main .ask-li:hover { background: rgba(var(--up-rgb), 0.07); }
body.tp .tp-main .ask-li > div { min-width: 0; margin-right: auto; }
body.tp .tp-main .ask-li > span { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.tp .tp-main .ask-go { font-style: normal; font-size: 20px; line-height: 1; color: var(--faint); transition: color .15s, transform .15s; }
body.tp .tp-main .ask-li:hover .ask-go { color: var(--up); transform: translateX(2px); }

/* mini calendar month arrows */
body.tp .tp-main .mini-cal-head { gap: 6px; }
body.tp .tp-main .mini-cal-head h3 { margin: 0 auto 0 4px; }
body.tp .tp-main .mini-cal-head .mini-step { order: 0; }
body.tp .tp-main .mini-cal-head h3 { order: -1; }

/* Prep day cards: news dots wrap onto a second row inside the card */
body.tp .tp-main .dnews { flex-wrap: wrap; max-width: 100%; row-gap: 4px; }
body.tp .tp-main .dayc { min-width: 0; overflow: hidden; }

@media (max-width: 760px) {
  /* Prep: 3 days on top, 2 centred below; no sideways scrolling */
  body.tp .tp-main .daystrip {
    display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 8px !important;
    overflow: visible !important; margin: 0 0 18px !important; padding: 0 !important;
  }
  body.tp .tp-main .daystrip .dayc { grid-column: span 2; padding: 10px; border-radius: 14px; gap: 4px; }
  body.tp .tp-main .daystrip .dayc:nth-child(4) { grid-column: 2 / span 2; }
  body.tp .tp-main .daystrip .dayc:nth-child(5) { grid-column: 4 / span 2; }
  body.tp .tp-main .daystrip .ddate { font-size: 22px !important; }
  body.tp .tp-main .daystrip .dnews i { width: 7px; height: 7px; }
}

/* ======================================================= logo, no box */
/* The helmet logo stands on its own: bigger, no frame, never cropped. */
body.tp .tp-bar .mark img,
body.tp .tp-auth-mark img,
body.tp .face-id-lock-logo {
  border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  object-fit: contain !important; filter: drop-shadow(0 3px 8px rgba(var(--shade-rgb), 0.45));
}
body.tp .tp-bar .mark img { width: 50px !important; height: 50px !important; margin: -8px 0; }
body.tp .tp-bar .mark { gap: 8px; }
body.tp .tp-auth-mark img { width: 64px !important; height: 64px !important; margin: -8px 0; }
body.tp .face-id-lock-logo { width: 104px !important; height: 104px !important; }
@media (max-width: 760px) {
  body.tp .tp-bar .mark img { width: 46px !important; height: 46px !important; margin: -7px 0; }
  body.tp .tp-bar .mark { gap: 6px; }
  body.tp .tp-auth-mark.small img { width: 58px !important; height: 58px !important; }
}
/* the top bar lines up with the page content (same side margins) */
body.tp .tp-top .tp-bar { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
@media (max-width: 760px) {
  body.tp .tp-top .tp-bar { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
}

/* previews zoomed onto the trade tool (see media.js placeFocus) */
body.tp .thumb.tool-focus img {
  position: absolute; max-width: none !important; max-height: none !important; object-fit: fill !important;
  width: auto; height: auto;
}

/* ================================================================ round 8 */
/* iPhone zooms into any field with text under 16px when you tap it; on
   touch screens every field uses 16px so the page stays put. */
@media (pointer: coarse), (max-width: 760px) {
  /* doubled ids: beats the form's own (more specific) text sizes */
  html body.tp :is(#app#app, #modal-root#modal-root) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
    font-size: 16px !important;
  }
}

/* Save / Cancel stay on one line; the saving message gets its own line */
body.tp #modal-root .tf-modal .modal-actions { flex-wrap: wrap; row-gap: 6px; }
body.tp #modal-root .tf-modal .modal-actions .button { white-space: nowrap; flex: none; }
body.tp #modal-root .tf-modal .trade-save-notice:not(:empty) {
  order: -1; flex: 1 1 100%; font-size: 12.5px !important; color: var(--info-ink); text-align: right;
}
body.tp #modal-root .tf-modal .save-spinner { flex: none; }

/* pop-ups in the new frame */
body.tp .tp-sheet .sheet-sub { margin: -2px 0 14px; color: var(--dim); font-size: 13px !important; }
body.tp .tp-sheet .sheet-student { margin: -2px 0 6px; color: var(--cyan); font-size: 13px !important; font-weight: 650; }
body.tp .tp-sheet .nq-history-list { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; background: none; border: 0; }
body.tp .tp-sheet .nq-history-row {
  display: grid; gap: 2px; width: 100%; padding: 12px 14px; border-radius: 14px; text-align: left; cursor: pointer;
  background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.08); color: var(--ink); transition: border-color .15s, background-color .15s;
}
body.tp .tp-sheet .nq-history-row:hover { border-color: rgba(var(--up-rgb), 0.45); background: rgba(var(--up-rgb), 0.05); }
body.tp .tp-sheet .nq-history-row-date { font-weight: 700; font-size: 14.5px !important; }
body.tp .tp-sheet .nq-history-row-title { color: var(--dim); font-size: 12.5px !important; }
body.tp .tp-sheet .nq-history-empty { color: var(--dim); }
body.tp .tp-sheet .share-sheet-img img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(var(--hl-rgb), 0.1); }
body.tp .tp-sheet .share-sheet-status:empty { display: none; }
body.tp .tp-sheet .share-sheet-status { margin: 10px 0 0; color: var(--info-ink); font-size: 13px !important; }
body.tp .tp-sheet .share-sheet-actions { display: flex; gap: 8px; margin-top: 14px; }
body.tp .tp-sheet .share-sheet-actions .pill-btn { flex: 1; justify-content: center; height: 42px; }

/* mentor review box inside the trade panel */
body.tp .tp-sheet .tp-review .detail-section { display: grid; gap: 10px; padding: 0; border: 0; background: none; }
body.tp .tp-sheet .tp-review h3 { margin: 0; font-size: 11px !important; letter-spacing: 0.14em !important; text-transform: uppercase; color: rgba(var(--cream-rgb), 0.8) !important; }
body.tp .tp-sheet .tp-review .mentor-review-text { margin: 0; color: var(--ink); white-space: pre-wrap; }
body.tp .tp-sheet .tp-review .mentor-review-date, body.tp .tp-sheet .tp-review .mentor-review-notice { color: var(--dim); font-size: 12.5px !important; }
body.tp .tp-sheet .tp-review textarea {
  width: 100%; min-height: 96px; padding: 12px 14px; border-radius: 14px; resize: vertical; font: inherit; color: var(--ink);
  background: var(--field); border: 1px solid rgba(var(--hl-rgb), 0.12);
}
body.tp .tp-sheet .tp-review textarea:focus { outline: none; border-color: rgba(var(--up-rgb), 0.6); box-shadow: 0 0 0 3px rgba(var(--up-rgb), 0.12); }
body.tp .tp-sheet .tp-review .button.primary {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 99px; cursor: pointer;
  font-weight: 750; color: #03140e; background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan));
}
body.tp .tp-sheet .tp-review .button.primary .icon { width: 16px; height: 16px; }

/* confirm dialogs */
body.tp #modal-root .tp-confirm-wrap { display: grid !important; place-items: center; padding: 16px !important; }
body.tp #modal-root .modal.tp-confirm {
  width: min(440px, 100%); padding: 20px !important; border-radius: 22px !important; display: grid; gap: 12px;
  background: var(--surface-2) !important; border: 1px solid rgba(var(--hl-rgb), 0.14) !important;
}
body.tp #modal-root .modal.tp-confirm .modal-head { padding: 0 !important; border: 0 !important; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.tp #modal-root .modal.tp-confirm h2 { font-size: 22px !important; margin: 0; }
body.tp #modal-root .modal.tp-confirm p { margin: 0; color: var(--ink-2); }
body.tp #modal-root .modal.tp-confirm .modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 !important; border: 0 !important; background: none !important; position: static !important; margin: 4px 0 0 !important; }

/* Coach filter on Trades / Backtest */
body.tp .tp-main #tpCoachFilter.on { border-color: rgba(var(--up-rgb), 0.6) !important; color: var(--up) !important; }
/* The form's pinned header sits flush with the panel's top edge, so fields
   no longer show through the gap above it while scrolling. */
body.tp #modal-root .tf-modal .modal-head { top: -22px; margin-top: -22px !important; padding-top: 22px !important; z-index: 4; }
@media (max-width: 760px) {
  body.tp #modal-root .tf-modal .modal-head { top: -18px; margin-top: -18px !important; padding-top: 18px !important; }
}

/* Whenever the Overview stacks its two lower panes (phones, tablets, narrow
   windows), the calendar comes before the sessions list. */
@media (max-width: 1100px) {
  body.tp .tp-main .lower > .pane:nth-child(2) { order: -1; }
}


/* ================================================================ round 9 */
/* Appearance picker (swatch colours are fixed on purpose: they preview
   each theme, so they must not switch with the theme) */
body.tp .tp-main .theme-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.tp .tp-main .theme-opt {
  display: grid; gap: 4px; padding: 10px; border-radius: 16px; text-align: left; cursor: pointer;
  background: rgba(var(--hl-rgb), 0.025); border: 1px solid rgba(var(--hl-rgb), 0.09); transition: border-color .15s, background-color .15s;
}
body.tp .tp-main .theme-opt:hover { border-color: rgba(var(--up-rgb), 0.45); }
body.tp .tp-main .theme-opt.on { border-color: var(--up); box-shadow: 0 0 0 3px rgba(var(--up-rgb), 0.15); }
body.tp .tp-main .theme-opt b { font-size: 14px !important; color: var(--ink); }
body.tp .tp-main .theme-opt small { font-size: 11.5px !important; color: var(--dim); line-height: 1.35; }
body.tp .tp-main .theme-swatch { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: 46px; padding: 5px; border-radius: 10px; margin-bottom: 4px; }
body.tp .tp-main .theme-swatch i { border-radius: 5px; }
body.tp .tp-main .theme-swatch i:first-child { grid-row: span 2; }
body.tp .tp-main .sw-dark { background: #0a1527; }
body.tp .tp-main .sw-dark i { background: #172a43; }
body.tp .tp-main .sw-dark i:last-child { background: #09d48d; }
body.tp .tp-main .sw-light { background: #eef2f8; border: 1px solid #d5dce8; }
body.tp .tp-main .sw-light i { background: #ffffff; box-shadow: 0 1px 2px rgba(15, 27, 45, 0.12); }
body.tp .tp-main .sw-light i:last-child { background: #059669; }
body.tp .tp-main .sw-auto { background: linear-gradient(115deg, #0a1527 50%, #eef2f8 50%); border: 1px solid #d5dce8; }
body.tp .tp-main .sw-auto i { background: linear-gradient(115deg, #172a43 50%, #ffffff 50%); }
body.tp .tp-main .sw-auto i:last-child { background: #09d48d; }
@media (max-width: 760px) {
  body.tp .tp-main .theme-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  body.tp .tp-main .theme-opt small { display: none; }
}

/* Mentor reactions */
body.tp .tp-sheet .react-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 12px; }
body.tp .tp-sheet .react-btn {
  display: inline-grid; place-items: center; min-width: 46px; height: 40px; padding: 0 10px; border-radius: 12px; cursor: pointer;
  font-size: 20px !important; line-height: 1; background: rgba(var(--hl-rgb), 0.05); border: 1px solid rgba(var(--hl-rgb), 0.1);
  transition: transform .12s, border-color .15s, background-color .15s;
}
body.tp .tp-sheet .react-btn:hover { transform: translateY(-1px); border-color: rgba(var(--cyan-rgb), 0.5); }
body.tp .tp-sheet .react-btn.on { background: rgba(var(--cyan-rgb), 0.16); border-color: var(--cyan); }
body.tp .tp-sheet .react-more { position: relative; }
body.tp .tp-sheet .react-more > summary { list-style: none; font-size: 20px !important; font-weight: 600; color: var(--dim); }
body.tp .tp-sheet .react-more > summary::-webkit-details-marker { display: none; }
body.tp .tp-sheet .react-more[open] > summary { color: var(--ink); border-color: var(--cyan); }
body.tp .tp-sheet .react-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
body.tp .tp-sheet .react-more[open] { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
body.tp .tp-sheet .react-more[open] .react-list { margin: 0; }
body.tp .tp-sheet .react-note { flex-basis: 100%; color: var(--dim); font-size: 12.5px !important; }
body.tp .tp-sheet .react-line { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; color: var(--dim); font-size: 13px !important; }
body.tp .tp-sheet .react-big { font-size: 22px !important; letter-spacing: 2px !important; }
body.tp :is(.tp-main, .tp-sheet) .react-badge { font-style: normal; font-size: 13px !important; margin-right: 6px; letter-spacing: 1px !important; }
body.tp .tp-main .cell .cal-react { position: absolute; top: 3px; right: 4px; font-style: normal; font-size: 10px !important; line-height: 1; }
body.tp .tp-main .cell { position: relative; }
body.tp .tp-bigcal .bc-react { position: absolute; top: 8px; left: 30px; z-index: 2; font-size: 15px !important; line-height: 1; letter-spacing: 1px !important; }

/* narrative calls: how the card counts */
body.tp .tp-main .fund-note-small { margin: -4px 0 8px; color: var(--faint); font-size: 12px !important; line-height: 1.4; }
body.tp #modal-root .tf-field > span small { margin-left: 6px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--cyan); }
body.tp #modal-root .tf-opt input[name="direction"][value="Long"]:checked + span { background: var(--up); color: #03140e; }
body.tp #modal-root .tf-opt input[name="direction"][value="Short"]:checked + span { background: var(--down); color: #fff; }

/* macro regime chip on the Prep card */
body.tp .tp-main .regime-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px !important; font-weight: 700; color: var(--ink-2); background: rgba(var(--hl-rgb), 0.05); border: 1px solid rgba(var(--hl-rgb), 0.1); cursor: help; }
body.tp .tp-main .regime-chip.r-goldilocks { color: var(--up); border-color: rgba(var(--up-rgb), 0.35); background: rgba(var(--up-rgb), 0.08); }
body.tp .tp-main .regime-chip.r-overheating, body.tp .tp-main .regime-chip.r-stagflation { color: var(--down); border-color: rgba(var(--down-rgb), 0.35); background: rgba(var(--down-rgb), 0.08); }
body.tp .tp-main .regime-chip.r-recession { color: var(--warn); border-color: rgba(255, 184, 77, 0.4); background: rgba(255, 184, 77, 0.08); }

/* Morning checklist (macro playbook) on Prep */
body.tp .tp-main .mchk { margin: 0 0 18px; padding: 18px 20px; }
body.tp .tp-main .mchk .pane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
body.tp .tp-main .mchk-sub { color: var(--dim); font-size: 12px !important; }
body.tp .tp-main .mchk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.tp .tp-main .mchk-step { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(var(--hl-rgb), 0.025); border: 1px solid var(--hair); border-left: 3px solid rgba(var(--hl-rgb), 0.14); min-width: 0; }
body.tp .tp-main .mchk-step.t-up { border-left-color: var(--up); }
body.tp .tp-main .mchk-step.t-down { border-left-color: var(--down); }
body.tp .tp-main .mchk-step.t-warn { border-left-color: var(--warn); }
body.tp .tp-main .mchk-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px !important; font-weight: 800; color: var(--dim); background: rgba(var(--hl-rgb), 0.06); }
body.tp .tp-main .mchk-body { min-width: 0; display: grid; gap: 3px; }
body.tp .tp-main .mchk-body small { color: var(--dim); font-size: 11px !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
body.tp .tp-main .mchk-body b { font-size: 13.5px !important; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
body.tp .tp-main .mchk-body b em { font-style: normal; font-weight: 600; color: var(--dim); }
body.tp .tp-main .mchk-step.t-up b { color: var(--up); }
body.tp .tp-main .mchk-step.t-down b { color: var(--down); }
body.tp .tp-main .mchk-body p { margin: 0; color: var(--dim); font-size: 12px !important; line-height: 1.4; }
@media (max-width: 1100px) { body.tp .tp-main .mchk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  body.tp .tp-main .mchk { padding: 14px; }
  body.tp .tp-main .mchk-list { grid-template-columns: 1fr; gap: 8px; }
  body.tp .tp-main .mchk-step { padding: 10px; }
}
body.tp .tp-main .mchk-score { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hair); background: rgba(var(--hl-rgb), 0.025); display: grid; gap: 8px; }
body.tp .tp-main .mchk-score-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
body.tp .tp-main .mchk-score-head small { color: var(--dim); font-size: 11px !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
body.tp .tp-main .mchk-score-head b { font-size: 20px !important; font-weight: 800; }
body.tp .tp-main .mchk-score-head span { color: var(--dim); font-size: 12.5px !important; }
body.tp .tp-main .mchk-score.t-up .mchk-score-head b { color: var(--up); }
body.tp .tp-main .mchk-score.t-down .mchk-score-head b { color: var(--down); }
body.tp .tp-main .mchk-score-items { display: flex; flex-wrap: wrap; gap: 6px; }
body.tp .tp-main .mchk-score-items span { font-size: 12px !important; padding: 3px 9px; border-radius: 99px; background: rgba(var(--hl-rgb), 0.05); border: 1px solid var(--hair); }
body.tp .tp-main .mchk-score-items span.up b { color: var(--up); }
body.tp .tp-main .mchk-score-items span.down b { color: var(--down); }

/* Prep stats: which Overview account they are for */
body.tp .tp-main .pane-head .pane-acct { margin-left: auto; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 11.5px !important; font-weight: 600; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--hair); }

/* ================================================= Prep round: compact */
/* Record rows open their trades on Overview */
body.tp .tp-main .rec-row.rec-go { width: 100%; text-align: left; cursor: pointer; border-radius: 12px; margin: 0 -10px; padding-left: 10px; padding-right: 10px; width: calc(100% + 20px); transition: background-color .15s; }
body.tp .tp-main .rec-row.rec-go:hover { background: rgba(var(--up-rgb), 0.07); }
body.tp .tp-main .rec-row .rec-arrow { font-style: normal; font-size: 20px; line-height: 1; color: var(--faint); margin-left: 10px; transition: color .15s, transform .15s; }
body.tp .tp-main .rec-row.rec-go:hover .rec-arrow { color: var(--up); transform: translateX(2px); }

/* Morning checklist: a dropdown inside the narrative card */
body.tp .tp-main .mchk-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 11px 14px; border-radius: 14px; text-align: left; cursor: pointer;
  background: rgba(var(--up-rgb), 0.06); border: 1px solid rgba(var(--up-rgb), 0.22); transition: border-color .15s, background-color .15s;
}
body.tp .tp-main .mchk-toggle:hover { border-color: rgba(var(--up-rgb), 0.5); }
body.tp .tp-main .mchk-toggle span { font-size: 13.5px !important; font-weight: 750; color: var(--ink); }
body.tp .tp-main .mchk-toggle small { color: var(--dim); font-size: 12px !important; margin-right: auto; }
body.tp .tp-main .mchk-toggle .i, body.tp .tp-main .m-more .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; color: var(--up); transition: transform .2s; }
body.tp .tp-main .mchk-toggle.open .i, body.tp .tp-main .m-more.open .i { transform: rotate(180deg); }

/* Readings: the last five, no scrolling */
body.tp .tp-main .readings { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible !important; padding-bottom: 0 !important; }
body.tp .tp-main .readings .reading { min-width: 0; }

/* Volatility: a coloured pill */
body.tp .tp-main .vol { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 9px; border: 1px solid rgba(var(--hl-rgb), 0.08); }
body.tp .tp-main .vol::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; box-shadow: 0 0 8px currentColor; }
body.tp .tp-main .vol.v-none::before, body.tp .tp-main .vol.v-::before { box-shadow: none; opacity: .5; }
body.tp .tp-main .vol.v-low { border-color: rgba(var(--cyan-rgb), 0.3); }
body.tp .tp-main .vol.v-medium { border-color: rgba(var(--gold-rgb), 0.3); }
body.tp .tp-main .vol.v-high, body.tp .tp-main .vol.v-extreme { border-color: rgba(var(--down-rgb), 0.35); }
body.tp .tp-main .vol.v-extreme { background: rgba(var(--down-rgb), 0.18) !important; }
body.tp .tp-main .plan-vol.vsel select:has(option[value="Low"]:checked) { color: var(--cyan) !important; border-color: rgba(var(--cyan-rgb), 0.45) !important; background-color: rgba(var(--cyan-rgb), 0.1) !important; }
body.tp .tp-main .plan-vol.vsel select:has(option[value="Medium"]:checked) { color: var(--gold) !important; border-color: rgba(var(--gold-rgb), 0.45) !important; background-color: rgba(var(--gold-rgb), 0.1) !important; }
body.tp .tp-main .plan-vol.vsel select:has(option[value="High"]:checked) { color: var(--down) !important; border-color: rgba(var(--down-rgb), 0.5) !important; background-color: rgba(var(--down-rgb), 0.1) !important; }
body.tp .tp-main .plan-vol.vsel select:has(option[value="Extreme"]:checked) { color: #fff !important; border-color: var(--down) !important; background-color: rgba(var(--down-rgb), 0.32) !important; }
body.tp .tp-main .plan-vol.vsel select:has(option[value=""]:checked) { color: var(--dim) !important; border-style: dashed !important; }

/* Phone-only compact cards: hidden on bigger screens */
body.tp .tp-main .m-read, body.tp .tp-main .m-day { display: none; }

@media (max-width: 760px) {
  /* Order: narrative, its full read, the chosen day, its full plan, the week */
  body.tp .tp-main .prep-flow .m-read { display: grid; order: 1; }
  body.tp .tp-main .prep-flow .prep-fund-block { order: 2 !important; margin-top: 0 !important; }
  body.tp .tp-main .prep-flow .m-day { display: grid; order: 3; }
  body.tp .tp-main .prep-flow .prep-grid { order: 4; }
  body.tp .tp-main .prep-flow .daystrip { order: 5; }
  body.tp .tp-main .prep-flow:not(.full-read) .prep-fund-block { display: none; }
  body.tp .tp-main .prep-flow:not(.full-day) .prep-grid { display: none; }
  body.tp .tp-main .prep-flow.full-read .prep-fund-block { margin-bottom: 14px; }
  body.tp .tp-main .prep-flow.full-day .prep-grid { margin-bottom: 14px; }

  body.tp .tp-main .m-read, body.tp .tp-main .m-day { gap: 8px; padding: 14px 16px; margin-bottom: 12px; border-radius: 18px; }
  body.tp .tp-main .m-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
  body.tp .tp-main .m-eyebrow { color: var(--dim); font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
  body.tp .tp-main .m-read .regime-chip { height: 22px; font-size: 11px !important; }
  body.tp .tp-main .m-bias { display: flex; align-items: center; gap: 12px; }
  body.tp .tp-main .m-bias b { font-size: 24px !important; font-weight: 800; letter-spacing: -0.02em; }
  body.tp .tp-main .m-bias b.up { color: var(--up); } body.tp .tp-main .m-bias b.down { color: var(--down); } body.tp .tp-main .m-bias b.cyan { color: var(--cyan); }
  body.tp .tp-main .m-conf { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--ink-2); font-size: 13px !important; font-weight: 700; }
  body.tp .tp-main .m-conf .meter { width: 64px; }
  body.tp .tp-main .m-driver { margin: 0; color: var(--ink-2); font-size: 13.5px !important; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body.tp .tp-main .m-score { margin: 0; color: var(--dim); font-size: 12.5px !important; }
  body.tp .tp-main .m-score b.up { color: var(--up); } body.tp .tp-main .m-score b.down { color: var(--down); }
  body.tp .tp-main .m-more {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; margin-top: 2px; border-radius: 12px; cursor: pointer;
    font-size: 13px !important; font-weight: 700; color: var(--ink); background: rgba(var(--hl-rgb), 0.04); border: 1px solid rgba(var(--hl-rgb), 0.1);
  }
  body.tp .tp-main .m-day-title { font-size: 15px !important; font-weight: 800; }
  body.tp .tp-main .m-news { display: grid; gap: 6px; }
  body.tp .tp-main .m-news .news { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px !important; }
  body.tp .tp-main .m-news .news span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.tp .tp-main .m-news .news small { margin-left: auto; color: var(--dim); font-size: 12px !important; font-weight: 600; flex: none; }
  body.tp .tp-main .m-more-news { color: var(--faint); font-size: 12px !important; }
  body.tp .tp-main .m-plan { margin: 0; color: var(--ink-2); font-size: 13.5px !important; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body.tp .tp-main .m-reading { margin: 0; color: var(--dim); font-size: 12.5px !important; }
  body.tp .tp-main .m-reading b.up { color: var(--up); } body.tp .tp-main .m-reading b.down { color: var(--down); } body.tp .tp-main .m-reading b.cyan { color: var(--cyan); }

  /* Readings inside the full read: three then two, no scrolling */
  body.tp .tp-main .readings { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 14px !important; padding: 0 !important; gap: 8px !important; }
  body.tp .tp-main .readings .reading { padding: 10px 12px; }
}
body.tp .tp-main .rec-row.rec-go > div { margin-right: auto; min-width: 0; }

/* a chart saved only on another device (its cloud upload failed) */
body.tp .tp-viewer .tp-viewer-missing { position: absolute; inset: 0; margin: auto; width: min(420px, 86vw); height: fit-content; display: grid; gap: 8px; padding: 22px; text-align: center; border-radius: 18px; background: rgba(17, 31, 53, 0.92); border: 1px solid rgba(var(--hl-rgb), 0.1); color: var(--dim); font-size: 13.5px; line-height: 1.5; }
body.tp .tp-viewer .tp-viewer-missing b { color: var(--ink); font-size: 16px; }
body.tp .no-img-device { position: relative; }
body.tp .no-img-device::after { content: "On another device"; position: absolute; inset: auto 6px 6px; padding: 3px 6px; border-radius: 8px; text-align: center; font-size: 10px; font-weight: 700; line-height: 1.2; color: var(--dim); background: rgba(var(--shade-rgb), 0.35); }

/* viewer: zoom by hand (wheel, pinch, double click / tap) and drag around */
body.tp .tp-viewer .tp-viewer-stage { touch-action: none; cursor: zoom-in; }
body.tp .tp-viewer .tp-viewer-stage img { -webkit-user-drag: none; user-select: none; }
body.tp .tp-viewer .tp-viewer-stage img.tp-follow { transition: none; cursor: grab; }
body.tp .tp-viewer .tp-viewer-stage img.tp-follow:active { cursor: grabbing; }
/* Prep: a day's volatility still "Not set" stands out in gold until it is chosen */
body.tp .tp-main .plan-vol.vsel select:has(option[value=""]:checked) { color: #f5c542 !important; border: 1.5px solid rgba(245, 197, 66, 0.85) !important; background-color: rgba(245, 197, 66, 0.12) !important; box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.14) !important; font-weight: 700 !important; }
body.tp .tp-main .plan-vol.vsel:has(option[value=""]:checked) > span { color: #f5c542 !important; }
/* Jerusalem is the main clock; New York follows, smaller */
body.tp .tz-ny { font-size: 0.86em; font-weight: 500; opacity: 0.62; margin-left: 2px; white-space: nowrap; }
body.tp #modal-root .tf-ny { margin-left: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0 !important; text-transform: none !important; color: var(--cyan); }
body.tp #modal-root .tf-card h4 small { text-transform: none; letter-spacing: 0; }


/* ====================================================== PA Empire Bot */
/* The bot's screens (src/bot/) in the journal's look. Only one app shows. */
body.tp.bot-mode > #app { display: none !important; }
body.tp:not(.bot-mode) > #botApp { display: none !important; }
body.tp #botApp [hidden] { display: none !important; }

body.tp #botApp {
  --line: rgba(var(--hl-rgb), 0.07);
  --line-2: rgba(var(--hl-rgb), 0.12);
  --text: var(--ink);
  --amber: var(--gold);
  --accent: var(--cyan);
  --card-2: rgba(var(--hl-rgb), 0.03);
  --card-solid: var(--surface);
  color: var(--ink);
}
body.tp #botApp svg:not(.i) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.tp #botApp .up { color: var(--up); }
body.tp #botApp .down { color: var(--down); }
body.tp #botApp .mid { color: var(--gold); }
body.tp #botApp .dim { color: var(--dim); }
body.tp #botApp .num, body.tp #botApp .kpi b, body.tp #botApp .big, body.tp #botApp .lv b, body.tp #botApp .row .res, body.tp #botApp .feed time { font-variant-numeric: tabular-nums; }

/* top bar: the falcon and the live pill */
body.tp #botApp .bot-mark img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(var(--cyan-rgb), 0.35)); }
body.tp #botApp .bot-mark b { background: linear-gradient(90deg, var(--cyan), var(--cream-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.tp #botApp .conn { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 650; color: var(--dim); background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.08); cursor: pointer; }
body.tp #botApp .conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
body.tp #botApp .conn.ok { color: var(--up); }
body.tp #botApp .conn i { position: relative; }
body.tp #botApp .conn.ok i { background: var(--up); }
body.tp #botApp .conn.ok i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--up); animation: botPing 2s ease-out infinite; will-change: transform, opacity; }
body.tp #botApp .conn.bad { color: var(--down); }
body.tp #botApp .conn.bad i { background: var(--down); }
@keyframes botPing { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
body.tp #botApp .tp-icon-btn.on { color: var(--up); border-color: rgba(var(--up-rgb), 0.45); }

/* pages: one at a time, each with its own layout */
body.tp #botApp .bot-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; padding-bottom: 110px; }
body.tp #botApp .c-open .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.tp #botApp .bot-grid > .card:not(.on) { display: none; }
body.tp #botApp .card { position: relative; min-width: 0; padding: 18px 20px; }
body.tp #botApp .card h2, body.tp #botApp .card-head h2 { margin: 0 0 14px; font-size: 11px !important; font-weight: 700; letter-spacing: 0.16em !important; text-transform: uppercase; color: var(--dim); font-family: inherit !important; }
body.tp #botApp .card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
body.tp #botApp .card-head h2 { margin: 0; }
body.tp #botApp .card.c-status { background: none !important; border: 0 !important; padding: 0; box-shadow: none; }
@media (min-width: 961px) {
  body.tp #botApp[data-page="live"] .bot-grid {
    grid-template-columns: minmax(300px, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-areas: "status status status" "journal journal journal" "narr narr today" "open feed feed";
    align-items: stretch;
  }
  body.tp #botApp[data-page="live"] .c-status { grid-area: status; align-self: start; }
  body.tp #botApp[data-page="live"] .c-journal { grid-area: journal; }
  body.tp #botApp[data-page="live"] .c-narr { grid-area: narr; }
  body.tp #botApp[data-page="live"] .c-today { grid-area: today; }
  body.tp #botApp[data-page="live"] .c-open { grid-area: open; }
  body.tp #botApp[data-page="live"] .c-feed { grid-area: feed; }
  body.tp #botApp[data-page="live"] .feed { max-height: 440px; overflow-y: auto; }
  body.tp #botApp[data-page="stats"] .bot-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); grid-template-areas: "kpis kpis" "equity days"; }
  body.tp #botApp[data-page="stats"] .c-kpis { grid-area: kpis; }
  body.tp #botApp[data-page="stats"] .c-equity { grid-area: equity; }
  body.tp #botApp[data-page="stats"] .c-days { grid-area: days; }
  body.tp #botApp[data-page="settings"] .bot-grid { max-width: 820px; }
  body.tp #botApp .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.tp #botApp .c-today .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.tp #botApp .row { grid-template-columns: 74px 1fr auto; }
}

/* status pills */
body.tp #botApp .pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.tp #botApp .pills-h { font-size: 11px !important; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-right: 6px; }
body.tp #botApp .pills.all-good .pills-h { color: var(--up); }
body.tp #botApp .pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: rgba(var(--hl-rgb), 0.035); border: 1px solid rgba(var(--hl-rgb), 0.08); font-size: 12px !important; color: var(--dim); }
body.tp #botApp .pill svg { width: 15px; height: 15px; }
body.tp #botApp .pill b { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 650; }
body.tp #botApp .pill b i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(var(--up-rgb), 0.15); }
body.tp #botApp .pill.warn b i { background: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.15); }
body.tp #botApp .pill.bad b i { background: var(--down); box-shadow: 0 0 0 3px rgba(var(--down-rgb), 0.15); }

/* position */
body.tp #botApp .empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 0 18px; color: var(--dim); text-align: center; }
body.tp #botApp .empty b { color: var(--ink); font-weight: 700; font-size: 17px; }
body.tp #botApp .empty::before { content: ""; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 8px; background: radial-gradient(circle, rgba(var(--up-rgb), 0.9) 0 5px, rgba(var(--up-rgb), 0.18) 6px 13px, transparent 14px), rgba(var(--up-rgb), 0.06); }
body.tp #botApp .empty { position: relative; }
body.tp #botApp .empty::after { content: ""; position: absolute; top: 22px; left: 50%; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; border: 2px solid rgba(var(--up-rgb), 0.35); animation: botRing 2.4s ease-out infinite; will-change: transform, opacity; pointer-events: none; }
@keyframes botRing { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }
body.tp #botApp .pos-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.tp #botApp .side { font-size: 10.5px !important; font-weight: 800; letter-spacing: 0.1em; padding: 4px 9px; border-radius: 7px; }
body.tp #botApp .side.long { background: rgba(var(--up-rgb), 0.14); color: var(--up); }
body.tp #botApp .side.short { background: rgba(var(--down-rgb), 0.14); color: var(--down); }
body.tp #botApp .pos-head .meta { color: var(--dim); font-size: 13px !important; }
body.tp #botApp .big { font-size: 40px !important; font-weight: 800; letter-spacing: -0.035em !important; line-height: 1.05; margin: 14px 0 4px; }
body.tp #botApp .big.up { background: linear-gradient(180deg, #7dffcf, var(--up)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.tp #botApp .big.down { background: linear-gradient(180deg, #ff9aa9, var(--down)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.tp #botApp .big-sub { font-size: 12.5px !important; color: var(--dim); }
body.tp #botApp .ladder { position: relative; height: 36px; margin: 20px 6px 8px; }
body.tp #botApp .ladder .track { position: absolute; left: 0; right: 0; top: 15px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(var(--down-rgb), 0.75), rgba(131, 145, 163, 0.3) var(--entry), rgba(var(--up-rgb), 0.8)); }
body.tp #botApp .ladder .mk { position: absolute; top: 9px; width: 2px; height: 18px; border-radius: 2px; background: var(--ink); transform: translateX(-1px); }
body.tp #botApp .ladder .mk.stop { background: var(--down); }
body.tp #botApp .ladder .mk.safe { background: var(--gold); }
body.tp #botApp .ladder .mk.target { background: var(--up); }
body.tp #botApp .ladder .now { position: absolute; top: 6px; width: 24px; height: 24px; border-radius: 50%; transform: translateX(-12px); background: #fff; border: 5px solid var(--surface); box-shadow: 0 0 0 2px var(--cyan), 0 0 18px rgba(var(--cyan-rgb), 0.6); }
body.tp #botApp .levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
body.tp #botApp .lv { background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.07); border-radius: 12px; padding: 9px 10px; min-width: 0; }
body.tp #botApp .lv span { display: block; font-size: 10.5px !important; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
body.tp #botApp .lv b { display: block; font-size: 14px !important; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
body.tp #botApp .lv em { display: block; font-style: normal; font-size: 12px !important; color: var(--dim); }
body.tp #botApp .pos-sep { height: 1px; background: rgba(var(--hl-rgb), 0.07); margin: 18px 0; }
body.tp #botApp .chip { display: inline-block; font-size: 10.5px !important; font-weight: 800; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 99px; background: rgba(var(--gold-rgb), 0.14); color: var(--gold); }
body.tp #botApp .manual-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(var(--hl-rgb), 0.07); border-radius: 14px; background: rgba(var(--hl-rgb), 0.03); }
body.tp #botApp .manual-choice > span { display: flex; flex-direction: column; gap: 2px; font-size: 13px !important; }
body.tp #botApp .manual-choice small { color: var(--dim); }
body.tp #botApp .manual-choice > div { display: flex; gap: 7px; flex-wrap: wrap; }
body.tp #botApp .manual-choice .take.selected { color: #03140e; background: var(--up); border-color: transparent; }
body.tp #botApp .manual-choice .avoid.selected { color: #fff; background: var(--dim); border-color: transparent; }
body.tp #botApp .bot-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 10px 0; font-size: 13px !important; color: var(--dim); }
body.tp #botApp .bot-line b { color: var(--ink); }
body.tp #botApp .bot-line small { flex: 1 1 100%; color: var(--faint); font-size: 12px !important; }

/* buttons, segments, switches, fields */
body.tp #botApp .btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 15px; border-radius: 99px; background: rgba(var(--hl-rgb), 0.05); border: 1px solid rgba(var(--hl-rgb), 0.12); font-size: 13px !important; font-weight: 700; color: var(--ink); white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s; }
body.tp #botApp .btn:hover { background: rgba(var(--hl-rgb), 0.09); }
body.tp #botApp .btn.primary { color: #03140e; border-color: transparent; background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)); box-shadow: 0 6px 18px rgba(var(--up-rgb), 0.25); }
body.tp #botApp .btn.take { border-color: rgba(var(--up-rgb), 0.45); color: var(--up); }
body.tp #botApp .btn.avoid { border-color: rgba(var(--down-rgb), 0.35); color: var(--down-soft); }
body.tp #botApp .seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.08); flex-wrap: wrap; }
body.tp #botApp .seg button { height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12.5px !important; font-weight: 650; color: var(--dim); cursor: pointer; }
body.tp #botApp .seg button.on { color: #03140e; background: var(--ink); }
body.tp #botApp #tfilter b { margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: #1b1405; font-size: 10.5px !important; }
body.tp #botApp #tfilter b:empty { display: none; }
body.tp #botApp .switch { position: relative; width: 46px; height: 28px; flex: none; }
body.tp #botApp .switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
body.tp #botApp .switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(var(--hl-rgb), 0.12); transition: background .2s; }
body.tp #botApp .switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(var(--shade-rgb), 0.4); transition: transform .2s; }
body.tp #botApp .switch input:checked + span { background: linear-gradient(90deg, var(--cyan), var(--up)); }
body.tp #botApp .switch input:checked + span::after { transform: translateX(18px); }
body.tp #botApp select, body.tp #botApp .stepper, body.tp #botApp textarea, body.tp #botApp input[type="date"] {
  background: var(--field) !important; color: var(--ink) !important; border: 1px solid rgba(var(--hl-rgb), 0.12) !important; border-radius: 12px !important; font: inherit; font-size: 14px !important; box-shadow: none !important;
}
body.tp #botApp select { height: 36px; padding: 0 12px; }
body.tp #botApp textarea { width: 100%; padding: 10px 12px; resize: vertical; min-height: 64px; }
body.tp #botApp textarea:focus, body.tp #botApp select:focus { outline: none; border-color: rgba(var(--up-rgb), 0.55) !important; }
body.tp #botApp .stepper { display: inline-flex; align-items: center; }
body.tp #botApp .stepper button { width: 38px; height: 36px; font-size: 18px; color: var(--ink); cursor: pointer; }
body.tp #botApp .stepper b { min-width: 28px; text-align: center; }

/* today + stats */
body.tp #botApp .hero { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; padding: 0; background: none; border: 0; min-height: 0; }
body.tp #botApp .hero .big { margin: 0; }
body.tp #botApp .kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.tp #botApp .kpi { background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.07); border-radius: 12px; padding: 10px 12px; min-width: 0; }
body.tp #botApp .kpi span { display: block; font-size: 10.5px !important; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
body.tp #botApp .kpi b { display: block; font-size: 18px !important; font-weight: 750; margin-top: 2px; letter-spacing: -0.02em; }
body.tp #botApp .c-today #today { display: flex; flex-direction: column; gap: 14px; }
body.tp #botApp .today-note { order: 3; margin: 0; font-size: 11.5px !important; color: var(--faint); }
body.tp #botApp .c-today .kpis { order: 2; }
body.tp #botApp .chart { height: 220px; position: relative; }
body.tp #botApp .chart.short { height: 150px; }
body.tp #botApp .chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
body.tp #botApp .chart .none { height: 100%; display: grid; place-items: center; color: var(--dim); font-size: 13px; text-align: center; border: 1px dashed rgba(var(--hl-rgb), 0.12); border-radius: 14px; }

/* market bias */
body.tp #botApp .bias { display: flex; flex-direction: column; gap: 16px; }
body.tp #botApp .bias-main { display: flex; align-items: center; gap: 16px; }
body.tp #botApp .bias-arrow { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: rgba(var(--hl-rgb), 0.05); color: var(--dim); border: 1px solid rgba(var(--hl-rgb), 0.1); }
body.tp #botApp .bias.up .bias-arrow { color: var(--up); background: rgba(var(--up-rgb), 0.1); border-color: rgba(var(--up-rgb), 0.35); box-shadow: 0 0 30px rgba(var(--up-rgb), 0.15); }
body.tp #botApp .bias.down .bias-arrow { color: var(--down); background: rgba(var(--down-rgb), 0.1); border-color: rgba(var(--down-rgb), 0.35); box-shadow: 0 0 30px rgba(var(--down-rgb), 0.15); }
body.tp #botApp .bias-main b { display: block; font-family: "Iowan Old Style", Charter, Georgia, serif; font-size: 30px !important; font-weight: 600; letter-spacing: -0.01em; }
body.tp #botApp .bias.up .bias-main b { color: var(--up); }
body.tp #botApp .bias.down .bias-main b { color: var(--down); }
body.tp #botApp .bias-main small { color: var(--dim); font-size: 13px !important; }
body.tp #botApp .tf-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
body.tp #botApp .tf { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 12px; background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.08); min-width: 0; }
body.tp #botApp .tf span { font-size: 11.5px !important; font-weight: 650; color: var(--dim); white-space: nowrap; }
body.tp #botApp .tf i { font-style: normal; font-size: 17px; color: var(--faint); }
body.tp #botApp .tf em { font-style: normal; font-size: 11px !important; color: var(--faint); }
body.tp #botApp .tf small { font-size: 10.5px !important; color: var(--faint); padding: 1px 7px; border-radius: 99px; background: rgba(var(--hl-rgb), 0.05); }
body.tp #botApp .tf.up { border-color: rgba(var(--up-rgb), 0.3); }
body.tp #botApp .tf.up i, body.tp #botApp .tf.up em, body.tp #botApp .tf small.up { color: var(--up); }
body.tp #botApp .tf.down { border-color: rgba(var(--down-rgb), 0.3); }
body.tp #botApp .tf.down i, body.tp #botApp .tf.down em, body.tp #botApp .tf small.down { color: var(--down); }
body.tp #botApp .bias-note { margin: 0; font-size: 12px !important; color: var(--faint); }

/* activity feed */
body.tp #botApp .feed { list-style: none; margin: 0; padding: 0 12px 0 0; scrollbar-width: thin; }
body.tp #botApp .feed li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; padding: 11px 0 11px 22px; border-top: 1px solid rgba(var(--hl-rgb), 0.07); }
body.tp #botApp .feed li:first-child { border-top: 0; padding-top: 2px; }
body.tp #botApp .feed .dot { position: absolute; left: 2px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(var(--cyan-rgb), 0.14); }
body.tp #botApp .feed li:first-child .dot { top: 8px; }
body.tp #botApp .feed .k-banked .dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.14); }
body.tp #botApp .feed .k-close .dot { background: var(--up); box-shadow: 0 0 0 4px rgba(var(--up-rgb), 0.14); }
body.tp #botApp .feed .k-skip .dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.14); }
body.tp #botApp .feed .t { font-weight: 650; font-size: 14px !important; }
body.tp #botApp .feed .b { grid-column: 1; font-size: 12.5px !important; color: var(--dim); }
body.tp #botApp .feed time { grid-row: 1; grid-column: 2; font-size: 12px; color: var(--faint); }
body.tp #botApp .t2 { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-size: 11px; color: var(--faint); }
body.tp #botApp .t2 b { color: var(--dim); font-weight: 650; font-size: 12px !important; }
body.tp #botApp .t2 small { font-size: 10.5px !important; color: var(--faint); }
body.tp #botApp .rv-chip { margin-left: 8px; padding: 2px 10px; border-radius: 99px; font-size: 11px !important; font-weight: 700; color: #1b1405; background: var(--gold); vertical-align: 1px; cursor: pointer; }
body.tp #botApp .rv-done { margin-left: 8px; font-style: normal; font-size: 11px; color: var(--up); }

/* to journal today */
body.tp #botApp .c-journal { border-color: rgba(var(--gold-rgb), 0.4) !important; background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.08), rgba(var(--cyan-rgb), 0.03)), var(--surface) !important; }
body.tp #botApp .jr-sub { font-size: 12px !important; color: var(--faint); }
body.tp #botApp .jr-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(var(--hl-rgb), 0.07); }
body.tp #botApp .jr-row:first-child { border-top: 0; }
body.tp #botApp .jr-what { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
body.tp #botApp .jr-when { width: 100%; font-size: 12px !important; color: var(--dim); }

/* trades */
body.tp #botApp .day-h { display: flex; justify-content: space-between; font-size: 11px !important; font-weight: 700; color: var(--dim); padding: 16px 4px 8px; text-transform: uppercase; letter-spacing: 0.1em; }
body.tp #botApp .day-h:first-child { padding-top: 0; }
body.tp #botApp .row { box-sizing: border-box; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 4px 12px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 6px; background: rgba(var(--hl-rgb), 0.025); border: 1px solid rgba(var(--hl-rgb), 0.07); border-radius: 14px; color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s; }
body.tp #botApp .row:hover { border-color: rgba(var(--up-rgb), 0.35); background: rgba(var(--up-rgb), 0.04); }
body.tp #botApp .row .tm { font-size: 13px; color: var(--dim); }
body.tp #botApp .row .tm .t2 { align-items: flex-start; }
body.tp #botApp .row .what { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px !important; font-weight: 650; flex-wrap: wrap; }
body.tp #botApp .row .what small { flex-basis: 100%; color: var(--dim); font-size: 12px !important; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tp #botApp .row .res { text-align: right; font-weight: 750; font-size: 15px !important; }
body.tp #botApp .row .res small { display: block; font-weight: 500; font-size: 12px !important; color: var(--dim); }
body.tp #botApp .detail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
body.tp #botApp .detail .choose { display: flex; gap: 8px; margin-top: 4px; grid-column: 1 / -1; }
body.tp #botApp .bot-why { display: flex; flex-direction: column; gap: 2px; grid-column: 1 / -1; margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--cyan-rgb), 0.07); border: 1px solid rgba(var(--cyan-rgb), 0.18); text-align: left; }
body.tp #botApp .bot-why b { font-size: 12.5px !important; }
body.tp #botApp .bot-why small { color: var(--dim); font-size: 11.5px !important; }
body.tp #botApp .bot-why ul { margin: 4px 0 0 16px; padding: 0; font-size: 11.5px; color: var(--dim); }
body.tp #botApp .narr-inline b.up { color: var(--up); }
body.tp #botApp .narr-inline b.down { color: var(--down); }
body.tp #botApp .grade { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 6px; font-size: 11px !important; font-weight: 800; vertical-align: middle; }
body.tp #botApp .grade.g-ap { background: rgba(var(--up-rgb), 0.18); color: var(--up); box-shadow: inset 0 0 0 1px rgba(var(--up-rgb), 0.45); }
body.tp #botApp .grade.g-a { background: rgba(var(--up-rgb), 0.1); color: var(--up); }
body.tp #botApp .grade.g-b { background: rgba(var(--gold-rgb), 0.12); color: var(--gold); }
body.tp #botApp .grade.g-c { background: rgba(var(--down-rgb), 0.12); color: var(--down); }

/* skipped-signal review cards */
body.tp #botApp .rv-intro { margin: 0 0 12px; color: var(--dim); font-size: 13px !important; }
body.tp #botApp .rv-card { padding: 14px; margin-bottom: 10px; border-radius: 16px; background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--gold-rgb), 0.28); }
body.tp #botApp .rv-card.done { border-color: rgba(var(--hl-rgb), 0.07); opacity: 0.9; }
body.tp #botApp .rv-card.flash { animation: botFlash 1.6s ease; }
@keyframes botFlash { 0%, 40% { box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.55); } 100% { box-shadow: none; } }
body.tp #botApp .rv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.tp #botApp .rv-when { margin-left: auto; color: var(--dim); font-size: 12px !important; }
body.tp #botApp .rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
body.tp #botApp .rv-box { padding: 10px 12px; border-radius: 12px; background: rgba(var(--shade-rgb), 0.2); border: 1px solid rgba(var(--hl-rgb), 0.07); }
body.tp #botApp .rv-box > span { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
body.tp #botApp .rv-box p { margin: 6px 0 0; font-size: 13.5px !important; }
body.tp #botApp .rv-box small { color: var(--dim); }
body.tp #botApp .rv-res b { font-size: 20px !important; margin-right: 8px; }
body.tp #botApp .rv-why { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--dim); }
body.tp #botApp .rv-ask { display: grid; gap: 8px; }
body.tp #botApp .rv-ask > span { font-family: "Iowan Old Style", Charter, Georgia, serif; font-size: 17px !important; color: var(--ink); }
body.tp #botApp .rv-btns { display: flex; gap: 8px; flex-wrap: wrap; }
body.tp #botApp .rv-btns .btn.on { border-color: var(--gold); color: var(--gold); background: rgba(var(--gold-rgb), 0.1); }
body.tp #botApp .rv-ask .btn.primary { justify-self: start; }
body.tp #botApp .rv-mine { font-size: 13px !important; color: var(--dim); }

/* settings */
body.tp #botApp .set-group { padding: 4px 0 16px; }
body.tp #botApp .set-group + .set-group { border-top: 1px solid rgba(var(--hl-rgb), 0.07); padding-top: 16px; }
body.tp #botApp .set-group h3 { margin: 0 0 8px; font-family: "Iowan Old Style", Charter, Georgia, serif; font-size: 19px !important; font-weight: 600; }
body.tp #botApp .note { font-size: 13px !important; color: var(--dim); margin: -2px 0 8px; }
body.tp #botApp .set { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; min-height: 46px; }
body.tp #botApp .set label { flex: 1; font-weight: 600; font-size: 14px !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--ink) !important; display: block; }
body.tp #botApp .set small { display: block; color: var(--dim); font-size: 12px !important; font-weight: 400; text-transform: none !important; letter-spacing: 0 !important; margin-top: 2px; }
body.tp #botApp .set input[type="date"] { width: auto !important; height: 36px; padding: 0 10px !important; flex: none; }
body.tp #botApp .set > select, body.tp #botApp .set > span { flex: none; }
body.tp #botApp .copy { display: flex; align-items: center; gap: 8px; background: rgba(var(--shade-rgb), 0.25); border: 1px solid rgba(var(--hl-rgb), 0.07); border-radius: 12px; padding: 6px 6px 6px 12px; margin: 4px 0 10px; }
body.tp #botApp .copy code { flex: 1; font: 13px ui-monospace, SFMono-Regular, Consolas, monospace; overflow-x: auto; white-space: nowrap; color: #9ff5d6; }
body.tp #botApp .steps { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--dim); }
body.tp #botApp .steps li { margin: 4px 0; }
body.tp #botApp .steps b { color: var(--ink); font-weight: 650; }

/* studio */
body.tp #botApp .studio-pill, body.tp #botApp .brain-pill { color: var(--up); font-size: 10px !important; font-weight: 800; letter-spacing: 0.14em; }
body.tp #botApp .brain-pill { color: var(--cyan); }
body.tp #botApp .studio-hero { padding: 18px; border: 1px solid rgba(var(--hl-rgb), 0.07); border-radius: 16px; background: linear-gradient(135deg, rgba(var(--up-rgb), 0.08), rgba(var(--cyan-rgb), 0.03)); }
body.tp #botApp .studio-hero h3 { margin: 0 0 7px; font-family: "Iowan Old Style", Charter, Georgia, serif; font-size: 22px !important; font-weight: 600; }
body.tp #botApp .studio-hero p { margin: 0; color: var(--dim); line-height: 1.5; }
body.tp #botApp .clip-list { display: grid; gap: 12px; margin-top: 14px; }
body.tp #botApp .clip { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px; border: 1px solid rgba(var(--hl-rgb), 0.07); border-radius: 14px; background: rgba(var(--hl-rgb), 0.025); }
body.tp #botApp .clip small { color: var(--dim); }
body.tp #botApp .clip .clip-state { color: var(--up); font-size: 12px !important; font-weight: 700; text-transform: uppercase; }
body.tp #botApp .clip-copy { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: 12.5px !important; }

/* brain */
body.tp #botApp .sum { margin-bottom: 18px; }
body.tp #botApp .sum-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.1), rgba(var(--gold-rgb), 0.05)); border: 1px solid rgba(var(--hl-rgb), 0.08); }
body.tp #botApp .sum-head b { display: block; font-family: "Iowan Old Style", Charter, Georgia, serif; font-size: 21px !important; font-weight: 600; }
body.tp #botApp .sum-head small { color: var(--dim); font-size: 13px !important; }
body.tp #botApp .sum-date { margin-left: auto; font-size: 11.5px !important; color: var(--faint); white-space: nowrap; }
body.tp #botApp .sum-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 5px rgba(var(--up-rgb), 0.15); }
body.tp #botApp .sum-dot.mid { background: var(--gold); box-shadow: 0 0 0 5px rgba(var(--gold-rgb), 0.15); }
body.tp #botApp .sum-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
body.tp #botApp .sum-card { padding: 14px; border-radius: 16px; background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.08); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
body.tp #botApp .sum-k { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
body.tp #botApp .sum-big { font-size: 34px !important; font-weight: 800; color: var(--up); line-height: 1; letter-spacing: -0.03em; }
body.tp #botApp .sum-big small { display: block; margin-top: 4px; font-size: 12px !important; font-weight: 500; color: var(--dim); letter-spacing: 0; }
body.tp #botApp .sum-line { font-size: 13px !important; color: var(--dim); }
body.tp #botApp .sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body.tp #botApp .sum-list b { display: block; font-size: 13.5px !important; font-weight: 650; }
body.tp #botApp .sum-list small { color: var(--faint); font-size: 11.5px !important; }
body.tp #botApp .sum-act { display: flex; align-items: baseline; gap: 8px; text-align: left; padding: 6px 0; border-top: 1px solid rgba(var(--hl-rgb), 0.07); font-size: 12.5px !important; color: var(--dim); background: none; }
body.tp #botApp button.sum-act { cursor: pointer; }
body.tp #botApp .sum-act b { font-size: 20px !important; color: var(--ink); }
body.tp #botApp button.sum-act:hover b { color: var(--up); }
body.tp #botApp .sum-empty { padding: 16px; color: var(--dim); }
body.tp #botApp .rs-details { margin-top: 16px; border-top: 1px solid rgba(var(--hl-rgb), 0.07); padding-top: 12px; }
body.tp #botApp .rs-details > summary { cursor: pointer; list-style: none; font-family: "Iowan Old Style", Charter, Georgia, serif; font-size: 18px; color: var(--ink); padding: 8px 0; }
body.tp #botApp .rs-details > summary::-webkit-details-marker { display: none; }
body.tp #botApp .rs-details > summary span { margin-left: 8px; font-family: inherit; font-size: 12px; color: var(--faint); }
body.tp #botApp .rs-details > summary::before { content: "+ "; color: var(--up); font-weight: 800; }
body.tp #botApp .rs-details[open] > summary::before { content: "− "; }
body.tp #botApp .rs { padding: 4px 0 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(var(--hl-rgb), 0.07); }
body.tp #botApp .rs-head { display: flex; align-items: center; gap: 10px; }
body.tp #botApp .rs-head h3 { margin: 0; font-size: 11px !important; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
body.tp #botApp .rs-head .chip { background: rgba(var(--cyan-rgb), 0.14); color: var(--cyan); }
body.tp #botApp .rs-sub { margin: 6px 0 14px; color: var(--dim); font-size: 13px !important; }
body.tp #botApp .rs-sub b { color: var(--ink); }
body.tp #botApp .rs-title { margin: 20px 0 10px; font-size: 11px !important; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
body.tp #botApp .rs-title span { margin-left: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); font-size: 12px !important; }
body.tp #botApp .rs-periods, body.tp #botApp .rs-setups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.tp #botApp .rs-period, body.tp #botApp .rs-setup { background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.07); border-radius: 14px; padding: 14px; min-width: 0; }
body.tp #botApp .rs-period.now { border-color: rgba(var(--cyan-rgb), 0.35); }
body.tp #botApp .rs-setup.is-watch { border-color: rgba(var(--down-rgb), 0.35); background: linear-gradient(180deg, rgba(var(--down-rgb), 0.07), rgba(var(--down-rgb), 0.015)); }
body.tp #botApp .rs-plabel { font-size: 11px !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; }
body.tp #botApp .rs-plabel span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); }
body.tp #botApp .rs-pf { margin-top: 8px; font-size: 30px !important; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
body.tp #botApp .rs-pf small { margin-left: 6px; font-size: 11px !important; font-weight: 700; color: var(--dim); letter-spacing: 0.08em; }
body.tp #botApp .rs-pnet { margin-top: 6px; font-size: 16px !important; font-weight: 700; }
body.tp #botApp .rs-pmeta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px !important; color: var(--dim); }
body.tp #botApp .rs-shead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.tp #botApp .rs-shead b { font-size: 15px !important; }
body.tp #botApp .rs-badge { font-size: 10px !important; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
body.tp #botApp .rs-badge.active { background: rgba(var(--up-rgb), 0.13); color: var(--up); }
body.tp #botApp .rs-badge.watch { background: rgba(var(--down-rgb), 0.15); color: var(--down); }
body.tp #botApp .rs-badge.learn { background: rgba(var(--hl-rgb), 0.07); color: var(--dim); }
body.tp #botApp .rs-sbig { margin: 10px 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 20px !important; font-weight: 750; }
body.tp #botApp .rs-sbig small { flex-basis: 100%; font-size: 12px !important; font-weight: 500; color: var(--dim); }
body.tp #botApp .rs-side { display: grid; grid-template-columns: 52px 1fr auto auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(var(--hl-rgb), 0.07); font-size: 12.5px !important; }
body.tp #botApp .rs-side > span:first-child { color: var(--dim); }
body.tp #botApp .rs-side .rs-badge { grid-column: 1 / -1; justify-self: start; }
body.tp #botApp .rs-meter { height: 6px; border-radius: 99px; background: rgba(var(--hl-rgb), 0.06); overflow: hidden; }
body.tp #botApp .rs-meter i { display: block; height: 100%; border-radius: 99px; }
body.tp #botApp .rs-meter i.up, body.tp #botApp .rs-bars i.up, body.tp #botApp .rs-legend i.up { background: var(--up); }
body.tp #botApp .rs-meter i.mid, body.tp #botApp .rs-bars i.mid, body.tp #botApp .rs-legend i.mid { background: var(--gold); }
body.tp #botApp .rs-meter i.down, body.tp #botApp .rs-bars i.down, body.tp #botApp .rs-legend i.down { background: var(--down); }
body.tp #botApp .rs-prop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 8px; background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.07); border-radius: 14px; }
body.tp #botApp .rs-prop small { display: block; margin-top: 3px; color: var(--dim); font-size: 12px !important; }
body.tp #botApp .rs-act { display: flex; align-items: center; gap: 8px; }
body.tp #botApp .rs-act em { color: var(--dim); font-size: 12.5px; font-style: normal; }
body.tp #botApp .rs-yes { background: rgba(var(--up-rgb), 0.14); border-color: rgba(var(--up-rgb), 0.35); color: var(--up); }
body.tp #botApp .rs-empty { padding: 14px; border: 1px dashed rgba(var(--hl-rgb), 0.12); border-radius: 14px; color: var(--dim); font-size: 13px !important; }
body.tp #botApp .rs-empty b { display: block; color: var(--ink); font-size: 14px !important; margin-bottom: 2px; }
body.tp #botApp .rs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
body.tp #botApp .rs-item { display: grid; grid-template-columns: 1fr auto 58px; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(var(--hl-rgb), 0.07); }
body.tp #botApp .rs-itext { min-width: 0; }
body.tp #botApp .rs-itext b { display: block; font-size: 13.5px !important; font-weight: 650; }
body.tp #botApp .rs-itext small { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--faint); font-size: 11.5px !important; }
body.tp #botApp .rs-scope { padding: 1px 7px; border-radius: 99px; background: rgba(var(--hl-rgb), 0.06); color: var(--dim); font-size: 10.5px !important; font-weight: 700; }
body.tp #botApp .rs-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
body.tp #botApp .rs-bars i { display: block; width: 7px; border-radius: 3px 3px 1px 1px; opacity: 0.9; }
body.tp #botApp .rs-ival { text-align: right; font-size: 17px !important; font-weight: 750; }
body.tp #botApp .rs-ival small { display: block; font-size: 10px !important; font-weight: 650; color: var(--faint); letter-spacing: 0.04em; }
body.tp #botApp .rs-legend { margin-top: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11.5px; color: var(--faint); }
body.tp #botApp .rs-legend .rs-bars { height: 16px; }
body.tp #botApp .rs-legend .rs-bars i { width: 5px; }
body.tp #botApp .rs-legend > i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-left: 6px; }
body.tp #botApp .rs-grades, body.tp #botApp .rs-risk { display: grid; gap: 6px 10px; align-items: center; }
body.tp #botApp .rs-grades { grid-template-columns: 52px repeat(3, minmax(0, 1fr)); }
body.tp #botApp .rs-risk { grid-template-columns: minmax(120px, 1.1fr) repeat(3, minmax(0, 1fr)); }
body.tp #botApp .rs-grades .ghead, body.tp #botApp .rs-risk .ghead { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
body.tp #botApp .rs-grades .grade { margin: 0; height: 28px; font-size: 13px !important; }
body.tp #botApp .rs-grades .gcell, body.tp #botApp .rs-risk .gcell { background: rgba(var(--hl-rgb), 0.03); border: 1px solid rgba(var(--hl-rgb), 0.07); border-radius: 10px; padding: 6px 10px; display: flex; align-items: baseline; gap: 8px; }
body.tp #botApp .rs-grades .gcell b { font-size: 16px !important; }
body.tp #botApp .rs-grades .gcell small, body.tp #botApp .rs-risk .gcell small { color: var(--dim); font-size: 11.5px !important; }
body.tp #botApp .rs-risk .rs-rname { font-size: 13px !important; font-weight: 650; }
body.tp #botApp .rs-coach { margin-top: 16px; background: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.08), rgba(var(--up-rgb), 0.04)); border: 1px solid rgba(var(--cyan-rgb), 0.25); border-radius: 14px; padding: 12px 14px; }
body.tp #botApp .rs-coach summary { cursor: pointer; list-style: none; }
body.tp #botApp .rs-coach summary::-webkit-details-marker { display: none; }
body.tp #botApp .rs-coach-body { margin-top: 8px; font-size: 13.5px; }
body.tp #botApp .rs-coach-body h4 { margin: 14px 0 6px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
body.tp #botApp .rs-coach-body ul { margin: 0; padding-left: 18px; }
body.tp #botApp .rs-coach-body li { margin: 4px 0; color: var(--dim); }
body.tp #botApp .rs-coach-body li b { color: var(--ink); }
body.tp #botApp .rs-acct { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; font-size: 12px; color: var(--dim); }
body.tp #botApp .rs-acct .rs-meter { height: 8px; }
body.tp #botApp .teach-choice { display: flex; gap: 8px; margin: 9px 0; flex-wrap: wrap; }
body.tp #botApp .teach-choice .btn.on { color: #03140e; background: var(--up); border-color: transparent; }
body.tp #botApp .teach-choice .btn.on.avoid { color: #fff; background: var(--dim); }
body.tp #botApp #brain select { width: 100%; }
body.tp #botApp #brain .set select { width: auto; }
body.tp #botApp .brain-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; color: var(--dim); }
body.tp #botApp .brain-list li { padding: 6px 0; border-top: 1px solid rgba(var(--hl-rgb), 0.07); }
body.tp #botApp .brain-list li:first-child { border-top: 0; }

/* the bot's toast, above the dock */
body.tp #botApp .toast { position: fixed; left: 50%; bottom: calc(108px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 700; color: #03140e; background: var(--ink); box-shadow: 0 10px 30px rgba(var(--shade-rgb), 0.5); max-width: 90vw; }

@media (max-width: 760px) {
  body.tp #botApp .card { padding: 16px; }
  body.tp #botApp .big { font-size: 34px !important; }
  body.tp #botApp .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tp #botApp .tf-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.tp #botApp .detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tp #botApp .rv-grid { grid-template-columns: 1fr; }
  body.tp #botApp .rv-when { margin-left: 0; width: 100%; }
  body.tp #botApp .jr-row { grid-template-columns: 1fr; }
  body.tp #botApp .jr-row .btn { justify-self: start; }
  body.tp #botApp .rs-periods, body.tp #botApp .rs-setups, body.tp #botApp .rs-cols { grid-template-columns: 1fr; }
  body.tp #botApp .rs-risk { grid-template-columns: 1fr 1fr; }
  body.tp #botApp .rs-risk .ghead:first-child, body.tp #botApp .rs-risk .rs-rname { grid-column: 1 / -1; }
  body.tp #botApp .sum-grid { grid-template-columns: 1fr; }
  body.tp #botApp .bot-mark span { display: none; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  body.tp #botApp .sum-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================ the door (middle button) */
/* For the bot's owner the plus and the falcon take turns; inside the bot the
   same button holds the soldier and leads back to the journal. The icons
   are pinned to the centre of the button (a big image must not push the
   layout), and only transform / opacity animate. */
body.tp .tp-dock .add.door { position: relative; overflow: visible; }
body.tp .tp-dock .add.door .door-face { display: block !important; position: relative; width: 26px; height: 26px; flex: none; }
body.tp .tp-dock .add.door .door-face > * { position: absolute !important; inset: 0; margin: auto; display: grid !important; place-items: center; will-change: transform, opacity; transition: transform .5s cubic-bezier(.3,1.45,.4,1), opacity .3s ease; }
body.tp .tp-dock .door-plus { width: 24px; height: 24px; }
body.tp .tp-dock .door-plus .i { width: 24px; height: 24px; display: block; }
body.tp .tp-dock .door-falcon { width: 48px; height: 48px; max-width: none; object-fit: contain; opacity: 0; transform: scale(.25) rotate(-30deg); pointer-events: none; filter: drop-shadow(0 3px 10px rgba(var(--cyan-rgb), 0.55)); }
body.tp .tp-dock .door[data-phase="bot"] .door-plus { opacity: 0; transform: scale(.15) rotate(150deg); }
body.tp .tp-dock .door[data-phase="bot"] .door-falcon { opacity: 1; transform: scale(1) rotate(0deg); }
body.tp .tp-dock .door::after { content: ""; position: absolute; inset: -5px; border-radius: 22px; border: 2px solid rgba(var(--cyan-rgb), 0.7); opacity: 0; pointer-events: none; will-change: transform, opacity; }
body.tp .tp-dock .door[data-phase="bot"]::after { animation: doorRing 1.3s ease-out 1; }
@keyframes doorRing { 0% { opacity: .95; transform: scale(.82); } 100% { opacity: 0; transform: scale(1.4); } }
body.tp .tp-dock .door-label { display: none !important; }
/* the soldier, inside the bot */
body.tp #botApp .door-home .door-face { display: block !important; position: relative; width: 30px; height: 30px; flex: none; }
body.tp #botApp .door-home .door-face img { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; max-width: none; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(var(--shade-rgb), 0.45)); }
/* the background of the button changes colour by fading a layer, not by repainting */
body.tp .tp-dock .door::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
@media (min-width: 761px) {
  body.tp .tp-dock .door::before { background: radial-gradient(circle at 50% 35%, #15405f, #081422 78%); box-shadow: 0 0 0 1px rgba(var(--cyan-rgb), 0.6), 0 12px 30px rgba(var(--cyan-rgb), 0.38), inset 0 0 18px rgba(var(--cyan-rgb), 0.28); }
  body.tp .tp-dock .door[data-phase="bot"]::before { opacity: 1; }
  body.tp .tp-dock .door .door-face { z-index: 1; }
  body.tp #botApp .door-home > span:last-child { display: none; }
}
@media (max-width: 760px) {
  /* phone tab bar: an icon over a label */
  body.tp .tp-dock .add.door .door-face { width: 40px; height: 28px; }
  body.tp .tp-dock .add.door .door-plus { width: 38px; height: 26px; }
  body.tp .tp-dock .add.door .door-plus .i { width: 38px !important; height: 26px !important; margin: 0 !important; }
  body.tp .tp-dock .door-falcon { width: 40px; height: 40px; }
  body.tp .tp-dock .add.door .door-label { display: grid !important; }
  body.tp .tp-dock .door-label i { grid-area: 1 / 1; font-style: normal; transition: opacity .3s ease, transform .3s ease; }
  body.tp .tp-dock .door-label i:last-child { opacity: 0; transform: translateY(5px); }
  body.tp .tp-dock .door[data-phase="bot"] .door-label i:first-child { opacity: 0; transform: translateY(-5px); }
  body.tp .tp-dock .door[data-phase="bot"] .door-label i:last-child { opacity: 1; transform: none; color: #6fe3f5; }
  body.tp .tp-dock .door::after { inset: -2px 10%; border-radius: 14px; }
  body.tp #botApp .door-home .door-face { width: 40px; height: 28px; }
  body.tp #botApp .door-home .door-face img { width: 36px; height: 36px; }
  body.tp #botApp .door-home { color: var(--cream-hi) !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.tp .tp-dock .add.door .door-face > *, body.tp .tp-dock .door-label i { transition: opacity .2s linear; }
  body.tp .tp-dock .door[data-phase="bot"]::after { animation: none; }
}

/* ========================================================== the tear */
/* Only transform and opacity move (no filters, blurs or blend modes), so the
   phone's graphics chip does the work. */
.tear-stage { position: fixed; inset: 0; z-index: 9000; pointer-events: none; overflow: hidden; contain: strict; }
.tear-veil { position: absolute; inset: 0; background: #0a1322; will-change: opacity; }
.tear-piece { position: absolute; inset: 0; will-change: transform, opacity; transform-origin: 50% 60%; backface-visibility: hidden; }
.tear-left { transform-origin: 0% 70%; }
.tear-right { transform-origin: 100% 40%; }
.tear-inner { position: absolute; inset: 0; overflow: hidden; background: #0b1220; }
.tear-inner .tp-top { position: relative !important; z-index: 2; }
/* the copies paint only what is on screen */
.tear-edge, .tear-crack { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tear-edge path, .tear-crack path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tear-edge .halo { stroke: rgba(255, 238, 190, 0.28); stroke-width: 7px; }
.tear-edge .lip { stroke: #fff8e6; stroke-width: 1.6px; }
.tear-crack path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.tear-crack .glow { stroke: rgba(255, 232, 160, 0.35); stroke-width: 9px; }
.tear-crack .core { stroke: #fffef4; stroke-width: 1.6px; }
.tear-scrap { position: absolute; display: block; background: linear-gradient(135deg, #f4f0e2, #c9c1ab); will-change: transform, opacity; }
.tear-sweep { position: absolute; top: -10%; bottom: -10%; left: 0; width: 36%; will-change: transform, opacity; background: linear-gradient(90deg, transparent, rgba(255, 252, 214, 0.1), rgba(160, 240, 255, 0.16), transparent); }
body.tp #botApp .rv-live { display: block; margin-top: 2px; font-size: 12px !important; }

/* while tearing: no frosted-glass blur to recompute, idle animations rest */
body.tearing .tp-top, body.tearing .tp-dock { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body.tearing > #app *, body.tearing > #botApp * { animation-play-state: paused !important; }

/* centre the door icons exactly, whatever their size (auto margins stop
   centring once the image is wider than its box) */
body.tp .tp-dock .add.door .door-face > * { inset: auto !important; left: 50% !important; top: 50% !important; margin: 0 !important; translate: -50% -50%; }
body.tp #botApp .door-home .door-face img { inset: auto !important; left: 50% !important; top: 50% !important; margin: 0 !important; translate: -50% -50%; }

/* TEACH: your call on any trade, in a window over the bot */
body.tp #botApp .teach-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 9, 0.74); }
body.tp #botApp .teach-box { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(var(--hl-rgb), 0.1); box-shadow: 0 24px 60px rgba(var(--shade-rgb), 0.55); }
body.tp #botApp .teach-box .tm-q { font-family: "Iowan Old Style", Charter, Georgia, serif; font-size: 18px !important; color: var(--ink); }
body.tp #botApp .lv-note { grid-column: 1 / -1; width: 100%; font-size: 12.5px !important; color: var(--dim); }
body.tp #botApp .btn.teach { border-color: rgba(var(--gold-rgb), 0.45); color: var(--gold); }

/* the soldier stands on its own, like the header logo: no tile, ring or glow behind it */
body.tp #botApp .door-home, body.tp #botApp .door-home:hover { background: none !important; box-shadow: none !important; border: 0 !important; }
body.tp #botApp .door-home::before, body.tp #botApp .door-home::after { display: none !important; }
@media (min-width: 761px) {
  body.tp #botApp .door-home .door-face { width: 52px; height: 52px; }
  body.tp #botApp .door-home .door-face img { width: 56px; height: 56px; }
}
/* eye panel: what moves your calls most */
body.tp #botApp .eye-drivers { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 8px; font-size: 12px; }
body.tp #botApp .eye-drivers span { color: var(--dim); width: 100%; }
body.tp #botApp .eye-drivers b { font-weight: 600; padding: 2px 8px; border-radius: 99px; background: rgba(var(--hl-rgb), .05); }
/* Live: Activity entries open their trade; a closed trade's result in a pill */
body.tp #botApp .feed li.tap { cursor: pointer; border-radius: 10px; transition: background .15s ease; }
body.tp #botApp .feed li.tap:hover { background: rgba(var(--hl-rgb), 0.035); }
body.tp #botApp .feed li.tap:focus-visible { outline: 2px solid rgba(var(--cyan-rgb), 0.6); outline-offset: -2px; }
body.tp #botApp .feed .fval { display: inline-block; margin-right: 8px; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.25; color: var(--dim); background: rgba(var(--hl-rgb), 0.06); box-shadow: inset 0 0 0 1px rgba(var(--hl-rgb), 0.1); }
body.tp #botApp .feed .fval.up { color: #3df5b4; background: rgba(var(--up-rgb), 0.14); box-shadow: inset 0 0 0 1px rgba(var(--up-rgb), 0.45); }
body.tp #botApp .feed .fval.down { color: #ff6b7d; background: rgba(255, 77, 99, 0.13); box-shadow: inset 0 0 0 1px rgba(255, 77, 99, 0.45); }
body.tp #botApp .row.flash { animation: botFlash 1.6s ease; border-radius: 10px; }
/* the falcon stands bare: no tile, frame or ring around it. On desktop the
   green of the plus lives on a layer that fades out (opacity only). */
body.tp .tp-dock .door[data-phase="bot"]::after { animation: none !important; opacity: 0 !important; }
body.tp .tp-dock .door-falcon { filter: drop-shadow(0 3px 8px rgba(var(--shade-rgb), 0.45)); }
@media (min-width: 761px) {
  body.tp .tp-dock .add.door { background: none !important; box-shadow: none !important; }
  body.tp .tp-dock .door::before { opacity: 1; background: linear-gradient(145deg, #3df5b4, var(--up) 55%, var(--cyan)); box-shadow: 0 10px 24px rgba(var(--up-rgb), 0.35), inset 0 1px 0 rgba(var(--hl-rgb), 0.35); }
  body.tp .tp-dock .door[data-phase="bot"]::before { opacity: 0; }
  body.tp .tp-dock .door-falcon { width: 58px; height: 58px; }
}


/* ----------------------------------------------------------- palettes */
body.tp {
  --ink-2: #cfd7e1; --ink-soft: #dfe6ee; --info-ink: #cfe9ff; --warn: #ffb84d; --dim-2: #6d7a8c;
  --field: #0e1b2e; --field-top: #13223a; --tabbar: #0f1c31; --switch-off: #1b2633;
  --down-soft: #ff8a9a; --on-ink: #06101a; --cream-hi: #fffcbc;
  --hl-rgb: 255, 255, 255; --up-rgb: 8, 212, 140; --down-rgb: 255, 64, 94; --cyan-rgb: 8, 188, 212;
  --cream-rgb: 255, 252, 188; --shade-rgb: 0, 0, 0; --bg-rgb: 11, 22, 40; --scrim-rgb: 2, 5, 9;
  --surface2-rgb: 22, 40, 65; --ink-rgb: 238, 243, 248; --gold-rgb: 255, 159, 28;
}
/* Light: cool paper background, white cards, navy ink. Accents are deeper
   so they stay readable on white; selected pills invert to navy. */
body.tp.tp-light {
  color-scheme: light;
  --bg: #eef2f8; --surface: #ffffff; --surface-2: #f7f9fc; --surface-3: #e6ecf5;
  --field: #f3f6fb; --field-top: #ffffff; --tabbar: #ffffff; --switch-off: #d5dce8;
  --ink: #0f1b2d; --ink-2: #2c3a52; --ink-soft: #16233a; --on-ink: #ffffff;
  --dim: #5a6a82; --dim-2: #6d7c93; --faint: #8b98ad; --info-ink: #0b5f73; --warn: #b26a00;
  --up: #059669; --down: #e11d48; --down-soft: #be123c; --cyan: #0e7f96; --gold: #c2710c;
  /* the old stylesheets use --cream as plain text (white in dark): navy here */
  --cream: #0f1b2d; --cream-hi: #8a5a00;
  --hair: rgba(15, 27, 45, 0.08); --hair-2: rgba(15, 27, 45, 0.14);
  --hl-rgb: 15, 27, 45; --up-rgb: 5, 150, 105; --down-rgb: 225, 29, 72; --cyan-rgb: 14, 127, 150;
  --cream-rgb: 176, 120, 10; --shade-rgb: 128, 146, 176; --bg-rgb: 238, 242, 248; --scrim-rgb: 30, 41, 59;
  --surface2-rgb: 247, 249, 252; --ink-rgb: 15, 27, 45; --gold-rgb: 194, 113, 12;
}
/* Light: the few places that need more than a colour swap */
html body.tp.tp-light {
  background:
    radial-gradient(1100px 620px at -8% -18%, rgba(255, 196, 92, 0.16), transparent 62%),
    radial-gradient(900px 520px at 108% -10%, rgba(14, 127, 150, 0.12), transparent 60%),
    #eef2f8 !important;
}
body.tp.tp-light :is(.tp-main, .tp-sheet) :is(.card, .pane, .set-card, .signal, .ledger, .mt-student, .mt-item, .exp-go, .dayc, .fund) { box-shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 8px 24px rgba(15, 27, 45, 0.05); }
body.tp.tp-light .tp-top { background: rgba(255, 255, 255, 0.86) !important; border-bottom-color: rgba(15, 27, 45, 0.08) !important; }
body.tp.tp-light .tp-dock { box-shadow: 0 10px 30px rgba(15, 27, 45, 0.16), 0 1px 0 rgba(255, 255, 255, 0.9) inset !important; }
body.tp.tp-light .tp-viewer { background: rgba(8, 12, 20, 0.94) !important; }
body.tp.tp-light .tp-viewer .tp-viewer-cap, body.tp.tp-light .tp-viewer .tp-viewer-cap b { color: #e6ecf5 !important; }
body.tp.tp-light .tp-bar .mark img { filter: drop-shadow(0 2px 6px rgba(15, 27, 45, 0.25)); }
body.tp.tp-light .tp-main .headline em.up { background: rgba(5, 150, 105, 0.1); }
body.tp.tp-light .tp-main .headline em.down { background: rgba(225, 29, 72, 0.09); }
body.tp.tp-light .tp-main .headline em.cream { background: rgba(176, 120, 10, 0.1); }
body.tp.tp-light .thumb, body.tp.tp-light .bc-thumb { background-color: #1a2233 !important; }
body.tp.tp-light .tp-main .perf .echip.down + .chip-t { fill: #fff; }
body.tp.tp-light .tp-main .net.up { background: linear-gradient(180deg, #10b981, #047857); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.tp.tp-light .tp-main .net.down { background: linear-gradient(180deg, #fb7185, #be123c); -webkit-background-clip: text; background-clip: text; color: transparent; }
