:root {
  color-scheme: light;
  --panel: #ffffff;
  --panel-soft: #f7f9fc;
  --line: #e7edf5;
  --text: #111827;
  --muted: #667085;
  --blue: #3182f6;
  --blue-dark: #1b64da;
  --stage-line: rgba(49, 130, 246, 0.75);
  --grid-font-size: 30px;
  --landing-scale: 1;
  /* 라이브(카메라/화면공유) 사이드 패널 폭 — 영상 영역의 right와 자막 패널 width가 같은 값을 공유해 viewport 변화에 함께 반응 */
  --live-side-panel-width: clamp(380px, 26vw, 560px);
}

@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("/static/vendor/pretendard/PretendardVariable.woff2") format("woff2-variations");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Inter, "Segoe UI", Arial, sans-serif;
  /* FOUC 방지: fouc-guard.js가 폰트와 JS 문구 적용 후 i18n-ready를 붙인다. */
  visibility: hidden;
}
body.i18n-ready {
  visibility: visible;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.setup {
  min-height: 100vh;
  padding: 0 0 48px;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #f8fbff 100%);
}

.topbar,
.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-topbar {
  position: relative;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  gap: 20px;
}

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

.brand-button {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a8cf7, #5a7ff5);
  box-shadow: 0 6px 18px rgba(49, 130, 246, 0.28);
  /* padding 제거 — SVG가 원 안쪽에 가득 차서 footer 로고처럼 막대가 크게 보이게 */
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}
/* SVG가 원 영역 전체(36×36)를 채움 — viewBox 24x24의 막대(4~20)가 88% 차지하므로 시각적으로 꽉 차 보임 */
.brand-mark > svg,
.auth-brand-mark > svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.brand strong,
.stage-status strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0;
}

.brand span,
.stage-status span {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
}

.topnav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.topnav a,
.topnav button {
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475467;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.topnav a:hover,
.topnav button:hover {
  background: #f4f6f9;
  color: var(--blue);
}

.hub-page {
  position: relative;
  overflow-x: clip;
  transform-origin: top center;
  /* 풀폭 섹션들이 각자 배경을 가지므로 hub-page는 hero 영역만 책임 */
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5fc 100%);
}

/* ───────── 울트라와이드 대응 (scoped zoom 방식) ──────────
   topbar/푸터는 자연 사이즈 유지 → 사용성/일관성 유지
   hub-hero + tool-story 섹션만 1920 기준으로 zoom 확대 (콘텐츠 1920 디자인 그대로) */

/* 1921+ 가로 또는 1081+ 세로일 때 zoom 적용 (1920 baseline 초과) */
@media (min-width: 1921px), (min-height: 1081px) {
  /* zoom된 element 가로 overflow 차단 — html은 건드리지 않음 (dual scrollbar 방지) */
  body {
    overflow-x: clip;
  }
  .hub-page {
    overflow-x: clip;
  }

  /* hub-hero — 1920 디자인 폭 고정 + zoom으로 확대 */
  .hub-hero {
    width: 1920px;
    max-width: 1920px !important;
    min-height: calc((100svh - 54px) / var(--landing-scale)) !important;
    zoom: var(--landing-scale);
  }
  .hub-hero-preview {
    width: 1000px;
    height: 640px;
    right: 46px;
  }
  .voice-object-screen {
    height: 590px;
  }
  /* 보조 묵업 — zoom 적용 시 vh 계산이 달라서 1920보다 더 아래로 가는 현상 보정 */
  .voice-mock-multitrans {
    z-index: 10;
    bottom: -55px !important;
    left: -150px !important;
  }

  /* tool-story 섹션도 같은 방식으로 zoom — 1920 baseline 콘텐츠를 그대로 확대 */
  .tool-story__inner {
    width: 1600px;
    max-width: 1600px !important;
    margin: 0 auto;
    zoom: var(--landing-scale);
  }
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ─── Hero 전면 리디자인 (좌-우 분할 + 배경 그라데이션) ─── */
.hub-hero {
  position: relative;
  /* 다음 섹션(tool-story)보다 위에 stacking — 보조 묵업이 hero 밖으로 hang해도 안 가려짐 */
  z-index: 2;
  max-width: 1900px;
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.38fr);
  grid-template-rows: auto auto auto auto auto;
  align-items: center;
  /* grid 트랙 전체를 컨테이너 안에서 세로 가운데 — 상단 쏠림 해결 */
  align-content: center;
  column-gap: clamp(48px, 4.4vw, 88px);
  row-gap: 14px;
  margin: 0 auto;
  min-height: calc(100svh - 54px);
  /* 상하 padding 균등하게 — 시각적 무게중심 가운데 */
  padding: clamp(40px, 5vh, 72px) clamp(28px, 3.4vw, 64px) clamp(40px, 5vh, 72px);
  text-align: left;
  overflow: visible;
  isolation: isolate;
}
/* 미묘한 그라데이션 + blur blob 배경 — 평면적 흰 배경 보강 */
/* 부드러운 컬러 헤일로 — 평면적인 흰 배경에 깊이 부여 */
.hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 460px at 78% 38%, rgba(49, 130, 246, 0.12), transparent 70%),
    radial-gradient(420px 320px at 12% 22%, rgba(34, 197, 94, 0.06), transparent 70%);
  filter: blur(2px);
}
.hub-hero::after {
  content: none;
}
@media (max-width: 980px) {
  .hub-hero {
    grid-template-columns: 1fr;
    text-align: center;
    column-gap: 0;
  }
}

.hub-hero .eyebrow {
  grid-column: 1;
  order: 1;
  position: relative;
  z-index: 1;
  margin: 0;
  /* chip 배지 스타일 — 좌측 텍스트 묶음 상단에 시각적 닻 */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(49, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(49, 130, 246, 0.18);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3182f6;
}
.hub-hero .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3182f6, #a855f7);
  box-shadow: 0 0 0 0 rgba(49, 130, 246, 0.5);
  animation: voiceMockPulse 1.8s ease-out infinite;
}

