/* PopMind — Midnight Glass Studio (Obsidian Canvas · Reactive Aura · Spatial Tactility) */

:root {
  --bg: #080a10;
  --bg-elevated: rgba(17, 21, 31, 0.74);
  --bg-card: rgba(25, 30, 44, 0.62);
  --bg-card-hover: rgba(34, 41, 59, 0.78);
  --bg-inset: rgba(8, 10, 16, 0.62);

  --ink: #f8fafc;
  --ink-secondary: #94a3b8;
  --ink-muted: #64748b;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07);

  --gentle: #2dd4bf;
  --gentle-strong: #14b8a6;
  --gentle-soft: rgba(45, 212, 191, 0.14);
  --gentle-border: rgba(45, 212, 191, 0.38);

  --hardcore: #fb923c;
  --hardcore-strong: #f97316;
  --hardcore-soft: rgba(251, 146, 60, 0.14);
  --hardcore-border: rgba(251, 146, 60, 0.42);

  --accent-active: var(--gentle);
  --accent-active-soft: var(--gentle-soft);
  --accent-active-border: var(--gentle-border);

  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-panel: 0 18px 48px rgba(0, 0, 0, 0.42), var(--inner-highlight);
  --shadow-modal: 0 32px 90px rgba(0, 0, 0, 0.72), var(--inner-highlight);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

/* Reactive mode palette shift when toggling between Gentle and Hardcore */
html[data-active-mode="hardcore"] {
  --accent-active: var(--hardcore);
  --accent-active-soft: var(--hardcore-soft);
  --accent-active-border: var(--hardcore-border);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==================== Ambient Reactive Backdrop ==================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.42;
  transition: background 0.6s ease, transform 0.6s ease;
}

.ambient-orb.orb-1 {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.34), transparent 70%);
}

html[data-active-mode="hardcore"] .ambient-orb.orb-1 {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.36), transparent 70%);
}

.ambient-orb.orb-2 {
  width: 540px;
  height: 540px;
  bottom: -220px;
  right: -120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 70%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 35%, transparent 100%);
}

/* ==================== Top Glass Header ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 26px;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2dd4bf 0%, #6366f1 100%);
  color: #06080d;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.32);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

html[data-active-mode="hardcore"] .brand-mark {
  background: linear-gradient(135deg, #fb923c 0%, #f43f5e 100%);
  box-shadow: 0 0 24px rgba(251, 146, 60, 0.34);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-title h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.brand-cn {
  font-weight: 600;
  color: var(--ink-secondary);
  font-size: 14px;
  margin-left: 4px;
}

.contest-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.32);
}

.brand-sub {
  margin: 1px 0 0;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-muted);
}

.status-pill[data-state="running-gentle"] {
  background: var(--gentle-soft);
  border-color: var(--gentle-border);
  color: #99f6e4;
}

.status-pill[data-state="running-gentle"] .status-dot {
  background: var(--gentle);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.25);
}

.status-pill[data-state="running-hardcore"] {
  background: var(--hardcore-soft);
  border-color: var(--hardcore-border);
  color: #fed7aa;
}

.status-pill[data-state="running-hardcore"] .status-dot {
  background: var(--hardcore);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.25);
}

.countdown-badge {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 12.5px;
  transition: transform 0.14s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--ink);
}

.btn-glass:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

.btn-glow {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  color: #090b10;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.btn-glow:hover:not(:disabled) {
  box-shadow: 0 8px 26px rgba(249, 115, 22, 0.45);
  filter: brightness(1.06);
}

.btn-primary-cta {
  background: linear-gradient(135deg, #2dd4bf 0%, #0ea5e9 100%);
  color: #06090f;
  font-weight: 800;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  box-shadow: 0 10px 28px rgba(45, 212, 191, 0.26);
}

html[data-active-mode="hardcore"] .btn-primary-cta {
  background: linear-gradient(135deg, #fb923c 0%, #f43f5e 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.28);
}

.btn-primary-cta:hover:not(:disabled) {
  filter: brightness(1.07);
}

.btn-stop-cta {
  background: rgba(251, 113, 133, 0.16);
  border-color: rgba(251, 113, 133, 0.42);
  color: #fecdd3;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13.5px;
}

.btn-stop-cta:hover:not(:disabled) {
  background: rgba(251, 113, 133, 0.24);
}

.btn-gentle-ghost {
  background: var(--gentle-soft);
  border-color: var(--gentle-border);
  color: #99f6e4;
}

.btn-gentle-ghost:hover {
  background: rgba(45, 212, 191, 0.22);
}

.btn-hardcore-ghost {
  background: var(--hardcore-soft);
  border-color: var(--hardcore-border);
  color: #fed7aa;
}

.btn-hardcore-ghost:hover {
  background: rgba(251, 146, 60, 0.22);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.link-action-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-active);
}

.link-action-btn:hover {
  text-decoration: underline;
}

/* ==================== 3-Column Studio Grid ==================== */
.studio-grid {
  position: relative;
  z-index: 1;
  max-width: 1460px;
  margin: 0 auto;
  padding: 16px 24px 22px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}

