:root {
  color-scheme: dark;
  --bg: #121316;
  --panel: #1b1d22;
  --panel-soft: #24262d;
  --text: #f8f8fb;
  --muted: #b7bbc8;
  --line: rgba(255, 255, 255, 0.12);
  --violet: #6657ff;
  --violet-light: #8277ff;
  --cyan: #57d8ff;
  --green: #6ee7b7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 111, 255, 0.72) rgba(255, 255, 255, 0.06);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 9, 12, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--violet-light), var(--cyan));
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a897ff, #64e7ff);
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(87, 216, 255, 0.14), transparent 26rem),
    radial-gradient(circle at 84% 8%, rgba(102, 87, 255, 0.2), transparent 30rem),
    linear-gradient(180deg, #141518 0%, #1d1e23 48%, #121316 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 19, 22, 0.82);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: #3f4043;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.nav-links a,
.lang-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-links a {
  padding: 9px 12px;
}

.nav-links a:hover,
.lang-btn:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.site-menu-toggle,
.site-menu-backdrop {
  display: none;
}

.site-menu-toggle {
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-menu-toggle:hover {
  border-color: rgba(136, 111, 255, 0.6);
  background: rgba(136, 111, 255, 0.16);
}

.site-menu-open .site-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-menu-open .site-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-menu-open .site-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lang-btn {
  min-width: 42px;
  padding: 8px 9px;
  cursor: pointer;
  background: transparent;
}

.lang-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #7468ff);
  box-shadow: 0 10px 24px rgba(102, 87, 255, 0.3);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 64px 0 44px;
}

.hero-copy h1,
.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 5.7vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-btn,
.secondary-btn,
.legal-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  box-shadow: 0 18px 42px rgba(102, 87, 255, 0.34);
}

.secondary-btn,
.legal-links a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.primary-btn:hover,
.secondary-btn:hover,
.legal-links a:hover {
  transform: translateY(-2px);
}

.primary-btn:disabled,
.secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.hero-mark::before,
.hero-mark::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  filter: blur(4px);
}

.hero-mark::before {
  width: 86%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(102, 87, 255, 0.22));
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}

.hero-mark::after {
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(87, 216, 255, 0.08);
  animation: float 7s ease-in-out infinite reverse;
}

.hero-mark img {
  position: relative;
  z-index: 2;
  width: min(72%, 390px);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.how-section,
.transcript-section,
.demo-section,
.feature-section,
.reports-section,
.faq-section,
.gallery-section,
.about,
.legal-content {
  padding: 76px 0;
}

.section-copy {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.step-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(102, 87, 255, 0.12)),
    var(--panel-soft);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 119, 255, 0.5);
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  box-shadow: 0 16px 32px rgba(102, 87, 255, 0.28);
}

.step-card h3 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.transcript-preview {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: stretch;
}

.summary-panel,
.transcript-panel,
.placeholder-panel,
.report-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(102, 87, 255, 0.11)),
    var(--panel-soft);
  box-shadow: var(--shadow);
}

.summary-panel,
.transcript-panel {
  padding: clamp(20px, 3vw, 28px);
}

.panel-label,
.transcript-toolbar span:first-child,
.report-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-panel p {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
}

.insight-grid {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.insight-grid span,
.feature-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  width: fit-content;
  padding: 0 12px;
  border: 1px solid rgba(102, 87, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(102, 87, 255, 0.14);
}

.transcript-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.transcript-toolbar span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.transcript-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.transcript-line time {
  color: var(--violet-light);
  font-weight: 900;
}

.transcript-line strong {
  display: block;
  margin-bottom: 5px;
}

.transcript-line p {
  margin: 0;
  color: var(--muted);
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: center;
}

.feature-section.reverse {
  grid-template-columns: minmax(320px, 1.1fr) minmax(0, 0.9fr);
}

.feature-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.04;
}

.feature-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.placeholder-panel {
  min-height: 360px;
  padding: 22px;
  overflow: hidden;
}

.placeholder-browser {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.placeholder-browser span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.record-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 19, 22, 0.62);
}

.record-row.active {
  border-color: rgba(102, 87, 255, 0.55);
  background: rgba(102, 87, 255, 0.18);
}

.record-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.device-panel {
  display: grid;
  align-content: center;
  gap: 16px;
}

.device-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.device-card.violet {
  background: rgba(102, 87, 255, 0.18);
  border-color: rgba(102, 87, 255, 0.48);
}

.device-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.device-card strong {
  font-size: clamp(24px, 4vw, 38px);
}

.sync-line {
  justify-self: center;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--green);
  font-weight: 900;
  background: rgba(110, 231, 183, 0.11);
}

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

.report-card {
  grid-column: span 3;
  min-height: 230px;
  padding: 24px;
}

.report-card.featured {
  grid-column: span 6;
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(102, 87, 255, 0.24), rgba(87, 216, 255, 0.1)),
    var(--panel-soft);
}

.report-card h3 {
  margin: 18px 0 10px;
  font-size: clamp(24px, 3vw, 36px);
}

.report-card p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.demo-card {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(102, 87, 255, 0.14), rgba(87, 216, 255, 0.08)),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

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

.demo-field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.demo-field span {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.demo-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  background: rgba(18, 19, 22, 0.72);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.demo-field input[type="url"] {
  padding: 0 16px;
}

.demo-field input[type="file"] {
  padding: 13px 14px;
}

.demo-field input:focus {
  border-color: rgba(130, 119, 255, 0.78);
  background: rgba(18, 19, 22, 0.9);
  box-shadow: 0 0 0 4px rgba(102, 87, 255, 0.16);
}

.demo-field small,
.demo-note,
.demo-message {
  color: var(--muted);
}

.demo-field small {
  font-size: 14px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.demo-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.demo-note {
  margin: 0;
  font-size: 15px;
}

.demo-status {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(18, 19, 22, 0.58);
}

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

.demo-status-label,
.demo-status-percent {
  color: var(--text);
  font-weight: 900;
}

.demo-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.demo-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--green));
  box-shadow: 0 0 24px rgba(87, 216, 255, 0.32);
  transition: width 360ms ease;
}

.demo-message {
  min-height: 24px;
  margin: 0;
  font-size: 15px;
}

.demo-status.failed {
  border-color: rgba(255, 112, 112, 0.46);
  background: rgba(110, 20, 20, 0.26);
}

.demo-status.failed .demo-status-label,
.demo-status.failed .demo-message {
  color: #ffb4b4;
}

.demo-status.completed {
  border-color: rgba(110, 231, 183, 0.42);
  background: rgba(21, 94, 69, 0.2);
}

.demo-status.completed .demo-status-label {
  color: var(--green);
}

.billing-animation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(136, 111, 255, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 20%, rgba(136, 111, 255, 0.24), transparent 12rem),
    rgba(12, 12, 16, 0.86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  color: var(--text);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 260ms ease, transform 260ms ease;
}

.billing-animation[hidden] {
  display: none;
}

.billing-animation.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.billing-animation span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 112, 112, 0.14);
  color: #ffb4b4;
  font-weight: 900;
}

.billing-animation strong {
  color: var(--violet-light);
  font-size: 18px;
  font-weight: 900;
}

.demo-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-downloads[hidden] {
  display: none;
}

.demo-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(110, 231, 183, 0.34);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  background: rgba(110, 231, 183, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.demo-download-link:hover {
  border-color: rgba(110, 231, 183, 0.7);
  background: rgba(110, 231, 183, 0.18);
  transform: translateY(-2px);
}

.demo-download-link.disabled,
.demo-download-link.disabled:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.44);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  transform: none;
}

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

.gallery-mobile-trigger {
  display: none;
}