.hub-hero h1 {
  grid-column: 1;
  order: 2;
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  max-width: 100%;
  /* 좌측 컬럼 안에서 큰 메인 카피 — 그라데이션 텍스트로 시그니처 강조 */
  font-size: clamp(46px, 4.25vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 900;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #3b3a8c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
  white-space: normal;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .hub-hero h1 { font-size: clamp(28px, 6vw, 40px); }
}

.hub-hero > p:not(.eyebrow):not(.hub-notice) {
  grid-column: 1;
  order: 3;
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  max-width: 680px;
  color: #475569;
  font-size: 18px;
  line-height: 1.58;
  font-weight: 600;
}
@media (max-width: 980px) {
  .hub-hero > p:not(.eyebrow):not(.hub-notice) {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  grid-column: 1;
  order: 4;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;  /* 좌측 정렬 */
  margin-top: 22px;
}
@media (max-width: 980px) {
  .hero-actions { justify-content: center; }
}

/* Hero CTA 아래 신뢰 줄 (베타 안내) */
.hero-trust {
  grid-column: 1;
  order: 5;
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 9px 22px;
  justify-content: flex-start;
  font-size: 14px;
  font-weight: 650;
  color: #475569;
}
@media (max-width: 980px) {
  .hero-trust { justify-content: center; }
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.hero-trust-dot--green { background: #22c55e; }
.hero-trust-dot--blue { background: #3182f6; }
.hero-trust-dot--purple { background: #a855f7; }
.hero-trust-dot--amber { background: #f59e0b; }

.hero-actions button {
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.hero-actions button:hover {
  transform: translateY(-1px);
}

.hero-primary {
  border: 1px solid var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #ffffff;
  /* 메인 CTA — shadow + 살짝 큰 폰트로 메인임을 강조 */
  padding: 0 30px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(49, 130, 246, 0.32), 0 2px 4px rgba(49, 130, 246, 0.18);
  transition: transform 0.15s ease, box-shadow 0.18s ease;
}
.hero-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(49, 130, 246, 0.38), 0 4px 8px rgba(49, 130, 246, 0.22);
}

.hero-secondary {
  border: 1px solid #d6e0ee;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
}

.hero-secondary:hover {
  border-color: #9db7d6;
  color: #1f2937;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.hub-notice {
  grid-column: 1;
  order: 5;
  min-height: 20px;
  margin-top: 12px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.hub-notice:empty {
  display: none;
}

.category-pills {
  grid-column: 1 / -1;
  order: 8;
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 46px;
}

.category-pills button {
  min-height: 30px;
  padding: 0 17px;
  border: 1px solid #d8dce6;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
}

.category-pills button:hover,
.category-pills button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.tool-more-row {
  display: none;
  max-width: 1260px;
  justify-content: center;
  margin: -22px auto 58px;
  padding: 0 28px;
}

.tool-more-button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #d7e2ef;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.045);
  transition: border-color 0.14s ease, color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.tool-more-button:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 14px 34px rgba(49, 130, 246, 0.10);
}

.tool-chooser-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(4px);
}

.tool-chooser-panel {
  width: min(1180px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.18);
}

.tool-chooser-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.tool-chooser-head h2 {
  display: none;
}

.tool-chooser-close {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 24px;
  line-height: 1;
}

.tool-chooser-close:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}

.tool-chooser-panel .tool-directory {
  max-width: none;
  padding: 0;
}

.tool-chooser-panel .directory-head {
  display: none;
}

.tool-chooser-panel .tool-card {
  grid-template-columns: 54px minmax(0, max-content);
}

.tool-chooser-panel .tool-card em {
  display: none;
}

.hub-hero-preview {
  grid-column: 2;
  grid-row: 1 / span 5;  /* 좌측 카피 전체와 같은 높이 */
  order: 7;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  height: clamp(620px, 50vw, 840px);
  margin-top: 0;
  align-self: center;
}
@media (max-width: 980px) {
  .hub-hero-preview {
    grid-column: 1;
    grid-row: auto;
    margin-top: 24px;
    height: clamp(280px, 50vw, 420px);
  }
}

.voice-hero-world {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: visible;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.voice-hero-world::before { content: none; }
/* mockup window가 가운데 정렬 + 적절한 폭 */
.voice-hero-world .hero-preview-window {
  width: 100%;
  max-width: 620px;
  height: auto;
}
.voice-hero-world .hero-preview-scene--demo {
  min-height: 320px;
}

.voice-orb {
  display: none;
}

.voice-orb-left {
  width: 210px;
  height: 210px;
  left: 9%;
  bottom: 13%;
}

.voice-orb-right {
  width: 130px;
  height: 130px;
  right: 14%;
  top: 14%;
}

.voice-object {
  position: absolute;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #ffffff;
  box-shadow: 0 34px 84px rgba(15, 23, 42, 0.14);
}

.voice-object-screen {
  position: relative;
  z-index: 2;
  left: auto;
  bottom: auto;
  width: min(100%, 1320px);
  height: min(760px, 90%);
  transform: none;
  overflow: hidden;
  border-radius: 20px;
  justify-self: stretch;
  align-self: center;
  /* 떠 있는 느낌 강화 — 다층 그림자 */
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 24px 48px -16px rgba(49, 130, 246, 0.18),
    0 48px 96px -24px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(15, 23, 42, 0.05);
}

.voice-object-topbar {
  height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid #e5edf7;
  background: #fbfcfe;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.voice-object-tools {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.voice-object-tools span {
  min-width: 0;
  padding: 4px 10px;
  border: 1px solid #e6edf6;
  border-radius: 999px;
  background: #f6f9fd;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.voice-object-tool--live {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.22) !important;
  color: #ef4444 !important;
}
.voice-object-tool--live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  animation: voiceMockPulse 1.6s ease-out infinite;
}

.voice-object-topbar b {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 10px;
}

.voice-object-stage {
  height: calc(100% - 46px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 30%);
  background: #ffffff;
}

.voice-object-video {
  position: relative;
  min-width: 0;
  background:
    radial-gradient(80% 70% at 30% 20%, rgba(49, 130, 246, 0.10), transparent 60%),
    radial-gradient(70% 60% at 80% 90%, rgba(168, 85, 247, 0.10), transparent 60%),
    linear-gradient(160deg, #f1f5fb 0%, #eaf0fa 100%);
  color: #0f172a;
}

.voice-live-chip {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #3182f6;
  font-size: 12px;
  font-weight: 900;
}

.voice-object-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  border-left: 1px solid #dbe4f0;
  background: #ffffff;
}

.voice-side-pane {
  min-width: 0;
  padding: clamp(20px, 2.2vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid #dbe4f0;
}

.voice-side-pane:last-child {
  border-bottom: 0;
}

.voice-side-pane span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(49, 130, 246, 0.08);
  color: #3182f6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.voice-side-pane:last-child span {
  background: rgba(168, 85, 247, 0.08);
  color: #a855f7;
}
.voice-side-pane span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.voice-side-pane strong {
  color: #0f172a;
  max-width: 310px;
  font-size: clamp(16px, 1.08vw, 21px);
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ── 묵업: 공유 중인 창 추상 표현 (내용 X, "창이 공유되고 있다"만 암시) ── */
.voice-mock-share {
  position: absolute;
  inset: clamp(56px, 7%, 80px) clamp(48px, 7%, 90px) clamp(110px, 13%, 140px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.02),
    0 18px 40px -12px rgba(49, 130, 246, 0.18),
    0 32px 64px -20px rgba(15, 23, 42, 0.18);
}
.voice-mock-share__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.voice-mock-share__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.voice-mock-share__dot--red { background: #ff5f57; }
.voice-mock-share__dot--yellow { background: #febc2e; }
.voice-mock-share__dot--green { background: #28c840; }
.voice-mock-share__title {
  margin-left: 14px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.voice-mock-share__canvas {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(49, 130, 246, 0.04) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, #ffffff, #f1f5fb);
}

/* ── 비디오 플레이어 shell — 가운데 큰 play 버튼 + 하단 컨트롤 ── */
.voice-mock-share__play {
  width: clamp(64px, 6vw, 96px);
  height: clamp(64px, 6vw, 96px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #3182f6;
  box-shadow:
    0 8px 24px -6px rgba(49, 130, 246, 0.28),
    0 16px 40px -12px rgba(15, 23, 42, 0.18);
  cursor: default;
  transition: transform 0.3s ease;
}
.voice-mock-share__play svg {
  width: 38%;
  height: 38%;
  margin-left: 8%; /* play 삼각형 시각 보정 */
}

.voice-mock-share__controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.voice-mock-share__time {
  letter-spacing: 0.02em;
  color: #64748b;
}
.voice-mock-share__timeline {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(49, 130, 246, 0.14);
  overflow: hidden;
}
.voice-mock-share__progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 36%;
  border-radius: 2px;
  background: linear-gradient(90deg, #3182f6, #60a5fa);
}
.voice-mock-share__progress::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3182f6;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.18);
}
.voice-mock-share__icon {
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.voice-mock-share__icon svg {
  width: 14px;
  height: 14px;
}

/* ── 묵업: 강사 카메라 PIP ────────────────────────────────────── */
.voice-mock-pip {
  position: absolute;
  right: clamp(20px, 2.2%, 28px);
  bottom: clamp(20px, 2.2%, 28px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 8px 24px -8px rgba(49, 130, 246, 0.25),
    0 12px 32px -12px rgba(15, 23, 42, 0.18);
}
.voice-mock-pip__avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #3182f6, #a855f7);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.voice-mock-pip__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}
.voice-mock-pip__name {
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}
.voice-mock-pip__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ef4444;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.voice-mock-pip__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: voiceMockPulse 1.6s ease-out infinite;
}
@keyframes voiceMockPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

/* 작은 화면에서는 묵업 슬라이드/PIP 숨김 */
@media (max-width: 980px) {
  .voice-mock-share,
  .voice-mock-pip,
  .voice-mock-multitrans { display: none; }
}

/* ── 보조 묵업: 마이크 입력 + 4분할 번역 (메인 묵업 좌하단에 겹침) ── */
.voice-mock-multitrans {
  position: absolute;
  z-index: 3;
  /* 4분할 유지하되 1920×1080 기준으로 컴팩트하게 — 메인 묵업 좌하단에 자연스레 걸침 */
  /* 고정 px — zoom 적용 시 같이 scale되어 어느 해상도에서도 동일한 상대 위치 유지 */
  left: -180px;
  bottom: -85px;
  width: 470px;
  padding: 20px 22px 22px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.02),
    0 18px 40px -12px rgba(168, 85, 247, 0.22),
    0 32px 60px -20px rgba(15, 23, 42, 0.20);
  transform: rotate(-2deg);
  transform-origin: bottom right;
}
.voice-mock-multitrans__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.voice-mock-multitrans__mic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.10), rgba(124, 58, 237, 0.10));
  border: 1px solid rgba(168, 85, 247, 0.20);
  color: #7c3aed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.voice-mock-multitrans__title {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.01em;
}
.voice-mock-multitrans__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.voice-mock-multitrans__pane {
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fafbff, #f3f4ff);
  border: 1px solid rgba(15, 23, 42, 0.04);
}
.voice-mock-multitrans__pane span {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(49, 130, 246, 0.10);
  color: #3182f6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
/* KR=파랑(기본), EN=초록, JP=오렌지, CN=보라 */
.voice-mock-multitrans__pane:nth-child(2) span { background: rgba(34, 197, 94, 0.10); color: #16a34a; }
.voice-mock-multitrans__pane:nth-child(3) span { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.voice-mock-multitrans__pane:nth-child(4) span { background: rgba(168, 85, 247, 0.10); color: #7c3aed; }
.voice-mock-multitrans__pane strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.voice-mock-multitrans__pane span {
  font-size: 10px;
  margin-bottom: 5px;
}
.voice-mock-multitrans__pane {
  padding: 16px 14px 18px;
  min-height: 84px;
}
.voice-mock-multitrans__mic {
  font-size: 11px;
  padding: 5px 11px;
}
.voice-mock-multitrans__title {
  font-size: 11.5px;
}
.voice-mock-multitrans__grid {
  gap: 8px;
}

.voice-object-caption {
  display: grid;
  gap: 8px;
  width: 230px;
  padding: 18px;
  border-radius: 18px;
}

.voice-object-caption span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.voice-object-caption strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.36;
}

.voice-object-caption-ko {
  right: 1.5%;
  top: 25%;
}

.voice-object-caption-en {
  left: 12%;
  bottom: 18%;
}

.voice-object-wave {
  left: 10%;
  top: 30%;
  width: 170px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 24px;
}

.voice-object-wave span {
  width: 8px;
  height: 32px;
  border-radius: 999px;
  background: #3182f6;
}

.voice-object-wave span:nth-child(2) { height: 48px; background: #60a5fa; }
.voice-object-wave span:nth-child(3) { height: 62px; background: #22c55e; }
.voice-object-wave span:nth-child(4) { height: 42px; background: #38bdf8; }
.voice-object-wave span:nth-child(5) { height: 28px; background: #3182f6; }

.voice-object-doc {
  right: 1.5%;
  bottom: 13%;
  width: 190px;
  min-height: 130px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
}

.voice-object-doc b,
.voice-object-doc span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.voice-object-player {
  left: 35%;
  bottom: 4%;
  width: 300px;
  padding: 14px 16px;
  border-radius: 18px;
}

.voice-object-player span {
  display: block;
  margin-bottom: 10px;
  color: #3182f6;
  font-size: 12px;
  font-weight: 900;
}

.voice-object-player div {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3182f6 0 38%, #dbe7f5 38% 100%);
}

@media (max-width: 960px) {
  .voice-hero-world {
    height: 360px;
    border-radius: 26px;
  }

  .voice-object-screen {
    width: 100%;
    height: 100%;
    bottom: auto;
  }

  .voice-object-tools {
    display: none;
  }

  .voice-object-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 58% 42%;
  }

  .voice-object-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
    border-left: 0;
    border-top: 1px solid #dbe4f0;
  }

  .voice-side-pane {
    padding: 12px 14px;
    border-right: 1px solid #dbe4f0;
    border-bottom: 0;
  }

  .voice-side-pane:last-child {
    border-right: 0;
  }

  .voice-side-pane span {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .voice-side-pane strong {
    font-size: 12px;
    line-height: 1.35;
  }

  .voice-object-caption,
  .voice-object-doc,
  .voice-object-player {
    display: none;
  }

  .voice-object-wave {
    left: 7%;
    top: 12%;
    transform: scale(0.78);
    transform-origin: top left;
  }
}

@media (max-width: 640px) {
  .product-topbar {
    padding: 0 10px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand strong {
    font-size: 13px;
  }

  .auth-buttons {
    gap: 4px;
    min-width: 0;
  }

  .header-login {
    display: none;
  }

  .header-signup {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
    white-space: nowrap;
  }

  .header-language-button {
    min-height: 34px;
    gap: 5px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hub-hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hub-hero h1 {
    white-space: normal;
    text-wrap: balance;
  }

  .voice-hero-world {
    height: 300px;
    margin-top: 36px;
  }

  .voice-object-screen {
    width: 100%;
    height: 100%;
  }

  .workflow-section-head {
    align-items: start;
    justify-items: start;
    text-align: left;
  }
}

/* ─────────────────────────────────────────────────────────────────
   스크롤 fade-in 애니메이션
   IntersectionObserver가 .is-revealed 추가하면 살짝 떠오르며 표시
   ─────────────────────────────────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─────────────────────────────────────────────────────────────────
   도구별 풍부한 섹션 (.tool-story) — 토스 느낌 참고 + VoiceLens 톤
   ─────────────────────────────────────────────────────────────── */
/* 풀폭 섹션 — 카드 컨테이너 제거, 도구별 옅은 tint를 풀폭 배경으로 */
.tool-story {
  max-width: none;
  margin: 0;
  padding: 128px clamp(24px, 4vw, 56px);
  position: relative;
  overflow: hidden;
  /* 실시간 = 파랑 옅은 tint */
  background:
    radial-gradient(900px 500px at 85% 30%, rgba(49, 130, 246, 0.10), transparent 65%),
    radial-gradient(600px 400px at 15% 80%, rgba(49, 130, 246, 0.06), transparent 70%),
    linear-gradient(180deg, #f8fbff 0%, #f1f5fc 100%);
}
/* 안쪽 콘텐츠 컨테이너 — 1600px로 확장, 좌우 2열 grid + 넓은 사이 여백 */
.tool-story__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  /* 묵업 컬럼을 더 넓게 — 좌우 여백 줄어들고 묵업 존재감 강화 */
  grid-template-columns: minmax(320px, 1fr) minmax(520px, 1.4fr);
  gap: clamp(160px, 13vw, 280px);
  align-items: center;
}

/* ─── 도구별 풀폭 배경 tint ─── */
/* 파일 변환 — 초록 */
.tool-story--file {
  background:
    radial-gradient(900px 500px at 85% 30%, rgba(34, 197, 94, 0.10), transparent 65%),
    radial-gradient(600px 400px at 15% 80%, rgba(34, 197, 94, 0.06), transparent 70%),
    linear-gradient(180deg, #f6fcf8 0%, #eef9f2 100%);
}
.tool-story--file .tool-story__eyebrow {
  color: #16a34a;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(22, 163, 74, 0.10));
  border-color: rgba(34, 197, 94, 0.18);
}
.tool-story--file .tool-story__eyebrow::before {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.tool-story--file .tool-story__cta {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 10px 24px rgba(22, 197, 94, 0.28);
}
.tool-story--file .tool-story__cta:hover {
  box-shadow: 0 14px 30px rgba(22, 197, 94, 0.36);
}
.tool-story--file .tool-story__mock::before {
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(15, 23, 42, 0.04), transparent 70%);
}

/* 플레이어 패키지 — 보라 */
.tool-story--player {
  background:
    radial-gradient(900px 500px at 85% 30%, rgba(168, 85, 247, 0.10), transparent 65%),
    radial-gradient(600px 400px at 15% 80%, rgba(168, 85, 247, 0.06), transparent 70%),
    linear-gradient(180deg, #faf7ff 0%, #f4ecfd 100%);
}
.tool-story--player .tool-story__eyebrow {
  color: #7c3aed;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.10), rgba(124, 58, 237, 0.10));
  border-color: rgba(168, 85, 247, 0.18);
}
.tool-story--player .tool-story__eyebrow::before {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}
.tool-story--player .tool-story__cta {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.28);
}
.tool-story--player .tool-story__cta:hover {
  box-shadow: 0 14px 30px rgba(168, 85, 247, 0.36);
}
.tool-story--player .tool-story__mock::before {
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(15, 23, 42, 0.04), transparent 70%);
}
/* 좌측 컬러 막대 제거 — eyebrow chip이 그 역할 대신함 */
.tool-story::before { content: none; }
@media (max-width: 960px) {
  .tool-story {
    padding: 64px 20px;
  }
  .tool-story__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
/* 좌우 번갈아 배치 — 안쪽 grid 컬럼 순서 반전 */
.tool-story--flip .tool-story__inner {
  grid-template-columns: minmax(520px, 1.4fr) minmax(320px, 1fr);
}
.tool-story--flip .tool-story__copy { order: 2; }
.tool-story--flip .tool-story__mock { order: 1; }

.tool-story__copy {
  display: grid;
  gap: 16px;
  align-content: center;
}
/* hero eyebrow와 동일한 chip 배지 스타일 — 도구별 색상은 .tool-story--xxx에서 override */
.tool-story__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(49, 130, 246, 0.10), rgba(49, 130, 246, 0.10));
  border: 1px solid rgba(49, 130, 246, 0.18);
  font-size: 12px;
  font-weight: 800;
  color: #3182f6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tool-story__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3182f6, #2563eb);
}
.tool-story__title {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.tool-story__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  max-width: 440px;
}
.tool-story__cta {
  margin-top: 8px;
  justify-self: end;  /* 우측 정렬 — 텍스트 영역 안에서 오른쪽 */
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #3182f6, #1b64da);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(49, 130, 246, 0.28);
  transition: transform 0.15s ease, box-shadow 0.18s ease;
}
.tool-story__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(49, 130, 246, 0.34);
}

/* 사용 시나리오 칩 — 도구별 액센트 컬러로 강화 */
.tool-story__scenarios {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-story__scenarios li {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
  /* 카드 배경(헤일로)과 자연스럽게 어우러지도록 살짝 투명한 흰 배경 */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* 실시간 자막 — 파랑 */
.tool-story--live .tool-story__scenarios li {
  border-color: rgba(49, 130, 246, 0.22);
  color: #1e40af;
}
/* 파일 변환 — 초록 */
.tool-story--file .tool-story__scenarios li {
  border-color: rgba(34, 197, 94, 0.25);
  color: #15803d;
}
/* 플레이어 패키지 — 보라 */
.tool-story--player .tool-story__scenarios li {
  border-color: rgba(168, 85, 247, 0.25);
  color: #7c3aed;
}

/* 주요 기능 체크리스트 — 좌측 카피 영역 밀도 보강 */
.tool-story__features {
  margin: 4px 0 0;
  padding: 14px 18px;
  list-style: none;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.tool-story__features li {
  position: relative;
  padding-left: 28px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #334155;
  font-weight: 500;
}
/* 컬러 원 — 도구별 그라데이션 */
.tool-story__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3182f6, #2563eb);
}
/* 흰 체크마크 — 작은 ✓ 글리프, 정 가운데 */
.tool-story__features li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6.5px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
}
.tool-story--file .tool-story__features li::before {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.tool-story--player .tool-story__features li::before {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.tool-story__mock {
  position: relative;
  display: grid;
  place-items: center;
  /* 1920×1080 기준 — 묵업이 세로로 더 풍성하게 차오르도록 */
  min-height: 520px;
}
.tool-story__mock::before {
  content: "";
  position: absolute;
  inset: 18% 6% 12% 6%;
  /* 섹션 배경 tint와 중복되므로 매우 옅게만 */
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(15, 23, 42, 0.04), transparent 70%);
  z-index: 0;
}

.story-mock-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border: 1px solid #e7eef8;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}
.story-mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f6f9fd;
  border-bottom: 1px solid #e7eef8;
}
.story-mock-dots { display: inline-flex; gap: 6px; }
.story-mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: #cfd8e4; display: inline-block; }
.story-mock-dots i:first-child { background: #ff6b6b; }
.story-mock-dots i:nth-child(2) { background: #ffd166; }
.story-mock-dots i:last-child { background: #51cf66; }
.story-mock-live {
  font-size: 11px;
  font-weight: 900;
  color: #ef4444;
  letter-spacing: 0.04em;
}

/* 실시간 자막 mockup */
.story-mock-body--live {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  padding: 18px;
  min-height: 360px;
  background: #f9fbfe;
}
.story-mock-video {
  background: linear-gradient(135deg, #2d3a5a 0%, #1e293b 100%);
  border-radius: 10px;
  display: grid;
  place-items: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
/* .story-mock-video::before 음성 파동 모티프 제거 — "📷 카메라 · 화면 공유" 텍스트 가리던 문제 해결 */
.story-mock-video span {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}
.story-mock-captions { display: grid; gap: 8px; align-content: start; }
.story-mock-cap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}
.story-mock-lang { font-size: 10px; font-weight: 800; color: #64748b; letter-spacing: 0.04em; }
.story-mock-cap p { margin: 0; font-size: 13px; font-weight: 600; color: #0f172a; line-height: 1.4; }

/* 공통 배지 */
.story-mock-badge {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}
.story-mock-badge--green { background: #dcfce7; color: #16a34a; }
.story-mock-badge--blue { background: #dbeafe; color: #2563eb; }

/* 파일 변환 mockup */
.story-mock-body--file {
  display: grid;
  gap: 16px;
  padding: 22px;
  min-height: 360px;
  background: #f9fbfe;
}
.story-mock-file-upload {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}
.story-mock-file-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.story-mock-file-size { font-size: 11px; color: #64748b; }

.story-mock-file-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.story-mock-file-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-mock-tag {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, #22c55e, #16a34a);  /* 파일 변환 초록 */
  color: #ffffff;
}
.story-mock-file-row p { margin: 0; font-size: 12px; font-weight: 600; color: #475569; }

/* 플레이어 mockup — 큰 영상 + 자막 + 진행바 + ZIP 메타 */
.story-mock-body--player {
  display: grid;
  gap: 14px;
  padding: 18px;
  min-height: 360px;
  background: #f9fbfe;
}
.story-mock-player-stage {
  background: linear-gradient(135deg, #2d3a5a 0%, #1e293b 100%);
  border-radius: 10px;
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 24px 16px 56px;
}
.story-mock-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  display: grid;
  place-items: center;
  font-size: 18px;
  padding-left: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.story-mock-player-caption {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 12px;
  border-radius: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.story-mock-player-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.story-mock-player-ts {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  font-variant-numeric: tabular-nums;
}
.story-mock-player-progress {
  position: relative;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.story-mock-player-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(90deg, #a855f7, #7c3aed);  /* 플레이어 보라 */
  border-radius: 999px;
}
.story-mock-player-marker {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 10px;
  background: #7c3aed;
  border-radius: 1px;
  opacity: 0.5;
}
.story-mock-player-marker--one { left: 18%; }
.story-mock-player-marker--two { left: 42%; }
.story-mock-player-marker--three { left: 71%; }
.story-mock-player-meta {
  font-size: 11px;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
}
.story-mock-player-file {
  font-weight: 600;
}

.primary-workflows {
  max-width: 1420px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  margin: 78px auto 112px;
  padding: 0 34px;
  border: 1px solid #e2ebf6;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.workflow-section-head {
  grid-column: 1 / span 4;
  grid-row: 1;
  align-self: center;
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: 0;
  padding-right: 18px;
  text-align: left;
}

.workflow-section-head span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.workflow-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

.workflow-section-head p {
  margin: 0;
  max-width: 360px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.65;
}

.workflow-card {
  --workflow-accent: #3182f6;
  position: relative;
  min-height: 190px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: 1.35fr auto auto 0.75fr auto;
  align-items: center;
  align-content: center;
  row-gap: 8px;
  column-gap: 20px;
  padding: 34px 34px 28px;
  overflow: hidden;
  border: 1px solid #dfe8f4;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--workflow-accent) 4%, #ffffff) 100%);
  color: #0f172a;
  text-align: left;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.045);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.workflow-card-live {
  grid-column: 5 / -1;
  grid-row: 1;
}

.workflow-card-file {
  grid-column: 2 / span 5;
  grid-row: 2;
}

.workflow-card-player {
  grid-column: 7 / span 5;
  grid-row: 2;
}

.workflow-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--workflow-accent);
  opacity: 0.9;
}

.workflow-card:not(:last-child)::after {
  display: none;
}

.workflow-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--workflow-accent) 38%, #dfe8f4);
  background:
    linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--workflow-accent) 8%, #ffffff) 100%);
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.075);
}

.workflow-card-file {
  --workflow-accent: #22c55e;
}

.workflow-card-player {
  --workflow-accent: #0ea5e9;
}

.workflow-icon {
  grid-column: 1;
  grid-row: 2 / span 2;
  align-self: center;
  justify-self: center;
  width: 62px;
  height: 62px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--workflow-accent);
  color: #ffffff;
  box-shadow:
    10px 8px 0 color-mix(in srgb, var(--workflow-accent) 14%, transparent),
    0 12px 28px color-mix(in srgb, var(--workflow-accent) 18%, transparent);
  overflow: visible;
}

.workflow-svg {
  width: 32px;
  height: 32px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-card-live .workflow-svg rect,
.workflow-card-player .workflow-svg rect {
  fill: rgba(255, 255, 255, 0.14);
}

.workflow-card-file .workflow-svg path:first-child {
  fill: rgba(255, 255, 255, 0.14);
}

.workflow-card strong {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  font-size: 22px;
  line-height: 1.2;
}

.workflow-card small {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  max-width: 390px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.62;
}

.workflow-card em {
  grid-column: 2;
  grid-row: 5;
  justify-self: end;
  align-self: end;
  color: var(--workflow-accent);
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.01em;
}

.workflow-card em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--workflow-accent) 24%, #dfe8f4);
  border-radius: 999px;
  color: var(--workflow-accent);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  background: color-mix(in srgb, var(--workflow-accent) 7%, #ffffff);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--workflow-accent) 9%, transparent);
}

.workflow-card:hover em {
  background: var(--workflow-accent);
  border-color: var(--workflow-accent);
  color: #ffffff;
}

.hero-preview-window {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  /* 좌-우 분할 hero에서 mockup이 떠있는 느낌 — 풍부한 그림자로 깊이 추가 */
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(49, 130, 246, 0.08);
}

.hero-preview-topbar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #e8eef6;
  color: #0f172a;
  font-size: 12px;
}

.hero-preview-topbar span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 10px;
  font-weight: 900;
}

.hero-preview-scene {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(207, 226, 255, 0.92), rgba(235, 246, 255, 0.94)),
    linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

/* 새 demo scene — 실제 라이브 UI mockup */
.hero-preview-scene--demo {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(220px, 0.88fr);
  gap: 12px;
  padding: 14px;
  background: #f7f9fc;
  min-height: 330px;
}
/* 기본 scene의 4개 흰 점(blur 0.4px) + 우하단 사람 실루엣 그림자 둘 다 강제 제거 */
.hero-preview-scene--demo::before,
.hero-preview-scene--demo::after {
  content: none !important;
  display: none !important;
  background: none !important;
  filter: none !important;
}
.hero-preview-video {
  position: relative;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), transparent 28%, rgba(15, 23, 42, 0.2)),
    linear-gradient(135deg, #2b3650 0%, #182235 100%);
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 700;
  min-height: 100%;
  overflow: hidden;
}
.hero-preview-video::before {
  /* 영상 안에 사람 실루엣 느낌 */
  content: "";
  position: absolute;
  inset: 25% 30% 0;
  background: radial-gradient(ellipse 50% 30% at 50% 25%, rgba(255, 255, 255, 0.18), transparent 70%),
              radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 255, 255, 0.14), transparent 70%);
}

.hero-preview-video::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 18px;
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #60a5fa 0 42%, rgba(255, 255, 255, 0.22) 42% 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hero-preview-video-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.hero-preview-subtitle {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 1;
  width: min(78%, 360px);
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.68);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(6px);
}

.hero-preview-captions {
  display: grid;
  gap: 12px;
  align-content: start;
}
.hero-preview-cap-row {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 15px;
  display: grid;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}
.hero-preview-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.02em;
}
.hero-preview-cap-row p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
}

.hero-preview-scene::before,
.hero-preview-scene::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-preview-scene::before {
  inset: 26px 32px auto;
  height: 82px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 48%, rgba(255, 255, 255, 0.95) 0 10px, transparent 11px),
    radial-gradient(circle at 34% 38%, rgba(255, 255, 255, 0.9) 0 13px, transparent 14px),
    radial-gradient(circle at 62% 45%, rgba(255, 255, 255, 0.88) 0 11px, transparent 12px),
    radial-gradient(circle at 86% 38%, rgba(255, 255, 255, 0.92) 0 14px, transparent 15px);
  filter: blur(0.4px);
}

.hero-preview-scene::after {
  left: 50%;
  bottom: -46px;
  width: 150px;
  height: 180px;
  transform: translateX(-5%);
  border-radius: 78px 78px 24px 24px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.22), rgba(30, 41, 59, 0.05));
}

.hero-preview-crop {
  position: absolute;
  inset: 78px 52px 62px;
  border: 2px solid #38bdf8;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.hero-preview-caption {
  position: absolute;
  left: 50%;
  bottom: 86px;
  width: min(78%, 360px);
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.24);
}

.hero-preview-caption strong,
.hero-preview-caption span {
  display: block;
}

.hero-preview-caption strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.18;
}

.hero-preview-caption span {
  margin-top: 5px;
  color: #fef08a;
  font-size: 14px;
  font-weight: 900;
}

.hero-preview-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.hero-preview-chip,
.hero-preview-card {
  border: 1px solid #d7e3f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.hero-preview-chip {
  display: grid;
  gap: 5px;
  padding: 11px 13px;
}

.hero-preview-chip b {
  color: #64748b;
  font-size: 11px;
}

.hero-preview-chip span {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.hero-preview-card {
  padding: 14px;
}

.hero-preview-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.hero-preview-card p {
  margin: 8px 0 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.tool-page {
  max-width: none;
  margin: 0 auto;
}

.tool-section,
.live-setup {
  max-width: 1260px;
  margin: 0 auto 26px;
}

.tool-directory {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px 62px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.directory-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.directory-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.directory-head p {
  max-width: 520px;
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.hub-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hub-tool-groups {
  display: grid;
  gap: 28px;
}

.hub-tool-group {
  display: grid;
  gap: 14px;
}

.hub-tool-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 2px 2px;
}

.hub-tool-group-head span {
  display: none;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hub-tool-group-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.tool-chooser-panel .hub-tool-group {
  gap: 12px;
}

.tool-chooser-panel .hub-tool-group .hub-grid {
  gap: 0;
  padding: 10px;
  border: 1px solid #e2ebf6;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92)),
    radial-gradient(circle at 14% 8%, rgba(49, 130, 246, 0.055), transparent 34%);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.04);
}

.tool-chooser-panel .tool-card {
  position: relative;
  min-height: 104px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}

.tool-chooser-panel .tool-card:not(.hidden):not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  bottom: 22px;
  width: 1px;
  background: #e6edf6;
}

.tool-chooser-panel .tool-card:hover {
  background: color-mix(in srgb, var(--tool-accent) 5%, #ffffff);
  box-shadow: none;
}


.tool-section {
  padding: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.tool-section-head,
.live-setup-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.tool-section-head h2,
.live-setup-head h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.tool-section-head p,
.live-setup-head p {
  max-width: 520px;
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.section-kicker {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.tool-card {
  --tool-accent: #3182f6;
  --tool-accent-soft: #dbeafe;
  min-height: 120px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  justify-content: stretch;
  justify-items: start;
  align-items: center;
  align-content: center;
  column-gap: 18px;
  row-gap: 5px;
  padding: 22px 28px;
  border: 1px solid color-mix(in srgb, var(--tool-accent) 12%, #d8e1ec);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, color-mix(in srgb, var(--tool-accent) 6%, #ffffff), #ffffff 58%);
  color: #0f172a;
  text-align: left;
  box-shadow: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.tool-card[data-tool="camera"] {
  --tool-accent: #14b8a6;
  --tool-accent-soft: #ccfbf1;
}

.tool-card[data-tool="screen"] {
  --tool-accent: #6366f1;
  --tool-accent-soft: #e0e7ff;
}

.tool-card[data-tool="media-text"],
.tool-card[data-tool="translate-subtitle"] {
  --tool-accent: #22c55e;
  --tool-accent-soft: #dcfce7;
}

.tool-card[data-tool="audio-player"] {
  --tool-accent: #f97316;
  --tool-accent-soft: #ffedd5;
}

.tool-chooser-panel .tool-card[data-tool="audio-player"] {
  display: none !important;
}

.tool-card[data-tool="video-player"],
.tool-card[data-tool="player-package"],
.tool-card[data-tool="burn-subtitle"] {
  --tool-accent: #0ea5e9;
  --tool-accent-soft: #e0f2fe;
}

.tool-card[data-tool="translate-subtitle"] {
  --tool-accent: #8b5cf6;
  --tool-accent-soft: #ede9fe;
}

.tool-card[data-tool="summary"],
.tool-card[data-tool="terms"],
.tool-card[data-tool="quiz"] {
  --tool-accent: #0ea5e9;
  --tool-accent-soft: #e0f2fe;
}

.tool-card[data-tool="terms"] {
  --tool-accent: #a855f7;
  --tool-accent-soft: #f3e8ff;
}

.tool-card[data-tool="quiz"] {
  --tool-accent: #f59e0b;
  --tool-accent-soft: #fef3c7;
}

.tool-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--tool-accent) 38%, #d8dce6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(15, 23, 42, 0.055);
}

.tool-card strong {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 18px;
  line-height: 1.25;
}

.tool-card small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  max-width: 520px;
}

.tool-card em {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  font-style: normal;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.tool-card:hover em {
  color: var(--tool-accent);
}

.history-panel {
  max-width: 1440px;
  margin: -30px auto 64px;
  padding: 0 28px;
}

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

.history-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.history-panel-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  letter-spacing: 0;
}

.history-panel-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-empty,
.history-item {
  border: 1px solid #d8dce6;
  border-radius: 12px;
  background: #ffffff;
}

.history-empty {
  padding: 22px;
  color: #64748b;
  text-align: center;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.history-item h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
}

.history-item p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.history-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d8dce6;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.history-actions button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.history-actions button:disabled {
  cursor: wait;
  opacity: 0.82;
}

.history-actions button.is-downloading,
.download-row button.is-downloading {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1b64da;
}

.history-actions button.is-download-done,
.download-row button.is-download-done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.history-actions button.is-download-failed,
.download-row button.is-download-failed {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.history-actions .history-delete-button {
  border-color: #fecdd3;
  color: #be123c;
}

.history-actions .history-delete-button:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fff1f2;
}

.history-unavailable {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.tool-icon {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  padding: 0;
  font-size: 10px;
  font-weight: 900;
  isolation: isolate;
}

.tool-icon::before,
.tool-icon::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  transition: transform 0.16s ease;
}

.tool-icon::before {
  inset: 5px 10px 9px 0;
  z-index: -1;
  background: var(--tool-accent);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--tool-accent) 20%, transparent);
}

.tool-icon::after {
  right: 0;
  bottom: 2px;
  width: 25px;
  height: 25px;
  z-index: -2;
  background: var(--tool-accent-soft);
  border: 1px solid color-mix(in srgb, var(--tool-accent) 14%, #ffffff);
}

.tool-card:hover .tool-icon::before {
  transform: translate(-1px, -1px);
}

.tool-card:hover .tool-icon::after {
  transform: translate(2px, 2px);
}

.example-showcase {
  max-width: 1420px;
  margin: 0 auto 96px;
  padding: 0 34px;
}

.example-showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.example-showcase-head h2 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 30px;
  letter-spacing: 0;
}

.example-showcase-head p {
  max-width: 620px;
  margin: 0;
  color: #64748b;
  line-height: 1.55;
  white-space: nowrap;
}

.example-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.example-card {
  --example-accent: #3182f6;
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto;
  gap: 14px;
  padding: 26px 28px 24px;
  border: 1px solid #e2ebf6;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--example-accent) 4%, #ffffff));
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.055);
  transition: transform 0.16s ease, background 0.16s ease;
}

.example-card-live { --example-accent: #3182f6; }
.example-card-video { --example-accent: #0ea5e9; }
.example-card-audio { --example-accent: #f97316; }

.example-card-live {
  grid-row: span 2;
  min-height: 650px;
}

.example-card:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--example-accent) 7%, #ffffff));
}

.example-card:not(:last-child)::after {
  display: none;
}

.example-card-copy span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.example-card-copy h3 {
  margin: 8px 0;
  color: #0f172a;
  font-size: 22px;
  letter-spacing: 0;
}

.example-card-copy p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.example-open {
  justify-self: start;
  width: auto;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--example-accent) 36%, #d8dce6);
  border-radius: 999px;
  background: color-mix(in srgb, var(--example-accent) 8%, #ffffff);
  color: color-mix(in srgb, var(--example-accent) 78%, #0f172a);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.example-open:hover {
  border-color: color-mix(in srgb, var(--example-accent) 60%, #d8dce6);
  background: var(--example-accent);
  color: #ffffff;
}

.live-preview-frame,
.player-preview-frame,
.audio-preview-frame {
  min-height: 240px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fbff;
  overflow: hidden;
}

.live-preview-frame {
  display: grid;
  grid-template-rows: 36px 1fr;
}

.live-preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.live-preview-topbar strong {
  color: #0f172a;
  font-size: 12px;
}

.live-preview-topbar span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 10px;
  font-weight: 900;
}

.live-preview-scene {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(49, 130, 246, 0.18), transparent 42%), linear-gradient(45deg, #dbeafe, #f8fafc);
}

.live-preview-board {
  width: 74%;
  height: 56%;
  transform: translateY(18px);
  border: 2px solid #38bdf8;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.38);
}

.live-preview-caption {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 82%;
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.65);
}

.live-preview-caption strong,
.live-preview-caption span {
  display: block;
  color: #ffffff;
  font-weight: 900;
}

.live-preview-caption strong {
  font-size: 20px;
}

.live-preview-caption span {
  margin-top: 5px;
  color: #fde68a;
  font-size: 13px;
}

.player-preview-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(120px, 0.9fr);
}

.video-preview-screen {
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5), transparent 24%), linear-gradient(135deg, #c7d2fe, #dbeafe 52%, #f8fafc);
}

.video-preview-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.video-preview-play::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 16px 0 0 20px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--blue);
}

.timeline-preview {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border-left: 1px solid #e2e8f0;
  background: #ffffff;
}

.timeline-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
}

.timeline-row.active {
  background: #eef6ff;
  outline: 1px solid #bfdbfe;
}

.timeline-row b {
  color: #1b64da;
  font-size: 11px;
}

.timeline-row span {
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.audio-preview-frame {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 22px;
}

.audio-preview-player {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
}

.audio-preview-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.24);
}

.audio-preview-wave {
  display: flex;
  align-items: center;
  gap: 5px;
}

.audio-preview-wave span {
  width: 6px;
  border-radius: 999px;
  background: #fb923c;
}

.audio-preview-wave span:nth-child(1) { height: 18px; }
.audio-preview-wave span:nth-child(2) { height: 34px; }
.audio-preview-wave span:nth-child(3) { height: 24px; }
.audio-preview-wave span:nth-child(4) { height: 42px; }
.audio-preview-wave span:nth-child(5) { height: 22px; }

.audio-preview-player strong {
  color: #9a3412;
  font-size: 12px;
}

.audio-preview-lines {
  display: grid;
  gap: 9px;
}

.audio-preview-lines span {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
}

.audio-preview-lines span:nth-child(2) {
  width: 72%;
}

.audio-preview-lines span:nth-child(3) {
  width: 88%;
}

@media (max-width: 1100px) {
  .primary-workflows {
    grid-template-columns: 1fr;
  }

  .workflow-section-head,
  .workflow-card-live,
  .workflow-card-file,
  .workflow-card-player {
    grid-column: 1;
    grid-row: auto;
  }

  .workflow-section-head {
    max-width: 640px;
    padding-right: 0;
  }

  .workflow-section-head p {
    max-width: none;
  }

  .example-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .example-card {
    min-height: auto;
  }

  .example-card-live {
    min-height: auto;
  }

  .example-card:not(:last-child)::after {
    display: none;
  }

  .example-showcase-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .example-showcase-head p {
    white-space: normal;
  }
}

/* 푸터 영역 — hub-page와 시각적으로 분리된 별개 섹션 (옅은 흰 배경) */
.site-footer {
  position: relative;
  max-width: none;
  margin: 0;
  /* 컴팩트 — 글은 살짝 내려있되 전체 높이 최소화 */
  padding: 28px 24px 10px;
  color: #64748b;
  /* hub-page 라벤더 그라데이션 → 푸터 깨끗한 흰 배경으로 명확히 전환 */
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
/* 푸터 내부 콘텐츠는 1180px로 제한 — hub-page 컨텐츠 폭과 정렬 */
.site-footer > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
/* hairline 제거 — 그라데이션이 이어지면 굳이 경계선 필요 X */

.footer-top {
  /* 가운데 정렬 — 브랜드 + 메이커 한 줄 중앙 배치 */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f8;
  text-align: center;
}
.footer-maker { text-align: left; }
.footer-brand-mark { width: 28px; height: 28px; }
.footer-brand-text strong { font-size: 14px; }
.footer-brand-text span { font-size: 11px; }
.footer-maker { font-size: 12px; line-height: 1.5; margin: 0; }
.footer-maker-badge { font-size: 11px; padding: 3px 8px; }
.footer-maker + .footer-maker-promise,
.footer-meta-promise { font-size: 11px; }
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-block;
}
.footer-brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.footer-brand-text { display: grid; gap: 2px; }
.footer-brand-text strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.footer-brand-text span {
  font-size: 12px;
  color: #94a3b8;
}

.footer-maker {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #475569;
}
.footer-maker a {
  color: #3182f6;
  font-weight: 700;
  text-decoration: none;
}
.footer-maker a:hover { text-decoration: underline; }
.footer-maker-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef5ff, #f3eeff);
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 4px;
}

.footer-links a {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: #2563eb;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #eef2f8;
  font-size: 11px;
  color: #94a3b8;
}
.footer-meta-promise {
  color: #16a34a;
  font-weight: 700;
}
@media (max-width: 720px) {
  .footer-meta { justify-content: center; text-align: center; }
}

.disabled-tool {
  opacity: 0.45;
}

.live-setup {
  padding-top: 18px;
  scroll-margin-top: 18px;
  /* 데스크탑 활용 — 1180→1360px로 확장 (큰 모니터에서 우측 빈 공간 줄임) */
  max-width: 1360px;
}

.future-tool-page {
  min-height: calc(100vh - 54px);
  padding: 18px 24px 80px;
  background:
    radial-gradient(circle at 12% 4%, rgba(49, 130, 246, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 62%, #f7fbff 100%);
}

.file-tool-shell {
  max-width: 1360px;
  margin: 0 auto;
}

.file-tool-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: auto;
  padding: 18px 24px;
  border: 1px solid rgba(49, 130, 246, 0.14);
  border-radius: 20px;
  /* 파일 변환 화면은 파란 톤으로 정리 */
  background:
    radial-gradient(500px 200px at 90% 20%, rgba(49, 130, 246, 0.08), transparent 70%),
    #ffffff;
  box-shadow: 0 4px 14px -8px rgba(49, 130, 246, 0.18);
  text-align: left;
}

.file-tool-head > .secondary-button {
  position: static;
  transform: none;
  flex: none;
}

.file-tool-title {
  flex: 1;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.file-tool-head .tool-icon {
  display: none;
}

.file-tool-title h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.file-tool-title p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.file-tool-head::after {
  content: "";
  width: 64px;
  flex: none;
}

.file-tool-head .section-kicker {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* file-panel 내부 section-kicker — 메인 hero eyebrow chip 톤 통일 */
.file-panel .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(49, 130, 246, 0.10), rgba(27, 100, 218, 0.10));
  border: 1px solid rgba(49, 130, 246, 0.22);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.file-panel .section-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}
.file-panel .section-head h2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.file-panel .section-head p {
  font-size: 13px;
}

.file-tool-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.file-tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.file-panel,
.file-progress-panel,
.file-tool-result {
  border: 1px solid rgba(49, 130, 246, 0.12);
  border-radius: 24px;
  /* 옅은 파란 헤일로 */
  background:
    radial-gradient(420px 260px at 88% 18%, rgba(49, 130, 246, 0.08), transparent 70%),
    #ffffff;
  box-shadow: 0 12px 32px rgba(49, 130, 246, 0.10);
}

.file-panel {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
  align-content: start;
}

.file-tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.file-option-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #d8e2f0;
  border-radius: 14px;
  background: #f8fbff;
  color: #102033;
  cursor: pointer;
}

.file-option-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.file-option-check span {
  display: grid;
  gap: 3px;
}

.file-option-check strong {
  color: #102033;
  font-size: 14px;
}

.file-option-check small {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.file-drop {
  min-height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border: 2px dashed rgba(49, 130, 246, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(circle at center, rgba(49, 130, 246, 0.06), transparent 70%),
    #f7fbff;
  color: #334155;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.file-drop:hover {
  border-color: var(--blue);
  background: #eff6ff;
  transform: translateY(-1px);
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop strong {
  min-width: 168px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0 28px;
  border-radius: 999px;
  /* 파란 그라데이션 pill */
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 24px -6px rgba(49, 130, 246, 0.32);
  transition: transform 0.12s ease, box-shadow 0.18s ease;
}
.file-drop:hover strong {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -8px rgba(49, 130, 246, 0.42);
}

.file-drop span {
  color: #64748b;
  font-size: 12px;
}

.file-tool-selected {
  min-height: 20px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  word-break: break-all;
}

.file-upload-panel .file-tool-selected {
  margin-top: -2px;
}

.file-tool-run {
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  /* 파일 변환 = 파란 CTA */
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)) !important;
  box-shadow: 0 12px 26px rgba(49, 130, 246, 0.30), 0 2px 4px rgba(49, 130, 246, 0.18) !important;
}
.file-tool-run:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(49, 130, 246, 0.36), 0 4px 8px rgba(49, 130, 246, 0.20) !important;
}

.file-progress-panel {
  padding: 24px;
}

.file-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.file-progress-head span {
  color: #0f172a;
  font-weight: 900;
  font-size: 18px;
}

.file-progress-head strong {
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.file-progress-track {
  height: 12px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf3ff;
}

.file-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  transition: width 0.7s ease;
}

.file-progress-bar[data-phase="transcribe"] {
  background: linear-gradient(90deg, var(--blue), #60a5fa, var(--blue));
  background-size: 180% 100%;
  animation: file-progress-flow 1.8s linear infinite;
}

@keyframes file-progress-flow {
  from { background-position: 0% 50%; }
  to { background-position: 180% 50%; }
}

#fileToolProgressText {
  min-height: 42px;
  margin: 14px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.file-progress-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.file-progress-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-weight: 800;
  font-size: 14px;
}

.file-progress-steps li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.file-progress-steps li.active {
  color: var(--blue-dark);
}

.file-progress-steps li.active::before {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(49, 130, 246, 0.18);
  animation: file-step-pulse 1.5s ease-in-out infinite;
}
@keyframes file-step-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(49, 130, 246, 0.18); }
  50% { box-shadow: 0 0 0 9px rgba(49, 130, 246, 0.08); }
}

