@font-face {
  font-family: "NRT-BD";
  src: url("/kurdub/static/fonts/NRT-Bd.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NRT";
  src: url("/kurdub/static/fonts/NRT-Reg.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: #121212;
  --ink: #f5f5f0;
  --muted: #8d8d84;
  --line: rgba(215, 255, 0, 0.18);
  --accent: #d7ff00;
  --gold: #d7ff00;
  --copper: #d7ff00;
  --good: #d7ff00;
  --bad: #ff4d3a;
  --shadow: none;
  --font: "NRT-BD", "NRT", sans-serif;
  --font-reg: "NRT", "NRT-BD", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #d7ff00 #0a0a0a;
}

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

html::-webkit-scrollbar-track {
  background: #0a0a0a;
}

html::-webkit-scrollbar-thumb {
  background: #d7ff00;
  border: 2px solid #0a0a0a;
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
  background: #e7ff4d;
}

html::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

html::-webkit-scrollbar-corner {
  background: #0a0a0a;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 3px;
  background: var(--accent);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(215, 255, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 255, 0, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.top,
main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 32px 0 10px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ghost-btn {
  height: 40px;
  padding: 0 14px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.ghost-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font);
  font-weight: 400;
  font-size: 22px;
}

.brand strong {
  display: block;
  font-family: var(--font);
  font-size: 22px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.brand p,
.meta,
.lede,
.drop-hint,
.field span,
.progress-card p,
article header p {
  color: var(--muted);
}

.brand p,
.meta {
  margin: 0;
  font-size: 13px;
}

.hero {
  padding: 40px 0 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font);
  font-size: clamp(36px, 7vw, 68px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.lede {
  max-width: 62ch;
  font-family: var(--font-reg);
  font-size: 17px;
  line-height: 1.55;
}

.panel,
.progress-card,
.player-wrap,
.columns article {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
  border-radius: 16px;
}

.dropzone {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 52px 20px;
  border: 1.5px dashed rgba(215, 255, 0, 0.45);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(215, 255, 0, 0.05), transparent 42%),
    repeating-linear-gradient(
      90deg,
      rgba(215, 255, 0, 0.04) 0 10px,
      transparent 10px 24px
    );
}

.dropzone.drag {
  border-color: var(--accent);
  background-color: rgba(215, 255, 0, 0.08);
}

.dropzone input {
  display: none;
}

.drop-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  border: 0;
}

.drop-icon img,
.drop-icon svg {
  display: block;
  width: 72px;
  height: 72px;
}

.drop-preview {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
}

.drop-thumb-wrap {
  position: absolute;
  inset: 0;
  width: 148px;
  height: 148px;
}

.drop-thumb {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 22px;
  background: #0a0a0a;
  display: block;
}

.drop-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 4px 7px 3px;
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.82);
  color: #fff;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.drop-title {
  font-weight: 700;
  font-size: 18px;
}

.controls {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
  flex-wrap: wrap;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 4px 2px;
  color: var(--ink);
  cursor: pointer;
  flex: 1 1 220px;
  min-width: 0;
  position: relative;
  z-index: 0;
}

.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.check em {
  color: var(--muted);
  font-style: normal;
}

.field {
  display: grid;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

.field span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.model-field {
  min-width: 0;
}

.field-ghost {
  visibility: hidden;
}

.model-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  min-height: 58px;
  padding: 0 16px 0 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.model-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.model-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
}

.model-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.model-pick strong {
  font-size: 18px;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.model-pick em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  line-height: 1.25;
}

.model-hint-long {
  display: none;
}

.model-pick.selected {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: var(--accent);
  box-shadow: none;
}

.model-pick.selected .model-copy,
.model-pick.selected strong,
.model-pick.selected em {
  color: var(--accent);
  opacity: 1;
}

.model-pick.selected .model-icon {
  filter: invert(1);
}

.control-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  flex: 1 1 100%;
}

.combo {
  position: relative;
  min-width: 0;
  z-index: auto;
}

.combo.open {
  z-index: 30;
}

.combo-trigger {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 48px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.combo-trigger::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top-color: currentColor;
  transform: translateY(-35%);
  pointer-events: none;
}

.combo.open .combo-trigger::after {
  transform: translateY(-80%) rotate(180deg);
}

.combo-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  width: max(100%, min(420px, 92vw));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(360px, 55vh);
  padding: 10px 8px 10px 10px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #111;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.combo-search {
  width: 100%;
  height: 40px;
  margin: 0 0 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font: inherit;
  outline: none;
}

.combo-list {
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 4px;
  max-height: 280px;
  padding: 0 6px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #1c1c1c;
}

.combo-list::-webkit-scrollbar {
  width: 8px;
}

.combo-list::-webkit-scrollbar-track {
  background: #1c1c1c;
  border-radius: 999px;
}

.combo-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
  border: 2px solid #1c1c1c;
}

.combo-list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.combo-option {
  display: block;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #f5f5f0;
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
  cursor: pointer;
}

button.combo-option:hover,
button.combo-trigger:hover {
  filter: none;
}

.combo-option:hover {
  background: rgba(215, 255, 0, 0.16);
  color: var(--accent);
}

.combo-option.selected,
.combo-option.selected:hover {
  background: var(--accent);
  color: #0a0a0a;
}

select,
button,
.copy-tools a {
  font: inherit;
  color: var(--ink);
}

select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

select:focus,
#font-search:focus,
.tweak select:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

button {
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  cursor: pointer;
}

button.combo-option {
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
}

button:hover:not(:disabled) {
  filter: brightness(1.06);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.workspace {
  margin: 28px 0 80px;
  display: grid;
  gap: 18px;
}

.hidden {
  display: none !important;
}

.progress-card {
  padding: 22px 22px 18px;
  border-radius: 24px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.progress-head .eyebrow {
  margin: 0;
  color: var(--accent);
}

.progress-head strong {
  color: var(--accent);
  font-family: var(--font);
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.progress-card h2 {
  margin: 8px 0 16px;
  max-width: none;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.05;
  text-transform: uppercase;
}

.progress-bar {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #0a0a0a;
  border: 1px solid rgba(215, 255, 0, 0.22);
}

.progress-bar span,
.bar span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(215, 255, 0, 0.55);
  transition: width 0.4s ease-out;
}

.progress-bar.is-live::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: xfer-slide 1.4s ease-in-out infinite;
}

.progress-bar.is-error span {
  background: linear-gradient(90deg, #8a3a2a, #e07a5f);
  box-shadow: none;
}

.progress-card.is-error .eyebrow,
.progress-card.is-error .progress-head strong,
.progress-card.is-error #progress-step-count {
  color: var(--bad);
}

.progress-card.is-queued .progress-bar,
.progress-card.is-queued .progress-head strong {
  display: none;
}

.progress-card.is-queued h2 {
  color: var(--accent);
  letter-spacing: -0.04em;
}

.progress-cancel {
  margin-top: 18px;
  width: 100%;
  height: 48px;
}

.progress-cancel:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0 0;
  color: #b7b7b0;
  font-family: var(--font-reg);
  font-size: 13px;
}

.progress-meta #progress-step-count {
  color: var(--accent);
  font-family: var(--font);
  white-space: nowrap;
}

.steps {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
  flex-wrap: wrap;
}

.steps li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
}

.steps li.active {
  background: rgba(215, 255, 0, 0.12);
  color: var(--accent);
  border-color: var(--accent);
}

.steps li.complete {
  background: rgba(215, 255, 0, 0.08);
  color: var(--accent);
}

.steps li.error {
  background: rgba(255, 77, 58, 0.14);
  color: var(--bad);
}

.stage {
  display: grid;
  gap: 12px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: min(78vh, 720px);
  margin-inline: auto;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 16 / 9;
  container-type: size;
}

video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  background: #000;
}

.caption-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  font-family: "NRT-BD", "NRT", "Noto Naskh Arabic", sans-serif;
  font-weight: 700;
  color: var(--cap-color, #ffffff);
  --cap-em: calc(100cqh / 1080);
  --cap-plate-alpha: 0.8;
  --cap-plate-pad: 1;
}

.caption-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  pointer-events: none;
}

.caption-overlay .caption-anchor {
  position: absolute;
  left: var(--cap-x, 50%);
  top: var(--cap-y, 82%);
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 96%;
}

