/* ==========================================================================
   Second Self · Apple Human Interface Guidelines Inspired Design System
   Zero Noise · Ceramic White & Titanium Dark · Calm Intelligence
   ========================================================================== */

:root {
  /* Studio Canvas */
  --studio-bg: #f5f5f7;
  --studio-surface: #ffffff;
  --studio-ink: #1d1d1f;
  --studio-muted: #6e6e73;
  --studio-hairline: rgba(0, 0, 0, 0.08);

  /* iOS Light (Ceramic White) */
  --ios-bg: #f5f5f7;
  --ios-card: #ffffff;
  --ios-card-elevated: rgba(255, 255, 255, 0.88);
  --ios-ink: #1d1d1f;
  --ios-secondary: #515154;
  --ios-muted: #86868b;
  --ios-hairline: rgba(0, 0, 0, 0.07);
  --ios-dock-bg: rgba(245, 245, 247, 0.78);
  --ios-pill-bg: rgba(0, 0, 0, 0.045);

  /* Semantic Accents (Restrained Apple Palette — Chinese A-share convention: red up, green down, softened) */
  --accent-calm: #0071e3;
  --accent-calm-soft: rgba(0, 113, 227, 0.1);
  --accent-up: #d93829;
  --accent-down: #18965c;
  --accent-shield: #c93b2b;
  --accent-shield-soft: rgba(201, 59, 43, 0.09);
  --accent-opp: #0071e3;
  --accent-insight: #5856d6;
  --accent-lock: #bf5af2;

  --font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, monospace;
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-ios-theme="dark"] {
  --ios-bg: #000000;
  --ios-card: #1c1c1e;
  --ios-card-elevated: rgba(28, 28, 30, 0.88);
  --ios-ink: #f5f5f7;
  --ios-secondary: #aeaeb2;
  --ios-muted: #8e8e93;
  --ios-hairline: rgba(255, 255, 255, 0.1);
  --ios-dock-bg: rgba(20, 20, 22, 0.8);
  --ios-pill-bg: rgba(255, 255, 255, 0.09);
  --accent-calm: #2997ff;
  --accent-calm-soft: rgba(41, 151, 255, 0.16);
  --accent-up: #ff5b4d;
  --accent-down: #30d158;
  --accent-shield: #ff5b4d;
  --accent-shield-soft: rgba(255, 91, 77, 0.14);
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sf);
  background: var(--studio-bg);
  color: var(--studio-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input {
  font-family: inherit;
  color: inherit;
}

/* ==========================================================================
   DESKTOP STUDIO SHELL
   ========================================================================== */
.studio-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.studio-topbar {
  height: 56px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--studio-hairline);
  position: sticky;
  top: 0;
  z-index: 50;
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1d1d1f;
}

.studio-dot.live-dot {
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.22);
}

.studio-name {
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.studio-tag {
  font-size: 0.8rem;
  color: var(--studio-muted);
}

.studio-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--studio-hairline);
  background: var(--studio-surface);
  font-size: 0.78rem;
  color: var(--studio-ink);
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
}

