/* juji-r6c-tabs.css — r3_1 Obsidian Glass Visual System for Secondary Tabs & Launchpad
 * Strictly scoped to body[data-tab-active="live"|"hold"|"interact"|"rules"] and body.jl-page.
 * First screen (dossier / default load) receives zero style rules from this sheet.
 */

:is(
  body[data-tab-active="live"],
  body[data-tab-active="hold"],
  body[data-tab-active="interact"],
  body[data-tab-active="rules"],
  body.jl-page
) {
  --t-bg: #08080C;
  --t-glass: rgba(8, 8, 12, 0.55);
  --t-glass-deep: rgba(8, 8, 12, 0.78);
  --t-glass-hover: rgba(18, 18, 24, 0.72);
  --t-elevated: rgba(255, 255, 255, 0.04);
  --t-elevated-hover: rgba(255, 255, 255, 0.08);
  --t-line: rgba(255, 255, 255, 0.08);
  --t-line-strong: rgba(255, 255, 255, 0.16);
  --t-radius: 12px;
  --t-radius-sm: 8px;

  --t-btn-bg: #F5EEE4;
  --t-btn-hover: #E7DFD2;
  --t-btn-ink: #0B0814;

  --t-up: #34D399;
  --t-down: #F87171;
  --t-warn-dot: #FF6B4A;
  --t-warn-ink: #FF8A70;
  --t-warn-border: rgba(248, 113, 113, 0.24);
  --t-warn-bg: rgba(14, 12, 16, 0.72);

  --t-ink-1: #F5EEE4;
  --t-ink-2: #C4C1BC;
  --t-ink-3: #B4B1AC;
  --t-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;

  --n-bg: #08080C;
  --n-surface: rgba(12, 12, 18, 0.72);
  --n-field: rgba(255, 255, 255, 0.04);
  --n-quote: rgba(16, 16, 22, 0.78);
  --n-hover: rgba(255, 255, 255, 0.07);
  --n-line: rgba(255, 255, 255, 0.12);
  --n-rule: rgba(255, 255, 255, 0.08);
  --n-shadow: transparent;
  --n-glow: transparent;
  --n-halo: rgba(255, 255, 255, 0.025);
  --n-btn: #F5EEE4;
  --n-btn-ink: #0B0814;
  --n-seg-on: #F5EEE4;
  --n-seg-ink: #0B0814;
  --n-ink: #F5EEE4;
  --n-body: #C4C1BC;
  --n-muted: #B4B1AC;
  --n-watch: #B4B1AC;
  --n-pass: #34D399;
  --n-pass-ink: #34D399;
  --n-pass-bg: rgba(52, 211, 153, 0.10);
  --n-risk: #F87171;
  --n-risk-ink: #F87171;
  --n-risk-bg: rgba(248, 113, 113, 0.10);
  --n-caution: #FF6B4A;
  --n-caution-ink: #FF8A70;
  --n-caution-bg: rgba(14, 12, 16, 0.72);
  --n-sans: var(--t-font);
  --n-serif: var(--t-font);
  --n-display: var(--t-font);

  background-color: var(--t-bg);
  background-image: radial-gradient(980px 460px at 50% -10%, rgba(255, 255, 255, 0.03), transparent 68%);
  color: var(--t-ink-2);
  font-family: var(--t-font);
  font-variant-numeric: tabular-nums;
}

/* Remove background grid/crosshair clutter on active secondary tabs */
:is(
  body[data-tab-active="live"],
  body[data-tab-active="hold"],
  body[data-tab-active="interact"],
  body[data-tab-active="rules"]
) :is(.dots, .arch-crosshair, .arch-micro-coord, .arch-rail) {
  display: none !important;
}

/* Harmonize existing header chrome colors/hairlines without altering topbar DOM or layout */
:is(
  body[data-tab-active="live"],
  body[data-tab-active="hold"],
  body[data-tab-active="interact"],
  body[data-tab-active="rules"],
  body.jl-page
) .brand-logo {
  filter: grayscale(1) brightness(1.26);
}

:is(
  body[data-tab-active="live"],
  body[data-tab-active="hold"],
  body[data-tab-active="interact"],
  body[data-tab-active="rules"],
  body.jl-page
) .juji-ticker {
  background: rgba(8, 8, 12, 0.92);
  border-bottom: 1px solid var(--t-line);
}

:is(
  body[data-tab-active="live"],
  body[data-tab-active="hold"],
  body[data-tab-active="interact"],
  body[data-tab-active="rules"],
  body.jl-page
) .juji-ticker-track {
  border-bottom: 1px solid var(--t-line);
  color: var(--t-ink-2);
}

:is(
  body[data-tab-active="live"],
  body[data-tab-active="hold"],
  body[data-tab-active="interact"],
  body[data-tab-active="rules"],
  body.jl-page
) .stream-header {
  background: rgba(8, 8, 12, 0.88);
  border-bottom: 1px solid var(--t-line);
}

:is(
  body[data-tab-active="live"],
  body[data-tab-active="hold"],
  body[data-tab-active="interact"],
  body[data-tab-active="rules"],
  body.jl-page
) .stream-header .lang-switch {
  border: 1px solid var(--t-line-strong);
  border-radius: 8px;
  background: var(--t-elevated);
}

:is(
  body[data-tab-active="live"],
  body[data-tab-active="hold"],
  body[data-tab-active="interact"],
  body[data-tab-active="rules"],
  body.jl-page
) .stream-header .nav-link-btn.is-current {
  border: 1px solid var(--t-line-strong);
  border-radius: 7px;
  background: var(--t-elevated-hover);
  color: var(--t-ink-1);
  font-weight: 600;
}

:is(
  body[data-tab-active="live"],
  body[data-tab-active="hold"],
  body[data-tab-active="interact"],
  body[data-tab-active="rules"],
  body.jl-page
) #jx-tabs {
  background: rgba(8, 8, 12, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--t-line);
}

:is(
  body[data-tab-active="live"],
  body[data-tab-active="hold"],
  body[data-tab-active="interact"],
  body[data-tab-active="rules"],
  body.jl-page
) :is(.jr-nav-item, .jx-tab) {
  border-bottom-width: 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--t-ink-2);
  box-shadow: none;
}

:is(
  body[data-tab-active="live"],
  body[data-tab-active="hold"],
  body[data-tab-active="interact"],
  body[data-tab-active="rules"],
  body.jl-page
) :is(.jr-nav-item.is-on, .jx-tab.is-active) {
  color: var(--t-ink-1);
  font-weight: 600;
  box-shadow: none;
}

