/* ═══════════════════════════════════════════════════════════════════════════
   Payout Journey — Terminal → Behavior → the third tab (Overview · Performance ·
   Payout Journey). See src/shell/pages/terminal/payout.ts: every gate resolves
   to a DATE, and all of it is sample data.

   BRANDING CONTRACT — the same two rules the other handoff ports carry:

   1. TYPE. The handoff loaded Geist + Geist Mono from Google Fonts. SpiderX runs
      ONE face in all three roles (assets/typography.css), so none is loaded here
      and none may be added. Every "mono" number is `var(--tm-mono)` — which
      ALIASES the sans — plus `tabular-nums`.

   2. COLOUR. Every value is a `--tm-*` token from terminal.css. The only colours
      reaching the DOM directly are set inline from payout.ts, where the colour
      is DATA (a gate's state, a mark's identity on the corridor).

   Accent: lime marks the BINDING GATE and the payout threshold — the two things
   the page is about. It is never direction; profit and loss stay --tm-live /
   --tm-loss.

   Scoped under `.app--mode-terminal`, like every other terminal sheet.
   ═══════════════════════════════════════════════════════════════════════════ */

.app--mode-terminal .tpj {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

/* ── headline ─────────────────────────────────────────────────────────────── */

.app--mode-terminal .tpj-head {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.app--mode-terminal .tpj-head__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.app--mode-terminal .tpj-head__asof {
	font-family: var(--tm-mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tm-ink-5);
}

.app--mode-terminal .tpj-head__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 26px 40px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--tm-line);
}

