/* Generated by site/sync.mjs from web/src/app/globals.css, responsive.css and components/media/lightbox.module.css.
   Don't edit: change the app, then run sync. */
:root {
  /* palette */
  --color-text: #1d1d1d;
  --color-text-secondary: #657074;
  --color-text-muted: #929a9d;
  --color-bg: #f7f8f8;
  --color-bg-secondary: #e4ebed;
  --color-surface: #ffffff;
  --color-border: #e1e5e6;
  --color-border-strong: #c9d0d2;
  --color-brand: #f31d24;
  --color-brand-hover: #d9141b;
  --color-brand-active: #bf0f15;
  --color-brand-tint: #fff0f0;
  --color-ink: #1d1d1d;
  --color-ink-hover: #000000;
  --color-on-brand: #ffffff;
  --color-on-ink: #ffffff;
  --color-disabled-bg: #e4ebed;
  --color-disabled-text: #929a9d;
  /* page background: soft grey with a warm red glow from the bottom right (the 2026-10 dashboard design) */
  --color-page: #f3f3f4;
  --page-gradient:
    radial-gradient(900px 620px at 100% 100%, rgba(243, 29, 36, 0.16), transparent 70%),
    radial-gradient(700px 480px at 62% 112%, rgba(255, 128, 102, 0.14), transparent 70%),
    linear-gradient(180deg, #f6f6f7 0%, #f1f1f2 100%);
  --color-nav-active: #ffffff;
  --color-widget-icon: #fff0f0;
  /* boxes are soft: no border, a light shadow (2026-10-28) */
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.03), 0 8px 28px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 2px 4px rgba(16, 24, 40, 0.04), 0 14px 36px rgba(16, 24, 40, 0.09);
  --shadow-panel: 0 24px 60px rgba(16, 24, 40, 0.14);

  /* status: soft, low-saturation backgrounds with readable text */
  --color-ok: #1b6e47;
  --color-ok-bg: #e5f3eb;
  --color-warn: #865400;
  --color-warn-bg: #fbf1dc;
  --color-bad: #b42318;
  --color-bad-bg: #fdecec;
  --color-info: #3e5a66;
  --color-info-bg: #e4ebed;

  /* type */
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --text-page: clamp(30px, 2.4vw + 12px, 40px);  /* large page headings 32-40px */
  --text-section: 26px;                          /* section headings 24-28px */
  --text-card: 21px;                             /* card and box headings 20-22px */
  --text-body: 15px;                             /* body 14-16px */
  --text-small: 13px;                            /* secondary text 12-14px */
  --text-tiny: 12px;
  --tracking-tight: -0.03em;
  --tracking-snug: -0.015em;
  --tracking-caps: 0.06em;

  /* spacing (4px scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-input: 14px;
  --radius-button: 16px;
  --radius-card: 22px;
  --radius-panel: 28px;
  --radius-round: 999px;

  /* controls */
  --control-height: 46px;
  --control-height-sm: 38px;
  --focus-ring: 0 0 0 4px rgba(29, 29, 29, 0.1);
  --transition: 140ms ease;

  /* Older names, still used across the app and the admin workspace. They point at the tokens above. */
  --bg: var(--color-bg);
  --surface: var(--color-surface);
  --surface-2: var(--color-bg);
  --text: var(--color-text);
  --muted: var(--color-text-secondary);
  --line: var(--color-border);
  --accent: var(--color-ink);
  --accent-text: var(--color-on-ink);
  --focus: var(--color-text);
  --ok: var(--color-ok);
  --ok-bg: var(--color-ok-bg);
  --warn: var(--color-warn);
  --warn-bg: var(--color-warn-bg);
  --bad: var(--color-bad);
  --bad-bg: var(--color-bad-bg);
  --info-bg: var(--color-info-bg);
  --radius: var(--radius-card);
  --font: var(--font-sans);
  color-scheme: light;
}
.icon.duo { color: var(--color-brand); }
.icon.duo .duo-fill { fill: var(--color-widget-icon); }
.icon.duo .duo-paper { fill: var(--color-surface); }
.muted { color: var(--color-text-secondary); }
.small { font-size: var(--text-small); }
.starter { display: flex; flex-direction: column; gap: 6px; padding: var(--space-5); min-height: 168px; text-decoration: none; position: relative; background: var(--color-surface); border: 0; border-radius: var(--radius-card); box-shadow: var(--shadow-card); transition: box-shadow var(--transition), transform var(--transition); overflow: hidden; }
.starter:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.starter > .icon.duo { margin-bottom: auto; }
.starter strong { font-size: 18px; margin-top: var(--space-4); letter-spacing: -0.01em; }
.starter .small { line-height: 1.4; }
.overview-card, .generation-tile { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--color-surface); border: 0; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow var(--transition), transform var(--transition); text-decoration: none; }
.overview-card:hover, .generation-tile:hover { box-shadow: var(--shadow-hover); }
.generation-tile:hover { transform: translateY(-2px); }
.img-label { position: absolute; bottom: 10px; z-index: 2; font-size: 11px; font-weight: var(--weight-semibold); color: #fff; line-height: 1.4; background: rgba(17, 19, 20, 0.7); border-radius: 999px; padding: 2px 9px; pointer-events: none; white-space: nowrap; }
.img-label.left { left: 10px; }
.img-label.right { right: 10px; }
.compare-slider { position: relative; width: 100%; height: 100%; overflow: hidden; user-select: none; touch-action: pan-y; background: var(--color-bg-secondary); }
.compare-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-slider.contain img { object-fit: contain; }
.compare-slider .compare-before { clip-path: inset(0 calc(100% - var(--at)) 0 0); }
.compare-slider input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.compare-slider:has(input:focus-visible) .compare-knob { outline: 3px solid var(--color-brand); outline-offset: 2px; }
.compare-slider.follow { cursor: ew-resize; }
.compare-slider.follow .compare-before, .compare-slider.follow .compare-line { transition: none; }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--at); width: 2px; margin-left: -1px; background: #fff; z-index: 2; pointer-events: none; box-shadow: 0 0 8px rgba(0, 0, 0, 0.35); }
.compare-knob { position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.compare-knob::before, .compare-knob::after { content: ""; position: absolute; top: 11px; border: 5px solid transparent; }
.compare-knob::before { left: 4px; border-right-color: #1d1d1d; }
.compare-knob::after { right: 4px; border-left-color: #1d1d1d; }
.generation-visual { position: relative; aspect-ratio: 1; background: var(--color-bg-secondary); overflow: hidden; }
.generation-visual > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-status { position: absolute; top: 10px; right: 10px; z-index: 4; pointer-events: none; }
.tile-status .badge { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.tile-status .badge.accent { background: var(--color-surface); color: var(--color-brand-active); }
.generation-foot { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 14px; min-width: 0; }
.generation-foot strong { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.generation-meta { display: flex; justify-content: space-between; gap: var(--space-2); font-size: 13px; color: var(--color-text-secondary); }
.generation-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.generation-meta span:last-child { flex: none; color: var(--color-text-muted); }
.icon-button { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; border: 0; background: var(--color-surface); color: var(--color-text-secondary); cursor: pointer; flex: none; text-decoration: none; box-shadow: var(--shadow-card); }
.icon-button:hover { color: var(--color-text); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-height); padding: 0 22px; border-radius: var(--radius-button); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 15px; font-weight: var(--weight-semibold); line-height: 1.2; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition); }
.button:hover { border-color: var(--color-border-strong); background: var(--color-bg); }
.button:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
.button.primary { background: var(--color-brand); color: var(--color-on-brand); border-color: var(--color-brand); }
.button.primary:hover { background: var(--color-brand-hover); border-color: var(--color-brand-hover); }
.button.primary:active { background: var(--color-brand-active); border-color: var(--color-brand-active); }
/* phones' top bar in the app: the credits pill and the red New button (responsive.css) */
.mobile-credits { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--radius-round); background: var(--color-surface); box-shadow: var(--shadow-card); font-size: 13px; font-weight: var(--weight-semibold); color: var(--color-text); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mobile-credits .icon { color: var(--color-brand); }
.mobile-new { min-height: 40px; padding: 0 14px; border-radius: 14px; font-size: 14px; }
/* the app's lightbox (components/media/Lightbox.tsx) */
.lightbox { width: min(880px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: var(--radius-card);
  background: #111314; color: #fff; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.lightbox::backdrop { background: rgba(17, 19, 20, 0.72); backdrop-filter: blur(4px); }
.lightbox[open] { animation: pop 0.18s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } }
/* a photo: as big as fits, never cropped or stretched */
.lightbox-image { width: auto; max-width: min(85vw, calc(100vw - 32px)); }
.lightbox-image .lightbox-stage { display: grid; place-items: center; background: #000; }
.lightbox-image .lightbox-stage img { display: block; max-width: min(85vw, calc(100vw - 32px)); max-height: calc(85dvh - 120px); width: auto; height: auto;
  object-fit: contain; }
.lightbox-image:not(:has(.lightbox-caption)) .lightbox-stage img { max-height: calc(85dvh - 32px); }
.lightbox-player { aspect-ratio: 16 / 9; background: #000; display: grid; }
.lightbox-player video { width: 100%; height: 100%; display: block; }
.lightbox-caption { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4) var(--space-6) var(--space-5); }
.lightbox-caption strong { font-size: 17px; }
.lightbox-caption span { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 12px; z-index: 5;  /* above a before/after slider */
  background: rgba(17, 19, 20, 0.6); color: #fff; border: 0; backdrop-filter: blur(6px); }
.lightbox-close:hover { background: rgba(17, 19, 20, 0.85); }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

/* A photo that opens the lightbox: the whole photo inside its box on light grey (portrait: grey at the sides,
   landscape: above and below), with a small magnifier in the corner on hover. */
.lightbox-preview { position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0; cursor: zoom-in;
  background: var(--color-bg-secondary); border-radius: inherit; overflow: hidden; }
.lightbox-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lightbox-preview:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
.lightbox-zoom { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-card); opacity: 0; transition: opacity var(--transition);
  pointer-events: none; }
.lightbox-preview:hover .lightbox-zoom, .lightbox-preview:focus-visible .lightbox-zoom { opacity: 1; }
@media (hover: none) { .lightbox-zoom { opacity: 0.9; } }
/* a before and after in the player: as big as fits */
.lightbox-compare { width: 100%; height: 100%; }

/* phones: the photo uses the whole screen; the close button is a bigger target */
@media (max-width: 767px) {
  .lightbox { width: 100vw; max-width: 100vw; border-radius: 0; }
  .lightbox-image, .lightbox-image .lightbox-stage img { max-width: 100vw; }
  .lightbox-image .lightbox-stage img { max-height: calc(100dvh - 140px); }
  .lightbox-image:not(:has(.lightbox-caption)) .lightbox-stage img { max-height: 100dvh; }
  .lightbox-close { width: 44px; height: 44px; top: max(12px, env(safe-area-inset-top)); }
  .lightbox-caption { padding: var(--space-3) var(--space-4) max(var(--space-4), env(safe-area-inset-bottom)); }
}