/* Shared link glow cleanup */
:is(
  body[data-tab-active="live"],
  body[data-tab-active="hold"],
  body[data-tab-active="interact"],
  body[data-tab-active="rules"],
  body.jl-page
) :is(a:not([class]), .juji-ca .juji-ca-link, .juji-sealed-link, .jl-proof-val a, a.jl-proof-val) {
  text-shadow: none;
}

/* ==========================================================================
   Shared Official Contract & Dividend Panel (#juji-ca & #juji-bullet on live / interact)
   ========================================================================== */
:is(body[data-tab-active="live"], body[data-tab-active="interact"]) :is(#juji-schedule-card, #juji-ca, #juji-bullet) {
  max-width: 1392px;
  width: calc(100% - 48px);
  margin: 14px auto 0;
  padding: 15px 20px;
  box-sizing: border-box;
  background: var(--t-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
}

:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-ca-label {
  color: var(--t-ink-1);
  font-size: 15px;
  font-weight: 700;
}

:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-ca-addr {
  padding: 4px 9px;
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line);
  border-radius: 7px;
  color: var(--t-ink-1);
  font-size: 14.5px;
}

/* Secondary button: Copy CA */
:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-ca-copy {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--t-line-strong);
  border-radius: var(--t-radius-sm);
  background: var(--t-elevated);
  color: var(--t-ink-1);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-ca-copy:hover {
  background: var(--t-elevated-hover);
  border-color: rgba(255, 255, 255, 0.28);
}

:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-ca .juji-ca-link {
  color: var(--t-ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.22);
  text-underline-offset: 3px;
}

:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-ca .juji-ca-link:hover {
  color: var(--t-ink-1);
  text-decoration-color: var(--t-ink-1);
}

:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-ca-div {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--t-line);
}

:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-div-input {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line-strong);
  border-radius: var(--t-radius-sm);
  color: var(--t-ink-1);
  font-size: 15px;
  box-shadow: none;
}

:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-div-input::placeholder {
  color: var(--t-ink-3);
}

/* Dividend Form Button Hierarchy: Secondary (Check / Reinvest) vs Primary (Claim) */
:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-div-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--t-line-strong);
  border-radius: var(--t-radius-sm);
  background: var(--t-elevated);
  color: var(--t-ink-1);
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-div-btn:hover {
  background: var(--t-elevated-hover);
}

:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-div-btn.is-claim {
  background: var(--t-btn-bg);
  border-color: var(--t-btn-bg);
  color: var(--t-btn-ink);
  font-weight: 700;
}

:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-div-btn.is-claim:hover {
  background: var(--t-btn-hover);
  border-color: var(--t-btn-hover);
}

:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-div-toggle {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--t-line-strong);
  border-radius: var(--t-radius-sm);
  background: var(--t-elevated);
  color: var(--t-ink-1);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: none;
}

:is(body[data-tab-active="live"], body[data-tab-active="interact"]) .juji-ca-badge {
  padding: 3px 9px;
  border: 1px solid var(--t-line-strong);
  border-radius: 6px;
  background: var(--t-elevated);
  color: var(--t-ink-2);
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   STAGE 1: Live Tab (body[data-tab-active="live"])
   ========================================================================== */
body[data-tab-active="live"] #juji-schedule-card .juji-schedule-title {
  color: var(--t-ink-1);
  font-size: 15px;
  font-weight: 700;
}

body[data-tab-active="live"] #juji-schedule-card .juji-schedule-slot {
  padding: 5px 11px;
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line);
  border-radius: 7px;
  color: var(--t-ink-2);
  font-size: 14.5px;
}

body[data-tab-active="live"] #juji-offair {
  max-width: 1392px;
  width: calc(100% - 48px);
  margin: 12px auto 0;
  padding: 12px 18px;
  box-sizing: border-box;
  background: var(--t-glass);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
}

body[data-tab-active="live"] #juji-hero {
  max-width: 1392px;
  width: calc(100% - 48px);
  margin: 16px auto 0;
  padding: 18px 20px;
  box-sizing: border-box;
  background: var(--t-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
}

body[data-tab-active="live"] .juji-hero-title {
  font-family: var(--t-font);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--t-ink-1);
}

body[data-tab-active="live"] .juji-hero-sub {
  color: var(--t-ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Primary CTA on Live Tab: Listen Live */
body[data-tab-active="live"] .juji-listen-btn {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--t-radius-sm);
  background: var(--t-btn-bg);
  color: var(--t-btn-ink);
  font-family: var(--t-font);
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

body[data-tab-active="live"] .juji-listen-btn:hover {
  background: var(--t-btn-hover);
}

body[data-tab-active="live"] .juji-pip-cam {
  border: 1px solid var(--t-line-strong);
  border-radius: var(--t-radius);
  background: var(--t-glass-deep);
  box-shadow: none;
  overflow: hidden;
}

body[data-tab-active="live"] .juji-cam-caption {
  background: rgba(8, 8, 12, 0.86);
  border-top: 1px solid var(--t-line);
  color: var(--t-ink-2);
}

body[data-tab-active="live"] .juji-call {
  padding: 14px 16px;
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
}

body[data-tab-active="live"] .juji-call-title,
body[data-tab-active="live"] .juji-research-title,
body[data-tab-active="live"] .juji-chat-title,
body[data-tab-active="live"] .juji-scan-title,
body[data-tab-active="live"] .juji-stage-title {
  font-family: var(--t-font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--t-ink-1);
}

body[data-tab-active="live"] .juji-call-line {
  font-family: var(--t-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--t-ink-1);
}

body[data-tab-active="live"] #juji-hero .juji-research-card {
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
}

body[data-tab-active="live"] .juji-research-btn {
  border: 1px solid var(--t-line-strong);
  border-radius: var(--t-radius-sm);
  background: var(--t-elevated);
  color: var(--t-ink-1);
  box-shadow: none;
  font-size: 14.5px;
  font-weight: 600;
}

body[data-tab-active="live"] .juji-research-btn:hover:not(:disabled) {
  background: var(--t-elevated-hover);
}

body[data-tab-active="live"] .ws-chart-stage {
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  background: var(--t-glass-deep);
  box-shadow: none;
  overflow: hidden;
}

body[data-tab-active="live"] .ws-tel-chg.up {
  color: var(--t-up);
}

body[data-tab-active="live"] .ws-tel-chg.down {
  color: var(--t-down);
}

body[data-tab-active="live"] #juji-hero .juji-scan {
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
}

