/* ===== Retirement plan ===== */

/* Hisaab-specific chrome (summary, settle, surplus, FAB) is hidden on this tab, as on
   Leogo/Ikaa — the pace card is the summary here. */
body.retirement-mode .summary,
body.retirement-mode .settle,
body.retirement-mode .surplus-banner,
body.retirement-mode .warn-banner,
body.retirement-mode .fab,
body.retirement-mode .tagline,
body.retirement-mode .pending-badge { display: none; }
body.retirement-mode .app-header { padding: 20px 0 12px; }
/* no gold add-FAB here, so the P&L button can sit in the corner (style.css lifts it
   above the FAB on every non-module tab) */
/* The Total P&L button floats on every other tab. Here it would sit over the cards and
   charts while scrolling, so on this tab it becomes a plain labelled button at the very
   end of the page instead (it is the last element in <body>). */
body.retirement-mode .pnl-fab {
  position: static; display: flex; width: auto; height: 44px; margin: 8px auto calc(32px + env(safe-area-inset-bottom));
  padding: 0 18px; gap: 8px; border-radius: 999px; font-size: var(--fs-md); box-shadow: none;
}
body.retirement-mode .pnl-fab .pnl-fab-lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

.rt-root { --rt-ahead: var(--surplus); --rt-on: var(--invested); --rt-slight: var(--text-2); --rt-behind: var(--text-2); }
/* a short month is normal: no red, no warning colours for behind-plan states */

/* ---------- hero: one figure, alone ---------- */
.rt-top { position: relative; padding: 40px 4px 44px; text-align: center; }
.rt-top-v { margin: 0; font-size: clamp(24px, 7vw, 34px); font-weight: 600; line-height: 1.25; color: var(--text-2); letter-spacing: -0.01em; }
.rt-top-amt { display: block; font-size: clamp(44px, 14vw, 64px); font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 6px; }
.rt-top.done .rt-top-v { color: var(--surplus); }
.rt-top-prog { margin: 12px 0 0; font-size: var(--fs-md); color: var(--muted); font-variant-numeric: tabular-nums; }
.rt-top-log { margin-top: 18px; width: 100%; min-height: 48px; }
.rt-top-short { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.rt-top .rt-i { font-size: 16px; }
.rt-due {
  position: absolute; top: 4px; right: 0; display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--text-2); font: inherit; font-size: var(--fs-sm); cursor: pointer;
}
.rt-due:hover, .rt-due:focus-visible { border-color: var(--gold); color: var(--white); }
.rt-due-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
/* everything else: one expander */
.rt-more > .rt-more-sum {
  list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--white); font-weight: 600; font-size: var(--fs-md); position: relative;
}
.rt-more > .rt-more-sum::-webkit-details-marker { display: none; }
.rt-more > .rt-more-sum span { font-weight: 400; font-size: var(--fs-sm); color: var(--muted); padding-right: 24px; }
.rt-more > .rt-more-sum::after {
  content: ''; position: absolute; right: 18px; top: 22px; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform var(--t) var(--ease);
}
.rt-more[open] > .rt-more-sum::after { transform: rotate(-135deg); top: 26px; }