.app--mode-terminal .tpj-head__date {
	flex: 1 1 420px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.app--mode-terminal .tpj-head__k {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-head__fig {
	display: flex;
	align-items: baseline;
	gap: 14px;
	flex-wrap: wrap;
}

/* The one loud thing on the page, and it is a DATE — that is the whole idea. */
.app--mode-terminal .tpj-head__d {
	font-family: var(--tm-mono);
	font-variant-numeric: tabular-nums;
	font-size: 54px;
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--tm-ink);
}

.app--mode-terminal .tpj-head__away {
	font-family: var(--tm-mono);
	font-variant-numeric: tabular-nums;
	font-size: 14px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 8px;
	background: rgba(198, 248, 60, 0.12);
	color: var(--tm-lime);
}

.app--mode-terminal .tpj-head__why {
	margin: 0;
	font-size: 15px;
	color: var(--tm-ink-2);
}

.app--mode-terminal .tpj-head__why strong {
	font-weight: 600;
	color: var(--tm-lime);
}

.app--mode-terminal .tpj-head__facts {
	flex: 0 1 auto;
	display: grid;
	grid-template-columns: repeat(3, auto);
	gap: 30px;
	align-items: end;
}

.app--mode-terminal .tpj-fact {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.app--mode-terminal .tpj-fact__k {
	font-size: 11px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-fact__v {
	font-family: var(--tm-mono);
	font-variant-numeric: tabular-nums;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.app--mode-terminal .tpj-fact__v--sm {
	font-size: 18px;
}

.app--mode-terminal .tpj-fact__sub {
	font-size: 11.5px;
	white-space: nowrap;
	color: var(--tm-ink-5);
}

/* ── the gate ladder ──────────────────────────────────────────────────────── */

.app--mode-terminal .tpj-gates {
	display: flex;
	flex-direction: column;
}

.app--mode-terminal .tpj-grow {
	display: grid;
	grid-template-columns: 14px minmax(0, 1.5fr) 132px 132px 156px;
	gap: 16px;
}

.app--mode-terminal .tpj-grow--head {
	padding: 0 18px 10px;
	font-family: var(--tm-mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-grow--head > span:nth-child(n + 3) {
	text-align: right;
}

.app--mode-terminal .tpj-grow--row {
	align-items: center;
	padding: 16px 18px;
	margin-bottom: 8px;
	border: 1px solid var(--tm-hair);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.014);
}

/* THE ONE LIME ON THE LADDER: the gate that sets the date. Everything else on
   this page is waiting on it, which is the only thing worth an accent. */
.app--mode-terminal .tpj-grow--row.is-binding {
	border-color: rgba(198, 248, 60, 0.4);
	background: linear-gradient(100deg, rgba(198, 248, 60, 0.07), rgba(255, 255, 255, 0.012) 55%);
}

.app--mode-terminal .tpj-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
}

.app--mode-terminal .tpj-gate {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.app--mode-terminal .tpj-gate__l {
	font-size: 14.5px;
	font-weight: 500;
	color: var(--tm-ink-3);
}

.app--mode-terminal .tpj-grow--row.is-binding .tpj-gate__l {
	font-weight: 700;
	color: var(--tm-ink);
}

.app--mode-terminal .tpj-gate__n {
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-grow--row.is-binding .tpj-gate__n {
	color: var(--tm-ink-2);
}

.app--mode-terminal .tpj-grow__cur {
	font-family: var(--tm-mono);
	font-variant-numeric: tabular-nums;
	font-size: 15px;
	font-weight: 600;
	text-align: right;
	color: var(--tm-ink-2);
}

.app--mode-terminal .tpj-grow--row.is-met .tpj-grow__cur {
	color: var(--tm-ink-3);
}

.app--mode-terminal .tpj-grow--row.is-binding .tpj-grow__cur {
	color: var(--tm-lime);
}

.app--mode-terminal .tpj-grow__req {
	font-family: var(--tm-mono);
	font-variant-numeric: tabular-nums;
	font-size: 14px;
	text-align: right;
	color: var(--tm-ink-3);
}

.app--mode-terminal .tpj-grow__clears {
	display: flex;
	flex-direction: column;
	gap: 3px;
	text-align: right;
}

.app--mode-terminal .tpj-grow__date {
	font-family: var(--tm-mono);
	font-variant-numeric: tabular-nums;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--tm-ink-2);
}

.app--mode-terminal .tpj-grow--row.is-met .tpj-grow__date {
	color: var(--tm-live);
}

.app--mode-terminal .tpj-grow--row.is-binding .tpj-grow__date {
	color: var(--tm-lime);
}

.app--mode-terminal .tpj-grow__sub {
	font-family: var(--tm-mono);
	font-size: 11px;
	color: var(--tm-ink-5);
}

/* ── cards ────────────────────────────────────────────────────────────────── */

.app--mode-terminal .tpj-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px 22px 18px;
	border: 1px solid var(--tm-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.02);
}

.app--mode-terminal .tpj-card__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.app--mode-terminal .tpj-card__h {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tm-ink);
}

.app--mode-terminal .tpj-card__n {
	font-size: 11.5px;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

/* ── the corridor ─────────────────────────────────────────────────────────── */

.app--mode-terminal .tpj-corridor {
	position: relative;
	height: 34px;
}

.app--mode-terminal .tpj-corridor__track,
.app--mode-terminal .tpj-corridor__safe {
	position: absolute;
	top: 12px;
	height: 10px;
	border-radius: 3px;
}

.app--mode-terminal .tpj-corridor__track {
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.05);
}

/* The room between the floor and where equity actually is — the cushion, drawn
   at the same scale as the fence so its width IS the number. */
.app--mode-terminal .tpj-corridor__safe {
	background: rgba(198, 248, 60, 0.16);
}

.app--mode-terminal .tpj-corridor__mark {
	position: absolute;
	top: 4px;
	width: 3px;
	height: 26px;
	margin-left: -1.5px;
	border-radius: 2px;
}

.app--mode-terminal .tpj-marks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
}

.app--mode-terminal .tpj-mark {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding-left: 11px;
	border-left: 2px solid transparent;
}

.app--mode-terminal .tpj-mark__k {
	font-family: var(--tm-mono);
	font-size: 10px;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-mark__v {
	font-family: var(--tm-mono);
	font-variant-numeric: tabular-nums;
	font-size: 16px;
	font-weight: 600;
}

.app--mode-terminal .tpj-mark__sub {
	font-size: 11.5px;
	color: var(--tm-ink-5);
}

/* ── the intelligence ─────────────────────────────────────────────────────── */

.app--mode-terminal .tpj-alerts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 16px;
}

.app--mode-terminal .tpj-alert {
	display: flex;
	flex-direction: column;
	gap: 13px;
	padding: 20px 22px 18px;
	border: 1px solid var(--tm-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.02);
}

/* Tint is the SEVERITY of what the card is telling you, which is why the breach
   card is loss-red and the floor-lock card is the accent: one is a cost, the
   other is the page's only piece of good news. */
.app--mode-terminal .tpj-alert--warn {
	border-color: rgba(232, 195, 74, 0.22);
	background: linear-gradient(160deg, rgba(232, 195, 74, 0.07), rgba(255, 255, 255, 0.014) 58%);
}

.app--mode-terminal .tpj-alert--loss {
	border-color: rgba(255, 107, 94, 0.22);
	background: linear-gradient(160deg, rgba(255, 107, 94, 0.07), rgba(255, 255, 255, 0.014) 58%);
}

.app--mode-terminal .tpj-alert--lime {
	border-color: rgba(198, 248, 60, 0.22);
	background: linear-gradient(160deg, rgba(198, 248, 60, 0.07), rgba(255, 255, 255, 0.014) 58%);
}

.app--mode-terminal .tpj-alert__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.app--mode-terminal .tpj-alert__kicker {
	font-family: var(--tm-mono);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.app--mode-terminal .tpj-alert__when {
	font-family: var(--tm-mono);
	font-size: 11px;
	color: var(--tm-ink-5);
}

.app--mode-terminal .tpj-alert__h {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.32;
	color: var(--tm-ink);
}

.app--mode-terminal .tpj-alert__b {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--tm-ink-3);
}

.app--mode-terminal .tpj-alert__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: auto;
	padding-top: 15px;
	border-top: 1px solid var(--tm-line);
}

.app--mode-terminal .tpj-stat {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.app--mode-terminal .tpj-stat__k {
	font-size: 10.5px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-stat__v {
	font-family: var(--tm-mono);
	font-variant-numeric: tabular-nums;
	font-size: 15px;
	font-weight: 600;
}

/* ── the pending order ────────────────────────────────────────────────────── */

.app--mode-terminal .tpj-order {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	padding: 12px 14px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.035);
}

.app--mode-terminal .tpj-order__l {
	font-family: var(--tm-mono);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tm-ink);
}

.app--mode-terminal .tpj-order__d {
	font-family: var(--tm-mono);
	font-variant-numeric: tabular-nums;
	font-size: 12.5px;
	color: var(--tm-ink-3);
}

.app--mode-terminal .tpj-out {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 108px 116px;
	gap: 12px;
	align-items: baseline;
	padding-bottom: 12px;
	box-shadow: inset 0 -1px 0 var(--tm-line-2);
}

.app--mode-terminal .tpj-out__id {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.app--mode-terminal .tpj-out__k {
	font-size: 13.5px;
	color: var(--tm-ink);
}

.app--mode-terminal .tpj-out__n {
	font-size: 12px;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-out__v,
.app--mode-terminal .tpj-out__date {
	font-family: var(--tm-mono);
	font-variant-numeric: tabular-nums;
	font-size: 13.5px;
	text-align: right;
}

.app--mode-terminal .tpj-out__date {
	font-weight: 600;
}

.app--mode-terminal .tpj-foot,
.app--mode-terminal .tpj-sample {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--tm-ink-5);
}

/* ── the post-payout cliff ────────────────────────────────────────────────── */

/* The only permanently-tinted card on the page. It is a warning about a thing
   you are about to do voluntarily, which is the one place a standing colour
   earns its keep. */
.app--mode-terminal .tpj-cliff {
	border-color: rgba(255, 107, 94, 0.2);
	background: linear-gradient(160deg, rgba(255, 107, 94, 0.06), rgba(255, 255, 255, 0.014) 58%);
}

.app--mode-terminal .tpj-cliff__flag {
	font-family: var(--tm-mono);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tm-loss);
}

.app--mode-terminal .tpj-seg {
	display: flex;
	gap: 4px;
	padding: 3px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.04);
	width: max-content;
}