.file-progress-steps li.done {
  color: #1d4ed8;
}

.file-progress-steps li.done::before {
  background: var(--blue-dark);
}

.file-cancel-button {
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff5f5;
  color: #dc2626;
  font-weight: 900;
  cursor: pointer;
}

.file-cancel-button:hover {
  background: #fee2e2;
}

.file-cancel-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.file-tool-result {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 24px;
  text-align: left;
}

.file-result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.file-result-head h2 {
  margin: 2px 0 6px;
  font-size: 24px;
}

.file-tool-result p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.file-share-link {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(49, 130, 246, 0.22);
  background:
    radial-gradient(360px 140px at 90% 0%, rgba(49, 130, 246, 0.10), transparent 70%),
    #f4f8ff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.file-share-link__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.file-share-link__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.file-share-link__hint {
  color: #1e40af;
  font-size: 13px;
}
.file-share-link__row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.file-share-link__row input {
  flex: 1 1 280px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(49, 130, 246, 0.28);
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 13px;
}
.file-share-link__row input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.18);
}

#fileToolPreview {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1px solid #d8e1ec;
  border-radius: 16px;
  padding: 16px;
  background: #fbfdff;
  color: #0f172a;
  line-height: 1.6;
  font-family: inherit;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.future-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.future-steps strong,
