:root {
  color-scheme: light;
  --canvas: #f7f7f5;
  --surface: #fff;
  --sidebar: #fbfbfa;
  --ink: #252720;
  --text-secondary: #62665f;
  --text-muted: #626a5a;
  --border: #e3e5df;
  --border-strong: #cbd0c5;
  --green: #35674d;
  --green-soft: #edf4ef;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sidebar-width: 224px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary,
select {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
canvas:focus-visible {
  outline: 2px solid #4777a9;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #9aab98;
  box-shadow: 0 0 0 3px #eaf0e8;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2,
h3 {
  font-weight: 550;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  border-radius: 6px;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 30px 16px 18px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 60;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -1.1px;
}
.brand .icon {
  width: 28px;
  height: 28px;
}
.brand-dot {
  color: #718574;
}
.workspace-identity {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 29px 3px 16px;
  padding: 11px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}
.workspace-monogram {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #edf0e8;
  border: 1px solid #e2e6d9;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.workspace-identity strong {
  display: block;
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
}
.workspace-identity span:not(.workspace-dot) {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  margin-top: 4px;
}
.workspace-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  background: #a4b4a1;
  border-radius: 50%;
}
.nav-label {
  padding: 18px 13px 9px;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: var(--text-muted);
  font-weight: 550;
}
.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  margin: 3px 0;
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: left;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item .icon {
  width: 17px;
  height: 17px;
  color: #777d72;
}
.nav-item:hover {
  background: #f0f1ed;
  color: var(--ink);
}
.nav-item.active {
  background: #e9ece4;
  color: #293523;
  font-weight: 550;
}
.nav-item.active .icon {
  color: #405e38;
}
.nav-key {
  margin-left: auto;
  border: 1px solid #d2d7cc;
  padding: 1px 4px;
  border-radius: 3px;
  color: #4e6343;
  font-size: 9px;
}
.sidebar-footer {
  margin-top: auto;
  padding: 30px 12px 0;
}
.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 11.5px;
}
.sidebar-footer a .icon {
  width: 15px;
  height: 15px;
}
.sidebar-footer a .icon:last-child {
  margin-left: auto;
  width: 12px;
  height: 12px;
}
.sidebar-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 9px;
  color: var(--text-muted);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #99a392;
  flex-shrink: 0;
}
.status-dot.online {
  background: #5a8a5c;
}
.status-dot.offline {
  background: #b29159;
}
.app-shell {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 66px;
  background: var(--canvas);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 15px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
}
.topbar-left .icon {
  width: 10px;
  height: 10px;
  color: #858c7f;
}
.breadcrumb-parent {
  color: var(--text-muted);
}
#breadcrumb-current {
  font-weight: 500;
}
.service-button {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 10.5px;
  padding: 6px 8px;
  border-radius: 5px;
}
.service-button:hover {
  background: #eceee8;
}
.topbar-docs {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  padding-left: 15px;
  border-left: 1px solid var(--border);
}
.topbar-docs .icon {
  width: 13px;
  height: 13px;
}
.mobile-menu {
  display: none !important;
}
.workspace {
  width: 100%;
  max-width: 1296px;
  padding: 40px;
  margin: 0 auto;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.95px;
  font-weight: 550;
}
.page-heading p {
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.6;
  margin-top: 9px;
}
.page-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 10px;
  color: #50683f;
  background: #eef1e7;
  border: 1px solid #e0e6d8;
  border-radius: 5px;
  white-space: nowrap;
  margin-top: 3px;
}
.page-badge .icon {
  width: 13px;
  height: 13px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: 0 1px 2px rgb(34 39 25 / 2%);
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 24px;
  align-items: start;
}
.studio-main {
  min-width: 0;
}
.editor-panel {
  overflow: hidden;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  border-bottom: 1px solid #eff0ec;
}
.editor-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
}
.editor-title .icon {
  width: 15px;
  height: 15px;
  color: #767c71;
}
.subtle-label {
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 400;
}
.script-editor {
  display: block;
  width: 100%;
  min-height: 264px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  background: white;
  padding: 24px 24px 18px;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: -0.16px;
}
.script-editor:focus {
  box-shadow: none;
}
.script-editor::placeholder {
  color: #8c9286;
}
.editor-examples {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 12px 22px;
}
.editor-examples > span {
  color: var(--text-muted);
  font-size: 10px;
  margin-right: 4px;
}
.editor-examples button,
.example-buttons button {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 10px;
  color: var(--text-secondary);
  background: #fafbf8;
  transition: background 0.15s;
}
.editor-examples button:hover,
.example-buttons button:hover {
  background: #edf0e8;
  border-color: #d5dccc;
}
.editor-bottom {
  border-top: 1px solid #eff0ec;
  background: #fcfcfb;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  color: var(--text-muted);
  font-size: 10px;
}
kbd {
  font-family: var(--font);
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 1px 3px;
  margin-right: 3px;
  border: 1px solid #dfe3d9;
  background: #f7f8f4;
  border-radius: 3px;
  font-size: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  padding: 9px 13px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button .icon {
  width: 15px;
  height: 15px;
}
.button-primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.button-primary:hover {
  background: #41463a;
  border-color: #41463a;
}
.button-primary > .icon:last-child {
  margin-left: 4px;
  width: 14px;
}
.button-secondary {
  border-color: var(--border);
  background: white;
  color: #485040;
}
.button-secondary:hover {
  border-color: #c8d0c0;
  background: #fafbf7;
}
.button-quiet {
  padding-left: 0;
  padding-right: 0;
  color: var(--text-secondary);
}
.button-quiet:hover {
  color: var(--ink);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  border-radius: 5px;
}
.icon-button:hover {
  background: #f0f2ec;
}
.icon-button .icon {
  width: 16px;
  height: 16px;
}
.generation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 8px;
}
#synthesize-btn {
  min-width: 172px;
}
.normalization-preview {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}
.normalization-preview summary,
.advanced-settings summary,
.caption-details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  gap: 10px;
}
summary::-webkit-details-marker {
  display: none;
}
summary .icon {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  transition: transform 0.15s;
}
details[open] > summary .icon {
  transform: rotate(180deg);
}
.normalization-preview summary {
  padding: 13px 17px;
}
.normalization-preview p {
  padding: 0 17px 17px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.8;
}
.output-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 27px 0 12px;
}
.output-label h2 {
  font-size: 12px;
  font-weight: 500;
}
.audio-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  min-height: 126px;
  padding: 25px;
}
.empty-audio-icon {
  display: grid;
  place-items: center;
  background: #f3f5ee;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #8b9b7d;
}
.empty-audio-icon .icon {
  width: 24px;
  height: 24px;
}
.audio-empty h3 {
  font-size: 12px;
  font-weight: 500;
}
.audio-empty p {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}
.audio-ready {
  padding: 19px 22px 0;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.panel-heading h2,
.panel-heading h3 {
  font-size: 13px;
  line-height: 1.5;
}
.audio-subtitle {
  color: var(--text-muted);
  margin-top: 5px;
  font-size: 10.5px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 9px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.badge .icon {
  width: 11px;
  height: 11px;
}
.badge-green {
  background: var(--green-soft);
  color: var(--green);
  border-color: #dceadd;
}
.audio-transport {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.play-button {
  background: var(--ink);
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.play-button .icon {
  width: 15px;
  height: 15px;
}
.waveform-wrap {
  flex: 1;
  height: 65px;
  min-width: 0;
}
.waveform {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}
.audio-time {
  font-family: var(--mono);
  color: var(--text-muted);
  font-size: 9px;
  white-space: nowrap;
}
.audio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eff0ec;
  padding: 12px 0 16px;
  margin-top: 11px;
}
.audio-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 9px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.audio-format {
  font-family: var(--mono);
}
.audio-download {
  min-height: 30px;
  padding: 7px 9px;
  font-size: 10px;
}
select.audio-speed {
  width: auto;
  font-size: 9px;
  padding: 3px 18px 3px 6px;
  border: 0;
  background-position: right 4px center;
  background-size: 9px;
  height: 24px;
  color: var(--text-muted);
}
.caption-details {
  border-top: 1px solid var(--border);
  padding: 13px 0;
}
.caption-body {
  padding-top: 15px;
}
.caption-note {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.caption-words {
  line-height: 1.9;
  font-size: 12px;
}
.caption-words button {
  padding: 1px 3px;
  color: #575e50;
  border-radius: 3px;
}
.caption-words button.active {
  background: #e4eddd;
  color: #28451e;
}
.caption-actions {
  display: flex;
  gap: 18px;
  padding-top: 12px;
}
.caption-actions .button {
  font-size: 10px;
}
.settings-panel {
  padding: 22px;
}
.settings-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.settings-title h2 {
  font-size: 12px;
}
.settings-title .icon {
  width: 15px;
  height: 15px;
  color: #737b69;
}
.form-field {
  margin-bottom: 19px;
}
.form-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 9px;
}
select,
input[type="password"] {
  appearance: none;
  width: 100%;
  min-height: 37px;
  background: white;
  border: 1px solid #dee2d7;
  border-radius: 6px;
  padding: 9px 31px 9px 11px;
  font-size: 11.5px;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23727c66' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
input[type="password"] {
  cursor: text;
  padding-right: 11px;
}
.field-hint {
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 9px;
}
.selected-voice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.voice-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: #766347;
  background: #f0eadc;
}
.avatar-sand {
  background: #f1ebdf;
  color: #735831;
}
.avatar-sage {
  background: #e5eedf;
  color: #53673e;
}
.avatar-rose {
  background: #f1e4e5;
  color: #80545b;
}
.avatar-blue {
  background: #e3eaf3;
  color: #4d6484;
}
.avatar-lilac {
  background: #ece5f1;
  color: #6e5287;
}
.selected-voice strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
}
.selected-voice span {
  display: block;
  color: var(--text-muted);
  margin-top: 5px;
  font-size: 10px;
}
.browse-voices {
  width: 100%;
  min-height: 33px;
  font-size: 10.5px;
  justify-content: flex-start;
}
.browse-voices .icon:last-child {
  margin-left: auto;
  width: 13px;
}
.settings-divider {
  height: 1px;
  background: #eceee7;
  margin: 22px 0;
}
.advanced-settings {
  margin-top: 24px;
  border-top: 1px solid #eceee7;
  padding-top: 18px;
}
.advanced-content {
  padding-top: 24px;
}
.slider-field {
  margin-bottom: 20px;
}
.slider-field label {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 500;
}
.slider-field output {
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 9px;
}
.slider-field input {
  width: 100%;
  margin: 12px 0 0;
  accent-color: #6f805f;
  height: 4px;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0;
  font-size: 10.5px;
}
.switch-row input {
  appearance: none;
  position: relative;
  width: 29px;
  height: 17px;
  background: #d8ded1;
  border: 1px solid #cbd2c2;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.switch-row input:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px #0001;
  transition: transform 0.15s;
}
.switch-row input:checked {
  background: #566c47;
  border-color: #566c47;
}
.switch-row input:checked:before {
  transform: translateX(12px);
}
.settings-footnote {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.7;
  margin-top: 25px;
}
.settings-footnote .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
}
.dialogue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.example-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dialogue-lines {
  display: grid;
  gap: 14px;
}
.dialogue-line {
  padding: 17px 20px;
}
.dialogue-line-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.dialogue-line-header .voice-avatar {
  width: 32px;
  height: 32px;
  font-size: 10px;
}
.speaker-name {
  border: 0;
  background: none;
  min-width: 0;
  width: 110px;
  font-size: 11.5px;
  font-weight: 550;
  padding: 5px 0;
}
.speaker-voice {
  max-width: 200px;
  margin-left: auto;
  min-height: 31px;
  font-size: 10px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.dialogue-line textarea {
  border: 1px solid #e5e9df;
  border-radius: 6px;
  padding: 14px;
  width: 100%;
  display: block;
  font-size: 13px;
  line-height: 1.8;
  resize: vertical;
  min-height: 97px;
  background: #fdfefb;
}
.dialogue-line-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 9.5px;
}
.pause-select {
  width: auto;
  min-height: 26px;
  font-size: 9px;
  padding: 5px 25px 5px 7px;
}
.pause-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}
.filter-tabs button {
  color: var(--text-muted);
  padding: 10px 13px;
  font-size: 11px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.filter-tabs button.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 500;
}
.search-field {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #dee3d5;
  border-radius: 6px;
  background: white;
  padding: 9px 11px;
}
.search-field .icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}
.search-field input {
  border: 0;
  outline: 0;
  width: 185px;
  font-size: 11px;
  background: none;
  padding: 0;
}
.search-field input:focus {
  box-shadow: none;
}
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.voice-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.voice-card:hover {
  border-color: #cbd6be;
}
.voice-card.selected {
  border-color: #aebd9e;
}
.voice-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.voice-card .voice-avatar {
  width: 50px;
  height: 50px;
  font-size: 15px;
}
.voice-card h2 {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
.voice-description {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.75;
  min-height: 40px;
  margin: 9px 0 13px;
}
.voice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 23px;
}
.voice-tags span {
  color: var(--text-muted);
  font-size: 10px;
  border-radius: 4px;
  background: #f3f5ef;
  padding: 4px 6px;
}
.voice-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid #eceee7;
  padding-top: 15px;
}
.voice-card-actions .button {
  font-size: 11px;
  padding: 7px 11px;
  min-height: 30px;
}
.preview-voice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  padding: 5px 0;
}
.preview-voice .icon {
  width: 13px;
  height: 13px;
}
.library-note,
.status-note {
  color: var(--text-muted);
  font-size: 10px;
  margin-top: 24px;
  line-height: 1.8;
}
.loading-message {
  padding: 30px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.normalizer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.normalizer-grid > .panel {
  padding: 24px;
}
.inspector-editor {
  display: block;
  width: 100%;
  min-height: 235px;
  padding: 17px;
  background: #fdfefb;
  border: 1px solid #e3e7dc;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.85;
  resize: vertical;
}
.normalizer-grid .editor-examples {
  padding: 16px 0;
}
.normalization-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 7px 0 25px;
}
.normalization-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-secondary);
}
.normalization-options input {
  accent-color: #566c47;
}
.normalized-result {
  font-size: 14px;
  line-height: 1.95;
  color: #50574a;
  padding: 7px 0 28px;
  overflow-wrap: anywhere;
}
.stage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.stage-list span {
  font-size: 9px;
  color: #52663f;
  background: #eff3e9;
  padding: 5px 7px;
  border-radius: 4px;
}
.ivr-templates {
  display: grid;
  gap: 14px;
}
.ivr-card {
  padding: 22px;
}
.ivr-card-top {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 15px;
}
.ivr-card h2 {
  font-size: 13px;
}
.ivr-card-top .template-number {
  font-family: var(--mono);
  color: #546b3e;
  font-size: 11px;
  background: #eff3e8;
  padding: 8px;
  border-radius: 5px;
}
.ivr-card p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.85;
  margin-bottom: 17px;
}
.ivr-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.ivr-actions .button {
  min-height: 30px;
  font-size: 10px;
}
.guide-panel {
  padding: 28px;
  background: #f0f3eb;
  border-color: #e0e6d7;
}
.guide-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d1dac6;
  border-radius: 8px;
  color: #687d54;
  margin-bottom: 25px;
}
.guide-panel h2 {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
.guide-panel p {
  color: #596748;
  font-size: 11px;
  line-height: 1.8;
  margin: 15px 0;
}
.guide-panel h3 {
  font-size: 11px;
}
.guide-divider {
  height: 1px;
  background: #dbe2d1;
  margin: 26px 0;
}
.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.sample-card {
  padding: 24px;
}
.sample-label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
  font-size: 9px;
  margin-bottom: 23px;
}
.sample-label .icon {
  width: 14px;
  height: 14px;
}
.sample-card h2 {
  font-size: 13px;
  margin-bottom: 25px;
}
.sample-card audio {
  width: 100%;
  height: 35px;
  display: block;
}
.api-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 24px;
  align-items: start;
}
.code-panel {
  overflow: hidden;
}
.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 20px 0;
}
.code-toolbar .filter-tabs {
  border: 0;
}
.code-toolbar .button {
  font-size: 10px;
}
.endpoint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 23px 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.method-badge {
  font-size: 9px;
  font-family: var(--mono);
  background: #ebf3e6;
  color: #537044;
  border: 1px solid #d8e6ce;
  border-radius: 4px;
  padding: 4px 6px;
}
.endpoint-row code {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-secondary);
}
.code-panel pre {
  margin: 0;
  padding: 24px;
  max-height: 720px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.85;
  color: #4d5a45;
}
.code-panel code {
  font-family: var(--mono);
}
.api-layout .settings-panel h3 {
  font-size: 11px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 10.5px;
  font-weight: 500;
}
.text-link .icon {
  width: 13px;
  height: 13px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.stat-card {
  padding: 24px;
}
.stat-card > span {
  font-size: 10px;
  color: var(--text-secondary);
  display: block;
}
.stat-card strong {
  display: block;
  font-size: 29px;
  letter-spacing: -1.2px;
  font-weight: 500;
  margin: 22px 0 10px;
}
.stat-card small {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.7;
}
.status-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.status-layout > .panel {
  padding: 24px;
}
.health-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid #eceee7;
}
.health-item strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.health-item p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 10px;
}
.detail-list {
  margin: 0;
}
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-top: 1px solid #eceee7;
}
.detail-list dt,
.detail-list dd {
  font-size: 11px;
  margin: 0;
}
.detail-list dt {
  color: var(--text-secondary);
}
.detail-list dd {
  font-weight: 500;
}
.workspace-footer {
  padding: 10px 40px 24px;
  color: #626a5a;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  max-width: 1296px;
  margin: 0 auto;
  width: 100%;
}
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px 17px;
  background: white;
  border: 1px solid #dce4d2;
  border-radius: 8px;
  box-shadow: 0 5px 22px #24351b12;
  font-size: 11px;
  line-height: 1.6;
  animation: toast-in 0.18s ease-out;
}
.toast .icon {
  color: #628149;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}
.toast.error {
  border-color: #e8c9c4;
}
.toast.error .icon {
  color: #a15e56;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.sidebar-backdrop {
  position: fixed;
  width: 100%;
  height: 100%;
  inset: 0;
  background: #202b1a44;
  z-index: 55;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}
@media (min-width: 1700px) {
  .workspace {
    padding-top: 54px;
  }
  .script-editor {
    min-height: 310px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 208px;
  }
  .workspace {
    padding: 32px 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .studio-layout,
  .api-layout {
    grid-template-columns: minmax(0, 1fr) 266px;
    gap: 20px;
  }
  .settings-panel {
    padding: 19px;
  }
  .voice-grid,
  .sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-identity {
    gap: 7px;
  }
  .workspace-identity strong {
    font-size: 10.5px;
  }
  .workspace-dot {
    display: none;
  }
  .audio-time {
    font-size: 8px;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar-width: 224px;
  }
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.2s,
      visibility 0.2s;
  }
  .sidebar.is-open {
    transform: none;
    visibility: visible;
  }
  .app-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-grid !important;
  }
  .topbar-left .mobile-menu .icon {
    width: 19px;
    height: 19px;
    color: var(--ink);
  }
  .workspace {
    padding-top: 30px;
  }
  .normalizer-grid {
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 59px;
    padding: 0 18px;
  }
  .topbar-left {
    gap: 8px;
  }
  .breadcrumb-parent,
  .topbar-docs {
    display: none;
  }
  .workspace {
    padding: 28px 18px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 300px;
  }
  .page-badge {
    display: none;
  }
  .studio-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .studio-main {
    width: 100%;
  }
  .studio-layout > .settings-panel {
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    padding: 18px;
  }
  .studio-layout > .settings-panel .settings-title,
  .studio-layout > .settings-panel .selected-voice,
  .studio-layout > .settings-panel .settings-divider,
  .studio-layout > .settings-panel .field-hint,
  .studio-layout > .settings-panel .settings-footnote {
    display: none;
  }
  .studio-layout > .settings-panel > .form-field:first-of-type {
    grid-column: 1 / -1;
  }
  .studio-layout > .settings-panel > .form-field {
    margin-bottom: 0;
  }
  .browse-voices {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }
  .browse-voices .icon:last-child {
    margin-left: 0;
  }
  .advanced-settings {
    grid-column: 1 / -1;
    margin-top: 0;
    padding-top: 14px;
  }
  .advanced-content {
    padding-top: 18px;
  }
  .advanced-content .settings-divider {
    display: block !important;
  }
  .script-editor {
    min-height: 245px;
    font-size: 15px;
    padding: 20px;
  }
  .editor-toolbar {
    padding: 15px 18px;
  }
  .editor-examples {
    padding: 12px 17px;
    gap: 6px;
  }
  .editor-examples > span {
    flex-basis: 100%;
    margin-bottom: 5px;
  }
  .editor-bottom {
    padding: 12px 17px;
    font-size: 9px;
  }
  .generation-row > .button-quiet {
    font-size: 10px;
  }
  #synthesize-btn {
    min-width: 146px;
    font-size: 10.5px;
    gap: 6px;
    padding: 9px 11px;
  }
  .audio-empty {
    padding: 20px;
    justify-content: flex-start;
  }
  .audio-empty p {
    font-size: 10px;
  }
  .audio-ready {
    padding: 17px 16px 0;
  }
  .audio-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .waveform-wrap {
    height: 54px;
  }
  .voice-grid,
  .sample-grid {
    gap: 12px;
  }
  .voice-card,
  .sample-card {
    padding: 18px;
  }
  .voice-card h2 {
    font-size: 12px;
  }
  .voice-card-top {
    margin-bottom: 17px;
  }
  .voice-card .voice-avatar {
    width: 42px;
    height: 42px;
    font-size: 12px;
  }
  .voice-card-actions {
    flex-wrap: wrap;
    gap: 10px;
  }
  .library-toolbar {
    align-items: stretch;
  }
  .search-field {
    width: 100%;
  }
  .search-field input {
    width: 100%;
  }
  .normalizer-grid,
  .api-layout,
  .status-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .normalizer-grid > .panel {
    padding: 20px;
  }
  .ivr-card {
    padding: 20px;
  }
  .guide-panel {
    width: 100%;
    padding: 23px;
  }
  .guide-panel h2 br {
    display: none;
  }
  .dialogue-toolbar {
    flex-wrap: wrap;
  }
  .dialogue-line {
    padding: 17px;
  }
  .dialogue-line-header {
    flex-wrap: wrap;
  }
  .speaker-voice {
    width: calc(100% - 40px);
    max-width: none;
    margin-left: 0;
    order: 4;
  }
  .dialogue-line-header .icon-button {
    margin-left: auto;
  }
  .speaker-name {
    flex: 1;
    width: 100px;
  }
  .code-toolbar {
    padding: 8px 10px 0;
  }
  .code-tabs {
    gap: 0;
  }
  .code-tabs button {
    font-size: 9px;
    padding: 9px;
  }
  .code-toolbar .button {
    font-size: 9px;
  }
  .code-panel pre {
    padding: 18px;
    font-size: 10px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 18px;
  }
  .stat-card strong {
    font-size: 25px;
    margin-top: 17px;
  }
  .stat-card > span {
    line-height: 1.7;
    min-height: 33px;
  }
  .page-heading > .button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .workspace-footer {
    padding: 10px 18px 22px;
    font-size: 8px;
  }
}
@media (max-width: 380px) {
  .voice-grid,
  .sample-grid {
    grid-template-columns: 1fr;
  }
  .editor-bottom > span:last-child {
    display: none;
  }
  .generation-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .generation-row .button-quiet {
    justify-content: center;
  }
  .service-button {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.sidebar-close {
  display: none;
}
@media (max-width: 900px) {
  .sidebar-close {
    display: inline-grid;
    position: absolute;
    top: 28px;
    right: 9px;
    width: 26px;
    height: 26px;
  }
}
@media (max-width: 700px) {
  .studio-layout > .settings-panel > .form-field:has(#voice-select) {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 700px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .script-editor {
    font-size: 16px;
  }
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #4777a9;
  outline-offset: 2px;
}
.script-editor:focus-visible,
.code-panel pre:focus-visible {
  outline: 2px solid #4777a9;
  outline-offset: -3px;
}
@media (max-width: 700px) {
  .generation-row {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    margin: 0;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    background: var(--canvas);
    border-top: 1px solid var(--border);
    box-shadow: 0 -3px 18px rgb(34 39 25 / 4%);
  }
  .workspace:has(#tab-studio:not([hidden]), #tab-dialogue:not([hidden])) {
    padding-bottom: 105px;
  }
  .workspace-footer {
    display: none;
  }
}
@media (max-width: 380px) {
  #tab-studio .generation-row .button-quiet {
    display: none;
  }
  #tab-studio .generation-row {
    flex-direction: row;
  }
  #synthesize-btn {
    width: 100%;
  }
}
.market-filters {
  display: grid;
  grid-template-columns: 180px 180px 1fr;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}