body[data-tab-active="live"] .juji-scan-head {
  border-bottom: 1px solid var(--t-line);
}

body[data-tab-active="live"] #juji-hero .juji-chat {
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
}

body[data-tab-active="live"] .juji-chat-head {
  border-bottom: 1px solid var(--t-line);
  padding-bottom: 10px;
}

body[data-tab-active="live"] #juji-chat-input {
  height: 36px;
  padding: 0 12px;
  background: rgba(8, 8, 12, 0.85);
  border: 1px solid var(--t-line-strong);
  border-radius: var(--t-radius-sm);
  color: var(--t-ink-1);
  font-size: 15px;
}

body[data-tab-active="live"] #juji-chat-send {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--t-radius-sm);
  background: var(--t-btn-bg);
  color: var(--t-btn-ink);
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}

body[data-tab-active="live"] #juji-chat-send:hover {
  background: var(--t-btn-hover);
}

body.jx-tabbed[data-tab-active="live"] #juji-offair:not([hidden]) {
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line);
  color: var(--t-ink-2);
}

body.jx-tabbed.jx-air-off[data-tab-active="live"] #juji-schedule-card {
  border-top: 1px solid var(--t-line);
}

body.jx-tabbed.jx-air-off[data-tab-active="live"] #jx-m-last {
  background: var(--t-elevated);
  border: 1px solid var(--t-line-strong);
  border-radius: 6px;
  color: var(--t-ink-2);
  font-weight: 600;
}

body[data-tab-active="live"] #juji-clips {
  max-width: 1392px;
  width: calc(100% - 48px);
  margin: 20px auto 48px;
  padding: 0;
  box-sizing: border-box;
}

body[data-tab-active="live"] .juji-clips-title {
  font-family: var(--t-font);
  font-size: 21px;
  font-weight: 700;
  color: var(--t-ink-1);
}

body[data-tab-active="live"] .juji-clip {
  background: var(--t-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
  overflow: hidden;
}

body[data-tab-active="live"] .juji-clip-title {
  color: var(--t-ink-1);
  font-size: 16px;
  font-weight: 700;
}

body[data-tab-active="live"] .juji-clip-meta {
  color: var(--t-ink-2);
  font-size: 15px;
  line-height: 1.58;
}

/* ==========================================================================
   STAGE 2A: Real-Trading / Holdings Tab (body[data-tab-active="hold"])
   ========================================================================== */
body[data-tab-active="hold"] :is(#juji-hold, #juji-positions, #juji-more) {
  max-width: 1392px;
  width: calc(100% - 48px);
  margin: 18px auto 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

body[data-tab-active="hold"] #juji-more {
  margin-bottom: 48px;
}

body[data-tab-active="hold"] .juji-hold-title,
body[data-tab-active="hold"] .juji-positions-title {
  font-family: var(--t-font);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--t-ink-1);
}

body[data-tab-active="hold"] .juji-trades-title,
body[data-tab-active="hold"] .juji-positions-sub {
  font-family: var(--t-font);
  font-size: 19px;
  font-weight: 700;
  color: var(--t-ink-1);
}

body[data-tab-active="hold"] .juji-hold-badge {
  padding: 3px 10px;
  border: 1px solid var(--t-line-strong);
  border-radius: 6px;
  background: var(--t-elevated);
  color: var(--t-ink-1);
  font-size: 14px;
  font-weight: 600;
}

body[data-tab-active="hold"] #juji-hold .juji-hold-screen {
  background: var(--t-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
  padding: 6px 18px 14px;
}

body[data-tab-active="hold"] .juji-hold-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

body[data-tab-active="hold"] .juji-hold-table thead th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--t-line);
  color: var(--t-ink-3);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

body[data-tab-active="hold"] .juji-hold-table tbody td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--t-line);
  color: var(--t-ink-1);
  font-size: 15px;
  line-height: 1.5;
}

body[data-tab-active="hold"] .juji-hold-table tbody tr:last-child td {
  border-bottom: 0;
}

body[data-tab-active="hold"] .juji-hold-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

body[data-tab-active="hold"] #juji-trades {
  margin-top: 16px;
  background: var(--t-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
  padding: 18px 20px;
}

body[data-tab-active="hold"] .juji-trades-sum > div,
body[data-tab-active="hold"] .juji-trades-sum-item {
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: none;
}

body[data-tab-active="hold"] .juji-trades-sum dt {
  color: var(--t-ink-3);
  font-size: 14.5px;
  font-weight: 500;
}

body[data-tab-active="hold"] .juji-trades-sum dd {
  color: var(--t-ink-1);
  font-family: var(--t-font);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body[data-tab-active="hold"] .juji-trade-list > li {
  border-bottom: 1px solid var(--t-line);
  padding: 12px 0;
}

body[data-tab-active="hold"] .juji-trade-list > li:last-child {
  border-bottom: 0;
}

body[data-tab-active="hold"] #juji-positions .juji-pos-card {
  background: var(--t-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
  padding: 16px 18px;
}

body[data-tab-active="hold"] .juji-more-summary {
  padding: 13px 18px;
  background: var(--t-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  color: var(--t-ink-2);
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}

body[data-tab-active="hold"] .juji-more-summary:hover {
  background: var(--t-glass-hover);
  color: var(--t-ink-1);
}

body[data-tab-active="hold"] :is(.clean-card, .wall-panel, .live-monitor-frame, .ws-telemetry-card, .ws-intel-card, .ws-action-log-card) {
  background: var(--t-glass);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
}

body[data-tab-active="hold"] #btn-send-chat,
body[data-tab-active="hold"] .arch-cta-primary {
  background: var(--t-btn-bg);
  color: var(--t-btn-ink);
  border: 0;
  border-radius: var(--t-radius-sm);
  font-weight: 700;
  box-shadow: none;
}

body[data-tab-active="hold"] .arch-cta-secondary,
body[data-tab-active="hold"] .q-chip {
  background: var(--t-elevated);
  border: 1px solid var(--t-line-strong);
  border-radius: var(--t-radius-sm);
  color: var(--t-ink-1);
  box-shadow: none;
}

/* ==========================================================================
   STAGE 2B: Interact Tab (body[data-tab-active="interact"])
   ========================================================================== */
body[data-tab-active="interact"] #juji-agent-radar {
  max-width: 1392px;
  width: calc(100% - 48px);
  margin: 20px auto 48px;
  padding: 0;
  box-sizing: border-box;
}

body[data-tab-active="interact"] .juji-agent-radar-title {
  font-family: var(--t-font);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--t-ink-1);
}

