/* ═══════════════════════════════════════════════════════
   CircleThrice · Round 3 — shared styles
   Open Sans body (per Round 3 guidance), Montserrat Alternates display,
   Physis for all astrological symbols
═══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Physis';
  src: url('../fonts/Physis.ttf') format('truetype'),
       url('../fonts/Physis.otf') format('opentype');
  font-display: swap;
}

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

:root {
  --paper:      #f6f9fc;
  --ink:        #2b3240;
  --blue:       #3f6d96;
  --l-blue:     #7c9bbd;
  --muted:      #586073;
  --rule:       #cbd5e1;
  --vpale:      #dde4ec;
  --icon:       #8a98ad;
  --white:      #ffffff;
  --banner:     #424d61;
  --blue-press: #335c77;
  --disp:  'Montserrat Alternates', system-ui, sans-serif;
  --body:  'Open Sans', system-ui, sans-serif;
  --sc:    'Montserrat Alternates', system-ui, sans-serif;
}

/* ── Screen wrappers ── */
.r3, .r3-mob {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.r3 { display: flex; }
.r3-mob { display: flex; flex-direction: column; }

/* ── Physis glyph class ── */
.ph {
  font-family: 'Physis', 'Segoe UI Symbol', serif;
  font-variant-emoji: text;
  font-style: normal;
}

/* ════════════════════════════════════
   LEFT SIDEBAR — Orrery (Direction A)
════════════════════════════════════ */
.r3-orr-sidebar {
  width: 218px;
  flex-shrink: 0;
  border-right: 1px solid var(--rule);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 11px 12px;
  gap: 8px;
}
.r3-orr-sidebar-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--vpale);
  font-family: var(--sc);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.r3-orr-sidebar-head b { color: var(--blue); font-weight: 500; }