.pill-btn:hover {
  border-color: rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.pill-btn.active {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #1d1d1f;
}

.studio-stage {
  flex: 1;
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 28px 40px;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.studio-shell.focus-mode .studio-stage {
  grid-template-columns: 1fr;
  justify-items: center;
}

.studio-shell.focus-mode .director-panel {
  display: none;
}

/* ==========================================================================
   AUTHENTIC TITANIUM IPHONE 16 PRO CHASSIS
   ========================================================================== */
.iphone-column {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 76px;
}

.iphone-chassis {
  width: 398px;
  height: 820px;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(145deg, #d7d5d0 0%, #9b9994 48%, #c7c4be 100%);
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.16),
    0 8px 22px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  background: var(--ios-bg);
  color: var(--ios-ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease-apple), color 0.35s var(--ease-apple);
}

/* iOS Status Bar + Dynamic Island */
.ios-statusbar {
  position: relative;
  z-index: 20;
  height: 52px;
  padding: 12px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ios-time {
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  width: 48px;
}

.dynamic-island {
  height: 30px;
  min-width: 132px;
  max-width: 224px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: #000000;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.42s var(--ease-apple);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.dynamic-island.expanded {
  min-width: 214px;
  height: 34px;
  padding: 0 14px;
}

.island-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  flex-shrink: 0;
  animation: pulseDot 2.8s ease-in-out infinite;
}

.dynamic-island.tone-shield .island-pulse {
  background: #ff453a;
}

.dynamic-island.tone-opportunity .island-pulse {
  background: #0a84ff;
}

.dynamic-island.tone-insight .island-pulse {
  background: #5e5ce6;
}

.dynamic-island.tone-lock .island-pulse {
  background: #bf5af2;
}

.dynamic-island.tone-thinking .island-pulse {
  background: #ffd60a;
  animation: pulseDot 0.7s ease-in-out infinite;
}

.island-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ios-indicators {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 48px;
  justify-content: flex-end;
}

.sig {
  font-size: 0.7rem;
  font-weight: 600;
}

.battery {
  width: 22px;
  height: 11px;
  border: 1.4px solid currentColor;
  border-radius: 3px;
  padding: 1.5px;
  display: inline-flex;
}

.battery-fill {
  width: 82%;
  height: 100%;
  border-radius: 1.5px;
  background: currentColor;
}

/* ==========================================================================
   IOS MAIN SCROLL CONTENT
   ========================================================================== */
.ios-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px 18px;
  scrollbar-width: none;
}

.ios-scroll::-webkit-scrollbar {
  display: none;
}

.app-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 2px;
}

.app-kicker {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ios-muted);
  margin-bottom: 2px;
}

.app-title {
  margin: 0;
  font-size: 1.58rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.avatar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ios-hairline);
  background: var(--ios-card);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ios-ink);
  cursor: pointer;
  transition: transform 0.2s var(--ease-apple);
}

.avatar-pill:active {
  transform: scale(0.95);
}

.avatar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-calm);
}

/* Calm Intelligence Presence Orb */
.calm-hero {
  background: var(--ios-card);
  border-radius: 26px;
  padding: 26px 20px 24px;
  text-align: center;
  margin-bottom: 18px;
  border: 1px solid var(--ios-hairline);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s var(--ease-apple);
}

.presence-orb-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.presence-orb {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-core {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6ac4ff 0%, #0071e3 58%, #004999 100%);
  box-shadow: 0 0 28px rgba(0, 113, 227, 0.35);
  animation: breatheOrb 4.4s ease-in-out infinite;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.2px solid rgba(0, 113, 227, 0.25);
  animation: breatheRing 4.4s ease-in-out infinite;
}

.calm-headline {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.calm-sub {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.62;
  color: var(--ios-muted);
}

.calm-sub strong {
  color: var(--ios-ink);
  font-variant-numeric: tabular-nums;
}

/* Single-Screen Decision Card */
.decision-card {
  background: var(--ios-card);
  border-radius: 26px;
  padding: 20px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--ios-hairline);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
  animation: cardGlideUp 0.45s var(--ease-apple);
}

.decision-card.tone-shield {
  border-top: 3px solid var(--accent-shield);
}

.decision-card.tone-opportunity {
  border-top: 3px solid var(--accent-opp);
}

.decision-card.tone-insight {
  border-top: 3px solid var(--accent-insight);
}

.decision-card.tone-lock {
  border-top: 3px solid var(--accent-lock);
}

.dc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dc-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-calm-soft);
  color: var(--accent-calm);
}

.decision-card.tone-shield .dc-badge {
  background: var(--accent-shield-soft);
  color: var(--accent-shield);
}

.decision-card.tone-insight .dc-badge {
  background: rgba(88, 86, 214, 0.12);
  color: var(--accent-insight);
}

.decision-card.tone-lock .dc-badge {
  background: rgba(191, 90, 242, 0.14);
  color: var(--accent-lock);
}

