:root {
  --bg-void: #061024;
  --bg-deep: #08152e;
  --bg-card: #0d1f40;
  --bg-card-elevated: #122952;
  --bg-input: rgba(6, 16, 36, 0.78);
  --border-subtle: rgba(125, 179, 255, 0.16);
  --border-bright: rgba(147, 197, 253, 0.38);

  --text-primary: #f2f6ff;
  --text-secondary: #a2badf;
  --text-muted: #7693bf;

  --cta-bg: #1e4ed8;
  --cta-hover: #2c62f5;
  --cta-shadow: rgba(30, 78, 216, 0.45);

  --accent-purple: #a855f7;
  --accent-cyan: #38bdf8;
  --accent-amber: #f59e0b;
  --accent-emerald: #22c55e;
  --accent-rose: #f43f5e;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sign: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-primary);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  background: radial-gradient(ellipse 120% 45% at 50% 0%, #0d224f 0%, var(--bg-void) 55%) no-repeat, var(--bg-void);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cta-bg);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

/* ======================== HEADER ======================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 24px;
  transition: background-color 220ms var(--ease-out), backdrop-filter 220ms var(--ease-out), border-color 220ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(6, 16, 36, 0.84);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  min-height: 40px;
}

.brand-gem {
  display: inline-flex;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.55));
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.back-home-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(13, 31, 64, 0.72);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-sign);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.back-home-pill:hover {
  color: #fff;
  border-color: var(--border-bright);
  background: rgba(30, 78, 216, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.util-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: rgba(13, 31, 64, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sign);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms var(--ease-out);
}

.util-btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-bright);
  background: rgba(30, 78, 216, 0.35);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}

.status-dot.is-active {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(13, 31, 64, 0.8);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.lang-btn {
  min-width: 36px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sign);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background-color 180ms ease, color 180ms ease;
}

.lang-btn.is-active {
  background: var(--cta-bg);
  color: #fff;
  box-shadow: 0 2px 10px rgba(30, 78, 216, 0.45);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: rgba(13, 31, 64, 0.8);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: transform 180ms var(--ease-out), background-color 180ms ease, border-color 180ms ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(30, 78, 216, 0.42);
  border-color: var(--border-bright);
}

/* ======================== HERO BANNER ======================== */
.hero-banner {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 56px;
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.hero-sky-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 16, 36, 0.68) 0%,
    rgba(6, 16, 36, 0.48) 45%,
    rgba(6, 16, 36, 0.74) 100%
  );
}

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-void) 96%);
}

.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(6, 16, 36, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
  font-family: var(--font-sign);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-title {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 6px 26px rgba(6, 16, 36, 0.85), 0 0 36px rgba(56, 189, 248, 0.22);
}

.hero-tagline {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(0.95rem, 1.5vw, 1.06rem);
  color: #dbeafe;
  text-shadow: 0 2px 12px rgba(6, 16, 36, 0.9);
}

.hero-meta-strip {
  margin-top: 18px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero-fact {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(6, 16, 36, 0.7);
  border: 1px solid rgba(147, 197, 253, 0.28);
  backdrop-filter: blur(6px);
  font-family: var(--font-sign);
  font-size: 0.75rem;
  font-weight: 600;
  color: #dbeafe;
}

/* ======================== WORKSPACE & WORKFLOW NAV ======================== */
.workspace {
  max-width: 1180px;
  margin: -18px auto 0;
  padding: 0 20px 80px;
  position: relative;
  z-index: 2;
}

.workflow-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: rgba(13, 31, 64, 0.82);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 38px rgba(3, 8, 20, 0.65);
  backdrop-filter: blur(12px);
}

.step-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out), color 180ms ease;
}