.app--mode-terminal .tpj-seg__b {
	padding: 7px 13px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	font-family: var(--tm-mono);
	font-variant-numeric: tabular-nums;
	font-size: 12.5px;
	font-weight: 500;
	white-space: nowrap;
	color: var(--tm-ink-3);
	cursor: pointer;
	transition: background 0.16s var(--tm-ease), color 0.16s var(--tm-ease);
}

.app--mode-terminal .tpj-seg__b:hover {
	color: var(--tm-ink);
}

.app--mode-terminal .tpj-seg__b.is-on {
	background: rgba(255, 255, 255, 0.1);
	font-weight: 600;
	color: var(--tm-ink);
}

.app--mode-terminal .tpj-cliff__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.app--mode-terminal .tpj-cliff__verdict {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--tm-ink-2);
}

/* ── request state ────────────────────────────────────────────────────────── */

.app--mode-terminal .tpj-request {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 18px 20px;
	border: 1px solid var(--tm-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.02);
}

.app--mode-terminal .tpj-request__id {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.app--mode-terminal .tpj-request__h {
	font-size: 14px;
	font-weight: 600;
	color: var(--tm-ink);
}

.app--mode-terminal .tpj-request__p {
	font-size: 12.5px;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-request__btn {
	margin-left: auto;
	padding: 11px 20px;
	border: 1px solid var(--tm-hair);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.035);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--tm-ink-5);
}

