:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: #fffaf2;
  --page-raised: #fffefb;
  --panel: #ffffff;
  --panel-soft: #f8f2e8;
  --panel-strong: #111820;
  --text: #17202b;
  --text-soft: #5f6874;
  --text-faint: #7d8590;
  --line: #e3ddd3;
  --line-strong: #cfc7bb;
  --accent: #087f78;
  --accent-strong: #05665f;
  --accent-soft: #d9f5ef;
  --accent-two: #ff6b42;
  --accent-two-soft: #ffeadf;
  --blue: #0759d8;
  --success: #067647;
  --warning: #b54708;
  --danger: #b42318;
  --focus: #0078e7;
  --shadow-sm: 0 2px 12px rgb(24 32 43 / 8%);
  --shadow-md: 0 18px 50px rgb(24 32 43 / 11%);
  --shadow-lg: 0 30px 80px rgb(24 32 43 / 16%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shell: 1180px;
}

html[data-theme="blue"] {
  --page: #eaf3ff;
  --page-raised: #f5f9ff;
  --panel: #ffffff;
  --panel-soft: #deecff;
  --panel-strong: #06306e;
  --text: #09264d;
  --text-soft: #496380;
  --text-faint: #647b96;
  --line: #bed5f2;
  --line-strong: #97bbe8;
  --accent: #0759d8;
  --accent-strong: #0649ae;
  --accent-soft: #d9e8ff;
  --accent-two: #00a67e;
  --accent-two-soft: #ccf6ea;
  --blue: #0759d8;
  --focus: #ff7a00;
  --shadow-sm: 0 2px 14px rgb(6 48 110 / 10%);
  --shadow-md: 0 18px 55px rgb(6 48 110 / 14%);
  --shadow-lg: 0 30px 90px rgb(6 48 110 / 20%);
}

html[data-theme="dark"] {
  --page: #0c1117;
  --page-raised: #111820;
  --panel: #151d26;
  --panel-soft: #1c2631;
  --panel-strong: #05080c;
  --text: #f1f5f8;
  --text-soft: #aeb9c5;
  --text-faint: #8996a5;
  --line: #2c3844;
  --line-strong: #41505f;
  --accent: #55d6c7;
  --accent-strong: #7de7da;
  --accent-soft: #153d3b;
  --accent-two: #ff906f;
  --accent-two-soft: #4b2a21;
  --blue: #73a9ff;
  --success: #47d18c;
  --warning: #ffb45f;
  --danger: #ff8b85;
  --focus: #8bc7ff;
  --shadow-sm: 0 2px 12px rgb(0 0 0 / 24%);
  --shadow-md: 0 18px 55px rgb(0 0 0 / 34%);
  --shadow-lg: 0 30px 90px rgb(0 0 0 / 46%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 2%, color-mix(in srgb, var(--accent-soft) 65%, transparent) 0, transparent 32rem),
    radial-gradient(circle at 94% 12%, color-mix(in srgb, var(--accent-two-soft) 60%, transparent) 0, transparent 26rem),
    var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-width: 320px;
  transition: background-color 180ms ease, color 180ms ease;
}

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

button,
select,
input[type="range"] {
  accent-color: var(--accent);
}

button,
a,
summary,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

img,
canvas,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.shell {
  margin-inline: auto;
  max-width: calc(var(--shell) + 48px);
  padding-inline: 24px;
  width: 100%;
}

.sr-only {
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

.skip-link {
  background: var(--panel-strong);
  border-radius: 0 0 8px 8px;
  color: #fff;
  left: 16px;
  padding: 10px 16px;
  position: fixed;
  top: -100px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--page) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  min-height: 72px;
}

.brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: 15px;
  font-weight: 780;
  gap: 10px;
  letter-spacing: -0.015em;
  text-decoration: none;
  width: max-content;
}

.brand img {
  border-radius: 10px;
  filter: drop-shadow(0 6px 12px rgb(8 127 120 / 18%));
}

.primary-nav {
  align-items: center;
  display: flex;
  gap: 28px;
}

.primary-nav a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--text);
}

.theme-switcher {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  gap: 2px;
  justify-self: end;
  padding: 3px;
}

.theme-choice {
  align-items: center;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  gap: 6px;
  min-height: 31px;
  padding: 5px 9px;
}