body[data-tab-active="interact"] .juji-agent-radar-badge {
  padding: 4px 10px;
  border: 1px solid var(--t-line-strong);
  border-radius: 6px;
  background: var(--t-elevated);
  color: var(--t-ink-2);
  font-size: 14px;
  font-weight: 600;
}

body[data-tab-active="interact"] #juji-agent-radar .juji-agent-radar-list > * {
  background: var(--t-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
  padding: 18px 20px;
}

body[data-tab-active="interact"] .juji-agent-radar-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--t-line-strong);
  border-radius: var(--t-radius-sm);
  background: var(--t-elevated);
  color: var(--t-ink-1);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: none;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

body[data-tab-active="interact"] .juji-agent-radar-card a:hover {
  background: var(--t-elevated-hover);
}

/* Primary action distinction for the first action button in each radar row */
body[data-tab-active="interact"] .juji-agent-radar-card :is(.juji-agent-radar-actions, .juji-agent-radar-btns) > a:first-child,
body[data-tab-active="interact"] .juji-agent-radar-card > div:last-child > a:first-child {
  background: var(--t-btn-bg);
  border-color: var(--t-btn-bg);
  color: var(--t-btn-ink);
  font-weight: 700;
}

body[data-tab-active="interact"] .juji-agent-radar-card :is(.juji-agent-radar-actions, .juji-agent-radar-btns) > a:first-child:hover,
body[data-tab-active="interact"] .juji-agent-radar-card > div:last-child > a:first-child:hover {
  background: var(--t-btn-hover);
  border-color: var(--t-btn-hover);
}

/* ==========================================================================
   STAGE 2C: Rules Tab (body[data-tab-active="rules"])
   ========================================================================== */
body[data-tab-active="rules"] #rules-section {
  max-width: 1392px;
  width: calc(100% - 48px);
  margin: 24px auto 56px;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  border: 0;
}

body[data-tab-active="rules"] .rules-editorial-split {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body[data-tab-active="rules"] #rules-main-title {
  margin: 0 0 8px;
  font-family: var(--t-font);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--t-ink-1);
}

body[data-tab-active="rules"] #rules-main-sub {
  margin: 0;
  max-width: 56em;
  color: var(--t-ink-2);
  font-size: 15.5px;
  line-height: 1.62;
}

body[data-tab-active="rules"] .rules-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-tab-active="rules"] .rule-card {
  margin: 0;
  padding: 20px 22px;
  background: var(--t-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body[data-tab-active="rules"] .rule-card h3 {
  margin: 0;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--t-line);
  font-family: var(--t-font);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--t-ink-1);
}

body[data-tab-active="rules"] .rule-card p {
  margin: 0;
  color: var(--t-ink-2);
  font-size: 15px;
  line-height: 1.68;
}

/* ==========================================================================
   STAGE 3: Launchpad Page (body.jl-page on launches.html)
   ========================================================================== */
body.jl-page .jl-main {
  max-width: 1392px;
  padding: 24px 24px 64px;
  background-image: none;
}

body.jl-page .jl-kicker {
  padding: 5px 12px;
  border: 1px solid var(--t-line-strong);
  border-radius: 999px;
  background: var(--t-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--t-ink-2);
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: none;
}

body.jl-page .jl-kicker-dot {
  background: var(--t-up);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.20);
}

body.jl-page .jl-title {
  margin: 12px 0 8px;
  font-family: var(--t-font);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--t-ink-1);
}

body.jl-page .jl-lede {
  font-size: 16px;
  line-height: 1.64;
  color: var(--t-ink-2);
}

body.jl-page .jl-node-box {
  padding: 12px 16px;
  background: var(--t-glass-deep);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
}

body.jl-page .jl-node-lbl {
  color: var(--t-ink-3);
  font-size: 14px;
  font-weight: 500;
}

body.jl-page .jl-node-val {
  font-family: var(--t-font);
  font-size: 19px;
  font-weight: 700;
  color: var(--t-up);
  font-variant-numeric: tabular-nums;
}

body.jl-page .jl-node-sub {
  color: var(--t-ink-2);
  font-size: 14px;
}

body.jl-page .jl-refresh-btn {
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--t-radius-sm);
  background: var(--t-btn-bg);
  color: var(--t-btn-ink);
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
  transform: none;
}

body.jl-page .jl-refresh-btn:hover,
body.jl-page .jl-refresh-btn:active {
  background: var(--t-btn-hover);
  box-shadow: none;
  transform: none;
}

body.jl-page .jl-manifesto {
  padding: 24px 26px;
  background: var(--t-glass);
  background-image: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
}

body.jl-page .jl-mf-frame {
  border: 1px solid var(--t-line-strong);
  border-radius: 10px;
  box-shadow: none;
}

body.jl-page .jl-mf-head {
  border-bottom: 1px solid var(--t-line);
}

body.jl-page .jl-mf-title {
  font-family: var(--t-font);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--t-ink-1);
}

body.jl-page .jl-mf-lead {
  font-family: var(--t-font);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--t-ink-2);
}

body.jl-page .jl-mf-p {
  font-size: 16px;
  line-height: 1.72;
  color: var(--t-ink-2);
}

body.jl-page .jl-mf-list li {
  padding: 10px 14px;
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line);
  border-radius: 9px;
  box-shadow: none;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--t-ink-1);
}

body.jl-page .jl-mf-dot {
  color: var(--t-ink-1);
}

body.jl-page .jl-mf-close {
  padding: 12px 16px;
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line-strong);
  border-left: 3px solid var(--t-btn-bg);
  border-radius: 10px;
  box-shadow: none;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--t-ink-1);
}

body.jl-page .jl-mf-note {
  color: var(--t-ink-3);
  font-size: 14.5px;
}

body.jl-page .jl-film {
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
}

body.jl-page .jl-film-cap {
  border-top: 1px solid var(--t-line);
  color: var(--t-ink-2);
  font-size: 15px;
  font-weight: 600;
}