.gallery-card {
  position: relative;
  display: block;
  grid-column: span 2;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.gallery-card::before,
.gallery-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.gallery-card::before {
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.36));
}

.gallery-card::after {
  display: none;
}

.gallery-card.wide {
  grid-column: span 3;
  aspect-ratio: 2358 / 1540;
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--violet-light);
  box-shadow: 0 24px 90px rgba(102, 87, 255, 0.32);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: transform 420ms ease;
}

.gallery-card:hover img {
  transform: scale(1.035);
}

.gallery-number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: max-content;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: var(--violet);
  box-shadow: 0 10px 28px rgba(102, 87, 255, 0.32);
}

.about-grid p,
.legal-content p,
.legal-hero p {
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: blur(18px);
}

.lightbox.open {
  display: grid;
}

.lightbox-card {
  position: relative;
  width: min(1180px, calc(100vw - 124px));
  max-height: calc(100vh - 72px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(18, 19, 22, 0.94);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.58);
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 118px);
  object-fit: contain;
  background: #fff;
}

.lightbox-caption {
  margin: 0;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.lightbox-close,
.lightbox-arrow {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, background 180ms ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
}

.lightbox-arrow {
  top: 50%;
  width: 54px;
  height: 72px;
  transform: translateY(-50%);
}

.lightbox-arrow:hover {
  transform: translateY(calc(-50% - 2px));
}

.lightbox-arrow.prev {
  left: 24px;
}

.lightbox-arrow.next {
  right: 24px;
}

.bot-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: min(330px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(18, 19, 22, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.bot-toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bot-toast p {
  margin: 0 34px 12px 0;
  color: var(--text);
  font-weight: 800;
}

.bot-toast a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  box-shadow: 0 14px 34px rgba(102, 87, 255, 0.3);
}

.bot-toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

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

.about-grid p {
  min-height: 180px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 18px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.14);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq-list a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.legal-page {
  padding-top: 52px;
}

.legal-hero {
  padding: 56px 0 28px;
}

.legal-hero p:last-child {
  margin-top: 18px;
}

.legal-content {
  max-width: 880px;
}

.legal-document h3 {
  margin: 0 0 24px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.14;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 26px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-detail {
  font-weight: 700;
}

.guide-page {
  padding-top: 52px;
}

.guide-content {
  max-width: 920px;
  padding: 52px 0 84px;
}

.guide-document {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.guide-document h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
}

.guide-document h3 {
  margin: 38px 0 12px;
  font-size: clamp(23px, 3vw, 32px);
}

.guide-document p,
.guide-document li {
  color: var(--muted);
  font-size: 18px;
}

.guide-document ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.guide-document li + li {
  margin-top: 8px;
}

.guide-document strong {
  color: var(--text);
}

.guide-document a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.guide-document a:hover {
  text-decoration: underline;
}

.auth-page,
.account-page,
.packages-page {
  padding-bottom: 40px;
}

.auth-grid,
.packages-grid,
.account-shell {
  padding: 18px 0 76px;
}

.auth-grid,
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.auth-card,
.package-card,
.account-stat,
.sync-card,
.account-status,
.package-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(102, 87, 255, 0.1)),
    var(--panel);
  box-shadow: var(--shadow);
}

.auth-card,
.package-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
}

.package-card {
  grid-template-rows: auto auto auto 1fr auto;
}

.plan-price {
  color: var(--violet-light);
  font-size: 20px;
  line-height: 1;
}

.package-card .primary-btn {
  align-self: end;
}

.auth-card.accent,
.package-card.featured {
  border-color: rgba(130, 119, 255, 0.55);
  background:
    linear-gradient(135deg, rgba(102, 87, 255, 0.24), rgba(87, 216, 255, 0.1)),
    var(--panel-soft);
}

.auth-card h2,
.sync-card h2,
.package-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.auth-card p,
.package-card p,
.sync-card p,
.account-status,
.package-note {
  margin: 0;
  color: var(--muted);
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.auth-card input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 52px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  background: transparent;
  transform: translateY(-50%);
  transition: color 180ms ease, background 180ms ease;
}

.password-field button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.forgot-password-link {
  width: fit-content;
  margin-top: -6px;
  padding: 0;
  border: 0;
  color: var(--violet-light);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
  background: transparent;
}

.forgot-password-link:hover {
  color: var(--cyan);
}

.forgot-password-card {
  grid-column: 1 / -1;
  max-width: 620px;
}

.auth-card input:focus {
  border-color: rgba(130, 119, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(102, 87, 255, 0.16);
}

.code-card {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr) auto;
  align-items: end;
}

.code-card h2,
.code-card p {
  grid-column: 1;
}

.code-card label {
  grid-column: 2;
}

.code-card button {
  grid-column: 3;
}

.code-card .form-message {
  grid-column: 1 / -1;
}

.form-message {
  min-height: 22px;
  color: var(--green);
  font-weight: 700;
}

.form-message.error {
  color: #ff9a9a;
}

.account-status {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 24px;
}

.account-details {
  display: grid;
  gap: 18px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.account-stat {
  display: grid;
  gap: 10px;
  min-height: 138px;
  padding: 20px;
}

.account-stat span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-stat strong {
  overflow-wrap: anywhere;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.12;
}

.sync-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 24px;
}

.sync-card .primary-btn {
  white-space: nowrap;
}

.code-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(130, 119, 255, 0.44);
  border-radius: 8px;
  background: rgba(102, 87, 255, 0.12);
}

.code-box span,
.code-box small {
  color: var(--muted);
}

.code-box strong {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.package-card > span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: rgba(102, 87, 255, 0.28);
}

.package-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.package-card li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "+";
}

.package-note {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: -34px;
  padding: 18px;
}

.workspace-cta {
  width: fit-content;
}

.section-heading.centered {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.centered .section-copy {
  margin-right: auto;
  margin-left: auto;
}

.tariff-compare {
  padding: 42px 0 82px;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 11, 13, 0.42);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  color: var(--text);
}

.compare-table th,
.compare-table td {
  padding: 22px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.compare-table th {
  font-size: 22px;
  font-weight: 900;
}

.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  text-align: center;
}

.compare-table td:first-child {
  width: 36%;
  color: var(--muted);
  font-weight: 800;
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table em {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  color: #1a132b;
  font-size: 14px;
  font-style: normal;
  background: var(--violet-light);
}

.compare-table .yes {
  color: var(--violet-light);
  font-size: 30px;
  font-weight: 900;
}

.compare-table .no {
  color: #c8cbd4;
  font-size: 30px;
  font-weight: 400;
}

.app-body {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 18%, rgba(102, 87, 255, 0.12), transparent 24rem),
    linear-gradient(135deg, #090a0c 0%, #121316 52%, #08090b 100%);
}

.app-shell {
  min-height: 100vh;
}

.app-auth-status {
  width: min(520px, calc(100% - 32px));
  margin: 120px auto;
}

.app-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 240ms ease;
}

.app-layout.task-sidebar-open {
  grid-template-columns: 340px minmax(0, 1fr) 400px;
}

.app-layout.task-sidebar-open.task-sidebar-compact {
  grid-template-columns: 340px minmax(0, 1fr) 96px;
}

.app-layout.detail-sidebar-compact {
  grid-template-columns: 88px minmax(0, 1fr);
}

.app-layout.detail-sidebar-compact.task-sidebar-open {
  grid-template-columns: 88px minmax(0, 1fr) 400px;
}

.app-layout.detail-sidebar-compact.task-sidebar-open.task-sidebar-compact {
  grid-template-columns: 88px minmax(0, 1fr) 96px;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 8px 12px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 7, 9, 0.86);
  box-shadow: 18px 0 70px rgba(0, 0, 0, 0.25);
  transition: width 220ms ease, padding 220ms ease;
  overflow: visible;
}