.theme-choice[aria-pressed="true"] {
  background: var(--panel);
  box-shadow: 0 1px 5px rgb(24 32 43 / 12%);
}

.theme-dot {
  border: 1px solid rgb(0 0 0 / 15%);
  border-radius: 50%;
  height: 13px;
  width: 13px;
}

.theme-dot-warm {
  background: #fff8ea;
}

.theme-dot-blue {
  background: #1672e8;
}

.theme-dot-dark {
  background: #111820;
}

.theme-label {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 720;
}

.theme-choice[aria-pressed="true"] .theme-label {
  color: var(--text);
}

.hero {
  align-items: center;
  display: grid;
  gap: 60px;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  min-height: 425px;
  padding-block: 76px 56px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  align-items: center;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.pulse-dot {
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
  height: 7px;
  width: 7px;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.97;
  margin: 20px 0 24px;
  max-width: 820px;
}

.hero-lead {
  color: var(--text-soft);
  font-size: clamp(19px, 2.1vw, 25px);
  letter-spacing: -0.022em;
  line-height: 1.42;
  margin: 0;
  max-width: 720px;
}

.hero-proof {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.hero-proof span {
  align-items: center;
  color: var(--text-soft);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

.hero-proof svg {
  fill: none;
  height: 17px;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 17px;
}

.hero-mark {
  height: 270px;
  justify-self: end;
  position: relative;
  width: 330px;
}

.hero-frame {
  align-items: center;
  aspect-ratio: 1.35;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: center;
  position: absolute;
  width: 200px;
}

.hero-frame span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.hero-frame-back {
  background: var(--accent-two-soft);
  color: var(--accent-two);
  left: 15px;
  top: 66px;
  transform: rotate(-12deg);
}

.hero-frame-mid {
  background: var(--accent-soft);
  color: var(--accent);
  left: 62px;
  top: 35px;
  transform: rotate(-3deg);
}

.hero-frame-front {
  background: linear-gradient(145deg, var(--accent), var(--blue));
  color: #fff;
  left: 112px;
  top: 62px;
  transform: rotate(7deg);
}

.hero-frame-front svg {
  fill: currentColor;
  filter: drop-shadow(0 7px 13px rgb(0 0 0 / 16%));
  width: 68px;
}

.orbit {
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 50%;
  position: absolute;
}

.orbit::after {
  background: var(--accent-two);
  border-radius: 50%;
  content: "";
  height: 8px;
  position: absolute;
  right: 28px;
  top: 4px;
  width: 8px;
}

.orbit-one {
  height: 260px;
  left: 34px;
  top: 4px;
  transform: rotate(20deg);
  width: 260px;
}

.orbit-two {
  height: 210px;
  left: 72px;
  top: 30px;
  transform: rotate(-34deg);
  width: 210px;
}

.viewer-section {
  margin-bottom: 44px;
}

.viewer-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.drop-state {
  align-items: center;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-two)) border-box;
  border: 2px dashed transparent;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  margin: 12px;
  min-height: 430px;
  padding: 54px 24px;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.drop-state.is-dragging {
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-two)) border-box;
  transform: scale(0.995);
}

.drop-visual {
  align-items: center;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent-two-soft));
  border-radius: 26px;
  display: flex;
  height: 110px;
  justify-content: center;
  margin-bottom: 26px;
  position: relative;
  width: 136px;
}

.drop-visual > svg {
  fill: none;
  height: 54px;
  position: relative;
  stroke: var(--accent-strong);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 54px;
  z-index: 2;
}

.mini-frame {
  border: 2px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 9px;
  height: 45px;
  position: absolute;
  width: 58px;
}

.mini-frame-one {
  left: 7px;
  top: 14px;
  transform: rotate(-10deg);
}

.mini-frame-two {
  bottom: 11px;
  right: 5px;
  transform: rotate(9deg);
}

.drop-kicker {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 0 0 10px;
}

.drop-note {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
}

.drop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  justify-content: center;
  margin-top: 28px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 760;
  gap: 9px;
  justify-content: center;
  min-height: 48px;
  padding: 11px 19px;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

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

.button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 19px;
}

.button-primary {
  background: var(--accent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 24%, transparent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-strong);
}

html[data-theme="dark"] .button-primary {
  color: #06100f;
}