body.jl-page .jl-timeline-board {
  padding: 18px 20px;
  background: var(--t-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
}

body.jl-page .jl-timeline-head {
  border-bottom: 1px solid var(--t-line);
}

body.jl-page .jl-timeline-title {
  font-family: var(--t-font);
  font-size: 19px;
  font-weight: 700;
  color: var(--t-ink-1);
}

body.jl-page .jl-timeline-hint {
  color: var(--t-ink-3);
  font-size: 14.5px;
}

body.jl-page .jl-tpill {
  padding: 4px 10px;
  border: 1px solid var(--t-line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

body.jl-page .jl-tpill.is-live {
  background: rgba(52, 211, 153, 0.10);
  border-color: rgba(52, 211, 153, 0.28);
  color: var(--t-up);
}

body.jl-page .jl-tpill.is-dead {
  background: rgba(248, 113, 113, 0.10);
  border-color: rgba(248, 113, 113, 0.28);
  color: var(--t-down);
}

body.jl-page .jl-tpill.is-next {
  background: var(--t-elevated);
  border-color: var(--t-line-strong);
  color: var(--t-ink-1);
}

body.jl-page .jl-timeline-rail::before {
  height: 1px;
  background: var(--t-line-strong);
}

body.jl-page .jl-tl-node {
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
  transform: none;
}

body.jl-page .jl-tl-node:hover {
  background: var(--t-glass-hover);
  border-color: var(--t-line-strong);
  box-shadow: none;
  transform: none;
}

body.jl-page .jl-tl-node.is-live {
  border-color: rgba(52, 211, 153, 0.32);
  background: var(--t-glass-deep);
}

body.jl-page .jl-tl-node.is-next {
  border-color: var(--t-line-strong);
  background: var(--t-glass-deep);
}

body.jl-page .jl-tl-step {
  border: 1px solid var(--t-line);
  background: var(--t-elevated);
  color: var(--t-ink-2);
  font-weight: 600;
}

body.jl-page .jl-tl-art {
  border: 1px solid var(--t-line);
  border-radius: 10px;
  box-shadow: none;
}

body.jl-page .jl-tl-node.is-dead .jl-tl-art img,
body.jl-page .jl-poster-card.is-dead-card .jl-art-img {
  filter: grayscale(0.86) contrast(0.95);
}

body.jl-page .jl-tl-node.is-dead:hover .jl-tl-art img,
body.jl-page .jl-poster-card.is-dead-card:hover .jl-art-img {
  filter: grayscale(0.45) contrast(1);
}

body.jl-page .jl-tl-name {
  font-family: var(--t-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--t-ink-1);
}

body.jl-page .jl-tl-tag {
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
}

body.jl-page .jl-tl-tag.is-live {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.34);
  color: var(--t-up);
}

body.jl-page .jl-tl-tag.is-dead {
  background: var(--t-warn-bg);
  border-color: var(--t-warn-border);
  color: var(--t-warn-ink);
}

body.jl-page .jl-tl-tag.is-arch {
  background: var(--t-elevated);
  border-color: var(--t-line-strong);
  color: var(--t-ink-2);
}

body.jl-page .jl-tl-tag.is-next {
  background: var(--t-btn-bg);
  border-color: var(--t-btn-bg);
  color: var(--t-btn-ink);
  font-weight: 700;
}

body.jl-page .jl-filters {
  padding: 4px;
  background: var(--t-glass);
  border: 1px solid var(--t-line);
  border-radius: 10px;
  box-shadow: none;
}

body.jl-page .jl-filter-btn {
  border-radius: 7px;
  color: var(--t-ink-3);
  font-size: 15px;
  font-weight: 500;
}

body.jl-page .jl-filter-btn:hover {
  color: var(--t-ink-1);
  background: var(--t-elevated);
}

body.jl-page .jl-filter-btn.is-active {
  background: var(--t-btn-bg);
  color: var(--t-btn-ink);
  font-weight: 700;
}

body.jl-page .jl-poster-card {
  padding: 18px 20px;
  background: var(--t-glass);
  background-image: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
}

body.jl-page .jl-poster-card.is-live-card {
  background-image: none;
  border-color: rgba(52, 211, 153, 0.24);
}

body.jl-page .jl-poster-card.is-next-card {
  background-image: none;
  border-color: var(--t-line-strong);
}

body.jl-page .jl-poster-card.is-spotlight {
  border-color: var(--t-warn-dot);
  box-shadow: 0 0 0 1px var(--t-warn-border);
}

body.jl-page .jl-art-frame {
  border: 1px solid var(--t-line);
  border-radius: 10px;
  box-shadow: none;
}

body.jl-page .jl-art-idx {
  border: 1px solid var(--t-line-strong);
  border-radius: 6px;
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 600;
}

body.jl-page .jl-stamp {
  padding: 4px 10px;
  border: 1px solid var(--t-line-strong);
  border-radius: 6px;
  font-family: var(--t-font);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
  transform: none;
}

body.jl-page .jl-stamp.is-live {
  background: rgba(8, 8, 12, 0.86);
  border-color: rgba(52, 211, 153, 0.42);
  color: var(--t-up);
}

body.jl-page .jl-stamp.is-next {
  background: var(--t-btn-bg);
  border-color: var(--t-btn-bg);
  color: var(--t-btn-ink);
}

body.jl-page .jl-stamp.is-dead {
  background: var(--t-warn-bg);
  border-color: var(--t-warn-border);
  color: var(--t-warn-ink);
}

body.jl-page .jl-stamp.is-arch {
  background: rgba(8, 8, 12, 0.86);
  border-color: var(--t-line-strong);
  color: var(--t-ink-2);
}

body.jl-page .jl-card-title,
body.jl-page .jl-poster-card.is-compact .jl-card-title {
  font-family: var(--t-font);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--t-ink-1);
}

body.jl-page .jl-ticker-pill {
  border: 1px solid var(--t-line);
  border-radius: 6px;
  background: var(--t-elevated);
  color: var(--t-ink-2);
  font-size: 14px;
  font-weight: 600;
}

body.jl-page .jl-warn-pill {
  border: 1px solid var(--t-warn-border);
  border-radius: 6px;
  background: var(--t-warn-bg);
  color: var(--t-warn-ink);
  font-size: 14px;
  font-weight: 600;
}

body.jl-page .jl-ca-bar {
  border: 1px solid var(--t-line);
  border-radius: 8px;
  background: var(--t-glass-deep);
}

body.jl-page .jl-mini-copy {
  border: 1px solid var(--t-line-strong);
  border-radius: 6px;
  background: var(--t-elevated);
  color: var(--t-ink-1);
  font-weight: 600;
}

body.jl-page .jl-mini-copy:hover {
  background: var(--t-elevated-hover);
  color: var(--t-ink-1);
}

body.jl-page .jl-kpi-cell {
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line);
  border-radius: 10px;
  box-shadow: none;
}