.glass-panel {
  background: var(--bg-elevated);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-panel);
}

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

.panel-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

/* ==================== Left Config Panel ==================== */
.config-block {
  margin-bottom: 14px;
}

.block-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.block-label-row h3,
.block-label-row label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
}

.hint-text {
  font-size: 11px;
  color: var(--ink-muted);
}

.mode-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mode-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-card:has(input:focus-visible) {
  outline: 2px solid var(--accent-active);
  outline-offset: 2px;
}

.mode-card:hover {
  background: var(--bg-card-hover);
}

.mode-card.is-selected[data-mode="gentle"] {
  border-color: var(--gentle-border);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.14), rgba(15, 23, 42, 0.72));
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.14), 0 8px 24px rgba(13, 148, 136, 0.16);
}

.mode-card.is-selected[data-mode="hardcore"] {
  border-color: var(--hardcore-border);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.14), rgba(15, 23, 42, 0.72));
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.14), 0 8px 24px rgba(234, 88, 12, 0.18);
}

.mode-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.mode-icon-box.gentle {
  background: var(--gentle-soft);
  color: var(--gentle);
}

.mode-icon-box.hardcore {
  background: var(--hardcore-soft);
  color: var(--hardcore);
}

.mode-content {
  flex: 1;
  min-width: 0;
}

.mode-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.mode-card-top strong {
  font-size: 13px;
  color: var(--ink);
}

.mode-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.mode-pill.gentle {
  background: rgba(45, 212, 191, 0.18);
  color: #99f6e4;
}

.mode-pill.hardcore {
  background: rgba(251, 146, 60, 0.2);
  color: #fed7aa;
}

.mode-desc {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.segmented-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.seg-btn {
  border: 0;
  background: transparent;
  padding: 5px 6px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.seg-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.select-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-inset);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.deck-card {
  text-align: left;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}

.deck-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.deck-card.is-selected {
  border-color: var(--accent-active-border);
  background: var(--accent-active-soft);
}

.deck-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.deck-card-icon {
  color: var(--accent-active);
  display: inline-flex;
}

.deck-card-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-secondary);
}

.deck-card-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.deck-card-meta {
  display: block;
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Clean pill toggles replacing raw native checkboxes */
.pill-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.pill-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-inset);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-toggle:has(input:focus-visible) {
  outline: 2px solid var(--accent-active);
  outline-offset: 1px;
}

.pill-toggle:has(input:checked) {
  border-color: var(--accent-active-border);
  background: var(--accent-active-soft);
  color: var(--ink);
}

