﻿:root {
  --workspace-bg: #f7f8fb;
  --workspace-panel: #ffffff;
  --workspace-ink: #18202f;
  --workspace-muted: #637083;
  --workspace-line: #dce2ea;
  --workspace-brand: #be3a87;
  --workspace-brand-strong: #a82470;
  --workspace-accent: #5b8ff2;
  --workspace-danger: #b42318;
  --workspace-success: #207a45;
  --workspace-shadow: 0 14px 38px rgba(27, 43, 65, 0.12);
  --app-desktop-sidebar-width: 268px;
  --app-desktop-sidebar-gap: 12px;
  --app-desktop-sidebar-pad: 22px 16px 18px;
  --app-desktop-brand-size: 1rem;
  --app-desktop-main-pad-x: 34px;
  --app-desktop-main-pad-y: 14px;
  --app-desktop-topbar-gap-below: 4px;
  --app-desktop-panel-pad: 20px;
  --app-desktop-panel-gap: 16px;
  --app-desktop-card-min-h: 116px;
  --app-desktop-card-pad: 16px;
  --app-desktop-icon-box: 44px;
  --app-desktop-list-gap: 8px;
  --app-desktop-list-item-pad: 10px;
  --app-desktop-history-open-icon: 48px;
  --app-desktop-history-open-gap: 12px;
  --app-desktop-history-icon-radius: 14px;
  --app-desktop-history-title-size: 1rem;
  --app-desktop-history-body-size: 0.9rem;
  --app-desktop-hero-size: clamp(1.8rem, 3vw, 2.95rem);
  --app-desktop-kicker-size: 0.7rem;
  --app-desktop-quota-min-h: 28px;
  --app-desktop-quota-pad-x: 12px;
  --app-desktop-quota-size: 0.87rem;
  --app-desktop-result-title-size: clamp(1.55rem, 2.1vw, 2.05rem);
  --app-desktop-body-size: 0.92rem;
  --app-desktop-meta-size: 0.82rem;
}

.workspace-body {
  min-height: 100vh;
  background: var(--workspace-bg);
  color: var(--workspace-ink);
  overflow: hidden;
}

.workspace-shell {
  display: grid;
  grid-template-columns: var(--app-desktop-sidebar-width) minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  padding: 0;
  margin: 0;
  background: #fff;
}

.workspace-sidebar {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: var(--app-desktop-sidebar-gap);
  min-height: 0;
  padding: var(--app-desktop-sidebar-pad);
  border-right: 1px solid var(--workspace-line);
  background: #fbfbfc;
}

.workspace-brand,
.workspace-brand:hover {
  color: #040b1a;
  font-size: var(--app-desktop-brand-size);
  font-weight: 900;
  text-decoration: none;
}

.workspace-brand-block p,
.workspace-muted,
.workspace-panel p,
.workspace-list span,
.workspace-account-card p,
.portal-message {
  color: var(--workspace-muted);
}

.workspace-new-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--workspace-brand);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(190, 58, 135, 0.2);
}

.workspace-new-button {
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  padding: 0 18px;
  font-size: 1.08rem;
}

.workspace-new-button span:first-child {
  font-size: 1.8rem;
  line-height: 1;
}

.workspace-nav {
  display: grid;
  gap: 6px;
}

.workspace-nav-item,
.sidebar-link-button,
.secondary-button,
.icon-menu-button,
.workspace-action-card {
  border: 0;
  background: transparent;
  color: var(--workspace-ink);
  cursor: pointer;
  font: inherit;
}

.workspace-nav-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 700;
}

.workspace-nav-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #3c4454;
}

.workspace-nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.workspace-nav-item.active,
.workspace-nav-item:hover {
  background: #ececec;
}

.workspace-upgrade-card {
  align-self: end;
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.workspace-upgrade-card span {
  color: #fff;
}

.workspace-upgrade-meta {
  display: none;
}

.workspace-upgrade-cta {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px 14px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(130, 17, 222, 0.95), rgba(223, 98, 182, 0.95));
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(131, 24, 186, 0.28);
}

.workspace-upgrade-bolt {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffd54a;
}

.workspace-upgrade-bolt svg,
.membership-upgrade-bolt svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.workspace-upgrade-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workspace-upgrade-copy strong,
.workspace-upgrade-copy small {
  margin: 0;
  color: #fff;
}

.workspace-upgrade-copy strong {
  font-size: 1rem;
  font-weight: 900;
}

.workspace-upgrade-copy small {
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
}

.workspace-account-card,
.account-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.workspace-account-card {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.workspace-account-card > div {
  min-width: 0;
}

.workspace-account-card strong,
.workspace-account-card p {
  overflow-wrap: anywhere;
}

.workspace-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #3c9cac;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  background-size: cover;
  background-position: center;
}

.workspace-avatar.large {
  width: 76px;
  height: 76px;
  font-size: 2rem;
}

.account-panel {
  display: grid;
  gap: 18px;
}

.account-card {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-card > div {
  display: grid;
  gap: 10px;
  max-width: 620px;
}

.account-card h2,
.account-card p {
  margin: 0;
}

.account-help-accent {
  font-weight: 900;
  color: var(--workspace-brand);
}

.workspace-main {
  min-width: 0;
  min-height: 0;
  padding: var(--app-desktop-main-pad-y) var(--app-desktop-main-pad-x) 36px;
  overflow: auto;
  background: #fff;
}

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--app-desktop-topbar-gap-below);
}