body.jl-page .jl-kpi-val {
  font-family: var(--t-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--t-ink-1);
  font-variant-numeric: tabular-nums;
}

/* Card Buttons: Clear Primary (#F5EEE4) vs Secondary (Hairline Glass) */
body.jl-page .jl-action-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--t-line-strong);
  border-radius: var(--t-radius-sm);
  background: var(--t-elevated);
  color: var(--t-ink-1);
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
  transform: none;
}

body.jl-page .jl-action-btn:hover {
  background: var(--t-elevated-hover);
  box-shadow: none;
  transform: none;
}

body.jl-page .jl-action-btn.is-primary {
  background: var(--t-btn-bg);
  border-color: var(--t-btn-bg);
  color: var(--t-btn-ink);
  font-weight: 700;
  box-shadow: none;
}

body.jl-page .jl-action-btn.is-primary:hover {
  background: var(--t-btn-hover);
  border-color: var(--t-btn-hover);
  box-shadow: none;
}

body.jl-page .jl-action-btn.is-primary::after {
  display: none !important;
}

body.jl-page .jl-card-drawer {
  border: 1px solid var(--t-line);
  border-radius: 10px;
  background: var(--t-glass-deep);
}

body.jl-page .jl-card-drawer[open] .jl-drawer-summary {
  border-bottom: 1px solid var(--t-line);
}

body.jl-page .jl-drawer-summary::after {
  border: 1px solid var(--t-line-strong);
  border-radius: 6px;
  font-weight: 700;
}

body.jl-page .jl-proof-list {
  border: 1px solid var(--t-line);
  background: rgba(8, 8, 12, 0.65);
}

body.jl-page .jl-story-sec h4 {
  font-family: var(--t-font);
  font-size: 16px;
  font-weight: 700;
}

body.jl-page .jl-ethos {
  background: var(--t-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: none;
}

body.jl-page .jl-ethos-heading {
  font-family: var(--t-font);
  font-size: 19px;
  font-weight: 700;
}

body.jl-page .jl-ethos-card {
  background: var(--t-glass-deep);
  border: 1px solid var(--t-line);
  border-radius: 10px;
}

body.jl-page .jl-ethos-idx {
  border: 1px solid var(--t-line-strong);
  border-radius: 7px;
  background: var(--t-elevated);
  color: var(--t-ink-1);
  font-family: var(--t-font);
  font-size: 15px;
  font-weight: 700;
}

body.jl-page .jl-ethos-card h3 {
  font-family: var(--t-font);
  font-size: 16.5px;
  font-weight: 700;
}

body.jl-page .jl-foot {
  border-top: 1px solid var(--t-line);
  color: var(--t-ink-3);
}

/* ==========================================================================
   Mobile Responsive Polish (<= 860px & 390px iPhone Zero-Overflow)
   ========================================================================== */
@media (max-width: 900px) {
  body[data-tab-active="rules"] .rules-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  :is(body[data-tab-active="live"], body[data-tab-active="interact"]) :is(#juji-schedule-card, #juji-ca, #juji-bullet),
  body[data-tab-active="live"] :is(#juji-offair, #juji-hero, #juji-clips),
  body[data-tab-active="hold"] :is(#juji-hold, #juji-positions, #juji-more),
  body[data-tab-active="interact"] #juji-agent-radar,
  body[data-tab-active="rules"] #rules-section {
    width: calc(100% - 28px);
    margin-left: auto;
    margin-right: auto;
  }

  :is(body[data-tab-active="live"], body[data-tab-active="interact"]) :is(#juji-schedule-card, #juji-ca, #juji-bullet),
  body[data-tab-active="live"] #juji-hero {
    padding: 14px;
  }

  body[data-tab-active="hold"] #juji-hold .juji-hold-screen {
    padding: 4px 12px 12px;
    overflow-x: auto;
  }

  body[data-tab-active="hold"] .juji-hold-table thead th,
  body[data-tab-active="hold"] .juji-hold-table tbody td {
    padding: 10px 6px;
    font-size: 14.5px;
  }

  body[data-tab-active="hold"] #juji-trades,
  body[data-tab-active="interact"] #juji-agent-radar .juji-agent-radar-list > *,
  body[data-tab-active="rules"] .rule-card {
    padding: 14px 15px;
  }

  body[data-tab-active="rules"] #rules-main-title {
    font-size: 22px;
  }

  body.jl-page .jl-main {
    padding: 16px 14px 48px;
  }

  body.jl-page .jl-manifesto,
  body.jl-page .jl-timeline-board,
  body.jl-page .jl-poster-card,
  body.jl-page .jl-ethos {
    padding: 14px 15px;
  }

  body.jl-page .jl-timeline-rail::before {
    width: 1px;
    background: var(--t-line-strong);
  }
}

/* ==========================================================================
   L453 POLISH: Ledger Updating Pill, Off-Air Standby Screen & Mobile 390 Countdown
   ========================================================================== */

/* 1. Hold tab: subtle stale-while-revalidate "更新中" pill */
body[data-tab-active="hold"] #active-pos-badge[data-ledger-updating="1"] {
  border-color: rgba(245, 238, 228, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--t-ink-1);
}

/* 2. Live tab off-air: hide dead listen/reconnect button & underlying empty chart frames */
body[data-tab-active="live"] #juji-hero.is-off-air #btn-unlock-voice-director {
  display: none !important;
}

body[data-tab-active="live"] #juji-stage-head[data-standby="1"] :is(#ws-tel-symbol, #ws-tel-chain, #ws-tel-price, #ws-tel-chg) {
  display: none !important;
}

body[data-tab-active="live"] .juji-stage-standby-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--t-line-strong);
  background: var(--t-elevated);
  color: var(--t-ink-2);
  font-family: var(--t-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

body[data-tab-active="live"] .juji-stage-standby-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 238, 228, 0.55);
}

body[data-tab-active="live"] #juji-hero.is-off-air #ws-chart-stage {
  position: relative;
  min-height: 380px;
  background: #08080C !important;
  border: 1px solid var(--t-line-strong) !important;
  border-radius: var(--t-radius) !important;
  overflow: hidden;
}