.future-steps span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.future-steps strong {
  background: #eff6ff;
  color: #1d4ed8;
}

/* 헤더 — 옅은 보더 카드 + 가운데 타이틀/설명, 이전 버튼 좌측 / 아래 탭과 충분한 여백 */
.live-setup-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 18px;
  min-height: auto;
  max-width: 1180px;
  margin: 0 auto 28px;
  padding: 18px 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.10);
  text-align: left;
}

.live-setup-head > .secondary-button {
  position: static;
  transform: none;
  flex: none;
}

/* 가운데 타이틀/설명 — 이전 버튼 좌측이고 콘텐츠는 가운데 정렬 */
.live-setup-head > div {
  flex: 1;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.live-setup-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.live-setup-head p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  max-width: none;
}
/* 이전 버튼이 좌측에 있어도 타이틀이 컨테이너 가운데로 정렬되도록 우측에 같은 폭의 spacer 추가 */
.live-setup-head::after {
  content: "";
  width: 64px; /* 이전 버튼 폭과 비슷하게 — 시각적 좌우 균형 */
  flex: none;
}

.live-setup-head .section-kicker {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.setup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.setup-main {
  display: grid;
  gap: 18px;
}

.surface,
.start-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.045);
}

.surface {
  padding: 26px;
}

.start-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 28px;
  padding: 22px 26px;
  border-color: var(--line);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.1);
}

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

