/* ============================================================
   STYLE.CSS — Dark terminal aesthetic.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0e0e0e;
  --bg2:        #161616;
  --bg3:        #1e1e1e;
  --border:     #2a2a2a;
  --text:       #d4d4d4;
  --text-muted: #666;
  --green:      #4caf50;
  --red:        #e53935;
  --yellow:     #ffc107;
  --blue:       #42a5f5;
  --accent:     #7e57c2;
  --font-mono:  'Courier New', Courier, monospace;
  --font-main:  'Segoe UI', system-ui, sans-serif;
}

html, body { height: 100%; background: var(--bg); color: var(--text);
             font-family: var(--font-main); font-size: 15px; line-height: 1.6; }
#app { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Alert bar ──────────────────────────────────────────────── */
#alert-bar {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--red); color: #fff; text-align: center;
  padding: 8px; font-size: 14px;
  transform: translateY(-100%); transition: transform 0.2s; z-index: 999;
}
#alert-bar.visible { transform: translateY(0); }

/* ── Nav bar ────────────────────────────────────────────────── */
.nav-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 24px; background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-title { font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
             color: var(--accent); margin-right: 16px; font-weight: 700; }
.nav-links  { display: flex; gap: 4px; flex: 1; }
.nav-links button {
  background: none; border: 1px solid transparent;
  color: var(--text-muted); padding: 5px 14px; border-radius: 4px;
  cursor: pointer; font-size: 14px; transition: all 0.15s;
}
.nav-links button:hover  { color: var(--text); border-color: var(--border); }
.nav-links button.active { color: var(--text); border-color: var(--accent); background: #1a1530; }
.nav-money { font-family: var(--font-mono); font-size: 16px; color: var(--green); font-weight: bold; }
.nav-time  { font-family: var(--font-mono); font-size: 14px; color: var(--accent); font-weight: 600; opacity: 0.85; }
.badge { background: var(--red); color: #fff; font-size: 11px; padding: 1px 6px;
         border-radius: 10px; margin-left: 4px; vertical-align: middle; }

/* ── Screens ────────────────────────────────────────────────── */
.screen { max-width: 900px; margin: 0 auto; padding: 28px 24px; width: 100%; flex: 1; }
h1 { font-size: 26px; margin-bottom: 20px; }
h2 { font-size: 20px; margin-bottom: 16px; }
h3 { font-size: 13px; color: var(--text-muted); text-transform: uppercase;
     letter-spacing: 1px; margin-bottom: 10px; }

/* ── Cards ──────────────────────────────────────────────────── */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px;
        padding: 16px 20px; margin-bottom: 16px; }
.card-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
              color: var(--text-muted); margin-bottom: 12px; }
.card-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase;
              letter-spacing: 1px; margin-bottom: 4px; }
.card-value { font-size: 22px; font-weight: bold; font-family: var(--font-mono); }
.cards-row  { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
              gap: 12px; margin-bottom: 16px; }