.step-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.step-tab.is-active {
  background: linear-gradient(150deg, rgba(18, 41, 82, 0.96), rgba(13, 31, 64, 0.92));
  border-color: rgba(147, 197, 253, 0.4);
  color: #fff;
  box-shadow: 0 10px 24px rgba(4, 10, 24, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.step-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sign);
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.step-badge--purple { background: linear-gradient(135deg, #c084fc, #7e22ce); }
.step-badge--cyan   { background: linear-gradient(135deg, #38bdf8, #1d4ed8); }
.step-badge--amber  { background: linear-gradient(135deg, #fbbf24, #d97706); }

.step-label-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.step-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sign);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: inherit;
}

.step-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-tab.is-active .step-sub {
  color: var(--text-secondary);
}

.count-pill {
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
  font-size: 0.72rem;
}

.live-pill {
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #86efac;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

/* ======================== STUDIO CARDS ======================== */
.studio-card {
  background: linear-gradient(170deg, rgba(16, 37, 76, 0.92) 0%, rgba(11, 26, 56, 0.96) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 44px rgba(3, 8, 20, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.tab-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tab-panel[hidden] {
  display: none;
}

.card-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.card-head-row.compact {
  align-items: center;
  margin-bottom: 16px;
}

.card-eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--font-sign);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #93c5fd;
}

.amber-eyebrow {
  color: #fcd34d;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: #fff;
}

.title-with-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.mini-badge--cyan { background: linear-gradient(135deg, #38bdf8, #1d4ed8); }
.mini-badge--purple { background: linear-gradient(135deg, #c084fc, #7e22ce); }

.byok-pill {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-family: var(--font-sign);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ======================== SOURCE TABS & INPUT ======================== */
.source-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.source-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  line-height: 1.25;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(6, 16, 36, 0.6);
  color: var(--text-secondary);
  font-family: var(--font-sign);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 180ms ease;
}

.source-tab:hover {
  border-color: var(--border-bright);
  color: #fff;
}

.source-tab.is-active {
  background: linear-gradient(180deg, #2563eb 0%, #1e4ed8 100%);
  border-color: rgba(147, 197, 253, 0.65);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 78, 216, 0.42);
}

.input-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.prefixed-input {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.prefixed-input:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.input-prefix {
  padding: 0 14px;
  font-family: var(--font-sign);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #7dd3fc;
  border-right: 1px solid var(--border-subtle);
  height: 100%;
  display: inline-flex;
  align-items: center;
  background: rgba(13, 31, 64, 0.55);
}

.prefixed-input input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.94rem;
  outline: none;
}

.prefixed-input input::placeholder,
.studio-input::placeholder,
.studio-textarea::placeholder,
.secret-input-wrap input::placeholder {
  color: var(--text-muted);
}

/* Primary, Secondary, Ghost Buttons */
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background: linear-gradient(180deg, #2563eb 0%, #1e4ed8 100%);
  color: #fff;
  font-family: var(--font-sign);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 22px var(--cta-shadow);
  transition: transform 180ms var(--ease-out), filter 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}

.primary-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 26px rgba(44, 98, 245, 0.55);
}

.primary-cta.compact-cta {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.8rem;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid var(--border-bright);
  background: rgba(18, 41, 82, 0.85);
  color: #e0f2fe;
  font-family: var(--font-sign);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 180ms ease, transform 180ms var(--ease-out);
}

.secondary-btn:hover:not(:disabled) {
  background: rgba(30, 78, 216, 0.42);
  transform: translateY(-1px);
}

.ghost-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(6, 16, 36, 0.65);
  color: var(--text-secondary);
  font-family: var(--font-sign);
  font-size: 0.77rem;
  font-weight: 600;
  transition: all 160ms ease;
}

.ghost-chip:hover:not(:disabled) {
  color: #fff;
  border-color: var(--border-bright);
  background: rgba(18, 41, 82, 0.85);
}

.danger-ghost:hover:not(:disabled) {
  border-color: rgba(244, 63, 94, 0.55);
  color: #fda4af;
  background: rgba(136, 19, 55, 0.35);
}

.url-preview-chip {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(6, 16, 36, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.url-preview-chip[hidden] {
  display: none;
}

.url-preview-chip img {
  width: 72px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.url-preview-chip .preview-meta {
  min-width: 0;
}

.url-preview-chip strong {
  display: block;
  font-size: 0.86rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url-preview-chip span {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* Dropzone */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 32px 20px;
  border-radius: 16px;
  border: 1.5px dashed rgba(125, 179, 255, 0.35);
  background: rgba(6, 16, 36, 0.5);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--accent-cyan);
  background: rgba(18, 41, 82, 0.55);
}

.dropzone-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

.dropzone-title {
  margin: 4px 0 0;
  font-weight: 600;
  color: #fff;
}

.dropzone-sub {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 480px;
}

.uploaded-file-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(6, 16, 36, 0.78);
  border: 1px solid rgba(74, 222, 128, 0.38);
}

.uploaded-file-bar[hidden] {
  display: none;
}

.uploaded-file-meta strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
}

.uploaded-file-meta span {
  font-size: 0.78rem;
  color: #86efac;
  font-family: var(--font-sign);
}

.uploaded-file-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ======================== TWO-COLUMN SETTINGS ======================== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(6, 16, 36, 0.72);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.segmented-control.compact-seg {
  margin-bottom: 10px;
}

.seg-btn {
  min-height: 38px;
  padding: 6px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sign);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 160ms ease;
}

.seg-btn.is-active {
  background: var(--cta-bg);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 78, 216, 0.4);
}

.field-block {
  margin-bottom: 14px;
}

.field-block:last-child {
  margin-bottom: 0;
}

.field-block > label,
.label-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #dbeafe;
}

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

.label-row label {
  margin-bottom: 0;
}

.ext-link {
  color: #7dd3fc;
  font-family: var(--font-sign);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.ext-link:hover {
  text-decoration: underline;
  color: #bae6fd;
}

.text-toggle-btn {
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-family: var(--font-sign);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.secret-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  overflow: hidden;
}

.secret-input-wrap:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.secret-input-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

.reveal-btn {
  border: 0;
  border-left: 1px solid var(--border-subtle);
  background: rgba(18, 41, 82, 0.65);
  color: #93c5fd;
  padding: 0 12px;
  min-height: 44px;
  font-family: var(--font-sign);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.studio-select,
.studio-input,
.studio-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  color: var(--text-primary);
  font-size: 0.88rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.studio-select {
  min-height: 44px;
  cursor: pointer;
}

.studio-select option {
  background: #08152e;
  color: #f2f6ff;
}

.studio-input {
  min-height: 44px;
}

.studio-textarea {
  resize: vertical;
  line-height: 1.5;
}

.mono-area {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.studio-select:focus,
.studio-input:focus,
.studio-textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.info-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(6, 16, 36, 0.56);
  border: 1px solid rgba(125, 179, 255, 0.16);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.info-callout svg {
  flex-shrink: 0;
  color: #7dd3fc;
  margin-top: 2px;
}

.info-callout p {
  margin: 0;
}

.info-callout code {
  background: rgba(18, 41, 82, 0.9);
  padding: 1px 6px;
  border-radius: 6px;
  color: #bae6fd;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* Choice Pills */
.pill-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-choice-row.inline {
  gap: 6px;
}

.choice-pill {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(6, 16, 36, 0.65);
  color: var(--text-secondary);
  font-family: var(--font-sign);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 160ms ease;
}

.choice-pill:hover {
  border-color: var(--border-bright);
  color: #fff;
}

.choice-pill.is-active {
  background: rgba(37, 99, 235, 0.28);
  border-color: #60a5fa;
  color: #fff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
}

.slider-badge {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: #e9d5ff;
  font-family: var(--font-sign);
  font-size: 0.74rem;
  font-weight: 700;
}

.slider-track-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-sign);
  font-size: 0.78rem;
}

input[type="range"] {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

.field-hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Lower Full-Width Card */
.lower-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: #fff;
}

.radio-inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.radio-card {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(6, 16, 36, 0.6);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--text-primary);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.radio-card:has(input:checked) {
  border-color: #60a5fa;
  background: rgba(30, 78, 216, 0.22);
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-visual {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-card:has(input:checked) .radio-visual {
  border-color: #38bdf8;
}

.radio-card:has(input:checked) .radio-visual::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
}

.sub-detail-box,
.range-inputs-box {
  padding: 14px;
  border-radius: 14px;
  background: rgba(6, 16, 36, 0.45);
  border: 1px solid rgba(125, 179, 255, 0.12);
}

.lang-pref-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-label {
  font-family: var(--font-sign);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.custom-sub-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.file-status-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-divider {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 18px 0;
}

.range-input-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  max-width: 520px;
}

.range-input-pair.compact-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  margin-bottom: 14px;
}

.range-sep {
  font-family: var(--font-sign);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Status Banner */
.status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(13, 31, 64, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 30px rgba(3, 8, 20, 0.55);
}

.status-banner[hidden] {
  display: none;
}

.status-banner.is-error {
  border-color: rgba(244, 63, 94, 0.55);
  background: rgba(65, 16, 36, 0.85);
}

.status-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(125, 211, 252, 0.25);
  border-top-color: #38bdf8;
  animation: spin 800ms linear infinite;
  flex-shrink: 0;
}

.status-banner.is-error .status-spinner {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-copy {
  flex: 1;
  min-width: 0;
}

.status-copy strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
}

.status-copy p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ======================== TAB 02: HISTORY CLIPS ======================== */
.empty-state-card {
  text-align: center;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-state-card[hidden] {
  display: none;
}

.empty-orb {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(30, 78, 216, 0.35));
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #7dd3fc;
  margin-bottom: 6px;
}

.empty-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.empty-desc {
  margin: 0;
  max-width: 480px;
  color: var(--text-secondary);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.session-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
}

.session-picker-wrap {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.session-select-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.export-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.player-card {
  position: sticky;
  top: 84px;
  padding: 18px;
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #040b18;
  border: 1px solid var(--border-subtle);
}

.video-stage iframe,
.video-stage video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.stage-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.active-clip-bar {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 16, 36, 0.76);
  border: 1px solid rgba(56, 189, 248, 0.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.active-clip-bar[hidden] {
  display: none;
}

.active-clip-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.active-clip-meta strong {
  font-size: 0.9rem;
  color: #fff;
}

.active-clip-btns {
  display: flex;
  gap: 8px;
}

.session-summary-strip {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-tag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(6, 16, 36, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sign);
  font-size: 0.74rem;
}

.clips-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clips-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
}

.clips-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clip-card {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(16, 37, 76, 0.92), rgba(10, 23, 49, 0.96));
  border: 1px solid var(--border-subtle);
  transition: border-color 180ms ease, transform 180ms var(--ease-out);
}

.clip-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.clip-card.is-playing {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.22);
}

.clip-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.clip-rank-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.rank-badge {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(192, 132, 252, 0.42);
  color: #e9d5ff;
  font-family: var(--font-sign);
  font-size: 0.72rem;
  font-weight: 700;
}

.time-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
}

.score-pill {
  padding: 5px 11px;
  border-radius: 11px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.42);
  color: #86efac;
  font-family: var(--font-sign);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.score-pill.mid {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.42);
  color: #fde68a;
}

.clip-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: #fff;
}

.clip-reason {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.clip-quote {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(6, 16, 36, 0.65);
  border-left: 3px solid #38bdf8;
  font-size: 0.82rem;
  color: #dbeafe;
}

.clip-caption-box {
  margin-bottom: 12px;
  font-size: 0.79rem;
  color: #93c5fd;
}

.clip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ======================== TAB 03: AUTO CLIPPER STUDIO ======================== */
.mode-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.mode-header-copy {
  flex: 1 1 420px;
}

.studio-mode-switch {
  margin-bottom: 0;
  min-width: 340px;
}

.studio-browser-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.studio-browser-grid[hidden] {
  display: none;
}

.canvas-stage-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.canvas-viewport {
  position: relative;
  width: 100%;
  min-height: 440px;
  max-height: 540px;
  border-radius: 16px;
  background: #030916;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#clipCanvas {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 10px;
}

.canvas-empty-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(6, 16, 36, 0.88);
  color: var(--text-secondary);
}

.canvas-empty-overlay[hidden] {
  display: none;
}

.canvas-empty-overlay p {
  margin: 0;
  max-width: 320px;
  font-size: 0.88rem;
}

.render-progress-bar {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 16, 36, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.render-progress-bar[hidden] {
  display: none;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.progress-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  transition: width 120ms linear;
}

.canvas-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.rendered-download-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(20, 83, 45, 0.32);
  border: 1px solid rgba(74, 222, 128, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rendered-download-box[hidden] {
  display: none;
}

.toggle-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.toggle-inline input {
  width: 17px;
  height: 17px;
  accent-color: #38bdf8;
}

/* Script Studio Pane */
.script-studio-card[hidden] {
  display: none;
}

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

.script-clips-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.script-clip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(6, 16, 36, 0.6);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.script-clip-item:has(input:checked) {
  border-color: #60a5fa;
  background: rgba(30, 78, 216, 0.22);
}

.script-clip-item input {
  margin-top: 3px;
  accent-color: #38bdf8;
}

.script-clip-item strong {
  display: block;
  font-size: 0.84rem;
  color: #fff;
}

.script-clip-item span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.script-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.code-preview {
  margin: 0 0 14px;
  padding: 16px;
  border-radius: 14px;
  background: #030916;
  border: 1px solid var(--border-subtle);
  color: #bae6fd;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-x: auto;
  max-height: 300px;
}

/* ======================== MODAL ======================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 8, 20, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 22px;
  background: linear-gradient(175deg, #11264f 0%, #091733 100%);
  border: 1px solid var(--border-bright);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
  padding: 24px;
}

.modal-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 120px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.34), transparent 72%);
  pointer-events: none;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.modal-level-pill {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-family: var(--font-sign);
  font-size: 0.72rem;
  font-weight: 700;
}

.modal-level-pill.is-active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(74, 222, 128, 0.45);
  color: #86efac;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(6, 16, 36, 0.65);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookies-upload-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-steps {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.83rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.modal-footer-right {
  display: flex;
  gap: 8px;
}

/* ======================== FOOTER ======================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 13, 30, 0.9);
  padding: 32px 24px 24px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-sign);
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-link:hover {
  color: #7dd3fc;
}

.footer-bottom {
  max-width: 1180px;
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(125, 179, 255, 0.1);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
}

/* ======================== TOAST ======================== */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(13, 31, 64, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #fff;
  font-size: 0.84rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  animation: toastIn 220ms var(--ease-out) both;
}

.toast.is-error {
  border-color: rgba(244, 63, 94, 0.6);
  background: rgba(76, 16, 38, 0.96);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 980px) {
  .settings-grid,
  .history-layout,
  .studio-browser-grid {
    grid-template-columns: 1fr;
  }

  .player-card {
    position: static;
  }

  .studio-mode-switch {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding: 10px 14px;
  }

  .back-home-pill span {
    display: none;
  }

  .back-home-pill {
    padding: 6px 9px;
  }

  .util-btn span[data-i18n] {
    display: none;
  }

  .util-btn {
    padding: 0 10px;
  }

  .hide-xs {
    display: none;
  }

  .hero-banner {
    min-height: 290px;
    padding: 84px 16px 44px;
  }

  .workspace {
    padding: 0 14px 64px;
  }

  .workflow-nav {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .source-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .input-action-row {
    grid-template-columns: 1fr;
  }

  .studio-card {
    padding: 18px 16px;
  }

  .range-input-pair {
    grid-template-columns: 1fr;
  }

  .range-sep {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