.r3-orr-hint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  max-width: 160px;
}
.r3-orr-legend { width: 100%; display: flex; flex-direction: column; }
.r3-orr-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.12s;
}
.r3-orr-row:hover { background: var(--vpale); }
.r3-orr-row.active { background: rgba(63,109,150,0.09); }
.r3-orr-sym {
  font-family: 'Physis', 'Segoe UI Symbol', serif;
  font-variant-emoji: text;
  font-size: 13px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.r3-orr-name { font-size: 12px; color: var(--ink); flex: 1; }
.r3-orr-row.active .r3-orr-name { color: var(--blue); }
.r3-orr-sign { font-size: 11px; color: var(--muted); }

/* ════════════════════════════════════
   RIGHT PANEL — Orrery (Directions B & C)
════════════════════════════════════ */
.r3-orr-panel {
  flex-shrink: 0;
  border-left: 1px solid var(--rule);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: width 0.22s cubic-bezier(0.3,0.7,0.3,1);
}
.r3-orr-panel-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--vpale);
  flex-shrink: 0;
}
.r3-orr-panel-title {
  font-family: var(--sc);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
}
.r3-orr-toggle-btn {
  width: 22px; height: 22px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.12s, color 0.12s;
}
.r3-orr-toggle-btn:hover { border-color: var(--blue); color: var(--blue); }
.r3-orr-wheel-wrap {
  padding: 12px 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.r3-orr-click-hint {
  font-family: var(--sc);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.r3-orr-inline-info {
  width: 100%;
  padding: 10px 12px;
  border-top: 1px solid var(--vpale);
  flex: 1;
  overflow-y: auto;
}
.r3-orr-inline-label {
  font-family: var(--sc);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 5px;
}
.r3-orr-inline-body { font-size: 12px; color: var(--ink); line-height: 1.58; }
.r3-orr-kws { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.r3-orr-kw {
  font-family: var(--sc);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--vpale);
  border-radius: 2px;
  padding: 2px 7px;
}

/* ════════════════════════════════════
   SPINE NAV — Direction B
════════════════════════════════════ */
.r3-spine {
  width: 162px;
  flex-shrink: 0;
  background: var(--banner);
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
}
.r3-spine-head {
  padding: 14px 16px 11px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.r3-spine-brand {
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.r3-spine-brand span { color: #7c9bbd; }
.r3-spine-items { flex: 1; display: flex; flex-direction: column; padding: 4px 0; }
.r3-spine-item {
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 14px;
  cursor: pointer;
  gap: 6px;
  border-left: 2px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.r3-spine-item:hover:not(.active) { background: rgba(255,255,255,0.06); }
.r3-spine-item.active {
  background: rgba(63,109,150,0.22);
  border-left-color: #7c9bbd;
}
.r3-spine-info { flex: 1; min-width: 0; }
.r3-spine-lname {
  font-family: var(--sc);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(247,249,252,0.45);
  line-height: 1;
}
.r3-spine-item.active .r3-spine-lname { color: rgba(247,249,252,0.7); }
.r3-spine-lval {
  font-family: var(--disp);
  font-size: 12.5px;
  color: rgba(247,249,252,0.7);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.r3-spine-item.active .r3-spine-lval { color: #fff; }
.r3-spine-arrows { display: flex; gap: 2px; }
.r3-spine-arrow {
  width: 18px; height: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  background: none;
  color: rgba(247,249,252,0.35);
  font-size: 9px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.12s, color 0.12s;
}
.r3-spine-arrow:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.r3-spine-foot {
  padding: 9px 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-family: var(--sc);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,249,252,0.25);
  flex-shrink: 0;
}

/* ════════════════════════════════════
   CONTEXT BAR — Direction C
════════════════════════════════════ */
.r3-ctx-bar {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 0 18px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.r3-ctx-seg {
  font-family: var(--sc);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.12s, background 0.12s;
}
.r3-ctx-seg:hover { color: var(--blue); }
.r3-ctx-seg.active { color: var(--blue); background: rgba(63,109,150,0.07); font-weight: 600; }
.r3-ctx-sep { color: var(--rule); font-size: 12px; margin: 0 1px; line-height: 1; }
.r3-ctx-spacer { flex: 1; }
.r3-ctx-nav { display: flex; gap: 3px; }
.r3-ctx-btn {
  height: 28px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px;
  gap: 5px;
  font-family: var(--sc);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.12s;
}
.r3-ctx-btn:hover { border-color: var(--blue); }

/* ════════════════════════════════════
   AUSPICE BAND — Direction C header
════════════════════════════════════ */
.r3-ausp-band {
  background: var(--white);
  border-bottom: 1px solid var(--vpale);
  padding: 0 18px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.r3-ausp-band-label {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.r3-ausp-band-spark { flex: 1; min-width: 0; display: flex; align-items: center; }
.r3-ausp-pips { display: flex; gap: 3px; }
.r3-ausp-pip { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--l-blue); }
.r3-ausp-pip.on { background: var(--blue); border-color: var(--blue); }
.r3-ausp-band-gloss { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ════════════════════════════════════
   TIME BANDS — Direction A
════════════════════════════════════ */
.r3-bands-wrap {
  padding: 11px 16px 10px;
  border-bottom: 1px solid var(--vpale);
  background: var(--white);
  flex-shrink: 0;
}
.r3-bands-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.r3-bands-top-label {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.r3-bands-top-nav { display: flex; align-items: center; gap: 5px; }
.r3-bands-prev-next {
  width: 22px; height: 22px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--blue);
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.12s;
}
.r3-bands-prev-next:hover { border-color: var(--blue); }
.r3-bands-active-val {
  font-family: var(--sc);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
  min-width: 72px;
  text-align: center;
}
.r3-bands { display: flex; flex-direction: column; gap: 4px; }
.r3-band-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
  transition: background 0.1s;
}
.r3-band-row:hover { background: rgba(63,109,150,0.04); }
.r3-band-lbl {
  font-family: var(--sc);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 60px;
  flex-shrink: 0;
  text-align: right;
  transition: color 0.12s;
}
.r3-band-row.active .r3-band-lbl { color: var(--blue); }
.r3-band-track {
  flex: 1;
  height: 7px;
  background: var(--vpale);
  border-radius: 2px;
  position: relative;
  overflow: visible;
}
.r3-band-fill { height: 100%; background: var(--l-blue); border-radius: 2px; }
.r3-band-row.active .r3-band-fill { background: var(--blue); }
.r3-band-needle {
  position: absolute;
  top: -3px; bottom: -3px;
  width: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  margin-left: -1px;
  pointer-events: none;
}
.r3-band-val {
  font-family: var(--sc);
  font-size: 9px;
  color: var(--muted);
  width: 84px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.12s;
}
.r3-band-row.active .r3-band-val { color: var(--ink); font-weight: 600; }
.r3-gran-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--vpale);
  align-items: center;
}
.r3-gran-pill {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 3px 8px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.r3-gran-pill:hover { color: var(--blue); }
.r3-gran-pill.active {
  color: var(--blue);
  background: rgba(63,109,150,0.08);
  border-color: var(--l-blue);
}

/* ════════════════════════════════════
   MAIN CONTENT AREA
════════════════════════════════════ */
.r3-main { flex: 1; min-width: 0; overflow-y: auto; background: var(--paper); }
.r3-content { padding: 14px 16px; }

/* Day header */
.r3-day-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px 10px;
  background: var(--white);
  border-bottom: 1px solid var(--vpale);
  flex-shrink: 0;
}
.r3-day-title { font-family: var(--disp); font-size: 17px; font-weight: 600; color: var(--ink); }
.r3-day-sub {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.r3-prevnext { display: flex; gap: 5px; }
.r3-pn-btn {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 5px 11px;
  color: var(--blue);
  background: var(--paper);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s;
}
.r3-pn-btn:hover { border-color: var(--blue); }

/* Content blocks */
.r3-block {
  background: var(--white);
  border: 1px solid var(--vpale);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}
.r3-block-head {
  padding: 8px 13px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.r3-block-head.bd { border-bottom: 1px solid var(--vpale); }
.r3-block-lbl {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.r3-block-meta {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  color: var(--icon);
}
.r3-block-body { padding: 9px 13px 11px; }

/* Moon */
.r3-moon-row { display: flex; align-items: center; gap: 10px; }
.r3-moon-glyph {
  font-family: 'Physis', 'Segoe UI Symbol', serif;
  font-variant-emoji: text;
  font-size: 20px;
  color: var(--l-blue);
  line-height: 1;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.r3-moon-name { font-family: var(--disp); font-size: 15px; font-weight: 600; color: var(--ink); }
.r3-moon-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Auspice */
.r3-ausp-row { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.r3-ausp-score { display: flex; gap: 3px; }
.r3-ausp-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--l-blue); }
.r3-ausp-dot.on { background: var(--blue); border-color: var(--blue); }
.r3-ausp-name { font-family: var(--disp); font-size: 14px; font-weight: 600; color: var(--ink); }
.r3-ausp-gloss { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Magic */
.r3-magic-block {
  background: var(--white);
  border: 1px solid var(--vpale);
  border-left: 3px solid var(--blue);
  border-radius: 3px;
  padding: 10px 13px;
  margin-bottom: 8px;
}
.r3-magic-lbl {
  font-family: var(--sc);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 5px;
}
.r3-magic-text { font-size: 13px; line-height: 1.65; color: var(--ink); }

/* Transits */
.r3-transit {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 6px 0;
  cursor: pointer;
}
.r3-transit + .r3-transit { border-top: 1px solid var(--vpale); }
.r3-transit:hover .r3-transit-text { color: var(--blue); }
.r3-transit-sym {
  font-family: 'Physis', 'Segoe UI Symbol', serif;
  font-variant-emoji: text;
  font-size: 14px;
  color: var(--blue);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  padding-top: 1px;
}
.r3-transit-text { font-size: 13px; color: var(--ink); transition: color 0.12s; }
.r3-transit-time {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-top: 2px;
}

/* Planetary hours */
.r3-hours { display: flex; flex-direction: column; }
.r3-hour-row {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 5px;
  border-radius: 2px;
}
.r3-hour-row.current { background: rgba(63,109,150,0.07); }
.r3-hour-row.past { opacity: 0.45; }
.r3-hour-time {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  color: var(--muted);
  width: 52px;
  flex-shrink: 0;
}
.r3-hour-sym {
  font-family: 'Physis', 'Segoe UI Symbol', serif;
  font-variant-emoji: text;
  font-size: 12px;
  color: var(--blue);
  width: 15px;
  text-align: center;
  flex-shrink: 0;
}
.r3-hour-lbl { font-size: 12.5px; color: var(--ink); }
.r3-hour-row.current .r3-hour-lbl { font-weight: 600; color: var(--blue); }
.r3-hour-now {
  margin-left: auto;
  font-family: var(--sc);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--l-blue);
  border-radius: 2px;
  padding: 2px 6px;
}

/* Expand toggle */
.r3-expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.r3-expand-btn:hover { color: var(--blue); }

/* ════════════════════════════════════
   SPARKLINE
════════════════════════════════════ */
.r3-spark-wrap { margin-top: 8px; }

/* ════════════════════════════════════
   PLANET DRAWER (right-side panel)
════════════════════════════════════ */
.r3-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 282px;
  background: var(--white);
  border-left: 1px solid var(--rule);
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.3,0.7,0.3,1);
  z-index: 30;
  display: flex;
  flex-direction: column;
  box-shadow: -3px 0 14px rgba(43,50,64,0.07);
}
.r3-drawer.open { transform: translateX(0); }
.r3-drawer-head {
  padding: 15px 16px 11px;
  border-bottom: 1px solid var(--vpale);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 10px;
}
.r3-drawer-planet { display: flex; align-items: flex-start; gap: 10px; flex: 1; }
.r3-drawer-sym {
  font-family: 'Physis', 'Segoe UI Symbol', serif;
  font-variant-emoji: text;
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.r3-drawer-pname { font-family: var(--disp); font-size: 17px; font-weight: 600; color: var(--ink); }
.r3-drawer-pos {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.r3-drawer-close {
  width: 25px; height: 25px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.12s, color 0.12s;
}
.r3-drawer-close:hover { border-color: var(--blue); color: var(--blue); }
.r3-drawer-body { flex: 1; overflow-y: auto; padding: 13px 16px 20px; }
.r3-drawer-kws { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 13px; }
.r3-drawer-kw {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--vpale);
  border-radius: 2px;
  padding: 2px 8px;
}
.r3-drawer-para { font-size: 13px; line-height: 1.68; color: var(--ink); margin-bottom: 9px; }
.r3-drawer-footer {
  font-family: var(--sc);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--vpale);
  margin-top: 4px;
}

/* ════════════════════════════════════
   MOBILE STYLES
════════════════════════════════════ */
.r3-mob-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 11px 15px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.r3-mob-date { font-family: var(--disp); font-size: 16px; font-weight: 600; color: var(--ink); }
.r3-mob-sub {
  font-family: var(--sc);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.r3-mob-orr-btn {
  width: 34px; height: 34px;
  font-family: 'Physis', 'Segoe UI Symbol', serif;
  font-variant-emoji: text;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.r3-mob-orr-btn.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.r3-mob-level-bar {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 0 12px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  height: 36px;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}
.r3-mob-level-bar::-webkit-scrollbar { display: none; }
.r3-mob-level {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 9px;
  display: flex; align-items: center;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.r3-mob-level.active { color: var(--blue); border-bottom-color: var(--blue); }
.r3-mob-pnbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 13px;
  background: var(--white);
  border-bottom: 1px solid var(--vpale);
  flex-shrink: 0;
}
.r3-mob-pn {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 4px 10px;
  cursor: pointer;
}
.r3-mob-pn-center {
  font-family: var(--sc);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.r3-mob-body { flex: 1; overflow-y: auto; }
.r3-mob-scroll { padding: 10px 12px 80px; display: flex; flex-direction: column; gap: 7px; }

/* Mobile compact bands */
.r3-mob-bands {
  padding: 7px 13px 9px;
  border-bottom: 1px solid var(--vpale);
  background: var(--white);
  flex-shrink: 0;
}
.r3-mob-band {
  display: flex; align-items: center; gap: 7px;
  padding: 2px 0;
  cursor: pointer;
}
.r3-mob-band-lbl {
  font-family: var(--sc);
  font-size: 8.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  width: 52px;
  flex-shrink: 0;
  text-align: right;
}
.r3-mob-band.active .r3-mob-band-lbl { color: var(--blue); }
.r3-mob-band-track {
  flex: 1;
  height: 5px;
  background: var(--vpale);
  border-radius: 2px;
  position: relative;
  overflow: visible;
}
.r3-mob-band-fill { height: 100%; background: var(--l-blue); border-radius: 2px; }
.r3-mob-band.active .r3-mob-band-fill { background: var(--blue); }
.r3-mob-band-needle {
  position: absolute;
  top: -2px; bottom: -2px;
  width: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  margin-left: -1px;
}
.r3-mob-band-val {
  font-family: var(--sc);
  font-size: 8.5px;
  color: var(--muted);
  width: 58px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.r3-mob-band.active .r3-mob-band-val { color: var(--ink); }
.r3-mob-bands-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--vpale);
}

/* Bottom sheet */
.r3-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-radius: 12px 12px 0 0;
  transform: translateY(100%);
  transition: transform 0.24s cubic-bezier(0.3,0.7,0.3,1);
  z-index: 40;
  padding: 0 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  max-height: 82%;
  overflow-y: auto;
  box-shadow: 0 -4px 20px rgba(43,50,64,0.09);
}
.r3-sheet.open { transform: translateY(0); }
.r3-sheet-handle {
  width: 34px; height: 4px;
  background: var(--vpale);
  border-radius: 2px;
  margin-top: 9px;
  flex-shrink: 0;
}
.r3-sheet-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.r3-sheet-title {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.r3-sheet-close {
  width: 22px; height: 22px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.r3-sheet-planet {
  width: 100%;
  padding: 9px 0;
  border-top: 1px solid var(--vpale);
}
.r3-sheet-pname { font-family: var(--disp); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.r3-sheet-pbody { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* ════════════════════════════════════
   RECOMMENDATION PANEL
════════════════════════════════════ */
.r3-rec {
  background: var(--banner);
  padding: 26px 30px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  font-family: var(--body);
  color: var(--paper);
}
.r3-rec-kicker {
  font-family: var(--sc);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7c9bbd;
  margin-bottom: 8px;
}
.r3-rec-title { font-family: var(--disp); font-size: 22px; font-weight: 600; color: #fff; line-height: 1.08; margin-bottom: 18px; }
.r3-rec-winner {
  background: rgba(63,109,150,0.22);
  border: 1px solid rgba(124,155,189,0.28);
  border-radius: 3px;
  padding: 13px 17px;
  margin-bottom: 18px;
}
.r3-rec-winner-kicker { font-family: var(--sc); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #7c9bbd; margin-bottom: 5px; }
.r3-rec-winner-name { font-family: var(--disp); font-size: 17px; font-weight: 600; color: #fff; }
.r3-rec-winner-body { font-size: 13px; line-height: 1.65; color: rgba(247,249,252,0.82); margin-top: 8px; }
.r3-rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.r3-rec-card { background: rgba(255,255,255,0.06); border-radius: 3px; padding: 11px 13px; }
.r3-rec-card-name { font-family: var(--sc); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #7c9bbd; margin-bottom: 4px; }
.r3-rec-card-status { font-family: var(--sc); font-size: 9px; letter-spacing: 0.1em; color: rgba(124,155,189,0.65); margin-bottom: 7px; }
.r3-rec-card-body { font-size: 12px; line-height: 1.55; color: rgba(247,249,252,0.68); }
.r3-rec-foot { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 13px; font-size: 12px; line-height: 1.65; color: rgba(247,249,252,0.55); }
.r3-rec-foot b { color: rgba(247,249,252,0.8); font-weight: 500; }
.r3-rec-foot p + p { margin-top: 8px; }
