/* [project]/app/globals.css [app-client] (css) */
:root {
  --ink: #273a34;
  --muted: #64736d;
  --accent: #375d4e;
  --font: -apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif;
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background: #e8ece7;
  margin: 0;
  line-height: 1.5;
}

body:before {
  content: "";
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(at 50% 12%, #faf7eb 0, #0000 53%), radial-gradient(at 4% 63%, #ccdcd3aa, #0000 50%), radial-gradient(at 95% 85%, #d5d0c180, #0000 55%), linear-gradient(150deg, #eff0e9, #e4eae4);
  position: fixed;
  inset: 0;
}

button, input, textarea {
  font: inherit;
}

button, a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

button, a, textarea {
  transition: background .2s, box-shadow .2s, border-color .2s;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline-offset: 4px;
  outline: 3px solid #507f69;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(100% - 64px, 1020px);
  margin: auto;
  padding: 24px 0 20px;
}

.topbar {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.brand {
  color: var(--ink);
  letter-spacing: -.6px;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 650;
  text-decoration: none;
  display: flex;
}

.brand img {
  object-fit: contain;
  width: 38px;
  height: 38px;
}

.brand strong {
  color: #65736b;
  font-weight: 400;
}

.language-switch {
  color: #99a39b;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  display: flex;
}

.language-switch button {
  color: #6b776f;
  background: none;
  border: 0;
  border-radius: 9px;
  min-height: 44px;
  padding: 10px;
  font-size: 12px;
}

.hero {
  text-align: center;
  padding: 12px 0 28px;
}

.hero h1 {
  letter-spacing: -1.2px;
  margin: 7px 0 9px;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 550;
  line-height: 1.32;
}

.hero p {
  color: var(--muted);
  max-width: 610px;
  margin: 0 auto;
  font-size: 14px;
}

.orb-scene {
  place-items: center;
  width: 160px;
  height: 144px;
  margin: auto;
  display: grid;
  position: relative;
}

.orb-scene:before {
  content: "";
  z-index: -1;
  background: radial-gradient(#eaf8d7aa, #0000 65%);
  width: 240px;
  height: 180px;
  position: absolute;
}

.voice-orb {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: radial-gradient(circle at 30% 18%, #fff9, #0000 37%), radial-gradient(circle at 71% 81%, #84a48f80, #0000 66%), linear-gradient(140deg, #eaf2e891, #c7d9bf48);
  border: 1px solid #fff9;
  border-radius: 50%;
  place-items: center;
  width: 112px;
  height: 112px;
  animation: 7s ease-in-out infinite orb-breathe;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 5px #fffd, inset 0 -6px 16px #547e6b20, 0 16px 28px -17px #3a6c5270;
}

.orb-light {
  border: 1px solid #fff4;
  border-right-color: #0000;
  border-radius: 50%;
  position: absolute;
  inset: 8px;
  transform: rotate(-28deg);
}

.orb-ring {
  border: 1px solid #98af9a26;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  position: absolute;
  top: 32px;
  transform: rotateX(66deg) rotate(-18deg);
}

.wave {
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 80%;
  height: 62px;
  display: flex;
}

.wave i {
  width: 3px;
  height: var(--bar);
  opacity: .75;
  transform-origin: center;
  min-height: 5px;
  animation: 5s ease-in-out infinite bar-breathe;
  animation-delay: var(--delay);
  background: linear-gradient(#789981, #325847);
  border-radius: 6px;
  transform: scaleY(.68);
}

.preparing .wave i {
  animation-duration: 2.3s;
}

.generating .wave i {
  animation-duration: .65s;
}

.generating .voice-orb {
  animation-duration: 2s;
}

.result .wave i {
  animation: none;
  transform: scaleY(.65);
}

.studio {
  border-radius: 24px;
  overflow: hidden;
}

.glass {
  -webkit-backdrop-filter: blur(22px) saturate(115%);
  background: linear-gradient(120deg, #ffffff80, #ffffff40);
  border: 1px solid #ffffffc0;
  position: relative;
  box-shadow: inset 0 1px #fffd, 0 16px 45px -28px #31473855, 0 3px 9px #43514208;
}

.studio-toolbar {
  background: #ffffff20;
  border-bottom: 1px solid #ffffff80;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 27px;
  display: flex;
}

.studio-toolbar h2 {
  letter-spacing: 1.5px;
  color: #64776b;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  display: flex;
}

.studio-symbol {
  color: #5e7a68;
  font-size: 21px;
  line-height: 1;
}

.status {
  color: #6c756d;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  display: flex;
}

.status-dot {
  background: #9b9d85;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.studio-grid {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 29px;
  padding: 26px 28px 20px;
  display: grid;
}

.source-panel {
  border-right: 1px solid #8195831c;
  min-width: 0;
  padding-right: 28px;
}

.script-panel {
  min-width: 0;
}

.panel-heading {
  align-items: center;
  gap: 9px;
  display: flex;
}

.step {
  color: #758777;
  font-variant-numeric: tabular-nums;
  border: 1px solid #9cafa32b;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 9px;
}

.panel-heading h3 {
  letter-spacing: -.3px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.panel-note {
  color: var(--muted);
  margin: 6px 0 18px;
  font-size: 11px;
}

.upload-zone {
  text-align: center;
  background: #e4ede233;
  border: 1px dashed #94a7957a;
  border-radius: 15px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 185px;
  padding: 20px 16px 13px;
  transition: background .2s, border-color .2s;
  display: flex;
  box-shadow: inset 0 1px #ffffff94;
}

.upload-zone:hover:not(.locked), .upload-zone.dragging {
  background: #dce8d66b;
  border-color: #63826a;
}

.source-icon {
  color: #61816b;
  background: #c9d9c851;
  border-radius: 10px;
  place-items: center;
  width: 35px;
  height: 35px;
  margin-bottom: 9px;
  display: grid;
  box-shadow: inset 0 1px #ffffff6b;
}

.source-icon svg {
  width: 23px;
  height: 23px;
}

.upload-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 550;
}

.upload-note {
  color: #69796e;
  margin: 0;
  font-size: 10px;
}

.choose-button {
  color: #3d5a45;
  background: #ffffff75;
  border: 1px solid #9daf9a66;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 44px;
  margin: 11px 0 4px;
  padding: 8px 13px;
  font-size: 11px;
  display: flex;
  box-shadow: inset 0 1px #fffc;
}

.choose-button:hover {
  background: #ffffffc0;
}

.drop-note {
  color: #728071;
  margin: 4px 0;
  font-size: 9px;
}

.selected {
  background: linear-gradient(135deg, #eff4e76b, #d8e5d649);
  border-style: solid;
  min-height: 185px;
}

.file-info {
  width: 100%;
  min-width: 0;
}

.file-name {
  overflow-wrap: anywhere;
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.file-actions {
  border-top: 1px solid #748d701a;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 16px;
  padding-top: 4px;
  display: flex;
}

.quiet-button {
  color: #456950;
  background: none;
  border: 0;
  border-radius: 7px;
  min-height: 44px;
  padding: 10px 9px;
  font-size: 11px;
}

.transcript-toggle {
  text-align: left;
  color: #586d5c;
  background: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 15px 0 11px;
  font-size: 10px;
  display: flex;
}

.transcript-toggle small {
  color: #758376;
  font-size: 9px;
  font-weight: 400;
}

textarea {
  width: 100%;
  color: var(--ink);
  resize: vertical;
  background: #ffffff5c;
  border: 1px solid #b8c6b754;
  border-radius: 11px;
  min-height: 80px;
  padding: 13px;
  font-size: 13px;
  line-height: 1.7;
  display: block;
  box-shadow: inset 0 1px 3px #40554203;
}

textarea:focus {
  background: #ffffff90;
  border-color: #6e8b74;
}

textarea:disabled {
  opacity: .7;
}

.hint {
  color: #667b6b;
  margin: 8px 0 13px;
  font-size: 10px;
  line-height: 1.65;
}

.consent {
  color: #586b5d;
  cursor: pointer;
  align-items: flex-start;
  gap: 9px;
  min-height: 44px;
  margin: 13px 0 0;
  font-size: 11px;
  line-height: 1.7;
  display: flex;
}

.consent input {
  appearance: none;
  cursor: pointer;
  background: #ffffff70;
  border: 1px solid #899d865e;
  border-radius: 5px;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  position: relative;
}

.consent input:checked:after {
  content: "";
  border: 1.5px solid #fff;
  border-width: 0 1.5px 1.5px 0;
  width: 4px;
  height: 8px;
  position: absolute;
  top: 2px;
  left: 5px;
  transform: rotate(45deg);
}

.script-editor {
  background: #ffffff52;
  border: 1px solid #fff9;
  border-radius: 14px;
  padding: 15px 16px 9px;
  position: relative;
  box-shadow: inset 0 1px #fffd, 0 3px 8px #3f554b04;
}

.script-editor textarea {
  min-height: 178px;
  box-shadow: none;
  resize: vertical;
  border: 0;
  border-radius: 3px;
  padding: 11px 0 6px;
  font-size: 16px;
  line-height: 1.8;
  background: none !important;
}

.script-editor textarea:focus-visible {
  outline-offset: 5px;
  outline-width: 2px;
}

.editor-bottom {
  color: #748575;
  border-top: 1px solid #9aaf9e1c;
  justify-content: space-between;
  align-items: center;
  padding-top: 7px;
  font-size: 10px;
  display: flex;
}

.editor-bottom > span:first-child {
  letter-spacing: -1px;
  color: #93a192;
  font-size: 14px;
}

.character-count {
  font-variant-numeric: tabular-nums;
  font-size: 9px;
}

.primary-button {
  color: #fcfff8;
  background: #355840;
  border: 1px solid #38573e;
  border-radius: 11px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 17px;
  font-size: 12px;
  font-weight: 550;
  display: flex;
  box-shadow: inset 0 1px #ffffff24, 0 5px 12px #294b3012;
}

.primary-button svg {
  width: 19px;
  height: 19px;
}

.action-arrow {
  margin-left: auto;
}

.primary-button > svg {
  margin-right: auto;
}

.primary-button {
  padding: 0 17px;
}

.is-generating .action-arrow {
  animation: 2s linear infinite spin;
}

.studio-footnote {
  text-align: center;
  color: #778575;
  background: #fff2;
  border-top: 1px solid #ffffff80;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 9px;
  display: flex;
}

.studio-footnote p {
  margin: 0;
}

.studio-footnote > span {
  color: #7a917d;
  font-size: 15px;
}

.error-notice {
  color: #895f48;
  overflow-wrap: anywhere;
  background: #f4e5dd75;
  border: 1px solid #d8b8a970;
  border-radius: 10px;
  margin: 0 28px 18px;
  padding: 11px 14px;
  font-size: 12px;
}

.result-workspace {
  animation: .3s ease-out reveal;
}

.eyebrow {
  letter-spacing: 1px;
  color: #6b8270;
  margin: 0 0 5px;
  font-size: 9px;
  font-weight: 600;
}

.result-workspace h3 {
  letter-spacing: -.5px;
  margin: 0;
  font-size: 22px;
  font-weight: 550;
}

.result-wave {
  background: linear-gradient(140deg, #d7e9d34a, #ffffff30);
  border: 1px solid #ffffff80;
  border-radius: 13px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 143px;
  margin: 12px 0;
  display: flex;
}

.result-wave .wave {
  gap: 8px;
  width: 85%;
  height: 75px;
}

.result-wave .wave i {
  opacity: .65;
  width: 4px;
  animation: none;
}

.duration-pill {
  color: #69816b;
  margin-top: 4px;
  font-size: 9px;
}

audio {
  border-radius: 12px;
  width: 100%;
  height: 40px;
  display: block;
}

.generation-time {
  color: #6c7d6d;
  text-align: center;
  margin: 13px 0;
  font-size: 10px;
}

.generation-time strong {
  color: #4d6854;
  font-weight: 550;
}

.result-actions {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.secondary-button {
  color: #fff;
  background: #4b7154;
  border: 1px solid #3f6448;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 25px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 11px;
  text-decoration: none;
  display: flex;
}

.retention {
  text-align: center;
  color: #7c887b;
  margin: 10px 0 0;
  font-size: 9px;
}

footer {
  color: #7a8577;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding-top: 22px;
  font-size: 10px;
  display: flex;
}

footer a {
  color: #687e69;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

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

.upload-section:focus-within .upload-zone {
  border-color: #65816c;
}

@keyframes orb-breathe {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.025);
  }
}

@keyframes bar-breathe {
  0%, 100% {
    transform: scaleY(.55);
  }

  50% {
    transform: scaleY(.95);
  }
}

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

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1400px) {
  .page-shell {
    padding-top: 28px;
  }

  .hero {
    padding-top: 18px;
    padding-bottom: 32px;
  }
}

@media (max-width: 800px) {
  .page-shell {
    width: calc(100% - 40px);
  }

  .studio-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 22px;
    padding: 23px;
  }

  .source-panel {
    padding-right: 22px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .script-editor textarea {
    min-height: 198px;
  }

  .panel-note {
    min-height: 33px;
  }

  .result-actions {
    flex-wrap: wrap;
  }

  .secondary-button {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 28px);
    padding-top: 15px;
  }

  .brand {
    gap: 7px;
    font-size: 18px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .language-switch {
    gap: 1px;
  }

  .language-switch button {
    padding: 8px;
  }

  .hero {
    padding: 8px 5px 23px;
  }

  .hero h1 {
    letter-spacing: -.8px;
    margin: 3px 0 10px;
    font-size: 28px;
    line-height: 1.35;
  }

  .hero p {
    max-width: 340px;
    font-size: 12px;
    line-height: 1.8;
  }

  .orb-scene {
    width: 136px;
    height: 122px;
  }

  .voice-orb {
    width: 94px;
    height: 94px;
  }

  .orb-ring {
    width: 120px;
    height: 120px;
    top: 26px;
  }

  .orb-scene:before {
    width: 190px;
    height: 140px;
  }

  .studio {
    border-radius: 19px;
  }

  .studio-toolbar {
    padding: 13px 19px;
  }

  .studio-toolbar h2 {
    letter-spacing: 1px;
    font-size: 9px;
  }

  .status {
    font-size: 9px;
  }

  .studio-grid {
    flex-direction: column;
    gap: 24px;
    padding: 22px 19px 20px;
    display: flex;
  }

  .source-panel {
    border-bottom: 1px solid #81958326;
    border-right: 0;
    padding-bottom: 21px;
    padding-right: 0;
  }

  .panel-heading h3 {
    font-size: 16px;
  }

  .panel-note {
    min-height: 0;
    margin-bottom: 14px;
    font-size: 11px;
  }

  .upload-zone {
    min-height: 164px;
    padding-top: 16px;
  }

  .choose-button {
    min-height: 44px;
    font-size: 12px;
  }

  .drop-note {
    display: none;
  }

  .transcript-toggle {
    padding-top: 13px;
    font-size: 11px;
  }

  .transcript-toggle small {
    font-size: 10px;
  }

  .consent {
    min-height: 44px;
    margin-top: 10px;
    font-size: 12px;
  }

  .quiet-button {
    font-size: 12px;
  }

  .script-editor {
    padding: 14px 14px 9px;
  }

  .script-editor textarea {
    min-height: 205px;
    font-size: 16px;
  }

  .primary-button {
    min-height: 50px;
    margin-top: 14px;
    font-size: 13px;
  }

  .studio-footnote {
    padding: 13px 17px;
    font-size: 10px;
    line-height: 1.7;
  }

  .error-notice {
    margin: 0 19px 18px;
  }

  .result-wave {
    min-height: 157px;
  }

  .result-actions {
    flex-wrap: nowrap;
  }

  .secondary-button {
    gap: 13px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .retention {
    font-size: 10px;
  }

  footer {
    gap: 6px;
    padding: 19px 2px 0;
    font-size: 9px;
  }

  .result-workspace h3 {
    font-size: 23px;
  }

  .result-wave .wave {
    gap: 6px;
  }
}

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

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background: #eef2e9;
  }

  .voice-orb {
    background: #dce8d7;
  }
}

.script-panel {
  position: relative;
}

.generation-stage {
  text-align: center;
  isolation: isolate;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 345px;
  display: flex;
}

.generation-stage.idle {
  display: none;
}

.generation-heading {
  width: 100%;
  padding: 0 12px;
}

.generation-heading .eyebrow {
  color: #778a89;
  letter-spacing: .4px;
  font-size: 9px;
  font-weight: 500;
}

.generation-heading h3 {
  letter-spacing: -.6px;
  color: #2f464b;
  margin: 5px 0 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
}

.activity-glass {
  isolation: isolate;
  background: linear-gradient(130deg, #ffffff64, #e7f2f93b);
  border: 1px solid #fff9;
  border-radius: 18px;
  place-items: center;
  width: 100%;
  height: 145px;
  margin: 19px 0 13px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px #fffd, 0 5px 16px #6484a30a;
}

.activity-bloom {
  opacity: .7;
  background: radial-gradient(#a0dcf255, #abcaf529 47%, #0000 72%);
  border-radius: 50%;
  animation: 4s ease-in-out infinite activity-bloom;
  position: absolute;
  inset: 8px 12px;
  transform: scale(.91);
}

.activity-line {
  background: linear-gradient(90deg, #0000, #9de7f3aa, #b5c2ee9c, #0000);
  height: 1px;
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  box-shadow: 0 0 7px #80dcf355;
}

.activity-caption {
  color: #547281;
  margin: 0;
  font-size: 12px;
}

.activity-explanation {
  color: #7a8d8b;
  margin: 9px 0 0;
  padding: 0 12px;
  font-size: 9px;
  line-height: 1.8;
}

.generation-stage.resolved, .generation-stage.failed {
  z-index: 2;
  pointer-events: none;
  background: #eff3ebde;
  border-radius: 14px;
  min-height: 0;
  animation: .45s ease-out forwards activity-resolve;
  position: absolute;
  inset: 0;
}

.generation-stage.failed .activity-bloom {
  opacity: .12;
  animation: none;
}

.phase-resolved > .result-workspace {
  animation: .45s ease-out both voice-arrives;
}

.orb-scene:after {
  content: "";
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(#9edbf343, #0000 70%);
  border-radius: 50%;
  transition: opacity .45s ease-out;
  position: absolute;
  inset: 9px -8px;
}

.orb-scene.generating:after {
  opacity: 1;
  animation: 3.8s ease-in-out infinite orb-atmosphere;
}

.generating .voice-orb {
  animation-duration: 4.5s;
  box-shadow: inset 0 2px 5px #fffd, inset 0 -6px 16px #6794bd28, 0 12px 28px -14px #6ab5d577;
}

.generating .wave i {
  background: linear-gradient(#b9edf4, #79bddb, #718eb5);
  transition: background .45s, box-shadow .45s;
  animation-duration: 1.7s;
  box-shadow: 0 0 5px #7bd4e140;
}

.voice-orb {
  transition: box-shadow .45s;
}

.orb-scene.failed .voice-orb, .orb-scene.failed .wave i {
  animation: none;
}

.orb-scene.failed .wave i {
  transform: scaleY(.5);
}

@keyframes activity-bloom {
  0%, 100% {
    opacity: .45;
    transform: scale(.88);
  }

  50% {
    opacity: .8;
    transform: scale(1.06);
  }
}

@keyframes orb-atmosphere {
  0%, 100% {
    opacity: .6;
    transform: scale(.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.07);
  }
}

@keyframes light-settle {
  to {
    opacity: .1;
    transform: scale(.85);
  }
}

@keyframes activity-resolve {
  0%, 20% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes voice-arrives {
  0%, 20% {
    opacity: 0;
    transform: translateY(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .generation-stage {
    min-height: 318px;
  }

  .activity-glass {
    border-radius: 14px;
    height: 135px;
    margin: 18px 0 12px;
  }

  .generation-heading h3 {
    font-size: 22px;
  }

  .activity-caption {
    font-size: 12px;
  }

  .activity-explanation {
    font-size: 9px;
  }

  .generation-stage.resolved, .generation-stage.failed {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .generation-stage.resolved, .generation-stage.failed {
    display: none;
  }

  .activity-bloom {
    opacity: .55;
    transform: none;
  }

  .orb-scene.generating:after {
    opacity: .8;
    transform: none;
  }

  .phase-resolved > .result-workspace {
    opacity: 1;
    transform: none;
  }
}

:root {
  --ink: #202437;
  --muted: #596174;
  --accent: #6d28d9;
}

body {
  color: var(--ink);
  background: #f1f2f7;
}

body:before {
  background: radial-gradient(at 48% 8%, #eee9fb70, #0000 52%), radial-gradient(at 94% 80%, #e7e7f040, #0000 60%), linear-gradient(150deg, #f9f9fc, #f0f1f6);
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline-color: #7c3aed;
}

.brand {
  color: #25283e;
  font-weight: 700;
}

.brand strong {
  color: #596174;
}

.language-switch {
  color: #7c8294;
}

.language-switch button {
  color: #596174;
  font-size: 13px;
}

.language-switch button[aria-pressed="true"] {
  color: #6d28d9;
  background: #ece5fa;
  font-weight: 700;
}

.hero h1 {
  color: #202437;
  letter-spacing: -1.1px;
  font-weight: 650;
}

.hero p {
  color: #596174;
  font-size: 15px;
}

.glass {
  -webkit-backdrop-filter: blur(16px) saturate(105%);
  background: linear-gradient(120deg, #fffffff0, #ffffffd9);
  border-color: #cfd3e1;
  box-shadow: inset 0 1px #fff, 0 18px 44px -29px #4b3b7955, 0 3px 9px #262e4610;
}

.studio-toolbar {
  background: #f7f6fbbf;
  border-bottom-color: #dce0eb;
  padding-top: 15px;
  padding-bottom: 15px;
}

.studio-toolbar h2 {
  color: #525970;
  letter-spacing: 1.25px;
  font-size: 11px;
  font-weight: 650;
}

.studio-symbol {
  color: #7c3aed;
}

.status {
  color: #596174;
  font-size: 11px;
}

.status-dot {
  background: #8e7aaf;
}

.status.ready .status-dot {
  background: #7c3aed;
  box-shadow: 0 0 0 3px #7c3aed12;
}

.source-panel {
  border-right-color: #dce0eb;
}

.panel-heading h3 {
  color: #25283e;
  font-size: 17px;
  font-weight: 650;
}

.step {
  color: #6b527d;
  background: #f5f0fb;
  border-color: #d9cce9;
  font-size: 10px;
}

.panel-note {
  color: #596174;
  font-size: 12px;
}

.upload-zone {
  background: #fafaff;
  border-color: #8690a8;
  min-height: 185px;
  box-shadow: inset 0 1px #fff;
}

.upload-zone:hover:not(.locked), .upload-zone.dragging {
  background: #f4effd;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px #7c3aed12, inset 0 1px #fff;
}

.source-icon {
  color: #6d28d9;
  background: #ede5fb;
  box-shadow: inset 0 1px #fff9;
}

.upload-title {
  color: #25283e;
  font-size: 15px;
  font-weight: 600;
}

.upload-note {
  color: #596174;
  font-size: 12px;
}

.choose-button {
  color: #6d28d9;
  background: #fff;
  border-color: #9679bd;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 4px #38245206;
}

.choose-button:hover {
  background: #f1eafb;
  border-color: #8b5cf6;
}

.drop-note {
  color: #626a7d;
  font-size: 11px;
}

.selected {
  background: linear-gradient(135deg, #faf8ff, #f3f0fa);
  border-color: #b3a6c9;
}

.file-name {
  color: #25283e;
  font-size: 13px;
}

.file-actions {
  border-top-color: #dfd6ed;
}

.quiet-button {
  color: #6d28d9;
  font-size: 12px;
}

.quiet-button:hover:not(:disabled) {
  background: #ede5fa;
}

.remove-button {
  color: #665773;
}

.transcript-toggle {
  color: #51586d;
  font-size: 12px;
}

.transcript-toggle small {
  color: #60677b;
  font-size: 11px;
}

.transcript-toggle:hover {
  color: #6d28d9;
}

textarea {
  color: #25283e;
  background: #fff;
  border-color: #8993ab;
  font-size: 14px;
  box-shadow: inset 0 1px 3px #273b5005;
}

textarea::placeholder {
  color: #666f83;
}

textarea:focus {
  background: #fff;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px #7c3aed10;
}

.hint {
  color: #596174;
  font-size: 11px;
}

.consent {
  color: #454e63;
  font-size: 12px;
  line-height: 1.7;
}

.consent input {
  background: #fff;
  border-color: #828ba2;
}

.consent input:checked {
  background: #7c3aed;
  border-color: #7c3aed;
}

.script-editor {
  background: #fff;
  border-color: #8993ab;
  box-shadow: inset 0 1px #fff, 0 3px 9px #24365305;
}

.script-editor:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px #7c3aed0d;
}

.script-editor label {
  color: #424a61;
  font-size: 12px;
  font-weight: 600;
}

.script-editor textarea {
  color: #25283e;
  min-height: 187px;
}

.script-editor textarea::placeholder {
  color: #687286;
}

.editor-bottom {
  color: #596174;
  border-top-color: #e0e3ee;
}

.editor-bottom > span:first-child {
  color: #71798b;
}

.character-count {
  color: #596174;
  font-size: 11px;
}

.primary-button {
  color: #fff;
  background: linear-gradient(140deg, #7c3aed, #7029d8);
  border-color: #6d28d9;
  font-size: 14px;
  box-shadow: inset 0 1px #ffffff2e, 0 5px 13px #7c3aed20;
}

.primary-button:hover:not(:disabled) {
  background: #6d28d9;
  box-shadow: 0 6px 17px #7c3aed30;
}

.primary-button:disabled {
  color: #65567a;
  background: #eae4f4;
  border-color: #cfc3e5;
  box-shadow: inset 0 1px #fff9;
}

.studio-footnote {
  color: #596174;
  background: #f6f5fab3;
  border-top-color: #dce0eb;
  font-size: 11px;
}

.studio-footnote > span {
  color: #7550a4;
}

.error-notice {
  color: #854335;
  background: #fff2ed;
  border-color: #e8bfb0;
}

footer {
  color: #596174;
  font-size: 11px;
}

footer a {
  color: #555d74;
}

.result-workspace {
  background: linear-gradient(150deg, #fff, #fcfaff);
  border: 1px solid #d8c9ee;
  border-radius: 15px;
  padding: 18px;
  box-shadow: 0 5px 15px #5a348a08;
}

.eyebrow {
  color: #6c468e;
  font-size: 10px;
}

.result-workspace h3 {
  color: #25283e;
  font-size: 24px;
  font-weight: 600;
}

.result-wave {
  background: #f8f6fd;
  border-color: #dfd5ef;
  min-height: 126px;
}

.duration-pill {
  color: #5d5570;
  font-size: 11px;
}

.generation-time {
  color: #596174;
  font-size: 12px;
}

.generation-time strong {
  color: #53337c;
}

.secondary-button {
  color: #fff;
  background: #7c3aed;
  border-color: #6d28d9;
  font-size: 13px;
}

.secondary-button:hover {
  background: #6d28d9;
}

.retention {
  color: #596174;
  font-size: 11px;
}

audio {
  accent-color: #7c3aed;
}

.orb-scene:before {
  background: radial-gradient(#e7def950, #0000 66%);
}

.voice-orb {
  background: radial-gradient(circle at 30% 18%, #fff9, #0000 37%), radial-gradient(circle at 72% 81%, #b8a2db60, #0000 66%), linear-gradient(140deg, #f5f0fb9c, #dbd2ec60);
  border-color: #ded5ec;
  box-shadow: inset 0 2px 5px #fffd, inset 0 -6px 16px #7557a61a, 0 16px 28px -17px #7c3aed30;
}

.orb-ring {
  border-color: #9b83bf26;
}

.wave i {
  opacity: .75;
  background: linear-gradient(#987aba, #754ca8);
}

.orb-scene:after {
  background: radial-gradient(#ab76ed35, #0000 70%);
}

.generating .voice-orb {
  background: radial-gradient(circle at 30% 18%, #ffffffba, #0000 37%), radial-gradient(circle at 75% 76%, #f6ba693b, #0000 36%), radial-gradient(circle at 52% 65%, #b286ef73, #0000 68%), linear-gradient(140deg, #f3eafb, #d9c4ef);
  box-shadow: inset 0 2px 5px #fffd, inset 0 -6px 16px #8b5cf629, 0 12px 28px -14px #9c56e99c;
}

.generating .wave i {
  background: linear-gradient(#ba92e9, #9a56dd, #7c3aed);
  box-shadow: 0 0 5px #a675e94d;
}

.generating .wave i:nth-child(5n) {
  background: linear-gradient(#c39aea, #ad64d3, #db964e);
}

.orb-scene.failed .wave i {
  background: #8c849a;
}

.generation-stage {
  min-height: 359px;
}

.generation-heading .eyebrow {
  color: #646078;
  font-size: 11px;
}

.generation-heading h3 {
  color: #29243b;
  font-weight: 600;
}

.activity-wait {
  color: #596174;
  margin: 7px 0 0;
  font-size: 13px;
}

.activity-glass {
  background: linear-gradient(135deg, #fff, #faf6ff);
  border-color: #ded3ed;
  height: 155px;
  margin-top: 18px;
  box-shadow: inset 0 1px #fff, 0 5px 16px #7c3aed08;
}

.activity-bloom {
  filter: blur(6px);
  background: radial-gradient(at 18%, #a576ed38, #0000 42%), radial-gradient(at 51%, #dd73b322, #0000 42%), radial-gradient(at 86%, #f7b74733, #0000 42%);
  inset: 18px 15px;
}

.activity-line {
  height: 1px;
  box-shadow: none;
  background: linear-gradient(90deg, #0000, #9a63e752, #de6fa245, #efb54160, #0000);
}

.activity-caption {
  color: #595068;
  font-size: 13px;
}

.activity-explanation {
  color: #606779;
  font-size: 11px;
}

.generation-stage.resolved, .generation-stage.failed {
  background: #fcfafff0;
}

.flowing-wave {
  width: 100%;
  height: 130px;
  display: block;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #0000, #000 6% 94%, #0000);
  mask-image: linear-gradient(90deg, #0000, #000 6% 94%, #0000);
}

.wave-envelope {
  --layer-opacity: 1;
  transform-origin: 50%;
  transform-box: view-box;
}

.wave-flow {
  will-change: transform;
  animation: 3.6s linear infinite voice-flow;
}

.wave-envelope.core {
  animation: 2.7s ease-in-out infinite voice-amplitude;
}

.wave-envelope.core path {
  stroke-width: 2.2px;
}

.wave-envelope.core .wave-shine {
  stroke: #fff;
  stroke-width: .6px;
  opacity: .65;
}

.wave-envelope.halo {
  --layer-opacity: .2;
  opacity: .2;
  filter: blur(1.6px);
  animation: 3.9s ease-in-out infinite voice-amplitude;
}

.wave-envelope.halo path {
  stroke-width: 7px;
}

.wave-envelope.halo .wave-flow {
  animation-duration: 3.6s;
}

.wave-envelope.echo {
  --layer-opacity: .3;
  opacity: .3;
  animation: 5.1s ease-in-out infinite voice-amplitude;
}

.wave-envelope.echo path {
  stroke-width: 1.2px;
}

.wave-envelope.echo .wave-flow {
  animation-duration: 5.4s;
  animation-delay: -1.7s;
}

.generation-stage.resolved .wave-flow, .generation-stage.resolved .wave-envelope {
  will-change: auto;
  animation-play-state: paused;
}

.wave-coast {
  transform-origin: 50%;
  transform-box: view-box;
}

.generation-stage.resolved .wave-coast {
  animation: .45s cubic-bezier(.15, .6, .2, 1) forwards flow-coast;
}

.generation-stage.resolved .activity-bloom {
  animation: .45s ease-out forwards light-settle;
}

.generation-stage.failed .wave-flow, .generation-stage.failed .wave-envelope {
  opacity: .4;
  will-change: auto;
  animation: none;
}

.generation-stage.failed .flowing-wave {
  opacity: .4;
}

.flowing-wave.calm {
  opacity: .6;
  height: 83px;
}

.flowing-wave.calm .wave-flow, .flowing-wave.calm .wave-envelope {
  will-change: auto;
  animation: none;
}

.flowing-wave.calm .wave-envelope {
  transform: scaleY(.5);
}

.flowing-wave.calm .wave-envelope.echo {
  opacity: .2;
}

.result-wave .flowing-wave {
  width: 100%;
}

@keyframes voice-flow {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-240px);
  }
}

@keyframes voice-amplitude {
  0%, 100% {
    opacity: calc(var(--layer-opacity)*.72);
    transform: scaleY(.52);
  }

  28% {
    opacity: var(--layer-opacity);
    transform: scaleY(.89);
  }

  62% {
    opacity: calc(var(--layer-opacity)*.84);
    transform: scaleY(.66);
  }

  81% {
    opacity: var(--layer-opacity);
    transform: scaleY(1);
  }
}

@keyframes flow-coast {
  from {
    transform: translateX(0) scaleY(1);
  }

  to {
    opacity: .4;
    transform: translateX(-30px) scaleY(.55);
  }
}

@media (max-width: 800px) {
  .result-workspace {
    padding: 15px;
  }

  .panel-note {
    min-height: 38px;
  }

  .result-actions {
    gap: 6px;
  }

  .secondary-button {
    gap: 12px;
  }

  .hero p {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .hero p {
    font-size: 13px;
  }

  .hero h1 {
    font-weight: 650;
  }

  .orb-scene {
    height: 112px;
  }

  .voice-orb {
    width: 87px;
    height: 87px;
  }

  .orb-ring {
    width: 112px;
    height: 112px;
    top: 23px;
  }

  .studio-toolbar h2, .status {
    font-size: 10px;
  }

  .panel-note {
    min-height: 0;
    font-size: 12px;
  }

  .source-panel {
    border-bottom-color: #dce0eb;
  }

  .upload-zone {
    min-height: 160px;
  }

  .upload-note {
    font-size: 12px;
  }

  .script-editor textarea {
    min-height: 185px;
  }

  .primary-button {
    font-size: 14px;
  }

  .transcript-toggle {
    font-size: 12px;
  }

  .transcript-toggle small {
    font-size: 11px;
  }

  .studio-footnote {
    padding: 12px 16px;
    font-size: 11px;
  }

  .generation-stage {
    min-height: 312px;
  }

  .generation-stage.resolved, .generation-stage.failed {
    min-height: 0;
  }

  .activity-glass {
    height: 137px;
    margin: 16px 0 12px;
  }

  .flowing-wave {
    height: 115px;
  }

  .generation-heading h3 {
    font-size: 21px;
  }

  .activity-wait, .activity-caption {
    font-size: 12px;
  }

  .activity-explanation {
    font-size: 10px;
  }

  .result-workspace {
    padding: 15px;
  }

  .result-wave {
    min-height: 114px;
  }

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

  .secondary-button {
    font-size: 13px;
  }

  .retention {
    font-size: 11px;
  }

  footer {
    gap: 6px;
    font-size: 10px;
  }

  .generation-time {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave-flow, .wave-envelope {
    will-change: auto;
    animation: none !important;
  }

  .wave-envelope {
    transform: scaleY(.7);
  }

  .generation-stage.resolved, .generation-stage.failed {
    display: none;
  }

  .orb-scene.generating:after {
    opacity: .75;
    transform: none;
  }
}

.choose-button, .file-action {
  position: relative;
  overflow: hidden;
}

.file-input {
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.file-action {
  cursor: pointer;
  text-decoration: none;
}

.choose-button.disabled, .file-action.disabled {
  pointer-events: none;
  opacity: .55;
}

.upload-section:focus-within .upload-zone {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px #7c3aed12;
}

.orb-scene, .voice-orb, .orb-ring, .orb-light, .wave, .flowing-wave, .activity-bloom, .activity-line {
  pointer-events: none;
}

/*# sourceMappingURL=app_globals_0yg4wg8plh8sv.css.map*/