/* Modernist tokens — copied from the Claude Design "Shitless" project's design system. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap');

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-2: #e15b47;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --radius-sm: 0px; --radius-md: 0px; --radius-lg: 0px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

.theme-dark {
  --color-bg: var(--color-neutral-900);
  --color-surface: var(--color-neutral-800);
  --color-text: var(--color-neutral-100);
  --color-divider: color-mix(in srgb, #f8f4f4 22%, transparent);
}

* , *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--color-body); font-family: var(--font-body); font-size: 15px; line-height: 1.55; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2); }
h1 { font-size: 34px; } h2 { font-size: 26px; } h3 { font-size: 21px; } h4 { font-size: 18px; }
h6 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.hr { height: 2px; border: 0; margin: var(--space-4) 0; background: var(--color-divider); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; }

.field > label { display: block; font-size: 12px; margin-bottom: 5px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit; font-size: 14px;
  color: var(--color-text); caret-color: var(--color-accent); background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }

.card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface); }
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 17px; line-height: 1.2; }
.elev-md { box-shadow: var(--shadow-md); }

.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.02em; padding: 3px 10px; border-radius: calc(var(--radius-md) * 0.75); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }
.theme-dark .tag-neutral { background: var(--color-neutral-800); color: var(--color-neutral-100); }

.dialog-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: var(--space-4); background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent); z-index: 20; }
.dialog { width: min(360px, 100%); display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-lg); }
.dialog-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 20px; }
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }

/* — app shell — */
.app-top {
  position: sticky; top: 0; z-index: 5; background: var(--color-bg);
  border-bottom: 2px solid var(--color-divider); padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
}
.app-title { font-size: 16px; margin: 0; }
.app-sub { font-size: 11px; opacity: .6; margin: 2px 0 0; }
.app-theme-toggle { margin-left: auto; display: flex; border: 1px solid var(--color-divider); }
.app-theme-toggle button { border: 0; background: transparent; color: var(--color-text); font-size: 11px; padding: 6px 10px; cursor: pointer; font-family: var(--font-body); }
.app-theme-toggle button.on { background: var(--color-accent); color: var(--color-bg); }

.app-wrap { max-width: 420px; margin: 0 auto; min-height: calc(100vh - 64px); display: flex; flex-direction: column; }
.app-screen { flex: 1; display: flex; flex-direction: column; padding: 24px 20px 32px; gap: 14px; position: relative; }

.upload-bg-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.upload-bg-scrim { position: fixed; inset: 0; z-index: 1; background: linear-gradient(180deg, color-mix(in srgb, #000 55%, transparent) 0%, color-mix(in srgb, #000 15%, transparent) 40%, color-mix(in srgb, #000 75%, transparent) 100%); }
.upload-overlay { position: relative; z-index: 2; margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.app-step-dots { display: flex; gap: 4px; padding: 10px 20px 0; }
.app-step-dots span { height: 3px; flex: 1; background: var(--color-divider); }
.app-step-dots span.done { background: var(--color-accent); }

.icon-circle { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--color-neutral-200); flex: none; color: var(--color-text); }
.theme-dark .icon-circle { background: var(--color-neutral-800); }

.row-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--color-divider); }
.row-thumb { width: 44px; height: 56px; flex: none; background: var(--color-neutral-300); display: flex; align-items: center; justify-content: center; color: var(--color-neutral-600); font-size: 10px; overflow: hidden; }
.theme-dark .row-thumb { background: var(--color-neutral-700); color: var(--color-neutral-400); }
.row-check { color: var(--color-accent); flex: none; }

.progress-track { height: 6px; background: var(--color-neutral-200); }
.theme-dark .progress-track { background: var(--color-neutral-800); }
.progress-fill { height: 100%; background: var(--color-accent); transition: width .2s linear; }

.opt-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1.5px solid var(--color-divider); cursor: pointer; }
.opt-card.sel { border-color: var(--color-accent); }
.opt-head { display: flex; align-items: center; justify-content: space-between; }
.opt-title { font-family: var(--font-heading); font-weight: 800; font-size: 14px; }
.opt-radio { width: 16px; height: 16px; border: 1.5px solid var(--color-divider); border-radius: 50%; flex: none; position: relative; }
.opt-card.sel .opt-radio { border-color: var(--color-accent); }
.opt-card.sel .opt-radio::after { content: ""; position: absolute; inset: 3px; background: var(--color-accent); border-radius: 50%; }
.opt-meta { display: flex; gap: 14px; font-size: 12px; font-weight: 600; }
.opt-meta span { opacity: .7; font-weight: 400; margin-right: 3px; }
.opt-help { font-size: 11.5px; opacity: .65; margin: 0; }

.center-col { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.center-col.text-center { text-align: center; align-items: center; }
.log { font-size: 11px; opacity: .55; white-space: pre-wrap; word-break: break-all; margin-top: auto; }