.dc-time {
  font-size: 0.72rem;
  color: var(--ios-muted);
}

.dc-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--ios-bg);
  margin-bottom: 14px;
}

.dc-stock-name {
  font-size: 1rem;
  font-weight: 600;
}

.dc-stock-code {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--ios-muted);
}

.dc-price-col {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dc-price {
  font-size: 1.08rem;
  font-weight: 700;
}

.dc-change {
  font-size: 0.78rem;
  font-weight: 600;
}

.dc-change.up {
  color: var(--accent-up);
}

.dc-change.down {
  color: var(--accent-down);
}

.dc-headline {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.dc-summary {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--ios-secondary);
}

/* Breath Lock Box */
.breath-lock-box {
  padding: 16px 14px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(191, 90, 242, 0.08);
  text-align: center;
}

.breath-ring-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breath-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid var(--accent-lock);
  animation: breatheRing 2s ease-in-out infinite;
}

.breath-count {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-lock);
  font-variant-numeric: tabular-nums;
}

.breath-tip {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ios-ink);
  font-weight: 500;
}

.dc-mirror {
  padding: 12px 13px;
  border-radius: 14px;
  background: var(--ios-bg);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ios-secondary);
  margin-bottom: 16px;
}

.dc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ios-btn-primary {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: none;
  background: var(--ios-ink);
  color: var(--ios-bg);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s var(--ease-apple), opacity 0.16s ease;
}

.ios-btn-primary:active {
  transform: scale(0.98);
}

.ios-btn-primary:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.ios-btn-secondary {
  width: 100%;
  padding: 11px 16px;
  border-radius: 14px;
  border: none;
  background: var(--ios-pill-bg);
  color: var(--ios-ink);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s ease;
}

.ios-btn-secondary:hover {
  background: rgba(128, 128, 128, 0.16);
}

/* Natural Language Reply Card */
.agent-reply-card {
  background: var(--ios-card);
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--ios-hairline);
  animation: cardGlideUp 0.35s var(--ease-apple);
}

.arc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.arc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-calm);
}

.arc-title {
  font-size: 0.78rem;
  font-weight: 600;
  flex: 1;
}

.arc-close {
  border: none;
  background: transparent;
  color: var(--ios-muted);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 2px 4px;
}

.arc-body {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.62;
  color: var(--ios-secondary);
}

.arc-rule-pill {
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 11px;
  background: var(--accent-calm-soft);
  color: var(--accent-calm);
  font-size: 0.74rem;
  font-weight: 500;
}

/* Watchlist Section */
.section-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}

.section-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ios-muted);
  letter-spacing: 0.02em;
}

.section-hint {
  font-size: 0.68rem;
  color: var(--ios-muted);
}

.watchlist-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.watch-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 64px minmax(0, 0.85fr);
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid var(--ios-hairline);
  background: var(--ios-card);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s var(--ease-apple), border-color 0.18s ease;
}

.watch-item:hover {
  border-color: rgba(0, 113, 227, 0.35);
}

.watch-item:active {
  transform: scale(0.985);
}

.w-name {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.w-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
}

.w-status-dot.watch {
  background: #0071e3;
}

.w-status-dot.guard {
  background: #ff9f0a;
}

.w-rule {
  margin-top: 3px;
  font-size: 0.69rem;
  color: var(--ios-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w-spark {
  display: block;
  width: 62px;
  height: 24px;
}

.w-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.w-price {
  font-size: 0.88rem;
  font-weight: 600;
}

.w-pct {
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 600;
}

.w-pct.up { color: var(--accent-up); }
.w-pct.down { color: var(--accent-down); }
.w-pct.flat { color: var(--ios-muted); }

/* Quick Zero-Friction Prompts */
.quick-prompts-section {
  padding: 0 2px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.q-chip {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--ios-hairline);
  background: var(--ios-card);
  font-size: 0.72rem;
  color: var(--ios-secondary);
  cursor: pointer;
  transition: all 0.16s var(--ease-apple);
}

.q-chip:hover {
  border-color: var(--accent-calm);
  color: var(--accent-calm);
}

.scroll-spacer {
  height: 18px;
}

/* Bottom Glass Command Dock */
.ios-command-dock {
  position: relative;
  z-index: 20;
  padding: 10px 14px 8px;
  background: var(--ios-dock-bg);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--ios-hairline);
  flex-shrink: 0;
}

.command-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 14px;
  border-radius: 999px;
  background: var(--ios-card);
  border: 1px solid var(--ios-hairline);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.command-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.84rem;
  outline: none;
}