.button-secondary,
.button-quiet {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--text);
}

.button-secondary:hover,
.button-quiet:hover {
  background: var(--panel-soft);
  border-color: var(--accent);
}

.button-inverse {
  background: #fff;
  color: #0a5c58;
}

.button-small {
  min-height: 42px;
  padding: 9px 13px;
}

.drop-limit {
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 650;
  margin: 18px 0 0;
}

.viewer-workspace {
  min-height: 680px;
}

.file-bar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 74px;
  padding: 13px 18px;
}

.file-identity,
.file-actions {
  align-items: center;
  display: flex;
}

.file-identity {
  gap: 11px;
  min-width: 0;
}

.file-icon {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 9px;
  color: var(--accent-strong);
  display: flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 850;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.file-identity p {
  margin: 0;
}

#file-name {
  font-size: 14px;
  font-weight: 760;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#file-summary {
  color: var(--text-faint);
  font-size: 12px;
}

.file-actions {
  gap: 13px;
}

.local-badge {
  align-items: center;
  background: color-mix(in srgb, var(--success) 11%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--success) 28%, var(--line));
  border-radius: 999px;
  color: var(--success);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  padding: 4px 9px;
  text-transform: uppercase;
}

.local-badge span {
  background: var(--success);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.icon-text-button,
.text-button {
  align-items: center;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  gap: 7px;
  padding: 7px;
}

.icon-text-button:hover,
.text-button:hover {
  color: var(--text);
}

.icon-text-button svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
}

.preview-column {
  border-right: 1px solid var(--line);
  min-width: 0;
  padding: 18px;
}

.preview-stage {
  align-items: center;
  background-color: #d9d9d9;
  border: 1px solid var(--line);
  border-radius: 17px;
  display: flex;
  height: clamp(320px, 46vw, 520px);
  justify-content: center;
  overflow: auto;
  position: relative;
}

.checkerboard {
  background-color: #e4e4e4;
  background-image:
    linear-gradient(45deg, #c8c8c8 25%, transparent 25%),
    linear-gradient(-45deg, #c8c8c8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #c8c8c8 75%),
    linear-gradient(-45deg, transparent 75%, #c8c8c8 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.preview-stage.background-light {
  background: #fff;
}

.preview-stage.background-black {
  background: #050505;
}

#viewer-canvas,
#native-preview {
  height: auto;
  max-height: calc(100% - 36px);
  max-width: calc(100% - 36px);
  object-fit: contain;
  width: auto;
}

.preview-stage[data-zoom="0.5"] #viewer-canvas,
.preview-stage[data-zoom="0.5"] #native-preview {
  max-height: none;
  max-width: none;
  width: 50%;
}

.preview-stage[data-zoom="1"] #viewer-canvas,
.preview-stage[data-zoom="1"] #native-preview {
  max-height: none;
  max-width: none;
  width: auto;
}

.preview-stage[data-zoom="2"] #viewer-canvas,
.preview-stage[data-zoom="2"] #native-preview {
  max-height: none;
  max-width: none;
  width: auto;
  transform: scale(2);
  transform-origin: center;
}

.preview-stage:fullscreen {
  border: 0;
  border-radius: 0;
  height: 100vh;
}