/* ── Dashboard ──────────────────────────────────────────────── */
.dash-header      { margin-bottom: 20px; }
.dash-date        { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.dash-actions     { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.alert-banner     { background: #2a1f00; border: 1px solid #554400; color: var(--yellow);
                    padding: 10px 14px; border-radius: 5px; font-size: 13px; width: 100%; }
.summary-row      { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.summary-row.total{ border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; font-weight: bold; }
.summary-events   { margin-top: 10px; font-size: 13px; color: var(--text-muted); }

/* ── Month Summary ──────────────────────────────────────────── */
.month-summary .summary-prop {
  display: grid; grid-template-columns: 180px 1fr auto;
  gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--bg3);
  font-size: 14px; align-items: center;
}
.month-summary .summary-prop:last-child { border-bottom: none; }
.month-summary .summary-prop.vacant     { opacity: 0.5; }
.prop-addr    { font-weight: 600; }
.summary-footer { display: flex; justify-content: space-between; align-items: center;
                  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.summary-balance { font-size: 16px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-end-month, .btn-back, .btn-choice,
.action-btn, .question-btn {
  border-radius: 4px; cursor: pointer; font-size: 14px;
  font-family: var(--font-main); transition: all 0.15s;
  padding: 9px 18px; border: 1px solid transparent;
}
.btn-primary   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #9575cd; }
.btn-secondary { background: var(--bg3); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: #555; }
.btn-end-month { background: #1a2a1a; color: var(--green); border-color: var(--green); }
.btn-end-month:hover { background: #223322; }
.btn-back      { background: none; color: var(--text-muted); border-color: var(--border);
                 font-size: 13px; margin-bottom: 16px; }
.btn-back:hover { color: var(--text); }
.btn-place     { font-size: 13px; padding: 7px 14px; }
.mt { margin-top: 12px; }

/* ── Properties list ────────────────────────────────────────── */
.property-list { display: flex; flex-direction: column; gap: 8px; }
.property-row  {
  display: grid; grid-template-columns: 1fr auto auto 200px 24px;
  align-items: center; gap: 16px; padding: 14px 18px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 5px; cursor: pointer; transition: border-color 0.15s;
}
.property-row:hover { border-color: var(--accent); }
.prop-address { font-weight: 600; }
.font-mono    { font-family: var(--font-mono); font-size: 13px; }
.prop-arrow   { color: var(--text-muted); font-size: 18px; text-align: right; }

/* ── Property detail ────────────────────────────────────────── */
.health-row     { display: grid; grid-template-columns: 110px 1fr 130px; align-items: center;
                  gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--bg3); }
.health-label   { font-size: 13px; color: var(--text-muted); }
.health-bar-wrap{ height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.health-bar     { height: 100%; border-radius: 4px; transition: width 0.3s; }
.health-pct     { font-size: 12px; font-weight: 600; text-align: right; }
.health-unknown { font-size: 12px; color: var(--text-muted); grid-column: 2/4; }
.detail-row     { display: flex; justify-content: space-between; padding: 5px 0;
                  border-bottom: 1px solid var(--bg3); font-size: 14px; }
.detail-row:last-child { border-bottom: none; }

/* ── Inbox ──────────────────────────────────────────────────── */
.inbox-list  { display: flex; flex-direction: column; gap: 2px; }
.inbox-row   {
  display: grid; grid-template-columns: 170px 1fr 80px;
  align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 4px; cursor: pointer; font-size: 14px;
  color: var(--text-muted); transition: border-color 0.15s;
}
.inbox-row.unread { color: var(--text); border-left: 3px solid var(--accent); }
.inbox-row:hover  { border-color: var(--accent); }
.inbox-from    { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-date    { font-size: 12px; text-align: right; }
.message-card  { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 24px; }
.message-header{ display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.message-subject { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.message-body  { line-height: 1.8; white-space: pre-wrap; }
.choices       { display: flex; flex-direction: column; gap: 8px; margin-top: 20px;
                 border-top: 1px solid var(--border); padding-top: 16px; }
.btn-choice    { background: var(--bg3); border: 1px solid var(--border); color: var(--text); text-align: left; }
.btn-choice:hover { border-color: var(--accent); color: var(--accent); }

/* ── Applicant Queue ────────────────────────────────────────── */
.applicant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
                  gap: 10px; margin-bottom: 16px; }
.applicant-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 5px;
                  padding: 14px; cursor: pointer; transition: border-color 0.15s; }
.applicant-card:hover:not(.dim) { border-color: var(--accent); }
.applicant-card.dim { opacity: 0.4; cursor: default; }
.app-name    { font-weight: 700; margin-bottom: 4px; }
.app-meta    { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.app-status  { font-size: 13px; margin-top: 8px; }
.app-arrow   { font-size: 13px; color: var(--accent); margin-top: 6px; }
.buy-slot    { margin-top: 8px; display: flex; align-items: center; gap: 12px; }

/* ── Screening (split) ──────────────────────────────────────── */
.screening-screen { display: flex; flex-direction: column; flex: 1; }
.screening-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px; background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 57px; z-index: 90;
}
.time-wrap     { flex: 1; max-width: 280px; }
.time-label    { font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); }
.time-bar-wrap { height: 6px; background: var(--bg3); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.time-bar      { height: 100%; border-radius: 3px; transition: width 0.3s, background 0.3s; }
.place-btns    { display: flex; gap: 8px; }
.screening-body{
  display: grid; grid-template-columns: 1fr 280px;
  flex: 1; min-height: calc(100vh - 120px);
}
.dossier      { padding: 24px; border-right: 1px solid var(--border); overflow-y: auto; }
.action-panel { padding: 20px 16px; background: var(--bg2); overflow-y: auto; }

/* ── Dossier ────────────────────────────────────────────────── */
.dossier-section       { margin-bottom: 18px; }
.dossier-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
                          color: var(--text-muted); margin-bottom: 6px; }
.dossier-row     { display: flex; justify-content: space-between; gap: 12px;
                   padding: 5px 0; border-bottom: 1px solid var(--bg3); font-size: 14px; }
.dossier-label   { color: var(--text-muted); flex-shrink: 0; }
.dossier-value   { text-align: right; }
.dossier-value.lie      { color: var(--red)   !important; font-weight: 600; }
.dossier-value.verified { color: var(--green) !important; }
.dossier-legend  { display: flex; gap: 16px; margin-top: 12px; font-size: 11px; flex-wrap: wrap; }
.legend-item     { color: var(--text-muted); }
.legend-item.white  { color: var(--text); }
.legend-item.green  { color: var(--green); }
.legend-item.red    { color: var(--red); }

/* ── Action panel ────────────────────────────────────────────── */
.action-group       { margin-bottom: 14px; }
.action-group-title { font-size: 11px; color: var(--text-muted); text-transform: uppercase;
                       letter-spacing: 1px; margin-bottom: 5px; }
.action-btn {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 8px 12px; margin-bottom: 4px; text-align: left;
}
.action-btn:hover:not(.done) { border-color: var(--accent); color: var(--accent); }
.action-btn.done { opacity: 0.4; cursor: default; }
.action-label  { font-size: 13px; }
.action-cost   { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.done-label    { font-size: 11px; color: var(--green); }
.time-note     { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ── Social media ────────────────────────────────────────────── */
.social-feed { display: flex; flex-direction: column; gap: 12px; max-width: 580px; }
.social-post { display: flex; gap: 12px; background: var(--bg2); border: 1px solid var(--border);
               border-radius: 6px; padding: 14px; }
.post-avatar { font-size: 28px; flex-shrink: 0; }
.post-text   { font-size: 14px; line-height: 1.6; }
.post-hint   { font-size: 12px; color: var(--yellow); margin-top: 8px; }

/* ── Interview ───────────────────────────────────────────────── */
.interview-screen { max-width: 1000px; padding: 24px; }
.time-display     { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.visual-clues     { background: var(--bg2); border: 1px solid var(--border); border-radius: 5px;
                    padding: 14px; margin-bottom: 16px; }
.visual-clues-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
                       color: var(--text-muted); margin-bottom: 8px; }
.visual-clue      { font-size: 14px; padding: 5px 0; border-bottom: 1px solid var(--bg3);
                    line-height: 1.5; }
.visual-clue:last-child { border-bottom: none; }
.visual-clue.is-hint { color: var(--text); }
.clue-tag         { font-size: 11px; color: var(--yellow); margin-left: 8px; }
.interview-body   { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.interview-log    { display: flex; flex-direction: column; gap: 10px; }
.interview-entry  { background: var(--bg2); border: 1px solid var(--border); border-radius: 5px; padding: 12px 14px; }
.interview-q      { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.interview-q em   { color: var(--text); font-style: normal; }
.interview-a      { font-size: 14px; line-height: 1.6; }
.interview-clue   { font-size: 12px; color: var(--yellow); margin-top: 8px; }
.question-panel   { background: var(--bg2); border: 1px solid var(--border); border-radius: 5px;
                    padding: 14px; align-self: start; position: sticky; top: 80px; }
.question-panel-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
                         color: var(--text-muted); margin-bottom: 10px; }
.question-btn     { display: flex; justify-content: space-between; align-items: center;
                    width: 100%; background: var(--bg3); border: 1px solid var(--border);
                    color: var(--text); text-align: left; margin-bottom: 4px; font-size: 13px; }
.question-btn:hover { border-color: var(--accent); color: var(--accent); }
.q-cost           { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); flex-shrink: 0; }

/* ── Market ──────────────────────────────────────────────────── */
.market-rate-banner {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 14px; margin-bottom: 14px; font-size: 14px;
}
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.market-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 18px; }
.market-card.unaffordable { opacity: 0.55; }
.market-address { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.market-desc    { font-size: 13px; margin-bottom: 12px; line-height: 1.5; }
.market-stats   { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.market-stat    { display: flex; justify-content: space-between; font-size: 13px; }
.market-locked  { margin-top: 12px; font-size: 13px; text-align: center; }

/* ── Turnover panel ──────────────────────────────────────────── */
.turnover-card  { border-color: #554400; background: #1a1500; }
.repair-grid    { display: flex; flex-direction: column; gap: 6px; }
.repair-row     { display: grid; grid-template-columns: 100px 1fr 90px auto; align-items: center;
                  gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--bg3); font-size: 13px; }
.repair-row:last-child { border-bottom: none; }
.repair-cat     { color: var(--text-muted); }
.repair-label   { font-size: 12px; font-weight: 600; text-align: right; }
.repair-ok      { color: var(--green); font-size: 13px; text-align: center; }
.btn-repair     { background: #1a2a1a; border: 1px solid var(--green); color: var(--green);
                  border-radius: 3px; padding: 3px 8px; font-size: 12px; cursor: pointer;
                  white-space: nowrap; }
.btn-repair:hover { background: #223322; }

/* ── Game Over ───────────────────────────────────────────────── */
.game-over {
  max-width: 720px; margin: 0 auto; padding: 48px 24px 64px;
  display: flex; flex-direction: column; gap: 24px;
}
.go-header       { text-align: center; }
.go-title        { font-size: 48px; font-weight: 800; color: var(--red); line-height: 1; }
.go-subtitle     { font-size: 16px; color: var(--accent); margin-top: 6px; }
.go-reason       { background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--red);
                   padding: 14px 18px; border-radius: 6px; color: var(--text-muted); font-size: 15px; }
.go-duration     { text-align: center; font-size: 20px; color: var(--text-muted); }
.go-duration strong { color: var(--text); }

.go-stats-grid   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.go-stat         { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px;
                   padding: 14px 10px; text-align: center; }
.go-stat-val     { font-size: 22px; font-weight: 700; font-family: var(--font-mono); color: var(--text); }
.go-stat-lbl     { font-size: 11px; color: var(--text-muted); text-transform: uppercase;
                   letter-spacing: 0.5px; margin-top: 4px; }

.go-profile-title { font-size: 13px; font-weight: 700; text-transform: uppercase;
                    letter-spacing: 1px; color: var(--accent); }
.go-traits       { display: flex; flex-direction: column; gap: 10px; }
.go-trait        { display: flex; align-items: flex-start; gap: 12px;
                   background: var(--bg2); border: 1px solid var(--border);
                   border-radius: 6px; padding: 12px 16px; font-size: 14px; color: var(--text-muted); }
.go-trait-icon   { font-size: 20px; flex-shrink: 0; line-height: 1.2; }
.go-restart      { align-self: center; margin-top: 8px; }

/* ── Character select ────────────────────────────────────────── */
.char-select-screen  { min-height: 100vh; display: flex; flex-direction: column;
                       align-items: center; justify-content: center;
                       padding: 40px 24px; background: var(--bg); }
.char-select-header  { text-align: center; margin-bottom: 40px; }
.char-select-title   { font-size: 32px; font-weight: 800; letter-spacing: 4px;
                       text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.char-select-subtitle{ font-size: 16px; color: var(--text-muted); letter-spacing: 1px; }
.char-grid           { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
                       gap: 20px; max-width: 980px; width: 100%; }
.char-card           { background: var(--bg2); border: 1px solid var(--border);
                       border-radius: 8px; padding: 28px 22px;
                       display: flex; flex-direction: column; gap: 10px;
                       cursor: pointer; transition: border-color 0.2s, transform 0.15s; }
.char-card:hover     { border-color: var(--accent); transform: translateY(-3px); }
.char-avatar         { font-size: 40px; line-height: 1; }
.char-name           { font-size: 20px; font-weight: 700; color: var(--text); }
.char-tagline        { font-size: 13px; color: var(--accent); font-style: italic; margin-top: -4px; }
.char-perks          { margin: 6px 0 0 16px; padding: 0;
                       display: flex; flex-direction: column; gap: 6px; flex: 1; }
.char-perks li       { font-size: 13px; color: var(--text); line-height: 1.5; }
.char-flavor         { font-size: 12px; font-style: italic; margin-top: 4px; }
.char-select-btn     { margin-top: 8px; width: 100%; }

/* ── Nav reputation badge ────────────────────────────────────── */
.nav-rep             { font-size: 13px; font-weight: 600;
                       padding: 4px 10px; border: 1px solid currentColor;
                       border-radius: 4px; white-space: nowrap; opacity: 0.9; }

/* ── Nav character badge ─────────────────────────────────────── */
.nav-char            { font-size: 13px; color: var(--accent);
                       padding: 4px 10px; border: 1px solid var(--accent);
                       border-radius: 4px; white-space: nowrap; }

/* ── Reputation card (dashboard) ─────────────────────────────── */
.rep-card            { min-width: 140px; }
.rep-bar-wrap        { height: 4px; background: var(--border); border-radius: 2px;
                       margin-top: 8px; overflow: hidden; }
.rep-bar             { height: 100%; border-radius: 2px; transition: width 0.4s; }

/* ── Loan detail card ────────────────────────────────────────── */
.loan-card               { border-color: #334; }
.loan-card.paid-off      { border-color: var(--green); background: #0d1a0d; }
.loan-balance-bar-wrap   { height: 6px; background: var(--bg3); border-radius: 3px;
                           margin: 6px 0 14px; overflow: hidden; }
.loan-balance-bar        { height: 100%; background: var(--accent);
                           border-radius: 3px; transition: width 0.4s; }
.loan-split              { padding-left: 12px; font-size: 13px; }
.loan-split span:first-child { color: var(--text-muted); }

/* ── Rent adjustment ─────────────────────────────────────────── */
.rent-adjust-card   { border-color: #334; background: #0f0f18; }
.rent-adjust-row    { display: flex; align-items: center; gap: 14px; margin: 10px 0 8px; }
.rent-adjust-value  { font-size: 22px; font-weight: 700; min-width: 110px; text-align: center; }
.btn-rent-adj       { background: var(--bg3); border: 1px solid var(--border);
                      color: var(--text); border-radius: 4px; padding: 6px 16px;
                      font-size: 16px; cursor: pointer; transition: background 0.15s; }
.btn-rent-adj:hover { background: #333; }
.rent-market-ref    { font-size: 12px; margin-bottom: 4px; }
.rent-warning       { font-size: 13px; padding: 6px 10px; border-radius: 4px;
                      background: rgba(255,255,255,0.05); margin-top: 4px; }

/* ── Stats screen ────────────────────────────────────────────── */
.stat-row        { display: flex; justify-content: space-between; padding: 6px 0;
                   border-bottom: 1px solid var(--bg3); font-size: 14px; }
.stat-row:last-child { border-bottom: none; }
.stat-label      { color: var(--text-muted); }
.stat-value      { font-weight: 600; }

/* ── P&L bar chart ───────────────────────────────────────────── */
.pl-chart        { display: flex; align-items: flex-end; gap: 6px;
                   height: 160px; margin: 16px 0 6px; padding-bottom: 0;
                   overflow-x: auto; }
.pl-bar-group    { display: flex; flex-direction: column; align-items: center;
                   gap: 4px; flex: 1; min-width: 48px; }
.pl-bar-pair     { display: flex; align-items: flex-end; gap: 3px;
                   height: 120px; width: 100%; }
.pl-bar          { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0;
                   transition: height 0.3s; }
.pl-income       { background: var(--green); opacity: 0.85; }
.pl-expense      { background: var(--red);   opacity: 0.85; }
.pl-net          { font-size: 11px; font-weight: 600; text-align: center; white-space: nowrap; }
.pl-month-label  { font-size: 11px; color: var(--text-muted); text-align: center; }
.pl-legend       { display: flex; gap: 20px; font-size: 13px;
                   color: var(--text-muted); margin-top: 4px; }
.legend-dot      { display: inline-block; width: 10px; height: 10px;
                   border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.green-bg        { background: var(--green); }
.red-bg          { background: var(--red);   }

/* ── Utility ─────────────────────────────────────────────────── */
.green  { color: var(--green);      }
.red    { color: var(--red);        }
.yellow { color: var(--yellow);     }
.muted  { color: var(--text-muted); }
.em     { font-style: italic;       }