.workspace-head,
.sidebar-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.workspace-head {
  padding: 0 0 26px;
}

.workspace-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: #4d2696;
}

.workspace-avatar.small {
  width: 48px;
  height: 48px;
  font-size: 15px;
}

.workspace-head strong,
.sidebar-user strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-head span,
.sidebar-user span {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-chevrons {
  color: rgba(255, 255, 255, 0.5);
  font-size: 24px;
}

.app-nav {
  display: grid;
  gap: 6px;
}

.app-nav button,
.settings-tabs button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  background: transparent;
}

.app-nav button.active {
  background: rgba(255, 255, 255, 0.035);
}

.app-nav button:not(.active) {
  color: rgba(255, 255, 255, 0.78);
}

.sidebar-spacer {
  flex: 1;
}

.telegram-link,
.sidebar-plan {
  text-decoration: none;
}

.telegram-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-bottom: 22px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.sidebar-plan {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: rgba(102, 87, 255, 0.16);
}

.sidebar-plan div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-plan span {
  color: var(--violet-light);
  font-weight: 800;
}

.sidebar-plan p {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
}

.sidebar-plan p span {
  color: rgba(255, 255, 255, 0.55);
}

.sidebar-user {
  grid-template-columns: auto minmax(0, 1fr);
}

@media (min-width: 901px) {
  .app-layout.detail-sidebar-compact .app-sidebar {
    padding-inline: 10px;
  }

  .app-layout.detail-sidebar-compact .workspace-head {
    justify-content: center;
    padding-bottom: 22px;
  }

  .app-layout.detail-sidebar-compact .workspace-head > div,
  .app-layout.detail-sidebar-compact .workspace-chevrons,
  .app-layout.detail-sidebar-compact .telegram-link,
  .app-layout.detail-sidebar-compact .sidebar-plan,
  .app-layout.detail-sidebar-compact .sidebar-user > div {
    display: none;
  }

  .app-layout.detail-sidebar-compact .workspace-avatar {
    width: 50px;
    height: 50px;
  }

  .app-layout.detail-sidebar-compact .app-nav {
    justify-items: center;
  }

  .app-layout.detail-sidebar-compact .app-nav button {
    position: relative;
    justify-content: center;
    width: 54px;
    min-height: 54px;
    padding: 0;
    font-size: 22px;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
  }

  .app-layout.detail-sidebar-compact .app-nav button:hover {
    transform: translateX(2px);
    background: rgba(136, 111, 255, 0.16);
  }

  .app-layout.detail-sidebar-compact .app-nav button span {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    z-index: 30;
    min-width: 176px;
    padding: 12px 14px;
    border: 1px solid rgba(136, 111, 255, 0.28);
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    background: rgba(16, 16, 22, 0.96);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
    opacity: 0;
    transform: translate(-8px, -50%);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .app-layout.detail-sidebar-compact .app-nav button:hover span,
  .app-layout.detail-sidebar-compact .app-nav button:focus-visible span {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .app-layout.detail-sidebar-compact .sidebar-user {
    display: grid;
    justify-content: center;
    grid-template-columns: auto;
    padding-inline: 0;
  }
}

.app-main {
  min-width: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.task-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  padding: 22px 18px;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 80% 8%, rgba(136, 111, 255, 0.18), transparent 16rem),
    rgba(7, 8, 11, 0.94);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.26);
  animation: taskSidebarIn 240ms ease both;
}

.task-sidebar[hidden] {
  display: none;
}

.task-sidebar.closing {
  pointer-events: none;
  animation: taskSidebarOut 220ms ease both;
}

.task-sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.05);
}

.task-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 42px 4px 20px;
}

.task-sidebar-head div {
  display: grid;
  gap: 8px;
}

