.bt-page { max-width: 1360px; }
/* the markup panel sits beside the chart so entry/LONG/SHORT are always in view;
   below ~1120px it stacks under the chart again (2026-11-01) */
.bt-page .tr-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 1120px) { .bt-page .tr-grid { grid-template-columns: 1fr; } }
.bt-page #chart { height: min(66vh, 660px); min-height: 440px; }
.bt-page .tr-panel > * { max-width: 760px; }

.bt-steps { margin: 0 0 14px; padding-left: 18px; color: var(--ink-text-soft); font-size: 13px; line-height: 1.55; }
.bt-steps li { margin-bottom: 6px; }
.bt-steps b { color: var(--ink-text); }

#bt-cut.on { color: var(--gold); border-color: var(--gold); }
/* dynamic scissors (2026-10-13): move the cut back/forward, any number of times, or take it off */
.bt-cut-tools { display: flex; gap: 6px; }
.bt-cut-tools .vt-btn { padding: 6px 10px; min-width: 38px; }
.bt-cut-tools .vt-btn:disabled { opacity: .35; cursor: not-allowed; }

.bt-cutline {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--gold, #f5b942); pointer-events: none; z-index: 2;
}
.bt-cutline.drag { cursor: ew-resize; pointer-events: auto; width: 9px; margin-left: -4px; background: transparent; border-left: 1px dashed var(--gold, #f5b942); }

.bt-result { text-align: center; padding: 10px 0; }
.bt-result .big { font-family: var(--font-display); font-size: 28px; }

.bt-row { display: grid; grid-template-columns: 1.25fr 1.1fr .65fr .75fr .85fr; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid rgba(139,150,165,.12); font-size: 13px; }
.bt-row:last-child { border-bottom: none; }
.bt-row-head { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-text-soft); border-bottom: 1px solid var(--ink-line); padding-bottom: 10px; }

/* journal: filters + summary statistics (2026-11-01) */
.bt-journal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.bt-journal-head h3 { margin: 0 0 4px; }
.bt-journal-head .hint { margin: 0; max-width: 620px; }
.bt-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.bt-filters .vt-input { width: auto; min-width: 140px; padding: 6px 10px; font-size: 12.5px; }

.bt-stats { margin: 0 0 14px; padding: 14px; border: 1px solid var(--ink-line); border-radius: var(--radius-sm); background: var(--ink-panel-2); }
.bt-stats .hint { margin: 0; color: var(--ink-text-soft); font-size: 12.5px; }
.bt-stat-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.bt-stat-big { font-family: var(--font-display); font-size: 30px; line-height: 1.05; margin: 2px 0 4px; }
.bt-equity { width: min(560px, 100%); height: 96px; flex-shrink: 0; }
.bt-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 14px 0 10px; }
.bt-stat-grid > div { border: 1px solid var(--ink-line); border-radius: 8px; padding: 7px 10px; background: color-mix(in srgb, var(--ink-panel) 65%, transparent); }
.bt-stat-grid span { display: block; font-size: 10.5px; color: var(--ink-text-faint); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.bt-stat-grid b { font-family: var(--font-mono); font-size: 14.5px; font-weight: 700; }
.bt-stat-grid small { display: block; color: var(--ink-text-soft); font-size: 11px; margin-top: 1px; }

.bt-split { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bt-split th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-text-faint); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--ink-line); }
.bt-split td { padding: 6px 8px; border-bottom: 1px solid rgba(139,150,165,.1); }
.bt-split tr:last-child td { border-bottom: none; }
.bt-split .num { text-align: right; font-family: var(--font-mono); }

@media (max-width: 700px) {
  .bt-row { grid-template-columns: 1fr 1fr; }
  .bt-row-head { display: none; }
  .bt-page #chart { height: 58vh; min-height: 360px; }
}

/* sync status line above the chart (2026-11-01): when the history last refreshed and
   how many bars were actually new -- quiet text, not a card, so it never competes */
.bt-sync { margin: -6px 0 16px; color: var(--ink-text-soft); font-size: 12.5px; line-height: 1.5; }
.bt-sync::before { content: "●"; color: var(--ink-text-soft); margin-right: 7px; font-size: 9px; vertical-align: 2px; }


/* stale data (2026-11-01): an old last bar has to look like a warning, otherwise the
   admin backtests on prices that quietly stopped updating */
.bt-sync.is-stale { color: var(--gold, #f5b942); }
.bt-sync.is-stale::before { color: var(--gold, #f5b942); }