/* Custom sleek toggle switch */
.daemon-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.switch-label {
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.custom-switch {
  position: relative;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
}

.custom-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch-track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--border-strong);
  transition: background-color 0.2s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.custom-switch input:checked + .switch-track {
  background: var(--accent-active);
  border-color: transparent;
}

.custom-switch input:checked + .switch-track::after {
  transform: translateX(14px);
}

/* ==================== Center Hero Stage ==================== */
.playground-panel {
  min-height: 700px;
  display: flex;
  flex-direction: column;
}

.playground-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.playground-tabs {
  display: inline-flex;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.tab-btn.is-active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--ink);
}

.quick-demo-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scene-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Titanium Phone Showcase */
.phone-stage {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  flex: 1;
}

.phone-bezel {
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(145deg, #3f4454 0%, #1c1f28 45%, #303543 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

.phone-screen {
  border-radius: 34px;
  background: #07090e;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  background: #07090e;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-secondary);
}

.phone-notch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
}

.notch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-active);
  box-shadow: 0 0 8px var(--accent-active);
}

.video-viewport {
  position: relative;
}

.video-card {
  position: relative;
  height: 468px;
  padding: 14px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.45s ease;
}

.video-progress-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.video-progress-fill {
  height: 100%;
  width: 35%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-active), #fff);
  transition: width 0.3s ease;
}

.video-visual {
  flex: 1;
  display: grid;
  place-items: center;
}

.feed-svg-art {
  width: 196px;
  height: 168px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
}

.art-bob {
  animation: gentleFloat 3.2s ease-in-out infinite;
  transform-origin: center;
}

.art-steam {
  animation: steamRise 2.4s ease-in-out infinite;
}

.art-steam.s2 { animation-delay: 0.45s; }
.art-steam.s3 { animation-delay: 0.9s; }

.eq-bar {
  animation: eqPulse 1.2s ease-in-out infinite;
  transform-origin: bottom;
}

.eq-bar.b2 { animation-delay: 0.2s; }
.eq-bar.b3 { animation-delay: 0.4s; }
.eq-bar.b4 { animation-delay: 0.15s; }
.eq-bar.b5 { animation-delay: 0.35s; }

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes steamRise {
  0%, 100% { transform: translateY(4px); opacity: 0.45; }
  50% { transform: translateY(-5px); opacity: 1; }
}

@keyframes eqPulse {
  0%, 100% { transform: scaleY(0.62); }
  50% { transform: scaleY(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .art-bob,
  .art-steam,
  .eq-bar {
    animation: none;
  }
}

.video-overlay-meta {
  padding-right: 54px;
}

.video-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  margin-bottom: 8px;
}

.video-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}

.video-body {
  margin: 0 0 9px;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.8);
  line-height: 1.5;
}

.video-author {
  font-size: 11px;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.56);
}

.video-side-actions {
  position: absolute;
  right: 12px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  width: 44px;
  padding: 8px 4px;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  transition: transform 0.12s ease, background-color 0.16s ease;
}

.video-action-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-1px);
}

#video-like-btn svg {
  color: #fb7185;
}

.action-count {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.phone-bottom-bar {
  padding: 10px 12px 12px;
  background: #07090e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.phone-pill-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.phone-pill-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.phone-pill-btn.accent {
  background: #f8fafc;
  color: #090b10;
  border-color: transparent;
}

.scroll-counter {
  font-size: 11px;
  color: var(--ink-muted);
}

.guilt-delta {
  color: var(--hardcore);
  font-weight: 700;
}

/* Side Guide Stack in Center Stage */
.stage-side-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--inner-highlight);
}

.info-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-active);
  text-transform: uppercase;
}

.info-card h4 {
  margin: 4px 0 12px;
  font-size: 15px;
  font-weight: 800;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-active);
  background: var(--accent-active-soft);
  border: 1px solid var(--accent-active-border);
  padding: 2px 7px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-list strong {
  display: block;
  font-size: 12.5px;
  margin-bottom: 2px;
}