.task-sidebar-head span {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.task-clear-button {
  justify-self: start;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.task-clear-button:hover:not(:disabled) {
  border-color: rgba(136, 111, 255, 0.46);
  color: #fff;
  background: rgba(136, 111, 255, 0.14);
}

.task-clear-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.task-sidebar-head strong,
.task-rail-button span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  color: #1b142d;
  font-weight: 900;
  background: var(--violet-light);
}

.task-sidebar-list {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding: 2px 2px 12px;
}

.task-card {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: #fff;
  cursor: default;
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  transition: border-color 180ms ease, background 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.task-card.completed {
  cursor: pointer;
  border-color: rgba(136, 111, 255, 0.72);
  background: linear-gradient(135deg, rgba(102, 87, 255, 0.24), rgba(87, 216, 255, 0.1));
}

.task-card.failed {
  border-color: rgba(255, 112, 112, 0.42);
  background: rgba(110, 20, 20, 0.22);
}

.task-card.completed:hover {
  transform: translateY(-2px);
}

.task-card.leaving {
  pointer-events: none;
  opacity: 0;
  transform: translateX(28px) scale(0.96);
}

.task-card:disabled {
  opacity: 1;
}

.task-card strong {
  overflow: hidden;
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 700;
}

.app-layout.task-sidebar-compact .task-sidebar {
  align-items: center;
  padding: 68px 12px 16px;
}

.app-layout.task-sidebar-compact .task-sidebar-head,
.app-layout.task-sidebar-compact .task-sidebar-pages {
  display: none;
}

.app-layout.task-sidebar-compact .task-sidebar-list {
  align-content: start;
  justify-items: center;
  width: 100%;
  gap: 14px;
  overflow-y: auto;
  padding: 0;
}

.app-layout.task-sidebar-compact .task-card {
  display: grid;
  place-items: center;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  min-width: 66px;
  min-height: 66px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.app-layout.task-sidebar-compact .task-card strong,
.app-layout.task-sidebar-compact .task-card-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-layout.task-sidebar-compact .task-card-row {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
}

.app-layout.task-sidebar-compact .task-progress-ring {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
}

.task-progress-ring {
  --progress: 0%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  contain: layout paint;
  background:
    radial-gradient(circle at center, #101116 55%, transparent 56%),
    conic-gradient(var(--violet-light) var(--progress), rgba(255, 255, 255, 0.13) 0);
}

.task-sidebar-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.task-sidebar-pages[hidden] {
  display: none;
}

.task-sidebar-pages button,
.task-rail-button {
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
}

.task-sidebar-pages button {
  width: 38px;
  height: 34px;
  border-radius: 11px;
}

.task-sidebar-pages button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.task-sidebar-pages span {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.task-rail-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(10, 11, 15, 0.9);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.task-rail-button[hidden] {
  display: none;
}

.task-toast {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 26;
  display: grid;
  gap: 4px;
  width: min(340px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(136, 111, 255, 0.42);
  border-radius: 16px;
  color: #fff;
  background: rgba(10, 11, 15, 0.94);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.task-toast[hidden] {
  display: none;
}

.task-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.task-toast span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-existing-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity 180ms ease;
}

.analysis-existing-modal[hidden] {
  display: none;
}

.analysis-existing-modal.show {
  opacity: 1;
}

.analysis-existing-modal > div {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 14px;
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(136, 111, 255, 0.34);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(136, 111, 255, 0.18), transparent 12rem),
    rgba(12, 13, 18, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  transform: translateY(10px) scale(0.98);
  transition: transform 180ms ease;
}

.analysis-existing-modal.show > div {
  transform: translateY(0) scale(1);
}

.analysis-existing-modal > div > button:first-child {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.analysis-existing-modal strong {
  padding-right: 36px;
  font-size: 22px;
  line-height: 1.2;
}

.analysis-existing-modal p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.5;
}

@keyframes taskSidebarIn {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes taskSidebarOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(24px);
  }
}

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

.app-view {
  display: none;
  min-height: 100vh;
  padding: 44px 64px;
}

.app-view.active {
  display: block;
}

.create-panel {
  display: grid;
  justify-items: center;
  max-width: 1040px;
  margin: 84px auto 0;
}

.create-panel h1,
.settings-screen h1,
.empty-app-panel h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.08;
  text-align: center;
}

.available-pill {
  margin: 16px 0 40px;
  padding: 7px 18px;
  border-radius: 999px;
  color: var(--violet-light);
  font-size: 16px;
  font-weight: 800;
  background: rgba(102, 87, 255, 0.18);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  width: 100%;
}

.source-card {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 168px;
  padding: 18px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
}

.source-card.active {
  border-color: var(--violet-light);
  color: var(--violet-light);
  background: rgba(102, 87, 255, 0.07);
}

.source-card span {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  color: #111;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.12);
}

.source-card.active span {
  color: #140b2d;
  background: var(--violet-light);
}

.app-upload-zone {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 204px;
  margin-top: 36px;
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: var(--violet-light);
  cursor: pointer;
  text-align: center;
  background: rgba(0, 0, 0, 0.14);
}

.app-upload-zone input {
  display: none;
}

.app-upload-zone span {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: var(--violet-light);
  font-size: 34px;
  background: rgba(102, 87, 255, 0.18);
}

.app-upload-zone strong {
  font-size: 21px;
}

.app-upload-zone small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
}

.workspace-demo-card {
  max-width: none;
  margin-top: 34px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.workspace-demo-card .demo-field {
  background: rgba(0, 0, 0, 0.18);
}

.workspace-demo-card .app-upload-zone {
  min-height: 176px;
  margin-top: 0;
  padding: 24px;
}

.workspace-transcription-list {
  display: grid;
  gap: 4px;
}

.transcriptions-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 0 4px;
}

.transcriptions-pages[hidden] {
  display: none;
}

.transcriptions-pages button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
}

.transcriptions-pages button:disabled {
  cursor: default;
  opacity: 0.35;
}

.transcriptions-pages span {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 900;
}

.workspace-transcriptions-table {
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.transcriptions-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.transcription-search {
  display: flex;
  align-items: center;
  width: min(420px, 100%);
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.04);
}

.transcription-search input {
  width: 100%;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: 0;
  background: transparent;
}

.transcription-selection-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(136, 111, 255, 0.28);
  border-radius: 12px;
  color: #fff;
  background: rgba(102, 87, 255, 0.12);
}

.transcription-selection-bar button,
.transcription-layout-switch button,
.transcription-more button {
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  background: transparent;
}

.transcription-selection-bar button {
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.transcription-table-head,
.workspace-transcription-row {
  display: grid;
  grid-template-columns: 34px minmax(180px, 1.7fr) minmax(140px, 1fr) 86px minmax(120px, 0.9fr) 138px 44px;
  gap: 12px;
  align-items: center;
}

.transcription-table-head {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.workspace-transcription-row {
  position: relative;
  min-height: 58px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 14px;
  transition: background 160ms ease;
}

.workspace-transcription-row:hover {
  background: rgba(255, 255, 255, 0.045);
}

.transcription-file-name {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transcription-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.transcription-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.transcription-check span {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  cursor: pointer;
  opacity: 0;
  background: transparent;
  transition: opacity 160ms ease, background 160ms ease, border-color 160ms ease;
}

.transcription-table-head .transcription-check span,
.workspace-transcription-row:hover .transcription-check span,
.transcription-check input:checked + span {
  opacity: 1;
}

.transcription-check input:checked + span {
  border-color: var(--violet-light);
  background: var(--violet-light);
  box-shadow: inset 0 0 0 3px #171324;
}

.transcription-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.transcription-participants span {
  max-width: 96px;
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.07);
}

.transcription-layout-switch {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.transcription-layout-switch button,
.transcription-more > button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.04);
}

.transcription-layout-switch button.active {
  color: #fff;
  background: rgba(136, 111, 255, 0.22);
}

.transcription-more {
  position: relative;
  display: flex;
  justify-content: flex-end;
  cursor: default;
}

.transcription-more-menu {
  position: absolute;
  top: 36px;
  right: 0;
  z-index: 10;
  min-width: 126px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(18, 19, 22, 0.98);
  box-shadow: var(--shadow);
}

.transcription-more-menu button {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  color: #ffb8b8;
  text-align: left;
}

.workspace-transcription-list.grid-view {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.workspace-transcription-list.grid-view .workspace-transcription-row {
  grid-template-columns: 26px minmax(0, 1fr) 34px;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.workspace-transcription-list.grid-view .transcription-participants,
.workspace-transcription-list.grid-view .workspace-transcription-row > span:nth-of-type(1),
.workspace-transcription-list.grid-view .workspace-transcription-row > span:nth-of-type(2),
.workspace-transcription-list.grid-view .workspace-transcription-row > span:nth-of-type(3) {
  grid-column: 2;
}

.transcription-detail {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  min-height: calc(100vh - 44px);
  margin: -34px -36px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-info-panel,
.detail-transcript-panel {
  min-width: 0;
  padding: 28px 30px;
}

.detail-info-panel {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-titlebar,
.detail-transcript-header,
.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-titlebar {
  margin-bottom: 22px;
}

.detail-back {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  background: transparent;
}

.detail-titlebar h1 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(22px, 2vw, 30px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-tags,
.detail-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-tags span,
.detail-participants span,
.detail-pill,
.detail-source-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.detail-participants span {
  border: 1px solid rgba(136, 111, 255, 0.55);
  color: var(--violet-light);
  background: rgba(102, 87, 255, 0.1);
}

.detail-meta-row {
  margin: 14px 0 24px;
}

.detail-meta-row time {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.42);
}

.detail-ai-card {
  margin: 24px -30px 0;
  padding: 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-ai-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-ai-tabs button,
.analysis-card,
.analysis-more-panel button,
.analysis-result-panel button,
.translation-list button {
  border: 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.detail-ai-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
}

.detail-ai-tabs button.active {
  color: #161126;
  background: var(--violet-light);
}

.detail-mode-panel {
  display: none;
  margin-top: 18px;
}

.detail-mode-panel.active {
  display: block;
}

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

.analysis-ready {
  display: grid;
  margin-bottom: 12px;
}

.analysis-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 74px;
  padding: 16px 78px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.analysis-card:hover {
  border-color: rgba(136, 111, 255, 0.46);
  background: rgba(136, 111, 255, 0.08);
  transform: translateY(-2px);
}

.analysis-card strong {
  font-size: 16px;
  line-height: 1.25;
}

.analysis-card span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
}

.analysis-card em {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.12);
}

.analysis-card.ready {
  border-color: rgba(136, 111, 255, 0.42);
  background: rgba(102, 87, 255, 0.12);
}

.analysis-more-panel,
.analysis-result-panel {
  animation: analysisPanelIn 220ms ease both;
}

.analysis-more-panel[hidden],
.analysis-result-panel[hidden],
.analysis-home[hidden] {
  display: none;
}

.analysis-more-panel > button,
.analysis-result-head button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.analysis-more-panel > button {
  margin-bottom: 18px;
}

.analysis-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.analysis-more-panel h3,
.analysis-result-panel h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}

.analysis-more-panel h3 {
  margin-bottom: 16px;
}

.analysis-more-panel [data-analysis-more-list] {
  display: grid;
  gap: 10px;
}

.analysis-more-panel [data-analysis-more-list] button {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.analysis-more-panel [data-analysis-more-list] button:hover {
  border-color: rgba(136, 111, 255, 0.46);
  background: rgba(136, 111, 255, 0.09);
  transform: translateY(-2px);
}

.analysis-more-panel [data-analysis-more-list] span,
.analysis-result-panel p {
  color: rgba(255, 255, 255, 0.58);
}

.analysis-result-panel > p {
  margin: 0 0 14px;
}

.analysis-result-panel [data-analysis-result-content] {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.04);
}

.analysis-result-panel.analysis-result-mode [data-analysis-result-content] {
  min-height: 260px;
}

.analysis-result-panel.analysis-ready-mode [data-analysis-result-content] {
  padding: 0;
  border: 0;
  background: transparent;
}

.analysis-markdown {
  display: grid;
  gap: 12px;
}

.analysis-markdown h4,
.analysis-markdown h5,
.analysis-markdown h6,
.analysis-markdown p,
.analysis-markdown ul,
.analysis-markdown ol {
  margin: 0;
}

.analysis-markdown h4 {
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
}

.analysis-markdown h5 {
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}

.analysis-markdown h6 {
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  line-height: 1.35;
}

.analysis-markdown p,
.analysis-markdown li {
  color: rgba(255, 255, 255, 0.86);
}

.analysis-markdown strong {
  color: #fff;
  font-weight: 900;
}

.analysis-markdown ul,
.analysis-markdown ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

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

.analysis-ready-list button {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 0.5fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  color: #fff;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.analysis-ready-list button:hover {
  border-color: rgba(136, 111, 255, 0.46);
  background: rgba(136, 111, 255, 0.08);
  transform: translateY(-1px);
}

.analysis-ready-list span {
  color: rgba(255, 255, 255, 0.58);
}

.analysis-ready-list em {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  font-style: normal;
  font-weight: 900;
  background: rgba(136, 111, 255, 0.22);
}

.analysis-ready-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.analysis-ready-pages button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.analysis-ready-pages button:disabled {
  opacity: 0.35;
  cursor: default;
}

.analysis-ready-pages span {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 900;
}

.analysis-result-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.analysis-result-downloads a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: rgba(136, 111, 255, 0.2);
}

.analysis-result-downloads a.disabled {
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
}

@keyframes analysisPanelIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.translation-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.translation-field input,
.detail-search input {
  width: 100%;
  border: 0;
  color: #fff;
  font: inherit;
  outline: 0;
  background: transparent;
}

.translation-field input {
  min-height: 42px;
  padding: 0 110px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.translation-field .translation-submit {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 10px;
}

.translation-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.translation-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.7fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.translation-list article.active {
  border: 1px solid rgba(136, 111, 255, 0.44);
  background: rgba(136, 111, 255, 0.1);
}

.translation-list button {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(136, 111, 255, 0.22);
}

.detail-transcript-header {
  position: sticky;
  top: 0;
  z-index: 15;
  justify-content: space-between;
  margin: -28px -30px 0;
  padding: 24px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 12, 0.94);
  backdrop-filter: blur(18px);
}

.detail-transcript-header h2 {
  margin: 0;
  color: #fff;
}

.detail-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(340px, 42vw);
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
}

.detail-download-wrap {
  position: relative;
}

.detail-download-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 25;
  display: grid;
  gap: 12px;
  width: 240px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(18, 19, 22, 0.98);
  box-shadow: var(--shadow);
}

.detail-download-menu label,
.download-formats {
  display: grid;
  gap: 8px;
}

.detail-download-menu label {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.download-formats a {
  color: #fff;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.download-formats a.disabled {
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.download-formats a.export-error {
  color: #ffb4b4;
  transform: translateX(2px);
}

.detail-summary {
  margin: 30px 0 22px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.55;
}

.detail-summary p {
  margin: 0;
}

.detail-transcript-list {
  display: grid;
  gap: 22px;
}

.detail-segment {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  opacity: 1;
  transition: grid-template-columns 220ms ease, gap 220ms ease, opacity 180ms ease;
}

.detail-segment.muted-search {
  opacity: 0.85;
}

.detail-timecode {
  justify-self: start;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: opacity 180ms ease, max-width 220ms ease, padding 220ms ease, transform 220ms ease;
}

.detail-segment-text {
  position: relative;
  padding: 22px 54px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  transition: padding 220ms ease, border-color 180ms ease, background 180ms ease;
}

.detail-segment-text strong {
  display: block;
  color: var(--violet-light);
  opacity: 1;
  max-height: 28px;
  transform: translateY(0);
  transition: opacity 180ms ease, max-height 220ms ease, margin 220ms ease, transform 220ms ease;
}

.detail-segment-text p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.55;
  white-space: pre-line;
}

.detail-segment-text mark {
  padding: 1px 3px;
  border-radius: 5px;
  color: #fff;
  background: rgba(255, 210, 77, 0.62);
}

.detail-segment-text button {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  color: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  font: inherit;
  background: transparent;
}

.detail-transcript-list.hide-timestamps .detail-segment {
  grid-template-columns: 0 minmax(0, 1fr);
  gap: 0;
}

.detail-transcript-list.hide-timestamps .detail-timecode {
  max-width: 0;
  padding-right: 0;
  padding-left: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-10px) scale(0.96);
}

.detail-transcript-list.hide-speakers .detail-segment-text strong {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
}

.detail-transcript-list.hide-speakers .detail-segment-text p {
  margin-top: 0;
}

.detail-segment-text.editing {
  padding-right: 24px;
  border-color: rgba(136, 111, 255, 0.38);
  background: rgba(136, 111, 255, 0.08);
}

.detail-segment-text textarea {
  width: 100%;
  min-height: 140px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font: inherit;
  font-size: 17px;
  line-height: 1.5;
  resize: vertical;
  outline: 0;
  background: rgba(0, 0, 0, 0.22);
}

.segment-edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.segment-edit-actions button {
  position: static;
  padding: 9px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: rgba(136, 111, 255, 0.22);
}

.empty-app-panel {
  max-width: 980px;
  margin: 60px auto;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.empty-app-panel h1 {
  text-align: left;
}

.empty-app-panel p {
  color: var(--muted);
  font-size: 20px;
}

.account-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0;
}

.settings-screen {
  max-width: 1440px;
  margin: 0 auto;
}

.settings-screen h1 {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.settings-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 58px;
  padding-top: 42px;
}

.settings-tabs {
  display: grid;
  align-content: start;
  gap: 12px;
}

.settings-tabs h2,
.settings-content h2 {
  margin: 28px 0 8px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 18px;
  text-transform: uppercase;
}

.settings-tabs h2:first-child {
  margin-top: 0;
}

.settings-tabs button {
  min-height: 64px;
  padding: 0 22px;
  border: 2px solid transparent;
  color: rgba(255, 255, 255, 0.44);
}

.settings-tabs button.active {
  border-color: var(--violet-light);
  color: #fff;
}

.settings-tabs button:hover {
  border-color: rgba(136, 111, 255, 0.58);
  color: #fff;
  background: rgba(136, 111, 255, 0.1);
}

.settings-content {
  display: grid;
  gap: 28px;
}

.settings-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.settings-row,
.settings-card.single-row {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row span,
.settings-row small {
  color: rgba(255, 255, 255, 0.48);
}

.settings-row strong,
.settings-card.single-row strong {
  color: #fff;
  font-size: 24px;
}

.settings-card.single-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 0;
}

.settings-language-switch {
  justify-self: end;
}

.settings-telegram p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 20px;
}