.command-bar input::placeholder {
  color: var(--ios-muted);
}

.send-orb-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--ios-ink);
  color: var(--ios-bg);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s var(--ease-apple);
}

.send-orb-btn:active {
  transform: scale(0.9);
}

.home-indicator {
  width: 128px;
  height: 4.5px;
  border-radius: 999px;
  background: var(--ios-ink);
  opacity: 0.22;
  margin: 10px auto 2px;
}

/* ==========================================================================
   PROGRESSIVE DISCLOSURE BOTTOM SHEET
   ========================================================================== */
.ios-sheet-backdrop[hidden],
.ios-sheet[hidden] {
  display: none;
}

.ios-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(4px);
}

.ios-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  max-height: 82%;
  border-radius: 28px 28px 0 0;
  background: var(--ios-card);
  border-top: 1px solid var(--ios-hairline);
  display: flex;
  flex-direction: column;
  animation: sheetRise 0.36s var(--ease-apple);
}

.sheet-grabber {
  width: 38px;
  height: 4.5px;
  border-radius: 999px;
  background: var(--ios-muted);
  opacity: 0.35;
  margin: 10px auto 4px;
}

.sheet-header {
  padding: 6px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ios-hairline);
}

.sheet-kicker {
  font-size: 0.84rem;
  font-weight: 600;
}

.sheet-close-btn {
  border: none;
  background: transparent;
  color: var(--accent-calm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.sheet-content {
  padding: 16px 18px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sheet-chart-box {
  padding: 14px;
  border-radius: 18px;
  background: var(--ios-bg);
}

.sheet-chart-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ios-muted);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.evidence-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ios-bg);
}

.evidence-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-calm);
  margin-bottom: 4px;
}

.evidence-val {
  font-size: 0.8rem;
  line-height: 1.58;
  color: var(--ios-ink);
}

.flow-bar-wrap {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ios-bg);
}

.flow-bar-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  margin-top: 8px;
  background: var(--ios-hairline);
}

.flow-buy { background: var(--accent-up); }
.flow-sell { background: var(--accent-down); }

/* ==========================================================================
   RIGHT PANEL: 30-YEAR PM KEYNOTE DIRECTOR CONSOLE
   ========================================================================== */
.director-panel {
  min-width: 0;
}

.director-card {
  background: var(--studio-surface);
  border-radius: 28px;
  padding: 32px 34px;
  border: 1px solid var(--studio-hairline);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
}

.dir-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0071e3;
  margin-bottom: 10px;
}

.dir-title {
  margin: 0 0 12px;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.dir-lead {
  margin: 0 0 26px;
  font-size: 0.94rem;
  line-height: 1.74;
  color: var(--studio-muted);
}

.dir-lead strong {
  color: var(--studio-ink);
}

.dir-block {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--studio-hairline);
}

.dir-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.84rem;
  font-weight: 600;
}

.reset-calm-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--studio-hairline);
  background: var(--studio-bg);
  font-size: 0.74rem;
  color: var(--studio-muted);
  cursor: pointer;
}

.reset-calm-btn:hover {
  color: var(--studio-ink);
  border-color: rgba(0, 0, 0, 0.25);
}

.theater-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theater-btn {
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--studio-hairline);
  background: var(--studio-bg);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.22s var(--ease-apple);
}

.theater-btn:hover {
  background: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.08);
  transform: translateY(-2px);
}