.workspace-topbar-actions,
.portal-actions,
.result-actions,
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.quota-pill {
  min-height: var(--app-desktop-quota-min-h);
  max-width: 320px;
  padding: 0 var(--app-desktop-quota-pad-x);
  overflow: hidden;
  border: 1px solid #ead7ea;
  border-radius: 999px;
  background: #fff;
  color: #7b18de;
  font-size: var(--app-desktop-quota-size);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-signin-button,
.secondary-button,
.danger-button,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  background: #fff;
  color: var(--workspace-ink);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.google-signin-button span:first-child {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f3f4f6;
}

.danger-button {
  border-color: rgba(180, 35, 24, 0.2);
  color: var(--workspace-danger);
}

.google-button {
  border: 0;
  background: var(--workspace-accent);
  color: #fff;
  font-weight: 800;
}

.google-button:hover {
  background: #4a56d4;
}

.hidden,
.workspace-view:not(.active),
.app-tool-panel[hidden] {
  display: none !important;
}

.workspace-view.active {
  display: grid;
  gap: var(--app-desktop-panel-gap);
}

.workspace-hero-row,
.workspace-panel-head,
.result-head,
.membership-head,
.credits-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.workspace-panel-head {
  padding-top: 2px;
  padding-bottom: 8px;
}

.workspace-panel-head > div,
.workspace-history-copy {
  display: grid;
  gap: 4px;
}

.result-head > div {
  display: grid;
  gap: 6px;
}

.workspace-hero-row h1 {
  margin: 0;
  max-width: none;
  font-size: var(--app-desktop-hero-size);
  letter-spacing: -0.045em;
}

.workspace-kicker {
  display: block;
  color: var(--workspace-brand);
  font-size: var(--app-desktop-kicker-size);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.09em;
  margin: 0;
  padding-block: 2px;
  text-transform: uppercase;
}

.workspace-hero-row .workspace-muted {
  font-size: var(--app-desktop-body-size);
  line-height: 1.4;
}

.icon-menu-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: #7f2f73;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 14px 30px rgba(127, 47, 115, 0.24);
}

.icon-menu-button span {
  display: inline-grid;
  place-items: center;
}

.icon-menu-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.workspace-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workspace-action-card {
  display: grid;
  justify-items: start;
  align-content: space-between;
  gap: 14px;
  min-height: var(--app-desktop-card-min-h);
  padding: var(--app-desktop-card-pad);
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 28px rgba(27, 43, 65, 0.06);
}

.workspace-action-card span {
  display: grid;
  place-items: center;
  width: var(--app-desktop-icon-box);
  height: var(--app-desktop-icon-box);
  border-radius: 14px;
  color: var(--workspace-brand);
}

.workspace-action-icon {
  border: 1px solid rgba(99, 112, 131, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.workspace-action-icon svg,
.workspace-history-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.action-icon-files,
.history-icon-file {
  background: #f4f2ff;
  color: #6574ea;
}

.action-icon-browser,
.history-icon-browser {
  background: #eef8f6;
  color: #5e9d8d;
}

.action-icon-history {
  background: #f7f1ff;
  color: #a55fd3;
}

.action-icon-voice-call {
  background: #eff2ff;
  color: #5b5bd6;
}

.action-icon-credits,
.history-icon-recording {
  background: #fff2f0;
  color: #d97267;
}

.workspace-action-card strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.workspace-panel,
.app-tool,
.upload-card,
.record-card-web,
.result-card,
.credits-card {
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--workspace-shadow);
}

.workspace-panel {
  padding: var(--app-desktop-panel-pad);
}

.workspace-list {
  display: grid;
  gap: var(--app-desktop-list-gap);
}

.empty-list {
  min-height: 120px;
  align-content: center;
  color: var(--workspace-muted);
}

.history-item,
.workspace-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.workspace-history-item {
  padding: var(--app-desktop-list-item-pad);
}

.workspace-history-item:hover,
.workspace-history-item:focus-within {
  border-color: #c980bd;
  box-shadow: 0 6px 18px rgba(181, 59, 140, 0.12);
  transform: translateY(-1px);
}

.history-file-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #f3f4ff;
  color: #3545d4;
  font-weight: 900;
}

.app-tool {
  display: grid;
  gap: 12px;
  padding: 0;
  background: #fff;
  box-shadow: none;
}

.app-mode-tabs,
.tool-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--workspace-shadow);
}

.app-mode-tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font-weight: 900;
}

.app-mode-tab.active {
  background: var(--workspace-brand);
  color: #fff;
}

.app-tool-panel.active {
  display: grid;
  gap: 12px;
}

.upload-card,
.record-card-web {
  padding: 20px;
}

.record-card-web {
  align-content: start;
}

.record-card-web h2,
.result-head h2,
.workspace-panel-head h2 {
  margin: 0;
}

.record-card-web p,
.result-head p,
.workspace-panel-head p {
  margin: 0;
}

.shared-upload-widget,
.upload-widget-form {
  width: 100%;
}

.upload-widget-form {
  display: grid;
  gap: 16px;
}

.upload-dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-dropzone-surface {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  min-height: 280px;
  padding: 34px 24px;
  border: 2px dashed rgba(190, 58, 135, 0.36);
  border-radius: 8px;
  background: #fff;
  color: var(--workspace-ink);
  text-align: center;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: #fff;
  color: var(--workspace-brand-strong);
  box-shadow: 0 10px 22px rgba(168, 36, 112, 0.12);
}

.upload-cloud-badge {
  background: #fff;
}