.settings-telegram .primary-btn {
  width: fit-content;
  min-width: 292px;
  margin-top: 14px;
}

.logout-inline {
  width: fit-content;
  margin-top: 20px;
}

.mobile-menu-toggle,
.app-menu-backdrop {
  display: none;
}

.workspace-topline {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 52px;
  padding: 10px 18px 10px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(102, 87, 255, 0.96), rgba(136, 112, 255, 0.96));
}

.workspace-topline p {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.workspace-topline div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.topline-primary,
.topline-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.topline-primary {
  background: rgba(255, 255, 255, 0.16);
}

.topline-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
}

.app-logged-in .workspace-topline {
  display: none;
}

.app-body {
  background:
    radial-gradient(circle at 72% 20%, rgba(102, 87, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.035), transparent 24rem),
    #050608;
}

.app-layout {
  grid-template-columns: 258px minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.015);
}

.app-sidebar {
  padding: 18px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0 18px 18px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(6, 7, 9, 0.93);
}

.workspace-head {
  padding: 0 6px 28px;
}

.workspace-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, #3e1c78, var(--violet));
  box-shadow: 0 0 28px rgba(102, 87, 255, 0.22);
}

.workspace-avatar.small {
  width: 40px;
  height: 40px;
}

.workspace-head strong,
.sidebar-user strong {
  font-size: 15px;
}

