/* QL Retirement — page styles on top of /budget.css (shared cards, grid, module tools, QL Intelligence panel). */
.rt-sub { color: var(--muted); font-size: 12px; margin: -2px 0 10px; line-height: 1.45; }
.chipbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.chipbar .schip b { color: inherit; }
.chipbar .schip small { display: block; font-size: 10px; font-weight: 500; opacity: .8; }
.rtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin: 0 0 10px; }
.gauge { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; margin: 0 0 10px; }
.gauge svg { max-width: 96px; }
.gauge .g-l { font-size: 12px; color: var(--muted); line-height: 1.5; }
.gauge .g-l b { color: var(--fg); font-size: 14px; }
.levers { display: grid; gap: 6px; margin: 8px 0 10px; }
.lever { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 76px auto; gap: 8px; align-items: center; font-size: 12px; }
.lever .lb { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lever .tr { position: relative; height: 12px; background: #161b22; border-radius: 4px; overflow: hidden; }
.lever .tr i { position: absolute; top: 0; bottom: 0; }
.lever .vl { text-align: right; font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; }
.lever .btn.small { padding: 2px 8px; font-size: 11px; }
.mstones { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mstone { display: grid; grid-template-columns: 54px 16px 1fr; gap: 8px; align-items: start; padding: 6px 0; font-size: 12.5px; position: relative; }
.mstone .ma { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.mstone .ma small { display: block; color: var(--dim); font-weight: 500; font-size: 10.5px; }
.mstone .md { width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin-top: 4px; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); }
.mstone .mt b { color: var(--text); }
.mstone .mt i { display: block; font-style: normal; color: var(--dim); font-size: 11.5px; }
.mstone.passed { opacity: .55; }
.mstone.key .md { background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.mstone.bad .md { background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.mstone.bad .mt b { color: var(--red); }
.mstone::before { content: ''; position: absolute; left: 66px; top: 20px; bottom: -6px; width: 1px; background: var(--line); }
.mstone:last-child::before { display: none; }
.rgoal { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; display: grid; gap: 6px; }
.rgoal .gv { font-size: 19px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.rgoal .gv small { font-size: 12px; color: var(--muted); font-weight: 500; }
.rgoal .gbar { height: 8px; background: #0a0e14; border-radius: 4px; overflow: hidden; }
.rgoal .gbar i { display: block; height: 100%; border-radius: 4px; }
.rgoals { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 0 0 10px; }
.gform { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr auto; gap: 8px; align-items: end; }
.gform label { display: grid; gap: 3px; font-size: 11px; color: var(--dim); }
@media (max-width: 720px) { .gform { grid-template-columns: 1fr 1fr; } }
.isec { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel2); }
.isec h3 { margin: 0 0 8px; font-size: 13px; }
.isec .hint { margin: 0 0 8px; }
.inputs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.isec .settings-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.isec label { font-size: 11px; }
.isec label.chk { flex-direction: row; align-items: center; display: flex; gap: 8px; }
.isec label.chk input { width: auto; }
.pill.est { color: var(--yellow); border-color: rgba(210,153,34,.5); }
.plaidrow { margin-top: 6px; }
/* Milestone reminders (step 6) */
.msremind { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 12px; }
.remctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.remctl label { font-size: 11px; color: var(--dim); display: inline-flex; gap: 4px; align-items: center; }
.remctl select { width: auto; }
.remctl label.chk input { width: auto; }
/* Plan report exports (step 5) */
.exportrow { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; background: var(--panel); font-size: 12px; }
.exportrow .status[data-state="error"] { color: var(--red); } .exportrow .status[data-state="ok"] { color: var(--green); } .exportrow .status[data-state="busy"] { color: var(--yellow); }
.exportrow input[type=text] { width: 100%; }
#rt-report { display: none; }
@media print {
  @page { margin: 14mm 12mm; }
  html.rt-printing body > * { display: none !important; }
  html.rt-printing body { background: #fff !important; color: #111 !important; padding: 0 !important; }
  html.rt-printing #rt-report { display: block !important; color: #111; font: 11px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
  .rt-report h1 { font-size: 18px; margin: 0 0 4px; } .rt-report h2 { font-size: 14px; margin: 16px 0 6px; border-bottom: 1px solid #ccc; padding-bottom: 3px; page-break-after: avoid; } .rt-report h3 { font-size: 12px; margin: 10px 0 4px; }
  .rt-report .rt-report-kicker { font-size: 10px; letter-spacing: .08em; color: #666; margin: 0; } .rt-report .rt-report-sub, .rt-report .rt-report-fine, .rt-report .rt-report-note, .rt-report .rt-report-foot { font-size: 9.5px; color: #555; }
  .rt-report table { width: 100%; border-collapse: collapse; margin: 4px 0 8px; page-break-inside: auto; } .rt-report th, .rt-report td { border-bottom: 1px solid #ddd; padding: 3px 5px; text-align: left; vertical-align: top; font-size: 10px; } .rt-report th { background: #f2f2f2; } .rt-report td.k { color: #333; white-space: nowrap; }
  .rt-report figure { margin: 6px 0 10px; page-break-inside: avoid; } .rt-report figure svg { width: 100%; height: auto; max-height: 260px; } .rt-report figcaption { font-size: 9.5px; color: #555; margin-top: 2px; }
  .rt-report blockquote { border-left: 3px solid #999; margin: 4px 0; padding: 4px 8px; color: #333; }
  .rt-report footer { margin-top: 16px; border-top: 1px solid #ccc; padding-top: 6px; }
}
.plaidlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.plaidlist .pill { font-variant-numeric: tabular-nums; }
.pill.seed { color: var(--blue); border-color: rgba(88,166,255,.45); }
.scen-tbl td.num, .scen-tbl th.num { white-space: nowrap; }
.scen-tbl tr.base td { font-weight: 700; color: var(--fg); background: rgba(234,88,12,.06); }
.scen-tbl .btn.small { padding: 2px 8px; font-size: 11px; }
.ord { display: grid; gap: 6px; }
.ord .row { justify-content: space-between; font-size: 12px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); }
.ord .row.on { border-color: rgba(234,88,12,.5); }
.ord .row b { color: var(--fg); font-variant-numeric: tabular-nums; }
.simbadge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--purple); border: 1px solid rgba(188,140,255,.45); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }
.sb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.kpi .v.small { font-size: 18px; }
.ssrow td { font-variant-numeric: tabular-nums; }
.ssrow.on td { color: var(--fg); font-weight: 700; background: rgba(234,88,12,.06); }
.tl-marker { font-size: 10px; }
@media (max-width: 720px) { .lever { grid-template-columns: 100px 1fr 60px auto; } .gauge { grid-template-columns: 80px 1fr; } }