body[data-tab-active="live"] #juji-hero.is-off-air #ws-chart-stage > :not(#juji-stage-offair) {
  display: none !important;
}

body[data-tab-active="live"] #juji-hero.is-off-air #juji-stage-offair:not([hidden]) {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 380px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: var(--t-radius);
  background: #08080C !important;
  color: var(--t-ink-1);
  overflow: hidden;
  box-sizing: border-box;
}

body[data-tab-active="live"] #juji-stage-offair:has(#juji-standby-card) > :not(#juji-standby-card) {
  display: none !important;
}

body[data-tab-active="live"] .juji-standby-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 380px;
  box-sizing: border-box;
  overflow: hidden;
}

body[data-tab-active="live"] .juji-standby-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 65% 28%, rgba(245, 238, 228, 0.1), rgba(8, 8, 12, 0.96) 72%);
}

body[data-tab-active="live"] .juji-standby-visual picture,
body[data-tab-active="live"] .juji-standby-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

body[data-tab-active="live"] .juji-standby-img {
  opacity: 0.76;
  filter: saturate(0.92) contrast(1.04);
}

body[data-tab-active="live"] .juji-standby-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 12, 0.18) 0%,
    rgba(8, 8, 12, 0.56) 46%,
    rgba(8, 8, 12, 0.93) 84%,
    rgba(8, 8, 12, 0.98) 100%
  );
}

body[data-tab-active="live"] .juji-standby-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 24px 26px;
  box-sizing: border-box;
}

body[data-tab-active="live"] .juji-standby-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--t-ink-2);
  font-family: var(--t-font);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

body[data-tab-active="live"] .juji-standby-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.55);
}

body[data-tab-active="live"] .juji-standby-headline {
  margin: 0;
  color: var(--t-ink-1);
  font-family: var(--t-font);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

body[data-tab-active="live"] .juji-standby-sub {
  margin: 0;
  color: var(--t-ink-2);
  font-family: var(--t-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

body[data-tab-active="live"] .juji-standby-slots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

body[data-tab-active="live"] .juji-standby-slots-lbl {
  color: var(--t-ink-3);
  font-family: var(--t-font);
  font-size: 14px;
  font-weight: 500;
  margin-right: 4px;
}

body[data-tab-active="live"] .juji-standby-slot-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--t-ink-1);
  font-family: var(--t-font);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

/* 3. Off-air countdown bar (#juji-offair): clean desktop row & 1-item-per-line mobile 390 layout */
body[data-tab-active="live"] #juji-offair:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

body[data-tab-active="live"] .juji-offair-head-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-tab-active="live"] #juji-offair-label {
  color: var(--t-ink-2);
  font-size: 15px;
  font-weight: 600;
}

body[data-tab-active="live"] #juji-offair-at {
  color: var(--t-ink-1);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body[data-tab-active="live"] .juji-offair-lang-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--t-line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--t-ink-1);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

body[data-tab-active="live"] #juji-offair-countdown {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--t-line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--t-ink-1);
  font-family: var(--t-font);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

body[data-tab-active="live"] #juji-offair-local,
body[data-tab-active="live"] #juji-offair-next-zh {
  color: var(--t-ink-2);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

body[data-tab-active="live"] #juji-offair-trading {
  color: var(--t-ink-3);
  font-size: 14.5px;
  font-weight: 500;
}

/* Mobile <= 720px: 1 item per line on #juji-offair + 0 gold on mobile off-air controls */
@media (max-width: 720px) {
  body[data-tab-active="live"] #juji-offair:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 14px 16px !important;
    line-height: 1.45 !important;
  }

  body[data-tab-active="live"] .juji-offair-head-row {
    width: 100%;
    gap: 7px;
  }

  body[data-tab-active="live"] #juji-offair-label {
    font-size: 15px;
  }

  body[data-tab-active="live"] #juji-offair-at {
    font-size: 16px;
  }

  body[data-tab-active="live"] #juji-offair-local,
  body[data-tab-active="live"] #juji-offair-next-zh:not([hidden]),
  body[data-tab-active="live"] #juji-offair-trading {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 14.5px;
    line-height: 1.48;
  }

  body[data-tab-active="live"] #juji-offair-trading {
    padding-top: 4px !important;
    border-top: 1px solid var(--t-line) !important;
    color: var(--t-ink-3);
    font-size: 14px;
  }

  body[data-tab-active="live"] #juji-hero.is-off-air #ws-chart-stage,
  body[data-tab-active="live"] #juji-hero.is-off-air #juji-stage-offair:not([hidden]),
  body[data-tab-active="live"] .juji-standby-card {
    min-height: 290px;
  }

  body[data-tab-active="live"] .juji-standby-body {
    padding: 16px;
    gap: 8px;
  }

  body[data-tab-active="live"] .juji-standby-headline {
    font-size: 16.5px;
    line-height: 1.42;
  }

  body[data-tab-active="live"] .juji-standby-sub {
    font-size: 14.5px;
  }

  body[data-tab-active="live"] #jx-m-last {
    background: var(--t-elevated) !important;
    border: 1px solid var(--t-line-strong) !important;
    border-radius: 6px !important;
    color: var(--t-ink-2) !important;
    font-family: var(--t-font) !important;
    font-weight: 600 !important;
  }

}

/* 11-08 #6015（他二號「不要自動收展」）：內容格一律攤開——摘要列只當標題，不能點收，也不畫 +／− 或展開記號 */
details.is-pinned-open > summary {
  pointer-events: none;
  cursor: default;
  list-style: none;
}

details.is-pinned-open > summary::-webkit-details-marker {
  display: none;
}

details.is-pinned-open > summary::before,
details.is-pinned-open > summary::after {
  content: none !important;
  display: none !important;
}

/* ==========================================================================
 * 11-08 owner #6090「其他分頁的 uiux 全部都沒了? 連排版也沒有? 直接全黑欸?」
 * 1) 景深：首屏同一張照片（K 線＋背影）壓深當分頁底紋，不再是一片純黑（背景層在頁面最外層、z-index -1、不播影片）
 * 2) 卡框：主內容卡邊線、圓角、陰影加重，層次回來（舊版那種「一塊一塊」的感覺）
 * 3) 排法：長文照樣攤開（#6015 不折疊），但不再擋在主畫面前面——直播排班公告、互動發射全文各自一塊、排在主畫面後面，電腦分兩欄讀
 * ========================================================================== */

