/* TradeTomo hosted preview. Tokens and the instrument card are taken from the public site (app/public/css/styles.css:
   .preview-card, .rp-head, .view, .alert-line, .gauges, .gauge, .plan, .avatar) so the dashboard tile IS the landing-page
   briefing card, adapted for a grid and for phones. */
@font-face { font-family: Manrope; src: url(brand/fonts/Manrope-Variable.ttf) format('truetype'); font-weight: 200 800; font-display: swap; }
:root { color-scheme: dark;
  --tt-bg: #0e141b; --tt-surface: #17222d; --tt-surface-raised: #1d2b37; --tt-text: #f1f5f4; --tt-soft: #b7c6cf; --tt-muted: #a8b5bf; --tt-line: #344653;
  --tt-accent: #36d8b4; --tt-accent-hover: #6ae7ca; --tt-on-accent: #0e141b; --tt-bullish: #56c79f; --tt-bearish: #e08088; --tt-mixed: #dcc28b; --tt-wait: #a8b5bf;
  --tt-font: Manrope, system-ui, 'Segoe UI', -apple-system, 'Helvetica Neue', Arial, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--tt-bg); color: var(--tt-text); font: 400 16px/1.55 var(--tt-font); overflow-x: hidden; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 26px; margin: 6px 0 10px; } h2 { font-size: 19px; margin: 26px 0 10px; } h3 { font-size: 16px; margin: 0 0 6px; } h4 { margin: 0; }
