:root {
  --ink: #11120f;
  --panel: #171814;
  --panel-soft: #1d1e19;
  --line: rgba(232, 218, 181, 0.15);
  --gold: #c9a96d;
  --gold-light: #e6d2a5;
  --cream: #f3efe5;
  --muted: #8f9088;
  --green: #57b889;
  --red: #e26e65;
  --blue: #69a5d8;
}

.overview-panel { margin-top: 18px; min-width: 0; }
.overview-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 24px; }
.overview-head h2 { margin: 8px 0; font: 500 clamp(1.5rem, 2.5vw, 2rem)/1.2 "Playfair Display", serif; }
.overview-head p { margin: 0; color: var(--muted); font: .72rem/1.6 "DM Mono", monospace; }
.overview-periods { display: flex; flex-shrink: 0; gap: 4px; padding: 4px; border: 1px solid var(--line); background: var(--ink); }
.overview-periods button { min-height: 42px; padding: 0 18px; border: 1px solid transparent; color: var(--muted); background: transparent; font: 500 .75rem "DM Mono", monospace; }
.overview-periods button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.overview-periods button:hover { border-color: var(--gold); }
.overview-panel button:focus-visible, .overview-panel summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.overview-metric { min-width: 0; padding: 24px; border-right: 1px solid var(--line); }
.overview-metric:last-child { border-right: 0; }
.overview-metric > span { color: #b1b2a9; font: 500 .65rem "DM Mono", monospace; letter-spacing: .1em; }
.overview-metric strong { display: block; margin: 12px 0 10px; font: 500 clamp(1.65rem, 3vw, 2.5rem)/1.1 "DM Mono", monospace; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.overview-metric small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.overview-net { background: linear-gradient(135deg, rgba(201,169,109,.09), transparent); box-shadow: inset 0 2px var(--gold); }
.overview-win strong, .overview-metric strong.positive { color: var(--green); }
.overview-loss strong, .overview-metric strong.negative { color: var(--red); }
.overview-results { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.overview-breakdown { display: flex; gap: 10px; flex-wrap: wrap; }
.overview-breakdown > span { display: flex; gap: 18px; justify-content: space-between; min-width: 80px; padding: 9px 12px; border: 1px solid rgba(87,184,137,.25); color: var(--green); background: rgba(87,184,137,.04); font: 500 .7rem "DM Mono", monospace; }
.overview-breakdown > .overview-sl { color: var(--red); border-color: rgba(226,110,101,.25); background: rgba(226,110,101,.04); }
.overview-results > p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.6; text-align: right; }
.overview-foot { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); padding: 16px 24px; }
.overview-foot > p, .overview-foot details p { margin: 0; font-size: .72rem; color: var(--muted); line-height: 1.8; }
.overview-foot details { max-width: 650px; }
.overview-foot summary { color: var(--gold-light); font-size: .75rem; cursor: pointer; }
.overview-foot details[open] { flex: 1 1 100%; max-width: none; }
.overview-foot details p { margin-top: 10px; }
@media (max-width: 900px) {
  .overview-results { align-items: start; flex-direction: column; }
  .overview-results > p { text-align: left; }
}
@media (max-width: 600px) {
  .overview-head { flex-direction: column; align-items: stretch; padding: 22px 17px; gap: 18px; }
  .overview-periods { width: 100%; }
  .overview-periods button { flex: 1; min-width: 0; padding-inline: 8px; min-height: 44px; }
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-metric { padding: 20px 17px; }
  .overview-metric:nth-child(2) { border-right: 0; }
  .overview-metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .overview-metric strong { font-size: clamp(1.5rem, 7vw, 2rem); }
  .overview-results, .overview-foot { padding: 17px; }
  .overview-breakdown { display: grid; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .overview-breakdown > span { min-width: 0; flex-direction: column; gap: 8px; padding: 10px; font-size: .67rem; }
  .overview-breakdown b { font-size: 1rem; }
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: hidden; color-scheme: dark; scroll-behavior: smooth; }
body { width: 100%; max-width: 100%; margin: 0; min-width: 320px; overflow-x: hidden; background: var(--ink); color: var(--cream); font-family: "Manrope", sans-serif; font-size: 16px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.grid-noise { position: fixed; inset: 0; pointer-events: none; opacity: .38; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.shell { width: min(1440px, calc(100% - 48px)); max-width: calc(100vw - 48px); margin-inline: auto; }

.tempo-header { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.tempo-brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.tempo-brand-mark { width: 40px; height: 40px; border: 1px solid var(--gold); display: grid; place-items: center; font-family: Georgia, serif; color: var(--gold-light); }
.tempo-brand b, .tempo-brand small { display: block; letter-spacing: .14em; }
.tempo-brand b { font-size: .78rem; }
.tempo-brand small { margin-top: 4px; font: 500 .65rem "DM Mono", monospace; color: var(--muted); }
.header-center { display: flex; align-items: center; gap: 20px; }
.beta-badge { border: 1px solid rgba(201,169,109,.5); background: rgba(201,169,109,.08); color: var(--gold-light); padding: 8px 12px; font: 500 .68rem "DM Mono", monospace; letter-spacing: .12em; }
.system-state { font: 500 .68rem "DM Mono", monospace; letter-spacing: .1em; color: #b6b8af; display: flex; gap: 8px; align-items: center; }
.system-state b { font: inherit; font-weight: 500; }
.system-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.system-state.market-closed { color: var(--gold-light); }
.system-state.market-closed i { background: var(--gold); box-shadow: 0 0 12px rgba(201,169,109,.55); }
.header-clock { justify-self: end; text-align: right; font-family: "DM Mono", monospace; }
.header-clock span { color: var(--muted); font-size: .65rem; letter-spacing: .14em; }
.header-clock time { display: block; margin-top: 3px; font-size: .88rem; }

.tempo-main { position: relative; z-index: 1; padding: 44px 0 30px; }
.tempo-titlebar { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 28px; }
.eyebrow { color: var(--gold); font: 500 .7rem "DM Mono", monospace; letter-spacing: .18em; }
h1 { margin: 8px 0 0; font: 600 clamp(2.4rem, 5vw, 4.8rem)/.95 "Playfair Display", serif; letter-spacing: -.04em; }
h1 sup { font: 500 .75rem "DM Mono", monospace; color: var(--gold); vertical-align: top; margin-left: 7px; }
.calibration-warning { max-width: 430px; border-left: 2px solid var(--gold); padding: 4px 0 4px 18px; }
.calibration-warning strong { font: 500 .7rem "DM Mono", monospace; color: var(--gold-light); letter-spacing: .15em; }
.calibration-warning p { margin: 8px 0 0; color: #a7a89f; font-size: .88rem; }

.member-gate { margin-bottom: 18px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: rgba(201,169,109,.42); }
.member-gate span { display: block; color: var(--gold); font: 500 .62rem "DM Mono", monospace; letter-spacing: .15em; }
.member-gate strong { display: block; margin-top: 7px; font-size: .95rem; }
.member-gate p { margin: 6px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.member-gate a { min-height: 42px; flex: 0 0 auto; padding: 0 16px; border: 1px solid var(--gold); background: var(--gold); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
.member-gate[hidden] { display: none; }

.gateway-strip { min-height: 92px; margin-bottom: 18px; display: grid; grid-template-columns: 1.15fr repeat(4, 1fr) auto; align-items: stretch; }
.gateway-strip > div { min-width: 0; padding: 18px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.gateway-strip > div:last-child { border-right: 0; }
.gateway-identity { flex-direction: row !important; align-items: center; justify-content: flex-start !important; gap: 12px; }
.gateway-dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px rgba(201,169,109,.55); }
.gateway-strip.connected .gateway-dot { background: var(--green); box-shadow: 0 0 14px var(--green); }
.gateway-strip.delayed .gateway-dot { background: var(--gold); }
.gateway-strip.offline .gateway-dot { background: var(--red); box-shadow: 0 0 14px rgba(226,110,101,.55); }
.gateway-strip.market-closed .gateway-dot { background: var(--gold); box-shadow: 0 0 14px rgba(201,169,109,.5); }
.gateway-strip small { color: var(--muted); font: 500 .62rem "DM Mono", monospace; letter-spacing: .14em; }
.gateway-strip strong { display: block; margin-top: 6px; color: var(--cream); font: 500 .82rem "DM Mono", monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gateway-metric span { margin-top: 4px; color: #6f7169; font: 500 .61rem "DM Mono", monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-mode { color: var(--gold-light); font: 500 .63rem "DM Mono", monospace; letter-spacing: .1em; text-align: center; white-space: nowrap; }
.connected .feed-mode { color: var(--green); }
.market-closed .feed-mode { color: var(--gold-light); }

.panel { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 38%), var(--panel); box-shadow: 0 28px 70px rgba(0,0,0,.22); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, .75fr); gap: 18px; }
.dashboard-grid > *, .gateway-strip, .history-panel { min-width: 0; max-width: 100%; }
.panel-head { min-height: 68px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 24px; }
.panel-head span, .section-label span, .history-head > div > span { display: block; color: var(--muted); font: 500 .66rem "DM Mono", monospace; letter-spacing: .15em; }
.panel-head b { display: block; margin-top: 5px; font: 500 .8rem "DM Mono", monospace; letter-spacing: .06em; }
.status-pill { display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid currentColor; font-size: .66rem !important; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill b { margin: 0; font-size: .68rem; }
.status-waiting { color: var(--gold-light) !important; }
.status-ready, .status-completed { color: var(--green) !important; }
.status-active { color: var(--blue) !important; }
.status-cancelled { color: var(--red) !important; }
.status-ongoing { color: var(--blue) !important; }
.status-scanning { color: var(--gold-light) !important; }
.status-market-closed { color: var(--gold-light) !important; }

.signal-summary { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding: 28px 24px; border-bottom: 1px solid var(--line); }
.direction-block span, .direction-block small, .rr-block span, .rr-block small { display: block; }
.direction-block span, .rr-block span { color: var(--muted); font: 500 .68rem "DM Mono", monospace; letter-spacing: .15em; }
.direction-block strong { display: block; margin: 5px 0 3px; font-size: 2.4rem; letter-spacing: -.04em; }
.direction-block.sell strong { color: var(--red); }
.direction-block.buy strong { color: var(--green); }
.direction-block.scanning strong { color: var(--gold-light); font-size: 1.85rem; letter-spacing: .02em; }
.direction-block.market-closed strong { color: var(--gold-light); font-size: 1.65rem; letter-spacing: .01em; }
.direction-block.last-loss small { color: var(--red); }
.direction-block small, .rr-block small { color: #777970; font: 500 .67rem "DM Mono", monospace; }
.confidence-block { text-align: center; }
.confidence-ring { --score: 72; width: 104px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--score) * 1%), rgba(255,255,255,.07) 0); position: relative; }
.confidence-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); }
.confidence-ring span { position: relative; z-index: 1; }
.confidence-ring b { font: 500 1.55rem "DM Mono", monospace; }
.confidence-ring small { color: var(--muted); font: .65rem "DM Mono", monospace; }
.confidence-ring.empty small { display: none; }
.confidence-block p { color: var(--muted); margin: 8px 0 0; font: 500 .62rem "DM Mono", monospace; letter-spacing: .14em; }
.rr-block { text-align: right; }
.rr-block b { display: block; margin: 7px 0 5px; font: 500 1.45rem "DM Mono", monospace; }

.price-ladder { position: relative; isolation: isolate; padding: 26px 24px 22px; overflow: hidden; }
.price-level { position: relative; z-index: 2; display: grid; grid-template-columns: 52px 1fr 100px 62px; gap: 12px; align-items: center; min-height: 43px; font-family: "DM Mono", monospace; }
.price-level span { color: var(--muted); font-size: .67rem; letter-spacing: .12em; }
.price-level i { height: 1px; background: rgba(255,255,255,.12); position: relative; z-index: 2; }
.price-level i::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.price-level b { font-size: .82rem; text-align: right; }
.price-level em { font-style: normal; color: var(--muted); font-size: .65rem; text-align: right; }
.price-level.target { color: var(--green); }
.price-level.entry { color: var(--gold-light); }
.price-level.entry i { height: 2px; box-shadow: 0 0 12px rgba(201,169,109,.25); }
.price-level.stop { color: var(--red); }
.price-level.target span, .price-level.entry span, .price-level.stop span { color: currentColor; }
.price-ladder.no-signal .price-level { color: #65675f; }
.price-ladder.no-signal .price-level span,
.price-ladder.no-signal .price-level b,
.price-ladder.no-signal .price-level em,
.price-ladder.no-signal .price-level i::before { opacity: 0; }
.price-trace { position: absolute; z-index: 1; left: 88px; right: 198px; top: 47px; bottom: 43px; width: calc(100% - 286px); height: calc(100% - 90px); color: var(--green); pointer-events: none; overflow: visible; filter: drop-shadow(0 0 6px rgba(87,184,137,.3)); }
.price-ladder.trace-sell .price-trace { color: var(--red); filter: drop-shadow(0 0 6px rgba(226,110,101,.28)); }
.price-ladder.trace-market .price-trace { left: 24px; right: 110px; width: calc(100% - 134px); color: var(--gold); filter: drop-shadow(0 0 7px rgba(201,169,109,.3)); }
.price-trace-area { fill: url(#priceTraceFill); }
.price-trace-line { fill: none; stroke: currentColor; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.price-trace-guide { stroke: currentColor; stroke-width: 1; stroke-dasharray: 5 8; opacity: .28; vector-effect: non-scaling-stroke; }
.price-trace-dot { fill: var(--panel); stroke: currentColor; stroke-width: 3; vector-effect: non-scaling-stroke; }
.trace-label { position: absolute; z-index: 3; top: 8px; left: 88px; display: flex; align-items: center; gap: 7px; color: #696b63; font: 500 .55rem "DM Mono", monospace; letter-spacing: .1em; pointer-events: none; }
.trace-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(87,184,137,.65); }
.trace-sell .trace-label i { background: var(--red); box-shadow: 0 0 8px rgba(226,110,101,.55); }
.trace-market .trace-label { left: 24px; }
.trace-market .trace-label i { background: var(--gold); box-shadow: 0 0 8px rgba(201,169,109,.55); }
.trace-label b { color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.live-price-chip { position: absolute; z-index: 4; top: 7px; right: 24px; display: flex; align-items: baseline; gap: 9px; font-family: "DM Mono", monospace; pointer-events: none; }
.live-price-chip span { color: #696b63; font-size: .55rem; letter-spacing: .1em; }
.live-price-chip b { color: var(--gold-light); font-size: .72rem; font-weight: 500; }
.trace-price-axis { display: none; position: absolute; z-index: 4; top: 47px; right: 18px; bottom: 43px; width: 82px; padding-left: 10px; border-left: 1px solid rgba(232,218,181,.12); flex-direction: column; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.price-ladder.trace-market .trace-price-axis { display: flex; }
.trace-price-axis > span { position: relative; min-width: 67px; color: #777970; font: 500 .56rem/1 "DM Mono", monospace; letter-spacing: .015em; text-align: right; }
.trace-price-axis > span::before { content: ""; position: absolute; left: -10px; top: 50%; width: 5px; border-top: 1px solid rgba(232,218,181,.18); }
.trace-current-price { position: absolute; right: 0; top: 50%; min-width: 72px; padding: 5px 7px; transform: translateY(-50%); border-radius: 2px; background: var(--gold); color: var(--ink); box-shadow: 0 0 18px rgba(201,169,109,.3); font: 600 .64rem/1 "DM Mono", monospace; letter-spacing: .01em; text-align: right; }
.trace-current-price::before { content: ""; position: absolute; left: -6px; top: 50%; transform: translateY(-50%); border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 6px solid var(--gold); }
.trace-current-price[hidden] { display: none; }

.lifecycle-block { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.section-label { display: flex; justify-content: space-between; align-items: center; }
.section-label b { font: 500 .68rem "DM Mono", monospace; color: var(--gold-light); letter-spacing: .1em; }
.lifecycle-track { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); padding: 0; margin: 25px 0 0; }
.lifecycle-track li { position: relative; color: #55574f; text-align: center; font: 500 .57rem "DM Mono", monospace; letter-spacing: .08em; }
.lifecycle-track li::before { content: ""; position: absolute; height: 1px; background: #35372f; width: 100%; left: -50%; top: 5px; }
.lifecycle-track li:first-child::before { display: none; }
.lifecycle-track i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid currentColor; background: var(--panel); display: block; margin: 0 auto 10px; position: relative; z-index: 1; }
.lifecycle-track li.done, .lifecycle-track li.active { color: var(--gold); }
.lifecycle-track li.done::before, .lifecycle-track li.active::before { background: var(--gold); }
.lifecycle-track li.active i { background: var(--gold); box-shadow: 0 0 14px rgba(201,169,109,.65); }

.public-guide-panel { background: linear-gradient(165deg, rgba(201,169,109,.055), transparent 45%), var(--panel); }
.guide-live { display: inline-flex !important; align-items: center; gap: 8px; color: var(--green) !important; white-space: nowrap; }
.guide-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.guide-steps { list-style: none; padding: 8px 24px 0; margin: 0; }
.guide-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 15px; padding: 19px 0; border-bottom: 1px solid rgba(232,218,181,.09); }
.guide-steps li > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(201,169,109,.35); color: var(--gold); font: 500 .62rem "DM Mono", monospace; }
.guide-steps b { display: block; color: var(--cream); font: 500 .7rem "DM Mono", monospace; letter-spacing: .1em; }
.guide-steps p { margin: 7px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.65; }
.public-note { margin: 22px 24px 24px; padding: 20px; border: 1px solid rgba(201,169,109,.22); background: rgba(201,169,109,.04); }
.public-note > span { color: var(--gold); font: 500 .62rem "DM Mono", monospace; letter-spacing: .13em; }
.public-note p { margin: 10px 0 17px; color: #a7a89f; font-size: .75rem; line-height: 1.7; }
.public-note div { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.public-note a { color: var(--gold-light); border-bottom: 1px solid rgba(201,169,109,.38); padding-bottom: 3px; font-size: .68rem; font-weight: 700; }

.history-panel { margin-top: 18px; }
.history-head { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.history-head h2 { margin: 7px 0 0; font: 600 1.35rem "Playfair Display", serif; }
.history-tools { display: flex; align-items: end; gap: 12px; }
.history-range { min-width: 126px; }
.history-range > span { display: block; margin-bottom: 6px; color: var(--muted); font: 500 .55rem "DM Mono", monospace; letter-spacing: .12em; }
.history-range select { height: 34px; margin: 0; font-size: .62rem; }
.history-filters { display: flex; }
.history-filters button { height: 34px; padding: 0 13px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 .62rem "DM Mono", monospace; }
.history-filters button + button { border-left: 0; }
.history-filters button.active { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.history-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 1080px; }
th, td { text-align: left; border-bottom: 1px solid rgba(232,218,181,.09); padding: 15px 24px; font: 500 .72rem "DM Mono", monospace; white-space: nowrap; }
th { color: var(--muted); font-size: .62rem; letter-spacing: .12em; }
td { color: #c7c8bf; }
td strong { color: var(--cream); font-weight: 500; }
.side-buy { color: var(--green); }
.side-sell { color: var(--red); }
.history-status { display: inline-flex; align-items: center; gap: 7px; }
.history-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.signal-result { font-weight: 700; letter-spacing: .04em; }
.result-hit-sl { color: var(--red); }
.result-hit-tp1, .result-hit-tp2, .result-hit-tp3 { color: var(--green); }
.result-running, .result-ready { color: #76a9dc; }
.result-cancelled { color: #8e9088; }
.result-superseded { color: #9b9d95; }
.result-waiting, .result-closed { color: var(--gold); }
.signal-pips strong { display: block; color: var(--cream); font-weight: 700; }
.signal-pips small { display: block; margin-top: 4px; color: var(--muted); font-size: .52rem; letter-spacing: .1em; }
.signal-pips.positive strong { color: var(--green); }
.signal-pips.negative strong { color: var(--red); }
.status-archived { color: #777970 !important; }
.history-empty { padding: 28px; text-align: center; color: var(--muted); font: .75rem "DM Mono", monospace; }
.history-footer { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 24px; border-top: 1px solid rgba(232,218,181,.09); }
.history-footer span { display: block; color: #686a62; font: 500 .58rem "DM Mono", monospace; letter-spacing: .11em; }
.history-footer small { display: block; margin-top: 6px; color: #5f6159; font: 500 .52rem "DM Mono", monospace; letter-spacing: .08em; }
.history-footer button { min-width: 122px; height: 34px; border: 1px solid rgba(201,169,109,.45); background: rgba(201,169,109,.06); color: var(--gold-light); font: 500 .62rem "DM Mono", monospace; letter-spacing: .1em; }
.history-footer button:hover { border-color: var(--gold); background: rgba(201,169,109,.12); }
.history-footer button:disabled { cursor: wait; opacity: .65; }

.tempo-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 30px 0 5px; color: #777970; font: 500 .64rem "DM Mono", monospace; letter-spacing: .08em; }
.tempo-footer p { margin: 0; }
.tempo-footer p:nth-child(2) { color: var(--gold); }
.tempo-footer-actions { justify-self: end; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.tempo-footer a, .tempo-footer button { color: #a5a69d; text-decoration: none; border: 0; border-bottom: 1px solid #4b4d45; border-radius: 0; padding: 0 0 3px; background: transparent; font: inherit; letter-spacing: inherit; }
.tempo-footer a:hover, .tempo-footer button:hover { color: var(--gold-light); border-color: var(--gold); }

.tempo-analytics-consent { position: fixed; z-index: 80; left: 24px; right: 24px; bottom: 24px; width: min(920px, calc(100% - 48px)); margin-inline: auto; padding: 24px; border: 1px solid rgba(201,169,109,.46); background: rgba(18,19,15,.98); box-shadow: 0 26px 90px rgba(0,0,0,.55); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.tempo-analytics-consent[hidden] { display: none; }
.tempo-analytics-consent span { display: block; color: var(--gold); font: 500 .6rem "DM Mono", monospace; letter-spacing: .15em; }
.tempo-analytics-consent h2 { margin: 8px 0 0; font: 600 clamp(1.35rem, 3vw, 2rem) "Playfair Display", serif; }
.tempo-analytics-consent p { max-width: 650px; margin: 9px 0 11px; color: #a7a89f; font-size: .78rem; line-height: 1.65; }
.tempo-analytics-consent a { color: var(--gold-light); font-size: .68rem; text-decoration: none; border-bottom: 1px solid rgba(201,169,109,.4); padding-bottom: 3px; }
.tempo-consent-actions { display: grid; grid-template-columns: auto auto; gap: 9px; }
.tempo-consent-actions button { min-height: 42px; border: 1px solid var(--line); padding: 0 15px; background: transparent; color: var(--cream); font: 600 .68rem "Manrope", sans-serif; }
.tempo-consent-actions button.allow { border-color: var(--gold); background: var(--gold); color: var(--ink); }
@media (max-width: 980px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .tempo-header { grid-template-columns: 1fr auto; }
  .header-center { display: none; }
  .gateway-strip { grid-template-columns: repeat(3, 1fr); }
  .gateway-strip > div:nth-child(3) { border-right: 0; }
  .gateway-strip > div:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .shell { width: auto; max-width: none; margin-inline: 14px; }
  .tempo-header { min-height: 70px; }
  .tempo-brand b { font-size: .68rem; }
  .tempo-brand small { font-size: .58rem; }
  .header-clock { font-size: .75rem; }
  .tempo-main { width: auto; max-width: none; padding: 26px 0 22px; }
  .tempo-titlebar { align-items: start; flex-direction: column; margin-bottom: 20px; }
  .calibration-warning { max-width: none; }
  .member-gate { padding: 17px; align-items: flex-start; flex-direction: column; gap: 15px; }
  .member-gate a { width: 100%; }
  .dashboard-grid { display: block; width: 100%; }
  .dashboard-grid > * { width: 100%; max-width: 100%; }
  .public-guide-panel { margin-top: 14px; }
  .gateway-strip { grid-template-columns: repeat(2, 1fr); }
  .gateway-strip > div { padding: 15px 16px; }
  .gateway-strip > div:nth-child(3) { border-right: 1px solid var(--line); }
  .gateway-strip > div:nth-child(even) { border-right: 0; }
  .gateway-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feed-mode { grid-column: 1 / -1; }
  .panel-head { min-height: 64px; gap: 12px; padding: 13px 14px; }
  .panel-head > div:first-child { min-width: 0; }
  .panel-head b { overflow-wrap: anywhere; }
  .price-ladder, .lifecycle-block { padding-inline: 17px; }
  .signal-summary { padding: 22px 17px; grid-template-columns: 1fr auto; }
  .direction-block { min-width: 0; }
  .direction-block strong { font-size: clamp(1.7rem, 10vw, 2.25rem); overflow-wrap: anywhere; }
  .rr-block { grid-column: 1 / -1; text-align: left; border-top: 1px solid var(--line); padding-top: 14px; }
  .rr-block b, .rr-block small { display: inline; margin-right: 10px; }
  .confidence-ring { width: 88px; }
  .price-level { grid-template-columns: 44px 1fr 83px 51px; gap: 8px; }
  .price-trace { left: 69px; right: 168px; width: calc(100% - 237px); }
  .trace-label { left: 69px; }
  .price-ladder.trace-market .price-trace { left: 17px; right: 99px; width: calc(100% - 116px); }
  .trace-market .trace-label { left: 17px; }
  .live-price-chip { right: 17px; }
  .trace-price-axis { right: 12px; width: 78px; }
  .lifecycle-track { grid-template-columns: repeat(8, minmax(40px, 1fr)); padding-bottom: 2px; }
  .lifecycle-track li { font-size: .48rem; letter-spacing: .03em; }
  .guide-steps { padding-inline: 17px; }
  .public-note { margin-inline: 17px; }
  .history-head { padding: 20px 17px; align-items: start; flex-direction: column; }
  .history-tools { width: 100%; align-items: stretch; flex-direction: column; }
  .history-range { width: 100%; }
  .history-range select { width: 100%; height: 42px; font-size: 16px; }
  .history-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .history-filters button { width: 100%; padding: 0 8px; }
  .history-filters button + button { border-left: 1px solid var(--line); }
  .history-filters button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .history-table-wrap { overflow: visible; padding: 12px; }
  table, tbody { display: block; width: 100%; min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tbody { display: grid; gap: 10px; }
  tbody tr { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 13px 15px; padding: 15px; border: 1px solid rgba(232,218,181,.11); background: #12130f; }
  tbody td { min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; font-size: .68rem; }
  tbody td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #66685f; font: 500 .52rem "DM Mono", monospace; letter-spacing: .1em; }
  tbody td:first-child { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid rgba(232,218,181,.09); }
  tbody td.history-status { display: block; }
  tbody td.history-status::before { content: attr(data-label); width: auto; height: auto; margin-bottom: 5px; border-radius: 0; background: none; }
  .history-footer { padding-inline: 14px; }
  .tempo-footer { grid-template-columns: 1fr; text-align: left; }
  .tempo-footer-actions { justify-self: start; justify-content: flex-start; }
  .tempo-analytics-consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px 17px; grid-template-columns: 1fr; gap: 18px; }
  .tempo-consent-actions { grid-template-columns: 1fr 1fr; }
  .tempo-consent-actions button { width: 100%; }
}

@media (max-width: 430px) {
  .tempo-brand span:last-child { display: none; }
  .price-level { grid-template-columns: 40px 1fr 78px; }
  .price-level em { display: none; }
  .price-trace { left: 65px; right: 103px; width: calc(100% - 168px); }
  .trace-label { left: 65px; }
  h1 { font-size: clamp(2.15rem, 12vw, 2.75rem); }
  .eyebrow { font-size: .62rem; }
  .calibration-warning { padding-left: 14px; }
  .calibration-warning p { font-size: .8rem; line-height: 1.55; }
  .gateway-strip > div { min-width: 0; padding: 14px 12px; }
  .gateway-strip small { font-size: .56rem; letter-spacing: .1em; }
  .gateway-strip strong { font-size: .72rem; }
  .gateway-metric span { font-size: .54rem; }
  .status-pill { flex: 0 0 auto; padding: 7px 8px; }
  .status-pill b { font-size: .6rem; }
  .signal-summary { gap: 12px; }
  .confidence-ring { width: 78px; }
  .confidence-ring b { font-size: 1.25rem; }
  .confidence-block p { font-size: .52rem; letter-spacing: .08em; }
  .price-ladder { padding-block: 25px 18px; }
  .price-level b { font-size: .75rem; }
  .price-ladder.trace-market .price-trace { left: 17px; right: 92px; width: calc(100% - 109px); }
  .trace-price-axis { right: 8px; width: 75px; padding-left: 8px; }
  .trace-price-axis > span { min-width: 63px; font-size: .52rem; }
  .trace-price-axis > span::before { left: -8px; width: 4px; }
  .trace-current-price { min-width: 66px; padding-inline: 6px; font-size: .58rem; }
  .lifecycle-block { padding-bottom: 21px; }
  .history-head { gap: 15px; }
  .history-table-wrap { padding: 10px; }
  tbody tr { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Phone desk: readable data, reachable destinations, no clipped lifecycle. */
.mobile-primary-nav { display: none; }

@media (max-width: 720px) {
  .shell { width: auto; max-width: none; margin-inline: 16px; }
  .tempo-header { min-height: 72px; gap: 12px; }
  .tempo-brand { min-width: 0; gap: 9px; }
  .tempo-brand span:last-child { display: block; }
  .tempo-brand b { font-size: 10px; letter-spacing: .1em; }
  .tempo-brand small { font-size: 9px; letter-spacing: .08em; }
  .tempo-brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
  .header-clock time { font-size: 12px; font-variant-numeric: tabular-nums; }
  .header-clock span { font-size: 10px; }
  .mobile-primary-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-block: 10px; border-bottom: 1px solid var(--line); }
  .mobile-primary-nav > a { min-width: 0; min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 3px; padding: 8px 4px; border: 1px solid var(--line); background: var(--panel); color: var(--cream); font: 700 11px/1.4 "Manrope", sans-serif; text-align: center; text-decoration: none; }
  .mobile-primary-nav > a[aria-current="page"] { border-color: var(--gold); color: var(--gold-light); background: rgba(201,169,109,.1); }
  .mobile-primary-nav > a.mobile-telegram { border-color: var(--gold); background: var(--gold); color: var(--ink); }
  a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
  .tempo-main { padding-top: 28px; }
  .tempo-titlebar { gap: 20px; }
  .tempo-titlebar h1 { font-size: clamp(36px, 10vw, 58px); line-height: 1.05; }
  .calibration-warning p { font-size: 14px; line-height: 1.6; }
  .member-gate p { font-size: 14px; line-height: 1.7; }
  .member-gate a { min-height: 48px; font-size: 13px; }
  .gateway-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gateway-strip > div { padding: 16px 14px; }
  .gateway-strip small { font-size: 10px; line-height: 1.5; letter-spacing: .06em; }
  .gateway-strip strong { font-size: 15px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  .gateway-metric span { font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
  .gateway-identity { gap: 9px; }
  .gateway-strip .feed-mode { grid-column: 1 / -1; min-height: 44px; padding-block: 12px; font-size: 11px; }
  .gateway-strip > div:nth-child(3) { border-right: 1px solid var(--line); }
  .gateway-strip > div:nth-child(even) { border-right: 0; }
  .gateway-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .panel-head { gap: 12px; flex-wrap: wrap; padding: 16px; }
  .panel-head span, .section-label span, .history-head > div > span { font-size: 10px; line-height: 1.6; letter-spacing: .08em; }
  .panel-head b { line-height: 1.5; }
  .status-pill { min-height: 32px; }
  .status-pill b { font-size: 11px; }
  .signal-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 12px; padding: 24px 16px; }
  .signal-summary .direction-block strong { font-size: clamp(20px, 5.7vw, 28px); line-height: 1.2; overflow-wrap: normal; }
  .direction-block small, .rr-block small { color: #a1a297; font-size: 11px; line-height: 1.7; }
  .confidence-block p { max-width: 88px; font-size: 10px; line-height: 1.5; letter-spacing: .04em; }
  .rr-block { grid-column: 1 / -1; text-align: left; border-top: 1px solid var(--line); padding-top: 14px; }
  .rr-block b, .rr-block small { display: inline-block; margin-right: 10px; }
  .trace-label, .trace-market .trace-label { left: 16px; top: 10px; max-width: calc(100% - 128px); flex-wrap: wrap; gap: 4px; font-size: 9px; line-height: 1.5; letter-spacing: .02em; color: #a1a297; }
  .live-price-chip { right: 16px; top: 10px; flex-direction: column; gap: 3px; align-items: flex-end; }
  .live-price-chip span { font-size: 9px; color: #a1a297; }
  .live-price-chip b { font-size: 12px; }
  .price-ladder { padding-top: 50px; }
  .price-level b { font-size: 13px; }
  .price-level span { font-size: 11px; }
  .lifecycle-block { padding: 20px 16px; }
  .lifecycle-track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 0; margin-top: 22px; }
  .lifecycle-track li { min-width: 0; color: #a1a297; font-size: 10px; line-height: 1.5; letter-spacing: 0; }
  .lifecycle-track li:nth-child(5)::before { display: none; }
  .guide-steps { padding-inline: 16px; }
  .guide-steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .guide-steps p, .public-note p { font-size: 14px; line-height: 1.75; }
  .public-note { padding: 18px; margin-inline: 16px; }
  .public-note div { gap: 8px 16px; }
  .public-note a { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
  .history-range > span { font-size: 10px; }
  .history-range select { min-height: 48px; font-size: 16px; }
  .history-filters { gap: 8px; }
  .history-filters button { min-height: 44px; font-size: 11px; }
  tbody td { font-size: 12px; line-height: 1.6; }
  tbody td::before { color: #a1a297; font-size: 10px; line-height: 1.5; letter-spacing: .06em; }
  .signal-pips small { font-size: 10px; }
  .history-footer { align-items: flex-start; flex-wrap: wrap; padding-block: 16px; }
  .history-footer span, .history-footer small { color: #a1a297; font-size: 10px; line-height: 1.6; letter-spacing: .04em; }
  .history-footer button { min-height: 44px; font-size: 11px; }
  .tempo-footer { font-size: 11px; line-height: 1.7; }
  .tempo-footer a, .tempo-footer button { min-height: 44px; display: inline-flex; align-items: center; }
  .tempo-analytics-consent { max-height: calc(100svh - 24px); overflow-y: auto; bottom: max(12px, env(safe-area-inset-bottom)); }
  .tempo-analytics-consent p { font-size: 14px; }
  .tempo-consent-actions button { min-height: 48px; font-size: 12px; }
}

/* Brand artwork stays monochrome and independent of platform emoji fonts. */
.telegram-icon, .external-icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -.15em;
}
.telegram-icon { fill: currentColor; stroke: none; }
.external-icon { fill: none; stroke: currentColor; }
.tempo-brand-mark { flex: 0 0 auto; aspect-ratio: 1; line-height: 1; }