.market-filters .form-field {
  margin-bottom: 0;
}
.market-coverage {
  font-size: 12px;
  line-height: 1.8;
  color: #65705f;
  padding-bottom: 8px;
}
.language-routing-note {
  font-size: 11px;
  line-height: 1.8;
  color: #5b6d4e;
  margin-top: 15px;
}
.voice-license {
  font-size: 10px;
  line-height: 1.75;
  color: #5b6749;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 14px;
}
@media (max-width: 800px) {
  .market-filters {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .market-coverage {
    grid-column: 1 / -1;
    padding: 0;
  }
}
.inspector-language {
  min-width: 150px;
}
.inspector-language label {
  margin-bottom: 5px;
  font-size: 10px;
}
.inspector-language select {
  min-height: 32px;
  padding-block: 6px;
  font-size: 11px;
}
.clone-status-bar {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  border: 1px solid #d9e3cf;
  background: #edf3e5;
  border-radius: 9px;
  margin-bottom: 24px;
  font-size: 12px;
}
.clone-status-bar > span {
  font-weight: 550;
  color: #4b6439;
}
.clone-status-bar p {
  color: #5e6d52;
  font-size: 11px;
  line-height: 1.8;
}
.clone-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.clone-step {
  display: block;
  font-family: var(--mono);
  color: #627651;
  font-size: 9px;
  letter-spacing: 0.8px;
  margin-bottom: 7px;
}
.clone-form {
  padding: 24px;
}
.clone-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.clone-form input:not([type="checkbox"]):not([type="file"]),
.clone-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d7decf;
  border-radius: 6px;
  background: #fcfdf9;
  font-size: 12px;
  line-height: 1.75;
}
.clone-form textarea {
  resize: vertical;
}
.clone-form input::placeholder,
.clone-form textarea::placeholder {
  color: #79836f;
}
.clone-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 23px 15px;
  border: 1px dashed #abbf96;
  border-radius: 9px;
  background: #f4f8ee;
  cursor: pointer;
  text-align: center;
  margin: 6px 0 16px;
}
.clone-upload > .icon {
  width: 24px;
  height: 24px;
  color: #698655;
}
.clone-upload strong {
  font-size: 13px;
  font-weight: 550;
}
.clone-upload > span {
  font-size: 10px;
  line-height: 1.8;
  color: #5c704c;
}
.clone-upload input {
  max-width: 100%;
  font-size: 11px;
}
.clone-record-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
}
.clone-record-row > span {
  font-size: 10px;
  color: #637254;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#clone-reference-preview {
  width: 100%;
  height: 36px;
  margin-bottom: 20px;
}
.clone-hint {
  font-size: 10px;
  line-height: 1.85;
  color: #5e6e51;
  margin-top: 10px;
}
.clone-permission {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.8;
  color: #566649;
  margin: 18px 0;
}
.clone-permission input {
  margin-top: 3px;
  flex-shrink: 0;
}
.clone-feedback {
  color: #4f6c3a;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 15px;
  overflow-wrap: anywhere;
}
.clone-feedback.error {
  color: #9c3d35;
}
.clone-saved-section {
  margin: 30px 0;
}
.clone-saved-section > .section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.clone-saved-section h2 {
  font-size: 18px;
}
.clone-saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.clone-voice-card {
  padding: 20px;
}
.clone-voice-title {
  display: flex;
  gap: 12px;
  align-items: center;
}
.clone-voice-title h3 {
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.clone-voice-title p {
  font-size: 10px;
  line-height: 1.8;
  color: #69765d;
  margin-top: 4px;
}
.clone-voice-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e2e7da;
}
@media (max-width: 1050px) {
  .clone-layout {
    grid-template-columns: 1fr;
  }
  .clone-saved-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .clone-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .clone-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .clone-form {
    padding: 20px;
  }
  .clone-saved-grid {
    grid-template-columns: 1fr;
  }
  .clone-record-row {
    flex-wrap: wrap;
  }
}

.clone-create > .panel-heading,
.clone-generate > .panel-heading {
  padding: 20px 24px;
  border-bottom: 1px solid #e0e6d8;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.clone-create > .panel-heading h2,
.clone-generate > .panel-heading h2 {
  font-size: 16px;
  font-weight: 550;
  line-height: 1.6;
}
.clone-hint a {
  color: #4e6a39;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sdk-panel {
  min-width: 0;
}
.sdk-panel pre {
  max-width: 100%;
  overflow: auto;
  margin: 20px 0 0;
  padding: 20px;
  background: #f7f8f3;
  border: 1px solid #dce2d5;
  border-radius: 8px;
  font:
    12px/1.65 "IBM Plex Mono",
    monospace;
}
.api-layout > .panel {
  min-width: 0;
}
.sdk-panel .settings-title {
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 700px) {
  .api-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .api-layout .code-toolbar {
    flex-wrap: wrap;
  }
}