/* ---------- charts (SVG) ---------- */
.rt-root { --sl-sip: var(--invested); --sl-lump: var(--gold); --sl-surplus: var(--surplus); --sl-out: #9a8f8f; }
.rt-chart { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.rt-chart text { font-family: inherit; }
.rt-axis { stroke: var(--border); stroke-width: 1; }
.rt-tick { fill: var(--muted); font-size: 12px; }
.rt-bar-v { fill: var(--white); font-size: 13px; font-weight: 600; }
.rt-bar-l { fill: var(--text-2); font-size: 12.5px; }
.rt-bar-s { fill: var(--muted); font-size: 12px; }
.rt-barr { fill: var(--card-2); stroke: var(--border); }
.rt-barr.expected { fill: var(--gold); stroke: none; }
.rt-barr.conservative, .rt-barr.optimistic { fill: #3a3a3a; stroke: none; }
.rt-barg { cursor: pointer; outline: none; }
.rt-bar-hit { fill: transparent; }
.rt-barg.dim .rt-barr, .rt-barg.dim .rt-bar-v { opacity: 0.35; }
.rt-barg[aria-pressed="true"] .rt-barr { stroke: var(--white); stroke-width: 1.5; }
.rt-barg:focus-visible .rt-bar-hit { stroke: var(--gold); stroke-width: 1.5; }
.rt-bar-hint { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.rt-bar-detail { margin-top: 6px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card-2); display: flex; flex-direction: column; gap: 3px; }
.rt-bd-h { font-size: var(--fs-md); color: var(--text-2); }
.rt-bd-h b { color: var(--white); font-weight: 600; }
.rt-bd-l { font-size: var(--fs-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }
.rt-bd-less { color: #d98c8c; }
.rt-bd-more { color: var(--surplus); }
.rt-bd-same { color: var(--muted); }
.rt-target { stroke: var(--white); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: 0.75; }
.rt-target-l { fill: var(--white); font-size: 12px; font-weight: 600; opacity: 0.85; }
.rt-linep { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; }
.rt-area { fill: var(--gold); opacity: 0.12; }
.rt-enddot { fill: var(--gold); }
/* donut */
.rt-donut { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; }
.rt-donut svg { width: 46%; max-width: 180px; min-width: 132px; flex-shrink: 0; }
.rt-sl { cursor: pointer; transition: opacity var(--t) var(--ease); }
.rt-sl.dim { opacity: 0.25; }
.sl-sip { stroke: var(--sl-sip); background: var(--sl-sip); }
.sl-lump { stroke: var(--sl-lump); background: var(--sl-lump); }
.sl-surplus { stroke: var(--sl-surplus); background: var(--sl-surplus); }
.sl-out { stroke: var(--sl-out); background: var(--sl-out); }
.sl-empty { stroke: var(--card-2); }
.rt-donut-l { fill: var(--muted); font-size: 10px; }
.rt-donut-v { fill: var(--white); font-size: 14px; font-weight: 700; }
.rt-legend { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.rt-leg {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-2); font: inherit; font-size: var(--fs-md); text-align: left; cursor: pointer;
}
.rt-leg[aria-pressed="true"] { background: var(--card-2); color: var(--white); }
.rt-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.rt-funded { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 4px; }
/* compact next 5 moves */
.rt-move-list.compact .rt-move { display: flex; align-items: center; gap: 8px; padding: 6px 0; min-height: 44px; }
.rt-move-list.compact .rt-move-month { flex: 1; font-weight: 500; }
.rt-move-list.compact .rt-move-amt { font-size: var(--fs-md); }
.rt-move-list.compact .rt-skip { margin: 0 0 0 4px; min-height: 32px; }
.rt-log-open { width: 100%; }
.rt-log-title { margin-top: 14px; }

/* ---------- ⓘ explanations ---------- */
.rt-i {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 24px; height: 24px; margin: -4px 0; padding: 0; border: none; border-radius: 50%;
  background: transparent; color: var(--muted); font: inherit; font-size: 14px; line-height: 1;
  text-transform: none; letter-spacing: 0; cursor: pointer;
}
.rt-i::before { content: ''; position: absolute; width: 44px; height: 44px; }  /* bigger tap target */
.rt-i { position: relative; }
.rt-i:hover, .rt-i:focus-visible, .rt-i[aria-expanded="true"] { color: var(--gold); outline: none; }
.rt-i:focus-visible { box-shadow: var(--focus-ring); }
.rt-tip {
  position: absolute; z-index: 200; max-width: min(280px, calc(100vw - 24px));
  padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card-2); border: 1px solid var(--border);
  color: var(--white); font-size: var(--fs-sm); line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

/* ---------- 5-year review ---------- */
.rt-banner { background: var(--accent-soft); border: 1px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.rt-banner-t { font-size: var(--fs-lg); font-weight: 600; color: var(--white); }
.rt-banner-s { font-size: var(--fs-sm); color: var(--text-2); margin-top: 4px; line-height: 1.45; }
.rt-banner-a { display: flex; gap: 8px; margin-top: 12px; }
.rt-banner-a .lg-btn { flex: 1; min-height: 44px; padding: 10px; font-size: var(--fs-md); }
.rt-plan-links { display: flex; gap: 8px; }
.rt-plan-links .lg-btn { flex: 1; font-size: var(--fs-md); padding: 10px; }
.rt-rv { max-height: 62vh; overflow-y: auto; margin: 0 -4px 14px; padding: 0 4px; }
.rt-rv-h { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 12px; }
.rt-rv-block { padding: 12px 0; border-top: 1px solid var(--border-soft); }
.rt-rv-l { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.rt-rv-form label { display: block; font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 6px; }
.rt-rv-row { display: flex; gap: 8px; }
.rt-rv-row input { flex: 1; min-width: 0; min-height: 44px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--white); font: inherit; padding: 0 12px; }
.rt-rv-row input:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus-ring); }
.rt-rv-row .lg-btn { min-height: 44px; padding: 0 16px; font-size: var(--fs-md); }
.rt-rv-imp { font-size: var(--fs-md); color: var(--text-2); margin: 10px 0 0; line-height: 1.45; }
.rt-rv-imp b { color: var(--white); }
.rt-range-col.closest { outline: 2px solid var(--surplus); }
.rt-rv-actions .lg-btn { flex: 1; }
.rt-rv-next { text-align: center; margin-top: 10px; }

.rt-year { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.rt-year-t { font-size: var(--fs-md); font-weight: 600; color: var(--white); line-height: 1.4; }
.rt-year-s { font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
.rt-suggest { margin-top: 12px; padding: 12px; border: 1px solid var(--gold); border-radius: var(--radius-sm); background: var(--accent-soft); }
.rt-suggest-t { font-size: var(--fs-md); font-weight: 600; color: var(--white); }
.rt-suggest-s { font-size: var(--fs-sm); color: var(--text-2); margin-top: 4px; line-height: 1.45; }
.rt-cap-note { font-size: var(--fs-md); color: var(--text-2); line-height: 1.45; margin: 8px 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card-2); }
.rt-cap-note b { color: var(--white); }
.rt-cmp th, .rt-cmp td { white-space: nowrap; }
.rt-cmp td.rt-num, .rt-cmp th.rt-num { padding-left: 10px; font-size: var(--fs-sm); }
.rt-cmp small { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- pace hero ---------- */
.rt-hero {
  --rt-c: var(--rt-on);
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--rt-c);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.rt-hero.ahead { --rt-c: var(--rt-ahead); }
.rt-hero.slight { --rt-c: var(--rt-slight); }
.rt-hero.behind { --rt-c: var(--rt-behind); }
.rt-hero-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rt-status { font-size: var(--fs-2xl); font-weight: 700; color: var(--rt-c); letter-spacing: -0.01em; }
.rt-status-pct { font-size: var(--fs-xl); font-weight: 600; color: var(--rt-c); font-variant-numeric: tabular-nums; }
.rt-gap { font-size: var(--fs-md); color: var(--white); margin-top: 4px; }
.rt-vs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 12px; font-size: var(--fs-sm); color: var(--text-2); }
.rt-vs b { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
.rt-vs-sep { color: var(--muted); }
.rt-now { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }
.rt-now b { color: var(--text-2); font-weight: 600; }
.rt-lump { margin-top: 12px; }
.rt-lump-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); color: var(--text-2); }
.rt-lump-row b { color: var(--white); font-variant-numeric: tabular-nums; }
.rt-lump-sub { font-size: var(--fs-xs); color: var(--muted); }
.rt-paid { font-size: var(--fs-sm); color: var(--surplus); margin-bottom: 6px; }
.rt-log-btn { width: 100%; margin-top: 14px; }

/* ---------- lumpsum overflow policy ---------- */
.rt-overflow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.rt-overflow b { color: var(--text-2); }
.rt-overflow.due { display: block; margin-top: 12px; padding: 12px; border: 1px solid var(--gold); border-radius: var(--radius-sm); background: var(--accent-soft); }
.rt-of-t { font-size: var(--fs-md); font-weight: 600; color: var(--white); }
.rt-of-s { font-size: var(--fs-sm); color: var(--text-2); margin-top: 4px; line-height: 1.45; }
.rt-of-s b { color: var(--white); }
.rt-of-opts { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.rt-of-opt {
  display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px; min-height: 52px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--white);
  font: inherit; cursor: pointer;
}
.rt-of-opt:hover, .rt-of-opt:focus-visible, .rt-of-opt.on { border-color: var(--gold); outline: none; }
.rt-of-opt-l { font-size: var(--fs-md); font-weight: 600; }
.rt-of-opt-s { font-size: var(--fs-xs); color: var(--muted); }
.rt-banner-a.two .lg-btn { display: flex; flex-direction: column; gap: 2px; padding: 10px; min-height: 56px; }
.rt-banner-a.two .lg-btn span { font-size: var(--fs-xs); font-weight: 400; opacity: 0.75; }
.rt-year-keepbtn { width: 100%; margin-top: 8px; }

/* ---------- next 5 moves ---------- */
.rt-min { font-size: var(--fs-md); color: var(--text-2); }
.rt-min b { color: var(--white); font-variant-numeric: tabular-nums; }
.rt-min span { color: var(--muted); }
.rt-moves-note { margin: 8px 0 0; font-size: var(--fs-md); color: var(--text-2); line-height: 1.45; }
.rt-revise { width: 100%; margin-top: 10px; }
.rt-move-list { list-style: none; margin: 12px 0 0; padding: 0; }
.rt-move { padding: 12px 0; border-top: 1px solid var(--border-soft); }
.rt-move:first-child { border-top: none; }
.rt-move-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rt-move-month { font-size: var(--fs-md); font-weight: 600; color: var(--white); }
.rt-move-amt { font-size: var(--fs-lg); font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.rt-move-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: var(--fs-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }
.rt-move-line b { color: var(--white); font-weight: 600; }
.rt-move-line.sub { color: var(--muted); }
.rt-ok { color: var(--surplus); white-space: nowrap; }
.rt-move-why { margin-top: 4px; font-size: var(--fs-xs); color: var(--muted); }
.rt-move.skipped .rt-move-amt { color: var(--muted); font-weight: 500; }
.rt-skip {
  margin-top: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--text-2); font: inherit; font-size: var(--fs-sm); cursor: pointer;
}
.rt-skip:hover, .rt-skip:focus-visible { border-color: var(--gold); color: var(--white); }

/* ---------- KPI grid ---------- */
.rt-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.rt-kpi {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
}
.rt-kpi-wide { grid-column: 1 / -1; }
.rt-kpi-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rt-kpi-l { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.rt-kpi-v { font-size: var(--fs-xl); font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-kpi-v small { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); margin-left: 2px; }
.rt-kpi-v.sm { font-size: var(--fs-lg); }
.rt-kpi-v.good { color: var(--surplus); }
.rt-kpi-v.warn { color: var(--text-2); }
.rt-kpi-s { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.4; }
.rt-lines { margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.rt-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--border-soft); }
.rt-lines > div:first-child { border-top: none; }
.rt-lines dt { font-size: var(--fs-md); color: var(--text-2); min-width: 0; }
.rt-lines dt small { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 1px; }
.rt-lines dd { margin: 0; font-size: var(--fs-md); font-weight: 600; color: var(--white); white-space: nowrap; }
.rt-lines .out dd { color: var(--deficit); }
.rt-lines .total { border-top: 1px solid var(--border); margin-top: 2px; }
.rt-lines .total dt { color: var(--white); font-weight: 600; }
.rt-lines .total dd { font-size: var(--fs-xl); }
.rt-range { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 4px; }
.rt-range-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px; border-radius: var(--radius-sm); background: var(--card-2); }
.rt-range-col.expected { outline: 1px solid var(--gold); }
.rt-range-l { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.rt-range-col.expected .rt-range-l { color: var(--gold); }
.rt-range-v { font-size: var(--fs-lg); font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-range-s { font-size: var(--fs-xs); color: var(--text-2); }
.rt-bar { height: 6px; border-radius: 3px; background: var(--card-2); overflow: hidden; margin: 4px 0 2px; }
.rt-bar span { display: block; height: 100%; background: var(--gold); border-radius: 3px; }

/* ---------- log form ---------- */
.rt-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rt-type { position: relative; }
.rt-type input { position: absolute; opacity: 0; pointer-events: none; }
.rt-type span {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: var(--fs-md); font-weight: 500; color: var(--text-2); cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.rt-type input:focus-visible + span { box-shadow: var(--focus-ring); }
.rt-type input:checked + span { background: var(--accent-soft); border-color: var(--gold); color: var(--white); }
.rt-type.withdrawal input:checked + span { background: rgba(229, 72, 77, 0.14); border-color: var(--deficit); }
.rt-opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }

/* ---------- history ---------- */
.rt-txn { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border-soft); }
.rt-txn:first-child { border-top: none; padding-top: 0; }
.rt-txn-type {
  flex-shrink: 0; font-size: var(--fs-xs); font-weight: 600; padding: 3px 8px; border-radius: 999px;
  background: var(--card-2); color: var(--invested);
}
.rt-txn-type.lumpsum { color: var(--gold); }
.rt-txn-type.withdrawal { color: var(--deficit); }
.rt-txn-mid { flex: 1; min-width: 0; }
.rt-txn-meta { display: block; font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-txn-amt { font-size: var(--fs-md); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-txn-amt.in { color: var(--surplus); }
.rt-txn-amt.out { color: var(--deficit); }
.rt-flip { border: 1px solid transparent; font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; min-height: 32px; }
.rt-flip:hover, .rt-flip:focus-visible { border-color: var(--gold); }
.rt-flip small { font-weight: 400; color: var(--muted); }
.rt-tick { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.rt-tick input { width: 18px; height: 18px; accent-color: var(--gold); }
.rt-tick.sm { font-size: var(--fs-xs); margin-top: 4px; min-height: 28px; }
.rt-link { background: none; border: none; padding: 6px 0; font: inherit; font-size: var(--fs-xs); color: var(--gold); cursor: pointer; text-align: left; }
.rt-txn-del {
  flex-shrink: 0; width: 36px; height: 36px; border: none; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 14px; cursor: pointer;
}
.rt-txn-del:hover, .rt-txn-del:focus-visible { background: var(--card-2); color: var(--deficit); }

/* ---------- collapsible panels ---------- */
.rt-details > summary { list-style: none; cursor: pointer; margin-bottom: 0; position: relative; padding-right: 24px; }
.rt-details > summary::-webkit-details-marker { display: none; }
.rt-details > summary::after {
  content: ''; position: absolute; right: 4px; top: 4px; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform var(--t) var(--ease);
}
.rt-details[open] > summary { margin-bottom: 14px; }
.rt-details[open] > summary::after { transform: rotate(-135deg); top: 8px; }

.rt-sched { width: 100%; border-collapse: collapse; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.rt-sched th { text-align: left; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0 0 8px; }
.rt-sched td { padding: 2px 0; border-top: 1px solid var(--border-soft); color: var(--text-2); }
.rt-sched .rt-num { text-align: right; }
.rt-sched tr.past td { color: var(--muted); }
.rt-sched tr.now td { color: var(--white); font-weight: 600; }
.rt-now-tag { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-on-accent); background: var(--gold); border-radius: 999px; padding: 1px 6px; margin-left: 4px; }
.rt-sched-amt {
  min-height: 40px; padding: 0 8px; margin-right: -8px; border: none; background: transparent;
  color: inherit; font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; border-radius: var(--radius-sm);
}
.rt-sched-amt:hover, .rt-sched-amt:focus-visible { background: var(--card-2); color: var(--gold); }

.rt-fine { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; margin: 0; }

@media (max-width: 380px) {
  .rt-kpis { grid-template-columns: 1fr; }
}