.step-list p {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.deck-spotlight {
  background: linear-gradient(135deg, var(--accent-active-soft), rgba(15, 23, 42, 0.72));
  border-color: var(--accent-active-border);
}

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

.live-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
}

.spotlight-name {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.spotlight-desc {
  margin: 0;
  font-size: 12px;
  color: var(--ink-secondary);
}

/* Scene 2: Luminous Orb Garden */
.scene-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.hud-sub {
  margin-left: 10px;
  font-size: 12px;
  color: var(--ink-muted);
}

.score-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-inset);
  border: 1px solid var(--border-strong);
}

.bubble-arena {
  position: relative;
  flex: 1;
  min-height: 510px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 25% 25%, rgba(45, 212, 191, 0.16), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(129, 140, 248, 0.18), transparent 50%),
    #070910;
  border: 1px solid var(--border);
  overflow: hidden;
}

.zen-bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset -8px -10px 18px rgba(0, 0, 0, 0.35),
    inset 6px 6px 14px rgba(255, 255, 255, 0.38),
    0 0 28px var(--orb-glow, rgba(45, 212, 191, 0.35));
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease;
  user-select: none;
}

.zen-bubble::after {
  content: "";
  position: absolute;
  top: 18%;
  left: 22%;
  width: 26%;
  height: 16%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: rotate(-28deg);
}

.zen-bubble:hover {
  transform: scale(1.1);
}

.zen-bubble.popping {
  transform: scale(1.55);
  opacity: 0;
}

/* Scene 3: Dark Forum */
.forum-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.forum-post {
  padding: 15px 17px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.forum-post:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.forum-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.forum-board {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-secondary);
  font-weight: 700;
}

.forum-post h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.forum-post p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.forum-foot {
  display: flex;
  gap: 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-muted);
}

/* ==================== Right Telemetry Panel (Circular Guilt Ring) ==================== */
.guilt-ring-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 12px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.guilt-ring-card[data-level="calm"] {
  border-color: rgba(52, 211, 153, 0.28);
  background: radial-gradient(circle at 20% 50%, rgba(52, 211, 153, 0.12), rgba(20, 24, 34, 0.72));
}

.guilt-ring-card[data-level="mid"] {
  border-color: rgba(251, 191, 36, 0.34);
  background: radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.14), rgba(20, 24, 34, 0.72));
}

.guilt-ring-card[data-level="high"] {
  border-color: rgba(251, 113, 133, 0.42);
  background: radial-gradient(circle at 20% 50%, rgba(251, 113, 133, 0.16), rgba(20, 24, 34, 0.72));
}

.ring-layout {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ring-wrapper {
  position: relative;
  width: 104px;
  height: 104px;
  flex-shrink: 0;
}

.guilt-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 9;
}

.ring-progress {
  fill: none;
  stroke: url(#guiltGradCalm);
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.45));
}