.caption-overlay .caption-text {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: center;
  line-height: 1.2;
  font-size: calc(var(--style-size, 50) * var(--cap-scale, 1) * var(--cap-em));
  font-weight: var(--cap-weight, 700);
  font-style: var(--cap-italic, normal);
  font-synthesis: weight style;
  text-transform: var(--cap-case, none);
  opacity: var(--cap-alpha, 1);
  word-spacing: var(--cap-word, 0em);
  letter-spacing: var(--cap-letter, 0em);
  -webkit-text-stroke: calc(var(--cap-stroke, 0) * var(--cap-em)) var(--cap-stroke-c, #000000);
  paint-order: stroke fill;
  filter: var(--cap-filter, none);
  color: inherit;
}

.caption-overlay .caption-text:empty {
  display: none;
}

.caption-export-host {
  position: fixed;
  left: -100000px;
  top: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background: transparent;
}

.caption-export-host .caption-overlay,
.caption-export-host .caption-text {
  animation: none !important;
}

.caption-overlay.style-swap .caption-text {
  animation: cap-style-swap 0.32s ease;
}

@keyframes cap-style-swap {
  0% { opacity: 0.2; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

.caption-overlay.motion-fade .caption-text.is-in {
  animation: cap-fade-in 0.35s ease both;
}

.caption-overlay.motion-slide .caption-text.is-in,
.caption-overlay.motion-hold .caption-text.is-in {
  animation: cap-slide-in 0.38s ease both;
}

.caption-overlay.motion-drop .caption-text.is-in {
  animation: cap-drop-in 0.38s ease both;
}

.caption-overlay.motion-pop .caption-text.is-in {
  animation: cap-pop-in 0.34s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.caption-overlay.motion-blur .caption-text.is-in {
  animation: cap-blur-in 0.4s ease both;
}

.caption-overlay.motion-zoom .caption-text.is-in {
  animation: cap-zoom-in 0.4s ease both;
}

.caption-overlay.motion-left .caption-text.is-in {
  animation: cap-left-in 0.38s ease both;
}

.caption-overlay.motion-right .caption-text.is-in {
  animation: cap-right-in 0.38s ease both;
}

.caption-overlay.motion-bounce .caption-text.is-in {
  animation: cap-bounce-in 0.46s cubic-bezier(0.2, 1.4, 0.3, 1) both;
}

.caption-overlay.motion-spin .caption-text.is-in {
  animation: cap-spin-in 0.4s ease both;
}

@keyframes cap-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cap-slide-in {
  from { opacity: 0; transform: translateY(calc(12 * var(--cap-em))); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cap-drop-in {
  from { opacity: 0; transform: translateY(calc(-14 * var(--cap-em))); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cap-pop-in {
  from { opacity: 0; transform: scale(0.84); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes cap-blur-in {
  from { opacity: 0; filter: blur(calc(8 * var(--cap-em))); }
  to { opacity: 1; filter: none; }
}

@keyframes cap-zoom-in {
  from { opacity: 0; transform: scale(1.16); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes cap-left-in {
  from { opacity: 0; transform: translateX(calc(-22 * var(--cap-em))); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes cap-right-in {
  from { opacity: 0; transform: translateX(calc(22 * var(--cap-em))); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes cap-bounce-in {
  0% { opacity: 0; transform: translateY(calc(22 * var(--cap-em))); }
  70% { opacity: 1; transform: translateY(calc(-6 * var(--cap-em))); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes cap-spin-in {
  from { opacity: 0; transform: rotate(-8deg) scale(0.92); }
  to { opacity: 1; transform: rotate(0deg) scale(1); }
}

.cap-word {
  display: inline;
  transition: opacity 0.14s ease, transform 0.14s ease, filter 0.14s ease, color 0.12s ease;
}

.caption-overlay.motion-words .cap-word {
  opacity: 0;
  filter: blur(calc(5 * var(--cap-em)));
}

.caption-overlay.motion-words .cap-word.is-on {
  opacity: 1;
  filter: none;
}

.caption-overlay.motion-karaoke .cap-word {
  opacity: 0.34;
}

.caption-overlay.motion-karaoke .cap-word.is-active {
  opacity: 1;
}

.caption-overlay.motion-type .cap-word {
  opacity: 0;
}

.caption-overlay.motion-type .cap-word.is-on {
  opacity: 1;
}

.caption-overlay.motion-pulse .cap-word {
  display: inline-block;
  opacity: 0.38;
}

.caption-overlay.motion-pulse .cap-word.is-active {
  opacity: 1;
  transform: scale(1.08);
  color: var(--accent);
}

.caption-overlay.motion-wave .cap-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(calc(10 * var(--cap-em)));
}

.caption-overlay.motion-wave .cap-word.is-on {
  opacity: 1;
  transform: translateY(0);
}

.caption-overlay.motion-flash .cap-word {
  opacity: 0.42;
}

.caption-overlay.motion-flash .cap-word.is-active {
  opacity: 1;
  color: #fff;
  text-shadow:
    0 0 calc(8 * var(--cap-em)) #fff,
    0 0 calc(16 * var(--cap-em)) var(--accent);
}

video::cue {
  font-family: "NRT-BD", "NRT", "Noto Naskh Arabic", sans-serif;
  font-size: 1.35em;
  color: #fff;
  background: transparent;
  text-shadow: 0 2px 6px #000;
}

.caption-overlay.boxed .caption-text {
  --style-size: 50;
  background: rgba(0, 0, 0, var(--cap-plate-alpha, 0.78));
  padding: calc(10 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(20 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: 0;
}

.caption-overlay.neon .caption-text {
  --style-size: 52;
  text-shadow:
    0 0 calc(6 * var(--cap-outline, 1) * var(--cap-em)) #ff6ad5,
    0 0 calc(14 * var(--cap-outline, 1) * var(--cap-em)) #ff6ad5;
}

.caption-overlay.lower .caption-text {
  --style-size: 42;
  text-align: start;
  background: rgba(10, 10, 10, var(--cap-plate-alpha, 0.9));
  padding: calc(11 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(20 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: 0 calc(12 * var(--cap-em)) calc(12 * var(--cap-em)) 0;
  border-left: calc(3 * var(--cap-em)) solid var(--accent);
}

.caption-overlay.soft .caption-text {
  --style-size: 52;
  text-shadow: 0 calc(3 * var(--cap-em)) calc(12 * var(--cap-outline, 1) * var(--cap-em)) rgba(0, 0, 0, 0.72);
}

.caption-overlay.tape .caption-text {
  --style-size: 46;
  background: rgba(42, 26, 22, var(--cap-plate-alpha, 0.92));
  padding: calc(9 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(20 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-left: calc(4 * var(--cap-em)) solid #c45c48;
  border-radius: calc(2 * var(--cap-em));
}

.caption-overlay.pill .caption-text {
  --style-size: 48;
  background: rgba(0, 0, 0, var(--cap-plate-alpha, 0.82));
  padding: calc(11 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(26 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: 999px;
}

.caption-overlay.glass .caption-text {
  --style-size: 48;
  background: rgba(16, 16, 16, var(--cap-plate-alpha, 0.55));
  backdrop-filter: blur(10px);
  padding: calc(11 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(22 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: calc(14 * var(--cap-em));
  box-shadow: inset 0 0 0 calc(1 * var(--cap-em)) rgba(255, 255, 255, 0.12);
}

.caption-overlay.lime .caption-text {
  --style-size: 48;
  background: rgba(10, 10, 10, var(--cap-plate-alpha, 0.88));
  padding: calc(11 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(22 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: calc(10 * var(--cap-em));
  box-shadow: inset 0 0 0 calc(2 * var(--cap-em)) var(--accent);
}

.caption-overlay.slate .caption-text {
  --style-size: 46;
  background: rgba(28, 36, 48, var(--cap-plate-alpha, 0.92));
  padding: calc(11 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(22 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: calc(8 * var(--cap-em));
}

.caption-overlay.line .caption-text {
  --style-size: 50;
  background: transparent;
  padding: calc(4 * var(--cap-em)) calc(2 * var(--cap-em)) calc(8 * var(--cap-em));
  border-bottom: calc(3 * var(--cap-em)) solid var(--accent);
  text-shadow: 0 calc(3 * var(--cap-em)) calc(12 * var(--cap-em)) rgba(0, 0, 0, 0.7);
}

.caption-overlay.banner .caption-text {
  --style-size: 46;
  background: rgba(0, 0, 0, var(--cap-plate-alpha, 0.88));
  padding: calc(14 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(36 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: 0;
}

.caption-overlay.stamp .caption-text {
  --style-size: 46;
  background: rgba(26, 20, 16, var(--cap-plate-alpha, 0.94));
  padding: calc(11 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(22 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: calc(4 * var(--cap-em));
  box-shadow: inset calc(3 * var(--cap-em)) 0 0 #c45c48;
}

.caption-overlay.outline .caption-text {
  --style-size: 52;
  -webkit-text-stroke: calc((3.2 + var(--cap-stroke, 0)) * var(--cap-em)) #000;
  paint-order: stroke fill;
  text-shadow: 0 calc(2 * var(--cap-em)) 0 #000;
}

.caption-overlay.ice .caption-text {
  --style-size: 52;
  text-shadow:
    0 0 calc(6 * var(--cap-outline, 1) * var(--cap-em)) #8ae3ff,
    0 0 calc(16 * var(--cap-outline, 1) * var(--cap-em)) #3ecbff;
}

.caption-overlay.poster .caption-text {
  --style-size: 48;
  background: rgba(0, 0, 0, var(--cap-plate-alpha, 0.94));
  color: #ffe14a;
  padding: calc(10 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(22 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: calc(2 * var(--cap-em));
  letter-spacing: 0.04em;
}

.caption-overlay.note .caption-text {
  --style-size: 46;
  background: rgba(232, 196, 126, var(--cap-plate-alpha, 0.94));
  color: #1c1612;
  padding: calc(12 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(22 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: calc(3 * var(--cap-em));
  box-shadow: calc(3 * var(--cap-em)) calc(3 * var(--cap-em)) 0 rgba(0, 0, 0, 0.28);
}

.caption-overlay.marker .caption-text {
  --style-size: 48;
  background: rgba(215, 255, 0, var(--cap-plate-alpha, 0.88));
  color: #111;
  padding: calc(4 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(14 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: calc(3 * var(--cap-em));
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.caption-overlay.bubble .caption-text {
  --style-size: 46;
  background: rgba(20, 20, 24, var(--cap-plate-alpha, 0.9));
  padding: calc(12 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(24 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: calc(22 * var(--cap-em));
  box-shadow: 0 calc(4 * var(--cap-em)) calc(14 * var(--cap-em)) rgba(0, 0, 0, 0.35);
}

.caption-overlay.cinema .caption-text {
  --style-size: 44;
  background: rgba(0, 0, 0, var(--cap-plate-alpha, 0.92));
  padding: calc(10 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(40 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: 0;
  letter-spacing: 0.06em;
}

.caption-overlay.ink .caption-text {
  --style-size: 52;
  text-shadow:
    calc(2 * var(--cap-em)) calc(2 * var(--cap-em)) 0 #000,
    calc(-2 * var(--cap-em)) calc(2 * var(--cap-em)) 0 #000,
    calc(2 * var(--cap-em)) calc(-2 * var(--cap-em)) 0 #000,
    calc(-2 * var(--cap-em)) calc(-2 * var(--cap-em)) 0 #000,
    0 calc(3 * var(--cap-em)) calc(8 * var(--cap-em)) rgba(0, 0, 0, 0.55);
}

.caption-overlay.fire .caption-text {
  --style-size: 52;
  text-shadow:
    0 0 calc(6 * var(--cap-outline, 1) * var(--cap-em)) #ff8c32,
    0 0 calc(16 * var(--cap-outline, 1) * var(--cap-em)) #ff5a1f;
}

.caption-overlay.night .caption-text {
  --style-size: 46;
  background: rgba(18, 34, 56, var(--cap-plate-alpha, 0.92));
  padding: calc(11 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(22 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: calc(8 * var(--cap-em));
  box-shadow: inset 0 calc(2 * var(--cap-em)) 0 rgba(142, 196, 255, 0.35);
}

.caption-overlay.comic .caption-text {
  --style-size: 46;
  background: rgba(255, 255, 255, var(--cap-plate-alpha, 0.96));
  color: #111;
  padding: calc(10 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(18 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: calc(6 * var(--cap-em));
  box-shadow: calc(4 * var(--cap-em)) calc(4 * var(--cap-em)) 0 #111;
}

.caption-overlay.news .caption-text {
  --style-size: 44;
  background: rgba(244, 244, 244, var(--cap-plate-alpha, 0.96));
  color: #111;
  padding: calc(10 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(28 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: 0;
  border-left: calc(8 * var(--cap-em)) solid #e23b2e;
  font-weight: 800;
}

.caption-overlay.vip .caption-text {
  --style-size: 46;
  background: rgba(16, 16, 16, var(--cap-plate-alpha, 0.9));
  color: #ffe7b0;
  padding: calc(11 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(22 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-radius: calc(4 * var(--cap-em));
  box-shadow: inset 0 0 0 calc(2 * var(--cap-em)) #c9a227;
}

.caption-overlay.stripe .caption-text {
  --style-size: 46;
  background: rgba(10, 10, 10, var(--cap-plate-alpha, 0.9));
  padding: calc(12 * var(--cap-plate-pad, 1) * var(--cap-em)) calc(22 * var(--cap-plate-pad, 1) * var(--cap-em));
  border-top: calc(3 * var(--cap-em)) solid var(--accent);
  border-bottom: calc(3 * var(--cap-em)) solid var(--accent);
}

.caption-overlay.stack .caption-text {
  --style-size: 52;
  text-shadow:
    calc(3 * var(--cap-em)) calc(3 * var(--cap-em)) 0 #111,
    calc(6 * var(--cap-em)) calc(6 * var(--cap-em)) 0 rgba(215, 255, 0, 0.7);
}

.caption-overlay.clean .caption-text {
  --style-size: 50;
  text-shadow: 0 calc(2 * var(--cap-em)) calc(10 * var(--cap-em)) rgba(0, 0, 0, 0.55);
  font-weight: 600;
}

.caption-overlay.boxed .caption-text,
.caption-overlay.lower .caption-text,
.caption-overlay.tape .caption-text,
.caption-overlay.pill .caption-text,
.caption-overlay.glass .caption-text,
.caption-overlay.lime .caption-text,
.caption-overlay.slate .caption-text,
.caption-overlay.banner .caption-text,
.caption-overlay.stamp .caption-text,
.caption-overlay.poster .caption-text,
.caption-overlay.note .caption-text,
.caption-overlay.marker .caption-text,
.caption-overlay.bubble .caption-text,
.caption-overlay.cinema .caption-text,
.caption-overlay.night .caption-text,
.caption-overlay.comic .caption-text,
.caption-overlay.news .caption-text,
.caption-overlay.vip .caption-text,
.caption-overlay.stripe .caption-text {
  line-height: 1.2;
}

.caption-studio {
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.studio-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
}

.studio-head h2 {
  margin: 0 0 4px;
}

.studio-head p,
.edit-hint,
.caption-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.edit-hint {
  padding: 8px 18px 0;
}

.studio-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.field.compact {
  min-width: 180px;
  flex: 0 1 200px;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.style-card {
  height: auto;
  min-height: 96px;
  padding: 10px;
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: start;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.style-card.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: rgba(215, 255, 0, 0.06);
}

.style-sample {
  font-family: "Noto Naskh Arabic", var(--font), sans-serif;
  font-size: 18px;
  margin-bottom: 4px;
}

.style-card em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.style-card.neon .style-sample {
  text-shadow: 0 0 8px #ff6ad5;
}

.style-card.boxed .style-sample {
  background: #000;
  padding: 2px 8px;
  border-radius: 4px;
}

.style-card.pill .style-sample {
  background: #000;
  padding: 2px 12px;
  border-radius: 999px;
}

.style-card.lower .style-sample {
  background: #111;
  padding: 2px 8px;
  border-left: 3px solid var(--accent);
}

.style-card.soft .style-sample {
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

.style-card.tape .style-sample {
  background: #2a1a16;
  border-left: 3px solid #c45c48;
  padding: 2px 8px;
}

.style-card.glass .style-sample {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

.style-card.lime .style-sample {
  background: #111;
  box-shadow: inset 0 0 0 1px var(--accent);
  padding: 2px 8px;
}

.style-card.slate .style-sample {
  background: #1c2430;
  padding: 2px 8px;
}

.style-card.line .style-sample {
  border-bottom: 2px solid var(--accent);
}

.style-card.banner .style-sample {
  background: #000;
  padding: 2px 14px;
}

.style-card.stamp .style-sample {
  background: #1a1410;
  box-shadow: inset 2px 0 0 #c45c48;
  padding: 2px 8px;
}

.style-card.outline .style-sample {
  text-shadow: 0 1px 0 #000, 1px 0 0 #000, 0 -1px 0 #000, -1px 0 0 #000;
}

.style-card.ice .style-sample {
  text-shadow: 0 0 8px #8ae3ff;
}

.style-card.poster .style-sample {
  background: #000;
  color: #ffe14a;
  padding: 2px 8px;
}

.style-card.note .style-sample {
  background: #e8c47e;
  color: #1c1612;
  padding: 2px 8px;
}

.style-card.marker .style-sample {
  background: var(--accent);
  color: #111;
  padding: 1px 8px;
}

.style-card.bubble .style-sample {
  background: #141418;
  padding: 2px 12px;
  border-radius: 999px;
}

.style-card.cinema .style-sample {
  background: #000;
  padding: 2px 16px;
  letter-spacing: 0.08em;
}

.style-card.ink .style-sample {
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
}

.style-card.fire .style-sample {
  text-shadow: 0 0 8px #ff8c32;
}

.style-card.night .style-sample {
  background: #122238;
  padding: 2px 8px;
}

.style-card.comic .style-sample {
  background: #fff;
  color: #111;
  box-shadow: 2px 2px 0 #111;
  padding: 2px 8px;
}

.style-card.news .style-sample {
  background: #f4f4f4;
  color: #111;
  border-left: 4px solid #e23b2e;
  padding: 2px 8px;
}

.style-card.vip .style-sample {
  background: #101010;
  color: #ffe7b0;
  box-shadow: inset 0 0 0 1px #c9a227;
  padding: 2px 8px;
}

.style-card.stripe .style-sample {
  background: #111;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  padding: 2px 8px;
}

.style-card.stack .style-sample {
  text-shadow: 2px 2px 0 #111, 4px 4px 0 var(--accent);
}

.style-card.clean .style-sample {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  font-weight: 600;
}

.section-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.font-picker {
  display: grid;
  gap: 8px;
}

.font-trigger {
  width: 100%;
  height: auto;
  min-height: 72px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  justify-items: start;
  text-align: start;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.font-trigger:hover,
.font-trigger:focus-visible {
  border-color: var(--accent);
}

#font-trigger-sample {
  font-size: 22px;
  line-height: 1.4;
}

#font-trigger-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(82vh, 760px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: #111111;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.modal-head h3 {
  margin: 0 0 4px;
  font-family: var(--font);
  text-transform: uppercase;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.export-modal-card {
  width: min(520px, 100%);
  grid-template-rows: auto auto auto auto;
  gap: 16px;
  padding: 22px 22px 20px;
  max-height: min(86vh, 680px);
  background:
    linear-gradient(180deg, rgba(215, 255, 0, 0.06), transparent 88px),
    #101010;
  border: 1px solid rgba(215, 255, 0, 0.16);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.export-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.export-modal-head .eyebrow {
  margin: 0 0 4px;
}

.export-modal-head h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.export-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: #0b0b0b;
  border: 1px solid rgba(215, 255, 0, 0.28);
}

.export-hero.is-busy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 180% 100%;
  animation: export-sweep 1.2s linear infinite;
}

@keyframes export-sweep {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.export-hero-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.export-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(215, 255, 0, 0.12);
  color: var(--accent);
}

.export-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.export-hero-copy strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.export-hero-copy em,
.export-group-note {
  display: block;
  margin: 0;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-reg);
}

.export-hero-actions {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.export-hero-cta {
  height: 40px;
  min-width: 132px;
  padding: 0 16px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #0a0a0a;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.export-hero-cta:hover,
.export-hero-cta:focus-visible {
  filter: brightness(1.05);
}

.export-hero-cta:disabled {
  opacity: 0.6;
  cursor: wait;
  filter: none;
}

.export-again {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.export-again:hover,
.export-again:focus-visible {
  color: var(--accent);
}

.export-status {
  margin: 0;
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-reg);
}

.export-status.error,
.caption-status.error {
  color: var(--bad);
}

.export-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.export-group {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border-radius: 14px;
  background: #0c0c0c;
  border: 1px solid var(--line);
}

.export-group-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.export-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.export-chip {
  height: 32px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #161616;
  color: var(--ink);
  border: 1px solid var(--line);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.export-chip:hover,
.export-chip:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 560px) {
  .export-hero,
  .export-groups {
    grid-template-columns: 1fr;
  }

  .export-hero-cta {
    width: 100%;
  }
}

.modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}

#font-search {
  height: 42px;
  width: 100%;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.font-loading {
  margin: 18px 4px;
  color: var(--muted);
}

.font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  min-height: 240px;
  overflow: auto;
  padding: 2px 4px 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 255, 0, 0.45) transparent;
}

.font-grid::-webkit-scrollbar {
  width: 6px;
}

.font-grid::-webkit-scrollbar-thumb {
  background: rgba(215, 255, 0, 0.4);
  border-radius: 99px;
}

.font-card {
  height: auto;
  min-height: 76px;
  padding: 10px;
  display: grid;
  gap: 6px;
  justify-items: stretch;
  text-align: start;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.font-card.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.font-card.locked {
  position: relative;
  opacity: 0.72;
}

.font-card.locked .font-sample {
  filter: grayscale(1);
}

.font-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.font-sample {
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
}

.font-card strong {
  font-family: var(--font-reg);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.tweak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
}

.tweak-section {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tweak-section:first-child {
  margin-top: 0;
}

.tweak {
  display: grid;
  gap: 6px;
}

.tweak span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.tweak b {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.tweak input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.tweak input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.tweak select {
  height: 40px;
}

.tweak-check input[type="checkbox"] {
  appearance: none;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  cursor: pointer;
}

.tweak-check input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.tweak-check input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.tweak-check input[type="checkbox"]:checked::after {
  transform: translateX(18px);
  background: #0a0a0a;
}

.export-card {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.export-card h2 {
  margin: 0 0 4px;
}

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

.caption-status.error {
  color: var(--bad);
}

#dl-captioned {
  width: fit-content;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 8px;
  text-decoration: none;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.cue {
  cursor: pointer;
}

.cue.active {
  background: rgba(215, 255, 0, 0.08);
  border-radius: 8px;
}

.cue-text {
  outline: none;
  border-radius: 8px;
  padding: 4px 6px;
  margin: 0 -6px;
}

.cue-text:focus {
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.copy-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-tools button,
.copy-tools a {
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--line);
}

.copy-tools button {
  color: var(--ink);
  background: var(--bg);
}

.copy-tools button:hover,
.copy-tools a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.columns article {
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
}

.columns article header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0;
}

h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 20px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.script {
  padding: 12px 18px 18px;
  max-height: 520px;
  overflow: auto;
  line-height: 1.7;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.script::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cue {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cue time {
  font-size: 12px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

html:has(body.landing) {
  background: #0a0a0a;
}

body.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 100vh 0 0 #0a0a0a;
}

body.landing::before,
body.landing .grain {
  display: none;
}

body.landing .app-hero {
  position: relative;
  z-index: 5;
  overflow: visible;
  min-height: auto;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  padding: 18px 20px 108px;
  scroll-margin-top: 0;
}

body.landing .app-nav {
  position: relative;
  z-index: 170;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

body.landing .nav-toggle {
  display: none;
}

body.landing .nav-drawer {
  display: contents;
}

body.landing .mini-brand,
body.landing .nav-toggle {
  position: relative;
  z-index: 171;
}

body.landing .mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0a0a0a;
  text-decoration: none;
  letter-spacing: 0.18em;
  font-size: 18px;
  line-height: 1;
}

body.landing .mini-brand img,
.brand-icon {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  transform: translateY(1px);
}

body.landing .mini-brand span {
  display: flex;
  align-items: center;
  height: 44px;
  line-height: 1;
}

body.landing .hero-upload {
  position: relative;
  z-index: 6;
  width: min(920px, 100%);
  margin: 36px auto 0;
  align-self: center;
  overflow: visible;
}

body.landing .hero-upload .dropzone {
  border: 2px dashed #0a0a0a;
  border-radius: 32px;
  background: transparent;
  color: #0a0a0a;
  min-height: 280px;
  padding: 72px 24px;
  align-content: center;
}

body.landing .hero-upload .dropzone.has-file {
  border-style: solid;
  background: rgba(10, 10, 10, 0.06);
}

body.landing .hero-upload .drop-thumb {
  border: 2px solid #0a0a0a;
}

body.landing .hero-upload .drop-duration {
  background: #0a0a0a;
  color: var(--accent);
}

body.landing .hero-upload.ready #submit-btn {
  background: #0a0a0a;
  color: var(--accent);
}

body.landing .hero-upload.ready #submit-btn.is-upgrade,
body.landing .hero-upload.ready #submit-btn.is-upgrade:hover:not(:disabled) {
  background: #0a0a0a;
  color: #fff;
}

body.landing .pricing-grid.compact {
  grid-template-columns: 1fr;
}

body.landing.upgrade-page .skills-intro h1 {
  max-width: 16ch;
}

body.landing .hero-upload .drop-icon {
  width: 80px;
  height: 80px;
  background: transparent;
  color: #0a0a0a;
  border: 0;
}

body.landing .hero-upload .drop-icon img {
  width: 80px;
  height: 80px;
}

body.landing .hero-upload .drop-title,
body.landing .hero-upload .drop-hint,
body.landing .hero-upload .field span,
body.landing .hero-upload .check,
body.landing .hero-upload .check em {
  color: #0a0a0a;
}

body.landing .hero-upload .drop-hint,
body.landing .hero-upload .check em {
  opacity: 0.72;
}

body.landing .hero-upload .controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 12px 14px;
}

body.landing .hero-upload .model-pick {
  background: #fff;
  color: #0a0a0a;
  border: 0;
  border-radius: 999px;
}

body.landing .hero-upload .model-pick:hover {
  box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.18);
}

body.landing .hero-upload .model-pick.selected:hover {
  box-shadow: none;
}

body.landing .hero-upload .model-pick em {
  color: #0a0a0a;
  opacity: 0.58;
}

@media (min-width: 981px) {
  body.landing .hero-upload .model-pick {
    height: auto;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body.landing .hero-upload .model-copy {
    gap: 4px;
  }

  body.landing .hero-upload .model-hint-short {
    display: none;
  }

  body.landing .hero-upload .model-hint-long {
    display: block;
  }
}

body.landing .hero-upload .model-pick.selected {
  background: #0a0a0a;
  color: var(--accent);
  box-shadow: none;
}

body.landing .hero-upload .model-pick.selected .model-copy,
body.landing .hero-upload .model-pick.selected strong,
body.landing .hero-upload .model-pick.selected em {
  color: var(--accent);
  opacity: 1;
}

body.landing .hero-upload .model-pick.selected .model-icon {
  filter: invert(1);
}

body.landing .hero-upload .control-actions {
  grid-column: 1 / -1;
}

body.landing .hero-upload .field,
body.landing .hero-upload .combo {
  min-width: 0;
}

body.landing .hero-upload .check {
  flex: none;
  min-width: 0;
}

body.landing .hero-upload #submit-btn {
  white-space: nowrap;
}

body.landing .more-settings {
  display: none;
}

body.landing .hero-upload .combo-trigger {
  position: relative;
  background: #fff;
  color: #0a0a0a;
  border: 0;
  border-radius: 999px;
}

body.landing .hero-upload .combo-trigger:hover {
  filter: none;
  background: #f4f4ee;
}

body.landing .hero-upload .combo-panel {
  border-color: #0a0a0a;
  background: #0a0a0a;
}

body.landing .hero-upload .upload-error {
  color: #7a140c;
}

body.landing .hero-upload .check input {
  accent-color: #0a0a0a;
}

body.landing .app-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

body.landing .app-nav nav a {
  position: relative;
  color: #0a0a0a;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

body.landing .app-nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #0a0a0a;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

body.landing .app-nav nav a:hover::after,
body.landing .app-nav nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

body.landing .home-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

body.landing .home-nav nav {
  justify-self: center;
}

body.landing .nav-auth {
  justify-self: end;
  height: 40px;
  padding: 1px 18px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

body.landing .app-sheet {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  color: #f5f5f0;
  border-radius: 48px 48px 0 0;
  margin-top: -40px;
  padding: 36px 0 0;
  min-height: 58vh;
}

body.landing .app-sheet-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.landing .pill-btn,
body.landing #submit-btn {
  height: 56px;
  padding: 0 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
}

body.landing .ghost-btn {
  height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid #fff;
  background: transparent;
}

body.landing .ghost-btn:hover {
  background: #fff;
  color: #0a0a0a;
}

body.landing .eyebrow {
  color: var(--accent);
}

body.landing .landing-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 18px 0 36px;
}

body.landing .landing-hero h2 {
  max-width: 16ch;
  margin: 0 auto 12px;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

body.landing .landing-hero .lede {
  margin-inline: auto;
  max-width: 58ch;
}

body.landing .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

body.landing .hero-meta {
  margin: 14px 0 0;
}

body.landing .hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

body.landing .hero-points li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #111;
  color: var(--accent);
  font-size: 12px;
}

body.landing .stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 8px 0 40px;
}

body.landing .stat-strip article,
body.landing .feature-grid article,
body.landing .flow-grid li,
body.landing .split-grid article,
body.landing .panel {
  padding: 20px 18px;
  border-radius: 28px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body.landing .stat-strip strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
  text-transform: uppercase;
}

body.landing .stat-strip p,
body.landing .feature-grid p,
body.landing .flow-grid p,
body.landing .split-grid p,
body.landing .detail-list,
body.landing .soon-banner .lede,
body.landing .meta,
body.landing .lede,
body.landing .drop-hint,
body.landing .field span {
  color: #b7b7b0;
  font-family: var(--font-reg);
}

body.landing .landing-block {
  margin: 8px 0 48px;
}

body.landing .block-head {
  text-align: center;
  margin-bottom: 18px;
}

body.landing .block-head h2,
body.landing .start-copy h2,
body.landing .split-grid h2,
body.landing .soon-banner h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(24px, 4vw, 36px);
  text-transform: uppercase;
}

body.landing .block-head .lede {
  margin-inline: auto;
}

body.landing .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

body.landing .feature-grid strong,
body.landing .soon-card strong {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.landing .feature-grid h3 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 20px;
  text-transform: uppercase;
}

body.landing .soon-card {
  background: #111;
  border: 1px solid var(--accent);
}

body.landing .soon-pill {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.landing .flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

body.landing .flow-grid li {
  counter-increment: flow;
}

body.landing .flow-grid li::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 18px;
}

body.landing .flow-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
}

body.landing .split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 48px;
}

body.landing .detail-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

body.landing .detail-list li {
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: #b7b7b0;
}

body.landing .lang-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.landing .lang-cloud li {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
  color: #fff;
}

body.landing .lang-cloud .lang-more {
  border-color: var(--accent);
  background: var(--accent);
  color: #0a0a0a;
}

body.landing .lang-cloud .lang-more a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

body.landing .soon-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  margin: 0 0 48px;
  padding: 28px 24px;
  border-radius: 32px;
  border: 1px solid var(--accent);
  background: #111;
}

body.landing .soon-banner ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

body.landing .soon-banner li {
  padding: 12px 14px;
  border-radius: 999px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.landing .start-section {
  display: grid;
  gap: 18px;
  padding-top: 12px;
}

body.landing .start-copy {
  text-align: center;
}

body.landing .start-copy .lede {
  margin-inline: auto;
}

body.landing .landing-foot {
  width: 100%;
  margin: 36px 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8d8d84;
  font-size: 13px;
}

body.landing .landing-foot a {
  color: var(--accent);
  text-decoration: none;
}

body.landing .site-foot {
  margin-top: auto;
  padding: 36px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.landing .site-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: 28px 20px;
  padding-bottom: 28px;
}

body.landing .site-foot-brand p {
  margin: 12px 0 0;
  max-width: 36ch;
  color: #8d8d84;
  font-family: var(--font-reg);
  font-size: 14px;
  line-height: 1.5;
}

body.landing .site-foot .mini-brand {
  color: #fff;
}

body.landing .site-foot nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

body.landing .site-foot nav strong {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.landing .site-foot nav a {
  color: #f5f5f0;
  text-decoration: none;
  font-size: 14px;
}

body.landing .site-foot nav a:hover {
  color: var(--accent);
}

body.landing .site-foot-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8d8d84;
  font-size: 13px;
}

body.landing .site-foot-bar p {
  margin: 0;
}

body.landing .social-block {
  padding: 8px 0 8px;
}

body.landing .social-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.landing .social-showcase a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f5f5f0;
  text-decoration: none;
  border: 1px solid transparent;
  background:
    linear-gradient(#111, #111) padding-box,
    linear-gradient(120deg, rgba(215, 255, 0, 0.4), rgba(255, 255, 255, 0.12), rgba(215, 255, 0, 0.22)) border-box;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

body.landing .social-showcase a:hover {
  color: #0a0a0a;
  background: var(--accent);
  transform: translateY(-2px);
}

body.landing .social-showcase img {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

body.landing .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

body.landing .footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0a0a0a;
  border: 1px solid rgba(215, 255, 0, 0.22);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

body.landing .footer-social a:hover {
  border-color: var(--accent);
  background: rgba(215, 255, 0, 0.1);
  transform: translateY(-2px);
}

body.landing .footer-social img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

body.landing.skills-page .app-hero {
  padding-bottom: 88px;
}

body.landing .skills-intro {
  width: min(920px, 100%);
  margin: 48px auto 0;
  text-align: center;
  justify-self: center;
  color: #0a0a0a;
}

body.landing .skills-intro .eyebrow,
body.landing .skills-intro .lede {
  color: #0a0a0a;
}

body.landing .skills-intro h1 {
  max-width: 18ch;
  margin: 0 auto 12px;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

body.landing .skills-intro .lede {
  margin-inline: auto;
  max-width: 58ch;
}

body.landing .hero-pill,
body.landing .hero-ghost {
  height: 56px;
  padding: 0 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
}

body.landing .hero-pill {
  background: #0a0a0a;
  color: var(--accent);
  border: 0;
}

body.landing .hero-ghost {
  padding: 0 24px;
  color: #0a0a0a;
  border: 1px solid #0a0a0a;
  background: transparent;
}

body.landing .hero-ghost:hover {
  background: #0a0a0a;
  color: var(--accent);
}

body.landing .catalog-block {
  scroll-margin-top: 24px;
}

body.landing .catalog-search {
  display: grid;
  width: min(420px, 100%);
  margin: 0 auto 22px;
}

body.landing .catalog-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.landing .catalog-search input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font: inherit;
  outline: none;
}

body.landing .catalog-search input:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

body.landing .catalog-cloud {
  justify-content: center;
}

body.landing .lang-cloud .lang-featured {
  border-color: var(--accent);
  background: var(--accent);
  color: #0a0a0a;
}

body.landing .catalog-empty {
  margin: 8px 0 0;
  text-align: center;
  color: #8d8d84;
}

body.landing.skills-page .soon-banner .pill-btn {
  justify-self: center;
  align-self: center;
}

body.landing .login-hero {
  width: min(1120px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

body.landing .login-copy {
  color: #0a0a0a;
}

body.landing .login-copy .eyebrow,
body.landing .login-copy .lede {
  color: #0a0a0a;
}

body.landing .login-copy h1 {
  max-width: 14ch;
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

body.landing .login-copy .lede {
  max-width: 46ch;
  margin: 0 0 18px;
}

body.landing.banned-page .login-copy .hero-actions {
  justify-content: flex-start;
  margin-top: 4px;
}

body.landing.banned-page .banned-word {
  color: #e10600;
  -webkit-text-fill-color: #e10600;
  opacity: 1;
}

body.landing.signup-limit-page .banned-word {
  color: #e10600;
  -webkit-text-fill-color: #e10600;
  opacity: 1;
}

body.landing .tg-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

body.landing .tg-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

body.landing .login-copy .hero-points {
  justify-content: start;
  margin: 0 0 18px;
}

body.landing .login-ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

body.landing .login-ticks li {
  padding-left: 14px;
  border-left: 2px solid #0a0a0a;
  font-size: 14px;
  font-weight: 700;
}

body.landing .login-box {
  width: 100%;
  padding: 28px 26px 24px;
  border-radius: 32px;
  background: #0a0a0a;
  color: #f5f5f0;
  border: 2px solid #0a0a0a;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.landing .login-box h2 {
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 28px;
}

body.landing .login-box p,
body.landing .login-legal {
  margin: 0;
  color: #b7b7b0;
  font-family: var(--font-reg);
}

body.landing .login-box .google-btn {
  width: 100%;
  margin-top: 8px;
}

body.landing .login-box .upload-error {
  margin: 0;
  color: #ff8a7a;
}

body.landing .login-legal {
  margin: 2px 0 0;
  color: #b7b7b0;
  font-family: var(--font-reg);
  font-size: 13px;
  line-height: 1.5;
}

body.landing .login-legal a {
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

body.landing .login-legal a:hover {
  color: var(--accent);
}

body.landing .login-ghost {
  margin-top: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

body.landing .login-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 0 36px;
  padding: 22px 24px;
  border-radius: 32px;
  border: 1px solid var(--accent);
  background: #111;
}

body.landing .login-bottom h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: 22px;
}

body.landing .google-btn {
  height: 56px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
}

body.landing .google-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

body.landing .google-btn:hover {
  filter: none;
  background: #f4f4ee;
}

html:has(body.profile-page),
body.profile-page {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(body.profile-page)::-webkit-scrollbar,
body.profile-page::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 3px;
  pointer-events: none;
  background: #0a0a0a;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  box-shadow: 0 0 14px rgba(215, 255, 0, 0.55);
}

body.profile-page .scroll-progress {
  display: none;
}

body.landing .profile-hero {
  width: min(920px, 100%);
  margin: 48px auto 0;
  display: grid;
  justify-items: center;
  text-align: center;
  color: #0a0a0a;
}

body.landing .profile-hero h1 {
  margin: 16px 0 6px;
  max-width: none;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

body.landing .profile-email {
  margin: 0;
  color: #0a0a0a;
  opacity: 0.7;
  font-family: var(--font-reg);
}

body.landing .profile-pfp,
body.landing .profile-pfp-fallback {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  background: #0a0a0a;
  border: 4px solid #0a0a0a;
}

body.landing .profile-pfp-fallback {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 64px;
  font-weight: 700;
}

body.landing .profile-stack {
  width: min(1120px, 100%);
  margin: 8px auto 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

body.landing .profile-stack .profile-card {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.landing .profile-stack .profile-card-actions {
  margin-top: auto;
}

body.landing .profile-card {
  width: min(640px, 100%);
  margin: 8px auto 48px;
  padding: 8px 8px 22px;
  border-radius: 28px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.landing .profile-card h2 {
  margin: 18px 20px 8px;
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.landing .profile-rows {
  margin: 0;
  padding: 0 8px;
  list-style: none;
}

body.landing .profile-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.landing .profile-rows li:last-child {
  border-bottom: 0;
}

body.landing .profile-rows span {
  color: #8d8d84;
  font-size: 13px;
}

body.landing .profile-rows strong {
  color: #fff;
  font-size: 15px;
  text-align: right;
}

body.landing .profile-rows em {
  margin-left: 8px;
  color: var(--accent);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.landing .profile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 12px 0;
}

body.landing .plan-card {
  border-color: rgba(215, 255, 0, 0.22);
}

body.landing .plan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 18px 20px 0;
}

body.landing .plan-card-head .eyebrow {
  margin: 0 0 4px;
}

body.landing .plan-card-head h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.landing .plan-card-price {
  margin: 0;
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

body.landing .plan-card-price span {
  font-size: 16px;
  margin-right: 1px;
}

body.landing .plan-card-price em {
  margin-left: 4px;
  color: #8d8d84;
  font-style: normal;
  font-size: 13px;
}

body.landing .plan-card-blurb {
  margin: 10px 20px 0;
  color: #b7b7b0;
  font-family: var(--font-reg);
}

body.landing .plan-carryover {
  margin: 14px 20px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(215, 255, 0, 0.28);
  background: rgba(215, 255, 0, 0.08);
  color: var(--accent);
  font-family: var(--font-reg);
  font-size: 14px;
  line-height: 1.45;
}

body.landing .plan-card-features {
  margin: 14px 20px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

body.landing .plan-card-features li {
  position: relative;
  padding-left: 16px;
  color: #f5f5f0;
  font-family: var(--font-reg);
  font-size: 14px;
}

body.landing .plan-card-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

body.landing .plan-usage {
  margin: 18px 12px 0;
  padding: 16px 12px 14px;
  border-radius: 18px;
  background: #0a0a0a;
}

body.landing .plan-usage-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

body.landing .plan-usage-row span {
  color: #8d8d84;
  font-size: 13px;
}

body.landing .plan-usage-row strong {
  color: #fff;
  font-size: 15px;
}

body.landing .plan-usage-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #161616;
  border: 1px solid color-mix(in srgb, var(--bar-color) 38%, transparent);
}

body.landing .plan-usage-bar span {
  display: block;
  height: 100%;
  width: calc(var(--bar-pct) * 1%);
  border-radius: inherit;
  background: var(--bar-color);
  box-shadow: 0 0 18px color-mix(in srgb, var(--bar-color) 70%, transparent);
}

body.landing .plan-usage-bar.is-empty {
  background: color-mix(in srgb, var(--bar-color) 22%, #161616);
}

body.landing .plan-usage-note {
  margin: 10px 0 0;
  color: #8d8d84;
  font-family: var(--font-reg);
  font-size: 13px;
}

body.landing .plan-card .plan-cta.current {
  display: inline-grid;
  place-items: center;
  height: 56px;
  padding: 0 24px;
  border-radius: 999px;
}

body.landing .legal-body {
  width: min(760px, 100%);
  margin: 0 auto 48px;
  display: grid;
  gap: 8px;
}

body.landing .legal-body h2 {
  margin: 22px 0 8px;
  color: #fff;
  text-transform: uppercase;
  font-size: 20px;
}

body.landing .legal-body p {
  margin: 0 0 10px;
  color: #b7b7b0;
  font-family: var(--font-reg);
  line-height: 1.55;
}

body.landing .legal-links a {
  color: var(--accent);
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

body.landing.emails-page .skills-intro h1 {
  max-width: 14ch;
}

body.landing .gmail-gallery {
  display: grid;
  gap: 48px;
  margin: 0 auto 48px;
}

body.landing .gmail-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) auto;
  gap: 28px;
  align-items: start;
}

body.landing .gmail-block-copy h2 {
  margin: 0 0 8px;
  color: #fff;
  text-transform: none;
  font-size: 24px;
}

body.landing .gmail-block-copy p {
  margin: 0 0 16px;
  color: #8d8d84;
  font-family: var(--font-reg);
}

body.landing .gmail-phone {
  width: 360px;
  max-width: 100%;
  padding: 10px 10px 16px;
  border-radius: 36px;
  background: #000;
  border: 1px solid #2a2a2a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: #e3e3e3;
  font-family: "Roboto", Arial, sans-serif;
}

body.landing .gmail-phone-notch {
  width: 92px;
  height: 8px;
  margin: 4px auto 8px;
  border-radius: 999px;
  background: #1a1a1a;
}

body.landing .gmail-status {
  display: flex;
  justify-content: space-between;
  padding: 0 10px 8px;
  font-size: 11px;
  color: #c4c7c5;
}

body.landing .gmail-inbox,
body.landing .gmail-thread {
  background: #131314;
  border-radius: 22px;
  overflow: hidden;
}

body.landing .gmail-inbox {
  margin-bottom: 10px;
}

body.landing .gmail-inbox-label {
  margin: 0;
  padding: 10px 14px 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa0a6;
}

body.landing .gmail-row {
  display: grid;
  grid-template-columns: 36px 1fr 16px;
  gap: 10px;
  padding: 10px 14px 12px;
  align-items: start;
}

body.landing .gmail-row.unread strong,
body.landing .gmail-row.unread .gmail-row-subject {
  color: #fff;
  font-weight: 700;
}

body.landing .gmail-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d7ff00;
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 700;
}

body.landing .gmail-row-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

body.landing .gmail-row-top time,
body.landing .gmail-from p,
body.landing .gmail-row-snippet {
  color: #9aa0a6;
  font-weight: 400;
}

body.landing .gmail-row-subject,
body.landing .gmail-row-snippet {
  margin: 2px 0 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.landing .gmail-star {
  color: #9aa0a6;
  font-size: 14px;
}

body.landing .gmail-thread-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px 0;
  font-size: 18px;
}

body.landing .gmail-thread h3 {
  margin: 8px 14px 12px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 400;
  color: #e3e3e3;
}

body.landing .gmail-from {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 0 14px 12px;
  align-items: center;
}

body.landing .gmail-from strong {
  display: block;
  font-size: 14px;
}

body.landing .gmail-from p {
  margin: 2px 0 0;
  font-size: 12px;
}

body.landing .gmail-thread iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
  background: #0a0a0a;
}

body.confirm-open {
  overflow: hidden;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.confirm-modal.hidden {
  display: none;
}

.confirm-modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 28px 24px 22px;
  border-radius: 32px;
  background: #111;
  border: 1px solid rgba(215, 255, 0, 0.28);
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.confirm-modal-card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(24px, 4vw, 32px);
  text-transform: uppercase;
}

.confirm-modal-card p {
  margin: 0;
  color: #b7b7b0;
  font-family: var(--font-reg);
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.confirm-modal-actions .ghost-btn,
.confirm-modal-actions .pill-btn {
  flex: 1;
  min-width: 140px;
  height: 48px;
}

body.landing .pricing-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 20rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  body.landing .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    align-items: start;
  }

  body.landing .pricing-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 20rem));
    justify-content: center;
    max-width: none;
  }
}

body.landing .pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background:
    linear-gradient(#111, #111) padding-box,
    linear-gradient(120deg, rgba(215, 255, 0, 0.32), rgba(255, 255, 255, 0.1), rgba(215, 255, 0, 0.18)) border-box;
  color: #fff;
}

body.landing .pricing-card--featured {
  background:
    linear-gradient(#161616, #161616) padding-box,
    linear-gradient(120deg, var(--accent), rgba(215, 255, 0, 0.35), var(--accent)) border-box;
  box-shadow: 0 25px 50px -12px rgba(215, 255, 0, 0.16);
  transform: scale(1.02);
}

body.landing .pricing-tier {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #fff;
}

body.landing .pricing-price {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: #fff;
  letter-spacing: -0.03em;
}

body.landing .pricing-price-iqd {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-reg);
  letter-spacing: 0;
}

body.landing .pricing-price small {
  font-size: 0.875rem;
  font-weight: 500;
  color: #8d8d84;
  font-family: var(--font-reg);
  letter-spacing: 0;
}

body.landing .pricing-card-head p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #8d8d84;
  font-family: var(--font-reg);
  line-height: 1.45;
}

body.landing .pricing-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
  font-size: 0.875rem;
  color: #c8c8c0;
  font-family: var(--font-reg);
}

body.landing .pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

body.landing .pricing-feature-copy {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

body.landing .pricing-features li::before {
  content: "";
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.2rem;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.28 2.28L3.989 8.575 1.695 6.28A1 1 0 00.28 7.695l3 3a1 1 0 001.414 0l7-7A1 1 0 0010.28 2.28z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.28 2.28L3.989 8.575 1.695 6.28A1 1 0 00.28 7.695l3 3a1 1 0 001.414 0l7-7A1 1 0 0010.28 2.28z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.landing .plan-cta {
  width: 100%;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  border-radius: 0.375rem;
  background: #fff;
  color: #0a0a0a;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 700;
  border: 1px solid transparent;
  box-sizing: border-box;
}

body.landing .plan-cta.hot {
  background: var(--accent);
  color: #0a0a0a;
}

body.landing .plan-cta.current {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

body.landing .price-note {
  margin: 16px 0 0;
  text-align: center;
  color: #8d8d84;
  font-family: var(--font-reg);
  font-size: 13px;
}

body.landing .price-note a {
  color: var(--accent);
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
}

body.landing .profile-card .upload-error {
  margin: 8px 12px 0;
}

body.landing .upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 10, 0.88);
}

body.landing .upload-overlay-card {
  width: min(440px, calc(100% - 32px));
  padding: 28px 24px 22px;
  border-radius: 32px;
  background: #111;
  border: 1px solid rgba(215, 255, 0, 0.2);
  box-shadow: none;
  color: #fff;
}

body.landing .upload-overlay-card h2 {
  margin: 0 0 18px;
  color: #fff;
  text-transform: uppercase;
}

body.landing .xfer-bar {
  height: 10px;
  border-radius: 999px;
  background: #0a0a0a;
  overflow: hidden;
  border: 1px solid rgba(215, 255, 0, 0.22);
}

body.landing .xfer-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(215, 255, 0, 0.55);
  transition: width 0.16s ease-out;
}

body.landing .xfer-bar.indeterminate span {
  width: 42% !important;
  animation: xfer-slide 1.1s ease-in-out infinite;
}

@keyframes xfer-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

body.landing .xfer-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 0;
  color: #b7b7b0;
  font-family: var(--font-reg);
  font-size: 13px;
}

body.landing .xfer-meta strong {
  color: var(--accent);
}

body.landing #xfer-note {
  margin: 14px 0 0;
  color: #8d8d84;
  font-family: var(--font-reg);
  font-size: 13px;
  line-height: 1.45;
}

body.landing #xfer-profile,
body.landing #xfer-cancel {
  margin-top: 16px;
  width: 100%;
}

body.landing .projects-card {
  width: min(920px, 100%);
  margin: 8px auto 28px;
  padding: 22px 18px 18px;
  border-radius: 28px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.landing.projects-page .projects-card {
  width: min(1100px, 100%);
}

body.landing .projects-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

body.landing .projects-head h2 {
  margin: 0;
  color: #fff;
  text-transform: uppercase;
}

body.landing .projects-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body.landing .projects-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.landing .projects-all-btn:hover {
  background: var(--accent);
  color: #0a0a0a;
}

body.landing .projects-info {
  position: relative;
  flex-shrink: 0;
}

body.landing .projects-info-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  line-height: 0;
  cursor: pointer;
}

body.landing .projects-info-btn span {
  display: block;
  line-height: 1;
  transform: translateY(0.08em);
}

body.landing .projects-info-btn:hover,
body.landing .projects-info-btn[aria-expanded="true"] {
  filter: none;
  background: #e7ff4d;
}

body.landing .projects-info-text {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 6;
  width: min(260px, 70vw);
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #0a0a0a;
  border: 1px solid rgba(215, 255, 0, 0.35);
  color: #f5f5f0;
  font-family: var(--font-reg);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

body.landing .projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.landing .projects-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 12px;
  color: #8d8d84;
  font-family: var(--font-reg);
  text-align: center;
}

body.landing .project-tile {
  position: relative;
  min-width: 0;
}

body.landing .project-card {
  display: grid;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

body.landing .project-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.landing .project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.landing .project-status {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 1;
  max-width: calc(100% - 12px);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.78);
  color: #f5f5f0;
  font-family: var(--font-reg);
  font-size: 10px;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.landing .project-card strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.landing .project-date {
  color: #8d8d84;
  font-style: normal;
  font-family: var(--font-reg);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.landing .project-card.processing .project-status {
  color: var(--accent);
}

body.landing .project-card.processing .project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(215, 255, 0, 0.42) 48%, transparent 72%);
  background-size: 220% 100%;
  animation: project-shimmer 1.35s ease-in-out infinite;
}

body.landing .project-card.failed .project-status {
  color: var(--bad);
}

body.landing .project-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.82);
  color: #fff;
  cursor: pointer;
}

body.landing .project-delete svg {
  width: 14px;
  height: 14px;
  display: block;
}

body.landing .project-delete:hover,
body.landing .project-delete:focus-visible {
  background: #ff4d3a;
  color: #fff;
}

@keyframes project-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

body.landing .upload-error {
  margin: 12px 0 0;
  color: var(--bad);
}

@media (max-width: 980px) {
  body.landing .hero-upload .controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body.landing .hero-upload .control-actions {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }

  body.landing .hero-upload #submit-btn {
    width: 100%;
    margin-left: 0;
  }

  .combo-panel,
  body.landing .hero-upload .combo-panel {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
  }

  body.landing .login-hero {
    grid-template-columns: 1fr;
  }

  body.landing .login-copy h1 {
    max-width: none;
  }

  body.landing .login-bottom {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  body.landing .login-bottom .google-btn {
    width: 100%;
  }

  body.landing .profile-rows li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  body.landing .profile-rows strong {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .stat-strip,
  .feature-grid,
  .feature-grid.dense,
  .flow-grid,
  .split-grid,
  .soon-banner,
  body.landing .stat-strip,
  body.landing .feature-grid,
  body.landing .flow-grid,
  body.landing .split-grid,
  body.landing .soon-banner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .columns,
  .top {
    grid-template-columns: 1fr;
    display: grid;
  }

  .progress-card {
    padding: 18px 16px 14px;
  }

  .progress-head strong {
    font-size: 18px;
  }

  .progress-card h2 {
    font-size: 22px;
    margin: 6px 0 14px;
  }

  .columns {
    display: grid;
  }

  .scroll-progress {
    display: none;
  }

  body.landing .hero-upload .controls {
    grid-template-columns: 1fr;
  }

  body.landing .hero-upload.settings-open .controls {
    grid-template-columns: 1fr 1fr;
  }

  body.landing .more-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    width: 100%;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0a0a0a;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }

  body.landing .more-settings:hover:not(:disabled) {
    filter: none;
  }

  body.landing .hero-upload .field,
  body.landing .hero-upload .check {
    display: none;
  }

  body.landing .hero-upload.settings-open .field {
    display: grid;
  }

  body.landing .hero-upload.settings-open .check {
    display: flex;
  }

  body.landing .hero-upload .control-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
  }

  body.landing .hero-upload .check {
    width: 100%;
  }

  body.landing .hero-upload #submit-btn {
    width: 100%;
    margin-left: 0;
  }

  body.landing .hero-upload .dropzone {
    min-height: 200px;
    padding: 24px 16px;
    border-radius: 24px;
  }

  body.landing .hero-upload .drop-icon {
    width: 72px;
    height: 72px;
  }

  body.landing .hero-upload .drop-icon img {
    width: 72px;
    height: 72px;
  }

  .combo-panel,
  body.landing .hero-upload .combo-panel {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
  }

  body.landing .profile-stack {
    width: min(640px, 100%);
    grid-template-columns: 1fr;
  }

  body.landing .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #0a0a0a;
    line-height: 0;
    font-size: 0;
    z-index: 171;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }

  body.landing .nav-toggle:hover:not(:disabled) {
    filter: none;
  }

  body.landing .app-nav.nav-open .mini-brand {
    color: #fff;
  }

  body.landing .nav-toggle-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
  }

  body.landing .nav-toggle-icon::before,
  body.landing .nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
    transition: transform 0.2s ease, top 0.2s ease;
  }

  body.landing .nav-toggle-icon::before {
    top: -6px;
  }

  body.landing .nav-toggle-icon::after {
    top: 6px;
  }

  body.landing .app-nav.nav-open .nav-toggle-icon {
    background: transparent;
  }

  body.landing .app-nav.nav-open .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.landing .app-nav.nav-open .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  body.landing .home-nav {
    grid-template-columns: 1fr auto;
  }

  body.landing .app-nav.nav-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    margin: 0;
    padding: 18px 20px 0;
  }

  body.landing .nav-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 160;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 96px 24px calc(28px + env(safe-area-inset-bottom));
    background: #0a0a0a;
  }

  body.landing .app-nav.nav-open .nav-drawer {
    display: flex;
  }

  body.landing .app-nav nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
  }

  body.landing .nav-drawer nav a {
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
    padding: 10px 0;
  }

  body.landing .nav-drawer nav a::after {
    background: var(--accent);
    bottom: 6px;
  }

  body.landing .nav-drawer .nav-auth {
    margin-top: auto;
    justify-self: stretch;
    width: 100%;
    height: 56px;
    background: var(--accent);
    color: #0a0a0a;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  body.landing .app-sheet {
    border-radius: 36px 36px 0 0;
  }

  body.landing .site-foot {
    padding: 28px 0 calc(20px + env(safe-area-inset-bottom));
  }

  body.landing .site-foot-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  body.landing .site-foot-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body.landing .site-foot-brand p {
    max-width: 28ch;
  }

  body.landing .site-foot .mini-brand {
    justify-content: center;
  }

  body.landing .social-showcase {
    justify-content: center;
  }

  body.landing .footer-social {
    justify-content: center;
  }

  body.landing .site-foot nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-items: stretch;
  }

  body.landing .site-foot nav strong {
    grid-column: 1 / -1;
    width: auto;
    margin: 0 0 4px;
    text-align: center;
  }

  body.landing .site-foot nav a {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 999px;
    background: #161616;
    font-size: 13px;
  }

  body.landing .site-foot-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }

  body.landing .projects-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  body.landing .project-thumb {
    border-radius: 10px;
  }

  body.landing .project-card strong {
    font-size: 11px;
  }

  body.landing .project-date,
  body.landing .project-status {
    font-size: 10px;
  }

  body.landing .project-delete {
    width: 24px;
    height: 24px;
    top: 4px;
    right: 4px;
  }

  body.landing .projects-all-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 10px;
  }

  body.landing .projects-head {
    flex-direction: row;
    align-items: start;
  }

  body.landing .email-preview,
  body.landing .gmail-block {
    grid-template-columns: 1fr;
  }

  .landing-hero,
  .feature-grid,
  .start-section,
  .stat-strip,
  .feature-grid.dense,
  .flow-grid,
  .split-grid,
  .soon-banner,
  .landing-foot,
  body.landing .stat-strip,
  body.landing .feature-grid,
  body.landing .flow-grid,
  body.landing .split-grid,
  body.landing .soon-banner,
  body.landing .landing-foot {
    grid-template-columns: 1fr;
  }

  body.landing .pricing-card--featured {
    transform: none;
  }
}

body.studio {
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #070707;
}

body.studio .grain {
  display: none;
}

body.studio .top,
body.studio main {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.studio .studio-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  z-index: 40;
  padding: 8px 12px;
  padding-top: calc(8px + env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0c0c;
  gap: 8px;
}

body.studio .studio-bar .brand p {
  display: none;
}

body.studio .studio-bar .brand strong {
  font-size: 15px;
}

body.studio .studio-bar .brand-icon {
  width: 28px;
  height: 28px;
}

body.studio .studio-file {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

body.studio .top-actions {
  flex-wrap: nowrap;
  gap: 8px;
}

body.studio .studio-track {
  min-width: 148px;
  width: 168px;
  flex: 0 0 auto;
}

body.studio .studio-track .combo-trigger {
  height: 36px;
  padding: 0 32px 0 12px;
  border-radius: 8px;
  font-size: 13px;
  background: #141414;
}

body.studio .studio-track .combo-panel {
  left: auto;
  right: 0;
  width: 220px;
  max-height: min(280px, 50vh);
  border-radius: 12px;
}

body.studio .studio-export {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.studio main {
  flex: 1;
  min-height: 0;
}

body.studio .workspace.studio-shell {
  margin: 0;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: minmax(0, 1fr) 72px minmax(180px, 28vh);
  grid-template-areas:
    "viewer inspector"
    "timeline inspector"
    "board inspector";
  gap: 0;
}

body.studio:not(.studio-ready) .studio-shell {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "viewer";
}

.studio-viewer {
  grid-area: viewer;
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  overflow: hidden;
  background: #050505;
}

body.studio:not(.studio-ready) .studio-viewer > .stage {
  width: 100%;
  height: 100%;
  flex: 1;
}

body.studio:not(.studio-ready) .player-wrap {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

body.studio:not(.studio-ready) .player-wrap .progress-card {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  transform: none;
  left: auto;
  top: auto;
  border-radius: inherit;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none;
  background: rgba(8, 8, 8, 0.9);
}

body.studio:not(.studio-ready) .player-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(8, 8, 8, 0.72);
  pointer-events: auto;
}

body.studio:not(.studio-ready) .k-player {
  opacity: 0;
  pointer-events: none;
}

body.studio.studio-ready .studio-viewer .progress-card {
  display: none;
}

body.studio.studio-ready .studio-viewer {
  align-items: center;
  justify-content: center;
}

body.studio .stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.studio .player-wrap {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  flex: 0 0 auto;
}

body.studio .player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.k-player {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.player-wrap:hover .k-player,
.player-wrap.is-paused .k-player,
.k-player:focus-within {
  opacity: 1;
}

.k-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff;
  border: 0;
  flex: 0 0 auto;
}

.k-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.player-wrap.is-playing .k-icon-play,
.player-wrap.is-paused .k-icon-pause,
.k-btn .k-icon-mute,
.k-btn.is-muted .k-icon-vol {
  display: none;
}

.player-wrap.is-paused .k-icon-play,
.player-wrap.is-playing .k-icon-pause,
.k-btn.is-muted .k-icon-mute {
  display: block;
}

.k-time {
  flex: 0 0 auto;
  font-size: 11px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  min-width: 86px;
}

.k-seek {
  flex: 1;
  min-width: 0;
  height: 4px;
  accent-color: var(--accent);
}

.k-vol {
  width: 72px;
  flex: 0 0 72px;
  height: 4px;
  accent-color: var(--accent);
}

.insp-fold {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c0c0c;
  overflow: hidden;
  flex: 0 0 auto;
  min-height: 0;
}

.insp-fold + .insp-fold {
  margin-top: 8px;
}

.insp-fold summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.insp-fold summary::-webkit-details-marker {
  display: none;
}

.insp-fold summary b {
  font-weight: 700;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 58%;
}

.insp-fold[open] summary {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  background: #0c0c0c;
}

.insp-fold[open] summary b {
  color: var(--ink);
}

.insp-fold[open] {
  flex: 1 1 0%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 255, 0, 0.4) transparent;
}

.insp-fold[open]::-webkit-scrollbar {
  width: 8px;
}

.insp-fold[open]::-webkit-scrollbar-thumb {
  background: rgba(215, 255, 0, 0.35);
  border-radius: 8px;
}

.insp-fold .style-grid,
.insp-fold .motion-grid,
.insp-fold .font-picker,
.insp-fold .tweak-grid {
  padding: 10px 10px 28px;
  margin: 0;
}

.insp-fold[open] .insp-scroll {
  min-height: 0;
  overflow: visible;
}

.studio-inspector {
  grid-area: inspector;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 14px 14px 20px;
  border-left: 1px solid var(--line);
  background: #101010;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.studio-inspector .studio-head,
.studio-inspector .export-card {
  flex: 0 0 auto;
}

body.studio .caption-studio {
  align-content: stretch;
}

body.studio .style-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.studio .style-card {
  min-height: 78px;
  padding: 8px;
}

.motion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 0;
}

.motion-card {
  width: 100%;
  height: auto;
  padding: 9px 10px;
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: start;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.motion-card.selected {
  border-color: var(--accent);
  background: rgba(215, 255, 0, 0.08);
}

.motion-card em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.studio-board {
  grid-area: board;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0c0c;
}

.script-expand-btn {
  display: none;
}

.studio-timeline-wrap {
  grid-area: timeline;
  min-width: 0;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
}

.studio-timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.studio-timeline-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.studio-timeline {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.tl-cue {
  flex: 1 0 72px;
  min-width: 72px;
  height: 52px;
  padding: 6px 8px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  background: #161616;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: start;
}

.tl-cue b {
  font-size: 11px;
  color: var(--accent);
}

.tl-cue span {
  font-size: 11px;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-cue.active {
  border-color: var(--accent);
  background: rgba(215, 255, 0, 0.1);
}

body.studio .columns {
  min-height: 0;
  gap: 0;
  overflow: hidden;
}

body.studio .columns article {
  min-height: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

body.studio .columns article:last-child {
  border-right: 0;
}

body.studio .script {
  max-height: none;
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body.studio .copy-tools {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}

body.studio .export-card {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  gap: 8px;
}

.studio-dock {
  display: none;
}

@media (max-width: 980px) {
  html:has(body.studio) {
    height: 100dvh;
    overflow: hidden;
  }

  body.studio {
    height: 100dvh;
    overflow: hidden;
  }

  body.studio .studio-bar .brand div {
    display: none;
  }

  body.studio .studio-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    padding-top: calc(6px + env(safe-area-inset-top));
  }

  body.studio .studio-bar .brand {
    flex: 0 0 auto;
  }

  body.studio .studio-file {
    flex: 1 1 0;
    min-width: 0;
    max-width: 28%;
    font-size: 11px;
  }

  @media (max-width: 360px) {
    body.studio .studio-file {
      display: none;
    }
  }

  body.studio .top-actions {
    display: flex;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 6px;
  }

  body.studio .studio-track {
    min-width: 0;
    width: 118px;
  }

  body.studio .studio-track .combo-trigger {
    height: 32px;
    font-size: 12px;
    padding: 0 28px 0 8px;
  }

  body.studio .studio-export {
    height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  body.studio .workspace.studio-shell,
  body.studio.studio-ready .workspace.studio-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 50dvh) 48px minmax(0, 1fr) auto;
    grid-template-areas:
      "viewer"
      "timeline"
      "tools"
      "dock";
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.studio:not(.studio-ready) .studio-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "viewer";
  }

  body.studio .studio-viewer {
    padding: 4px;
    min-height: 0;
  }

  body.studio.studio-ready .player-wrap {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
  }

  .k-vol {
    display: none;
  }

  body.studio .k-time {
    min-width: 72px;
    font-size: 10px;
  }

  .studio-timeline-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 8px;
    min-height: 0;
  }

  .studio-inspector,
  .studio-board {
    grid-area: tools;
    position: relative;
    max-height: none;
    height: 100%;
    min-height: 0;
    border-left: 0;
    border-top: 0;
  }

  .studio-inspector {
    padding: 8px 10px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .studio-board {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body.studio .columns {
    height: 100%;
    min-height: 0;
  }

  body.studio .columns article {
    min-height: 0;
    height: auto;
  }

  .studio-head {
    display: none;
  }

  .insp-fold {
    display: none;
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .insp-fold + .insp-fold {
    margin-top: 0;
  }

  .insp-fold summary {
    display: none;
  }

  body[data-dock="looks"] .insp-fold[data-fold="looks"],
  body[data-dock="motion"] .insp-fold[data-fold="motion"],
  body[data-dock="font"] .insp-fold[data-fold="font"],
  body[data-dock="type"] .insp-fold[data-fold="type"] {
    display: block;
    flex: none;
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .insp-fold[open] .insp-scroll {
    flex: none;
    min-height: 0;
    overflow: visible;
  }

  .insp-fold .tweak-grid,
  .insp-fold .motion-grid,
  .insp-fold .style-grid,
  .insp-fold .font-picker {
    padding-bottom: 28px;
  }

  body.studio:not(.studio-ready) .player-wrap .progress-card {
    padding: 12px 12px 10px;
    justify-content: flex-start;
  }

  body.studio:not(.studio-ready) .progress-card h2 {
    font-size: 18px;
    margin: 4px 0 10px;
  }

  body.studio:not(.studio-ready) .steps {
    margin-top: 10px;
    gap: 4px;
  }

  body.studio:not(.studio-ready) .steps li {
    padding: 4px 8px;
    font-size: 10px;
  }

  body[data-dock="script"] .studio-inspector {
    display: none;
  }

  body[data-dock="script"] .studio-board {
    display: block;
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  body.studio:not([data-dock="script"]) .studio-board {
    display: none;
  }

  body.studio .columns {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  body.studio .columns article {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.studio .columns article header {
    align-items: center;
    gap: 8px;
    padding: 12px 14px 0;
  }

  body.studio .columns article header h2 {
    font-size: 16px;
  }

  body.studio .columns article header #detected-lang,
  body.studio .columns article header #target-lang-label {
    margin-left: auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  body.studio .script {
    overflow: visible;
    flex: none;
    height: auto;
    max-height: none;
  }

  .script-expand-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    flex: 0 0 auto;
    background: #161616;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .script-expand-btn svg {
    width: 16px;
    height: 16px;
    display: block;
  }

  .script-expand-btn .script-icon-collapse,
  body.studio.script-full .script-expand-btn .script-icon-expand {
    display: none;
  }

  body.studio.script-full .script-expand-btn .script-icon-collapse {
    display: block;
  }

  body.studio.script-full .script-expand-btn {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(215, 255, 0, 0.12);
  }

  body.studio.script-full .studio-viewer,
  body.studio.script-full .studio-timeline-wrap {
    display: none;
  }

  body.studio.script-full.studio-ready .workspace.studio-shell {
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "tools"
      "dock";
  }

  .studio-dock {
    grid-area: dock;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 4px 6px calc(6px + env(safe-area-inset-bottom));
    background: #0c0c0c;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .studio-dock.hidden {
    display: none;
  }

  .dock-btn {
    height: 52px;
    padding: 4px 2px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    background: transparent;
    color: #8d8d84;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .dock-btn svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  .dock-btn.is-on {
    color: #0a0a0a;
    background: var(--accent);
  }

  body.studio .modal {
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    align-items: end;
  }

  body.studio .modal-card,
  body.studio .export-modal-card {
    width: 100%;
    max-height: min(88dvh, 100%);
    overflow: hidden;
  }

  body.studio .font-grid {
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
}
