:root {
  color-scheme: light;
  --bg: #f3f3f8;
  --card: rgba(255, 255, 255, 0.96);
  --card-solid: #ffffff;
  --line: rgba(0, 0, 0, 0.06);
  --line-strong: rgba(0, 0, 0, 0.1);
  --text: #111114;
  --muted: #8e8e93;
  --muted-strong: #6b6b73;
  --blue: #0b8cff;
  --blue-strong: #0878e2;
  --shadow: 0 12px 28px rgba(17, 17, 20, 0.07);
  --shadow-soft: 0 6px 16px rgba(17, 17, 20, 0.04);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(11, 140, 255, 0.05), transparent 22%),
    linear-gradient(180deg, #f7f7fc 0%, var(--bg) 100%);
  font-family: var(--font-body);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

#app {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-shell__content {
  flex: 1 0 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.app-shell__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.app-shell__notice-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 0 2px;
}

.editor-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.top-header__brand {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: var(--font-body);
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  color: inherit;
}

.top-header__brand-part {
  color: var(--text);
}

.top-header__brand-part--strong {
  font-weight: 700;
}

.button {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease,
    opacity 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 12px rgba(11, 140, 255, 0.14);
}

.button-ghost {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(17, 17, 20, 0.04);
}

.button-ghost:hover {
  background: #fff;
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button .icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.compliance-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border-color: rgba(11, 140, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(11, 140, 255, 0.08), rgba(11, 140, 255, 0.03)),
    rgba(255, 255, 255, 0.95);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  animation: compliance-banner-enter 240ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top center;
}