.workspace-head span,
.sidebar-user span {
  font-size: 13px;
}

.app-nav {
  gap: 4px;
}

.app-nav button,
.settings-tabs button {
  min-height: 39px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 750;
}

.app-nav button.active {
  background: rgba(255, 255, 255, 0.055);
}

.telegram-link {
  min-height: 40px;
  margin-bottom: 14px;
  padding: 0 8px;
  font-size: 15px;
}

.sidebar-plan {
  margin-bottom: 14px;
  padding: 16px 13px;
  border-radius: 16px;
  text-align: center;
  background: rgba(102, 87, 255, 0.14);
}

.sidebar-plan div {
  display: grid;
  justify-items: center;
}

.sidebar-plan p {
  justify-content: center;
  font-size: 13px;
}

.sidebar-user {
  width: 100%;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: transparent;
}

.sidebar-user:hover,
.sidebar-user.active {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.app-main {
  background:
    radial-gradient(circle at 50% 42%, rgba(102, 87, 255, 0.06), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
}

.app-view {
  padding: 48px 42px;
}

.create-panel {
  max-width: 690px;
  margin-top: 62px;
}

.create-panel h1,
.settings-screen h1,
.empty-app-panel h1 {
  font-size: clamp(28px, 3.1vw, 36px);
}

.available-pill {
  margin: 14px 0 34px;
  padding: 7px 16px;
  color: #b8a8ff;
  background: rgba(102, 87, 255, 0.14);
}

.source-grid {
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  gap: 10px;
}

.source-card {
  min-height: 112px;
  padding: 13px 12px;
  border-color: rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.source-card.active {
  border-color: var(--violet-light);
  box-shadow: 0 0 0 1px rgba(147, 126, 255, 0.25), 0 18px 48px rgba(102, 87, 255, 0.12);
}

.source-card span {
  width: 38px;
  height: 38px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.source-card strong {
  font-size: 13px;
  line-height: 1.25;
}

.workspace-demo-card {
  width: 100%;
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

.workspace-demo-card .demo-input-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.workspace-demo-card .demo-field:not(.app-upload-zone) {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.workspace-demo-card .demo-field input {
  min-height: 50px;
}

.workspace-demo-card .app-upload-zone {
  min-height: 136px;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.16);
}

.workspace-demo-card .app-upload-zone span {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  font-size: 26px;
}

.demo-actions {
  justify-content: center;
}

.workspace-demo-card .demo-note {
  text-align: center;
}

.settings-pane {
  display: none;
}

.settings-pane.active {
  display: block;
}

.settings-content {
  align-content: start;
}

.settings-password-form {
  display: grid;
  gap: 14px;
  overflow: visible;
  border-radius: 12px;
  padding: 16px;
}

.settings-password-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.settings-password-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  background: rgba(0, 0, 0, 0.18);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.settings-password-form input:focus {
  border-color: rgba(130, 119, 255, 0.76);
  background: rgba(10, 10, 14, 0.72);
  box-shadow: 0 0 0 4px rgba(102, 87, 255, 0.15);
}

.settings-password-form .primary-btn {
  width: fit-content;
  margin-top: 4px;
}

.settings-reset-password-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  overflow: visible;
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
}

.settings-reset-password-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.settings-reset-password-card .form-message {
  grid-column: 1 / -1;
  margin: 0;
}

.settings-plan-link {
  width: fit-content;
  margin-top: 18px;
}

.cancel-subscription-button {
  width: fit-content;
  margin-top: 10px;
  border-color: rgba(255, 111, 145, 0.32);
  color: #ffb6c8;
}

.app-layout {
  grid-template-columns: 244px minmax(0, 1fr);
}

.app-sidebar {
  padding: 14px 10px 12px;
}

.app-nav button,
.settings-tabs button {
  min-height: 36px;
  font-size: 14px;
}

.workspace-topline {
  min-height: 44px;
  padding: 8px 14px 8px 28px;
}

.workspace-topline p,
.topline-primary,
.topline-secondary {
  font-size: 13px;
}

.app-view {
  padding: 34px 36px;
}

.create-panel,
.workspace-tariffs-panel {
  width: min(760px, 100%);
  margin: 38px auto 0;
}

.transcriptions-panel {
  width: 100%;
  margin: 0;
}

.create-panel h1,
.settings-screen h1,
.empty-app-panel h1,
.app-section-header h1 {
  font-size: clamp(24px, 2.6vw, 32px);
}

.available-pill {
  margin: 10px 0 26px;
  padding: 5px 13px;
  font-size: 13px;
}

.source-grid {
  grid-template-columns: repeat(3, minmax(132px, 1fr));
}

.source-card {
  min-height: 96px;
  padding: 12px 10px;
}

.source-card span {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.workspace-demo-card .app-upload-zone {
  min-height: 124px;
}

.demo-field span,
.demo-note,
.workspace-demo-card .app-upload-zone small,
.workspace-demo-card .demo-field small {
  font-size: 13px;
}

.demo-field input {
  font-size: 15px;
}

.compact-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
}

.app-section-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.app-section-header.centered {
  justify-content: center;
  text-align: center;
}

.app-section-header h1 {
  margin: 0 0 8px;
  color: #fff;
}

.app-section-header p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
}

.transcriptions-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 330px;
  padding: 54px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--violet-light);
  font-size: 22px;
  background: rgba(102, 87, 255, 0.14);
}

.transcriptions-empty h2 {
  margin: 0;
  color: #fff;
  font-size: 21px;
}

.transcriptions-empty p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
}

.workspace-tariffs-panel {
  width: min(1080px, 100%);
}

.support-telegram-link {
  width: max-content;
  margin-top: 18px;
}

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

.workspace-tariff-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.workspace-tariff-card.featured {
  border-color: var(--violet-light);
  background: rgba(102, 87, 255, 0.08);
}

.workspace-tariff-card span {
  color: var(--violet-light);
  font-size: 13px;
  font-weight: 900;
}

.workspace-tariff-card h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.workspace-tariff-card .plan-price {
  font-size: 18px;
}

.workspace-tariff-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.workspace-tariff-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  list-style: none;
}

.workspace-tariff-card li::before {
  content: "+ ";
  color: var(--violet-light);
  font-weight: 900;
}

.workspace-tariff-card .primary-btn {
  align-self: end;
  margin-top: auto;
}

.minutes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 820px;
  margin: 0 auto;
}

.minute-card {
  min-height: 180px;
}

.custom-minutes-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 200px) minmax(150px, 200px) auto;
  gap: 18px;
  align-items: end;
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(102, 87, 255, 0.12), rgba(87, 216, 255, 0.05)),
    rgba(255, 255, 255, 0.03);
}

