:root {
  --ink: #17172b;
  --muted: #6e7082;
  --soft-muted: #989aaa;
  --line: #e7e7ef;
  --line-strong: #d9dae6;
  --surface: #ffffff;
  --canvas: #f6f7fb;
  --primary: #6259e8;
  --primary-dark: #5047d7;
  --primary-soft: #eeecff;
  --cyan: #39b8c7;
  --cyan-soft: #e1f7f9;
  --green: #24a66f;
  --green-soft: #e6f7ef;
  --amber: #e99b37;
  --amber-soft: #fff1dc;
  --danger: #d84e5f;
  --shadow-sm: 0 1px 2px rgba(27, 28, 49, .04), 0 4px 12px rgba(27, 28, 49, .035);
  --shadow-md: 0 20px 60px rgba(32, 30, 75, .13), 0 4px 14px rgba(32, 30, 75, .07);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button,
a,
input,
[contenteditable="true"] {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible,
[contenteditable="true"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(98, 89, 232, .22);
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

svg.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.marketing-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

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

.button-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(98, 89, 232, .2);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(98, 89, 232, .28);
}

.button-dark {
  color: #fff;
  background: var(--ink);
}

.button-dark:hover {
  background: #292942;
}

.button-soft {
  color: #414151;
  border-color: var(--line);
  background: rgba(255,255,255,.72);
}

.button-soft:hover {
  border-color: #d5d4e4;
  background: #fff;
}

.button-white {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 8px 24px rgba(37, 28, 118, .18);
}

.button-white:hover {
  box-shadow: 0 12px 26px rgba(37, 28, 118, .24);
}

.button-ghost {
  color: #4f5060;
  background: transparent;
}

.button-large {
  min-height: 54px;
  padding-inline: 23px;
  border-radius: 14px;
  font-size: 15px;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: #646576;
  background: transparent;
}

.icon-button:hover {
  background: #f0f1f6;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}

.text-button .icon {
  width: 16px;
  height: 16px;
}

.logo-button {
  padding: 0;
  background: transparent;
}

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

.brand-mark {
  display: flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  border-radius: 11px;
  background: var(--primary);
  box-shadow: 0 6px 14px rgba(98, 89, 232, .22);
}

.brand-mark i {
  width: 2px;
  border-radius: 99px;
  background: #fff;
}

.brand-mark i:nth-child(1),
.brand-mark i:nth-child(5) { height: 7px; opacity: .72; }
.brand-mark i:nth-child(2),
.brand-mark i:nth-child(4) { height: 14px; }
.brand-mark i:nth-child(3) { height: 21px; }

.brand-name {
  color: var(--ink);
  font-size: 23px;
  font-weight: 760;
  letter-spacing: -.055em;
}

.brand-name span {
  color: var(--primary);
}

.brand-on-dark .brand-name {
  color: #fff;
}

/* Marketing */

.marketing-page {
  overflow: hidden;
  background: #fbfbfd;
}

.marketing-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(232, 231, 242, .8);
  background: rgba(251, 251, 253, .74);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
}

.marketing-links {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 52px;
}

.marketing-links button,
.mobile-marketing-links button {
  padding: 10px 12px;
  color: #666777;
  background: transparent;
  font-size: 13px;
  font-weight: 560;
}

.marketing-links button:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-cta {
  min-height: 42px;
  margin-left: 4px;
}

.nav-cta .icon {
  width: 17px;
  height: 17px;
}

.marketing-menu,
.mobile-marketing-links {
  display: none;
}

.hero {
  position: relative;
  min-height: 700px;
  padding: 136px 0 78px;
  overflow: hidden;
  background:
    linear-gradient(rgba(98,89,232,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98,89,232,.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfbfd 0%, #f8f7ff 100%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
}

.hero::after {
  position: absolute;
  right: -9%;
  bottom: -60px;
  left: -9%;
  height: 150px;
  border-radius: 50% 50% 0 0;
  background: #fff;
  content: "";
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
}

.hero-glow-one {
  top: 86px;
  right: 4%;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(120, 110, 255, .18), rgba(120,110,255,0) 67%);
}

.hero-glow-two {
  bottom: 50px;
  left: -90px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(69, 198, 198, .12), rgba(69,198,198,0) 68%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  align-items: center;
  gap: 36px;
}

.hero-copy {
  padding-bottom: 14px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid #dfddfa;
  border-radius: 99px;
  color: #5550b7;
  background: rgba(241,239,255,.8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.eyebrow-pill .icon {
  width: 15px;
  height: 15px;
}

.hero h1 {
  max-width: 630px;
  margin-top: 20px;
  font-size: clamp(51px, 5.5vw, 75px);
  font-weight: 720;
  line-height: .99;
  letter-spacing: -.065em;
}

.hero h1 em {
  position: relative;
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.055em;
}

.hero h1 em::after {
  position: absolute;
  right: 1%;
  bottom: -8px;
  left: 1%;
  height: 8px;
  border-radius: 50%;
  border-top: 3px solid rgba(98,89,232,.34);
  content: "";
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 540px;
  margin-top: 22px;
  color: #666878;
  font-size: 18px;
  line-height: 1.64;
  letter-spacing: -.015em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.play-mini {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
}

.play-mini .icon {
  width: 11px;
  height: 11px;
  margin-left: 2px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  color: #898a99;
  font-size: 12px;
}

.hero-note .icon {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.hero-product {
  position: relative;
  padding: 15px 0 0 13px;
  perspective: 1200px;
}

.preview-wrap {
  position: relative;
  transform: rotateY(-3deg) rotateX(1deg);
  transform-origin: center left;
}

.editor-preview {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(210, 208, 227, .9);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 36px 90px rgba(47, 42, 103, .17), 0 10px 25px rgba(47,42,103,.08);
}

.editor-preview::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  background: linear-gradient(transparent, white 76%);
  content: "";
  pointer-events: none;
}

.preview-window-bar {
  display: flex;
  height: 51px;
  align-items: center;
  padding: 0 19px;
  border-bottom: 1px solid var(--line);
  background: #fafafd;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9d9e4;
}

.preview-saved {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 auto;
  color: #686a79;
  font-size: 10px;
}

.preview-saved .icon {
  width: 11px;
  height: 11px;
  color: var(--green);
}

.preview-export {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #6c6d7b;
  background: #fff;
}

.preview-export .icon {
  width: 13px;
  height: 13px;
}

.preview-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 27px 19px;
}

.preview-kicker {
  color: #9b9ca9;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preview-title-row h3 {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.status-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.status-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-ready {
  color: #21845c;
  background: var(--green-soft);
}

.status-ready i { background: var(--green); }
.status-processing { color: #6657c5; background: var(--primary-soft); }
.status-processing i { background: var(--primary); box-shadow: 0 0 0 3px rgba(98,89,232,.13); }
.status-queued { color: #2f7580; background: var(--cyan-soft); }
.status-queued i { background: var(--cyan); box-shadow: 0 0 0 3px rgba(45,170,183,.12); }
.status-failed { color: #a84650; background: #fff0f1; }
.status-failed i { background: var(--danger); }
.status-cancel_requested { color: #8b6a30; background: var(--amber-soft); }
.status-cancel_requested i { background: var(--amber); }
.status-cancelled { color: #6f7180; background: #efeff3; }
.status-cancelled i { background: #9697a4; }
.status-draft { color: #9a6c27; background: var(--amber-soft); }
.status-draft i { background: var(--amber); }

.preview-player {
  display: flex;
  height: 62px;
  align-items: center;
  gap: 12px;
  margin: 0 27px 15px;
  padding: 0 15px;
  border: 1px solid #e8e7f1;
  border-radius: 12px;
  background: #faf9fe;
}

.preview-player button {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
}

.preview-player button .icon { width: 12px; height: 12px; margin-left: 2px; }
.preview-time { color: #686a79; font-size: 9px; font-variant-numeric: tabular-nums; }

.waveform {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 2px;
}

.waveform i {
  display: block;
  width: 2px;
  min-height: 4px;
  border-radius: 3px;
  background: #d8d9e5;
}

.waveform i.is-played {
  background: var(--primary);
}

.preview-wave {
  flex: 1;
  gap: 1.5px;
}

.preview-transcript {
  padding: 4px 27px 34px;
}

.preview-line {
  margin: 2px 0 5px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.preview-line.is-active {
  border-color: #dfdcff;
  background: #f7f5ff;
}

.preview-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-meta b { font-size: 9px; font-weight: 700; }
.preview-meta time { margin-left: auto; color: #686a79; font-size: 9px; }
.speaker-dot { width: 6px; height: 6px; border-radius: 50%; }
.speaker-dot.violet { background: var(--primary); }
.speaker-dot.cyan { background: var(--cyan); }
.preview-line p { margin-top: 6px; color: #555664; font-size: 11px; line-height: 1.56; }

.floating-voices {
  position: absolute;
  z-index: 3;
  right: -22px;
  bottom: 52px;
  display: flex;
  height: 55px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #e3e2ed;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 35px rgba(43, 41, 78, .14);
  color: #616270;
  font-size: 10px;
  font-weight: 620;
  backdrop-filter: blur(12px);
}

.floating-voices > .icon {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.avatar-stack {
  display: flex;
  padding-left: 7px;
}

.avatar-stack b {
  display: grid;
  width: 28px;
  height: 28px;
  margin-left: -7px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 9px;
}

.avatar-stack b:last-child { background: var(--cyan); }

.reveal-one { animation: rise .55s .05s both ease-out; }
.reveal-two { animation: rise .65s .12s both ease-out; }
.reveal-three { animation: rise .65s .2s both ease-out; }
.reveal-product { animation: product-in .75s .2s both cubic-bezier(.2,.8,.2,1); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes product-in { from { opacity: 0; transform: translateX(24px) scale(.98); } to { opacity: 1; transform: translateX(0) scale(1); } }

.formats-strip {
  position: relative;
  z-index: 3;
  padding: 17px 0 45px;
  background: #fff;
}

.formats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.formats-inner > span {
  color: #8b8c99;
  font-size: 12px;
}

.format-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.format-list b {
  color: #aaaab6;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .09em;
}

.section {
  padding: 84px 0;
}

.section-heading {
  max-width: 740px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.section-eyebrow {
  color: var(--primary);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-heading h2,
.security-copy h2,
.pricing-card h2 {
  margin-top: 13px;
  font-size: clamp(35px, 4.2vw, 50px);
  font-weight: 710;
  line-height: 1.08;
  letter-spacing: -.052em;
}

.how-section {
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  position: relative;
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfbfd;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.step-card:hover {
  border-color: #dcd9f5;
  box-shadow: 0 18px 40px rgba(33, 32, 69, .07);
  transform: translateY(-5px);
}

.step-card::before {
  position: absolute;
  top: -60px;
  right: -55px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98,89,232,.1), transparent 68%);
  content: "";
}

.step-card:nth-child(2)::before { background: radial-gradient(circle, rgba(57,184,199,.14), transparent 68%); }
.step-card:nth-child(3)::before { background: radial-gradient(circle, rgba(233,155,55,.13), transparent 68%); }

.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-icon,
.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
}

.step-number {
  color: #d8d8e3;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
}

.step-card h3,
.feature-card h3 {
  margin-top: 42px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.035em;
}

.step-card p,
.feature-card p {
  margin-top: 11px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.features-section {
  background: #f7f7fb;
}

.feature-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 320px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.feature-card h3 { margin-top: 25px; }
.feature-card p { max-width: 430px; }

.feature-card-wide {
  display: grid;
  grid-column: span 2;
  grid-template-columns: .9fr 1.1fr;
  min-height: 300px;
  align-items: center;
  gap: 60px;
  padding: 36px 40px;
}

.violet-bg { color: var(--primary) !important; background: var(--primary-soft) !important; }
.cyan-bg { color: #1c8995 !important; background: var(--cyan-soft) !important; }
.amber-bg { color: #b67824 !important; background: var(--amber-soft) !important; }
.green-bg { color: #278763 !important; background: var(--green-soft) !important; }

.speaker-demo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fafafd;
  box-shadow: var(--shadow-sm);
}

.speaker-demo > div {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 39px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
}

.speaker-demo > div > i {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  opacity: .28;
  background: linear-gradient(90deg, var(--primary-soft), transparent);
}

.speaker-demo > div:nth-child(2) > i { background: linear-gradient(90deg, var(--cyan-soft), transparent); }
.speaker-demo > div:nth-child(3) > i { background: linear-gradient(90deg, var(--amber-soft), transparent); }

.demo-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 760;
}

.speaker-demo b { display: block; font-size: 12px; }
.speaker-demo small { display: block; margin-top: 3px; color: #9a9ba8; font-size: 9px; }

.feature-card-wave {
  background: linear-gradient(145deg, #fff 45%, #f4f2ff);
}

.feature-wave-wrap {
  position: absolute;
  right: 29px;
  bottom: 32px;
  left: 29px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border: 1px solid #e6e3f6;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
}

.feature-wave-wrap span {
  color: #999aa7;
  font-size: 9px;
}

.feature-wave { flex: 1; height: 45px; gap: 2.5px; }
.feature-wave i { width: 3px; background: #dddbea; }
.feature-wave i.is-played { background: var(--cyan); }

.export-chips {
  position: absolute;
  bottom: 41px;
  left: 29px;
  display: flex;
  gap: 8px;
}

.export-chips span {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #777887;
  background: #fafafd;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .05em;
}

.language-feature {
  background: linear-gradient(145deg, #fff 40%, #effbf7);
}

.language-orbit {
  position: absolute;
  right: 35px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-orbit span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #dfe3e9;
  border-radius: 50%;
  color: #8b8c98;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 760;
}

.language-orbit span.is-main {
  width: 76px;
  height: 76px;
  border: 6px solid #eeecff;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 30px rgba(98,89,232,.23);
}

.language-orbit i {
  width: 33px;
  height: 1px;
  border-top: 1px dashed #babac6;
}

.security-section {
  background: #fff;
}

.security-card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  min-height: 400px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: #1c1c31;
}

.security-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 34px 34px;
}

.security-visual::before {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98,89,232,.3), transparent 68%);
  content: "";
}

.shield-rings {
  position: relative;
  display: grid;
  width: 220px;
  height: 220px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.shield-rings::before,
.shield-rings::after {
  position: absolute;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  content: "";
}

.shield-rings::before { inset: 34px; }
.shield-rings::after { inset: 70px; }

.shield-rings span {
  z-index: 1;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 25px;
  background: rgba(105,95,233,.28);
  box-shadow: 0 0 45px rgba(98,89,232,.35);
}

.shield-rings .icon { width: 37px; height: 37px; }

.security-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 58px 48px 42px;
}

.section-eyebrow.light { color: #a7a1ff; }
.security-copy h2 { max-width: 570px; }
.security-copy > p { max-width: 600px; margin-top: 20px; color: #b4b4c5; font-size: 15px; line-height: 1.7; }
.security-copy ul { display: flex; flex-direction: column; gap: 12px; margin: 27px 0 0; padding: 0; list-style: none; }
.security-copy li { display: flex; align-items: center; gap: 10px; color: #e8e7ef; font-size: 13px; }
.security-copy li .icon { width: 17px; height: 17px; color: #74d1b2; }

.pricing-section {
  padding-top: 30px;
  background: #fff;
}

.pricing-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 60px;
  padding: 58px 64px;
  border: 1px solid #e4e1fb;
  border-radius: 27px;
  background: linear-gradient(135deg, #f6f4ff, #fbffff);
}

.pricing-card h2 { max-width: 650px; font-size: 43px; }
.pricing-card > div:first-child p { max-width: 600px; margin-top: 17px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.price-action { display: flex; flex-direction: column; align-items: flex-start; padding-left: 45px; border-left: 1px solid #dedbea; }
.price { display: flex; flex-direction: column; margin-bottom: 20px; }
.price strong { font-size: 39px; font-weight: 740; letter-spacing: -.05em; }
.price span { margin-top: 4px; color: var(--muted); font-size: 12px; }

.marketing-footer {
  padding: 48px 0 20px;
  color: #b9b9c4;
  background: #171727;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 36px;
  padding-bottom: 36px;
}

.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-grid > div:first-child p { max-width: 270px; margin-top: 9px; font-size: 13px; line-height: 1.6; }
.footer-grid b { margin-bottom: 7px; color: #f5f5f7; font-size: 12px; }
.footer-grid button, .footer-grid span { padding: 0; color: #9c9ca9; background: none; font-size: 12px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; }
/* App shell */

.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--canvas);
}

.sidebar {
  position: fixed;
  z-index: 25;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 238px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px 17px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.sidebar-logo {
  margin-left: 10px;
}

.sidebar-new {
  width: 100%;
  margin-top: 31px;
  box-shadow: 0 8px 18px rgba(98,89,232,.18);
}

.sidebar-new .icon { width: 18px; height: 18px; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 27px;
}

.sidebar-nav button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 10px;
  color: #757686;
  background: transparent;
  font-size: 13px;
  font-weight: 580;
  text-align: left;
}

.sidebar-nav button:hover { color: var(--ink); background: #f7f7fa; }
.sidebar-nav button.is-active { color: var(--primary); background: var(--primary-soft); font-weight: 670; }
.sidebar-nav button .icon { width: 18px; height: 18px; }
.sidebar-nav button b { min-width: 21px; margin-left: auto; padding: 3px 5px; border-radius: 99px; color: #8b8c9b; background: #eeeef3; font-size: 9px; text-align: center; }

.usage-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.usage-card > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.usage-card span { color: #676878; font-size: 11px; font-weight: 650; }
.usage-card b { color: var(--primary); font-size: 10px; }
.usage-card p { margin-top: 9px; color: #9b9ca8; font-size: 9px; line-height: 1.4; }
.usage-card button { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding: 0; color: var(--primary); background: transparent; font-size: 10px; font-weight: 680; }
.usage-card button .icon { width: 13px; height: 13px; }

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 6px;
}

.mobile-sidebar-backdrop {
  display: none;
}

.user-avatar,
.topbar-avatar {
  position: relative;
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #5c50bb;
  background: #e7e3ff;
  font-size: 10px;
  font-weight: 750;
}

.user-avatar i { position: absolute; right: 0; bottom: 1px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--green); }
.user-card > span:nth-child(2) { min-width: 0; flex: 1; }
.user-card b, .user-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card b { font-size: 11px; }
.user-card small { margin-top: 3px; color: #707181; font-size: 9px; }
.user-card button { padding: 0; color: #aaaab5; background: transparent; }
.user-card button .icon { width: 17px; height: 17px; }

.app-main {
  width: calc(100% - 238px);
  min-width: 0;
  margin-left: 238px;
}

.app-topbar,
.editor-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
}

.app-search {
  display: flex;
  width: min(390px, 44vw);
  height: 39px;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafd;
}

.app-search .icon { width: 16px; height: 16px; color: #9899a6; }
.app-search input { min-width: 0; flex: 1; border: 0; color: var(--ink); background: transparent; font-size: 12px; }
.app-search input::placeholder { color: #686a79; }
.app-search kbd { padding: 3px 6px; border: 1px solid #e2e2e9; border-radius: 5px; color: #a1a2ae; background: #fff; font-family: inherit; font-size: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.notification-button { position: relative; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #777887; background: #fff; }
.notification-button .icon { width: 16px; height: 16px; }
.notification-button > span { position: absolute; z-index: 1; top: 8px; right: 8px; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: var(--danger); }
.topbar-avatar { display: none; }
.app-mobile-menu { display: none; }

.dashboard-content {
  width: min(1140px, calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0 48px;
}

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.dashboard-heading h1 { font-size: 27px; font-weight: 720; letter-spacing: -.045em; }
.dashboard-heading p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.heading-new { display: none; }

.dashboard-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, .72fr);
  gap: 16px;
}

.dashboard-upload-card {
  position: relative;
  display: flex;
  min-height: 260px;
  align-items: center;
  padding: 36px 38px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 17%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #6359e8 0%, #7367ec 58%, #5350cc 100%);
  box-shadow: 0 18px 36px rgba(75,65,181,.18);
  cursor: pointer;
}

.dashboard-upload-card::before {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: radial-gradient(circle at center, white 1px, transparent 1.5px);
  background-size: 17px 17px;
  content: "";
  mask-image: linear-gradient(90deg, transparent 35%, black);
}

.upload-card-copy { position: relative; z-index: 2; max-width: 520px; }
.dashboard-kicker { display: inline-flex; align-items: center; gap: 6px; color: #dcd8ff; font-size: 10px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-kicker .icon { width: 14px; height: 14px; }
.upload-card-copy h2 { max-width: 410px; margin-top: 13px; font-size: 31px; font-weight: 710; letter-spacing: -.047em; }
.upload-card-copy > p { max-width: 480px; margin-top: 11px; color: rgba(255,255,255,.74); font-size: 12px; line-height: 1.55; }
.upload-card-actions { display: flex; align-items: center; gap: 13px; margin-top: 24px; }
.upload-card-actions span { color: rgba(255,255,255,.82); font-size: 11px; }
.upload-card-actions .button { min-height: 43px; }

.upload-orb {
  position: absolute;
  right: 19px;
  bottom: -36px;
  display: grid;
  width: 230px;
  height: 230px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.upload-orb > span { position: absolute; z-index: 2; top: 53px; display: grid; width: 55px; height: 55px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 19px; background: rgba(255,255,255,.13); box-shadow: 0 15px 30px rgba(31,22,111,.2); }
.upload-orb > span .icon { width: 25px; height: 25px; }
.orb-ring { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.ring-one { inset: 30px; }
.ring-two { inset: 64px; }
.orb-wave { position: absolute; right: 28px; bottom: 41px; left: 28px; justify-content: center; }
.orb-wave i { background: rgba(255,255,255,.25); }
.orb-wave i.is-played { background: #fff; }

.overview-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.overview-card-top { display: flex; align-items: center; justify-content: space-between; }
.overview-card-top > span { color: #787988; font-size: 11px; font-weight: 650; }
.overview-card-top button { padding: 0; color: #aaaab5; background: transparent; }
.overview-card-top .icon { width: 17px; height: 17px; }
.minute-total { display: flex; align-items: baseline; gap: 7px; margin-top: 16px; }
.minute-total strong { font-size: 32px; font-weight: 730; letter-spacing: -.05em; }
.minute-total span { color: #999aa7; font-size: 10px; }
.overview-chart { display: flex; height: 88px; align-items: end; gap: 7px; margin-top: 14px; padding-top: 10px; border-bottom: 1px solid #ececf2; }
.overview-chart div { flex: 1; min-height: 8px; border-radius: 5px 5px 1px 1px; background: #e9e8f4; }
.overview-chart div.current { background: var(--primary); }
.overview-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; color: #90919e; font-size: 9px; }
.overview-meta span { display: flex; align-items: center; gap: 6px; }
.overview-meta i { width: 7px; height: 7px; border-radius: 50%; }

.processing-card {
  display: grid;
  grid-template-columns: auto 1fr minmax(230px, 35%);
  align-items: center;
  gap: 15px;
  margin-top: 16px;
  padding: 17px 20px;
  border: 1px solid #e0ddf7;
  border-radius: 15px;
  background: linear-gradient(90deg, #faf9ff, #fff);
}

.processing-file-icon { position: relative; display: grid; width: 43px; height: 43px; place-items: center; border-radius: 11px; color: var(--primary); background: var(--primary-soft); }
.processing-file-icon .icon { width: 20px; height: 20px; }
.processing-file-icon i { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: var(--primary); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(98,89,232,.28); } 50% { box-shadow: 0 0 0 5px rgba(98,89,232,0); } }
.processing-copy > span { color: var(--primary); font-size: 9px; font-weight: 740; letter-spacing: .08em; text-transform: uppercase; }
.processing-copy h3 { margin-top: 3px; font-size: 14px; font-weight: 680; }
.processing-copy p { margin-top: 4px; color: #707181; font-size: 10px; }
.processing-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.processing-progress span { color: #777887; font-size: 10px; font-weight: 680; }
.processing-progress button { padding: 0; color: var(--primary); background: transparent; }
.processing-progress button .icon { width: 16px; height: 16px; }
.progress-track { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #e9e8f2; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #857bf1); }

.recent-section {
  margin-top: 27px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-row > div { display: flex; align-items: baseline; gap: 9px; }
.section-row h2 { font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.section-row > div > span { color: #a1a2ae; font-size: 9px; }

.jobs-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.job-table-head,
.job-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) minmax(120px, .8fr) 90px 110px 90px 30px;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
}

.job-table-head {
  height: 40px;
  border-bottom: 1px solid var(--line);
  color: #666877;
  background: #fafafd;
  font-size: 10px;
  font-weight: 690;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.job-row {
  width: 100%;
  min-height: 66px;
  border-bottom: 1px solid #efeff3;
  color: #6f7080;
  background: #fff;
  font-size: 11px;
  text-align: left;
  transition: background .15s ease;
}

.job-row:last-child { border-bottom: 0; }
.job-row:hover { background: #fafafe; }
.job-name { display: flex; min-width: 0; align-items: center; gap: 11px; }
.file-type { display: grid; width: 36px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 9px; font-style: normal; font-size: 8px; font-weight: 790; }
.file-violet { color: #6659ca; background: var(--primary-soft); }
.file-cyan { color: #278995; background: var(--cyan-soft); }
.job-name > span { min-width: 0; }
.job-name b, .job-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-name b { color: #303142; font-size: 12px; font-weight: 650; }
.job-name small { margin-top: 4px; color: #747685; font-size: 9px; }
.job-lang { display: flex; align-items: center; gap: 7px; }
.job-lang i { display: grid; width: 24px; height: 20px; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: #676978; background: #fafafd; font-size: 8px; font-style: normal; font-weight: 760; }
.row-menu { color: #aaaab5; }
.row-menu .icon { width: 16px; height: 16px; }

.empty-results {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  text-align: center;
}

.empty-results > .icon { width: 28px; height: 28px; color: #b2b3bf; }
.empty-results h3 { margin-top: 12px; font-size: 14px; }
.empty-results p { max-width: 350px; margin-top: 6px; color: #90919f; font-size: 10px; }
.mobile-bottom-nav { display: none; }

/* Upload modal */

.modal-is-open { overflow: hidden; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(22,22,40,.56); backdrop-filter: blur(6px); animation: fade-in .18s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(620px, 100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid rgba(255,255,255,.8); border-radius: 21px; background: #fff; box-shadow: var(--shadow-md); animation: modal-in .25s cubic-bezier(.2,.8,.2,1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.modal-header > div:first-child { display: flex; align-items: center; gap: 12px; }
.modal-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-soft); }
.modal-icon .icon { width: 20px; height: 20px; }
.modal-header h2 { font-size: 18px; font-weight: 710; letter-spacing: -.03em; }
.modal-header p { margin-top: 4px; color: #676978; font-size: 11px; }
.modal-header > .icon-button { width: 35px; height: 35px; }
.modal-header > .icon-button .icon { width: 18px; height: 18px; }
.modal-body { padding: 18px 24px; }
.dropzone { position: relative; padding: 8px; border: 1.5px dashed #cfcced; border-radius: 15px; background: #fbfaff; text-align: center; transition: border .2s ease, background .2s ease; }
.dropzone.is-dragging { border-color: var(--primary); background: #f1efff; }
.dropzone:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(98,89,232,.16); }
.dropzone > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone label { display: flex; min-height: 150px; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; }
.dropzone-icon { display: grid; width: 44px; height: 44px; margin-bottom: 12px; place-items: center; border-radius: 13px; color: var(--primary); background: var(--primary-soft); }
.dropzone-icon .icon { width: 21px; height: 21px; }
.dropzone label b { font-size: 13px; font-weight: 670; }
.dropzone label p { margin-top: 5px; color: #878895; font-size: 10px; }
.dropzone label small { margin-top: 10px; color: #666877; font-size: 10px; }
.demo-file-button { display: inline-flex; min-height: 33px; align-items: center; gap: 6px; margin: 0 auto 8px; padding: 0 10px; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-size: 9px; font-weight: 650; }
.demo-file-button .icon { width: 11px; height: 11px; }
.file-error { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--danger); font-size: 10px; }
.file-error .icon { width: 15px; height: 15px; }

.selected-file { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 91px; padding: 12px 15px; border: 1px solid #dedbf5; border-radius: 14px; background: #faf9ff; }
.selected-file-icon { display: flex; width: 56px; height: 57px; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; color: var(--primary); background: var(--primary-soft); }
.selected-file-icon b { font-size: 8px; letter-spacing: .05em; }
.file-wave { width: 30px; height: 13px; gap: 1px; margin-top: 4px; }
.file-wave i { width: 1.5px; min-height: 2px; }
.selected-file > span:nth-child(2) { min-width: 0; }
.selected-file > span:nth-child(2) b, .selected-file > span:nth-child(2) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file > span:nth-child(2) b { font-size: 12px; }
.selected-file > span:nth-child(2) small { margin-top: 5px; color: #686a79; font-size: 10px; }
.selected-file > input { position: absolute; opacity: 0; pointer-events: none; }
.selected-file label { cursor: pointer; }

.setting-block { margin-top: 20px; }
.setting-block > label { color: #5f6070; font-size: 10px; font-weight: 680; }
.language-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
.language-options button { position: relative; display: flex; min-height: 59px; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: left; }
.language-options button:hover { border-color: #cbc7ef; }
.language-options button.is-active { border-color: var(--primary); background: #f9f8ff; box-shadow: 0 0 0 1px var(--primary); }
.language-options button > span { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #737484; background: #f0f0f5; font-size: 8px; font-weight: 760; }
.language-options button.is-active > span { color: var(--primary); background: var(--primary-soft); }
.language-options button > span .icon { width: 14px; height: 14px; }
.language-options button b { font-size: 10px; font-weight: 650; }
.language-options button > .icon { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; color: var(--primary); }

.toggle-settings { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 15px; }
.toggle-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: left; }
.toggle-row.is-disabled { cursor: not-allowed; opacity: .62; }
.setting-symbol { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 9px; }
.setting-symbol .icon { width: 16px; height: 16px; }
.toggle-row > span:nth-child(2) b, .toggle-row > span:nth-child(2) small { display: block; }
.toggle-row > span:nth-child(2) b { font-size: 10px; font-weight: 650; }
.toggle-row > span:nth-child(2) small { margin-top: 3px; color: #6f7180; font-size: 9px; }
.toggle { position: relative; width: 31px; height: 18px; border-radius: 99px; background: #dadbe3; transition: background .2s; }
.toggle u { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .2s; }
.toggle.is-on { background: var(--primary); }
.toggle.is-on u { transform: translateX(13px); }
.privacy-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #8e8f9d; font-size: 9px; }
.privacy-note .icon { width: 14px; height: 14px; color: var(--green); }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 15px 24px; border-top: 1px solid var(--line); background: #fafafd; }
.modal-footer .button { min-width: 100px; }

.processing-modal { position: relative; width: min(485px, 100%); padding: 42px 48px 36px; overflow: hidden; }
.processing-close { position: absolute; top: 13px; right: 13px; }
.processing-hero { text-align: center; }
.processing-orb { position: relative; display: grid; width: 90px; height: 90px; margin: 0 auto 20px; place-items: center; border-radius: 50%; background: #f0eeff; }
.processing-orb::before { position: absolute; inset: 8px; border: 1px dashed #bcb5f5; border-radius: 50%; content: ""; animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.processing-orb > span { z-index: 1; display: grid; width: 49px; height: 49px; place-items: center; border-radius: 16px; color: #fff; background: var(--primary); box-shadow: 0 10px 25px rgba(98,89,232,.27); }
.processing-orb > span .icon { width: 23px; height: 23px; }
.processing-hero h2 { font-size: 20px; font-weight: 710; letter-spacing: -.035em; }
.processing-hero p { max-width: 330px; margin: 7px auto 0; color: #686a79; font-size: 11px; line-height: 1.5; }
.processing-hero strong { display: block; margin-top: 14px; color: var(--primary); font-size: 24px; letter-spacing: -.04em; }
.processing-modal.is-error .processing-orb { background: #fff0f1; }
.processing-modal.is-error .processing-orb::before { border-color: #efb6bb; animation: none; }
.processing-modal.is-error .processing-orb > span { background: var(--danger); box-shadow: 0 10px 25px rgba(201,72,83,.2); }
.processing-modal.is-done .processing-orb { background: var(--green-soft); }
.processing-modal.is-done .processing-orb::before { border-color: rgba(40,161,111,.35); animation: none; }
.processing-modal.is-done .processing-orb > span { background: var(--green); box-shadow: 0 10px 25px rgba(40,161,111,.2); }
.processing-error-actions { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.processing-background-actions { display: flex; justify-content: center; margin-top: 22px; }
.processing-background-actions .button { min-height: 36px; padding-inline: 14px; }
.processing-background-actions .button .icon { width: 14px; height: 14px; }
.phase-list { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 29px; }
.phase-list > div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; color: #6f7180; text-align: center; }
.phase-list > div::before { position: absolute; z-index: 0; top: 12px; right: 50%; left: -50%; height: 1px; background: #e2e2ea; content: ""; }
.phase-list > div:first-child::before { display: none; }
.phase-list > div.is-done::before, .phase-list > div.is-current::before { background: #a9a2ef; }
.phase-list > div > span { z-index: 1; display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #dedee7; border-radius: 50%; background: #fff; font-size: 8px; font-weight: 700; }
.phase-list > div > span .icon { width: 12px; height: 12px; }
.phase-list > div.is-done > span { border-color: var(--primary); color: #fff; background: var(--primary); }
.phase-list > div.is-current > span { border: 5px solid #e5e1ff; color: #fff; background: var(--primary); }
.phase-list b { font-size: 10px; font-weight: 600; }
.phase-list .is-done b, .phase-list .is-current b { color: #555665; }
.phase-list > div > i { position: absolute; top: -3px; width: 31px; height: 31px; border: 1px solid rgba(98,89,232,.18); border-radius: 50%; animation: pulse-phase 1.4s infinite; }
@keyframes pulse-phase { 50% { transform: scale(1.22); opacity: 0; } }

/* Editor */

.editor-main { background: #f7f7fa; }
.editor-topbar { padding: 0 27px; }
.editor-breadcrumb { display: flex; align-items: center; gap: 10px; }
.editor-breadcrumb > button { display: flex; align-items: center; gap: 7px; padding: 7px 5px; color: #777887; background: transparent; font-size: 10px; }
.editor-breadcrumb > .app-mobile-menu { display: none; }
.editor-breadcrumb > button .icon { width: 15px; height: 15px; }
.editor-breadcrumb > i { width: 1px; height: 16px; background: var(--line); }
.editor-breadcrumb > span { display: grid; min-width: 27px; height: 21px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: #777887; background: #fafafd; font-size: 7px; font-weight: 750; }
.editor-actions { display: flex; align-items: center; gap: 8px; }
.save-state { display: flex; align-items: center; gap: 5px; margin-right: 8px; color: #686a79; font-size: 10px; }
.save-state .icon { width: 13px; height: 13px; color: var(--green); }
.editor-actions .button { min-height: 38px; padding: 0 13px; font-size: 10px; }
.editor-actions .button .icon { width: 15px; height: 15px; }
.editor-actions .chevron-down { width: 12px !important; transform: rotate(90deg); }
.export-wrap { position: relative; }
.editor-page { width: min(1220px, calc(100% - 54px)); margin: 0 auto; padding: 29px 0 60px; }
.editor-title { display: flex; align-items: flex-start; justify-content: space-between; }
.editor-title input { width: min(670px, 70vw); padding: 0; border: 0; background: transparent; font-size: 25px; font-weight: 720; letter-spacing: -.04em; }
.editor-title p { margin-top: 7px; color: #686a79; font-size: 11px; }
.editor-more { width: 37px; height: 37px; border: 1px solid var(--line); background: #fff; }
.editor-more .icon { width: 17px; height: 17px; }

.audio-player {
  position: sticky;
  z-index: 14;
  top: 82px;
  display: flex;
  height: 77px;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0 18px;
  border: 1px solid #dedee8;
  border-radius: 15px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 9px 25px rgba(34,34,59,.08);
  backdrop-filter: blur(14px);
}
.audio-player > audio { display: none; }
.audio-player button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }

.player-main { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); box-shadow: 0 7px 15px rgba(98,89,232,.22); }
.player-main .icon { width: 16px; height: 16px; }
.player-main svg:has(path) { margin-left: 2px; }
.player-skip, .player-volume { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #858694; background: transparent; }
.player-skip:hover, .player-volume:hover { background: #f1f1f6; }
.player-skip .icon, .player-volume .icon { width: 18px; height: 18px; }
.player-time { display: flex; min-width: 79px; gap: 4px; font-size: 9px; font-variant-numeric: tabular-nums; }
.player-time b { color: #454655; }
.player-time span { color: #a5a6b1; }
.player-wave { position: relative; flex: 1; padding: 0 5px; cursor: pointer; }
.editor-wave { width: 100%; height: 41px; gap: 2px; pointer-events: none; }
.editor-wave i { flex: 1; width: auto; max-width: 3px; min-width: 1px; background: #dedee8; }
.editor-wave i.is-played { background: var(--primary); }
.wave-cursor { position: absolute; z-index: 2; top: 6px; bottom: 6px; width: 1px; background: var(--primary); pointer-events: none; }
.wave-cursor::before { position: absolute; top: -2px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); content: ""; }
.speed-button { min-width: 39px; height: 30px; padding: 0 7px; border: 1px solid var(--line); border-radius: 8px; color: #686978; background: #fff; font-size: 9px; font-weight: 670; }

.editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  align-items: start;
  gap: 17px;
  margin-top: 17px;
}

.transcript-panel,
.info-panel > section {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.transcript-toolbar { display: flex; height: 57px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); }
.editor-tabs { display: flex; align-self: stretch; gap: 18px; }
.editor-tabs button { position: relative; padding: 0 2px; color: #696b7a; background: transparent; font-size: 11px; font-weight: 640; }
.editor-tabs button.is-active { color: var(--ink); }
.editor-tabs button.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 3px 3px 0 0; background: var(--primary); content: ""; }
.transcript-search { display: flex; width: 190px; height: 33px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fafafd; }
.transcript-search .icon { width: 14px; height: 14px; color: #9d9eaa; }
.transcript-search input { min-width: 0; border: 0; background: transparent; font-size: 9px; }

.segments { padding: 12px 14px 18px; }
.transcript-empty { display: flex; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; padding: 36px; color: #777987; text-align: center; }
.transcript-empty > .icon { width: 30px; height: 30px; margin-bottom: 13px; color: var(--primary); }
.transcript-empty p { max-width: 410px; font-size: 12px; line-height: 1.55; }
.transcript-empty small { max-width: 430px; margin-top: 8px; color: #8d8e9a; font-size: 10px; line-height: 1.5; }
.transcript-empty.is-error > .icon, .transcript-empty.is-error p { color: var(--danger); }
.transcript-progress { width: min(300px, 75%); height: 5px; margin-top: 18px; overflow: hidden; border-radius: 99px; background: #ebeaf3; }
.transcript-progress i { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .3s ease; }
.segment { display: grid; grid-template-columns: 50px minmax(0, 1fr) 27px; gap: 10px; padding: 16px 11px 16px 5px; border: 1px solid transparent; border-bottom-color: #efeff3; border-radius: 10px; transition: background .15s, border .15s; }
.segment:last-child { border-bottom-color: transparent; }
.segment:hover { background: #fbfbfd; }
.segment.is-current { border-color: #e0ddfb; background: #f9f8ff; }
.segment[hidden] { display: none; }
.segment-time { align-self: start; padding: 5px 0; color: var(--primary); background: transparent; font-size: 10px; font-variant-numeric: tabular-nums; }
.segment-time:hover { text-decoration: underline; }
.segment-content { min-width: 0; }
.speaker-chip { display: inline-flex; min-height: 27px; align-items: center; gap: 6px; padding: 0 8px; border-radius: 7px; font-size: 10px; font-weight: 680; }
.speaker-chip > i { width: 6px; height: 6px; border-radius: 50%; }
.speaker-chip .icon { width: 10px; height: 10px; transform: rotate(90deg); }
.speaker-violet { color: #5e55bd; background: var(--primary-soft); }
.speaker-violet > i { background: var(--primary); }
.speaker-cyan { color: #267f89; background: var(--cyan-soft); }
.speaker-cyan > i { background: var(--cyan); }
.segment-content p { min-height: 26px; margin-top: 9px; color: #484957; font-size: 13px; line-height: 1.68; }
.segment-content p:focus { padding: 5px 7px; margin: 4px -7px -5px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 2px rgba(98,89,232,.16); }
.segment-menu { align-self: start; padding: 4px; color: #b0b1bb; background: transparent; opacity: 0; }
.segment:hover .segment-menu { opacity: 1; }
.segment-menu .icon { width: 15px; height: 15px; }
.autosave-note { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 15px; border-top: 1px solid var(--line); color: #6d6f7e; font-size: 10px; }
.autosave-note .icon { width: 12px; height: 12px; color: var(--green); }

.info-panel { position: sticky; top: 176px; display: flex; flex-direction: column; gap: 12px; }
.info-panel > section { padding: 17px; }
.info-panel h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; font-size: 12px; font-weight: 680; }
.info-panel h3 > span { display: grid; min-width: 19px; height: 18px; place-items: center; border-radius: 99px; color: #8c8d99; background: #f0f0f4; font-size: 7px; }
.speaker-list { display: flex; flex-direction: column; gap: 8px; }
.speaker-list > div { display: flex; align-items: center; gap: 9px; }
.speaker-list .demo-avatar { width: 31px; height: 31px; font-size: 9px; }
.speaker-list > div > span:nth-child(2) { min-width: 0; flex: 1; }
.speaker-list b, .speaker-list small { display: block; }
.speaker-list b { font-size: 10px; }
.speaker-list small { margin-top: 2px; color: #6f7180; font-size: 9px; }
.speaker-list button { padding: 0; color: #aaaab5; background: transparent; }
.speaker-list button .icon { width: 14px; height: 14px; }
.info-panel dl { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.info-panel dl > div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; font-size: 10px; }
.info-panel dt { color: #6f7180; }
.info-panel dd { overflow: hidden; margin: 0; color: #555664; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.quick-export > button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid #efeff3; background: #fff; text-align: left; }
.quick-export > button > .icon:first-child { width: 16px; height: 16px; color: var(--primary); }
.quick-export > button > span { flex: 1; }
.quick-export > button b, .quick-export > button small { display: block; }
.quick-export > button b { font-size: 10px; }
.quick-export > button small { margin-top: 2px; color: #6f7180; font-size: 9px; }
.quick-export > button > .icon:last-child { width: 14px; height: 14px; color: #aaaab5; }

.export-menu { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; width: 280px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-md); }
.export-menu > div { padding: 9px 10px 12px; }
.export-menu > div b { font-size: 11px; }
.export-menu > div p { margin-top: 4px; color: #686a79; font-size: 9px; line-height: 1.45; }
.export-menu > button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px; border-radius: 9px; background: #fff; text-align: left; }
.export-menu > button:hover { background: #f8f8fb; }
.export-format { display: grid; width: 36px; height: 34px; place-items: center; border-radius: 8px; color: #6e7080; background: #efeff4; font-size: 7px; font-weight: 760; }
.export-menu > button > span:nth-child(2) { flex: 1; }
.export-menu > button b, .export-menu > button small { display: block; }
.export-menu > button b { font-size: 9px; }
.export-menu > button small { margin-top: 2px; color: #6f7180; font-size: 9px; }
.export-menu > button > .icon { width: 14px; height: 14px; color: #9fa0ac; }

/* Keep operational UI readable at 100% browser zoom. */
.usage-card p,
.usage-card button,
.minute-total span,
.overview-meta,
.processing-progress span,
.section-row > div > span,
.job-name small,
.dropzone label p,
.file-error,
.setting-block > label,
.language-options button b,
.toggle-row > span:nth-child(2) b,
.privacy-note,
.editor-breadcrumb > button,
.editor-actions .button,
.player-time,
.speed-button,
.transcript-search input,
.info-panel h3 > span,
.speaker-list b,
.speaker-list small,
.info-panel dl > div,
.quick-export > button b,
.quick-export > button small,
.export-menu > button b,
.export-menu > button small {
  font-size: 11px;
}

.section-row > div > span,
.overview-meta,
.usage-card p,
.minute-total span,
.app-search kbd,
.privacy-note,
.dropzone label p,
.toggle-row > span:nth-child(2) small,
.editor-breadcrumb > button,
.player-time span,
.transcript-search input::placeholder,
.info-panel dt,
.speaker-list small,
.quick-export > button small,
.export-menu > div p,
.export-menu > button small {
  color: #666877;
}

.app-search kbd {
  font-size: 10px;
}

.editor-breadcrumb > span,
.info-panel h3 > span,
.export-format {
  font-size: 9px;
}

.not-found { display: flex; min-height: 100vh; flex-direction: column; padding: 28px; background: #fff; }
.not-found > div { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; }
.not-found > div > .icon { width: 44px; height: 44px; color: #b7b8c3; }
.not-found h1 { margin: 20px 0; font-size: 25px; }

.toast-root { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; min-width: 270px; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); }
.toast > span .icon { width: 15px; height: 15px; }
.toast p { flex: 1; color: #555664; font-size: 10px; }
.toast > button { flex: 0 0 auto; padding: 6px 8px; border-radius: 7px; color: var(--primary); background: var(--primary-soft); font-size: 9px; font-weight: 700; }
.toast > button:hover { background: #e5e1ff; }

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

.preview-play {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
}
.preview-play .icon { width: 12px; height: 12px; margin-left: 2px; }

.notification-button > span { display: grid; width: 16px; height: 16px; place-items: center; }
.notification-button > span b { color: #fff; font-size: 7px; line-height: 1; }
.topbar-avatar { border: 0; }

.real-usage-card small { display: block; margin-top: 7px; color: #9697a4; font-size: 8px; line-height: 1.4; }
.real-overview { display: flex; flex-direction: column; }
.usage-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 15px 0; }
.usage-facts div { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fafafd; }
.usage-facts b, .usage-facts span { display: block; }
.usage-facts b { color: var(--ink); font-size: 15px; }
.usage-facts span { margin-top: 3px; color: var(--muted); font-size: 8px; }

.job-row { position: relative; cursor: pointer; }
.row-menu { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border-radius: 7px; background: transparent; }
.row-menu:hover, .row-menu[aria-expanded="true"] { color: var(--ink); background: #efeff5; }
.action-menu {
  position: absolute;
  z-index: 45;
  display: flex;
  width: 220px;
  flex-direction: column;
  gap: 3px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(28,28,50,.16);
}
.row-action-menu { top: 48px; right: 9px; }
.editor-action-menu { top: 42px; right: 0; }
.segment-action-menu { top: 45px; right: 6px; width: 190px; }
.action-menu button, .action-menu a { display: flex; min-height: 35px; align-items: center; gap: 9px; padding: 0 10px; border-radius: 7px; color: #50515f; background: transparent; font-size: 10px; text-align: left; text-decoration: none; }
.action-menu button:hover, .action-menu a:hover { background: #f4f3fa; }
.action-menu .icon { width: 14px; height: 14px; }
.action-menu .danger { color: var(--danger); }
.editor-more-wrap, .segment { position: relative; }
.save-state.save-saving .icon, .autosave-note.save-saving .icon { color: var(--amber); }
.save-state.save-error, .autosave-note.save-error { color: var(--danger); }
.save-state.save-error .icon, .autosave-note.save-error .icon { color: var(--danger); }

.volume-control { display: flex; align-items: center; gap: 2px; }
.volume-control input { width: 62px; accent-color: var(--primary); }
.player-volume.is-muted { color: var(--danger); background: #fff1f2; }

.editor-tab-info .transcript-panel { display: none; }
.editor-tab-info { grid-template-columns: minmax(0, 760px); justify-content: center; }
.editor-tab-info .info-panel { position: static; display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); }

.route-loading { display: grid; min-height: 100vh; place-content: center; justify-items: center; gap: 30px; background: var(--canvas); }
.loading-spinner { display: inline-block; width: 27px; height: 27px; border: 3px solid #e3e1f5; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-page { display: grid; min-height: 100vh; grid-template-columns: minmax(320px, .8fr) minmax(480px, 1.2fr); background: #fff; }
.auth-visual { display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; padding: 42px 10%; color: #fff; background: radial-gradient(circle at 20% 20%, #7770e8, transparent 35%), linear-gradient(145deg, #27253e, #171727); }
.auth-visual > div { max-width: 430px; margin-bottom: 10vh; }
.auth-visual span { color: #bcb8ef; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.auth-visual h2 { margin-top: 16px; font-size: clamp(36px, 4vw, 58px); letter-spacing: -.055em; line-height: 1.03; }
.auth-visual p { margin-top: 20px; color: #c8c6d8; font-size: 13px; line-height: 1.65; }
.auth-main { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: #fafafd; }
.auth-card { position: relative; width: min(420px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); }
.auth-card > .brand { margin-bottom: 25px; }
.auth-card-top { position: absolute; top: 18px; right: 18px; display: flex; align-items: center; justify-content: flex-end; }
.auth-card-top > button { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: var(--muted); background: #f4f4f8; }
.auth-card h1 { max-width: calc(100% - 42px); font-size: 27px; letter-spacing: -.04em; }
.auth-card > p { margin: 9px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-card form, .settings-form { display: flex; flex-direction: column; gap: 14px; }
.auth-card label, .settings-form > label, .inline-form label, .invite-link-form label, .admin-create-form label { display: flex; flex-direction: column; gap: 7px; color: #5f6070; font-size: 10px; font-weight: 650; }
.auth-card input, .settings-form input, .settings-form select, .inline-form input, .inline-form select, .invite-link-form input, .invite-link-form select, .admin-create-form input, .admin-create-form select, .admin-workspace-row select, .admin-filters input, .admin-filters select, .library-filters input, .library-filters select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }
.auth-card .check-label { flex-direction: row; align-items: center; font-weight: 500; }
.check-label input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-error { padding: 10px 12px; border-radius: 8px; color: #9c3a45; background: #fff0f1; font-size: 10px; line-height: 1.45; }
.auth-switch { display: flex; justify-content: center; gap: 7px; margin-top: 20px; color: var(--muted); font-size: 10px; }
.auth-switch button { color: var(--primary); background: transparent; font-weight: 700; }
.auth-invite-note { margin: 20px 0 0 !important; padding: 11px; border-radius: 8px; color: #707180 !important; background: #f5f5f8; font-size: 9px !important; text-align: center; }

.library-content, .settings-content { max-width: 1120px; }
.library-panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.library-panel .jobs-table { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.library-filters { display: grid; grid-template-columns: minmax(260px, 1fr) 180px 170px; gap: 10px; padding: 16px; }
.library-search { position: relative; }
.library-search .icon { position: absolute; z-index: 1; top: 13px; left: 12px; width: 15px; height: 15px; color: #9293a0; }
.library-search input { padding-left: 36px; }
.pagination { display: flex; min-height: 67px; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 16px; color: var(--muted); font-size: 10px; }
.pagination > div { display: flex; align-items: center; gap: 12px; }
.pagination .button { height: 34px; padding: 0 11px; font-size: 9px; }
.pagination .icon { width: 13px; height: 13px; }
.table-loading { display: grid; min-height: 280px; place-items: center; }
.empty-results .button { margin-top: 17px; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.settings-card { padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.settings-grid > .settings-card { height: 100%; }
.settings-content > .settings-card { max-width: 760px; }
.workspace-settings-form { display: grid; max-width: 900px !important; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 16px; }
.workspace-settings-form .card-heading { grid-column: 1 / -1; margin-bottom: 2px; }
.workspace-settings-form .settings-actions { align-self: end; padding-top: 0; }
.workspace-settings-form .settings-readonly { grid-column: 1 / -1; }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.card-heading h2 { font-size: 17px; letter-spacing: -.025em; }
.card-heading p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.settings-form > label > small { color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.5; }
.settings-switch { flex-direction: row !important; align-items: center; justify-content: space-between; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.settings-switch b, .settings-switch small { display: block; }
.settings-switch small { margin-top: 4px; color: var(--muted); font-weight: 400; }
.settings-switch input { width: 19px; height: 19px; accent-color: var(--primary); }
.settings-actions { display: flex; justify-content: flex-end; padding-top: 8px; }
.settings-readonly { padding: 11px 13px; border-radius: 9px; color: var(--muted); background: #f5f5f8; font-size: 9px; line-height: 1.5; }
.settings-form :disabled { cursor: not-allowed; opacity: .7; }
.inline-form { display: grid; grid-template-columns: 1fr 150px auto; align-items: end; gap: 10px; }
.dashboard-heading-actions { display: flex; align-items: center; gap: 9px; }
.heading-invite .icon { width: 15px; height: 15px; }
.team-grid { grid-template-columns: minmax(300px, .82fr) minmax(420px, 1.18fr); }
.invite-link-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 11px; }
.invite-link-form .invite-email { grid-column: 1 / -1; }
.invite-link-form label > span small { color: var(--muted); font-size: 8px; font-weight: 500; }
.invite-create { min-height: 41px; }
.invite-safety { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.member-list, .invite-list, .token-list { display: flex; flex-direction: column; }
.member-row, .invite-row, .token-row { display: flex; min-height: 61px; align-items: center; gap: 11px; border-top: 1px solid #efeff3; }
.member-row > span:nth-child(2), .invite-row > span:first-child, .token-row > span:first-child { min-width: 0; flex: 1; }
.member-row b, .member-row small, .invite-row b, .invite-row small, .token-row b, .token-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row b, .invite-row b, .token-row b { color: var(--ink); font-size: 11px; }
.member-row small, .invite-row small, .token-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.member-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--primary); background: var(--primary-soft); font-size: 9px; font-weight: 750; }
.role-badge { padding: 5px 8px; border-radius: 99px; color: #5650aa; background: var(--primary-soft); font-size: 8px; }
.invite-list { margin-top: 25px; }
.invite-secret { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: 20px; padding: 13px; border: 1px solid #dcd8ff; border-radius: 10px; background: #f7f5ff; }
.invite-success { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: #fff; background: #54aa7b; }
.invite-success .icon { width: 14px; height: 14px; }
.invite-secret b { grid-column: 2 / -1; color: #555068; font-size: 10px; line-height: 1.45; }
.invite-secret code { grid-column: 1 / 3; overflow: auto; padding: 9px; border-radius: 7px; color: #3e3965; background: #eeebff; font-size: 9px; }
.invite-list h3 { margin-bottom: 7px; font-size: 12px; }
.invite-row button { flex: 0 0 auto; }
.invite-copy-icon { width: 34px; padding: 0 !important; }
.text-danger { color: var(--danger); background: transparent; font-size: 9px; font-weight: 650; }
.small-empty { padding: 25px 0; color: var(--muted); font-size: 10px; text-align: center; }

.billing-content, .admin-content { padding-bottom: 70px; }
.billing-summary { display: grid; grid-template-columns: .78fr 1.22fr; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); }
.billing-current { display: flex; min-height: 235px; flex-direction: column; justify-content: space-between; padding: 27px; color: #fff; background: linear-gradient(145deg, #4f49bd, #756de6); }
.billing-current .section-eyebrow { color: rgba(255,255,255,.7); }
.billing-current-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.billing-current h2 { font-size: 28px; letter-spacing: -.035em; }
.billing-current p { margin-top: 7px; color: rgba(255,255,255,.74); font-size: 10px; }
.billing-current strong { flex: 0 0 auto; font-size: 20px; }
.billing-current strong small, .billing-plan strong small { margin-left: 4px; font-size: 9px; font-weight: 550; opacity: .72; }
.billing-usage { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 27px 30px; }
.billing-meter > div:first-child { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.billing-meter span { color: var(--muted); font-size: 10px; font-weight: 650; }
.billing-meter b { color: var(--ink); font-size: 12px; }
.billing-meter b small { color: var(--muted); font-size: 9px; font-weight: 500; }
.billing-meter-track { overflow: hidden; height: 7px; margin-top: 9px; border-radius: 99px; background: #ececf2; }
.billing-meter-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #8f87f3); }
.billing-section-title { margin: 31px 0 14px; }
.billing-section-title span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.billing-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.billing-plan { display: flex; min-height: 300px; flex-direction: column; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.billing-plan.is-current { border-color: #bbb6f7; box-shadow: 0 9px 28px rgba(91,83,198,.12); }
.billing-plan > div > span { color: var(--primary); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.billing-plan h3 { margin-top: 8px; font-size: 19px; }
.billing-plan strong { display: block; margin-top: 12px; color: var(--ink); font-size: 19px; }
.billing-plan ul { display: flex; flex: 1; flex-direction: column; gap: 10px; margin: 20px 0; }
.billing-plan li { display: flex; align-items: center; gap: 7px; color: #616270; font-size: 9px; line-height: 1.35; }
.billing-plan li .icon { width: 14px; height: 14px; flex: 0 0 auto; color: #58a97c; }
.billing-plan .button { width: 100%; }
.billing-invoices, .admin-invoices { margin-top: 28px; max-width: none !important; }
.invoice-list { display: flex; flex-direction: column; }
.invoice-row { display: grid; grid-template-columns: minmax(190px, 1fr) auto auto auto; min-height: 66px; align-items: center; gap: 14px; border-top: 1px solid #efeff3; }
.invoice-row > span:first-child { min-width: 0; }
.invoice-row b, .invoice-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invoice-row b { color: var(--ink); font-size: 10px; }
.invoice-row small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.invoice-row strong { font-size: 11px; }
.billing-status { padding: 5px 8px; border-radius: 99px; color: #666778; background: #f0f0f4; font-size: 8px; font-weight: 700; white-space: nowrap; }
.billing-status.status-paid { color: #28794d; background: #e7f6ed; }
.billing-status.status-issued { color: #82621b; background: #fff4d8; }
.billing-status.status-overdue { color: #a44242; background: #ffe9e9; }
.invoice-actions { display: flex; align-items: center; gap: 7px; }
.invoice-actions .button { min-height: 32px; padding: 0 10px; font-size: 8px; }

.admin-create-card, .admin-teams-card, .admin-invoices { max-width: none !important; }
.admin-create-form { display: grid; grid-template-columns: 1fr 1fr 170px auto; align-items: end; gap: 10px; }
.admin-invite-secret { max-width: 820px; }
.admin-list-heading { align-items: end; }
.admin-filters { display: flex; align-items: center; gap: 8px; }
.admin-filters label { position: relative; }
.admin-filters label .icon { position: absolute; top: 12px; left: 11px; width: 14px; height: 14px; color: var(--muted); }
.admin-filters input { width: 220px; padding-left: 33px; }
.admin-filters select { width: 170px; }
.admin-teams-card { margin-top: 16px; }
.admin-workspace-list { display: flex; flex-direction: column; }
.admin-workspace-row { display: grid; grid-template-columns: minmax(190px, 1.2fr) minmax(210px, .9fr) 145px 145px auto; align-items: center; gap: 10px; min-height: 78px; border-top: 1px solid #efeff3; }
.admin-team-main { display: flex; min-width: 0; align-items: center; gap: 10px; }
.admin-team-main > span:last-child { min-width: 0; }
.admin-team-main b, .admin-team-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-team-main b { font-size: 10px; }
.admin-team-main small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.admin-team-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.admin-team-stats span { min-width: 0; padding: 7px; border-radius: 8px; background: #f7f7fa; text-align: center; }
.admin-team-stats b, .admin-team-stats small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-team-stats b { font-size: 10px; }
.admin-team-stats small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.admin-workspace-row select { min-width: 0; }
.admin-pagination { padding-right: 0; padding-left: 0; }

.token-card { margin-top: 18px; }
.token-secret { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 18px; padding: 15px; border: 1px solid #dcd8ff; border-radius: 11px; background: #f7f5ff; }
.token-secret b { grid-column: 1 / -1; color: #555068; font-size: 10px; }
.token-secret code { overflow: auto; padding: 10px; border-radius: 7px; color: #3e3965; background: #eeebff; font-size: 10px; }
.token-form { grid-template-columns: 1fr auto; padding-bottom: 18px; }

.drawer-backdrop { position: fixed; z-index: 89; inset: 0; background: rgba(28,28,45,.2); backdrop-filter: blur(1px); }
.notification-drawer { position: fixed; z-index: 90; top: 0; right: 0; display: flex; width: min(390px, 100vw); height: 100vh; flex-direction: column; border-left: 1px solid var(--line); background: #fff; box-shadow: -18px 0 55px rgba(28,28,50,.18); animation: drawer-notification .2s ease-out; }
@keyframes drawer-notification { from { transform: translateX(100%); } }
.notification-drawer header { display: flex; min-height: 70px; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); }
.notification-drawer header > div { display: flex; align-items: center; gap: 8px; }
.notification-drawer header h2 { font-size: 17px; }
.notification-drawer header span { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 99px; color: var(--primary); background: var(--primary-soft); font-size: 8px; }
.mark-all { align-self: flex-end; padding: 14px 20px 8px; color: var(--primary); background: transparent; font-size: 9px; font-weight: 650; }
.notification-list { overflow: auto; padding: 8px 12px 20px; }
.notification-item { display: flex; width: 100%; gap: 11px; padding: 13px 10px; border-radius: 10px; background: transparent; text-align: left; }
.notification-item:hover { background: #f7f7fb; }
.notification-item.is-unread { background: #f5f3ff; }
.notification-item > span:first-child { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--primary); background: #fff; }
.notification-item .icon { width: 15px; height: 15px; }
.notification-item b, .notification-item small { display: block; }
.notification-item b { color: var(--ink); font-size: 10px; line-height: 1.45; }
.notification-item small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.drawer-empty { display: grid; min-height: 250px; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.drawer-empty .icon { width: 28px; height: 28px; }

.document-page { min-height: 100vh; background: var(--canvas); }
.document-page > header { position: sticky; z-index: 20; top: 0; display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 0 max(25px, calc((100vw - 1120px)/2)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(15px); }
.document-page > header > div { display: flex; align-items: center; gap: 12px; }
.document-page main { width: min(800px, calc(100% - 40px)); margin: 0 auto; padding: 50px 0 72px; }
.document-back { display: flex; align-items: center; gap: 6px; margin-bottom: 30px; color: var(--muted); background: transparent; font-size: 10px; }
.document-back .icon { width: 14px; height: 14px; }
.document-page main h1 { margin-top: 15px; font-size: clamp(38px, 6vw, 64px); letter-spacing: -.055em; }
.document-lead { max-width: 650px; margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.document-page main section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.document-page main section h2 { margin-bottom: 15px; font-size: 21px; }
.document-page main section p { margin-top: 10px; color: #5f6070; font-size: 13px; line-height: 1.75; }
.document-page pre { margin-top: 16px; overflow: auto; padding: 18px; border-radius: 12px; color: #e5e3f5; background: #232236; font-size: 11px; line-height: 1.6; }
.route-not-found p { max-width: 400px; margin: 9px auto 20px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.route-not-found h2 { margin-top: 5px; font-size: 20px; }

@media (max-width: 1120px) {
  .marketing-links { margin-left: 15px; }
  .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 20px; }
  .hero h1 { font-size: 58px; }
  .floating-voices { right: -5px; }
  .dashboard-upload-card { padding: 32px; }
  .upload-orb { right: -40px; opacity: .75; }
  .job-table-head, .job-row { grid-template-columns: minmax(230px, 1.5fr) 105px 70px 100px 75px 20px; padding-inline: 13px; }
}

@media (max-width: 960px) {
  .marketing-links, .nav-login { display: none; }
  .marketing-menu { display: grid; }
  .mobile-marketing-links { position: absolute; top: 70px; right: 24px; left: 24px; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-md); }
  .mobile-marketing-links.is-open { display: flex; }
  .mobile-marketing-links button { min-height: 42px; border-radius: 8px; text-align: left; }
  .mobile-marketing-links button:hover { color: var(--ink); background: #f7f7fa; }
  .hero { min-height: auto; padding-top: 118px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; text-align: center; margin-inline: auto; }
  .hero h1, .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-product { width: min(700px, 96%); margin: 35px auto 0; }
  .preview-wrap { transform: none; }
  .feature-card-wide { gap: 30px; padding: 35px; }
  .security-card { grid-template-columns: .7fr 1.3fr; }
  .security-copy { padding: 50px 40px; }
  .pricing-card { padding: 45px; }
  .sidebar { width: 208px; }
  .app-main { width: calc(100% - 208px); margin-left: 208px; }
  .dashboard-content { width: calc(100% - 40px); }
  .dashboard-hero-grid { grid-template-columns: 1fr; }
  .overview-card { min-height: 210px; }
  .overview-chart { height: 60px; }
  .overview-meta { margin-top: 12px; }
  .job-table-head, .job-row { grid-template-columns: minmax(220px, 1.4fr) 100px 70px 95px 20px; }
  .job-table-head span:nth-child(5), .job-row > span:nth-child(5) { display: none; }
  .editor-workspace { grid-template-columns: 1fr; }
  .info-panel { position: static; display: grid; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .topbar-actions .notification-button { display: grid; }
  .marketing-container { width: min(100% - 32px, 600px); }
  .nav-inner { height: 68px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 21px; }
  .nav-cta { display: none; }
  .hero { padding: 106px 0 54px; background-size: 34px 34px, 34px 34px, 100% 100%; }
  .hero h1 { margin-top: 20px; font-size: clamp(43px, 13vw, 63px); }
  .hero-lead { font-size: 15px; line-height: 1.58; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .editor-preview { min-height: 490px; }
  .preview-title-row, .preview-transcript { padding-right: 18px; padding-left: 18px; }
  .preview-player { margin-right: 18px; margin-left: 18px; }
  .preview-line p { font-size: 10px; }
  .floating-voices { right: -8px; bottom: 38px; }
  .formats-inner { flex-direction: column; gap: 20px; }
  .format-list { width: 100%; justify-content: space-between; gap: 5px; }
  .section { padding: 62px 0; }
  .section-heading { margin-bottom: 30px; }
  .steps-grid, .feature-bento { grid-template-columns: 1fr; }
  .step-card { min-height: 250px; }
  .feature-card-wide { display: block; grid-column: auto; }
  .speaker-demo { margin-top: 30px; }
  .feature-card { min-height: 300px; }
  .security-card { display: block; }
  .security-visual { height: 220px; }
  .security-copy { padding: 38px 27px 44px; }
  .pricing-card { grid-template-columns: 1fr; gap: 35px; padding: 34px 27px; }
  .price-action { padding: 28px 0 0; border-top: 1px solid #dedbea; border-left: 0; }
  .pricing-card h2 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1.4fr .8fr .9fr; gap: 28px 20px; }

  .sidebar { display: none; }
  .sidebar.is-mobile-open { z-index: 85; display: flex; width: min(270px, 82vw); box-shadow: 18px 0 55px rgba(25,25,47,.2); animation: drawer-in .2s ease-out; }
  .sidebar.is-mobile-open + .mobile-sidebar-backdrop { position: fixed; z-index: 80; inset: 0; display: block; background: rgba(24,24,42,.38); backdrop-filter: blur(2px); }
  @keyframes drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
  .app-main { width: 100%; margin-left: 0; }
  .app-topbar { height: 62px; padding: 0 15px; }
  .app-mobile-menu { display: grid; width: 37px; height: 37px; }
  .editor-breadcrumb > .app-mobile-menu { display: grid; place-items: center; padding: 0; }
  .app-search { width: auto; min-width: 0; flex: 1; margin: 0 10px; }
  .app-search kbd { display: none; }
  .topbar-avatar { display: grid; width: 32px; height: 32px; }
  .dashboard-content { width: calc(100% - 28px); padding-top: 20px; padding-bottom: 92px; }
  .dashboard-heading { align-items: center; }
  .dashboard-heading h1 { font-size: 23px; }
  .dashboard-heading p { max-width: 250px; line-height: 1.45; }
  .dashboard-upload-card { min-height: 280px; padding: 27px 24px; align-items: flex-start; }
  .upload-card-copy h2 { max-width: 290px; font-size: 28px; }
  .upload-card-copy > p { max-width: 310px; }
  .upload-card-actions { align-items: flex-start; flex-direction: column; }
  .upload-orb { right: -43px; bottom: -75px; width: 220px; height: 220px; }
  .overview-card { min-height: 200px; }
  .processing-card { grid-template-columns: auto 1fr; }
  .processing-progress { grid-column: span 2; }
  .job-table-head { display: none; }
  .jobs-table { border: 0; background: transparent; box-shadow: none; }
  .job-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 78px; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
  .job-row > span:nth-child(2), .job-row > span:nth-child(3), .job-row > span:nth-child(5), .job-row > span:nth-child(6) { display: none; }
  .job-row > span:nth-child(4) { display: block; }
  .mobile-bottom-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(68px + env(safe-area-inset-bottom)); padding: 6px 8px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(15px); }
  .mobile-bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #6f7180; background: transparent; font-size: 9px; }
  .mobile-bottom-nav button.is-active { color: var(--primary); }
  .mobile-bottom-nav button .icon { width: 18px; height: 18px; }
  .mobile-bottom-nav .mobile-new { align-self: start; width: 46px; height: 46px; margin: -15px auto 0; border: 4px solid var(--canvas); border-radius: 50%; color: #fff; background: var(--primary); box-shadow: 0 7px 16px rgba(98,89,232,.24); }

  .modal-backdrop { align-items: end; padding: 0 0 env(safe-area-inset-bottom); }
  .modal { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0; }
  .modal-header { padding: 19px 17px 15px; }
  .modal-body { padding: 17px; }
  .toggle-settings { grid-template-columns: 1fr; }
  .modal-footer { position: sticky; bottom: 0; padding: 13px 17px; }
  .processing-modal { padding: 35px 22px 30px; }
  .processing-background-actions .button { width: 100%; }

  .editor-topbar { height: 61px; padding: 0 13px; }
  .editor-breadcrumb > button span, .save-state, .editor-copy span { display: none; }
  .editor-actions { gap: 5px; }
  .editor-actions .button { padding: 0 10px; }
  .editor-page { width: calc(100% - 24px); padding-top: 22px; padding-bottom: 190px; }
  .editor-title input { width: calc(100vw - 90px); font-size: 21px; }
  .audio-player { position: fixed; z-index: 35; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; top: auto; height: 65px; gap: 5px; margin: 0; padding: 0 10px; }
  .player-main { width: 38px; height: 38px; }
  .player-skip, .player-volume { display: none; }
  .player-time { min-width: 72px; font-size: 10px; }
  .speed-button { min-width: 35px; }
  .editor-wave { gap: 1px; }
  .editor-workspace { margin-top: 11px; }
  .transcript-toolbar { height: 52px; padding-inline: 12px; }
  .transcript-search { width: 145px; }
  .segments { padding: 7px; }
  .segment { grid-template-columns: 43px minmax(0,1fr); gap: 5px; padding: 14px 5px 14px 1px; }
  .segment-menu { display: none; }
  .segment-content p { font-size: 12px; }
  .info-panel { display: flex; }
  .export-menu { position: fixed; top: 70px; right: 12px; width: min(280px, calc(100vw - 24px)); }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 43px; }
  .editor-preview { min-height: 450px; }
  .preview-line:nth-child(3) { display: none; }
  .floating-voices { display: none; }
  .format-list b:nth-child(n+6) { display: none; }
  .feature-card, .step-card { padding: 23px; }
  .feature-card-wide { padding: 27px 23px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .dashboard-heading p { max-width: 220px; }
  .upload-card-actions > span { display: none; }
  .language-options { grid-template-columns: 1fr; }
  .language-options button { min-height: 51px; }
  .dropzone label { min-height: 150px; }
  .phase-list b { max-width: 65px; }
  .transcript-search { width: 130px; }
}

@media (max-width: 960px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .billing-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-workspace-row { grid-template-columns: minmax(190px, 1fr) 145px 145px auto; padding: 12px 0; }
  .admin-team-stats { grid-column: 1 / -1; grid-row: 2; }
  .library-filters { grid-template-columns: minmax(220px, 1fr) 150px 150px; }
  .editor-tab-transcript .info-panel { display: none; }
  .editor-tab-info .info-panel { display: grid; }
}

@media (max-width: 820px) {
  .auth-main { padding: 18px; }
  .auth-card { padding: 25px 20px; }
  .library-content, .settings-content { width: calc(100% - 28px); }
  .library-filters { grid-template-columns: 1fr 1fr; }
  .library-search { grid-column: 1 / -1; }
  .pagination { align-items: stretch; flex-direction: column; }
  .pagination > div { justify-content: space-between; }
  .settings-card { padding: 18px; }
  .workspace-settings-form { grid-template-columns: 1fr; }
  .workspace-settings-form .card-heading,
  .workspace-settings-form .settings-readonly { grid-column: auto; }
  .workspace-settings-form .settings-actions .button { width: 100%; }
  .inline-form { grid-template-columns: 1fr; }
  .dashboard-heading-actions { align-items: stretch; flex-direction: column-reverse; }
  .dashboard-heading-actions .button { width: 100%; }
  .billing-summary { grid-template-columns: 1fr; }
  .billing-current { min-height: 190px; }
  .billing-plans { grid-template-columns: 1fr; }
  .invoice-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; }
  .invoice-row .billing-status { justify-self: start; }
  .invoice-actions { justify-self: end; }
  .admin-list-heading { align-items: stretch; flex-direction: column; }
  .admin-filters { align-items: stretch; flex-direction: column; }
  .admin-filters input, .admin-filters select { width: 100%; }
  .admin-workspace-row { grid-template-columns: 1fr 1fr; }
  .admin-team-main, .admin-team-stats { grid-column: 1 / -1; }
  .admin-team-stats { grid-row: auto; }
  .admin-workspace-row > .button { grid-column: 1 / -1; }
  .member-row, .invite-row, .token-row { flex-wrap: wrap; padding: 10px 0; }
  .token-secret, .invite-secret { grid-template-columns: 1fr; }
  .token-secret b, .invite-secret b, .invite-secret code { grid-column: auto; }
  .token-form { grid-template-columns: 1fr; }
  .volume-control { display: none; }
  .editor-tab-info .info-panel { grid-template-columns: 1fr; }
  .notification-drawer { height: 100dvh; }
  .document-page > header { height: 62px; padding: 0 15px; }
  .document-page main { padding-top: 42px; }
  .document-page .marketing-footer { display: none; }
  .action-menu { position: fixed; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); top: auto; left: 12px; width: auto; }
  .segment-menu { display: grid; opacity: 1; }
}

@media (max-width: 420px) {
  .library-filters { grid-template-columns: 1fr; }
  .library-search { grid-column: auto; }
  .pagination > div { flex-wrap: wrap; }
  .pagination > div b { order: -1; width: 100%; text-align: center; }
  .settings-content .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .invite-link-form, .admin-create-form { grid-template-columns: 1fr; }
  .invite-link-form .invite-email { grid-column: auto; }
  .invite-secret { grid-template-columns: 1fr; }
  .invite-secret .invite-success, .invite-secret b, .invite-secret code { grid-column: auto; }
  .billing-current-title { align-items: flex-start; flex-direction: column; }
  .billing-usage { padding: 22px 18px; }
  .invoice-row { grid-template-columns: 1fr; }
  .invoice-actions { width: 100%; justify-self: stretch; }
  .invoice-actions .button { flex: 1; }
  .admin-workspace-row { grid-template-columns: 1fr; }
  .admin-team-main, .admin-team-stats, .admin-workspace-row > .button { grid-column: auto; }
  .role-badge { width: 100%; text-align: center; }
}

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