.section-head.compact {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.section-head p,
.start-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 14px;
}

.input-mode-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.live-setup.mode-locked .input-mode-grid {
  display: none;
}

.live-mode-tabs {
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: -8px auto 18px;
  padding: 6px;
  border: 1px solid #dce7f5;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)),
    radial-gradient(circle at 16% 0%, rgba(49, 130, 246, 0.08), transparent 34%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.055);
}

.live-mode-tabs button {
  position: relative;
  min-height: 80px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding-top: 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #475569;
  text-align: center;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}
.live-mode-tabs button:hover {
  background: rgba(49, 130, 246, 0.04);
}
/* 모드 카드에 SVG 아이콘 추가 — ::before로 가상 요소 사용 */
.live-mode-tabs button::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--mode-icon) center/contain no-repeat;
  mask: var(--mode-icon) center/contain no-repeat;
  opacity: 0.7;
  transition: opacity 0.16s ease;
}
.live-mode-tabs button[data-live-mode-tab="mic"]::before {
  --mode-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='3' width='6' height='12' rx='3'/><path d='M5 11a7 7 0 0 0 14 0'/><line x1='12' y1='18' x2='12' y2='21'/></svg>");
}
.live-mode-tabs button[data-live-mode-tab="screen"]::before {
  --mode-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='13' rx='2'/><line x1='8' y1='21' x2='16' y2='21'/><line x1='12' y1='17' x2='12' y2='21'/></svg>");
}
.live-mode-tabs button[data-live-mode-tab="camera"]::before {
  --mode-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M23 7l-7 5 7 5V7z'/><rect x='1' y='5' width='15' height='14' rx='2'/></svg>");
}
.live-mode-tabs button.is-active::before {
  opacity: 1;
}

.live-mode-tabs button[data-live-mode-tab="mic"] {
  order: 1;
}

.live-mode-tabs button[data-live-mode-tab="screen"] {
  order: 2;
}

.live-mode-tabs button[data-live-mode-tab="camera"] {
  order: 3;
}

.live-mode-tabs button:focus-visible {
  outline: 2px solid rgba(49, 130, 246, 0.35);
  outline-offset: -2px;
}

.live-mode-tabs button:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 0;
  bottom: 16px;
  width: 1px;
  background: #e6edf6;
}

.live-mode-tabs strong {
  color: #0f172a;
  font-size: 15px;
}

.live-mode-tabs span {
  color: #64748b;
  font-size: 12px;
}

.live-mode-tabs button.is-active {
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.25);
}

.live-mode-tabs button.is-active strong {
  color: var(--blue);
}

#inputModeSurface .input-mode-grid,
#lockedInputMode {
  display: none !important;
}

.locked-input-mode {
  display: none;
  gap: 5px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: #eff6ff;
  color: #1e40af;
}

.locked-input-mode strong {
  font-size: 16px;
}

.locked-input-mode span {
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.locked-input-mode.hidden {
  display: none;
}

.device-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.live-setup.mode-audio-only .device-grid {
  grid-template-columns: minmax(260px, 420px);
}

.field {
  display: grid;
  gap: 8px;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.share-guide-surface {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  max-width: 1180px;
  margin: 18px auto 20px;
  padding: 22px 24px;
  border-color: rgba(147, 197, 253, 0.8);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 20px 54px rgba(37, 99, 235, 0.11);
}

.share-guide-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.share-guide-head > span {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.share-guide-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: 0;
}

.share-guide-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.share-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.share-guide-step {
  min-height: 106px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.share-guide-step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.share-guide-step strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
}

.share-guide-step p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.select,
.search,
.toolbar-select {
  width: 100%;
  border: 1px solid #d8e1ec;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  outline: none;
}

.select option,
.toolbar-select option {
  background: #ffffff;
  color: #0f172a;
}

.select,
.search {
  height: 48px;
  padding: 0 14px;
}

.search {
  margin-bottom: 12px;
}

.secondary-button,
.primary-button,
.toolbar-button,
.danger-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

/* secondary — 옅은 outline pill, hover 시 파랑 ring */
.secondary-button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.secondary-button:hover {
  border-color: rgba(49, 130, 246, 0.30);
  background: rgba(49, 130, 246, 0.04);
  color: #3182f6;
  transform: translateY(-1px);
}

.primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  border-radius: 999px;
  /* 메인 hero CTA와 톤 통일 — pill + 그라데이션 + 컬러 그림자 */
  background: linear-gradient(135deg, #3182f6, #1b64da);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 26px rgba(49, 130, 246, 0.32), 0 2px 4px rgba(49, 130, 246, 0.18);
  transition: transform 0.15s ease, box-shadow 0.18s ease, opacity 0.15s ease;
}
.primary-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(49, 130, 246, 0.38), 0 4px 8px rgba(49, 130, 246, 0.22);
}
.primary-button:disabled {
  background: #cbd5e1;
  color: #ffffff;
  box-shadow: none;
  cursor: not-allowed;
}

.start-panel .primary-button {
  grid-column: 2;
  grid-row: 1 / 3;
  width: auto;
  min-width: 180px;
  margin-top: 0;
}

.start-panel .panel-kicker {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 6px;
  padding-bottom: 0;
  border-bottom: none;
}

.start-panel #setupSummary,
.start-panel #setupError {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}
/* 에러가 있으면 summary 숨기고 에러가 그 자리(시작하기 버튼 옆) 차지 */
.start-panel:has(#setupError:not(:empty)) #setupSummary { display: none; }
.start-panel #setupError:empty { display: none; }
.start-panel #setupError {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  justify-self: start;
}
.start-panel #setupError::before {
  content: "⚠";
  font-size: 12px;
}