.app--mode-terminal .tpj-request__btn:disabled {
	cursor: not-allowed;
}

/* ── responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
	.app--mode-terminal .tpj-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.app--mode-terminal .tpj-head__facts {
		gap: 22px;
	}
}

@media (max-width: 860px) {
	/* The ladder loses its two middle columns before it loses the date — current
	   and required are context; the date is the answer. */
	.app--mode-terminal .tpj-grow {
		grid-template-columns: 14px minmax(0, 1fr) 120px;
	}

	.app--mode-terminal .tpj-grow__cur,
	.app--mode-terminal .tpj-grow__req {
		display: none;
	}

	.app--mode-terminal .tpj-head__d {
		font-size: 40px;
	}

	.app--mode-terminal .tpj-head__facts {
		grid-template-columns: repeat(2, auto);
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAYOUT JOURNEY REFINEMENT PASS (2026-09-04) — appended for the same reason as
   the performance pass: this sheet loads last of the two and must own its own
   corrections. Precision only.

   THE GATE LADDER IS A RULE ENGINE, not a set of cards. Exactly one row may
   carry emphasis — the binding gate, the one that sets the date — and it earns
   it by mattering, not by decoration. Every other row is a quiet line in a
   table. That distinction is the whole readability of the page.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── hero ──────────────────────────────────────────────────────────────────
   The date is the answer, so it stays the only large thing. The badge steps
   down; the sentence under it highlights the GATE and nothing else. */
.app--mode-terminal .tpj-head__d {
	font-size: clamp(38px, 3vw, 52px);
	line-height: 1;
	font-weight: 600;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums lining-nums;
}

.app--mode-terminal .tpj-head__away {
	height: 26px;
	display: inline-flex;
	align-items: center;
	padding: 0 9px;
	border-radius: 7px;
	font-size: 12.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums lining-nums;
}

.app--mode-terminal .tpj-head__k {
	font-size: 10px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: 0.09em;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-head__why {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--tm-ink-2);
}

.app--mode-terminal .tpj-head__asof {
	font-size: 10.5px;
	color: var(--tm-ink-5);
}

/* ── the three summary columns ─────────────────────────────────────────────
   Equity, cushion, gates. One label baseline, one value baseline, one metadata
   baseline. They were three stacks that happened to sit beside each other. */
.app--mode-terminal .tpj-head__facts {
	gap: 32px;
	align-items: start;
}

.app--mode-terminal .tpj-fact {
	gap: 7px;
}

.app--mode-terminal .tpj-fact__k {
	font-size: 10px;
	line-height: 1;
	font-weight: 500;
	letter-spacing: 0.07em;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-fact__v {
	font-size: 18px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: -0.025em;
	font-variant-numeric: tabular-nums lining-nums;
}

.app--mode-terminal .tpj-fact__sub {
	font-size: 11px;
	line-height: 1;
	color: var(--tm-ink-5);
}

/* ── the gate ladder ───────────────────────────────────────────────────────
   Rows to one height and one padding, with the emphasis reserved for the
   binding gate. The non-binding rows lose their card-like fill entirely — a
   table of six equally-boxed rows hides the one that matters. */
.app--mode-terminal .tpj-grow--head {
	padding: 0 18px 10px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-grow--row {
	min-height: 62px;
	padding: 14px 18px;
	margin-bottom: 6px;
	border-color: var(--tm-line-2);
	background: rgba(255, 255, 255, 0.012);
	transition:
		background 0.14s var(--tm-ease-ui),
		border-color 0.14s var(--tm-ease-ui);
}

.app--mode-terminal .tpj-grow--row:not(.is-binding):hover {
	border-color: var(--tm-line);
	background: rgba(255, 255, 255, 0.022);
}

/* A met gate is finished business: it stays quiet and green, and does not
   compete with the two that are still open. */
.app--mode-terminal .tpj-grow--row.is-met .tpj-gate__l {
	color: var(--tm-ink-3);
}

.app--mode-terminal .tpj-gate__l {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -0.005em;
}

.app--mode-terminal .tpj-gate__n {
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-grow__cur,
.app--mode-terminal .tpj-grow__req,
.app--mode-terminal .tpj-grow__date,
.app--mode-terminal .tpj-grow__sub {
	font-variant-numeric: tabular-nums lining-nums;
}

.app--mode-terminal .tpj-grow__sub {
	font-size: 10.5px;
	color: var(--tm-ink-5);
}

.app--mode-terminal .tpj-dot {
	width: 7px;
	height: 7px;
}

/* ── the corridor ──────────────────────────────────────────────────────────
   The page's most distinctive figure. Markers thinner and crisper, the four
   value columns on one grid so they sit under the marks they describe. */
.app--mode-terminal .tpj-corridor__mark {
	width: 2px;
	margin-left: -1px;
	height: 24px;
	top: 5px;
	border-radius: 1px;
}

.app--mode-terminal .tpj-marks {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.app--mode-terminal .tpj-mark__k {
	font-size: 10px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: 0.09em;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-mark__v {
	font-size: 15px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums lining-nums;
}

.app--mode-terminal .tpj-mark__sub {
	font-size: 11px;
	line-height: 1.35;
	color: var(--tm-ink-5);
}

/* ── the three insight cards ───────────────────────────────────────────────
   Tinted border and a breath of surface — never a coloured card. The headline
   is the product: it is the sentence someone acts on, so it gets the weight and
   the body does not. */
.app--mode-terminal .tpj-alert {
	padding: 20px 22px 18px;
	border-radius: var(--tm-r-lg);
}

.app--mode-terminal .tpj-alert--warn {
	border-color: rgba(232, 195, 74, 0.24);
	background: linear-gradient(180deg, rgba(232, 195, 74, 0.045), rgba(232, 195, 74, 0)), rgba(255, 255, 255, 0.015);
}

.app--mode-terminal .tpj-alert--loss {
	border-color: rgba(255, 107, 94, 0.24);
	background: linear-gradient(180deg, rgba(255, 107, 94, 0.045), rgba(255, 107, 94, 0)), rgba(255, 255, 255, 0.015);
}

.app--mode-terminal .tpj-alert--lime {
	border-color: rgba(198, 248, 60, 0.24);
	background: linear-gradient(180deg, rgba(198, 248, 60, 0.045), rgba(198, 248, 60, 0)), rgba(255, 255, 255, 0.015);
}

.app--mode-terminal .tpj-alert__kicker {
	font-size: 10px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: 0.11em;
}

.app--mode-terminal .tpj-alert__when {
	font-size: 10.5px;
	color: var(--tm-ink-5);
}

.app--mode-terminal .tpj-alert__h {
	font-size: 15px;
	line-height: 1.4;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.app--mode-terminal .tpj-alert__b {
	font-size: 13px;
	line-height: 1.6;
	color: var(--tm-ink-3);
}

.app--mode-terminal .tpj-stat__k {
	font-size: 10px;
	line-height: 1;
	font-weight: 500;
	letter-spacing: 0.07em;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-stat__v {
	font-size: 15px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums lining-nums;
}

/* ── the what-if card ──────────────────────────────────────────────────────
   Scenario, cushion, date — three columns on one baseline. */
.app--mode-terminal .tpj-out {
	min-height: 46px;
	align-items: center;
	padding-bottom: 10px;
}

.app--mode-terminal .tpj-out__k {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--tm-ink);
}

.app--mode-terminal .tpj-out__n {
	font-size: 12px;
	line-height: 1.4;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-out__v,
.app--mode-terminal .tpj-out__date {
	font-variant-numeric: tabular-nums lining-nums;
}

.app--mode-terminal .tpj-order__l,
.app--mode-terminal .tpj-order__d {
	font-variant-numeric: tabular-nums lining-nums;
}

.app--mode-terminal .tpj-foot {
	font-size: 12px;
	line-height: 1.55;
	color: var(--tm-ink-5);
}

/* ── the withdrawal cliff ──────────────────────────────────────────────────
   The amount switcher is a LOCAL control: neutral, never lime. The card keeps
   its red border and nothing more — the warning is in the numbers and the
   sentence, and a card flooded with red stops being read. */
.app--mode-terminal .tpj-cliff {
	border-color: rgba(255, 107, 94, 0.22);
	background: linear-gradient(180deg, rgba(255, 107, 94, 0.04), rgba(255, 107, 94, 0)), rgba(255, 255, 255, 0.015);
}

.app--mode-terminal .tpj-seg {
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--tm-line-2);
	border-radius: var(--tm-r-md);
	background: rgba(255, 255, 255, 0.03);
}

.app--mode-terminal .tpj-seg__b {
	height: 28px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 7px;
	font-size: 12px;
	font-variant-numeric: tabular-nums lining-nums;
}

/* The paragraph is the point of the card. It reads at secondary, not faint. */
.app--mode-terminal .tpj-cliff__verdict {
	font-size: 13px;
	line-height: 1.6;
	color: var(--tm-ink-2);
}

.app--mode-terminal .tpj-cliff__flag {
	font-size: 10px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: 0.1em;
}

/* ── the request footer ────────────────────────────────────────────────────
   Disabled, and it must LOOK disabled: neutral surface, muted border, muted
   ink, no hover, not-allowed. It becomes lime the day the gates clear and not
   a moment sooner — a lime button you cannot press is a broken promise. */
.app--mode-terminal .tpj-request {
	min-height: 74px;
	padding: 18px 22px;
	border-radius: var(--tm-r-lg);
}

.app--mode-terminal .tpj-request__h {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.app--mode-terminal .tpj-request__p {
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-request__btn {
	height: 40px;
	padding: 0 18px;
	border: 1px solid var(--tm-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	font-size: 12.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums lining-nums;
	color: var(--tm-ink-4);
}

.app--mode-terminal .tpj-request__btn:disabled {
	cursor: not-allowed;
}

.app--mode-terminal .tpj-sample {
	color: var(--tm-ink-5);
}

/* ── responsive ────────────────────────────────────────────────────────────
   The ladder's two middle columns go before the date does — current and
   required are context; the date is the answer. That rule already exists at
   860px in the base sheet; this only keeps the corridor readable with it. */
@media (max-width: 860px) {
	.app--mode-terminal .tpj-marks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.app--mode-terminal .tpj-head__facts {
		gap: 20px;
	}
}