.compliance-banner__body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.compliance-banner__title {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.compliance-banner__text {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.93rem;
  line-height: 1.5;
}

.compliance-banner__button {
  flex: 0 0 auto;
  margin-top: 1px;
}

.compliance-banner__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.compliance-banner__link {
  color: var(--blue-strong);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
}

.compliance-banner__link:hover {
  text-decoration: underline;
}

.compliance-banner.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

@keyframes compliance-banner-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  flex: 0 0 auto;
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto 24px;
  padding: 0 2px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 14px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.site-footer__brand {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.site-footer__link {
  color: var(--blue-strong);
  text-decoration: none;
  font-weight: 650;
}

.site-footer__link:hover {
  text-decoration: underline;
}

.site-footer__meta {
  color: var(--muted);
}

.imprint-page {
  padding: 24px;
}

.imprint-page__eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.imprint-page__title {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.imprint-page__lead {
  margin: 14px 0 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.imprint-page__content {
  margin-top: 22px;
  display: grid;
  gap: 6px;
  color: var(--text);
  line-height: 1.6;
}

.imprint-page__content p {
  margin: 0;
}

.upload-hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  border-color: rgba(0, 0, 0, 0.06);
  background: #fcfbf8;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.06);
}

.upload-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(170, 170, 170, 0.18) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
}

.upload-hero::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.upload-hero.is-dragging {
  border-color: rgba(11, 140, 255, 0.22);
}

.upload-hero__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "cta"
    "visual";
  gap: 18px;
  align-items: start;
}

.upload-hero__copy {
  max-width: 520px;
  padding: 4px 2px;
  grid-area: copy;
}

.upload-hero__title {
  margin: 14px 0 0;
  max-width: 9ch;
  white-space: pre-line;
  color: var(--text);
  font-size: clamp(2.8rem, 5.5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.upload-hero__subtitle {
  max-width: 26rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.52;
}

.upload-hero__button {
  width: min(320px, 100%);
  min-width: 260px;
  min-height: 52px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(11, 140, 255, 0.12);
}

.upload-hero__helper {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.upload-hero__visual-card {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  margin-top: 0;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.055);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(17, 17, 20, 0.045);
  grid-area: visual;
  overflow: hidden;
}

.visual-demo-card {
  overflow: hidden;
}

.upload-hero__visual-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: rgba(17, 17, 20, 0.95);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.upload-hero__visual-labels p:last-child {
  text-align: right;
  color: rgba(142, 142, 147, 0.88);
}

.upload-hero__visual-grid {
  margin-top: 16px;
}

.upload-hero__visual-row {
  display: grid;
  gap: 18px;
  align-items: center;
  width: 100%;
}

.upload-hero__visual-column {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.upload-hero__visual-column--input {
  justify-items: start;
}

.upload-hero__visual-column--output {
  justify-items: start;
}

.visual-demo-label {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.visual-demo-label--input {
  color: rgba(17, 17, 20, 0.95);
}

.visual-demo-label--output {
  color: rgba(142, 142, 147, 0.88);
}

.upload-hero__input-frame {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #dbe4ef;
}

.input-preview {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 3;
}

.upload-hero__input-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-hero__arrow {
  display: flex;
  width: 28px;
  align-items: center;
  justify-content: center;
  color: #6a4dff;
  transition: transform 160ms ease;
}

.upload-hero__arrow .icon {
  width: 24px;
  height: 24px;
}

.upload-hero__slides {
  display: flex;
  width: 100%;
  max-width: 210px;
  justify-content: flex-start;
  gap: 10px;
}

.output-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.upload-hero__slide {
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background-color: #dbe4ef;
  background-repeat: no-repeat;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  transition: transform 140ms ease;
}

.output-slide {
  flex: 0 0 auto;
  width: 62px;
  min-width: 0;
  aspect-ratio: 9 / 16;
}

.upload-hero__slide:hover {
  transform: scale(1.02);
}

.upload-hero__slide-number {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.upload-hero__footer {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.4;
}

.upload-hero__footer span:last-child {
  text-align: right;
}

.upload-hero__cta-row {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  grid-area: cta;
}

.editor-toolbar {
  min-height: 60px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.editor-toolbar__title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.editor-toolbar__button {
  min-width: 150px;
}

.preview-card {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.preview-card__header {
  display: grid;
  gap: 4px;
}

.preview-card__eyebrow,
.section-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.preview-card__subhead {
  color: var(--muted);
  font-size: 0.95rem;
}

.preview-card__frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #f8f8fc;
  overflow: hidden;
}

.preview-card__frame--panorama {
  min-width: 0;
  aspect-ratio: 16 / 9;
  min-height: 250px;
  max-height: 420px;
}

.preview-card__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.preview-card__canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.export-preview-card {
  min-width: 0;
}

.export-preview-stage {
  position: relative;
  min-height: 300px;
  padding: 14px 12px 12px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #f8f8fc;
  overflow: hidden;
}

.export-preview-stage::before,
.export-preview-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  z-index: 1;
}

.export-preview-stage::before {
  left: 0;
  background: linear-gradient(90deg, #f8f8fc 20%, rgba(248, 248, 252, 0));
}

.export-preview-stage::after {
  right: 0;
  background: linear-gradient(270deg, #f8f8fc 20%, rgba(248, 248, 252, 0));
}

.export-preview-scroll {
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.export-preview-scroll::-webkit-scrollbar {
  display: none;
}

.export-strip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: max-content;
}

.export-segment {
  flex: 0 0 120px;
  scroll-snap-align: start;
}

.segment-thumb {
  margin: 0;
  display: grid;
  gap: 8px;
}

.segment-thumb__canvas {
  width: 120px;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  object-fit: cover;
}

.segment-thumb__label {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.empty-state {
  color: var(--muted);
  font-size: 0.98rem;
  padding: 10px 2px 2px;
}

.export-options-card {
  padding: 20px 24px;
  display: grid;
  gap: 14px;
}

.export-options-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.control-block--cut-mode,
.control-block--segments {
  min-width: 0;
}

.control-block {
  display: grid;
  gap: 8px;
}

.control-block__label {
  color: var(--muted-strong);
  font-size: 0.79rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.control-block--nested {
  margin-top: 2px;
}

.segmented-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  border-radius: 14px;
  background: #f1f2f8;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.segmented-choice__item {
  min-height: 40px;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font-weight: 650;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.segmented-choice__item.is-active {
  background: #fff;
  box-shadow: 0 3px 10px rgba(17, 17, 20, 0.08);
}

.switch-control {
  min-height: 42px;
  padding: 2px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.switch-control__text {
  display: grid;
  gap: 3px;
}

.switch-control__label {
  font-size: 0.98rem;
  font-weight: 650;
}

.switch-control__description {
  color: var(--muted);
  font-size: 0.9rem;
}

.switch-control--compact {
  grid-column: auto;
  min-height: 40px;
  padding: 0;
}

.switch-control--compact .switch-control__label {
  font-size: 0.94rem;
}

.switch-control input {
  appearance: none;
  width: 52px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d9dbe6;
  position: relative;
  transition: background-color 160ms ease;
  box-shadow: inset 0 1px 1px rgba(17, 17, 20, 0.08);
}

.switch-control input::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(17, 17, 20, 0.18);
  transition: transform 160ms ease;
}

.switch-control input:checked {
  background: #6ed36c;
}

.switch-control input:checked::after {
  transform: translateX(20px);
}

.stepper-control {
  display: grid;
  gap: 8px;
}

.stepper-control__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper-control__button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(17, 17, 20, 0.04);
  transition:
    transform 140ms ease,
    opacity 160ms ease,
    background-color 140ms ease;
}

.stepper-control__button:hover {
  transform: translateY(-0.5px);
}

.stepper-control__button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.stepper-control__value {
  width: 48px;
  flex: 0 0 48px;
  text-align: center;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.control-block--segments {
  gap: 10px;
}

.primary-action-bar {
  position: sticky;
  bottom: 14px;
  z-index: 30;
  width: 100%;
  max-width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 18px rgba(17, 17, 20, 0.07);
  backdrop-filter: blur(14px);
}

.primary-action-bar__status {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.primary-action-bar__eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 650;
}

.primary-action-bar__text {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.primary-action-bar__download-link {
  display: inline-flex;
  margin-top: 4px;
  color: var(--blue-strong);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-action-bar__download-link:hover {
  text-decoration: underline;
}

.editor-workbench {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.editor-workbench > .preview-card {
  min-width: 0;
}

.primary-action-bar__button {
  min-width: 190px;
}

.export-save-panel {
  padding: 18px 20px;
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.export-save-panel__eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
}

.export-save-panel__title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.export-save-panel__body {
  display: grid;
  gap: 10px;
}

.export-save-panel__button {
  width: 100%;
}

.export-save-panel__hint {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.5;
}

.export-save-panel__fallback {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.export-save-panel__fallback-summary {
  color: var(--blue-strong);
  font-weight: 700;
  cursor: pointer;
}

.export-save-panel__fallback-body {
  display: grid;
  gap: 10px;
}

.export-save-panel__fallback-text {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.45;
}

.export-save-panel__fallback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.export-save-panel__fallback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1f2f8;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.export-save-panel__fallback-link:hover {
  background: #e9ebf4;
}

.fatal-error {
  width: min(720px, calc(100% - 32px));
  margin: 40px auto;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

@media (min-width: 1100px) {
  .upload-hero__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "copy visual"
      "cta cta";
    column-gap: 40px;
    row-gap: 18px;
    align-items: center;
  }

  .upload-hero__copy {
    align-self: start;
  }

  .upload-hero__visual-card {
    justify-self: end;
  }

  .upload-hero__visual-row {
    grid-template-columns: 210px 24px 206px;
    gap: 12px;
    align-items: center;
  }

  .upload-hero__input-frame {
    width: 210px;
    max-width: 210px;
  }

  .input-preview {
    width: 210px;
    max-width: 210px;
  }

  .upload-hero__visual-column--output {
    width: 206px;
  }

  .upload-hero__slides,
  .output-strip {
    width: 206px;
    max-width: 206px;
    justify-content: flex-start;
    overflow: visible;
  }

  .output-slide {
    width: 62px;
    flex: 0 0 62px;
  }

  .editor-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 14px;
    align-items: start;
  }

  .editor-workbench > .preview-card {
    min-width: 0;
  }

  .editor-workbench > .preview-card:first-child .preview-card__frame--panorama {
    min-height: 268px;
  }

  .editor-workbench > .preview-card:last-child .export-preview-stage {
    min-height: 310px;
  }

  .export-options-card__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 1099px) {
  .upload-hero__panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "cta"
      "visual";
    gap: 16px;
  }

  .upload-hero__visual-card {
    max-width: 100%;
    justify-self: stretch;
  }

  .upload-hero__visual-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .upload-hero__input-frame {
    width: 100%;
    height: auto;
    max-width: none;
    aspect-ratio: 4 / 3;
  }

  .upload-hero__arrow {
    width: 100%;
    transform: none;
  }

  .upload-hero__slides {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .upload-hero__slide {
    width: 100%;
    height: auto;
    justify-self: stretch;
  }

  .output-strip {
    display: grid;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .output-slide {
    width: auto;
    flex: none;
  }

  .export-preview-scroll {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
  }

  .preview-card__frame--panorama {
    min-height: 240px;
    max-height: 380px;
  }

  .upload-card {
    width: min(100%, 780px);
  }

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

  .primary-action-bar {
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .hero-shell,
  .editor-shell {
    width: 100%;
  }

  .hero-shell,
  .editor-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 12px;
    padding-bottom: 96px;
    gap: 14px;
  }

  .top-header {
    padding-inline: 2px;
  }

  .upload-card,
  .preview-card,
  .export-options-card,
  .editor-toolbar {
    padding: 18px;
    border-radius: 22px;
  }

  .upload-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .upload-card__dropzone {
    min-height: 400px;
    padding: 24px 18px 20px;
  }

  .upload-card__icon-tile {
    width: 124px;
    height: 124px;
    border-radius: 28px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .upload-hero__title {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .upload-hero__copy {
    max-width: 100%;
    padding: 2px 0;
  }

  .upload-hero__button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .upload-hero__visual-card {
    padding: 16px 14px 14px;
    border-radius: 20px;
    margin-top: 0;
  }

  .upload-hero__visual-labels {
    letter-spacing: 0.26em;
  }

  .upload-hero__visual-grid {
    margin-top: 14px;
    gap: 14px;
  }

  .upload-hero__input-frame {
    max-width: none;
  }

  .upload-hero__slides {
    max-width: none;
  }

  .upload-hero__footer {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .upload-hero__footer span:last-child {
    text-align: left;
  }

  .upload-hero__cta-row {
    margin-top: 2px;
  }

  .compliance-banner {
    padding: 14px 15px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .compliance-banner__button {
    width: 100%;
  }

  .editor-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .editor-toolbar__title {
    text-align: left;
  }

  .editor-toolbar__button,
  .primary-action-bar__button {
    min-width: 100%;
    width: 100%;
  }

  .primary-action-bar {
    flex-direction: column;
    align-items: stretch;
    bottom: 10px;
  }

  .export-save-panel {
    padding: 16px 18px;
  }

  .export-preview-scroll {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
  }

  .export-preview-stage {
    min-height: 0;
    padding: 12px 10px 10px;
  }

  .export-strip {
    min-width: 0;
  }

  .export-segment {
    flex: 0 0 108px;
  }

  .segment-thumb__canvas {
    width: 108px;
  }

  .segment-thumb__label {
    font-size: 0.85rem;
  }

  .switch-control--compact {
    min-height: 36px;
  }
}