html:has(body[data-tab-active]:not([data-tab-active="dossier"]):not(.jl-page)) {
  background-color: #08080C;
}

html body[data-tab-active]:not([data-tab-active="dossier"]):not(.jl-page) {
  background-color: transparent;
  background-image: none;
}

html body[data-tab-active]:not([data-tab-active="dossier"]) .r6c-backdrop {
  display: block !important;
  z-index: -1;
}

html body[data-tab-active]:not([data-tab-active="dossier"]) .r6c-backdrop-video {
  display: none !important;
}

html body[data-tab-active]:not([data-tab-active="dossier"]) .r6c-backdrop-photo {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
  background-size: cover;
  background-position: 50% 38%;
  opacity: 1;
  visibility: visible;
}

html body[data-tab-active]:not([data-tab-active="dossier"]) .r6c-backdrop-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 640px at 6% -4%, rgba(245, 238, 228, 0.075), transparent 70%),
    radial-gradient(900px 720px at 98% 34%, rgba(52, 211, 153, 0.04), transparent 70%),
    linear-gradient(180deg, rgba(8, 8, 12, 0.74) 0%, rgba(8, 8, 12, 0.84) 42%, rgba(8, 8, 12, 0.9) 100%);
}

/* 2) 卡框 */
html :is(body[data-tab-active="live"], body[data-tab-active="interact"]) :is(#juji-schedule-card, #juji-ca, #juji-bullet, #juji-schedule-post, #juji-bullet-post),
html body[data-tab-active="live"] :is(#juji-offair, #juji-hero, .juji-clip),
html body[data-tab-active="hold"] :is(#juji-hold .juji-hold-screen, #juji-trades, #juji-positions .juji-pos-card, .clean-card, .wall-panel, .live-monitor-frame, .ws-telemetry-card, .ws-intel-card, .ws-action-log-card),
html body[data-tab-active="interact"] #juji-agent-radar .juji-agent-radar-list > *,
html body[data-tab-active="rules"] .rule-card {
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 44px rgba(0, 0, 0, 0.42);
}

/* 3) 搬到主畫面後面的兩篇長文：一塊玻璃卡、標題當標題、電腦分兩欄 */
html :is(body[data-tab-active="live"] #juji-schedule-post, body[data-tab-active="interact"] #juji-bullet-post) {
  max-width: 1392px;
  width: calc(100% - 48px);
  margin: 16px auto 0;
  padding: 18px 24px 22px;
  box-sizing: border-box;
  background: var(--t-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

html :is(#juji-schedule-post, #juji-bullet-post) .juji-bullet-more {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

html :is(#juji-schedule-post, #juji-bullet-post) .juji-bullet-summary {
  display: block;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--t-line);
  color: var(--t-ink-1);
  font-family: var(--t-font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

html :is(#juji-schedule-post, #juji-bullet-post) .juji-bullet-article {
  max-width: none;
  color: var(--t-ink-2);
  font-family: var(--t-font);
  font-size: 15px;
  line-height: 1.8;
}

html :is(#juji-schedule-post, #juji-bullet-post) .juji-bullet-article :is(strong, b, .juji-bullet-h) {
  color: var(--t-ink-1);
}

@media (min-width: 1100px) {
  html :is(#juji-schedule-post, #juji-bullet-post) .juji-bullet-article:not([hidden]) {
    column-count: 2;
    column-gap: 44px;
    column-rule: 1px solid var(--t-line);
  }
  html :is(#juji-schedule-post, #juji-bullet-post) .juji-bullet-article :is(p, li, ul, ol) {
    break-inside: avoid;
  }
}

@media (max-width: 720px) {
  html :is(body[data-tab-active="live"] #juji-schedule-post, body[data-tab-active="interact"] #juji-bullet-post) {
    width: calc(100% - 24px);
    padding: 14px 14px 16px;
  }
  /* 發射全文不在 BULLET 那條裡了：手機那條自己的一句說明放回來 */
  html body[data-tab-active="interact"] .juji-ca--bullet .juji-ca-note {
    display: block;
    order: 10;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    margin: 4px 0 0;
  }
}

/* 發射台頁（launches.html·頁上沒有首屏那層背景）：同一張照片＋同一層遮罩，畫在 body 的 ::before */
html:has(body.jl-page) {
  background-color: #08080C;
}

html body.jl-page {
  background-color: transparent;
  background-image: none;
}

html body.jl-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1100px 640px at 6% -4%, rgba(245, 238, 228, 0.075), transparent 70%),
    radial-gradient(900px 720px at 98% 34%, rgba(52, 211, 153, 0.04), transparent 70%),
    linear-gradient(180deg, rgba(8, 8, 12, 0.74) 0%, rgba(8, 8, 12, 0.84) 42%, rgba(8, 8, 12, 0.9) 100%),
    image-set(
      url("/brand/fs-r5/r8c-hero-desktop.r8.webp") type("image/webp"),
      url("/brand/fs-r5/r8c-hero-desktop.r8.jpg") type("image/jpeg")
    );
  background-repeat: no-repeat;
  background-size: auto, auto, auto, cover;
  background-position: 0 0, 0 0, 0 0, 50% 38%;
}

@media (max-width: 1024px) {
  html body.jl-page::before {
    background-image:
      radial-gradient(700px 480px at 0% -4%, rgba(245, 238, 228, 0.07), transparent 70%),
      linear-gradient(180deg, rgba(8, 8, 12, 0.74) 0%, rgba(8, 8, 12, 0.86) 42%, rgba(8, 8, 12, 0.92) 100%),
      image-set(
        url("/brand/fs-r5/r8c-hero-mobile.r8.webp") type("image/webp"),
        url("/brand/fs-r5/r8c-hero-mobile.r8.jpg") type("image/jpeg")
      );
    background-size: auto, auto, cover;
    background-position: 0 0, 0 0, 50% 30%;
  }
}

/* 發射台卡片框（跟分頁同一套份量） */
html body.jl-page :is(.jl-manifesto, .jl-film, .jl-timeline-board, .jl-poster-card, .jl-ethos, .jl-ethos-card, .jl-node-box) {
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 44px rgba(0, 0, 0, 0.42);
}

/* 規則頁標題放回舊版那個份量 */
@media (min-width: 1025px) {
  html body[data-tab-active="rules"] #rules-section #rules-main-title {
    font-size: 30px;
    line-height: 1.25;
  }
}