/* primary-button/toolbar-button:hover 색 변경 제거 — 도구별 색(녹화=초록 등) 유지하면서 grayer shadow만 변함 */

.switch-card,
.mode-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.mode-card:hover {
  border-color: rgba(49, 130, 246, 0.25);
  background: rgba(49, 130, 246, 0.02);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(49, 130, 246, 0.20);
}

.switch-card input,
.mode-card input {
  position: absolute;
  opacity: 0;
}

.switch-ui {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cbd5e1;
  transition: 0.18s ease;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  transition: 0.18s ease;
}

.switch-card input:checked + .switch-ui {
  background: var(--blue);
}

.switch-card input:checked + .switch-ui::after {
  transform: translateX(20px);
}

.switch-card strong,
.mode-card strong {
  display: block;
  font-size: 15px;
}

.switch-card small,
.mode-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.mode-card:has(input:checked) {
  border-color: rgba(49, 130, 246, 0.55);
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.2);
}

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

.language-panel {
  min-height: 420px;
}

/* 언어 카드 그리드 — 패널 폭이 커진 만큼 한 줄에 더 많은 카드 */
.language-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 370px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.language-list::-webkit-scrollbar {
  width: 6px;
}

.language-list::-webkit-scrollbar-track {
  background: transparent;
}

.language-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.language-card {
  position: relative;
  min-height: 72px;
  border: 1px solid #d8e1ec;
  border-radius: 14px;
  background: #fff;
  color: #101828;
  padding: 10px 10px 20px;
  text-align: left;
}

.language-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.language-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.language-card small {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.language-card.selected {
  border-color: var(--blue);
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.22);
}