.custom-minutes-card h2,
.custom-minutes-card p {
  margin: 0;
}

.custom-minutes-card h2 {
  color: #fff;
  font-size: 20px;
}

.custom-minutes-card p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.custom-minutes-card label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.custom-minutes-card input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  font: inherit;
  background: rgba(255, 255, 255, 0.055);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.custom-minutes-card input:focus {
  border-color: var(--violet-light);
  box-shadow: 0 0 0 4px rgba(102, 87, 255, 0.16);
}

.payment-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 92px);
  padding: 48px 16px 72px;
}

.payment-card {
  display: grid;
  gap: 16px;
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(102, 87, 255, 0.2), transparent 44%),
    var(--panel);
  box-shadow: var(--shadow);
}

.payment-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
}

.payment-card p {
  margin: 0;
  color: var(--muted);
}

.payment-details,
.payment-account {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-details:empty {
  display: none;
}

.payment-details span,
.payment-account div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.payment-details strong,
.payment-account strong {
  color: #fff;
}

.payment-link {
  justify-self: center;
  margin-top: 4px;
}

.payment-success-card {
  width: min(640px, 100%);
}

.payment-transition {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.payment-transition-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  text-align: left;
}

.payment-transition-row > span {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.payment-balance-flow,
.payment-plan-flow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.payment-old-value,
.payment-old-plan {
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
  transition: opacity 450ms ease, filter 450ms ease, transform 450ms ease;
}

.payment-new-value {
  color: #76efc9;
  font-size: 26px;
  text-shadow: 0 0 24px rgba(118, 239, 201, 0.28);
}

.payment-new-plan {
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(102, 87, 255, 0.2);
  opacity: 0.72;
  transform: translateY(4px);
  transition: opacity 550ms ease, transform 550ms ease, background 550ms ease;
}

.payment-transition.complete .payment-old-value,
.payment-transition.complete .payment-old-plan {
  opacity: 0.28;
  filter: blur(1px);
  transform: translateY(-4px);
}

.payment-transition.complete .payment-new-plan {
  opacity: 1;
  transform: translateY(0);
  background: rgba(102, 87, 255, 0.32);
}

.payment-meter {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.payment-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #76efc9, var(--cyan), var(--violet-light));
  transition: width 120ms linear;
}

.scheduled-subscription-card {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(150, 136, 255, 0.32);
  border-radius: 14px;
  color: #fff;
  background: rgba(102, 87, 255, 0.1);
}

.subscription-change-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.subscription-change-modal.open {
  pointer-events: auto;
  opacity: 1;
}

.subscription-change-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(12px);
}

.subscription-change-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(680px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(150, 136, 255, 0.32);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(102, 87, 255, 0.24), transparent 48%),
    #101015;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  transform: translateY(18px) scale(0.97);
  transition: transform 240ms ease;
}

.subscription-change-modal.open .subscription-change-dialog {
  transform: translateY(0) scale(1);
}

.subscription-change-dialog h2,
.subscription-change-dialog p {
  margin: 0;
}

.subscription-change-dialog h2 {
  max-width: 560px;
  color: #fff;
  font-size: clamp(24px, 4vw, 34px);
}

.subscription-change-dialog p {
  color: rgba(255, 255, 255, 0.7);
}

.subscription-change-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
}

.subscription-change-summary strong {
  color: #76efc9;
  font-size: 18px;
}

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

.subscription-change-option {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.68);
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.subscription-change-option:hover,
.subscription-change-option.active {
  border-color: var(--violet-light);
  background: rgba(102, 87, 255, 0.12);
  transform: translateY(-1px);
}

.subscription-change-option strong {
  color: #fff;
  font-size: 17px;
}

.subscription-change-option span {
  font-size: 13px;
  line-height: 1.5;
}

.subscription-notice-dialog {
  width: min(480px, 100%);
  text-align: center;
}

.subscription-notice-dialog .primary-btn {
  justify-self: center;
}

.subscription-cancel-dialog {
  width: min(560px, 100%);
}

.subscription-cancel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.danger-btn {
  background: linear-gradient(135deg, #ff6f91, #8f6cff);
  box-shadow: 0 18px 38px rgba(255, 111, 145, 0.18);
}

.promo-open-btn {
  justify-self: center;
  width: fit-content;
  margin: 4px auto 0;
}

.promo-floating-btn {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 55;
  min-height: 46px;
  padding: 0 18px;
  border-color: rgba(150, 136, 255, 0.42);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(102, 87, 255, 0.96), rgba(87, 216, 255, 0.78)),
    var(--panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: promoFloatIn 420ms ease both;
}

.promo-floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.modal-lock {
  overflow: hidden;
}

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.promo-modal.open {
  pointer-events: auto;
  opacity: 1;
}

.promo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.promo-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(430px, 100%);
  padding: 26px;
  border: 1px solid rgba(150, 136, 255, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(102, 87, 255, 0.22), transparent 48%),
    #101015;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  transform: translateY(18px) scale(0.97);
  transition: transform 240ms ease;
}

.promo-modal.open .promo-dialog {
  transform: translateY(0) scale(1);
}

.promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.promo-success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 999px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 0 0 rgba(102, 87, 255, 0.42);
  transform: scale(0.86);
  opacity: 0.55;
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 360ms ease;
}

.promo-modal.success .promo-success-mark {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0 12px rgba(102, 87, 255, 0);
  animation: promoPulse 620ms ease;
}

.promo-dialog h2,
.promo-dialog p {
  margin: 0;
  text-align: center;
}

.promo-dialog h2 {
  color: #fff;
  font-size: 26px;
}

.promo-dialog p {
  color: rgba(255, 255, 255, 0.64);
}

.promo-dialog label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.promo-dialog input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  font: inherit;
  text-align: center;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.promo-dialog input:focus {
  border-color: var(--violet-light);
  box-shadow: 0 0 0 4px rgba(102, 87, 255, 0.16);
}

@keyframes promoPulse {
  0% {
    transform: scale(0.82);
    box-shadow: 0 0 0 0 rgba(102, 87, 255, 0.42);
  }

  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 16px rgba(102, 87, 255, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(102, 87, 255, 0);
  }
}

@keyframes promoFloatIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

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

.workspace-compare-card {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.workspace-compare-card h2 {
  margin: 0;
  padding: 18px;
  color: #fff;
  font-size: 20px;
}

.workspace-compare-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) repeat(4, minmax(76px, 0.7fr));
  gap: 10px;
  align-items: center;
  padding: 13px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.workspace-compare-row.header {
  color: #fff;
}

.workspace-compare-row strong {
  color: #fff;
}

.account-page .legal-hero {
  padding-top: 48px;
  padding-bottom: 28px;
}

.account-page .legal-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
}

.account-page .account-shell {
  padding-top: 26px;
}

.account-page .account-grid {
  gap: 12px;
}

.account-page .account-stat,
.account-page .sync-card {
  padding: 18px;
  border-radius: 14px;
}

.account-page .account-stat strong {
  font-size: 22px;
}

.account-page .sync-card h2 {
  font-size: 22px;
}

.site-footer {
  display: grid;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.rich-footer {
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  gap: 36px;
}

.footer-brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
}

.footer-brand a:not(.brand) {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

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

.footer-columns div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-columns h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 15px;
}

.footer-columns a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-columns a:hover {
  color: var(--text);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-content.reveal,
.guide-content.reveal {
  opacity: 1;
  transform: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(3deg);
  }
}

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

