@import "tailwindcss"; /* Design system: "The Production Floor" — palette and materials borrowed from real video-production gear, since this app is an AI production team turning briefs into ad scripts and shot lists. ink / slate / chalk — clapperboard black, panel surface, chalk-on-slate text tally — tally-light red, reserved strictly for errors/failures gaffer — gaffer-tape amber, in-progress/revision/warning signal — go-light green, a measured number inside its good band viewfinder — viewfinder teal, the data/QA department's color clay / print — terracotta and violet, department tags for copy & visual */ @theme { --color-ink: #121412; --color-slate: #1b1e1c; --color-slate-2: #23261e; --color-chalk: #f2efe2; --color-chalk-dim: #a39d8c; /* Lifted from #e6432b (3.80:1 on slate-2) to clear WCAG AA as text: 4.62:1 on slate-2, 5.06:1 on slate, 5.57:1 on ink; ink text on it 5.57:1. */ --color-tally: #ea614d; --color-gaffer: #e7af33; --color-viewfinder: #49b6a8; /* Scorecard "in band" green. 6.91:1 on slate-2, 8.33:1 on ink (WCAG AA 4.5:1). */ --color-signal: #6cc24a; /* Lifted from #c1673f (3.86:1 on slate-2): 4.63:1 on slate-2, 5.06:1 on slate, 5.58:1 on ink. */ --color-clay: #c87956; --color-print: #9b8de0; --font-display: "Bebas Neue", "Arial Narrow", sans-serif; --font-script: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace; --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } :root { color-scheme: dark; } body { margin: 0; background: var(--color-ink); color: var(--color-chalk); font-family: var(--font-body); -webkit-font-smoothing: antialiased; background-image: radial-gradient(circle at 1px 1px, rgba(242, 239, 226, 0.035) 1px, transparent 0); background-size: 22px 22px; } #root { min-height: 100svh; } /* Tabular figures wherever numbers need to line up like a timecode readout. */ .timecode { font-family: var(--font-script); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; } /* A rotated, double-ruled badge — the "approved" rubber stamp. */ .stamp { display: inline-flex; align-items: center; gap: 0.3em; border: 2px solid currentColor; border-radius: 3px; padding: 0.1rem 0.55rem; font-family: var(--font-display); letter-spacing: 0.09em; font-size: 0.72rem; transform: rotate(-3deg); white-space: nowrap; } /* Perforation rail used above/below a filmstrip of storyboard frames. */ .sprocket-rail { height: 12px; background-color: #0a0b09; background-image: radial-gradient(circle at center, var(--color-ink) 2.4px, transparent 2.6px); background-size: 22px 12px; background-position: 11px center; } @media (prefers-reduced-motion: no-preference) { .clap-enter { animation: clap-enter 420ms cubic-bezier(0.2, 0.8, 0.2, 1); } } @keyframes clap-enter { from { opacity: 0; transform: translateY(6px) scaleY(0.98); } to { opacity: 1; transform: none; } } /* ---- Interaction layer --------------------------------------------------- */ /* Consistent, smooth transitions on anything you touch. */ button, a, input, select, textarea { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1); } /* Tactile press feedback on any enabled button. */ button:not(:disabled):active { transform: translateY(1px) scale(0.995); } /* A click-target floor. The compact uppercase labels this design leans on left several buttons around 22px tall — accurate to hit with a mouse, fiddly with a trackpad and a miss on a touchscreen. 32px is the desktop-tool standard and costs nothing: it only pads buttons that are already shorter, and the padding each one declares is untouched. Buttons that ARE their own geometry (the editor's 3x3 position grid, whose cells have to stay square) opt out with `min-h-0`. */ button { min-height: 2rem; } /* One consistent focus treatment in gaffer amber. */ :where(input, select, textarea):focus-visible { outline: none; border-color: var(--color-gaffer); box-shadow: 0 0 0 3px rgba(231, 175, 51, 0.18); } :where(button, a):focus-visible { outline: 2px solid var(--color-gaffer); outline-offset: 2px; } /* Hover lift for cards and rows. */ .lift { transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease; will-change: transform; } @media (prefers-reduced-motion: no-preference) { .lift:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.8); } } /* A thin accent rail that grows on hover (left edge of interactive rows). */ .rail { position: relative; } .rail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: currentColor; transform: scaleY(0.25); transform-origin: center; opacity: 0.6; transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease; } .rail:hover::before { transform: scaleY(1); opacity: 1; } /* Range slider — gaffer-tape thumb on a slate track. */ input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--color-slate-2); cursor: pointer; } input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; height: 18px; width: 18px; border-radius: 999px; background: var(--color-gaffer); border: 2px solid var(--color-ink); transition: box-shadow 160ms ease, transform 120ms ease; } input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(231, 175, 51, 0.2); } input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); } input[type="range"]::-moz-range-thumb { height: 16px; width: 16px; border-radius: 999px; background: var(--color-gaffer); border: 2px solid var(--color-ink); cursor: pointer; } /* Film-leader colour bars — a small on-theme accent strip. */ .color-bars { display: flex; height: 4px; width: 100%; overflow: hidden; border-radius: 2px; } .color-bars > span { flex: 1; } /* Shimmer skeleton for loading blocks. */ .shimmer { background: linear-gradient( 100deg, var(--color-slate) 30%, var(--color-slate-2) 50%, var(--color-slate) 70% ); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; } @keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } } /* Staggered rise-in for lists (first ~10 children). */ @media (prefers-reduced-motion: no-preference) { .stagger > * { animation: rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both; } .stagger > *:nth-child(1) { animation-delay: 30ms; } .stagger > *:nth-child(2) { animation-delay: 70ms; } .stagger > *:nth-child(3) { animation-delay: 110ms; } .stagger > *:nth-child(4) { animation-delay: 150ms; } .stagger > *:nth-child(5) { animation-delay: 190ms; } .stagger > *:nth-child(6) { animation-delay: 230ms; } .stagger > *:nth-child(7) { animation-delay: 270ms; } .stagger > *:nth-child(8) { animation-delay: 310ms; } .stagger > *:nth-child(9) { animation-delay: 350ms; } .stagger > *:nth-child(n + 10) { animation-delay: 390ms; } } @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } } /* Burned-in text arrival, mirroring TEXT_ANIMATIONS in app/services/video.py so the editor previews the animation the export actually renders. */ @keyframes cb-text-in { from { opacity: 0; } to { opacity: 1; } } .text-anim-fade { animation: cb-text-in 0.22s ease-out both; } .text-anim-snap { animation: cb-text-in 0.07s ease-out both; } @media (prefers-reduced-motion: reduce) { .text-anim-fade, .text-anim-snap { animation: none; } }