.viewer-loading {
  align-items: center;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  left: 50%;
  padding: 9px 13px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  animation: spin 750ms linear infinite;
  border: 2px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  border-top-color: #fff;
  height: 16px;
  width: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.frame-chip {
  background: rgb(5 8 12 / 78%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  bottom: 13px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  left: 13px;
  padding: 5px 9px;
  position: absolute;
}

.preview-tools {
  align-items: center;
  display: flex;
  gap: 18px;
  min-height: 52px;
  padding-top: 9px;
}

.compact-field,
.background-picker {
  align-items: center;
  color: var(--text-faint);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 7px;
}

.compact-field select,
.speed-field select {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  min-height: 32px;
  padding: 4px 25px 4px 8px;
}

.background-choice {
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  height: 22px;
  padding: 0;
  width: 22px;
}

.background-choice.is-active {
  box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent);
}

.bg-grid {
  background-color: #eee;
  background-image:
    linear-gradient(45deg, #bbb 25%, transparent 25%),
    linear-gradient(-45deg, #bbb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #bbb 75%),
    linear-gradient(-45deg, transparent 75%, #bbb 75%);
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-size: 10px 10px;
}

.bg-light {
  background: #fff;
}

.bg-black {
  background: #050505;
}

.push-right {
  margin-left: auto;
}

.playback-controls {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 6px;
  min-height: 72px;
  padding: 9px 11px;
}

.control-button,
.play-button {
  align-items: center;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
}

.control-button {
  color: var(--text-soft);
  height: 38px;
  width: 34px;
}

.control-button:hover {
  background: var(--panel);
  color: var(--text);
}

.control-button svg,
.play-button svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 21px;
}

.play-button {
  background: var(--panel-strong);
  color: #fff;
  height: 42px;
  margin-inline: 2px;
  width: 42px;
}

.play-button .play-icon {
  fill: currentColor;
  stroke: none;
}

.play-button.is-playing .play-icon {
  display: none;
}

.play-button:not(.is-playing) .pause-icon {
  display: none;
}

.timeline-control {
  flex: 1 1 240px;
  min-width: 140px;
  padding-inline: 7px;
}

.timeline-control input {
  cursor: pointer;
  display: block;
  margin: 2px 0 4px;
  width: 100%;
}

.timeline-labels {
  color: var(--text-faint);
  display: grid;
  font-family: var(--font-mono);
  font-size: 9px;
  grid-template-columns: 1fr auto 1fr;
}

.timeline-labels span:last-child {
  text-align: right;
}

#frame-current {
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-weight: 750;
}

.speed-field {
  display: flex;
}

.loop-toggle {
  align-items: center;
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 5px;
  padding: 5px;
}

.loop-toggle input {
  height: 15px;
  margin: 0;
  width: 15px;
}

.playback-controls.is-disabled {
  opacity: 0.46;
  pointer-events: none;
}

.compatibility-note {
  align-items: flex-start;
  background: color-mix(in srgb, var(--warning) 10%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--warning) 28%, var(--line));
  border-radius: 11px;
  color: var(--text-soft);
  display: flex;
  font-size: 12px;
  gap: 9px;
  margin-top: 9px;
  padding: 10px 12px;
}

.compatibility-note svg {
  fill: none;
  flex: 0 0 auto;
  height: 19px;
  stroke: var(--warning);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 19px;
}

.compatibility-note p {
  margin: 0;
}

.inspector {
  background: color-mix(in srgb, var(--panel-soft) 45%, var(--panel));
  padding: 22px;
}

.inspector-heading,
.detail-title,
.strip-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.section-label {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.inspector h3,
.strip-heading h3 {
  font-size: 18px;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.status-pill {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 850;
  padding: 4px 8px;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 21px 0 18px;
  overflow: hidden;
}

.stats-grid div {
  background: var(--panel);
  border: 1px solid var(--line);
  margin: 0 -1px -1px 0;
  min-width: 0;
  padding: 12px;
}

.stats-grid div:first-child {
  border-radius: 11px 0 0;
}

.stats-grid div:nth-child(2) {
  border-radius: 0 11px 0 0;
}

.stats-grid div:nth-last-child(2) {
  border-radius: 0 0 0 11px;
}

.stats-grid div:last-child {
  border-radius: 0 0 11px;
}

.stats-grid dt,
.detail-list dt {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 3px;
}

.stats-grid dd {
  font-size: 14px;
  font-weight: 780;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-detail-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 12px;
  padding: 14px;
}

.detail-title {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.detail-title h4 {
  font-size: 13px;
  margin: 0;
}

.detail-title span {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.detail-list div {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.detail-list dt {
  margin: 0;
}

.detail-list dd {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.chunk-details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 15px;
  padding: 0 13px;
}

.chunk-details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  padding: 11px 0;
}

.chunk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 2px 0 8px;
}

.chunk-list span {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 6px;
}

.metadata-features {
  color: var(--text-faint);
  font-size: 10px;
  margin: 0 0 11px;
}

.export-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 0.8fr;
}

.export-actions .text-button {
  grid-column: 1 / -1;
  justify-content: center;
}

.frame-strip-section {
  border-top: 1px solid var(--line);
  padding: 18px;
}

.strip-heading {
  align-items: flex-end;
  margin-bottom: 12px;
}

.strip-heading > p {
  color: var(--text-faint);
  font-size: 11px;
  margin: 0;
}

.frame-strip {
  display: flex;
  gap: 8px;
  min-height: 105px;
  overflow-x: auto;
  padding: 3px 3px 10px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.frame-cell {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  flex: 0 0 88px;
  overflow: hidden;
  padding: 5px;
  text-align: left;
}

.frame-cell:hover {
  border-color: var(--accent);
}

.frame-cell.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}

.frame-cell canvas {
  background-color: #ddd;
  background-image:
    linear-gradient(45deg, #bbb 25%, transparent 25%),
    linear-gradient(-45deg, #bbb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #bbb 75%),
    linear-gradient(-45deg, transparent 75%, #bbb 75%);
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-size: 10px 10px;
  border-radius: 6px;
  height: 56px;
  object-fit: contain;
  width: 100%;
}

.frame-cell strong,
.frame-cell span {
  display: block;
}

.frame-cell strong {
  font-size: 9px;
  margin-top: 4px;
}

.frame-cell span {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.frame-cell.frame-cell-more {
  align-items: center;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.status-region {
  background: var(--panel-strong);
  border-radius: 10px;
  bottom: 20px;
  box-shadow: var(--shadow-md);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  left: 50%;
  max-width: calc(100% - 40px);
  opacity: 0;
  padding: 10px 14px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 200;
}

.status-region.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.status-region.is-error {
  background: var(--danger);
}

.trust-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 38px 96px;
}

.trust-strip article {
  align-items: flex-start;
  background: color-mix(in srgb, var(--panel) 73%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  gap: 13px;
  padding: 18px;
}

.trust-strip svg {
  fill: none;
  flex: 0 0 auto;
  height: 29px;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 29px;
}

.trust-strip h2 {
  font-size: 14px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.trust-strip p {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.content-section {
  margin-block: 96px;
}

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

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

.eyebrow-text {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.section-intro h2,
.comparison-card h2,
.final-cta h2 {
  font-size: clamp(31px, 4.3vw, 50px);
  letter-spacing: -0.052em;
  line-height: 1.06;
  margin: 0 0 16px;
}

.section-intro > p:not(.eyebrow-text),
.comparison-card p,
.final-cta p {
  color: var(--text-soft);
  font-size: 17px;
  margin: 0;
}

.section-intro.align-left > p:not(.eyebrow-text) + p {
  margin-top: 16px;
}

.steps {
  counter-reset: none;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  min-height: 240px;
  padding: 25px;
  position: relative;
}

.step-number {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.steps h3 {
  font-size: 22px;
  letter-spacing: -0.035em;
  margin: 55px 0 10px;
}

.steps p {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0;
}

.split-content {
  align-items: center;
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
}

.format-diagram {
  background: var(--panel-strong);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  color: #fff;
  font-family: var(--font-mono);
  padding: 20px;
  transform: rotate(1.2deg);
}

.diagram-header,
.diagram-footer,
.diagram-row,
.diagram-stack > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.diagram-header {
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  color: #8ba0b2;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 4px 13px;
}

.diagram-row {
  border-radius: 10px;
  font-size: 12px;
  margin-top: 9px;
  padding: 12px;
}

.diagram-row span,
.diagram-stack span {
  color: rgb(255 255 255 / 67%);
  font-size: 10px;
}

.accent-one {
  background: color-mix(in srgb, var(--accent) 42%, #111820);
}

.accent-two {
  background: color-mix(in srgb, var(--accent-two) 42%, #111820);
}

.diagram-stack {
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 12px;
  margin-top: 9px;
  padding: 6px 11px;
}

.diagram-stack > div {
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  font-size: 11px;
  padding: 8px 1px;
}

.diagram-stack > div:last-child {
  border-bottom: 0;
}

.diagram-footer {
  gap: 8px;
  justify-content: flex-start;
  padding-top: 10px;
}

.diagram-footer span {
  background: rgb(255 255 255 / 9%);
  border-radius: 6px;
  color: #95a7b6;
  font-size: 9px;
  padding: 3px 7px;
}

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

.troubleshooting-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 23px;
}

.platform-tag {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-block;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  padding: 4px 8px;
  text-transform: uppercase;
}

.troubleshooting-grid h3 {
  font-size: 19px;
  letter-spacing: -0.025em;
  margin: 17px 0 7px;
}

.troubleshooting-grid p {
  color: var(--text-soft);
  font-size: 13px;
  margin: 0;
}

.comparison-card {
  align-items: center;
  background: linear-gradient(135deg, var(--panel-strong), color-mix(in srgb, var(--panel-strong) 75%, var(--accent)));
  border-radius: 26px;
  color: #fff;
  display: grid;
  gap: 55px;
  grid-template-columns: minmax(0, 0.85fr) minmax(430px, 1.15fr);
  padding: clamp(28px, 5vw, 62px);
}

.comparison-card .eyebrow-text {
  color: #75e3d6;
}

.comparison-card p {
  color: rgb(255 255 255 / 72%);
  font-size: 15px;
}

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-card table {
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
}

.comparison-card th,
.comparison-card td {
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  padding: 12px 10px;
  text-align: left;
}

.comparison-card thead th {
  color: rgb(255 255 255 / 58%);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-card tbody th {
  color: rgb(255 255 255 / 67%);
  font-weight: 600;
}

.comparison-card td {
  font-weight: 750;
}

.faq-section {
  max-width: 920px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 760;
  list-style: none;
  padding: 20px 44px 20px 0;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  content: "+";
  display: flex;
  font-size: 19px;
  font-weight: 400;
  height: 29px;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 18px;
  width: 29px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  color: var(--text-soft);
  font-size: 14px;
  margin: -7px 0 22px;
  max-width: 800px;
}

.final-cta {
  background: var(--accent);
  color: #fff;
  margin-top: 110px;
}

.final-cta-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 280px;
}

.final-cta .eyebrow-text {
  color: #c9fff8;
}

.final-cta h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  margin-bottom: 10px;
}

.final-cta p {
  color: rgb(255 255 255 / 78%);
}

.site-footer {
  background: var(--panel-strong);
  color: #fff;
  padding: 62px 0 22px;
}

.footer-grid {
  display: grid;
  gap: 50px;
  grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(125px, 0.6fr));
}

.footer-brand {
  color: #fff;
}

.footer-grid > div:first-child > p {
  color: rgb(255 255 255 / 55%);
  font-size: 13px;
  margin: 17px 0 0;
  max-width: 370px;
}

.footer-grid h2 {
  color: rgb(255 255 255 / 46%);
  font-size: 10px;
  letter-spacing: 0.1em;
  margin: 0 0 13px;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a:not(.brand) {
  color: rgb(255 255 255 / 75%);
  font-size: 12px;
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 11%);
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 20px;
}

.footer-bottom p {
  color: rgb(255 255 255 / 42%);
  font-size: 10px;
  margin: 0;
}

/* Legal and support pages */
.subpage-main {
  min-height: 70vh;
  padding-block: 74px 100px;
}

.subpage-hero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
  padding-bottom: 42px;
}

.subpage-hero h1 {
  font-size: clamp(42px, 7vw, 70px);
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 15px 0 18px;
}

.subpage-hero > p:not(.eyebrow-text) {
  color: var(--text-soft);
  font-size: 18px;
  margin: 0;
  max-width: 720px;
}

.legal-layout {
  display: grid;
  gap: 60px;
  grid-template-columns: 210px minmax(0, 740px);
}

.legal-nav {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 100px;
}

.legal-nav a {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.legal-content section + section {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 28px;
}

.legal-content h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}

.legal-content h3 {
  font-size: 16px;
  margin: 24px 0 7px;
}

.legal-content p,
.legal-content li {
  color: var(--text-soft);
  font-size: 14px;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-callout {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 15px;
  color: var(--text);
  margin-bottom: 32px;
  padding: 18px;
}

.legal-callout strong {
  display: block;
  margin-bottom: 5px;
}

.legal-callout p {
  color: var(--text-soft);
  margin: 0;
}

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

.feedback-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 24px;
}

.feedback-card h2 {
  font-size: 21px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.feedback-card p {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0 0 18px;
}

.report-checklist {
  background: var(--panel-soft);
  border-radius: 15px;
  margin-top: 30px;
  padding: 22px;
}

.report-checklist h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.report-checklist ol {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0;
  padding-left: 20px;
}

.feedback-privacy-note {
  margin-top: 30px;
}

.not-found {
  align-items: center;
  display: flex;
  min-height: 65vh;
  text-align: center;
}

.not-found-inner {
  margin: auto;
  max-width: 620px;
}

.not-found-code {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.not-found h1 {
  font-size: clamp(45px, 8vw, 76px);
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 13px 0 18px;
}

.not-found p {
  color: var(--text-soft);
  margin: 0 auto 28px;
}

@media (max-width: 1000px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .hero {
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .hero-mark {
    transform: scale(0.82);
    transform-origin: right center;
  }

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

  .preview-column {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

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

  .inspector-heading,
  .stats-grid {
    grid-column: 1 / -1;
  }

  .frame-detail-card,
  .chunk-details {
    margin: 0;
  }

  .export-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .export-actions .text-button {
    grid-column: auto;
  }

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

@media (max-width: 760px) {
  .shell {
    padding-inline: 16px;
  }

  .header-inner {
    gap: 10px;
    min-height: 64px;
  }

  .brand {
    font-size: 0;
    min-width: 40px;
  }

  .brand img {
    height: 36px;
    width: 36px;
  }

  .theme-label {
    display: none;
  }

  .theme-choice {
    padding: 7px;
  }

  .theme-dot {
    height: 15px;
    width: 15px;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-block: 56px 38px;
  }

  .hero h1 {
    font-size: clamp(47px, 14vw, 68px);
  }

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

  .hero-mark {
    display: none;
  }

  .hero-proof {
    gap: 12px 18px;
  }

  .viewer-card {
    border-radius: 20px;
  }

  .drop-state {
    min-height: 390px;
    padding: 42px 16px;
  }

  .drop-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .drop-actions .button {
    width: 100%;
  }

  .file-bar {
    align-items: flex-start;
  }

  .local-badge {
    display: none;
  }

  #file-name {
    max-width: 180px;
  }

  .preview-column {
    padding: 10px;
  }

  .preview-stage {
    border-radius: 13px;
    height: 370px;
  }

  .preview-tools {
    flex-wrap: wrap;
    gap: 9px 14px;
    padding: 9px 3px;
  }

  .push-right {
    margin-left: 0;
  }

  .playback-controls {
    flex-wrap: wrap;
    padding: 9px;
  }

  .timeline-control {
    flex-basis: calc(100% - 136px);
    order: -1;
  }

  .speed-field {
    margin-left: auto;
  }

  .inspector {
    display: block;
    padding: 18px;
  }

  .inspector-heading,
  .stats-grid,
  .frame-detail-card,
  .chunk-details {
    margin-bottom: 13px;
  }

  .export-actions {
    grid-template-columns: 1fr 1fr;
  }

  .export-actions .text-button {
    grid-column: 1 / -1;
  }

  .strip-heading {
    align-items: flex-start;
    display: block;
  }

  .strip-heading > p {
    margin-top: 5px;
  }

  .trust-strip,
  .steps,
  .troubleshooting-grid,
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-bottom: 74px;
  }

  .content-section {
    margin-block: 76px;
  }

  .steps li {
    min-height: 210px;
  }

  .steps h3 {
    margin-top: 35px;
  }

  .split-content {
    gap: 42px;
    grid-template-columns: 1fr;
  }

  .format-diagram {
    transform: none;
  }

  .comparison-card {
    gap: 36px;
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 50px;
  }

  .final-cta .button {
    margin-top: 25px;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-brand {
    font-size: 15px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom p + p {
    margin-top: 6px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    display: none;
  }
}

@media (max-width: 460px) {
  .hero h1 {
    font-size: 48px;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .drop-visual {
    height: 96px;
    width: 120px;
  }

  .file-actions .icon-text-button {
    font-size: 0;
  }

  .file-actions .icon-text-button svg {
    height: 20px;
    width: 20px;
  }

  .preview-stage {
    height: 315px;
  }

  .background-picker > span {
    display: none;
  }

  .timeline-control {
    flex-basis: 100%;
    order: -2;
  }

  .playback-controls {
    justify-content: center;
  }

  .speed-field {
    margin-left: 10px;
  }

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

  .footer-grid {
    gap: 34px;
  }
}

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

  .spinner {
    animation-duration: 1.5s;
  }
}