/* ─── 패널 시각 차별화 (입력=파랑 / 번역=보라) ─── */
/* 패널 헤더 색상 도트 */
.panel-mark {
  display: inline-block;
  margin-right: 6px;
  font-size: 12px;
  vertical-align: middle;
  transform: translateY(-1px);
}
.panel-mark--source { color: #3182f6; }
.panel-mark--target { color: #16a34a; }
.panel-hint {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 4px;
}

/* 입력 언어 패널 — 파란 액센트 + 옅은 파랑 헤일로 배경 */
.language-panel--source {
  border-top: 3px solid #3182f6;
  background:
    radial-gradient(400px 200px at 80% 0%, rgba(49, 130, 246, 0.06), transparent 70%),
    #ffffff;
}
.language-panel--source .language-card.selected {
  border-color: #3182f6;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.25);
}
.language-panel--source .language-card.selected::after {
  background: #3182f6;
}

/* 번역 언어 패널 — 초록 액센트 + 옅은 초록 헤일로 배경 */
.language-panel--target {
  border-top: 3px solid #22c55e;
  background:
    radial-gradient(400px 200px at 80% 0%, rgba(34, 197, 94, 0.07), transparent 70%),
    #ffffff;
}
.language-panel--target .language-card.selected {
  border-color: #22c55e;
  background: #f0fdf4;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.25);
}
.language-panel--target .language-card.selected::after {
  background: #16a34a;
}

.language-card.selected::after {
  content: "✓";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.counter {
  min-width: 64px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #f3eeff);
  color: #1e40af;
  border: 1px solid #c7dcff;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.panel-kicker {
  display: block;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dbeafe;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.error {
  min-height: 20px;
  margin-top: 12px !important;
  color: #e11d48 !important;
  font-weight: 800;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #f5f8fc;
  color: #0f172a;
}

/* ── Toolbar ── */
.stage-toolbar {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  /* 메인 라벤더 톤과 통일 — 살짝 그라데이션 배경으로 모던하게 */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px -8px rgba(15, 23, 42, 0.10);
  gap: 16px;
}

.stage-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.stage-status strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

/* "수신 중" status — 메인 페이지 chip 톤 통일 (그라데이션 + 펄스 도트) */
.stage-status #connectionStatus {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(49, 130, 246, 0.10), rgba(168, 85, 247, 0.10));
  border: 1px solid rgba(49, 130, 246, 0.18);
  color: #3182f6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.stage-status #connectionStatus.is-receiving {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(22, 163, 74, 0.10));
  border-color: rgba(34, 197, 94, 0.22);
  color: #16a34a;
}
.stage-status #connectionStatus .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: voiceMockPulse 1.6s ease-out infinite;
}
/* status-level (오디오 레벨 바) 제거됨 — 텍스트만 표시 */
.stage-status #connectionStatus .status-level { display: none; }

.stage-status .live-session-timer {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.stage-status .live-session-timer[hidden] {
  display: none;
}

.stage-status .live-session-timer.is-warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.stage-status .live-session-timer.is-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.stage-divider {
  width: 1px;
  height: 20px;
  background: rgba(148, 163, 184, 0.35);
  flex: none;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.toolbar-check {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f6f9fd;
  border: 1px solid rgba(49, 130, 246, 0.12);
  text-transform: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.toolbar-check:has(input:checked) {
  background: linear-gradient(135deg, rgba(49, 130, 246, 0.10), rgba(49, 130, 246, 0.06));
  border-color: rgba(49, 130, 246, 0.28);
  box-shadow: 0 4px 12px rgba(49, 130, 246, 0.08);
}

.toolbar-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

.toolbar-check span {
  color: #334155;
  white-space: nowrap;
}

.toolbar-check:has(input:checked) span {
  color: #1d4ed8;
  font-weight: 800;
}

.record-format-hint {
  max-width: 230px;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.toolbar-select {
  width: auto;
  min-width: 140px;
  height: 32px;
  padding: 0 12px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.toolbar-select:hover {
  border-color: rgba(49, 130, 246, 0.30);
}

.toolbar-select:focus {
  border-color: #3182f6;
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.16);
  outline: none;
}

.toolbar-select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  box-shadow: none;
  cursor: not-allowed;
}

.toolbar-button,
.danger-button {
  min-height: 32px;
  padding: 0 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.15s ease;
}

.toolbar-button {
  background: linear-gradient(135deg, #3182f6, #1b64da);
  border: 0;
  box-shadow: 0 4px 10px -2px rgba(49, 130, 246, 0.30);
}

.toolbar-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -2px rgba(49, 130, 246, 0.40);
}

/* VTT/오디오 저장 — 거의 흰색에 가까운 옅은 파랑 */
.transcript-button.toolbar-button {
  background: linear-gradient(135deg, #f5faff, #eff6ff);
  color: #1d4ed8;
  border: 1px solid rgba(49, 130, 246, 0.20);
  box-shadow: 0 2px 8px -2px rgba(49, 130, 246, 0.12);
}
.transcript-button.toolbar-button:hover {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  box-shadow: 0 4px 12px -2px rgba(49, 130, 246, 0.20);
}

/* 파스텔 톤 — 거의 흰색에 가까운 연한 배경 + 진한 텍스트 */
.record-button {
  background: linear-gradient(135deg, #f6fdf9, #dcfce7);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.20);
  box-shadow: 0 2px 8px -2px rgba(34, 197, 94, 0.12);
}
.record-button:hover {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  box-shadow: 0 4px 12px -2px rgba(34, 197, 94, 0.20);
}

.pause-button {
  background: linear-gradient(135deg, #fffcf3, #fef3c7);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.20);
  box-shadow: 0 2px 8px -2px rgba(245, 158, 11, 0.12);
}
.pause-button:hover {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.20);
}

.record-timer {
  min-width: 84px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-weight: 900;
  font-size: 13px;
  text-align: center;
}

.record-timer.paused {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.record-save-progress {
  min-width: 150px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 900;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.danger-button {
  /* 거의 흰색에 가까운 옅은 분홍 + 진한 빨강 텍스트 */
  background: linear-gradient(135deg, #fff5f5, #fee2e2);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.20);
  box-shadow: 0 2px 8px -2px rgba(239, 68, 68, 0.12);
}

.danger-button:hover {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(239, 68, 68, 0.22);
}

/* ── Caption Grid ── */
.capture-preview {
  position: absolute;
  inset: 58px 0 0 0;
  width: 100%;
  height: calc(100% - 58px);
  object-fit: contain;
  background: #f5f8fc;
}

.stage.has-screen .capture-preview {
  object-fit: cover;
  background: #eef6ff;
}

.capture-preview.hidden {
  display: none;
}

/* Side panel 모드: 영상은 왼쪽, 자막 grid는 오른쪽 사이드 패널 */
.stage.layout-side .capture-preview {
  top: calc(58px + var(--capture-preview-top, 0px));
  right: auto;
  bottom: auto;
  left: var(--capture-preview-left, 0px);
  width: var(--capture-preview-width, calc(100% - var(--live-side-panel-width)));
  height: var(--capture-preview-height, calc(100% - 58px));
  object-fit: contain;
  object-position: center center;
  /* 검정 letterbox 대신 어두운 파란 그라데이션 — 브랜드 톤 유지 + 양옆 빈 영역 자연스럽게 */
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.stage.layout-side.has-screen .capture-preview {
  object-fit: contain;
  background: #eef6ff;
}

/* 자막 사이드 패널 좌측 엣지 핸들 — 영상↔자막 비율 조절 */
.panel-resize-handle {
  position: absolute;
  z-index: 19;
  top: 58px;
  bottom: 0;
  width: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  transition: background 0.15s ease;
}
.panel-resize-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 38px;
  border-radius: 2px;
  background: rgba(49, 130, 246, 0.32);
  transform: translate(-50%, -50%);
  transition: background 0.15s ease, height 0.15s ease;
}
.panel-resize-handle:hover,
.panel-resize-handle.dragging {
  background: rgba(49, 130, 246, 0.14);
}
.panel-resize-handle:hover::before,
.panel-resize-handle.dragging::before {
  background: #3182f6;
  height: 56px;
}
.panel-resize-handle.hidden {
  display: none;
}

@media (max-width: 900px) {
  .panel-resize-handle {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .stage.layout-side .capture-preview {
    inset: 58px 0 50% 0;
    right: 0;
    width: 100%;
    height: 50%;
  }
}

.record-canvas {
  display: none;
}

.camera-crop-box {
  position: absolute;
  z-index: 16;
  border: 2px solid #38bdf8;
  background: rgba(14, 165, 233, 0.08);
  box-shadow:
    0 0 0 9999px rgba(241, 245, 249, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  cursor: move;
  touch-action: none;
}

.camera-crop-box.dragging {
  border-color: #facc15;
}

.crop-label {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.crop-handle {
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #38bdf8;
  cursor: nwse-resize;
}

.caption-grid {
  position: absolute;
  inset: 58px 0 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
}

/* Side panel 모드 (카메라/화면공유): 사용자 요청 — 세로(상하) 분할 고정 */
.stage.layout-side .caption-grid {
  inset: 58px 0 0 auto;
  width: var(--live-side-panel-width);
  border-left: 1px solid #dbe4f0;
  background: #ffffff;
  box-shadow: -12px 0 30px rgba(15, 23, 42, 0.06);
  /* 세로(상하) 분할 고정 — pane 2개면 위/아래 50%씩 */
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(var(--pane-count, 2), minmax(0, 1fr)) !important;
}

/* 실시간 모드(마이크 only) 자막 배치 옵션
   - 기본(.layout-grid만): 2×2 바둑판 (updateGridLayout의 inline style)
   - .layout-row:    가로 1행 N열
   - .layout-column: 세로 N행 1열 */
.stage.layout-grid.layout-row .caption-grid {
  grid-template-columns: repeat(var(--pane-count, 2), minmax(0, 1fr)) !important;
  grid-template-rows: 1fr !important;
}
.stage.layout-grid.layout-column .caption-grid {
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(var(--pane-count, 2), minmax(0, 1fr)) !important;
}
.stage.layout-side .caption-pane {
  border-right: 0;
  padding: 14px 18px 16px;  /* 컴팩트 */
}
.stage.layout-side .caption-pane header {
  margin-bottom: 10px;
  gap: 8px;
}
.stage.layout-side .caption-pane header strong {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage.layout-side .caption-pane .pane-status {
  font-size: 11px;
}
/* 사이드 패널 텍스트: 슬라이더 값(--pane-font-size) 사용, 한국어 줄바꿈 자연스럽게 */
.stage.layout-side .pane-final,
.stage.layout-side .pane-live {
  font-size: var(--pane-font-size, 18px);
  line-height: 1.55;
  word-break: keep-all;       /* 한국어 단어 안 쪼개기 */
  overflow-wrap: break-word;  /* 너무 긴 단어는 강제 줄바꿈 */
}
@media (max-width: 900px) {
  .stage.layout-side .caption-grid {
    inset: auto 0 0 0;
    width: 100%;
    height: 50%;
    border-left: 0;
    border-top: 1px solid #dbe4f0;
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.06);
  }
}

.caption-pane {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid #dbe4f0;
  border-bottom: 1px solid #dbe4f0;
  padding: 22px 26px 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  transition: background 0.2s ease;
}

.caption-pane:hover {
  background: #f8fbff;
}

.caption-pane header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex: none;
}

/* 메인 hero eyebrow chip과 통일 — 그라데이션 배경 + 도트 */
.caption-pane header strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(49, 130, 246, 0.08), rgba(49, 130, 246, 0.08));
  border: 1px solid rgba(49, 130, 246, 0.18);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3182f6;
}
.caption-pane header strong::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
/* source pane은 파랑, target pane들은 초록 파스텔 톤으로 구분 */
.caption-pane[data-pane="source"] header strong,
.stage.layout-side .caption-pane[data-pane="source"] header strong {
  background: linear-gradient(135deg, rgba(49, 130, 246, 0.08), rgba(49, 130, 246, 0.08));
  border-color: rgba(49, 130, 246, 0.18);
  color: #3182f6;
}
.caption-pane:not([data-pane="source"]) header strong,
.stage.layout-side .caption-pane:not([data-pane="source"]) header strong {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(22, 163, 74, 0.08));
  border-color: rgba(34, 197, 94, 0.22);
  color: #16a34a;
}

.pane-status {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  padding: 0;
  border: 0;
  letter-spacing: 0.01em;
}

.pane-status.connected {
  color: #16a34a;
}
.pane-status.connected::before {
  content: "● ";
  font-size: 8px;
}

.pane-status.reconnecting {
  color: #d97706;
}
.pane-status.reconnecting::before {
  content: "◐ ";
  font-size: 9px;
}

.pane-status.failed {
  color: #ef4444;
}
.pane-status.failed::before {
  content: "● ";
  font-size: 8px;
}

.caption-pane.pane-reconnecting {
  background: #fffbeb;
}

.caption-pane.pane-failed {
  background: #fff1f2;
}

.pane-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* Side / Grid 모드에서는 사용자 스크롤 허용 (과거 자막 다시 읽기) */
.stage.layout-side .pane-body,
.stage.layout-grid .pane-body {
  overflow-y: auto;
  scroll-behavior: smooth;
}

.caption-pane.is-empty .pane-body {
  overflow-y: hidden;
}

.pane-body::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48px;
  background: linear-gradient(transparent, #ffffff);
  pointer-events: none;
}
/* 사이드 모드에선 그라데이션이 텍스트 가리지 않게 */
.stage.layout-side .pane-body::after {
  display: none;
}

/* 빈 pane placeholder — 자막 들어오면 hidden */
.pane-empty {
  margin: 0;
  padding: 24px;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  opacity: 0.7;
  display: grid;
  place-items: center;
  height: 100%;
  pointer-events: none;
}
.pane-empty.hidden { display: none; }

.pane-final,
.pane-live {
  margin: 0;
  font-size: var(--pane-font-size, var(--grid-font-size));
  line-height: 1.32;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.pane-final {
  color: #0f172a;
  white-space: pre-wrap;
}

.pane-live {
  color: #94a3b8;
  white-space: pre-wrap;
  margin-top: 4px;
}

/* ── Caption Overlay ── */
.caption-overlay {
  position: absolute;
  inset: 58px 0 0 0;
  z-index: 18;
  overflow: hidden;
  pointer-events: none;
}

.stage.has-preview .caption-overlay {
  background: transparent;
}

.live-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.live-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.overlay-lines {
  position: absolute;
  left: var(--overlay-x, 50%);
  top: var(--overlay-y, 76%);
  width: min(86vw, 1280px);
  max-height: 44vh;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.overlay-lines.dragging {
  cursor: grabbing;
}

.overlay-source,
.overlay-translation {
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  letter-spacing: -0.01em;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.95),
    0 0 24px rgba(0, 0, 0, 0.9);
}

.overlay-source {
  color: #fff;
  font-size: var(--overlay-source-size, 46px);
  font-weight: 900;
  line-height: 1.2;
  max-height: calc(var(--overlay-source-size, 46px) * 2.4);
}

.overlay-translation {
  margin-top: 12px;
  color: #fde68a;
  font-size: var(--overlay-target-size, 27px);
  font-weight: 900;
  line-height: 1.22;
  max-height: calc(var(--overlay-target-size, 27px) * 2.44);
}

@media (max-width: 960px) {
  .setup {
    padding: 16px;
  }

  .directory-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-topbar {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .live-setup-head {
    min-height: auto;
    padding-top: 80px;
  }

  .live-setup-head > .secondary-button {
    top: 18px;
    transform: none;
  }

  .topnav {
    display: none;
  }

  .account-menu {
    right: 0;
    width: min(250px, calc(100vw - 32px));
  }

  .account-language-menu {
    right: 0;
    top: calc(100% + 290px);
    width: min(250px, calc(100vw - 32px));
  }

  .account-settings-card.settings-shell {
    width: min(720px, calc(100vw - 24px));
    min-height: calc(100vh - 24px);
  }

  .settings-body {
    grid-template-columns: 1fr;
  }

  .settings-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #eaecf0;
  }

  .settings-tab {
    min-width: 120px;
  }

  .settings-content {
    padding: 22px 18px;
  }

  .hub-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 0;
    padding: 42px 18px 32px;
    text-align: left;
  }

  .hub-hero h1 {
    font-size: 34px;
  }

  .hub-hero-preview {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .hero-preview-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-preview-scene {
    min-height: 260px;
  }

  .category-pills {
    margin-top: 20px;
    justify-content: flex-start;
  }

  .primary-workflows {
    grid-template-columns: 1fr;
    margin-bottom: 34px;
    padding: 10px;
  }

  .tool-more-row {
    margin: -12px auto 38px;
    padding: 0 18px;
  }

  .tool-chooser-overlay {
    padding: 14px;
  }

  .tool-chooser-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    padding: 20px;
    border-radius: 20px;
  }

  .tool-chooser-head {
    align-items: flex-start;
  }

  .workflow-card {
    min-height: 172px;
    padding: 22px;
  }

  .workflow-card:not(:last-child)::after {
    top: auto;
    right: 22px;
    bottom: 0;
    left: 22px;
    width: auto;
    height: 1px;
  }

  .hub-search {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .file-tool-head {
    justify-content: flex-start;
    padding-top: 86px;
  }

  .file-tool-head > .secondary-button {
    top: 20px;
    transform: none;
  }

  .file-tool-title {
    grid-template-columns: 1fr;
  }

  .file-tool-title h1 {
    font-size: 32px;
  }

  .file-tool-layout,
  .file-tool-form,
  .future-steps {
    grid-template-columns: 1fr;
  }

  .file-progress-panel {
    position: static;
  }

  .file-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-tool-grid {
    grid-template-columns: 1fr;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    grid-template-columns: 54px minmax(0, 1fr);
    justify-content: start;
  }

  .tool-card em {
    grid-column: 2;
    grid-row: 3;
    margin-top: 4px;
  }

  .tool-chooser-panel .hub-tool-group .hub-grid {
    grid-template-columns: 1fr;
  }

  .tool-chooser-panel .tool-card:not(.hidden):not(:last-child)::after {
    top: auto;
    right: 18px;
    bottom: 0;
    left: 18px;
    width: auto;
    height: 1px;
  }

  .history-panel {
    margin-top: -12px;
    padding: 0 0 38px;
  }

  .history-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .history-item {
    grid-template-columns: 1fr;
  }

  .history-actions {
    justify-content: flex-start;
  }

  .share-guide-surface,
  .share-guide-head,
  .share-guide-steps {
    grid-template-columns: 1fr;
  }

  .setup-grid,
  .language-layout,
  .input-row {
    grid-template-columns: 1fr;
  }

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

  .live-mode-tabs {
    grid-template-columns: 1fr;
    margin: -4px 0 16px;
  }

  .live-mode-tabs button:not(:last-child)::after {
    top: auto;
    right: 18px;
    bottom: 0;
    left: 18px;
    width: auto;
    height: 1px;
  }

  .intro h1 {
    font-size: 34px;
  }

  .stage-toolbar {
    align-items: flex-start;
    gap: 10px;
  }

  .toolbar-controls {
    flex-wrap: wrap;
  }

  .stage-toolbar {
    height: auto;
    min-height: 58px;
    padding: 8px 12px;
  }

  .caption-grid,
  .caption-overlay,
  .capture-preview {
    inset: auto 0 0 0;
    top: auto;
  }

  .caption-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1760px) {
  .hub-hero {
    max-width: 1960px;
    min-height: calc(100svh - 54px);
    grid-template-columns: minmax(600px, 690px) minmax(0, 1fr);
    grid-template-rows: repeat(5, max-content);
    justify-items: stretch;
    /* 트랙 묶음을 컨테이너 안에서 세로 가운데로 — 1920×1080에서 상단 쏠림 해결 */
    align-content: center;
    text-align: left;
    padding-top: clamp(48px, 6vh, 88px);
    padding-left: clamp(32px, 2.8vw, 56px);
    padding-right: clamp(24px, 2.4vw, 48px);
    padding-bottom: clamp(48px, 6vh, 88px);
  }

  .hub-hero .eyebrow,
  .hub-hero h1,
  .hub-hero > p:not(.eyebrow):not(.hub-notice),
  .hero-actions,
  .hero-trust,
  .hub-notice {
    grid-column: 1;
  }

  .hub-hero h1 {
    max-width: 690px;
    font-size: clamp(64px, 3.95vw, 84px);
  }

  .hub-hero > p:not(.eyebrow):not(.hub-notice) {
    max-width: 620px;
  }

  .hero-actions,
  .hero-trust {
    justify-content: flex-start;
  }

  .hub-hero-preview {
    position: absolute;
    /* 텍스트 묶음과 같은 세로 가운데 정렬 */
    top: 50%;
    right: clamp(24px, 2.4vw, 48px);
    grid-column: auto;
    grid-row: auto;
    height: clamp(640px, 60vh, 800px);
    width: min(52vw, 1080px);
    transform: translateY(-50%);
    justify-self: auto;
    margin-top: 0;
  }

  .voice-object-screen {
    width: 100%;
    height: min(780px, 92%);
  }

  .hero-preview-scene {
    min-height: 380px;
  }

  .hero-preview-scene--demo {
    min-height: 340px;
  }

  .tool-directory,
  .primary-workflows,
  .example-showcase {
    max-width: 1720px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .hub-grid {
    gap: 24px;
  }

  .primary-workflows {
    gap: 28px;
    margin-top: 86px;
    margin-bottom: 112px;
  }

  .example-grid {
    gap: 28px;
  }

  .workflow-card {
    min-height: 206px;
    padding: 38px 40px 30px;
  }

  .live-preview-frame,
  .player-preview-frame,
  .audio-preview-frame {
    min-height: 258px;
  }

  .history-panel {
    max-width: 1720px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .hub-tool-groups {
    gap: 38px;
  }

  .tool-card {
    min-height: 124px;
    padding: 22px 24px;
  }

  .example-card {
    min-height: 430px;
    padding: 28px;
  }

  .example-card-live {
    min-height: 650px;
  }
}

/* ---------- Auth gate ---------- */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: rgba(244, 246, 249, 0.88);
  overflow-y: auto;
  scrollbar-width: none;
  backdrop-filter: blur(10px);
}

.reset-auth-gate {
  position: static;
  min-height: 100vh;
}

.auth-card {
  position: relative;
  width: min(420px, 100%);
  margin: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 26px 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.auth-gate::-webkit-scrollbar { display: none; }

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #667085;
  font-size: 24px;
  line-height: 1;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.auth-close:hover {
  background: #f4f6f9;
  border-color: var(--line);
  color: #111827;
}

.auth-language {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
}

.auth-language-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #e1e7f0;
  border-radius: 999px;
  background: #ffffff;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.auth-language-button:hover {
  border-color: #b8c7dc;
  background: #f8fafc;
}

.auth-language-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: 150px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.auth-language-menu[hidden] {
  display: none;
}

.auth-language-menu button {
  width: 100%;
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.auth-language-menu button:hover {
  background: #f7f9fc;
  color: #0f172a;
}

.auth-language-menu button.is-active {
  color: #1b64da;
  font-weight: 800;
}

.auth-language-menu button.is-active::after {
  content: "✓";
  color: #1b64da;
  font-weight: 900;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.auth-brand h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.auth-brand-mark {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;  /* 원형 */
  background: linear-gradient(135deg, #4a8cf7, #2d6fe6);
  padding: 6px;
}

.auth-tagline {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.google-sign-in {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.google-sign-in:hover {
  background: #f7f9fc;
  border-color: #d4dcea;
}

.google-sign-in:active {
  transform: scale(0.99);
}

.auth-error {
  margin: 14px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: #d92d20;
}

.auth-fineprint {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  animation: confirmFade 0.15s ease;
}
.confirm-modal[hidden] { display: none; }

@keyframes confirmFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.confirm-modal__card {
  width: min(360px, 100%);
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 24px 20px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.18);
  text-align: center;
  animation: confirmPop 0.18s ease;
}

@keyframes confirmPop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.confirm-modal__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.confirm-modal__message {
  margin: 0 0 22px;
  color: #475467;
  font-size: 14px;
  line-height: 1.55;
}

.confirm-modal__actions {
  display: flex;
  gap: 8px;
}

.confirm-modal__btn {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.confirm-modal__btn--cancel {
  background: #f4f6f9;
  color: #475467;
}
.confirm-modal__btn--cancel:hover { background: #e8ecf2; }

.confirm-modal__btn--ok {
  background: var(--blue);
  color: #ffffff;
}
.confirm-modal__btn--ok:hover { background: var(--blue-dark); }


.auth-tabs {
  display: inline-flex;
  margin: 0 0 18px;
  background: #f4f6f9;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.auth-tab {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #667085;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.auth-tab.is-active {
  background: #ffffff;
  color: #3182f6;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #344054;
  font-weight: 500;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  background: #ffffff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  box-sizing: border-box;
}

.auth-email-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.auth-email-wrap input {
  min-width: 0;
}

.auth-email-verify,
.auth-code-verify {
  flex: 0 0 auto;
  border: 1px solid #bfd5ff;
  background: #eef5ff;
  color: #1b64da;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.auth-email-verify:hover,
.auth-code-verify:hover {
  background: #e1edff;
}

.auth-field input:focus {
  outline: none;
  border-color: #3182f6;
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.18);
}

.auth-pw-wrap {
  position: relative;
  display: block;
}

.auth-pw-wrap input {
  padding-right: 40px;
}

.auth-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 6px;
  color: #667085;
}

.auth-pw-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.auth-reset-info {
  margin: 0 0 4px;
  padding: 10px 12px;
  background: #f7f9fc;
  border-radius: 10px;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.auth-reset-info span {
  color: #1b64da;
  font-weight: 600;
}

.auth-code-input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-sizing: border-box;
  appearance: none;
  text-align: left;
  font-size: 15px !important;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.auth-code-input:focus {
  outline: none;
  border-color: #3182f6;
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.18);
}

.auth-inline-verify {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-inline-verify p {
  margin: 0 0 6px;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
}

.auth-inline-verify strong {
  color: #1b64da;
  font-variant-numeric: tabular-nums;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
  align-items: stretch;
}

.auth-submit {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  border: none;
  background: #3182f6;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, transform 80ms ease;
  margin-top: 4px;
}

.auth-submit:hover { background: #1b64da; }
.auth-submit:active { transform: scale(0.99); }
.auth-submit:disabled { background: #c8d3e6; cursor: not-allowed; }

.auth-row-links {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.auth-link-btn {
  background: transparent;
  border: none;
  color: #3182f6;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 2px;
  font-weight: 500;
}

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

.auth-language {
  display: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  color: #1b4ea8;
  font-size: 13px;
  text-align: left;
}

/* ---------- Topbar user pill ---------- */
.user-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  order: 10;
  padding: 6px 6px 6px 14px;
  background: #f4f6f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: #1f2937;
}

.user-pill[hidden] { display: none; }

.header-language {
  position: relative;
  margin-left: 0;
  order: 20;
}

.topnav + .header-language {
  margin-left: 0;
}

.user-pill .header-language {
  margin-left: 0;
}

.header-language-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #e1e7f0;
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.user-pill .header-language-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.header-language-button:hover {
  border-color: #b8c7dc;
  background: #f8fafc;
}

.header-language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 75;
  width: 150px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.header-language-menu[hidden] {
  display: none;
}

.header-language-menu button {
  width: 100%;
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.header-language-menu button:hover {
  background: #f7f9fc;
  color: #0f172a;
}

.header-language-menu button.is-active {
  color: #1b64da;
  font-weight: 800;
}

.header-language-menu button.is-active::after {
  content: "✓";
  color: #1b64da;
  font-weight: 900;
}

.user-menu-button {
  display: inline-flex;
  align-items: center;
  max-width: 240px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
}

.user-menu-button:hover .user-pill-email {
  color: var(--blue);
}

.user-pill-email {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu,
.account-language-menu {
  position: absolute;
  top: calc(100% + 10px);
  z-index: 70;
  width: 250px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.account-menu {
  right: 0;
}

.account-language-menu {
  right: 258px;
  width: 152px;
}

.account-menu[hidden],
.account-language-menu[hidden] {
  display: none;
}

.account-menu-email {
  padding: 8px 8px 12px;
  color: #667085;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.account-menu-item,
.account-language-menu button {
  width: 100%;
  min-height: 38px;
  display: grid;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.account-menu-item {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 8px;
}

.account-language-menu button {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0 14px;
}

.account-menu-item:hover,
.account-language-menu button:hover {
  background: #f7f9fc;
  color: #0f172a;
}

.account-menu-icon {
  color: #98a2b3;
  font-weight: 800;
  text-align: center;
}

.account-menu-chevron,
.account-menu-external {
  color: #98a2b3;
  font-size: 18px;
  line-height: 1;
}

.account-menu-divider {
  height: 1px;
  margin: 10px 0;
  background: #eaecf0;
}

.account-language-menu button.is-active {
  color: #1b64da;
  font-weight: 800;
}

.account-language-menu button.is-active::after {
  content: "✓";
  color: #1b64da;
  font-weight: 900;
}

.user-pill-signout {
  border: none;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #475467;
}

.user-pill-signout:hover { background: #f7f9fc; }

.user-pill-settings {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
}

.user-pill-settings:hover { background: #f7f9fc; }

.user-pill-delete {
  background: #fff5f5;
  border: 1px solid #fecaca;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #b42318;
  cursor: pointer;
}

.user-pill-delete:hover { background: #fee4e2; }
.user-pill-delete:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  order: 10;
}
.auth-buttons[hidden] { display: none; }

.header-login {
  border: none;
  background: transparent;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.header-login:hover { background: #f4f6f9; color: #0f172a; }

.header-signup {
  border: none;
  background: var(--blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(49, 130, 246, 0.22);
  transition: background 0.15s ease, transform 0.1s ease;
}
.header-signup:hover { background: var(--blue-dark); transform: translateY(-1px); }
.header-signup:active { transform: translateY(0); }

/* ---------- Account settings ---------- */
.account-settings {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: grid;
  place-items: center;
  padding: 24px 20px;
  background: rgba(244, 246, 249, 0.78);
  backdrop-filter: blur(10px);
}

.account-settings-card {
  position: relative;
  width: min(620px, calc(100vw - 40px));
  overflow: visible;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.account-settings-card.settings-shell {
  width: min(880px, calc(100vw - 40px));
  min-height: min(660px, calc(100vh - 46px));
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.account-settings-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #667085;
  font-size: 24px;
  line-height: 1;
}

.account-settings-close:hover {
  background: #f4f6f9;
  border-color: var(--line);
  color: #111827;
}

.account-settings-head {
  padding-right: 34px;
  margin-bottom: 18px;
}

.settings-shell .account-settings-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 0 72px 0 28px;
  margin: 0;
  border-bottom: 1px solid #eaecf0;
}

.account-settings-head h2 {
  margin: 2px 0 6px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.settings-shell .account-settings-head h2 {
  margin: 0;
  font-size: 18px;
}

.account-settings-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.settings-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 580px;
}

.settings-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  border-right: 1px solid #eaecf0;
}

.settings-tab {
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #475467;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.settings-tab span:first-child {
  color: #98a2b3;
}

.settings-tab:hover,
.settings-tab.is-active {
  background: #f7f8fa;
  color: #0f172a;
}

.settings-content {
  padding: 28px 34px;
}

.settings-panel h3 {
  margin: 0 0 28px;
  color: #101828;
  font-size: 20px;
  font-weight: 700;
}

.settings-history-panel .history-panel-head {
  align-items: center;
  margin-bottom: 18px;
}

.settings-history-panel .history-panel-head h3 {
  margin: 0;
  color: #101828;
  font-size: 20px;
  font-weight: 700;
}

.settings-history-panel .history-panel-head p {
  margin-top: 6px;
}

.settings-history-panel .history-item {
  box-shadow: none;
}

.settings-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.settings-avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #5f4036;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
}

.settings-light-button,
.settings-danger-light {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.settings-light-button {
  border: 1px solid #d8dce6;
  color: #344054;
}

.settings-danger-light {
  border: 1px solid #fecdd3;
  color: #e11d48;
}

.settings-field {
  display: grid;
  gap: 9px;
  margin-bottom: 24px;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.settings-field input,
.settings-field textarea {
  width: 100%;
  border: 1px solid #d8dce6;
  border-radius: 9px;
  background: #ffffff;
  color: #101828;
  font-size: 15px;
  font-weight: 500;
  box-sizing: border-box;
}

.settings-field input {
  height: 52px;
  padding: 0 16px;
}

.settings-field textarea {
  min-height: 118px;
  padding: 16px;
  resize: vertical;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
}

.settings-save {
  min-width: 76px;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: #123967;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.account-danger-form {
  display: contents;
}

.settings-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #eaecf0;
}

.settings-account-row strong,
.settings-consent-row strong {
  display: block;
  margin-bottom: 8px;
  color: #101828;
  font-size: 14px;
}

.settings-account-row p,
.settings-consent-row p {
  margin: 0;
  color: #475467;
  line-height: 1.55;
}

.settings-consent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.settings-switch input {
  position: absolute;
  opacity: 0;
}

.settings-switch span {
  width: 46px;
  height: 26px;
  display: block;
  border-radius: 999px;
  background: #d0d5dd;
  position: relative;
}

.settings-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
  transition: transform 0.16s ease;
}

.settings-switch input:checked + span {
  background: #123967;
}

.settings-switch input:checked + span::after {
  transform: translateX(20px);
}

.settings-admin-panel {
  display: grid;
  gap: 18px;
}

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

.admin-stat,
.admin-check {
  border: 1px solid #d9e3f1;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.admin-stat span,
.admin-check span,
.admin-check p {
  color: #64748b;
  font-size: 13px;
}

.admin-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  color: #0f172a;
}

.admin-diagnostics-head {
  margin-top: 6px;
}

.admin-diagnostics-list {
  display: grid;
  gap: 10px;
}

.admin-check {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
}

.admin-check p {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-check.is-ok span {
  color: #16a34a;
}

.admin-check.is-bad span {
  color: #dc2626;
}

.settings-shell .account-password-form,
.settings-shell .account-danger-zone {
  border-radius: 10px;
}

.account-password-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}

.account-password-form h3,
.account-danger-zone h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.account-password-form p,
.account-danger-zone p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.account-settings-notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
  color: #1b4ea8;
  font-size: 13px;
}

.account-settings-notice[data-tone="success"] {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

.account-settings-notice[data-tone="error"] {
  background: #fff1f3;
  border-color: #fecdd3;
  color: #b42318;
}

.account-danger-zone {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 16px;
  padding: 15px 18px;
  border: 1px solid #fecaca;
  border-radius: 16px;
  background: #fff7f7;
}

.account-delete-field {
  margin-top: 2px;
}

.account-delete-field input {
  background: #ffffff;
}

.account-delete-button {
  border: 1px solid #fda29b;
  background: #ffffff;
  color: #b42318;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.account-delete-button:hover { background: #fee4e2; }

.usage-pill-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.usage-pill-wrap[hidden] { display: none; }

.usage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #475467;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.usage-pill:hover { background: #f7f9fc; border-color: #cbd5e1; }
.usage-pill__icon { font-size: 13px; line-height: 1; }
.usage-pill__label { font-weight: 600; }

.usage-pill.is-warning { background: #fff7ed; border-color: #fdba74; color: #c2410c; }
.usage-pill.is-danger { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }

.usage-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: 300px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}
.usage-popover[hidden] { display: none; }
.usage-popover h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.usage-popover__row { margin-bottom: 14px; }
.usage-popover__row:last-of-type { margin-bottom: 10px; }
.usage-popover__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 13px;
  color: #475467;
}
.usage-popover__head strong {
  color: #0f172a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.usage-popover__bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 5px;
}
.usage-popover__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
}
.usage-popover__bar-fill.is-warning { background: #f97316; }
.usage-popover__bar-fill.is-danger { background: #ef4444; }
.usage-popover__row small {
  color: #94a3b8;
  font-size: 11px;
}
.usage-popover__note {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  color: #94a3b8;
  font-size: 11px;
  text-align: center;
}