.guilt-ring-card[data-level="mid"] .ring-progress {
  stroke: url(#guiltGradMid);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.45));
}

.guilt-ring-card[data-level="high"] .ring-progress {
  stroke: url(#guiltGradHigh);
  filter: drop-shadow(0 0 10px rgba(251, 113, 133, 0.55));
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.ring-value small {
  font-size: 12px;
  color: var(--ink-secondary);
}

.ring-label {
  margin-top: 3px;
  font-size: 10px;
  color: var(--ink-muted);
}

.ring-meta {
  min-width: 0;
}

.mood-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  margin-bottom: 6px;
}

.guilt-caption {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.metric-cell {
  text-align: center;
  padding: 9px 4px;
  border-radius: 12px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
}

.metric-cell strong {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.metric-cell span {
  display: block;
  font-size: 10px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.notebook-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.mini-tab {
  border: 0;
  background: transparent;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.mini-tab.is-active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--ink);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 2px;
}

.empty-state {
  padding: 26px 14px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  background: var(--bg-inset);
  color: var(--ink-muted);
}

.empty-state p {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.history-item {
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.history-item.is-wrong {
  border-color: rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.08);
}

.history-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.history-term {
  font-weight: 800;
  font-size: 13px;
}

.history-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.history-status.ok {
  background: var(--success-soft);
  color: #6ee7b7;
}

.history-status.miss {
  background: var(--danger-soft);
  color: #fda4af;
}

.history-meaning {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.history-actions {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.history-btn-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.history-btn-row .btn {
  white-space: nowrap;
}

.history-meta {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  min-width: 0;
}

/* ==================== TOP LAYER 1: Authentic Dynamic Island Popover ==================== */
.gentle-island {
  position: fixed;
  inset: 14px auto auto 50%;
  translate: -50% 0;
  margin: 0;
  width: min(500px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 26px;
  background: rgba(7, 9, 14, 0.94);
  backdrop-filter: blur(24px);
  color: #f8fafc;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(45, 212, 191, 0.12),
    0 0 36px rgba(45, 212, 191, 0.16);
  overflow: hidden;

  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  .gentle-island {
    transform: translateY(-20px) scale(0.95);
  }
}

.gentle-island:is(:popover-open, .\:popover-open):where(:not([data-closing])) {
  display: block;
  opacity: 1;

  @starting-style {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    transform: translateY(0) scale(1);

    @starting-style {
      transform: translateY(-20px) scale(0.95);
    }
  }
}

.gentle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(45, 212, 191, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gentle-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.island-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gentle);
  box-shadow: 0 0 10px var(--gentle);
}

.island-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #99f6e4;
}

.island-deck-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.gentle-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gentle-timer-label {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--ink-secondary);
}

.icon-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-secondary);
  display: grid;
  place-items: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.icon-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.gentle-body {
  padding: 15px 18px 17px;
}

.gentle-prompt-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.gentle-term {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.gentle-phonetic {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
}

.audio-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--gentle-border);
  background: var(--gentle-soft);
  color: #99f6e4;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.audio-chip-btn:hover {
  background: rgba(45, 212, 191, 0.24);
}

.audio-chip-btn.large {
  padding: 6px 12px;
  font-size: 12px;
}

.gentle-question {
  margin: 0 0 12px;
  font-size: 13px;
  color: #cbd5e1;
}

.gentle-interactive {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gentle-choice-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-weight: 700;
  font-size: 12.5px;
  text-align: center;
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.1s ease;
}

.gentle-choice-btn:hover:not(:disabled) {
  background: rgba(45, 212, 191, 0.16);
  border-color: var(--gentle-border);
}

.gentle-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.gentle-feedback.ok {
  background: var(--success-soft);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
}

.gentle-feedback.miss {
  background: var(--hardcore-soft);
  border: 1px solid var(--hardcore-border);
  color: #fed7aa;
}

/* ==================== TOP LAYER 2-4: Native Modal Dialogs ==================== */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(4, 6, 10, 0);
  backdrop-filter: blur(0px);
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(560px, calc(100vw - 24px));
  width: 100%;
  overflow: visible;
  color: var(--ink);
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog {
    transform: scale(0.93) translateY(12px);
  }
}

dialog[open]:where(:not([data-closing])) {
  display: block;
  opacity: 1;

  @starting-style {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    transform: scale(1) translateY(0);

    @starting-style {
      transform: scale(0.93) translateY(12px);
    }
  }

  &::backdrop {
    background-color: rgba(4, 6, 12, 0.78);
    backdrop-filter: blur(12px);

    @starting-style {
      background-color: rgba(4, 6, 12, 0);
      backdrop-filter: blur(0px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog,
  .gentle-island,
  dialog::backdrop {
    transition-duration: 0.1s;
  }
}

/* Modal Shells */
.hardcore-shell,
.report-shell {
  background: rgba(15, 19, 29, 0.94);
  backdrop-filter: blur(26px);
  border-radius: 24px;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  border: 1px solid var(--border-strong);
}

.hardcore-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 20px;
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.16), rgba(244, 63, 94, 0.1));
  border-bottom: 1px solid var(--hardcore-border);
  flex-wrap: wrap;
}

.hardcore-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #fdba74;
}

.hardcore-deck-badge,
.hardcore-type-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #e2e8f0;
}