.upload-cloud-icon {
  width: 72px;
  height: 54px;
  fill: none;
  stroke: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-cloud-icon path:first-child {
  fill: var(--workspace-brand-strong);
}

.upload-cloud-icon path:not(:first-child) {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
}

.upload-icon svg,
.source-icon-web svg,
.speaker-toggle-icon svg,
.record-button-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.upload-icon .upload-cloud-icon {
  width: 72px;
  height: 54px;
}

.upload-widget-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.upload-widget-controls > label:not(.speaker-toggle-row),
.support-form {
  display: grid;
  gap: 8px;
}

.upload-widget-controls input,
.upload-widget-controls select,
.support-form input,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  color: var(--workspace-ink);
}

.support-form textarea {
  min-height: 180px;
  resize: vertical;
}

.upload-submit {
  width: min(100%, 348px);
  justify-self: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  background: #a52b78;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(165, 43, 120, 0.2);
}

.upload-submit:hover {
  background: #932469;
}

.upload-selected-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(190, 58, 135, 0.09);
  color: var(--workspace-brand-strong);
  font-weight: 900;
}

.speaker-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid rgba(190, 58, 135, 0.16);
  border-radius: 8px;
  background: rgba(190, 58, 135, 0.06);
  cursor: pointer;
}

.speaker-toggle-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--workspace-brand);
}

.speaker-toggle-copy {
  display: grid;
  flex: 1;
  gap: 2px;
  text-align: left;
}

.speaker-toggle-copy strong {
  color: var(--workspace-ink);
  font-size: 0.95rem;
}

.speaker-toggle-copy small {
  color: var(--workspace-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.speaker-toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.speaker-toggle-switch {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 160ms ease;
}

.speaker-toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  transition: transform 160ms ease;
}

.speaker-toggle-row input:checked + .speaker-toggle-switch {
  background: var(--workspace-brand);
}

.speaker-toggle-row input:checked + .speaker-toggle-switch::after {
  transform: translateX(20px);
}

.upload-speaker-toggle {
  grid-column: 1 / -1;
  display: flex;
}

.source-option-web {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(190, 58, 135, 0.1);
  color: var(--workspace-brand);
  font-size: 0.78rem;
  font-weight: 900;
}

.status-badge.warning {
  background: rgba(180, 35, 24, 0.1);
  color: var(--workspace-danger);
}

.workspace-history-note {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(91, 143, 242, 0.18);
  border-radius: 8px;
  background: rgba(91, 143, 242, 0.06);
}

.workspace-history-note strong {
  color: var(--workspace-ink);
}

.workspace-history-note p {
  margin: 0;
}

.result-audio-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(190, 58, 135, 0.16);
  border-radius: 8px;
  background: rgba(190, 58, 135, 0.04);
}

.result-audio-panel audio {
  width: 100%;
}

.result-audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.result-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.result-head h2 {
  font-size: var(--app-desktop-result-title-size);
  line-height: 1.05;
}

.app-tool-panel .danger-button,
.result-audio-actions .action-button,
.result-preview-callout .action-button,
.result-actions .action-button,
.web-task-actions .secondary-button {
  min-height: 34px;
  font-size: 0.92rem;
}

.translate-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(190, 58, 135, 0.14);
  border-radius: 999px;
  background: #f7f2fb;
  color: var(--workspace-brand);
  font-size: 0.92rem;
  font-weight: 900;
}

.translate-pill:hover {
  background: #f1e8f8;
}