@media (max-width: 860px) {
  .app-body {
    overflow: auto;
  }

  .app-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .app-nav {
    display: flex;
    overflow-x: auto;
  }

  .app-nav button {
    flex: 0 0 auto;
    font-size: 16px;
  }

  .sidebar-spacer,
  .telegram-link {
    display: none;
  }

  .sidebar-plan {
    margin: 12px 0;
  }

  .app-main {
    max-height: none;
  }

  .app-view {
    min-height: auto;
    padding: 32px 18px;
  }

  .create-panel {
    margin-top: 20px;
  }

  .source-grid,
  .account-grid.compact {
    grid-template-columns: 1fr;
  }

  .settings-tabs {
    display: flex;
    overflow-x: auto;
  }

  .settings-tabs h2 {
    display: none;
  }

  .settings-tabs button {
    flex: 0 0 auto;
    min-height: 48px;
    font-size: 16px;
  }

  .workspace-tariff-grid {
    grid-template-columns: 1fr;
  }

  .custom-minutes-card {
    align-items: stretch;
  }

  .payment-transition-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .payment-balance-flow,
  .payment-plan-flow {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .language-switch {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .hero-mark {
    min-height: 360px;
  }

  .transcript-preview,
  .feature-section,
  .feature-section.reverse,
  .steps-grid,
  .demo-input-grid,
  .subscription-change-options,
  .about-grid,
  .auth-grid,
  .packages-grid,
  .minutes-grid,
  .custom-minutes-card,
  .account-grid,
  .sync-card,
  .rich-footer,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .code-card {
    grid-template-columns: 1fr;
  }

  .code-card h2,
  .code-card p,
  .code-card label,
  .code-card button,
  .code-card .form-message {
    grid-column: auto;
  }

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

  .report-card,
  .report-card.featured {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card,
  .gallery-card.wide {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .site-header,
  .section,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 8px;
    border-color: rgba(255, 255, 255, 0.09);
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    background: rgba(255, 255, 255, 0.04);
  }

  .language-switch {
    align-self: center;
  }

  .lang-btn {
    min-width: 36px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .brand span {
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-copy h1,
  .legal-hero h1 {
    font-size: 40px;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-actions,
  .legal-links,
  .site-footer {
    flex-direction: column;
  }

  .how-section,
  .transcript-section,
  .demo-section,
  .feature-section,
  .reports-section,
  .faq-section,
  .gallery-section,
  .about,
  .auth-grid,
  .packages-grid,
  .account-shell,
  .legal-content {
    padding: 54px 0;
  }

  .transcript-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .summary-panel p {
    font-size: 18px;
  }

  .placeholder-panel {
    min-height: 280px;
  }

  .record-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-card {
    padding: 18px;
  }

  .auth-card,
  .package-card,
  .sync-card,
  .account-stat {
    padding: 18px;
  }

  .demo-actions,
  .demo-downloads,
  .account-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-actions .primary-btn,
  .demo-download-link,
  .account-actions .secondary-btn,
  .sync-card .primary-btn,
  .package-card .primary-btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }

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

  .gallery-grid {
    display: none;
  }

  .gallery-mobile-trigger {
    position: relative;
    display: block;
    width: 100%;
    min-height: 236px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    background: var(--panel);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
  }

  .gallery-mobile-trigger::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.62)),
      linear-gradient(90deg, rgba(18, 19, 22, 0.24), rgba(102, 87, 255, 0.18));
  }

  .gallery-mobile-trigger img {
    display: block;
    width: 100%;
    height: 236px;
    object-fit: cover;
  }

  .gallery-mobile-trigger span {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--violet), var(--violet-light));
    box-shadow: 0 14px 34px rgba(102, 87, 255, 0.36);
  }

  .gallery-card,
  .gallery-card.wide {
    aspect-ratio: 1 / 1;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-card {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 96px);
  }

  .lightbox-image {
    max-height: calc(100vh - 150px);
  }

  .lightbox-arrow {
    top: auto;
    bottom: 18px;
    width: 48px;
    height: 52px;
    transform: none;
  }

  .lightbox-arrow:hover {
    transform: translateY(-2px);
  }

  .lightbox-arrow.prev {
    left: 18px;
  }

  .lightbox-arrow.next {
    right: 18px;
  }

  .bot-toast {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }
}

@media (max-width: 860px) {
  .app-layout {
    display: block;
    min-height: 100vh;
  }

  .app-layout.task-sidebar-open {
    display: block;
  }

  .mobile-menu-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 40;
    display: grid;
    gap: 5px;
    place-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    cursor: pointer;
    background: rgba(8, 9, 12, 0.86);
    backdrop-filter: blur(18px);
  }

  .mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
  }

  .app-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 29;
    display: block;
    pointer-events: none;
    opacity: 0;
    background: rgba(0, 0, 0, 0.58);
    transition: opacity 180ms ease;
  }

  .app-menu-open .app-menu-backdrop {
    pointer-events: auto;
    opacity: 1;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 35;
    width: min(288px, calc(100vw - 54px));
    min-height: 100vh;
    padding: 74px 12px 16px;
    border-radius: 0 20px 20px 0;
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .task-sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 38;
    width: min(400px, calc(100vw - 20px));
    min-height: 100vh;
    border-radius: 20px 0 0 20px;
  }

  .app-layout.task-sidebar-compact .task-sidebar {
    width: 92px;
  }

  .task-rail-button {
    right: 12px;
    bottom: 12px;
  }

  .task-toast {
    right: 12px;
    bottom: 72px;
    width: calc(100vw - 24px);
  }

  .app-menu-open .app-sidebar {
    transform: translateX(0);
  }

  .app-nav {
    display: grid;
    overflow: visible;
  }

  .app-nav button {
    width: 100%;
    font-size: 15px;
  }

  .sidebar-spacer,
  .telegram-link {
    display: block;
  }

  .workspace-topline {
    grid-template-columns: 1fr;
    padding: 12px 14px 12px 72px;
  }

  .workspace-topline p {
    text-align: left;
  }

  .workspace-topline div {
    display: none;
  }

  .app-view {
    padding: 34px 16px 42px;
  }

  .create-panel {
    max-width: none;
    margin-top: 30px;
  }

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

  .source-card {
    min-height: 104px;
  }

  .workspace-demo-card .demo-input-grid,
  .account-grid.compact {
    grid-template-columns: 1fr;
  }

  .settings-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .settings-tabs {
    display: grid;
    overflow: visible;
  }

  .settings-tabs h2 {
    display: block;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .site-menu-toggle {
    position: relative;
    z-index: 82;
    order: 3;
    display: grid;
  }

  .site-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    transition: opacity 180ms ease;
  }

  .site-menu-open .site-menu-backdrop {
    pointer-events: auto;
    opacity: 1;
  }

  .site-header .nav-links {
    position: fixed;
    top: 78px;
    right: 12px;
    left: 12px;
    z-index: 80;
    display: grid;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    width: auto;
    max-height: min(72vh, 520px);
    padding: 12px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(18, 19, 22, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-menu-open .site-header .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header .nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 42px;
    padding: 10px 12px;
    border-color: rgba(255, 255, 255, 0.09);
    font-size: 14px;
    line-height: 1.2;
    white-space: normal;
    background: rgba(255, 255, 255, 0.04);
  }

  .site-header .language-switch {
    position: relative;
    z-index: 82;
    order: 2;
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 980px) {
  .transcription-detail {
    grid-template-columns: 1fr;
    margin: -34px -16px;
  }

  .detail-info-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .detail-transcript-header {
    position: static;
    flex-wrap: wrap;
  }

  .detail-search {
    width: 100%;
  }

  .detail-segment {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .analysis-grid,
  .translation-list article {
    grid-template-columns: 1fr;
  }
}

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