.theater-btn.active {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #1d1d1f;
}

.t-num {
  font-size: 0.7rem;
  font-weight: 600;
  color: #0071e3;
}

.theater-btn.active .t-num {
  color: #6ac4ff;
}

.theater-btn strong {
  font-size: 0.94rem;
}

.theater-btn span:last-child {
  font-size: 0.77rem;
  line-height: 1.5;
  color: var(--studio-muted);
}

.theater-btn.active span:last-child {
  color: rgba(255, 255, 255, 0.75);
}

/* X-Ray Hidden Intelligence Panel */
.xray-panel {
  display: none;
}

.xray-panel.visible {
  display: block;
}

.xray-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
}

.xray-list {
  margin: 0;
  padding: 14px 16px 14px 32px;
  border-radius: 16px;
  background: #141416;
  color: #e5e5ea;
  font-size: 0.8rem;
  line-height: 1.72;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xray-list strong {
  color: #6ac4ff;
}

/* Three-Generation Brokerage Comparison */
.era-compare {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.era-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--studio-bg);
  font-size: 0.82rem;
  align-items: center;
}

.era-row.highlight {
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.22);
}

.era-name {
  font-weight: 600;
}

.era-row.highlight .era-name {
  color: #0071e3;
}

.era-desc {
  color: var(--studio-muted);
}

.era-row.highlight .era-desc {
  color: var(--studio-ink);
  font-weight: 500;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes breatheOrb {
  0%, 100% { transform: scale(1); opacity: 0.94; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes breatheRing {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 0.2; }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

@keyframes cardGlideUp {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sheetRise {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ==========================================================================
   LIVE PULSE BAR, BOUNDARY CHARTER & REAL DATA EVIDENCE SHEET
   ========================================================================== */
.live-pulse-bar {
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ios-bg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.69rem;
  color: var(--ios-muted);
  font-variant-numeric: tabular-nums;
}

.lp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  animation: pulseDot 2.2s ease-in-out infinite;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.boundary-btn {
  padding: 12px 13px;
  border-radius: 15px;
  border: 1px solid var(--studio-hairline);
  background: var(--studio-bg);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s var(--ease-apple);
}

.boundary-btn strong {
  font-size: 0.82rem;
}

.boundary-btn span {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--studio-muted);
}

.boundary-btn:hover:not(.locked) {
  border-color: #0071e3;
  background: #ffffff;
}

.boundary-btn.active {
  background: rgba(0, 113, 227, 0.09);
  border-color: #0071e3;
}

.boundary-btn.active strong {
  color: #0071e3;
}

.boundary-btn.locked {
  cursor: not-allowed;
  opacity: 0.62;
  border-style: dashed;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.metric-chip {
  padding: 8px 6px;
  border-radius: 12px;
  background: var(--ios-bg);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.metric-k {
  display: block;
  font-size: 0.65rem;
  color: var(--ios-muted);
}

.metric-v {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 600;
}

.ann-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ann-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ios-bg);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.16s ease;
}

.ann-link:hover {
  opacity: 0.82;
}

.ann-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--ios-muted);
  margin-bottom: 3px;
}

.ann-title {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ios-ink);
}

.faceid-box {
  padding: 14px;
  border-radius: 16px;
  background: var(--accent-calm-soft);
  border: 1px solid rgba(0, 113, 227, 0.25);
  font-size: 0.78rem;
  line-height: 1.6;
}

.faceid-box strong {
  color: var(--accent-calm);
}

/* ==========================================================================
   MOBILE NATIVE FULL-SCREEN MODE
   ========================================================================== */
@media (max-width: 980px) {
  .studio-topbar,
  .director-panel {
    display: none;
  }

  .studio-stage {
    padding: 0;
    grid-template-columns: 1fr;
  }

  .iphone-column {
    position: static;
    width: 100%;
  }

  .iphone-chassis {
    width: 100%;
    height: 100dvh;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .iphone-screen {
    border-radius: 0;
  }
}