.guilt-chip {
  font-size: 11px;
  font-weight: 700;
  color: #6ee7b7;
  background: var(--success-soft);
  border: 1px solid rgba(52, 211, 153, 0.32);
  padding: 3px 9px;
  border-radius: 999px;
}

.hardcore-main {
  padding: 20px 22px 16px;
}

.hardcore-intro {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.hardcore-prompt-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.hardcore-term-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hardcore-term {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.hardcore-sub {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.hardcore-example {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.hardcore-interactive {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hc-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.hc-option-btn {
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.hc-option-btn:hover:not(:disabled) {
  border-color: var(--hardcore-border);
  background: var(--bg-card-hover);
}

.hc-option-btn.is-correct {
  border-color: var(--success);
  background: var(--success-soft);
  color: #a7f3d0;
}

.hc-option-btn.is-wrong {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: #fecdd3;
}

.spelling-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spelling-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.spelling-input-row {
  display: flex;
  gap: 8px;
}

.spelling-input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-inset);
  color: #fff;
  font-size: 16px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.spelling-input:focus {
  outline: 2px solid var(--hardcore);
  outline-offset: 1px;
}

.spelling-hint-line {
  font-size: 12px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.hardcore-review {
  margin-top: 12px;
  padding: 15px 16px;
  border-radius: 15px;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid var(--hardcore-border);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
  color: #fdba74;
}

.review-countdown {
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.22);
}

.review-answer {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.review-mnemonic {
  margin: 0 0 12px;
  font-size: 12px;
  color: #fed7aa;
}

.hardcore-success {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 15px;
  background: var(--success-soft);
  border: 1px solid rgba(52, 211, 153, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
}

.success-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.22);
  color: #6ee7b7;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.success-copy strong {
  display: block;
  color: #a7f3d0;
  font-size: 14px;
}

.success-copy p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6ee7b7;
}

.hardcore-success .btn {
  margin-left: auto;
  flex-shrink: 0;
}

.hardcore-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 20px;
  background: rgba(8, 10, 16, 0.55);
  border-top: 1px solid var(--border);
}

.esc-hint {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #fdba74;
  visibility: hidden;
}

.esc-hint.is-visible {
  visibility: visible;
}

.btn-link-muted {
  border: 0;
  background: transparent;
  font-size: 11.5px;
  color: var(--ink-muted);
  text-decoration: underline;
  flex-shrink: 0;
}

.btn-link-muted:hover {
  color: var(--danger);
}

/* Report & Import Dialogs */
.report-shell {
  padding: 22px;
}

.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.report-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-active);
  letter-spacing: 0.08em;
}

.report-header h2 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 800;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.report-stat {
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  text-align: center;
}

.report-stat span {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
}

.report-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-family: var(--font-mono);
}

.report-words-box {
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.report-words-box h3 {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.rep-words-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 170px;
  overflow-y: auto;
}

.rep-word-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--success-soft);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.rep-word-tag.miss {
  background: var(--danger-soft);
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.35);
}

.rep-empty {
  font-size: 12px;
  color: var(--ink-muted);
}

.report-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Custom Note Form in Modal */
.custom-note-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-note-label {
  font-size: 12px;
  color: var(--ink-secondary);
}

.custom-note-label code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

.custom-note-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  background: var(--bg-inset);
  color: var(--ink);
}

.custom-note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.custom-note-tip {
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* ==================== Responsive ==================== */
@media (max-width: 1220px) {
  .studio-grid {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .telemetry-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .phone-stage {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .report-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