#resultWordCount {
  margin-left: auto;
  color: var(--workspace-muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.result-action-status {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
  color: var(--workspace-muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  word-break: break-word;
}

.result-preview-callout {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(190, 58, 135, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(190, 58, 135, 0.08), rgba(190, 58, 135, 0.03));
}

.result-preview-callout strong {
  color: var(--workspace-brand-strong);
}

.result-preview-callout p {
  margin: 0;
  color: var(--workspace-muted);
}

.result-speaker-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(99, 112, 131, 0.12);
  border-radius: 8px;
  background: #fdfcff;
}

.result-speaker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.result-speaker-head strong,
.speaker-rename-copy strong {
  color: var(--workspace-ink);
}

.result-speaker-head p,
.speaker-rename-copy p {
  margin: 4px 0 0;
  color: var(--workspace-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.result-speaker-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-speaker-filter-groups {
  display: grid;
  gap: 10px;
}

.result-speaker-filter-group {
  display: grid;
  gap: 8px;
}

.result-speaker-filter-label {
  color: var(--workspace-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-speaker-views {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.result-speaker-format-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(99, 112, 131, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--workspace-muted);
  font-size: 0.92rem;
  cursor: pointer;
}

.result-speaker-format-toggle input {
  margin: 0;
  accent-color: var(--workspace-brand);
}

.result-speaker-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(99, 112, 131, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--workspace-ink);
  font: inherit;
  cursor: pointer;
}

.result-speaker-filter.active,
.result-speaker-view.active {
  border-color: rgba(190, 58, 135, 0.28);
  background: rgba(190, 58, 135, 0.08);
  color: var(--workspace-brand-strong);
}

.result-speaker-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(99, 112, 131, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--workspace-ink);
  font: inherit;
  cursor: pointer;
}

.result-speaker-list {
  display: grid;
  gap: 10px;
}

.speaker-rename-row {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(99, 112, 131, 0.1);
  border-radius: 8px;
  background: #fff;
}

.speaker-rename-copy {
  min-width: 0;
}

.speaker-rename-copy strong {
  display: block;
}

.speaker-rename-controls {
  display: grid;
  gap: 10px;
}

.speaker-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.speaker-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.speaker-field span {
  color: var(--workspace-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.speaker-rename-input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  background: #fff;
  color: var(--workspace-ink);
  font: inherit;
}

.speaker-rename-input:focus {
  outline: 2px solid rgba(190, 58, 135, 0.18);
  outline-offset: 1px;
}

.speaker-color-input {
  width: 42px;
  min-width: 42px;
  height: 40px;
  padding: 4px;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.transcript-output .transcript-speaker-label {
  font-weight: 800;
}

.transcript-output .transcript-speaker-heading {
  font-weight: 800;
}

.workspace-history-open {
  display: grid;
  grid-template-columns: var(--app-desktop-history-open-icon) minmax(0, 1fr);
  gap: var(--app-desktop-history-open-gap);
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.workspace-history-delete {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  align-self: center;
  border: 1px solid rgba(190, 58, 135, 0.12);
  border-radius: 12px;
  background: #f7f2fb;
  color: var(--workspace-danger);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.workspace-history-delete:hover,
.workspace-history-delete:focus-visible {
  background: rgba(180, 35, 24, 0.12);
}

.workspace-history-icon {
  display: grid;
  place-items: center;
  width: var(--app-desktop-history-open-icon);
  height: var(--app-desktop-history-open-icon);
  border-radius: var(--app-desktop-history-icon-radius);
  border: 1px solid rgba(99, 112, 131, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.workspace-history-copy {
  min-width: 0;
}

.workspace-history-title {
  font-size: var(--app-desktop-history-title-size);
  font-weight: 900;
  line-height: 1.25;
  color: var(--workspace-ink);
  word-break: break-word;
}

.workspace-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  color: var(--workspace-muted);
  font-size: var(--app-desktop-history-body-size);
}

.workspace-history-meta-item {
  display: inline;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 500;
}

.workspace-history-meta-item + .workspace-history-meta-item::before {
  content: " - ";
  color: #c2c8d4;
}

.workspace-history-meta-item.status-completed {
  color: #66758f;
  font-weight: 600;
}

.workspace-history-meta-item.status-processing,
.workspace-history-meta-item.status-uploading,
.workspace-history-meta-item.status-queued {
  color: #6b5bd2;
  font-weight: 700;
}

.workspace-history-meta-item.status-failed,
.workspace-history-meta-item.status-deleted {
  color: var(--workspace-danger);
  font-weight: 700;
}

.workspace-history-snippet {
  margin: 0;
  color: var(--workspace-muted);
  font-size: var(--app-desktop-history-body-size);
  line-height: 1.45;
  word-break: break-word;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.source-list-web {
  display: grid;
  gap: 12px;
}

.web-speaker-toggle {
  margin-top: 14px;
}

.source-option-web {
  display: grid;
  grid-template-columns: 44px 1fr 38px;
  min-height: 58px;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  background: #fff;
  color: var(--workspace-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.source-option-web.active {
  border-color: rgba(190, 58, 135, 0.32);
  background: rgba(190, 58, 135, 0.06);
}

.source-icon-web {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f4eef6;
  color: var(--workspace-brand);
}

.switch-web {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d7dee8;
  position: relative;
}

.switch-web::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.source-option-web.active .switch-web {
  background: var(--workspace-brand);
}

.source-option-web.active .switch-web::after {
  transform: translateX(16px);
}

.record-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.start-recording-button {
  width: min(100%, 348px);
  justify-self: center;
  border-radius: 999px;
  background: #a52b78;
  box-shadow: 0 18px 36px rgba(165, 43, 120, 0.2);
}

.start-recording-button:hover {
  background: #932469;
}

.record-button-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
}

.transcript-output {
  min-height: 244px;
  overflow: auto;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  background: #fbfbfd;
  padding: 22px 24px;
  color: var(--workspace-ink);
  font-size: 1rem;
  line-height: 1.7;
}

.transcript-output.is-plain {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.5;
}

.transcript-output .transcript-segment:last-child {
  margin-bottom: 0;
}

.result-route-shell {
  display: grid;
  gap: 18px;
}

.result-route-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.result-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(99, 112, 131, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--workspace-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.result-route-copy {
  color: var(--workspace-muted);
  font-size: 0.94rem;
}

.workspace-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 0;
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.22);
}

.workspace-dialog::backdrop {
  background: rgba(17, 24, 39, 0.56);
}

.workspace-dialog-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 30px 24px 24px;
}

.workspace-dialog-form h2,
.workspace-dialog-form p {
  margin: 0;
}

.workspace-dialog-form p {
  color: var(--workspace-muted);
}

.dialog-close-button {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--workspace-ink);
  font-size: 1.8rem;
  line-height: 1;
}

.language-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.language-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--workspace-line);
  border-radius: 12px;
  background: #fff;
  color: var(--workspace-ink);
  font-size: 1rem;
  text-align: left;
}

.language-list button:first-child {
  background: var(--workspace-brand);
  border-color: var(--workspace-brand);
  color: #fff;
}

.subscription-panel {
  display: grid;
  gap: 16px;
}

.billing-options-panel {
  display: grid;
  gap: 16px;
}

.billing-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.billing-option-grid .primary-button,
.billing-option-grid .secondary-button {
  width: 100%;
}

.membership-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #94378a, #c658a5);
  color: #fff;
}

.membership-summary {
  display: grid;
  gap: 8px;
}

.membership-summary h2,
.membership-summary p,
.membership-summary span {
  margin: 0;
}

.membership-head p,
.membership-head span {
  color: rgba(255, 255, 255, 0.85);
}

.credit-balance {
  display: grid;
  justify-items: end;
  gap: 6px;
}

@media (max-width: 900px) {
  .billing-option-grid {
    grid-template-columns: 1fr;
  }
}

.credit-balance strong {
  font-size: 2.7rem;
  line-height: 1;
}

.membership-upgrade-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.membership-upgrade-bolt {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #ffd54a;
}

.membership-head .membership-upgrade-bolt {
  color: #ffd54a;
}

.membership-upgrade-link span:last-child {
  color: #fff;
}

.membership-head {
  padding: 20px 22px;
}

.membership-summary h2 {
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.02;
}

.membership-summary p {
  font-size: 0.98rem;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.membership-grid article {
  display: grid;
  gap: 4px;
  padding: 16px 14px 18px;
  border: 1px solid var(--workspace-line);
  background: #fff;
}

.membership-grid article:first-child {
  border-radius: 8px 0 0 8px;
}

.membership-grid article:last-child {
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.membership-grid-end,
.membership-grid-end span,
.membership-grid-end strong {
  text-align: right;
}

.credits-card {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0;
  overflow: visible;
  border-radius: 16px;
  box-shadow: none;
}

.credits-card-head {
  align-items: flex-start;
  padding: 18px 20px 14px;
  border-bottom: 1px dashed #d9dce4;
}

.credits-card-head h3 {
  margin: 0;
}

.credits-card-head p {
  margin: 4px 0 0;
  color: #7b8390;
  font-size: 0.92rem;
}

.credits-total {
  min-width: 92px;
  text-align: right;
}

.credits-total strong,
.credits-total span {
  display: block;
}

.credits-total strong {
  font-size: 1.75rem;
  line-height: 1;
}

.credits-total span {
  margin-top: 4px;
  color: #7b8390;
  font-size: 0.82rem;
}

.credits-help {
  position: absolute;
  top: 18px;
  left: 108px;
}

.help-trigger {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #c3c7d0;
  border-radius: 50%;
  background: #fff;
  color: #6c7280;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.credits-help-popover {
  position: absolute;
  z-index: 5;
  top: 28px;
  left: -20px;
  display: none;
  width: min(430px, calc(100vw - 72px));
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.94);
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.credits-help-popover strong {
  display: block;
  margin-bottom: 10px;
}

.credits-help-popover p {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  align-items: start;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.popover-dot {
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: #fff;
}

.credits-help:hover .credits-help-popover,
.credits-help:focus-within .credits-help-popover {
  display: block;
}

.credits-list {
  display: grid;
  gap: 0;
  padding: 2px 20px 10px;
}

.credits-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #eff1f5;
  border-radius: 0;
}

.credits-list article:last-child {
  border-bottom: 0;
}

.credits-list span,
.credits-list small {
  min-width: 0;
}

.credits-list span {
  font-weight: 800;
}

.credits-list small {
  grid-column: 1;
  color: #7b8390;
  font-size: 0.82rem;
}

.credits-list article strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  justify-self: end;
  font-size: 1.15rem;
}

#webTaskInputView {
  display: grid;
  gap: 24px;
}

.web-task-state-view {
  display: grid;
  min-height: 392px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 36px 20px;
  text-align: center;
}

.web-task-state-view h2,
.web-task-state-view p {
  max-width: 680px;
  margin: 0;
}

.web-recording-pulse {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(190, 58, 135, 0.1);
}

.web-recording-pulse::before,
.web-recording-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(190, 58, 135, 0.25);
  border-radius: inherit;
  animation: web-recording-ring 1.8s ease-out infinite;
}

.web-recording-pulse::after {
  animation-delay: 0.9s;
}

.web-recording-pulse span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--workspace-brand);
}

.web-recording-duration {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.web-recording-controls {
  display: grid;
  grid-template-columns: repeat(3, 82px);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: min(100%, 420px);
  margin: 10px auto 0;
}

.web-recording-control-button {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: #000;
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
}

.web-recording-control-button.neutral {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 10px rgba(255, 240, 247, 0.72);
}

.web-recording-control-button.pause {
  background: rgba(208, 216, 224, 0.72);
  box-shadow: 0 0 0 10px rgba(208, 216, 224, 0.22);
}

.web-recording-pause-icon,
.web-recording-play-icon {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.web-recording-play-icon {
  display: none;
  fill: currentColor;
  stroke: currentColor;
}

.web-recording-control-button.pause.is-paused .web-recording-pause-icon {
  display: none;
}

.web-recording-control-button.pause.is-paused .web-recording-play-icon {
  display: block;
}

.web-recording-control-button.done {
  background: var(--workspace-brand);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(190, 58, 135, 0.14);
}

.web-recording-control-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.web-processing-spinner {
  width: 72px;
  height: 72px;
  border: 7px solid #f0dfe9;
  border-top-color: var(--workspace-brand);
  border-radius: 50%;
  animation: web-processing-spin 1s linear infinite;
}

.web-processing-file {
  color: var(--workspace-muted);
}

.web-task-progress {
  width: min(620px, 100%);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e8ee;
}

.web-task-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--workspace-brand);
  transition: width 240ms ease;
}

.web-task-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.voice-call-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
  width: 100%;
  min-height: calc(100vh - 104px);
  height: calc(100vh - 104px);
  padding: 14px 18px 12px;
  border: 1px solid rgba(88, 120, 255, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(101, 120, 255, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(180, 105, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: 0 20px 48px rgba(65, 83, 150, 0.1);
}

.voice-call-status-row,
.voice-call-status-meta,
.voice-call-status-side,
.voice-call-meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.voice-call-status-meta,
.voice-call-status-side {
  justify-content: flex-start;
}

.voice-call-panel p,
.voice-call-transcript-head strong,
.voice-call-meter-label {
  margin: 0;
}

.voice-call-status-row {
  min-height: 30px;
}

.voice-call-headline {
  color: #1e2948;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.voice-call-panel .workspace-kicker {
  color: #5f6f95;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

.voice-call-live-indicator {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #38c172;
  box-shadow: 0 0 0 5px rgba(56, 193, 114, 0.16);
}

.voice-call-clock {
  color: #2a3557;
  font-size: 0.9rem;
  font-weight: 800;
  min-width: 42px;
  text-align: right;
}

.voice-call-network-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6e7da2;
  font-size: 0.82rem;
  font-weight: 700;
}

.voice-call-network-bars {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  height: 16px;
}

.voice-call-network-bars span {
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #37d56a 0%, #7fe77d 100%);
}

.voice-call-network-bars span:nth-child(1) { height: 5px; opacity: 0.58; }
.voice-call-network-bars span:nth-child(2) { height: 8px; opacity: 0.76; }
.voice-call-network-bars span:nth-child(3) { height: 12px; opacity: 0.9; }
.voice-call-network-bars span:nth-child(4) { height: 15px; }

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

.voice-call-section-label {
  margin: 0 0 2px;
  color: var(--workspace-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.voice-call-scenario-shell {
  display: grid;
  gap: 6px;
}

.voice-call-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.voice-call-scenario {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(91, 143, 242, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: #1b2647;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}

.voice-call-scenario.active {
  border-color: var(--workspace-brand);
  background: linear-gradient(180deg, #c94a99 0%, var(--workspace-brand) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(190, 58, 135, 0.22);
}

.voice-call-scenario.is-pending {
  border-color: rgba(133, 146, 181, 0.2);
  background: rgba(247, 248, 251, 0.86);
  color: #9aa5b8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.voice-call-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(91, 143, 242, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.96) 0%, rgba(240, 244, 255, 0.96) 100%);
  min-height: 0;
}

.voice-call-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 0;
  height: 100%;
}

.voice-call-waveform-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 54px;
  padding: 2px 0 0;
}

.voice-call-waveform-strip span {
  display: block;
  width: 6px;
  min-height: 6px;
  height: var(--wave-height, 18px);
  border-radius: 999px;
  background: linear-gradient(180deg, #45a4ff 0%, #8a5dff 54%, #b869ff 100%);
  box-shadow: 0 0 18px rgba(107, 102, 255, 0.12);
  opacity: 0.96;
  transition: height 82ms linear, opacity 120ms ease;
}

.voice-call-waveform-strip span:nth-child(1) { --wave-height: 8px; }
.voice-call-waveform-strip span:nth-child(2) { --wave-height: 12px; }
.voice-call-waveform-strip span:nth-child(3) { --wave-height: 18px; }
.voice-call-waveform-strip span:nth-child(4) { --wave-height: 28px; }
.voice-call-waveform-strip span:nth-child(5) { --wave-height: 18px; }
.voice-call-waveform-strip span:nth-child(6) { --wave-height: 12px; }
.voice-call-waveform-strip span:nth-child(7) { --wave-height: 10px; }
.voice-call-waveform-strip span:nth-child(8) { --wave-height: 16px; }
.voice-call-waveform-strip span:nth-child(9) { --wave-height: 24px; }
.voice-call-waveform-strip span:nth-child(10) { --wave-height: 38px; }
.voice-call-waveform-strip span:nth-child(11) { --wave-height: 54px; }
.voice-call-waveform-strip span:nth-child(12) { --wave-height: 34px; }
.voice-call-waveform-strip span:nth-child(13) { --wave-height: 20px; }
.voice-call-waveform-strip span:nth-child(14) { --wave-height: 12px; }
.voice-call-waveform-strip span:nth-child(15) { --wave-height: 10px; }
.voice-call-waveform-strip span:nth-child(16) { --wave-height: 14px; }
.voice-call-waveform-strip span:nth-child(17) { --wave-height: 20px; }
.voice-call-waveform-strip span:nth-child(18) { --wave-height: 30px; }
.voice-call-waveform-strip span:nth-child(19) { --wave-height: 42px; }
.voice-call-waveform-strip span:nth-child(20) { --wave-height: 30px; }
.voice-call-waveform-strip span:nth-child(21) { --wave-height: 20px; }
.voice-call-waveform-strip span:nth-child(22) { --wave-height: 14px; }
.voice-call-waveform-strip span:nth-child(23) { --wave-height: 10px; }
.voice-call-waveform-strip span:nth-child(24) { --wave-height: 10px; }
.voice-call-waveform-strip span:nth-child(25) { --wave-height: 14px; }
.voice-call-waveform-strip span:nth-child(26) { --wave-height: 22px; }
.voice-call-waveform-strip span:nth-child(27) { --wave-height: 36px; }
.voice-call-waveform-strip span:nth-child(28) { --wave-height: 50px; }
.voice-call-waveform-strip span:nth-child(29) { --wave-height: 36px; }
.voice-call-waveform-strip span:nth-child(30) { --wave-height: 22px; }
.voice-call-waveform-strip span:nth-child(31) { --wave-height: 14px; }
.voice-call-waveform-strip span:nth-child(32) { --wave-height: 10px; }
.voice-call-waveform-strip span:nth-child(33) { --wave-height: 12px; }
.voice-call-waveform-strip span:nth-child(34) { --wave-height: 18px; }
.voice-call-waveform-strip span:nth-child(35) { --wave-height: 30px; }
.voice-call-waveform-strip span:nth-child(36) { --wave-height: 44px; }
.voice-call-waveform-strip span:nth-child(37) { --wave-height: 58px; }
.voice-call-waveform-strip span:nth-child(38) { --wave-height: 40px; }
.voice-call-waveform-strip span:nth-child(39) { --wave-height: 24px; }

.voice-call-waveform-strip[data-voice-call-state="idle"] span,
.voice-call-waveform-strip[data-voice-call-state="error"] span,
.voice-call-waveform-strip[data-voice-call-state="ending"] span {
  opacity: 0.5;
}

.voice-call-transcript {
  min-height: 0;
  height: 100%;
  padding: 14px 16px 12px;
  border: 1px solid rgba(91, 143, 242, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--workspace-muted);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.voice-call-transcript-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.voice-call-transcript-head strong {
  color: #1f2a47;
  font-size: 0.98rem;
}

.voice-call-transcript-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8b95aa;
  font-size: 0.84rem;
  font-weight: 700;
}

.voice-call-transcript-live .voice-call-live-indicator {
  width: 10px;
  height: 10px;
  background: #b6bdcb;
  box-shadow: 0 0 0 4px rgba(139, 149, 170, 0.14);
}

.voice-call-transcript-live[data-live="true"] {
  color: #2f8c52;
}

.voice-call-transcript-live[data-live="true"] .voice-call-live-indicator {
  background: #38c172;
  box-shadow: 0 0 0 4px rgba(56, 193, 114, 0.16);
}

.voice-call-transcript-list {
  min-height: 280px;
  max-height: none;
  overflow: auto;
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 0.5em;
  padding-right: 8px;
  font-size: 0.95rem;
}

.voice-call-transcript-item {
  display: grid;
  grid-template-columns: 52px 16px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--workspace-ink);
  line-height: 1.5;
}

.voice-call-caption-row.is-active {
  padding: 10px 12px 10px 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(91, 143, 242, 0.08) 0%, rgba(122, 73, 255, 0.08) 100%);
  box-shadow: inset 0 0 0 1px rgba(91, 143, 242, 0.16);
}

.voice-call-caption-time {
  color: #7f8db3;
  font-size: 0.8rem;
  font-weight: 600;
}

.voice-call-caption-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: #6d63ff;
}

.voice-call-caption-dot.assistant { background: #3f92ff; }
.voice-call-caption-dot.user { background: #8b57ff; }
.voice-call-caption-dot.system { background: #94a3b8; }

.voice-call-caption-body {
  display: block;
  line-height: 1.5;
}

.voice-call-caption-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 10px;
  align-items: baseline;
  width: 100%;
}

.voice-call-transcript-role {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}

.voice-call-transcript-role.assistant { color: #2e82ff; }
.voice-call-transcript-role.user { color: #7a49ff; }
.voice-call-transcript-role.system { color: #64748b; }

.voice-call-status-live {
  background: rgba(56, 193, 114, 0.14);
  color: #1b9d50;
}

.voice-call-status-error {
  background: rgba(240, 82, 82, 0.12);
  color: #d14343;
}

.voice-call-meter-row {
  margin-top: -2px;
}

.voice-call-meter-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.voice-call-meter-cluster-ai {
  justify-content: flex-end;
}

.voice-call-level-meter {
  display: inline-flex;
  gap: 4px;
}

.voice-call-level-meter span {
  width: 7px;
  height: 14px;
  border-radius: 999px;
  background: rgba(133, 146, 181, 0.24);
  transition: background 90ms ease, opacity 90ms ease, transform 90ms ease;
}

.voice-call-level-meter[data-active="false"] span {
  opacity: 0.55;
}

.voice-call-meter-cluster:first-child .voice-call-level-meter span.is-active { background: linear-gradient(180deg, #59df79 0%, #7fe77d 100%); }
.voice-call-meter-cluster:last-child .voice-call-level-meter span.is-active { background: linear-gradient(180deg, #49a2ff 0%, #6d7cff 100%); }

.voice-call-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(118px, 1.05fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 94px;
}

.voice-call-menu-anchor {
  position: relative;
  min-width: 0;
}

.voice-call-menu-anchor > .voice-call-dock-button {
  width: 100%;
}

.voice-call-popover {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(260px, 78vw);
  padding: 10px;
  border: 1px solid rgba(91, 143, 242, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(40, 53, 88, 0.18);
}

.voice-call-models-menu {
  width: min(320px, 86vw);
}

.voice-call-popover[hidden] {
  display: none;
}

.voice-call-popover-title {
  margin: 2px 6px 8px;
  color: #71809f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voice-call-menu-option {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #273557;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
}

.voice-call-menu-option:hover:not(:disabled),
.voice-call-menu-option:focus-visible:not(:disabled),
.voice-call-menu-option.active {
  background: rgba(190, 58, 135, 0.1);
  color: var(--workspace-brand-strong);
}

.voice-call-menu-option span:last-child,
.voice-call-menu-option strong {
  color: #8d98ae;
  font-size: 0.72rem;
  font-weight: 800;
}

.voice-call-menu-option.active span:last-child,
.voice-call-menu-option strong {
  color: var(--workspace-brand);
}

.voice-call-menu-option:disabled {
  color: #aab2c2;
  cursor: not-allowed;
}

.voice-call-menu-option:disabled span:last-child {
  color: #b7bfcd;
}

.voice-call-remote-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.voice-call-dock-button,
.voice-call-primary-action {
  min-height: 82px;
  padding: 9px 8px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #19213d;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.voice-call-dock-button {
  border: 1px solid rgba(91, 143, 242, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.voice-call-dock-icon,
.voice-call-primary-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(89, 110, 255, 0.08);
}

.voice-call-dock-icon svg,
.voice-call-primary-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voice-call-dock-icon svg.voice-call-icon-solid,
.voice-call-primary-icon svg.voice-call-icon-solid {
  fill: currentColor;
  stroke: none;
}

.voice-call-phone-icon svg {
  width: 25px;
  height: 25px;
  transform: rotate(-10deg);
}

.voice-call-primary-action[data-voice-call-state="end"] .voice-call-phone-icon svg {
  transform: rotate(90deg);
}

.voice-call-settings-icon svg {
  width: 21px;
  height: 21px;
}

.voice-call-primary-action {
  min-height: 108px;
  margin: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #19213d;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.voice-call-primary-action .voice-call-primary-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4fd969 0%, #1fbf56 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(31, 191, 86, 0.2);
}

.voice-call-primary-action[data-voice-call-state="start"] {
  background: transparent;
}

.voice-call-primary-action[data-voice-call-state="start"] .voice-call-primary-icon {
  background: linear-gradient(180deg, #4fd969 0%, #1fbf56 100%);
}

.voice-call-primary-action[data-voice-call-state="end"] .voice-call-primary-icon {
  background: linear-gradient(180deg, #ff7587 0%, #e84664 100%);
  box-shadow: 0 10px 20px rgba(232, 70, 100, 0.2);
}

.voice-call-transcript-list.is-placeholder .voice-call-caption-body > span:last-child {
  color: #1f2a47;
}

.voice-call-replay-output {
  display: grid;
  gap: 10px;
}

.voice-call-replay-output .voice-call-caption-row {
  margin: 0;
}

.voice-call-transcript-list::-webkit-scrollbar {
  width: 8px;
}

.voice-call-transcript-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(120, 133, 179, 0.38);
}

.voice-call-transcript-list::-webkit-scrollbar-track {
  background: transparent;
}

.voice-call-primary-action:disabled,
.voice-call-dock-button:disabled,
.voice-call-scenario:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

#voiceCallMute:disabled,
#voiceCallSpeaker:disabled {
  opacity: 1;
}

@keyframes voice-call-wave-bounce {
  0%, 100% { transform: scaleY(0.72); opacity: 0.72; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes voice-call-meter-pulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes web-recording-ring {
  from {
    opacity: 0.7;
    transform: scale(0.7);
  }

  to {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes web-processing-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .web-recording-pulse::before,
  .web-recording-pulse::after,
  .web-processing-spinner,
  .voice-call-waveform-strip span,
  .voice-call-level-meter span {
    animation: none;
  }

  .web-task-progress-fill {
    transition: none;
  }
}

@media (max-width: 1040px) {
  .workspace-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .workspace-body {
    overflow: auto;
  }

  .workspace-sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    grid-template-rows: auto auto;
    padding: 16px;
  }

  .workspace-brand,
  .workspace-brand:hover {
    font-size: 1.2rem;
  }

  .workspace-nav {
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .workspace-upgrade-card,
  .workspace-account-card {
    display: none;
  }

  .workspace-main {
    padding: 24px 18px 42px;
  }

  .workspace-hero-row h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    letter-spacing: -0.04em;
  }

  .workspace-kicker {
    font-size: 0.75rem;
  }

  .workspace-hero-row .workspace-muted {
    font-size: 1rem;
    line-height: 1.5;
  }

  .quota-pill {
    min-height: 32px;
    padding: 0 14px;
    font-size: 0.95rem;
  }

  .workspace-action-grid,
  .membership-grid,
  .upload-widget-controls {
    grid-template-columns: 1fr;
  }

  .membership-grid article:first-child,
  .membership-grid article:last-child {
    border-radius: 8px;
  }

  .membership-grid article:last-child {
    border-top: 0;
    border-left: 1px solid var(--workspace-line);
  }

  .credits-help {
    top: 16px;
    left: auto;
    right: 122px;
  }
}

@media (max-width: 720px) {
  .workspace-topbar,
  .workspace-hero-row,
  .workspace-panel-head,
  .membership-head,
  .result-head,
  .credits-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-action-grid {
    grid-template-columns: 1fr;
  }

  .voice-call-status-row,
  .voice-call-meter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .voice-call-content-grid {
    grid-template-columns: 1fr;
  }

  .voice-call-scenarios,
  .voice-call-dock {
    grid-template-columns: 1fr;
  }

  .voice-call-primary-action {
    margin-top: 0;
  }

  .voice-call-transcript-item {
    grid-template-columns: 46px 14px 1fr;
  }

  .speaker-rename-row {
    grid-template-columns: 1fr;
  }

  .speaker-field-grid {
    grid-template-columns: 1fr;
  }

  .speaker-rename-input {
    min-width: 0;
  }

  .credits-help {
    position: static;
    padding: 0 20px 4px;
  }

  .credits-help-popover {
    left: 0;
  }
}