p { margin: 0 0 10px; } a { color: var(--tt-accent); } a:hover { color: var(--tt-accent-hover); }
:focus-visible { outline: 3px solid var(--tt-accent); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--tt-muted); } .small { font-size: 14px; } .tiny { font-size: 12px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--tt-line); position: sticky; top: 0; background: var(--tt-bg); z-index: 5; }
.top img { display: block; }
.pill { font-size: 12px; font-weight: 600; border: 1px solid var(--tt-line); border-radius: 999px; padding: 3px 10px; color: var(--tt-muted); }
.banner { background: #2a2413; color: var(--tt-mixed); border-bottom: 1px solid #5a4d22; padding: 8px 16px; font-size: 13px; }
main { max-width: 1240px; margin: 0 auto; padding: 14px 16px 40px; outline: none; }
main.narrow { max-width: 760px; }
.foot { max-width: 1240px; margin: 0 auto; padding: 0 16px 32px; color: var(--tt-muted); font-size: 12px; }
/* controls */
label.field { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=email], input[type=text], textarea { width: 100%; font: inherit; color: var(--tt-text); background: var(--tt-surface-raised); border: 1px solid var(--tt-line); border-radius: 10px; padding: 12px; min-height: 48px; }
textarea { min-height: 84px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; background: var(--tt-accent); color: var(--tt-on-accent); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--tt-accent-hover); color: var(--tt-on-accent); }
.btn.block { width: 100%; margin-top: 14px; }
.btn.secondary { background: transparent; color: var(--tt-text); border: 1px solid var(--tt-line); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: center; background: var(--tt-surface-raised); border: 1px solid var(--tt-line); border-radius: 12px; padding: 12px; min-height: 52px; }
.choice input { width: 20px; height: 20px; accent-color: var(--tt-accent); flex: none; }
.error { color: var(--tt-bearish); margin: 8px 0 0; }
.dev { border: 1px dashed var(--tt-mixed); color: var(--tt-mixed); border-radius: 12px; padding: 12px; margin: 12px 0; font-size: 14px; }
.dev code { font-size: 22px; letter-spacing: 3px; color: var(--tt-text); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
/* dashboard grid: as many readable tiles as fit; one column on phones */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22.5rem), 1fr)); gap: 16px; align-items: start; }
/* ---- compact card: sections line up across a desktop row (app.js equalize); panels extend only their own card */
.preview-card .sec { margin-bottom: 12px; }
.preview-card .sec-actions { margin-bottom: 0; }
.badges { min-height: 26px; }
.preview-card h3.inst { font-size: 21px; margin: 2px 0 2px; overflow-wrap: anywhere; }
.preview-card h3.inst .sym { font-size: 14px; font-weight: 600; color: var(--tt-muted); }
.setup { margin: 0; font-size: 14px; font-weight: 600; color: var(--tt-soft); }
.disclose { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; font: inherit; color: var(--tt-text); background: var(--tt-surface-raised); border: 1px solid var(--tt-line); border-radius: 12px; padding: 10px 14px; min-height: 48px; cursor: pointer; }
.disclose:hover { border-color: var(--tt-muted); }
.disclose .d-body { flex: 1; min-width: 0; }
.chev { flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--tt-accent); border-bottom: 2px solid var(--tt-accent); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
.disclose[aria-expanded="true"] .chev { transform: rotate(-135deg); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }
.view-row { background: linear-gradient(110deg, #17222d, #102827); }
.view-row.bearish { background: linear-gradient(110deg, #17222d, #2a1d22); } .view-row.mixed { background: linear-gradient(110deg, #17222d, #2a261c); } .view-row.awaiting { background: var(--tt-surface-raised); }
.view-row .lbl { font-size: 19px; font-weight: 700; line-height: 1.25; }
.view-row.bullish .lbl { color: var(--tt-bullish); } .view-row.bearish .lbl { color: var(--tt-bearish); } .view-row.mixed .lbl { color: var(--tt-mixed); } .view-row.awaiting .lbl { color: var(--tt-wait); }
.view-row .conf { font-size: 15px; font-weight: 600; color: var(--tt-text); }
.view-row.static { border: 1px solid var(--tt-line); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.view-row.static .lbl { font-size: 16px; }
.panel { border: 1px solid var(--tt-line); background: var(--tt-bg); border-radius: 12px; padding: 12px 14px; margin: -6px 0 12px; font-size: 14px; color: var(--tt-soft); }
.panel h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tt-accent); margin: 10px 0 4px; }
.panel h4:first-child { margin-top: 0; }
.panel p { margin: 0 0 6px; }
.preview-card .sec-gauges { gap: 10px; }
.preview-card .gauge { padding: 10px 12px; }
.sec-fresh p { margin: 0 0 2px; font-size: 13px; color: var(--tt-soft); }
.sec-fresh p.next { color: var(--tt-muted); }
.sec-fresh p.next b { color: var(--tt-text); }
.status-row .d-body { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; }
.st, .notice { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.st .ico, .notice .ico { flex: 0 0 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; line-height: 1; }
.st.ok { color: var(--tt-accent); } .st.ok .ico { background: var(--tt-accent); color: var(--tt-on-accent); }
.st.neutral { color: var(--tt-soft); } .st.neutral .ico { border: 2px solid var(--tt-muted); color: var(--tt-soft); }
.st.warn { color: var(--tt-mixed); } .st.warn .ico { background: var(--tt-mixed); color: var(--tt-on-accent); }
.st.bad { color: #f0a6ad; } .st.bad .ico { background: var(--tt-bearish); color: var(--tt-on-accent); }
.notice { border-radius: 999px; padding: 3px 10px 3px 4px; }
.notice.critical { color: #f6d7da; background: rgba(224,128,136,.16); border: 1px solid #7c3e45; } .notice.critical .ico { background: var(--tt-bearish); color: var(--tt-on-accent); }
.notice.warning { color: #f3e6c6; background: rgba(220,194,139,.12); border: 1px solid #8a7240; } .notice.warning .ico { background: var(--tt-mixed); color: var(--tt-on-accent); }
.notice.info { color: var(--tt-soft); border: 1px solid var(--tt-line); } .notice.info .ico { border: 2px solid var(--tt-muted); }
.chg { font-size: 12px; font-weight: 700; color: var(--tt-accent); border: 1px solid rgba(54,216,180,.55); border-radius: 999px; padding: 2px 9px; }
ul.notices, ul.chglist { margin: 0 0 6px; padding-left: 18px; } ul.notices li { margin: 0 0 6px; } ul.notices li.critical b { color: #f6d7da; } ul.notices li.warning b { color: #f3e6c6; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 4px 0 6px; font-size: 13px; } dl.facts dt { color: var(--tt-muted); } dl.facts dd { margin: 0; color: var(--tt-text); }
.tile-actions { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan-btn[aria-expanded="true"] .show, .plan-btn[aria-expanded="false"] .hide { display: none; }
.plan-btn .d-body { flex: none; } .plan-btn { width: auto; min-height: 44px; }
.no-plan { flex: 1; min-width: 0; }
.panel .plan { margin: 0; } .panel .plan h4 { font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--tt-text); margin: 0 0 8px; }
.preview-card > .panel:last-child { margin: 12px 0 0; }
/* ---- the instrument card (from the landing page) */
.preview-card { background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.35); padding: 22px; }
.ill-label { display: inline-block; font-size: 12px; font-weight: 600; color: var(--tt-mixed); border: 1px solid #6b5a33; border-radius: 100px; padding: 3px 10px; margin: 0 6px 4px 0; }
.ill-label.exp { color: var(--tt-bearish); border-color: #6b3338; } .ill-label.ok { color: var(--tt-accent); border-color: rgba(54,216,180,.55); }
.rp-head { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; margin: 10px 0 12px; }
.rp-head .inst { font-size: 22px; font-weight: 700; color: var(--tt-text); }
.rp-head .inst span { font-size: 15px; font-weight: 600; color: var(--tt-muted); margin-left: 6px; }
.rp-head .meta { font-size: 13px; color: var(--tt-muted); }
.status-line { font-size: 13px; color: var(--tt-soft); margin: -4px 0 12px; display: flex; gap: 8px; align-items: baseline; }
.status-line > span:last-child { flex: 1; min-width: 0; }
.status-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tt-muted); flex: none; }
.status-line.updating .dot { background: var(--tt-accent); animation: pulse 1.2s infinite; } .status-line.failed .dot { background: var(--tt-bearish); } .status-line.ok .dot { background: var(--tt-bullish); }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .status-line.updating .dot { animation: none; } }
.changes { border: 1px solid rgba(54,216,180,.55); background: rgba(54,216,180,.08); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.changes b { color: var(--tt-accent); display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.changes ul { margin: 4px 0 0; padding-left: 18px; }
.view { display: flex; gap: 16px; align-items: center; justify-content: space-between; border: 1px solid var(--tt-line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; background: linear-gradient(110deg, #17222d, #102827); }
.view.bearish { background: linear-gradient(110deg, #17222d, #2a1d22); } .view.mixed { background: linear-gradient(110deg, #17222d, #2a261c); } .view.awaiting { background: var(--tt-surface-raised); }
.eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tt-accent); }
.view .lbl { font-size: 24px; font-weight: 700; line-height: 1.15; }
.view.bullish .lbl { color: var(--tt-bullish); } .view.bearish .lbl { color: var(--tt-bearish); } .view.mixed .lbl { color: var(--tt-mixed); } .view.awaiting .lbl { color: var(--tt-wait); }
.view p { margin: 4px 0 0; color: var(--tt-soft); font-size: 15px; }
.view .conf { text-align: right; white-space: nowrap; font-size: 12px; color: var(--tt-muted); font-weight: 600; }
.view .conf b { display: block; font-size: 18px; color: var(--tt-text); }
.alert-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #f3e6c6; background: rgba(220,194,139,.10); border: 1px solid #8a7240; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.alert-line .ico { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--tt-mixed); color: var(--tt-on-accent); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.alert-line.stale { color: #f6d7da; background: rgba(224,128,136,.10); border-color: #7c3e45; } .alert-line.stale .ico { background: var(--tt-bearish); }
.gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.gauge { border: 1px solid var(--tt-line); background: var(--tt-bg); border-radius: 14px; padding: 12px 14px; }
.gauge .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: static; padding: 0; border: 0; background: none; }
.gauge h4 { font-size: 14px; } .gauge .num { font-size: 20px; font-weight: 600; } .gauge .num small { font-size: 12px; color: var(--tt-muted); }
.gauge svg { width: 100%; height: auto; display: block; margin: 6px 0 2px; }
.gauge .val { font-weight: 700; font-size: 14px; } .gauge .val.bullish { color: var(--tt-bullish); } .gauge .val.bearish { color: var(--tt-bearish); } .gauge .val.mixed { color: var(--tt-mixed); } .gauge .val.awaiting { color: var(--tt-wait); }
.gauge .what { font-size: 12px; color: var(--tt-muted); margin: 4px 0 0; }
.plan { margin-bottom: 12px; }
.plan h4 { font-size: 16px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.plan ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plan li { border: 1px solid var(--tt-line); background: var(--tt-bg); border-radius: 12px; padding: 12px; font-size: 14px; color: var(--tt-soft); }
.plan .tag { display: block; color: var(--tt-accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--tt-line); object-fit: cover; flex: 0 0 40px; background: var(--tt-surface-raised); }
.next-event { font-size: 14px; color: var(--tt-soft); border-top: 1px solid var(--tt-line); padding-top: 10px; margin: 0 0 12px; }
.next-event b { color: var(--tt-text); }
.tile-actions { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.preparing { color: var(--tt-soft); }
.steps { list-style: none; padding: 0; margin: 8px 0 0; }
.steps li { padding: 4px 0 4px 24px; position: relative; color: var(--tt-muted); font-size: 14px; }
.steps li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--tt-line); }
.steps li.done { color: var(--tt-text); } .steps li.done::before { background: var(--tt-accent); border-color: var(--tt-accent); }
.steps li.now { color: var(--tt-text); font-weight: 700; } .steps li.now::before { border-color: var(--tt-accent); }
/* plan panels and gauges adapt to the room available, never squeezed */
@container (max-width: 560px) { .plan ol { grid-template-columns: 1fr; } }
.preview-card { container-type: inline-size; }
@media (max-width: 600px) { .preview-card { padding: 16px; border-radius: 16px; } .plan ol { grid-template-columns: 1fr; } .view .lbl { font-size: 22px; } .tiles { gap: 14px; } }
@media (max-width: 420px) { .gauges { grid-template-columns: 1fr; } }
/* ---- full briefing */
.card { background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: 14px; padding: 16px; margin: 0 0 12px; }
.version-bar { border: 1px solid var(--tt-line); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px; background: var(--tt-surface-raised); }
.version-bar.newer { border-color: rgba(54,216,180,.55); }
.tomo-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.tomo-note .bubble { background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: 4px 14px 14px 14px; padding: 10px 14px; color: var(--tt-soft); }
details { background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: 12px; margin: 0 0 8px; }
summary { padding: 14px 16px; font-weight: 700; cursor: pointer; min-height: 48px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
summary::-webkit-details-marker { display: none; } summary::after { content: '+'; color: var(--tt-accent); font-size: 20px; } details[open] summary::after { content: '–'; }
details .body { padding: 0 16px 14px; font-size: 14px; }
ul.plain { margin: 0; padding: 0; list-style: none; } ul.plain li { padding: 9px 0; border-top: 1px solid var(--tt-line); } ul.plain li:first-child { border-top: 0; }
.k { display: block; font-size: 12px; font-weight: 700; color: var(--tt-accent); text-transform: uppercase; letter-spacing: .04em; }
table.levels { width: 100%; border-collapse: collapse; font-size: 14px; }
table.levels th, table.levels td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--tt-line); vertical-align: top; }
table.levels th { color: var(--tt-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
.num-copy { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 15px; color: var(--tt-text); white-space: nowrap; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-wrap .cap { font-size: 12px; color: var(--tt-muted); margin: 6px 0 0; }
.qa { border-top: 1px solid var(--tt-line); padding: 12px 0; } .qa .q { font-weight: 700; margin: 0 0 6px; } .qa .a { white-space: pre-wrap; margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.chip { font: inherit; font-size: 13px; color: var(--tt-text); background: var(--tt-surface-raised); border: 1px solid var(--tt-line); border-radius: 999px; padding: 6px 12px; min-height: 36px; cursor: pointer; }
pre.text { white-space: pre-wrap; word-break: break-word; font: 14px/1.55 var(--tt-font); background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: 12px; padding: 14px; margin: 0; }
ol.check { margin: 0; padding-left: 20px; } ol.check li { margin: 0 0 6px; }
.note-count { font-size: 13px; color: var(--tt-muted); }
.preview-card .sec-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 340px) { .preview-card .sec-gauges { grid-template-columns: 1fr; } }
.preview-card .gauge h4 { font-size: 13px; }
/* gauges: a subtle gradient from each panel's own reading (same palette as the overall view, quieter) */
.gauge.bullish { background: linear-gradient(135deg, var(--tt-bg) 55%, rgba(86,199,159,.10)); }
.gauge.bearish { background: linear-gradient(135deg, var(--tt-bg) 55%, rgba(224,128,136,.10)); }
.gauge.mixed { background: linear-gradient(135deg, var(--tt-bg) 55%, rgba(220,194,139,.10)); }
/* Tomo appears once, beside the dashboard heading */
.dash-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dash-title h1 { margin: 0; }
.avatar.tomo-head { width: 48px; height: 48px; flex: 0 0 48px; }
.dash-intro { margin: -4px 0 14px; max-width: 70ch; }
/* overall view: always two rows - direction, then confidence - with the arrow centred on the right */
.view-row .d-body, .view-row.static .d-body { display: flex; flex-direction: column; gap: 2px; }
.view-row .conf { font-size: 0.95rem; font-weight: 600; color: var(--tt-text); }
.view-row.static .conf { color: var(--tt-soft); }
.view .conf-line { margin-top: 4px; font-size: 0.95rem; color: var(--tt-soft); font-weight: 600; } .view .conf-line b { color: var(--tt-text); }
/* the plan's condition in bold (timeframe, candle close, above/below, level) */
.plan li b.cond { color: var(--tt-text); font-weight: 700; }
/* price levels: each value has its own copy button */
.copy-cell { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy-one { font: inherit; font-size: 13px; font-weight: 600; color: var(--tt-accent); background: transparent; border: 1px solid rgba(54,216,180,.55); border-radius: 8px; min-height: 36px; min-width: 44px; padding: 0 10px; cursor: pointer; }
.copy-one:hover { background: rgba(54,216,180,.10); }
.preview-card .gauge .what { font-size: 12px; }
/* narrow space (small phones, enlarged text): react to the room actually available, not the viewport */
@container (max-width: 300px) { .preview-card .sec-gauges { grid-template-columns: 1fr; } }
#levels-to-copy { container-type: inline-size; }
.top { flex-wrap: wrap; } .top img { max-width: 100%; height: auto; }
@container (max-width: 380px) {
  table.levels thead { display: none; }
  table.levels tr { display: grid; grid-template-columns: 1fr; gap: 4px; border-top: 1px solid var(--tt-line); padding: 8px 0; }
  table.levels td { border: 0; padding: 0; }
}
/* ---- release 6: one gauge layout for Chart view and Economic data - heading and score on one row, the bar, the short
   state, then its explanation. Two heading lines are reserved while the gauges sit side by side, so the scores, bars and
   states line up whatever the heading length; stacked gauges reserve nothing. */
.gauge .g-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: start; }
.gauge .g-head h4 { font-size: 14px; line-height: 1.3; min-height: 2.6em; overflow-wrap: anywhere; }
.preview-card .gauge .g-head h4 { font-size: 13px; }
.gauge .num { font-size: 20px; font-weight: 600; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.gauge .num small { font-size: 12px; font-weight: 600; color: var(--tt-muted); margin-left: 1px; }
.gauge .g-state { font-weight: 700; font-size: 14px; line-height: 1.3; }
.gauge .g-state.bullish { color: var(--tt-bullish); } .gauge .g-state.bearish { color: var(--tt-bearish); } .gauge .g-state.mixed { color: var(--tt-mixed); } .gauge .g-state.awaiting { color: var(--tt-wait); }
.gauge .g-expl { font-size: 13px; color: var(--tt-soft); margin: 3px 0 0; line-height: 1.4; }
.preview-card .gauge .g-expl { font-size: 12px; }
main { container-type: inline-size; }
@container (max-width: 18.75em) { .preview-card .sec-gauges { grid-template-columns: 1fr; } .preview-card .gauge .g-head h4 { min-height: 0; } }
@media (max-width: 340px) { .preview-card .gauge .g-head h4 { min-height: 0; } }
@container (max-width: 30em) { main > .gauges { grid-template-columns: 1fr; } main > .gauges .g-head h4 { min-height: 0; } }
/* the service's latest check, kept apart from the report's own words */
.check-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; border: 1px solid var(--tt-line); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; background: var(--tt-surface); }
.check-line .lc { flex-basis: 100%; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tt-accent); }
.tomo-body { min-width: 0; } .tomo-cap { margin: 0 0 4px; }
.covers { overflow-wrap: anywhere; }
/* the sample before sign-in */
.sample-banner { border: 1px solid #5a4d22; background: #2a2413; color: var(--tt-mixed); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; overflow-wrap: anywhere; }
.sample-banner b { color: var(--tt-text); } .sample-banner .sp { display: block; margin-top: 4px; color: var(--tt-soft); }
.sample-cta { margin-top: 16px; }
/* trading preferences */
.choice .opt { display: flex; flex-direction: column; min-width: 0; } .choice .hint { font-size: 13px; color: var(--tt-muted); overflow-wrap: anywhere; }
.field-hint { margin: -2px 0 8px; } .prefs-apply { margin: 18px 0 0; padding: 10px 12px; border-left: 3px solid var(--tt-accent); background: var(--tt-surface); border-radius: 0 8px 8px 0; }
/* release 7: correction notes under plan points, the view-reason scope note */
.plan li .plan-note { display: block; margin-top: 4px; font-size: 13px; color: var(--tt-mixed); }
.view-note { margin: 4px 0 0; }
/* release 8: corrected plan description, with the original kept as labelled history */
.plan li .corr-mark { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--tt-mixed); border: 1px solid #5a4d22; border-radius: 999px; padding: 0 8px; }
.plan li details.corr-history { margin: 6px 0 0; background: transparent; border: 1px dashed var(--tt-line); border-radius: 8px; }
.plan li details.corr-history summary { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.plan li details.corr-history p { margin: 0 10px 8px; font-size: 13px; color: var(--tt-soft); }
/* release 8: corrected plan description, with the original kept as labelled history */
.plan li .corr-mark { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--tt-mixed); border: 1px solid #5a4d22; border-radius: 999px; padding: 0 8px; }
.plan li details.corr-history { margin: 6px 0 0; background: transparent; border: 1px dashed var(--tt-line); border-radius: 8px; }
.plan li details.corr-history summary { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.plan li details.corr-history p { margin: 0 10px 8px; font-size: 13px; color: var(--tt-soft); }
.banner.feed-ok { background: #10261f; color: #9fe3c4; border-bottom-color: #1f4a3a; }
/* economic releases (release cards v2, 18 Nov 2026). Pending cards stay quiet (dashed); released cards gain a stronger
   border and a light tint for their bias FOR THIS INSTRUMENT. The Forecast box is tinted by what the forecast would mean
   if it came true; the Actual box by the surprise against the forecast, with a stronger border. Every bias also carries a
   written label and an icon, so colour is never the only signal. Green bullish, red bearish, amber in line / neutral /
   mixed, grey not assessed or uncertain. */
.rel-h { font-size: 13px; color: var(--tt-soft); margin: 14px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.rel { border: 1px solid var(--tt-line); border-radius: 12px; margin: 0 0 10px; background: transparent; }
.rel.pending { border-style: dashed; }
.rel.later { opacity: .95; }
.rel.neutral { border: 2px solid rgba(220,194,139,.75); background: linear-gradient(135deg, rgba(220,194,139,.08), rgba(220,194,139,.02)); }
.rel.grey { border: 2px solid #5b6f7c; background: var(--tt-surface-raised); }
.rel.bullish { border: 2px solid var(--tt-bullish); background: linear-gradient(135deg, rgba(86,199,159,.10), rgba(86,199,159,.03)); }
.rel.bearish { border: 2px solid var(--tt-bearish); background: linear-gradient(135deg, rgba(224,128,136,.11), rgba(224,128,136,.03)); }
.rel.mixed { border: 2px solid var(--tt-mixed); background: linear-gradient(135deg, rgba(220,194,139,.10), rgba(220,194,139,.03)); }
.rel > summary { list-style: none; cursor: pointer; padding: 12px; display: block; }
.rel > summary::-webkit-details-marker { display: none; }
.rel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; margin-bottom: 4px; }
.rel-when { font-size: 13px; color: var(--tt-soft); }
.imp { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; border-radius: 5px; padding: 1px 6px; margin-left: 2px; vertical-align: 1px; }
.imp.high { background: rgba(224,128,136,.16); color: #f4b6bb; border: 1px solid rgba(224,128,136,.55); }
.imp.medium { background: rgba(168,181,191,.12); color: var(--tt-soft); border: 1px solid #5b6f7c; }
.rel-title { font-weight: 700; margin: 0 0 8px; overflow-wrap: anywhere; }
.rel-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--tt-line); color: var(--tt-muted); }
.rel-ico { font-size: 11px; line-height: 1; }
.rel-tag.bullish { color: var(--tt-bullish); border-color: rgba(86,199,159,.6); } .rel-tag.bearish { color: var(--tt-bearish); border-color: rgba(224,128,136,.6); }
.rel-tag.mixed, .rel-tag.neutral { color: var(--tt-mixed); border-color: rgba(220,194,139,.6); } .rel-tag.grey { color: var(--tt-soft); border-color: #5b6f7c; }
.rel-fig { margin: 0 0 8px; } .rel-fname { margin: 0 0 3px; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fig { background: var(--tt-bg); border: 1px solid var(--tt-line); border-radius: 8px; padding: 6px 8px; min-width: 0; }
.fig-k { display: block; font-size: 11px; color: var(--tt-muted); text-transform: uppercase; letter-spacing: .04em; }
.fig-v { display: block; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fig-x { display: block; font-size: 11px; color: var(--tt-muted); line-height: 1.3; }
.fig.fc.b-bullish { background: rgba(86,199,159,.08); border-color: rgba(86,199,159,.45); }
.fig.fc.b-bearish { background: rgba(224,128,136,.08); border-color: rgba(224,128,136,.45); }
.fig.fc.b-neutral, .fig.fc.b-mixed { background: rgba(220,194,139,.08); border-color: rgba(220,194,139,.45); }
.fig.pend { border-style: dashed; } .fig.pend .fig-v { color: var(--tt-muted); font-weight: 600; font-size: 15px; }
.fig.act { border-width: 2px; } .fig.act .fig-v { font-size: 19px; }
.fig.act.b-bullish { border-color: var(--tt-bullish); background: rgba(86,199,159,.14); } .fig.act.b-bullish .fig-x { color: #9fe3c4; }
.fig.act.b-bearish { border-color: var(--tt-bearish); background: rgba(224,128,136,.14); } .fig.act.b-bearish .fig-x { color: #f4b6bb; }
.fig.act.b-neutral { border-color: var(--tt-mixed); background: rgba(220,194,139,.12); } .fig.act.b-neutral .fig-x { color: #f3e6c6; }
.fig.act.b-grey { border-color: #5b6f7c; }
.rel-line { margin: 2px 0 6px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.rel-scen { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.scen-chip { border: 1px solid var(--tt-line); border-radius: 6px; padding: 2px 7px; color: var(--tt-soft); }
.scen-chip.bullish { border-color: rgba(86,199,159,.45); } .scen-chip.bearish { border-color: rgba(224,128,136,.45); }
.rel-more { display: inline-block; font-size: 12px; color: var(--tt-accent); margin-top: 2px; }
.rel-more::after { content: ' ▾'; } .rel[open] .rel-more::after { content: ' ▴'; }
.rel-body { padding: 0 12px 10px; border-top: 1px solid var(--tt-line); }
.rel-detail { padding-top: 8px; } .rel-detail + .rel-detail { border-top: 1px dashed var(--tt-line); margin-top: 6px; }
.rel-sum { margin: 8px 0 4px; } .rel-gauge { margin: 8px 0 4px; color: var(--tt-soft); }
.rel-sec { margin: 12px 0 0; } .rel-sec > summary { cursor: pointer; font-size: 13px; color: var(--tt-soft); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; padding: 8px 0; }
.rel-sec[open] > summary { margin-bottom: 6px; }
ul.scen { list-style: none; margin: 0 0 8px; padding: 0; font-size: 14px; } ul.scen li { display: flex; gap: 8px; padding: 3px 0; }
.scen-tag { flex: 0 0 18px; font-size: 12px; line-height: 22px; text-align: center; } .scen-tag.bullish { color: var(--tt-bullish); } .scen-tag.bearish { color: var(--tt-bearish); }
.rel-warn { color: #f3e6c6; background: rgba(220,194,139,.10); border-left: 3px solid var(--tt-mixed); padding: 6px 8px; border-radius: 4px; }
@media (max-width: 360px) { .figs { grid-template-columns: 1fr; } .fig { display: flex; align-items: baseline; gap: 8px; } .fig-k { min-width: 70px; } }
.rel > summary::after, details[open] .rel > summary::after, details[open].rel > summary::after { content: none; }
.rel-sec { background: transparent; border: 0; border-top: 1px solid var(--tt-line); border-radius: 0; margin: 12px 0 0; }
.rel-sec > summary { padding: 12px 0; min-height: 44px; }
.fig-b { display: block; font-size: 11px; font-weight: 700; margin-top: 3px; line-height: 1.3; }
.fig-b.bullish { color: var(--tt-bullish); } .fig-b.bearish { color: var(--tt-bearish); } .fig-b.neutral, .fig-b.mixed { color: var(--tt-mixed); } .fig-b.grey, .fig-b.pending { color: var(--tt-muted); }
/* TradeTomo's own breakout plan (18 Nov 2026): a point the data did not establish is shown, plainly, never as a level */
.plan li.not-est { background: transparent; border-style: dashed; color: var(--tt-muted, var(--tt-soft)); }
.plan .ne-mark { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--tt-line); border-radius: 999px; padding: 1px 8px; margin: 0 0 6px; }
.plan li.not-est .ne-mark + span { display: block; }
.plan-basis { margin: 8px 0 0; }
#plan-levels .pl-title { font-size: 14px; margin: 14px 0 6px; }
.plan-conds td:nth-child(2) { font-size: 13px; color: var(--tt-soft); }
/* calendar clarity (18 Nov 2026): a short group heading, each release named in bold with its own calendar importance,
   four dated collapsible sections (Today open) */
.rel-title { font-size: 15px; }
.rel-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 10px 0 5px; }
.rel-fig:first-of-type .rel-name { margin-top: 2px; }
.rel-ename { font-weight: 800; font-size: 15px; color: var(--tt-text, #fff); overflow-wrap: anywhere; }
.rel-name .imp { text-transform: none; letter-spacing: 0; font-weight: 700; margin-left: 0; }
.imp.low, .imp.none { background: transparent; color: var(--tt-soft); border: 1px dashed #5b6f7c; }
.rel-sum-vis { margin: 6px 0 4px; }
.rel-scope { margin: 2px 0 6px; font-size: 14px; line-height: 1.45; }
.rel-cov { margin: 0 0 8px; }
.rel-sec > summary .rel-sec-t { color: var(--tt-text, #fff); }
.rel-sec > summary .rel-sec-d { text-transform: none; letter-spacing: 0; font-weight: 600; }

/* qualitative economic events (TC-QUAL-1.0): conditional scenario chips and the honest "not assessed" line */
.rel-qual { margin: 4px 0 6px; } .rel-qual .qual-na { display: block; margin-top: 4px; } .qual-detail { margin: 6px 0 0; padding-top: 6px; border-top: 1px dashed var(--tt-line); }
/* Key Levels (TC-KEYLEVELS-1.0, 19 Nov 2026): the same card language as the earlier plan points */
.plan h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tt-soft); margin: 14px 0 8px; }
.plan .kl-current { margin: 0 0 4px; color: var(--tt-soft); }
.kl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kl-side h5 { margin-top: 8px; }
.kl-list, .plan ol.kl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.kl-list > li { border: 1px solid var(--tt-line); background: var(--tt-bg); border-radius: 12px; padding: 12px; font-size: 14px; color: var(--tt-soft); min-width: 0; }
.kl-list > li b.cond { display: block; color: var(--tt-text); font-weight: 700; overflow-wrap: anywhere; }
.kl-list > li p { margin: 6px 0 0; overflow-wrap: anywhere; }
.kl-checks { margin: 8px 0 0; }
.kl-checks summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 13px; color: var(--tt-text); }
.kl-checks ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.kl-checks li, .plan .kl-checks li, .plan .kl-change li { margin: 4px 0; padding: 0; border: 0; border-radius: 0; background: none; overflow-wrap: anywhere; }
.kl-change { margin: 0; padding-left: 18px; font-size: 14px; color: var(--tt-soft); }
.kl-change li { margin: 6px 0; overflow-wrap: anywhere; }
.plan .kl-issued { margin: 0 0 8px; }
@container (max-width: 560px) { .kl-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .kl-grid { grid-template-columns: 1fr; } }
/* Full briefing (19 Nov 2026): the full-body Tomo stands at the right of the opening overview, on the card's floor, no frame */
.view.has-tomo { align-items: stretch; min-height: 232px; padding-right: 10px; }
.view.has-tomo .view-main { flex: 1 1 auto; min-width: 0; align-self: center; }
.brief-tomo { order: 2; flex: 0 0 auto; align-self: flex-end; width: 236px; margin: -6px 0 -40px; pointer-events: none; }
.brief-tomo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 30px rgba(54, 216, 180, .14)); }
/* phones: smaller, at the top right, with the view and its reason flowing beside and under him */
@media (max-width: 600px) { .view.has-tomo { display: flow-root; min-height: 0; padding-right: 14px; } .brief-tomo { float: right; width: 104px; margin: -6px -6px 0 10px; } }
@media (max-width: 360px) { .brief-tomo { width: 84px; margin-left: 8px; } }

/* Key Levels, copy-first (20 Nov 2026): prices first, nearest first, reasoning in one fold */
.kl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-size: 14px; color: var(--tt-soft); }
.kl-top .kl-last b { color: var(--tt-text); font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 700; }
.kl-top .kl-all { min-height: 44px; }
.kl-side h5 { margin: 0 0 8px; }
.kl-side.res h5 { color: var(--tt-bearish); }
.kl-side.sup h5 { color: var(--tt-bullish); }
.plan ol.kl-ladder { gap: 8px; }
.plan .kl-ladder > li.kl-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-left: 3px solid var(--tt-line); }
.plan .kl-ladder > li.kl-row.resistance { border-left-color: rgba(224,128,136,.55); }
.plan .kl-ladder > li.kl-row.support { border-left-color: rgba(86,199,159,.55); }
.plan .kl-ladder > li.kl-row.nearest.resistance { border-left-color: var(--tt-bearish); }
.plan .kl-ladder > li.kl-row.nearest.support { border-left-color: var(--tt-bullish); }
.kl-row .kl-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.kl-row .kl-price { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 19px; font-weight: 700; color: var(--tt-text); overflow-wrap: anywhere; line-height: 1.25; }
.kl-row .kl-meta { font-size: 13px; color: var(--tt-soft); }
.kl-row .kl-cond { font-size: 12.5px; color: var(--tt-muted); }
.kl-row .kl-copy { flex: 0 0 auto; min-height: 44px; }
.plan .kl-none { margin: 0; padding: 10px 12px; border: 1px dashed var(--tt-line); border-radius: 12px; }
.plan .kl-rule { margin: 12px 0 0; color: var(--tt-soft); }
.kl-more { margin: 12px 0 0; border: 1px solid var(--tt-line); border-radius: 12px; background: transparent; }
.kl-more > summary { min-height: 44px; padding: 10px 12px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--tt-accent); }
.kl-more > :not(summary) { margin-left: 12px; margin-right: 12px; }
.kl-more .kl-why { border-top: 1px solid var(--tt-line); padding: 10px 0; }
.kl-more .kl-why h6 { margin: 0 0 4px; font-size: 14px; color: var(--tt-text); }
.kl-more .kl-why p { margin: 4px 0 0; overflow-wrap: anywhere; }
.kl-more .plan-basis { margin-bottom: 12px; }
.panel .plan .kl-grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 600px) { .kl-grid { grid-template-columns: minmax(0, 1fr); } .kl-row .kl-price { font-size: 18px; } }
/* Compact / Cards viewing (21 Nov 2026). Cards mode is the existing grid, unchanged. Compact: one row per instrument that
   expands to the same full card. No gradients beyond the existing card styles. */
.dash-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 4px 0 16px; }
.dv-group { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--tt-soft); }
.dv-seg { display: inline-flex; border: 1px solid var(--tt-line); border-radius: 12px; padding: 3px; background: var(--tt-surface); }
.dv-opt { font: inherit; font-weight: 700; font-size: 14px; color: var(--tt-soft); background: transparent; border: 0; border-radius: 9px; min-height: 44px; padding: 0 16px; cursor: pointer; }
.dv-opt[aria-pressed=true] { background: var(--tt-accent); color: var(--tt-on-accent); }
.dv-opt:hover:not([aria-pressed=true]) { color: var(--tt-text); }
.dv-sort { font: inherit; font-size: 14px; font-weight: 600; color: var(--tt-text); background: var(--tt-surface-raised); border: 1px solid var(--tt-line); border-radius: 10px; min-height: 44px; padding: 0 12px; }
.dv-hint { flex: 1 1 100%; margin: 0; }
.tiles.compact { grid-template-columns: 1fr; gap: 10px; }
.crow { border: 1px solid var(--tt-line); border-radius: 14px; background: var(--tt-surface); overflow: hidden; }
.crow-btn { width: 100%; display: grid; grid-template-columns: minmax(170px, 1.3fr) minmax(130px, 1fr) minmax(150px, 1fr) minmax(0, 2fr) 44px; gap: 8px 18px; align-items: center; text-align: left;
  font: inherit; color: var(--tt-text); background: transparent; border: 0; border-left: 4px solid var(--tt-wait); padding: 10px 12px 10px 16px; min-height: 64px; cursor: pointer; }
.crow.bullish .crow-btn { border-left-color: var(--tt-bullish); } .crow.bearish .crow-btn { border-left-color: var(--tt-bearish); } .crow.mixed .crow-btn { border-left-color: var(--tt-mixed); }
.crow-btn:hover { background: var(--tt-surface-raised); }
.c-ins { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-width: 0; } .c-name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; } .c-ins .sym { font-size: 12px; color: var(--tt-muted); font-weight: 600; }
.c-view { grid-column: 2; grid-row: 1; font-weight: 700; } .c-view.bullish { color: var(--tt-bullish); } .c-view.bearish { color: var(--tt-bearish); } .c-view.mixed { color: var(--tt-mixed); } .c-view.awaiting { color: var(--tt-wait); }
.c-conf { grid-column: 3; grid-row: 1; font-weight: 600; color: var(--tt-soft); font-size: 15px; }
.c-flags { grid-column: 4; grid-row: 1; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; min-width: 0; }
/* the trailing control column: always the last column, spanning every row, a fixed 44 x 44 box with the chevron centred */
.c-tog { grid-column: -2 / -1; grid-row: 1 / -1; align-self: center; justify-self: end; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.c-tog .chev { margin: 0 0 4px 0; }
.crow-btn[aria-expanded=true] .c-tog .chev { transform: rotate(-135deg); margin: 4px 0 0 0; }
.crow-card { padding: 0 12px 12px; }
.crow-card .preview-card { margin: 0; }
@media (max-width: 760px) {
  .crow-btn { grid-template-columns: minmax(0, 1fr) auto 44px; gap: 4px 12px; padding: 12px 8px 12px 14px; }
  .c-ins { grid-column: 1; grid-row: 1; }
  .c-view { grid-column: 2; grid-row: 1; text-align: right; }
  .c-conf { grid-column: 1 / span 2; grid-row: 2; font-size: 14px; }
  .c-flags { grid-column: 1 / span 2; grid-row: 3; }
  .c-tog { grid-column: 3; grid-row: 1 / span 3; }
  .crow-card { padding: 0 6px 6px; }
}
a.pill-link { color: var(--tt-accent); border-color: var(--tt-accent); text-decoration: none; padding: 6px 12px; font-size: 13px; } a.pill-link:hover { background: var(--tt-accent); color: var(--tt-on-accent); }
