@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

  :root {
    --bg:        #000000;
    --bg2:       #080808;
    --bg3:       #101010;
    --panel:     #141414;
    --border:    #262626;
    --amber:     #ffffff;
    --amber-dim: #888888;
    --gold:      #cccccc;
    --cream:     #ededed;
    --muted:     #7a7a7a;
    --green:     #4caf7d;
    --red:       #c0392b;
    --font-mono: 'Montserrat', sans-serif;
    --font-title:'Montserrat', sans-serif;
    --font-serif:'Montserrat', sans-serif;
    --font-code: 'Montserrat', sans-serif;
    --radius:    4px;
    --glow:      0 0 24px rgba(255,255,255,0.10);
  }

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

  html { scroll-behavior: smooth; }

  html { background: var(--bg); }

  body {
    background: transparent;
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: 13px;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
  }

  /* Film grain + scanline overlays fully removed — no texture on any box or page */
  body::before, body::after,
  body.home::before, body.home::after,
  body.editor::before, body.editor::after,
  .grain-overlay, .grain, .scanlines, .noise-overlay {
    content: none !important; display: none !important; background-image: none !important;
  }

  /* ── HEADER ── */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* ── SVG LOGO ICON ── */
  .logo-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
  }

  /* Header mark = cropped C+V from the brand logo; black bg blended into the bar */
  .logo-mark {
    width: 46px; height: 46px; flex-shrink: 0;
    /* transparent C+V mark — no black box, no blend needed */
    background-image: url('colurvist-mark.png?v=1');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }
  /* Header wordmark = transparent "COLURVIST" (no black bg, no blend). */
  .logo-wordmark-img {
    height: 26px; width: auto; display: block; flex-shrink: 0;
    user-select: none;
  }

  /* ── WORDMARK ── */
  .logo-wordmark {
    display: flex;
    align-items: baseline;
    gap: 0;
    line-height: 1;
  }

  .logo-wordmark .lw-col {
    font-family: var(--font-title);
    font-size: 27px;
    letter-spacing: 2px;
    color: #ffffff;
    line-height: 1;
  }

  .logo-wordmark .lw-u {
    font-family: var(--font-title);
    font-size: 27px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ff0040 0%, #ff6a00 9%, #ffb300 18%, #f7e000 27%, #9ee400 36%, #00d084 45%, #00d4c8 54%, #00a8ff 63%, #2060ff 72%, #7a30f0 81%, #c020f0 90%, #ff2e9a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
  }

  .logo-wordmark .lw-rvist {
    font-family: var(--font-title);
    font-size: 27px;
    letter-spacing: 2px;
    color: #ffffff;
    line-height: 1;
  }

  .logo-sub {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 3px;
  }

  .logo-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* don't stretch the wordmark img to the tagline's width */
    gap: 2px;
  }

  .header-status {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
  }

  .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
  }

  @keyframes pulse-dot {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.4; }
  }

  .version-tag {
    font-size: 10px;
    color: var(--amber-dim);
    letter-spacing: 2px;
    border: 1px solid var(--amber-dim);
    padding: 2px 8px;
    border-radius: 2px;
  }

  /* ── HERO STRIP ── */
  .hero-strip {
    background: linear-gradient(135deg, #0d0d0d 0%, #000000 50%, #0a0a0a 100%);
    border-bottom: 1px solid var(--border);
    padding: 36px 32px 28px;
    position: relative;
    overflow: hidden;
  }

  .hero-strip::before {
    content: 'COLURVIST';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-title);
    font-size: 120px;
    color: rgba(255,255,255,0.04);
    letter-spacing: 20px;
    pointer-events: none;
    line-height: 1;
  }

  .hero-title {
    font-family: var(--font-serif);
    font-size: 38px;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .hero-title em {
    color: var(--amber);
    font-style: normal;
  }

  .hero-desc {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
    max-width: 520px;
    line-height: 1.7;
  }

  .hero-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
  }

  .tag {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 10px;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 2px;
  }

  .tag.active { border-color: var(--amber-dim); color: var(--amber); }

  /* ── LAYOUT ── */
  .workspace {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    min-height: calc(100vh - 160px);
  }

  .main-col {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .side-col {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* ── SECTIONS ── */
  .section {
    border-bottom: 1px solid var(--border);
    padding: 24px 28px;
  }

  .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
  }

  .section-num {
    font-family: var(--font-title);
    font-size: 22px;
    color: var(--amber);
    line-height: 1;
    min-width: 28px;
  }

  .section-title {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cream);
  }

  .section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* ── UPLOAD ZONE ── */
  .upload-zone {
    border: 1px dashed var(--amber-dim);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255,255,255,0.02);
    position: relative;
    overflow: hidden;
  }

  .upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--amber);
    background: rgba(255,255,255,0.06);
    box-shadow: var(--glow);
  }

  .upload-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    filter: sepia(1) saturate(2) hue-rotate(10deg);
  }

  .upload-text {
    color: var(--cream);
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 6px;
  }

  .upload-sub {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
  }

  .upload-formats {
    margin-top: 12px;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--amber-dim);
  }

  #fileInput { display: none; }

  /* ── PREVIEW ── */
  .preview-area {
    margin-top: 16px;
    display: none;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: #000;
    border: 1px solid var(--border);
  }

  .preview-area.visible { display: block; }

  .preview-area video,
  .preview-area img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
    background: #000;
  }

  .preview-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .preview-filename {
    font-size: 10px;
    color: var(--cream);
    letter-spacing: 1px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .preview-meta {
    font-size: 9px;
    color: var(--amber);
    letter-spacing: 1px;
  }

  .preview-scope {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 80px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
  }

  /* ── LOOK SELECTOR ── */
  .looks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .look-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s;
    overflow: hidden;
    background: var(--panel);
    position: relative;
  }

  .look-card:hover {
    border-color: var(--amber-dim);
    transform: translateY(-1px);
  }

  .look-card.selected {
    border-color: var(--amber);
    box-shadow: var(--glow);
  }

  .look-swatch {
    height: 56px;
    width: 100%;
    position: relative;
    overflow: hidden;
  }

  /* Look swatches — cinematic gradients */
  .look-swatch.kodak    { background: linear-gradient(135deg,#3d2b1a 0%,#8c5a2e 40%,#d4882a 80%,#f2c46d 100%); }
  .look-swatch.fuji     { background: linear-gradient(135deg,#1a2a2a 0%,#2d5a4a 40%,#6aab8e 80%,#c8e6d4 100%); }
  .look-swatch.arri     { background: linear-gradient(135deg,#1a1a1a 0%,#3d3d3d 40%,#7a7a7a 80%,#c8c8c8 100%); }
  .look-swatch.teal-org { background: linear-gradient(135deg,#0a1e2e 0%,#1a4a6a 30%,#d4882a 70%,#f2c46d 100%); }
  .look-swatch.bleach   { background: linear-gradient(135deg,#2a1a10 0%,#6e5030 40%,#b89068 80%,#e8dcc8 100%); filter: contrast(0.8) brightness(1.1); }
  .look-swatch.noir     { background: linear-gradient(135deg,#0a0a0a 0%,#2a2a2a 40%,#5a5a5a 80%,#a0a0a0 100%); filter: contrast(1.2); }
  .look-swatch.day-night{ background: linear-gradient(135deg,#0a1520 0%,#1a3050 40%,#4a6080 80%,#8ab0c8 100%); }
  .look-swatch.tuscany  { background: linear-gradient(135deg,#2a1a08 0%,#7a4820 40%,#c87840 80%,#e8b878 100%); filter: saturate(1.3); }
  .look-swatch.hypereal { background: linear-gradient(135deg,#1a0a2a 0%,#4a1a6a 30%,#8a3a9a 60%,#d4882a 100%); filter: saturate(1.6) contrast(1.1); }
  /* ── NEW LOOKS ── */
  .look-swatch.miami    { background: linear-gradient(135deg,#0d1a2e 0%,#c0392b 30%,#e67e22 60%,#f9ca24 100%); filter: saturate(1.5); }
  .look-swatch.faded    { background: linear-gradient(135deg,#3a3020 0%,#7a6848 40%,#b8a888 80%,#ddd0b8 100%); filter: brightness(1.15) contrast(0.82); }
  .look-swatch.neon-tokyo { background: linear-gradient(135deg,#08001a 0%,#3d006e 30%,#c800c8 65%,#00f0ff 100%); filter: saturate(2) contrast(1.1); }
  .look-swatch.harvest  { background: linear-gradient(135deg,#1a0a00 0%,#6e2800 30%,#c86000 60%,#f0a830 90%,#ffd870 100%); }
  .look-swatch.arctic   { background: linear-gradient(135deg,#0a1830 0%,#1a3860 30%,#4878a8 60%,#a8c8e8 85%,#e0f0ff 100%); filter: saturate(0.8) brightness(1.05); }
  .look-swatch.vietnam  { background: linear-gradient(135deg,#182808 0%,#3a5818 30%,#78a840 65%,#b8d870 100%); filter: saturate(0.9) contrast(0.9) brightness(1.1); }
  .look-swatch.ember    { background: linear-gradient(135deg,#080000 0%,#380800 25%,#901808 55%,#e85020 80%,#ffa060 100%); filter: saturate(1.4); }
  .look-swatch.silver   { background: linear-gradient(135deg,#101010 0%,#303030 35%,#686868 65%,#c0c0c0 100%); filter: contrast(1.05) brightness(0.95); }
  .look-swatch.candlelight { background: linear-gradient(135deg,#200800 0%,#602000 30%,#c06010 60%,#e8a850 85%,#fad898 100%); filter: saturate(1.2); }
  .look-swatch.pacific  { background: linear-gradient(135deg,#001828 0%,#003858 25%,#0068a8 55%,#00a8d8 80%,#70d8f8 100%); filter: saturate(1.3); }
  .look-swatch.dusk     { background: linear-gradient(135deg,#0a0818 0%,#280840 30%,#780850 60%,#e03878 80%,#f890b8 100%); filter: saturate(1.2); }
  .look-swatch.matte    { background: linear-gradient(135deg,#282018 0%,#504030 40%,#887060 75%,#b8a898 100%); filter: contrast(0.78) brightness(1.08) saturate(0.85); }

  /* ── SHOW ALL BUTTON ── */
  .show-all-btn {
    width: 100%;
    margin-top: 12px;
    padding: 11px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    position: relative;
    overflow: hidden;
  }

  .show-all-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0s;
  }

  .show-all-btn:hover {
    border-color: var(--amber-dim);
    color: var(--amber);
  }

  .show-all-btn.open {
    border-color: var(--amber-dim);
    color: var(--amber-dim);
  }

  .show-all-btn.open::before {
    transform: translateX(100%);
    transition: transform 0.6s ease;
  }

  .show-all-label { flex: 1; text-align: center; }

  .show-all-count {
    font-size: 9px;
    letter-spacing: 1px;
    background: var(--amber-dim);
    color: var(--bg);
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 700;
  }

  .show-all-arrow {
    font-size: 13px;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    display: inline-block;
  }

  .show-all-btn.open .show-all-arrow {
    transform: rotate(180deg);
  }

  /* ── EXTRA LOOKS EXPAND CONTAINER ── */
  .looks-extra {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.55s cubic-bezier(0.16,1,0.3,1);
  }

  .looks-extra.open {
    max-height: 3200px;
  }

  .looks-extra-grid {
    margin-top: 10px;
    grid-template-columns: repeat(3, 1fr);
  }

  /* ── LIGHTING RIGS: show-all with its own internal scroll (same open animation) ── */
  .rig-extra { overflow: hidden; max-height: 0; transition: max-height 0.55s cubic-bezier(0.16,1,0.3,1); }
  .rig-extra.open { max-height: 372px; }
  .rig-extra-grid { margin-top: 10px; max-height: 340px; overflow-y: auto; padding-right: 6px; }
  .rig-extra-grid::-webkit-scrollbar { width: 8px; }
  .rig-extra-grid::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 6px; }

  /* Per-card pop-in stagger */
  @keyframes cardPopIn {
    0%   { opacity: 0; transform: translateY(14px) scale(0.93); }
    60%  { opacity: 1; transform: translateY(-3px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0)   scale(1); }
  }

  .extra-card {
    opacity: 0;
  }

  .extra-card.popped {
    animation: cardPopIn 0.42s cubic-bezier(0.34,1.56,0.64,1) both;
    opacity: 1;
  }

  /* stagger delays 0–11 */
  .extra-card.popped:nth-child(1)  { animation-delay: 0.00s; }
  .extra-card.popped:nth-child(2)  { animation-delay: 0.04s; }
  .extra-card.popped:nth-child(3)  { animation-delay: 0.08s; }
  .extra-card.popped:nth-child(4)  { animation-delay: 0.12s; }
  .extra-card.popped:nth-child(5)  { animation-delay: 0.16s; }
  .extra-card.popped:nth-child(6)  { animation-delay: 0.20s; }
  .extra-card.popped:nth-child(7)  { animation-delay: 0.24s; }
  .extra-card.popped:nth-child(8)  { animation-delay: 0.28s; }
  .extra-card.popped:nth-child(9)  { animation-delay: 0.32s; }
  .extra-card.popped:nth-child(10) { animation-delay: 0.36s; }
  .extra-card.popped:nth-child(11) { animation-delay: 0.40s; }
  .extra-card.popped:nth-child(12) { animation-delay: 0.44s; }

  /* film grain texture on look swatches removed */
  .look-swatch::after { content: none; display: none; }

  .look-info {
    padding: 8px 10px;
  }

  .look-name {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--cream);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 2px;
  }

  .look-tag {
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--muted);
  }

  .look-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--amber);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--bg);
  }

  .look-card.selected .look-check { display: flex; }

  /* ── CAMERA PROFILE ── */
  .profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .profile-btn {
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--muted);
    padding: 10px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .profile-btn:hover { border-color: var(--amber-dim); color: var(--cream); }
  .profile-btn.selected { border-color: var(--amber); color: var(--amber); background: rgba(255,255,255,0.06); }

  .profile-mfr {
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--amber-dim);
  }

  /* ── PARAMS ── */
  .param-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }

  .param-label {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--muted);
    min-width: 90px;
    text-transform: uppercase;
  }

  .param-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    outline: none;
    cursor: pointer;
  }

  .param-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--amber);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255,255,255,0.35);
  }

  .param-val {
    font-size: 10px;
    color: var(--amber);
    min-width: 36px;
    text-align: right;
    font-weight: 500;
  }

  /* ── SIDE PANELS ── */
  .side-section {
    border-bottom: 1px solid var(--border);
    padding: 20px 20px;
  }

  .side-title {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--amber);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .side-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* ── CODE OUTPUT ── */
  .code-block {
    background: #050505;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    font-family: var(--font-code);
    font-size: 10px;
    line-height: 1.8;
    color: var(--muted);
    overflow-x: auto;
    white-space: pre;
    max-height: 180px;
    overflow-y: auto;
    position: relative;
  }

  .code-block .kw   { color: var(--amber); }
  .code-block .val  { color: var(--gold); }
  .code-block .cmt  { color: #555555; font-style: italic; }
  .code-block .str  { color: var(--green); }
  .code-block .num  { color: #8ac4e0; }

  .code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1px;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
    text-transform: uppercase;
  }

  .code-copy:hover { border-color: var(--amber); color: var(--amber); }

  .code-wrap { position: relative; }

  /* ── DOWNLOAD BTN ── */
  .download-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #333333, #ffffff);
    border: none;
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
  }

  .download-btn:hover {
    box-shadow: 0 4px 24px rgba(255,255,255,0.25);
    transform: translateY(-1px);
  }

  .download-btn:active { transform: translateY(0); }

  .download-btn.disabled {
    background: var(--border);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
  }

  /* ── GENERATE BTN ── */
  .generate-btn {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--amber);
    color: var(--amber);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
  }

  .generate-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
    z-index: 0;
  }

  .generate-btn:hover::before { transform: scaleX(1); }
  .generate-btn:hover { color: var(--bg); }
  .generate-btn span { position: relative; z-index: 1; }

  .generate-btn.disabled {
    border-color: var(--border);
    color: var(--muted);
    cursor: not-allowed;
  }
  .generate-btn.disabled::before { display: none; }

  /* ── WAVEFORM / SCOPE ── */
  .scope-canvas {
    width: 100%;
    height: 60px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #050505;
    display: block;
    margin-top: 8px;
  }

  /* ── NOTICE BANNER ── */
  .notice-banner {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--amber-dim);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 10px;
    color: var(--muted);
    line-height: 1.7;
    letter-spacing: 0.5px;
  }

  .notice-banner strong { color: var(--amber); letter-spacing: 1px; }

  /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 4px; height: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--amber-dim); }

  /* ── TOAST ── */
  .toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--panel);
    border: 1px solid var(--amber);
    color: var(--amber);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    padding: 10px 16px;
    border-radius: var(--radius);
    z-index: 10000;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    text-transform: uppercase;
  }

  .toast.show {
    transform: translateY(0);
    opacity: 1;
  }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg2);
  }

  .footer-txt {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
  }

  .footer-links {
    display: flex;
    gap: 20px;
  }

  .footer-links a {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--amber-dim);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
  }

  .footer-links a:hover { color: var(--amber); }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    .workspace { grid-template-columns: 1fr; }
    .main-col { border-right: none; }
    .looks-grid, .looks-extra-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-strip::before { display: none; }
  }

  @media (max-width: 600px) {
    .looks-grid, .looks-extra-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 26px; }
  }

  /* ── LOAD ANIMATION ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── PAGE NAV TABS ── */
  .page-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 32px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
  }

  .page-tab {
    padding: 12px 20px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .page-tab:hover { color: var(--cream); }

  .page-tab.active {
    color: var(--amber);
    border-bottom-color: var(--amber);
  }

  .page-tab .tab-badge {
    font-size: 8px;
    letter-spacing: 1px;
    background: var(--amber);
    color: var(--bg);
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 700;
  }

  /* ── PAGE VIEWS ── */
  .page-view { display: none; }
  .page-view.active { display: block; }

  /* ── AI LOOKS MATCH PAGE ── */
  .ai-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: calc(100vh - 200px);
  }

  .ai-col {
    border-right: 1px solid var(--border);
  }

  .ai-col:last-child { border-right: none; }

  .ai-section {
    border-bottom: 1px solid var(--border);
    padding: 24px 28px;
    animation: fadeUp 0.5s ease both;
  }

  .ai-section:nth-child(1) { animation-delay: 0.05s; }
  .ai-section:nth-child(2) { animation-delay: 0.10s; }
  .ai-section:nth-child(3) { animation-delay: 0.15s; }

  .ai-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
  }

  .ai-section-icon {
    font-size: 16px;
    line-height: 1;
  }

  .ai-section-title {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cream);
    flex: 1;
  }

  .ai-section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* ── REFERENCE UPLOAD ── */
  .ref-upload-zone {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: transparent;
    position: relative;
  }

  .ref-upload-zone:hover, .ref-upload-zone.drag-over {
    border-color: var(--amber);
    background: rgba(255,255,255,0.02);
  }

  .ref-upload-zone .ref-icon { font-size: 32px; display: block; margin-bottom: 10px; }
  .ref-upload-zone .ref-text { font-size: 12px; color: var(--cream); margin-bottom: 4px; }
  .ref-upload-zone .ref-sub  { font-size: 10px; color: var(--muted); letter-spacing: 1px; }
  .ref-upload-zone .ref-types { margin-top: 10px; font-size: 9px; color: var(--amber-dim); letter-spacing: 2px; }

  .ref-preview {
    display: none;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    background: #000;
    margin-top: 0;
  }

  .ref-preview.visible { display: block; }

  .ref-preview img {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    display: block;
    background: #000;
  }

  .ref-preview-label {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(0,0,0,0.75);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--amber);
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
  }

  .ref-change-btn {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,0.75);
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 2px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
  }

  .ref-change-btn:hover { border-color: var(--amber); color: var(--amber); }

  /* ── ANALYSIS METERS ── */
  .analysis-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .analysis-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .analysis-label {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    min-width: 110px;
  }

  .analysis-bar-track {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
  }

  .analysis-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--amber);
    width: 0%;
    transition: width 1s cubic-bezier(0.16,1,0.3,1);
  }

  .analysis-bar-fill.loading {
    background: linear-gradient(90deg, var(--border) 25%, var(--amber-dim) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    width: 100% !important;
  }

  @keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  .analysis-value {
    font-size: 10px;
    color: var(--amber);
    min-width: 38px;
    text-align: right;
    font-weight: 500;
  }

  .analysis-chip {
    font-size: 8px;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--muted);
    min-width: 60px;
    text-align: center;
  }

  /* ── COMPARE VIEWER ── */
  .compare-wrapper {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    height: 260px;
    cursor: col-resize;
    user-select: none;
  }

  .compare-side {
    position: absolute;
    top: 0; bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .compare-side.left  { left: 0; right: 50%; }
  .compare-side.right { left: 50%; right: 0; }

  .compare-side canvas {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .compare-side.left  canvas { right: 0; }
  .compare-side.right canvas { left: 0; }

  .compare-label {
    position: absolute;
    bottom: 8px;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    background: rgba(0,0,0,0.7);
  }

  .compare-side.left  .compare-label { left: 8px;  color: var(--muted); }
  .compare-side.right .compare-label { right: 8px; color: var(--amber); }

  .compare-divider {
    position: absolute;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--amber);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
  }

  .compare-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: var(--amber);
    border-radius: 50%;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--bg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    pointer-events: none;
  }

  .compare-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .compare-placeholder span { font-size: 28px; }

  /* ── MATCH BUTTON ── */
  .match-btn {
    width: 100%;
    padding: 16px;
    background: var(--amber);
    border: none;
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    position: relative;
    overflow: hidden;
  }

  .match-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
  }

  .match-btn:hover { box-shadow: 0 4px 28px rgba(255,255,255,0.2); transform: translateY(-1px); }
  .match-btn:hover::before { transform: scaleX(1); }
  .match-btn:active { transform: translateY(0); }

  .match-btn.disabled {
    background: var(--border);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
  }

  .match-btn.disabled::before { display: none; }

  .match-btn.analyzing {
    background: var(--panel);
    border: 1px solid var(--amber);
    color: var(--amber);
    cursor: wait;
  }

  /* ── AI RECIPE OUTPUT ── */
  .ai-recipe-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 14px;
    display: none;
  }

  .ai-recipe-panel.visible { display: block; }

  .ai-recipe-title {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .ai-recipe-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  .ai-param-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
  }

  .ai-param-row:last-child { border-bottom: none; }

  .ai-param-name {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1px;
  }

  .ai-param-val {
    font-size: 10px;
    color: var(--amber);
    font-weight: 500;
  }

  /* ── FRAME ANALYSIS PANEL ── */
  .frame-analysis {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-top: 14px;
    display: none;
  }

  .frame-analysis.visible { display: block; }

  .fa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .fa-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
  }

  .fa-card-label {
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
  }

  .fa-card-value {
    font-size: 14px;
    color: var(--cream);
    font-weight: 500;
  }

  .fa-card-sub {
    font-size: 8px;
    color: var(--muted);
    margin-top: 2px;
    letter-spacing: 1px;
  }

  .fa-histogram {
    width: 100%;
    height: 44px;
    border-radius: 2px;
    display: block;
    margin-top: 8px;
  }

  /* ── TYPING ANIMATION ── */
  @keyframes blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0; }
  }

  .ai-thinking {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1px;
  }

  .ai-thinking-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--amber);
    animation: blink 1s ease-in-out infinite;
  }

  .ai-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
  .ai-thinking-dot:nth-child(3) { animation-delay: 0.4s; }

  /* ── FULL-WIDTH AI BOTTOM SECTION ── */
  .ai-full-row {
    border-top: 1px solid var(--border);
    padding: 24px 28px;
    animation: fadeUp 0.5s 0.2s ease both;
  }

  .section { animation: fadeUp 0.5s ease both; }
  .section:nth-child(1) { animation-delay: 0.05s; }
  .section:nth-child(2) { animation-delay: 0.12s; }
  .section:nth-child(3) { animation-delay: 0.19s; }
  .section:nth-child(4) { animation-delay: 0.26s; }
  .side-section:nth-child(1) { animation: fadeUp 0.5s 0.15s ease both; }
  .side-section:nth-child(2) { animation: fadeUp 0.5s 0.22s ease both; }
  .side-section:nth-child(3) { animation: fadeUp 0.5s 0.29s ease both; }
  .side-section:nth-child(4) { animation: fadeUp 0.5s 0.36s ease both; }

  /* ── SHARED MULTI-PAGE STYLES ── */
  .mp-page { min-height: calc(100vh - 200px); }

  .mp-hero {
    background: linear-gradient(135deg, #0d0d0d 0%, #000 50%, #0a0a0a 100%);
    border-bottom: 1px solid var(--border);
    padding: 32px 32px 24px;
    position: relative; overflow: hidden;
  }
  .mp-hero::before {
    content: attr(data-word);
    position: absolute; right: -10px; top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-title);
    font-size: 100px;
    color: rgba(255,255,255,0.025);
    letter-spacing: 12px;
    pointer-events: none; line-height: 1;
  }

  .mp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 260px);
  }

  .mp-col {
    border-right: 1px solid var(--border);
  }
  .mp-col:last-child { border-right: none; }

  .mp-col-full {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    padding: 24px 28px;
  }

  .mp-sec {
    border-bottom: 1px solid var(--border);
    padding: 22px 26px;
    animation: fadeUp 0.5s ease both;
  }
  .mp-sec:nth-child(1){animation-delay:.05s}
  .mp-sec:nth-child(2){animation-delay:.1s}
  .mp-sec:nth-child(3){animation-delay:.15s}

  .mp-sec-hd {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
  }
  .mp-sec-icon { font-size: 15px; line-height: 1; }
  .mp-sec-title {
    font-size: 10px; letter-spacing: 3px;
    text-transform: uppercase; color: var(--cream); flex: 1;
  }
  .mp-sec-line { flex: 1; height: 1px; background: var(--border); }

  /* ── TOGGLE BUTTON GROUP ── */
  .toggle-group {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 14px;
  }

  .toggle-btn {
    padding: 7px 14px;
    font-family: var(--font-mono);
    font-size: 9px; letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
  }
  .toggle-btn:hover { border-color: var(--amber-dim); color: var(--cream); }
  .toggle-btn.on {
    border-color: var(--amber);
    color: var(--amber);
    background: rgba(255,255,255,0.04);
  }

  /* ── MODE CARDS ── */
  .mode-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-bottom: 14px;
  }

  .mode-card {
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: var(--radius);
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .mode-card:hover { border-color: var(--amber-dim); }
  .mode-card.active { border-color: var(--amber); background: rgba(255,255,255,0.03); }

  .mode-card-title {
    font-size: 10px; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--cream);
    margin-bottom: 3px;
  }
  .mode-card-sub {
    font-size: 9px; color: var(--muted); letter-spacing: 0.5px;
  }
  .mode-card .mode-dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block; margin-right: 6px;
    vertical-align: middle;
  }

  /* ── PROCESS BUTTON ── */
  .process-btn {
    width: 100%; padding: 14px;
    background: var(--amber);
    border: none; color: var(--bg);
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 3px;
    text-transform: uppercase; font-weight: 700;
    cursor: pointer; border-radius: var(--radius);
    transition: all 0.3s;
    display: flex; align-items: center;
    justify-content: center; gap: 10px;
    margin-top: 12px;
  }
  .process-btn:hover { box-shadow: 0 4px 24px rgba(255,255,255,0.2); transform: translateY(-1px); }
  .process-btn.disabled { background: var(--border); color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none; }

  /* ── RESULT PANEL ── */
  .result-panel {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px;
    margin-top: 14px; display: none;
  }
  .result-panel.visible { display: block; }

  .result-title {
    font-size: 9px; letter-spacing: 2px;
    text-transform: uppercase; color: var(--amber);
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
  }
  .result-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

  .result-row {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 6px 0; border-bottom: 1px solid var(--border);
    font-size: 10px;
  }
  .result-row:last-child { border-bottom: none; }
  .result-key { color: var(--muted); letter-spacing: 1px; }
  .result-val { color: var(--amber); font-weight: 500; }

  /* ── SLIDER ROW ── */
  .sl-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
  }
  .sl-label {
    font-size: 9px; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--muted);
    min-width: 120px;
  }
  .sl-input {
    flex: 1; -webkit-appearance: none;
    height: 2px; background: var(--border);
    border-radius: 1px; outline: none; cursor: pointer;
  }
  .sl-input::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px;
    border-radius: 50%; background: var(--amber); cursor: pointer;
    box-shadow: 0 0 6px rgba(255,255,255,0.3);
  }
  .sl-val {
    font-size: 10px; color: var(--amber);
    min-width: 32px; text-align: right;
  }

  /* ── UPLOAD MINI ── */
  .mini-upload {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center; cursor: pointer;
    transition: all 0.25s;
  }
  .mini-upload:hover { border-color: var(--amber); background: rgba(255,255,255,0.02); }
  .mini-upload.drag-over { border-color: var(--cream); background: rgba(255,255,255,0.06); }
  .mini-upload-icon { font-size: 24px; display: block; margin-bottom: 8px; }
  .mini-upload-text { font-size: 11px; color: var(--cream); }
  .mini-upload-sub  { font-size: 9px; color: var(--muted); margin-top: 4px; letter-spacing: 1px; }

  /* ── EXPORT CARDS (Streaming) ── */
  .export-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  }

  .export-card {
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: var(--radius);
    padding: 16px 14px;
    cursor: pointer; transition: all 0.25s;
    position: relative; overflow: hidden;
  }
  .export-card:hover { border-color: var(--amber-dim); transform: translateY(-2px); }
  .export-card.selected { border-color: var(--amber); box-shadow: 0 0 20px rgba(255,255,255,0.06); }

  .export-card-logo {
    font-size: 22px; display: block; margin-bottom: 8px;
  }
  .export-card-name {
    font-size: 11px; letter-spacing: 2px;
    text-transform: uppercase; color: var(--cream);
    margin-bottom: 6px; font-weight: 500;
  }
  .export-spec {
    font-size: 8px; letter-spacing: 1px;
    color: var(--muted); line-height: 1.8;
  }
  .export-spec strong { color: var(--amber-dim); }
  .export-check {
    position: absolute; top: 8px; right: 8px;
    width: 16px; height: 16px;
    background: var(--amber); border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    font-size: 9px; color: var(--bg);
  }
  .export-card.selected .export-check { display: flex; }

  /* ── AUDIO METERS ── */
  .audio-meter-row {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
  }
  .audio-meter-label {
    font-size: 9px; letter-spacing: 1px;
    text-transform: uppercase; color: var(--muted); min-width: 80px;
  }
  .audio-bar {
    flex: 1; height: 6px; background: var(--border);
    border-radius: 3px; overflow: hidden;
  }
  .audio-bar-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, var(--amber-dim), var(--amber));
    width: 0%; transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
  }
  .audio-db {
    font-size: 10px; color: var(--amber); min-width: 38px; text-align: right;
  }

  /* ── LIGHTING CANVAS ── */
  .light-canvas-wrap {
    position: relative; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    background: #000; min-height: 200px;
    display: flex; align-items: center; justify-content: center;
  }
  .light-canvas-wrap canvas { display: block; max-width: 100%; }

  /* ── Lighting BEFORE/AFTER comparison slider ── */
  .lf-compare { position: relative; width: 100%; background: #000; line-height: 0; user-select: none; touch-action: none; }
  .lf-compare canvas { display: block; width: 100%; }
  .lf-before-canvas { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
  .lf-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255,255,255,0.92); transform: translateX(-1px); cursor: ew-resize; z-index: 3; box-shadow: 0 0 8px rgba(0,0,0,0.5); }
  .lf-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.55); border: 1px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; letter-spacing: 1px; backdrop-filter: blur(3px); }
  .lf-tag { position: absolute; bottom: 8px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: #fff; background: rgba(0,0,0,0.55); padding: 3px 8px; border-radius: 3px; z-index: 2; }
  .lf-tag-l { left: 8px; }
  .lf-tag-r { right: 8px; }

  /* ── ANAMORPHIC CINEMA AI — live preview overlays ── */
  .ana-live { line-height: 0; }
  .ana-live > img, .ana-live > video { display: block; width: 100%; transition: transform .2s ease, filter .2s ease; }
  .ana-live.crop > img, .ana-live.crop > video { height: 100%; object-fit: cover; }
  .ana-breathe { animation: anaBreathe 7s ease-in-out infinite; }
  @keyframes anaBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
  .ana-ov { position: absolute; inset: 0; pointer-events: none; }
  .ana-ov-flare { mix-blend-mode: screen; animation: anaFlare 6s ease-in-out infinite; }
  @keyframes anaFlare { 0%, 100% { transform: translateX(-6%); opacity: .65; } 50% { transform: translateX(6%); opacity: 1; } }
  .light-placeholder {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    color: var(--muted); font-size: 10px;
    letter-spacing: 2px; text-transform: uppercase;
  }
  .light-placeholder span { font-size: 26px; }

  @media (max-width: 900px) {
    .mp-grid { grid-template-columns: 1fr; }
    .mp-col { border-right: none; border-bottom: 1px solid var(--border); }
    .export-grid { grid-template-columns: repeat(2,1fr); }
    .mode-grid { grid-template-columns: 1fr; }
  }

  /* ── HOME / LANDING PAGE ── */
  /* Top bar (header) stays visible on home; only the feature tabs + footer hide. */
  body.home .page-tabs { display: none; }
  body.home footer { display: none; }

  /* "Home" link in the tab bar */
  .page-tab.home-tab { color: var(--amber-dim); }
  .page-tab.home-tab:hover { color: var(--amber); }

  .home-wrap {
    min-height: calc(100vh + 220px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 110px 24px 140px;
    text-align: center;
    background: #020202;   /* exact match to the logo PNG's background so there's no box */
  }

  .home-logo-icon {
    width: 120px; height: 120px;
    margin-bottom: 22px;
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.12));
    animation: fadeUp 0.6s ease both;
  }

  .home-wordmark {
    display: flex; align-items: baseline; justify-content: center;
    line-height: 1; margin-bottom: 12px;
    animation: fadeUp 0.6s 0.05s ease both;
  }
  .home-wordmark span {
    font-family: var(--font-title);
    font-size: 60px; letter-spacing: 6px;
  }
  .home-wordmark .lw-col, .home-wordmark .lw-rvist { color: #ffffff; }
  .home-wordmark .lw-u {
    background: linear-gradient(135deg, #ff0040 0%, #ff6a00 9%, #ffb300 18%, #f7e000 27%, #9ee400 36%, #00d084 45%, #00d4c8 54%, #00a8ff 63%, #2060ff 72%, #7a30f0 81%, #c020f0 90%, #ff2e9a 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }

  .home-sub {
    font-size: 11px; letter-spacing: 5px;
    color: var(--muted); text-transform: uppercase;
    margin-bottom: 46px;
    animation: fadeUp 0.6s 0.1s ease both;
  }

  .home-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 215px));
    gap: 16px;
    max-width: 700px; width: 100%;
    animation: fadeUp 0.6s 0.15s ease both;
  }

  .home-card {
    border: 1px solid #888888;
    background: #000000;
    border-radius: 0;
    aspect-ratio: 1 / 1;
    padding: 26px 18px;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
    position: relative;
  }
  .home-card:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: var(--glow); }
  .home-card-icon { font-size: 30px; line-height: 1; }
  .home-card-name { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--cream); }
  .home-card-desc { font-size: 9px; letter-spacing: 0.5px; color: var(--muted); line-height: 1.6; }
  .home-card .home-badge {
    position: absolute; top: 8px; right: 8px;
    font-size: 8px; letter-spacing: 1px;
    background: var(--amber); color: var(--bg);
    padding: 1px 6px; border-radius: 20px; font-weight: 700;
  }

  @media (max-width: 700px) {
    .home-menu { grid-template-columns: repeat(2, 1fr); max-width: 420px; }
    .home-wordmark span { font-size: 42px; }
  }
  @media (max-width: 420px) {
    .home-menu { grid-template-columns: 1fr; }
  }

  /* ── MULTI-FILE NAV (anchors instead of buttons) ── */
  a.logo, a.page-tab, a.home-card { text-decoration: none; color: inherit; }
  a.page-tab { background: none; }

  /* ── TOP BAR: LANGUAGE + LOGIN ── */
  .lang-select { position: relative; display: flex; align-items: center; }
  .lang-trigger {
    display: flex; align-items: center; gap: 7px;
    background: var(--panel); border: 1px solid var(--border);
    color: var(--cream); font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 1px;
    padding: 7px 12px; border-radius: var(--radius);
    cursor: pointer; outline: none;
    transition: border-color 0.2s;
  }
  .lang-trigger:hover { border-color: var(--amber-dim); }
  .lang-globe { display: inline-flex; align-items: center; color: #ffffff; }
  .lang-globe svg { width: 14px; height: 14px; display: block; }
  .lang-caret { font-size: 9px; color: var(--muted); transition: transform 0.2s; }
  .lang-trigger[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

  .lang-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    min-width: 168px;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.55);
    padding: 4px; z-index: 200;
    display: none; flex-direction: column;
  }
  .lang-menu.open { display: flex; animation: fadeUp 0.18s ease; }
  .lang-option {
    text-align: left; background: none; border: none;
    color: var(--cream); font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 1px;
    padding: 8px 10px; border-radius: 3px; cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .lang-option:hover { background: rgba(255,255,255,0.06); color: var(--amber); }
  .lang-option.active { color: var(--amber); }
  .lang-option.active::after { content: ' ✓'; }

  .login-btn {
    background: transparent;
    border: 1px solid var(--amber);
    color: var(--amber);
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    padding: 7px 16px; border-radius: var(--radius);
    cursor: pointer; transition: background 0.2s, color 0.2s;
  }
  .login-btn:hover { background: var(--amber); color: var(--bg); }

  /* ── LOGIN MODAL ── */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(0,0,0,0.78);
    display: none; align-items: center; justify-content: center;
    padding: 24px; backdrop-filter: blur(3px);
  }
  .modal-overlay.show { display: flex; animation: fadeUp 0.25s ease; }

  .modal-card {
    width: 100%; max-width: 360px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 26px;
    box-shadow: var(--glow);
    position: relative;
  }
  .modal-card h2 {
    font-family: var(--font-title);
    font-size: 20px; letter-spacing: 2px;
    color: var(--cream); margin-bottom: 4px;
  }
  .modal-sub { font-size: 10px; letter-spacing: 1px; color: var(--muted); margin-bottom: 20px; }
  .modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; color: var(--muted);
    font-size: 18px; cursor: pointer; line-height: 1;
  }
  .modal-close:hover { color: var(--amber); }

  .modal-field { margin-bottom: 14px; }
  .modal-field label {
    display: block; font-size: 9px; letter-spacing: 2px;
    text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
  }
  .modal-field input {
    width: 100%; background: var(--panel);
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--cream); font-family: var(--font-mono);
    font-size: 12px; padding: 10px 12px; outline: none;
    transition: border-color 0.2s;
  }
  .modal-field input:focus { border-color: var(--amber); }

  .modal-submit {
    width: 100%; margin-top: 8px; padding: 12px;
    background: var(--amber); border: none; color: var(--bg);
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
    border-radius: var(--radius); cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .modal-submit:hover { box-shadow: 0 4px 20px rgba(255,255,255,0.2); transform: translateY(-1px); }
  .modal-note { font-size: 9px; color: var(--muted); text-align: center; margin-top: 14px; letter-spacing: 0.5px; }
  .modal-note strong { color: var(--amber-dim); }

  /* ── LANDING / SITE FOOTER ── */
  body.home .site-footer { display: block; }
  .site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg2);
    padding: 38px 32px 26px;
    position: relative; z-index: 1;
  }
  .site-footer-inner {
    max-width: 1000px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 32px;
    justify-content: space-between; align-items: flex-start;
  }
  .site-footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 300px; }
  .site-footer-brand .sf-name {
    font-family: var(--font-title); font-size: 22px; letter-spacing: 4px; color: var(--cream);
  }
  .site-footer-brand .sf-tag { font-size: 10px; letter-spacing: 0.5px; color: var(--muted); line-height: 1.7; }

  .site-footer-col { display: flex; flex-direction: column; gap: 9px; }
  .site-footer-col h4 {
    font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--amber-dim);
    margin-bottom: 3px; font-weight: 700;
  }
  .site-footer-col a {
    font-size: 11px; letter-spacing: 0.5px; color: var(--muted); text-decoration: none;
    transition: color 0.2s;
  }
  .site-footer-col a:hover { color: var(--amber); }

  .social-row { display: flex; gap: 10px; margin-top: 2px; }
  .social-link {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--border); color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
  }
  .social-link:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
  .social-link svg { width: 17px; height: 17px; display: block; }

  .site-footer-bottom {
    max-width: 1000px; margin: 26px auto 0; padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: space-between; align-items: center;
  }
  .site-footer-bottom .copy { font-size: 10px; letter-spacing: 1px; color: var(--muted); }
  .site-footer-bottom .legal-links { display: flex; gap: 16px; }
  .site-footer-bottom .legal-links a { font-size: 10px; letter-spacing: 1px; color: var(--amber-dim); text-decoration: none; }
  .site-footer-bottom .legal-links a:hover { color: var(--amber); }

  /* ── LEGAL PAGES (privacy / cookies) ── */
  .legal-wrap { max-width: 760px; margin: 0 auto; padding: 44px 28px 64px; position: relative; z-index: 1; }
  .legal-wrap h1 { font-family: var(--font-serif); font-size: 32px; color: var(--cream); margin-bottom: 6px; }
  .legal-updated { font-size: 10px; letter-spacing: 1px; color: var(--muted); margin-bottom: 26px; }
  .legal-wrap h2 { font-size: 12px; letter-spacing: 2px; color: var(--amber); text-transform: uppercase; margin: 28px 0 10px; }
  .legal-wrap p, .legal-wrap li { font-size: 12px; line-height: 1.85; color: var(--gold); letter-spacing: 0.3px; }
  .legal-wrap ul { margin: 8px 0 8px 22px; }
  .legal-wrap li { margin-bottom: 4px; }
  .legal-wrap a { color: var(--amber); }
  .legal-back { display: inline-block; margin-bottom: 18px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--amber-dim); text-decoration: none; }
  .legal-back:hover { color: var(--amber); }

  /* ── LOGO 3D TWIST ── (twists about the vertical center of the C) */
  @keyframes logoTwist {
    0%   { transform: perspective(320px) rotateY(-32deg) rotateZ(-2deg); }
    50%  { transform: perspective(320px) rotateY( 32deg) rotateZ( 2deg); }
    100% { transform: perspective(320px) rotateY(-32deg) rotateZ(-2deg); }
  }
  /* Header (top-left) logo stays STATIC — only the front-page hero animates. */
  .logo-icon {
    transform-style: preserve-3d;
  }
  .home-logo-icon {
    transform-style: preserve-3d;
    animation: logoTwist 7s ease-in-out infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    .logo-icon, .home-logo-icon { animation: none; }
  }

  /* Remove film-grain overlay on the landing page only (kept on all other pages) */
  body.home::before { display: none; }

  /* ── CHATBOT (top-right) ── */
  .chat-launcher {
    position: fixed; bottom: 24px; right: 24px; z-index: 10000;
    width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid var(--amber); background: var(--panel); color: var(--amber);
    cursor: grab; user-select: none; touch-action: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; box-shadow: 0 6px 24px rgba(0,0,0,0.5);
    transition: box-shadow 0.2s;
  }
  .chat-launcher:hover { box-shadow: 0 8px 30px rgba(255,255,255,0.18); }
  .chat-launcher:active { cursor: grabbing; }
  .chat-launcher .chat-badge-dot {
    position: absolute; top: 7px; right: 7px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green);
  }
  .chat-launcher.hidden { display: none; }

  .chat-panel {
    position: fixed; bottom: 88px; right: 24px; z-index: 10000;
    width: 344px; max-width: calc(100vw - 32px);
    height: 480px; max-height: calc(100vh - 116px);
    background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 12px 44px rgba(0,0,0,0.65);
    display: none; flex-direction: column; overflow: hidden;
  }
  .chat-panel.open { display: flex; animation: fadeUp 0.2s ease; }

  .chat-head { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--border); background: var(--bg3); cursor: move; user-select: none; touch-action: none; }
  .chat-head .ch-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#ff0040,#00a8ff,#c020f0); display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; flex-shrink: 0; }
  .chat-head .ch-title { font-size: 12px; letter-spacing: 1px; color: var(--cream); font-weight: 500; }
  .chat-head .ch-sub { font-size: 9px; letter-spacing: 1px; color: var(--muted); }
  .chat-head .ch-close { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
  .chat-head .ch-close:hover { color: var(--amber); }

  .chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
  .chat-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 12px; line-height: 1.6; letter-spacing: 0.2px; white-space: pre-wrap; }
  .chat-msg.bot { align-self: flex-start; background: var(--panel); border: 1px solid var(--border); color: var(--cream); border-bottom-left-radius: 3px; }
  .chat-msg.user { align-self: flex-end; background: var(--amber); color: var(--bg); border-bottom-right-radius: 3px; font-weight: 500; }
  .chat-typing { align-self: flex-start; color: var(--muted); font-size: 16px; letter-spacing: 2px; padding: 2px 8px; }

  .chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
  .chat-chip { font-size: 10px; letter-spacing: 0.3px; color: var(--muted); border: 1px solid var(--border); background: transparent; border-radius: 20px; padding: 5px 10px; cursor: pointer; transition: border-color 0.15s, color 0.15s; font-family: var(--font-mono); }
  .chat-chip:hover { border-color: var(--amber); color: var(--amber); }

  .chat-input-row { display: flex; gap: 8px; padding: 11px 13px; border-top: 1px solid var(--border); background: var(--bg3); }
  .chat-input { flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; color: var(--cream); font-family: var(--font-mono); font-size: 12px; padding: 9px 14px; outline: none; }
  .chat-input:focus { border-color: var(--amber); }
  .chat-send { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--amber); color: var(--bg); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .chat-send:hover { box-shadow: 0 0 14px rgba(255,255,255,0.3); }

  @media (max-width: 600px) {
    .chat-panel { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; height: 62vh; }
    .chat-launcher { top: auto; bottom: 16px; right: 16px; }
  }

  /* ── PRICING ── */
  .pricing-section { min-height: calc(100vh - 84px); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 28px; border-top: 1px solid var(--border); background: var(--bg2); text-align: center; position: relative; z-index: 1; }
  .pricing-title { font-family: var(--font-serif); font-size: 34px; color: var(--cream); margin-bottom: 8px; }
  .pricing-title em { color: var(--amber); font-style: normal; }
  .pricing-sub { font-size: 11px; letter-spacing: 1px; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }
  .pricing-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; max-width: 900px; margin: 34px auto 0; width: 100%; }
  .plan-card { flex: 1 1 260px; max-width: 320px; border: 1px solid var(--border); border-radius: 10px; padding: 28px 24px 26px; background: var(--panel); text-align: left; position: relative; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
  .plan-card:hover { transform: translateY(-3px); }
  .plan-card.featured { border-color: var(--amber); box-shadow: var(--glow); }
  .plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--amber); color: var(--bg); font-size: 8px; letter-spacing: 1.5px; padding: 4px 12px; border-radius: 20px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
  .plan-name { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--amber-dim); margin-bottom: 12px; }
  .plan-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 4px; }
  .plan-price .amt { font-family: var(--font-title); font-size: 40px; color: var(--cream); line-height: 1; }
  .plan-price .per { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
  .plan-note { font-size: 10px; color: var(--green); letter-spacing: 0.5px; margin-bottom: 18px; min-height: 13px; }
  .plan-features { list-style: none; margin: 0 0 22px; padding: 0; }
  .plan-features li { font-size: 11px; color: var(--gold); letter-spacing: 0.3px; padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
  .plan-features li:last-child { border-bottom: none; }
  .plan-features li::before { content: '✓'; color: var(--amber); font-size: 11px; }
  .plan-btn { width: 100%; padding: 12px; border-radius: var(--radius); font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; border: 1px solid var(--amber); background: transparent; color: var(--amber); }
  .plan-btn:hover { background: var(--amber); color: var(--bg); }
  .plan-card.featured .plan-btn { background: var(--amber); color: var(--bg); }
  .plan-card.featured .plan-btn:hover { box-shadow: 0 4px 20px rgba(255,255,255,0.25); }

  /* subscription modal */
  .modal-card.sub-card { max-width: 780px; }

  /* credits badge in top bar */
  .credits-badge {
    background: transparent; border: 1px solid var(--border);
    color: var(--amber-dim); font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 1px; padding: 6px 11px;
    border-radius: 20px; cursor: pointer; white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
  }
  .credits-badge:hover { border-color: var(--amber); color: var(--amber); }
  .sub-card .pricing-grid { margin-top: 20px; }
  @media (max-width: 600px) { .pricing-grid { flex-direction: column; align-items: center; } }

  /* ── SERIES / STREAMING LOOK SWATCHES ── */
  .look-swatch.netflix-drama   { background: linear-gradient(135deg,#0a1a1e 0%,#1d3a3a 35%,#9a6a4a 70%,#e8c49a 100%); }
  .look-swatch.bet-series      { background: linear-gradient(135deg,#2a1208 0%,#7a3a14 35%,#c87038 70%,#f0c060 100%); filter: saturate(1.2); }
  .look-swatch.hbo-cine        { background: linear-gradient(135deg,#0c0c10 0%,#28303a 40%,#6a6e74 75%,#b8b4a8 100%); filter: contrast(1.05) saturate(0.9); }
  .look-swatch.bel-air         { background: linear-gradient(135deg,#06181f 0%,#0e3a4a 35%,#3a86a0 60%,#e0b890 100%); filter: saturate(1.25); }
  .look-swatch.tubi-crime      { background: linear-gradient(135deg,#0a0e0a 0%,#1e2a1e 40%,#4a5a48 75%,#9aa890 100%); filter: contrast(1.15) saturate(0.85); }
  .look-swatch.hollywood-skin  { background: linear-gradient(135deg,#2a1a14 0%,#6e4a38 40%,#c0906e 75%,#f0d0b0 100%); }
  .look-swatch.the-chi         { background: linear-gradient(135deg,#1a1004 0%,#5a3a14 40%,#b07830 75%,#e8c070 100%); filter: saturate(1.1); }
  .look-swatch.power-look      { background: linear-gradient(135deg,#04060e 0%,#0e1a30 40%,#264a70 70%,#6a90c0 100%); filter: contrast(1.1); }
  .look-swatch.reasonable-doubt{ background: linear-gradient(135deg,#160a04 0%,#4a2410 40%,#9a5a2a 70%,#e0a860 100%); filter: saturate(1.15); }

  /* ── PER-TASK COST HINT + CHAT CREDITS ── */
  .task-cost {
    font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--amber-dim); text-align: center;
    margin-top: 7px; opacity: 0.9;
  }
  .chat-credits {
    font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--amber-dim); background: var(--bg3);
    border-bottom: 1px solid var(--border);
    padding: 6px 15px; text-align: right;
  }

  /* ── "Made by filmmakers" credo on the splash ── */
  .home-credo {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin: -30px 0 42px;
    font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
    color: var(--amber-dim); font-style: italic;
  }
  .home-credo::before, .home-credo::after {
    content: ''; width: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber-dim));
  }
  .home-credo::after { background: linear-gradient(90deg, var(--amber-dim), transparent); }

  /* ── WORKSPACE BAR (undo/redo · transport · export · drafts) ── */
  .workspace-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 20px; background: var(--bg3);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 90;
  }
  .ws-group { display: flex; align-items: center; gap: 8px; }
  .ws-spacer { flex: 1; }
  .ws-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--panel); border: 1px solid var(--border);
    color: var(--cream); font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
    padding: 7px 12px; border-radius: var(--radius); cursor: pointer;
    text-decoration: none; transition: border-color 0.2s, color 0.2s, opacity 0.2s;
  }
  .ws-btn:hover { border-color: var(--amber-dim); color: var(--amber); }
  .ws-btn:disabled { opacity: 0.35; cursor: not-allowed; }
  .ws-btn.primary { border-color: var(--amber); color: var(--amber); }
  .ws-btn.primary:hover { background: var(--amber); color: var(--bg); }

  .ws-transport { position: relative; }
  .ws-menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 180px;
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.55); padding: 4px; z-index: 95;
    display: none; flex-direction: column;
  }
  .ws-transport.open .ws-menu { display: flex; }
  .ws-menu button {
    text-align: left; background: none; border: none; color: var(--cream);
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
    padding: 8px 10px; border-radius: 3px; cursor: pointer;
  }
  .ws-menu button:hover { background: rgba(255,255,255,0.06); color: var(--amber); }
  .ws-menu button:disabled { opacity: 0.35; cursor: not-allowed; }

  /* ── DRAFTS PAGE ── */
  .drafts-wrap { max-width: 1000px; margin: 0 auto; padding: 40px 28px 64px; position: relative; z-index: 1; }
  .drafts-wrap h1 { font-family: var(--font-serif); font-size: 30px; color: var(--cream); margin-bottom: 6px; }
  .drafts-sub { font-size: 11px; letter-spacing: 1px; color: var(--muted); margin-bottom: 26px; }
  .drafts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .draft-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--panel); }
  .draft-thumb { width: 100%; height: 120px; object-fit: cover; display: block; background: #000; }
  .draft-thumb.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 24px; }
  .draft-info { padding: 12px 14px; }
  .draft-name { font-size: 12px; color: var(--cream); letter-spacing: 0.5px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .draft-meta { font-size: 9px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
  .draft-actions { display: flex; gap: 8px; }
  .draft-actions button { flex: 1; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; padding: 7px; border-radius: var(--radius); cursor: pointer; font-family: var(--font-mono); border: 1px solid var(--border); background: transparent; color: var(--cream); transition: all 0.2s; }
  .draft-open:hover { border-color: var(--amber); color: var(--amber); }
  .draft-del:hover { border-color: var(--red); color: var(--red); }
  .drafts-empty { color: var(--muted); font-size: 12px; letter-spacing: 1px; padding: 40px 0; text-align: center; line-height: 2; }
  .drafts-login-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
    background: var(--cream); color: #050505; font-weight: 700; text-decoration: none;
    font-family: var(--font-mono); font-size: 13px; letter-spacing: 1px;
    padding: 12px 24px; border-radius: 28px; transition: transform .15s ease;
  }
  .drafts-login-btn:hover { transform: translateY(-1px); }

  /* "NEW" badge on home cards */
  .home-badge.new { background: var(--green); color: #04210f; }
  @media (max-width: 760px) { .drafts-grid { grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 480px) { .drafts-grid { grid-template-columns: 1fr; } }

  /* ── IN-BROWSER RENDER (ffmpeg.wasm) ── */
  #renderPanel input[type=file] { display:block; width:100%; font-family:var(--font-mono); font-size:10px; color:var(--muted); margin:8px 0 4px; }
  .render-status { font-size:10px; letter-spacing:0.5px; color:var(--muted); margin-top:8px; line-height:1.6; }
  .render-progress { height:6px; background:var(--border); border-radius:3px; overflow:hidden; margin-top:10px; }
  .render-bar { height:100%; width:0%; background:linear-gradient(90deg,var(--amber-dim),var(--amber)); transition:width 0.2s; }

  /* ── ACCESSIBILITY: visible keyboard focus ── */
  a:focus-visible, button:focus-visible, input:focus-visible,
  select:focus-visible, [tabindex]:focus-visible, .look-card:focus-visible,
  .home-card:focus-visible, .mode-card:focus-visible, .export-card:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
  }

  /* ── REMOVE MEDIA (✕) button on previews ── */
  .media-del {
    position: absolute; top: 8px; right: 8px; z-index: 6;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(0,0,0,0.7); border: 1px solid var(--border);
    color: var(--cream); font-size: 13px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }
  .media-del:hover { border-color: var(--red); color: var(--red); background: rgba(0,0,0,0.88); }
  /* shift look-match's "Change" button left so the ✕ fits beside it */
  .ref-preview .ref-change-btn { right: 42px; }

  /* ── FAVORITE LOOKS ── */
  .look-fav {
    position: absolute; top: 6px; left: 6px; z-index: 3;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,0.55); border: none;
    color: rgba(255,255,255,0.45); font-size: 11px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.2s, background 0.2s;
  }
  .look-fav:hover { color: #ffffff; background: rgba(0,0,0,0.78); }
  .look-fav.on { color: #ffce3a; }
  #favLooks { margin-bottom: 18px; }
  .fav-looks-label {
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: #ffce3a; margin-bottom: 10px;
  }

  /* ── CLEAR AUDIO ── */
  .audio-clear-btn {
    margin-top: 10px; background: transparent; border: 1px solid var(--border);
    color: var(--muted); font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 1px; text-transform: uppercase; padding: 7px 12px;
    border-radius: var(--radius); cursor: pointer; transition: border-color 0.2s, color 0.2s;
  }
  .audio-clear-btn:hover { border-color: var(--red); color: var(--red); }

  /* ── AUDIO PLAYER (Audio Match) ── */
  .audio-player { margin-top: 10px; display: none; }
  .audio-player.on { display: block; }
  .ap-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .ap-btn {
    background: var(--panel); border: 1px solid var(--border); color: var(--cream);
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, color 0.2s;
  }
  .ap-btn:hover { border-color: var(--amber); color: var(--amber); }
  .ap-btn.play { width: 40px; height: 40px; font-size: 15px; border-color: var(--amber); color: var(--amber); }
  .ap-time { font-size: 10px; color: var(--muted); letter-spacing: 1px; min-width: 84px; font-variant-numeric: tabular-nums; }
  .ap-vol { -webkit-appearance: none; appearance: none; width: 74px; height: 4px; border-radius: 3px; background: var(--border); outline: none; cursor: pointer; }
  .ap-vol::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--cream); cursor: pointer; }
  .ap-vol::-moz-range-thumb { width: 13px; height: 13px; border: none; border-radius: 50%; background: var(--cream); cursor: pointer; }
  .ap-mode { margin-left: auto; display: flex; gap: 6px; }
  .ap-mode button {
    font-size: 9px; letter-spacing: 1px; text-transform: uppercase; padding: 6px 11px;
    border-radius: var(--radius); border: 1px solid var(--border); background: transparent;
    color: var(--muted); cursor: pointer; font-family: var(--font-mono); transition: all 0.2s;
  }
  .ap-mode button.on { border-color: var(--amber); color: var(--amber); }

  /* ════════════════════════════════════════════════════════════════════
     POLISH PACK — looks + perf + a11y. Self-contained; delete this whole
     block (down to the END POLISH PACK marker) to fully revert.
     ════════════════════════════════════════════════════════════════════ */
  html { scroll-behavior: smooth; }
  body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  ::selection { background: var(--amber); color: #000; }

  /* thin, themed scrollbar (Firefox + WebKit) */
  * { scrollbar-width: thin; scrollbar-color: #2c2c2c #000; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: #000; }
  ::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 6px; border: 2px solid #000; }
  ::-webkit-scrollbar-thumb:hover { background: var(--amber-dim); }

  /* tactile press feedback */
  button:active, .home-card:active, .mode-card:active, .export-card:active,
  .toggle-btn:active, .process-btn:active, .download-btn:active { transform: translateY(1px); }

  /* gentle entrance for the active page */
  .page-view.active { animation: cvFadeUp 0.5s ease both; }
  @keyframes cvFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  /* crisper hover lift on the home tiles + a subtle inner glow */
  .home-card { transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s; }
  .home-card:hover { background: #0a0a0a; box-shadow: 0 10px 34px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset; }
  .home-drafts-btn {
    display: inline-flex; align-items: center; gap: 8px; margin: 26px auto 0;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 24px;
    color: var(--cream); font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px;
    padding: 11px 22px; text-decoration: none; transition: border-color .2s, background .2s;
  }
  .home-drafts-btn:hover { border-color: var(--cream); background: rgba(255,255,255,0.08); }
  .home-card-icon { transition: transform 0.25s ease; }
  .home-card:hover .home-card-icon { transform: scale(1.12); }

  /* unified, accessible focus ring */
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
  .home-card:focus-visible, .toggle-btn:focus-visible, .mode-card:focus-visible {
    outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px;
  }

  /* respect reduced-motion (also trims paint cost on low-power devices) */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important; scroll-behavior: auto !important;
    }
  }
  /* ── Exact brand lockup image (colurvist-hero.png) + metallic shine + twist/colors-moving ── */
  .home-hero-lockup {
    display: none; position: relative;
    width: 460px; max-width: 86vw; margin: 0 auto 30px;
    transform-style: preserve-3d;
  }
  .home-hero-lockup.on { display: block; }
  .home-hero-img {
    display: block; width: 100%; height: auto;
    /* punchier = more metallic: lift contrast + a touch of sheen on the chrome.
       No drop-shadow — the PNG is opaque, so a shadow would draw a square halo. */
    filter: contrast(1.1) brightness(1.05) saturate(1.12);
    animation: cvHeroTwist 8s linear infinite, fadeUp 0.6s ease both;
    will-change: filter, transform;
    /* feather all four edges so the square outline fades into the page (content is
       well inside, so the C+V and wordmark are untouched) */
    -webkit-mask-image:
      linear-gradient(to right,  transparent 0, #000 7%, #000 93%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right,  transparent 0, #000 7%, #000 93%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  }
  /* "colors moving" = a slow hue cycle through the baked rainbow; the silver V and
     white text are desaturated so they stay neutral metal while the C flows. */
  @keyframes cvHeroTwist {
    0%   { filter: contrast(1.1) brightness(1.05) saturate(1.12) hue-rotate(0deg);   transform: scale(1); }
    50%  { filter: contrast(1.12) brightness(1.08) saturate(1.14) hue-rotate(180deg); transform: scale(1.015); }
    100% { filter: contrast(1.1) brightness(1.05) saturate(1.12) hue-rotate(360deg); transform: scale(1); }
  }
  @media (prefers-reduced-motion: reduce) {
    .home-hero-img { animation: fadeUp 0.6s ease both; }
  }
  /* ════════════════════════ END POLISH PACK ════════════════════════ */

  /* ════════════════════════════════════════════════════════════════════
     CAPCUT-INSPIRED REDESIGN (v=24)
     - Home: small brand strip, big "Start new project" CTA, AI quick
       tiles, all-tools pill row, recent-projects strip.
     - Tool pages: dock .page-tabs against the workspace so tabs + the
       upload zone read as one integrated editor panel (not separate
       browser-tab strip floating above the page).
     ════════════════════════════════════════════════════════════════════ */

  /* ── HOME LAYOUT (CapCut-style) ── */
  .home-wrap-cc {
    min-height: auto;
    justify-content: flex-start;
    padding: 56px 28px 90px;
    max-width: 1180px;
    margin: 0 auto;
    background: #020202;
    text-align: left;
    align-items: stretch;
    gap: 0;
  }

  /* Compact brand strip — small, centered, no longer dominating the page. */
  .home-brand-strip {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; margin-bottom: 38px;
  }
  .home-brand-strip .home-logo-icon {
    width: 64px; height: 64px; margin-bottom: 10px;
  }
  .home-brand-strip .home-wordmark { margin-bottom: 6px; }
  .home-brand-strip .home-wordmark span { font-size: 32px; letter-spacing: 4px; }
  .home-brand-strip .home-sub {
    font-size: 9px; letter-spacing: 4px; margin-bottom: 8px;
  }
  .home-brand-strip .home-credo {
    font-size: 10px; letter-spacing: 3px; color: var(--muted);
    text-transform: uppercase; margin: 0;
  }
  .home-hero-lockup-sm { width: 280px; max-width: 70vw; margin: 0 auto 8px; }

  /* PRIMARY STAGE — Start a new project + AI quick tiles */
  .home-stage {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 18px;
    margin-bottom: 44px;
  }

  .home-newproject {
    position: relative; display: flex; align-items: center; gap: 22px;
    padding: 38px 32px;
    border-radius: 18px;
    background:
      radial-gradient(120% 180% at 0% 0%, rgba(255,255,255,0.12) 0%, transparent 55%),
      radial-gradient(140% 180% at 100% 100%, rgba(255,255,255,0.06) 0%, transparent 60%),
      linear-gradient(135deg, #141414 0%, #0a0a0a 60%, #050505 100%);
    border: 1px dashed rgba(255,255,255,0.45);
    color: var(--cream);
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  }
  .home-newproject::after {
    content: ''; position: absolute; inset: 1px;
    border-radius: 17px; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 60%);
  }
  .home-newproject:hover {
    transform: translateY(-2px);
    border-color: var(--amber);
    box-shadow: 0 18px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.25) inset;
  }
  .np-plus {
    flex: 0 0 auto;
    width: 78px; height: 78px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 44px; font-weight: 300; line-height: 1;
    color: #050505;
    background: linear-gradient(135deg, #ffffff 0%, #e2e2e2 100%);
    box-shadow: 0 8px 28px rgba(255,255,255,0.18);
  }
  .np-text { flex: 1; min-width: 0; }
  .np-title {
    font-family: var(--font-title);
    font-size: 24px; letter-spacing: 2px;
    color: #ffffff; margin-bottom: 6px;
  }
  .np-sub {
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 1.5px;
    color: var(--muted); text-transform: uppercase;
  }
  .np-arrow {
    font-size: 26px; color: var(--amber);
    transition: transform .25s ease;
  }
  .home-newproject:hover .np-arrow { transform: translateX(4px); }

  /* AI quick tiles (right side of the stage on desktop) */
  .home-quick-row {
    display: grid; grid-template-columns: 1fr; gap: 10px;
  }
  .home-quick {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    column-gap: 14px; row-gap: 2px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #0a0a0a;
    border: 1px solid var(--border);
    color: var(--cream);
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s;
  }
  .home-quick:hover {
    border-color: var(--amber);
    background: #111111;
    transform: translateX(2px);
  }
  .hq-icon {
    grid-row: 1 / span 2;
    font-size: 26px;
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
  }
  .hq-name {
    font-family: var(--font-title);
    font-size: 15px; letter-spacing: 1.5px; color: #fff;
  }
  .hq-desc {
    font-family: var(--font-mono);
    font-size: 9px; letter-spacing: 1.5px;
    color: var(--muted); text-transform: uppercase;
  }
  .hq-badge {
    position: absolute; top: 10px; right: 12px;
    font-family: var(--font-mono);
    font-size: 8px; letter-spacing: 1px;
    background: var(--amber); color: var(--bg);
    padding: 2px 7px; border-radius: 20px; font-weight: 700;
  }
  .hq-badge.new { background: #2ecc71; color: #052013; }

  /* Section heads */
  .home-section-head {
    display: flex; align-items: center; gap: 14px;
    margin: 10px 0 16px;
  }
  .hsh-title {
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 3px;
    color: var(--cream); text-transform: uppercase;
  }
  .hsh-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
  }
  .hsh-link {
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 2px;
    color: var(--amber-dim); text-transform: uppercase;
    text-decoration: none;
  }
  .hsh-link:hover { color: var(--amber); }

  /* All tools — horizontal pill row */
  .home-tools-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 40px;
  }
  .home-tool {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px;
    padding: 18px 10px;
    border-radius: 14px;
    background: #0a0a0a;
    border: 1px solid var(--border);
    color: var(--cream);
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s;
    min-height: 96px;
    text-align: center;
  }
  .home-tool:hover {
    border-color: var(--amber);
    background: #111111;
    transform: translateY(-2px);
  }
  .ht-icon {
    font-size: 26px; line-height: 1;
    transition: transform .25s ease;
  }
  .home-tool:hover .ht-icon { transform: scale(1.12); }
  .ht-name {
    font-family: var(--font-mono);
    font-size: 9.5px; letter-spacing: 1.5px;
    color: var(--cream); text-transform: uppercase;
    line-height: 1.3;
  }
  .ht-badge {
    position: absolute; top: 6px; right: 6px;
    font-family: var(--font-mono);
    font-size: 7px; letter-spacing: 1px;
    background: var(--amber); color: var(--bg);
    padding: 1px 5px; border-radius: 20px; font-weight: 700;
  }
  .ht-badge.new { background: #2ecc71; color: #052013; }

  /* Recent drafts strip */
  .home-drafts-strip { display: block; }
  .home-drafts-tile {
    display: flex; align-items: center; gap: 18px;
    padding: 22px 26px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0c0c0c 0%, #060606 100%);
    border: 1px solid var(--border);
    color: var(--cream); text-decoration: none;
    transition: border-color .2s, transform .2s, background .2s;
  }
  .home-drafts-tile:hover {
    border-color: var(--cream);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #121212 0%, #080808 100%);
  }
  .hdt-plus {
    width: 56px; height: 56px; border-radius: 12px;
    display: grid; place-items: center;
    font-size: 26px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
  }
  .hdt-text { display: flex; flex-direction: column; gap: 4px; }
  .hdt-title {
    font-family: var(--font-title);
    font-size: 18px; letter-spacing: 2px; color: #fff;
  }
  .hdt-sub {
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 1.5px;
    color: var(--muted); text-transform: uppercase;
  }

  /* Hide the old centered drafts button on the new home (kept in HTML for fallback) */
  .home-wrap-cc .home-drafts-btn { display: none; }

  /* Big Drafts button (replaces the old quick tiles on the right of the stage) */
  .home-draftsbig {
    position: relative; display: flex; align-items: center; gap: 18px;
    padding: 38px 30px; border-radius: 18px;
    background: linear-gradient(135deg, #141414 0%, #0a0a0a 60%, #050505 100%);
    border: 1px solid var(--border); color: var(--cream); text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  }
  .home-draftsbig:hover { transform: translateY(-2px); border-color: var(--cream); box-shadow: 0 18px 60px rgba(0,0,0,0.55); }
  .ndb-icon { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); }
  .ndb-text { flex: 1; min-width: 0; }
  .ndb-title { font-family: var(--font-title); font-size: 24px; letter-spacing: 2px; color: #fff; margin-bottom: 6px; }
  .ndb-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
  .ndb-arrow { font-size: 26px; color: var(--amber); transition: transform .25s ease; }
  .home-draftsbig:hover .ndb-arrow { transform: translateX(4px); }
  @media (max-width: 600px) { .home-draftsbig { padding: 26px 20px; } .ndb-icon { width: 60px; height: 60px; font-size: 28px; } .ndb-title { font-size: 19px; } }

  /* Responsive: collapse the stage to one column, tools wrap on smaller screens */
  @media (max-width: 960px) {
    .home-stage { grid-template-columns: 1fr; }
    .home-tools-row { grid-template-columns: repeat(4, 1fr); }
  }
  @media (max-width: 600px) {
    .home-wrap-cc { padding: 40px 16px 70px; }
    .home-newproject { padding: 26px 20px; gap: 16px; }
    .np-plus { width: 60px; height: 60px; font-size: 34px; }
    .np-title { font-size: 19px; }
    .home-tools-row { grid-template-columns: repeat(3, 1fr); }
    .home-brand-strip .home-wordmark span { font-size: 26px; }
  }
  @media (max-width: 420px) {
    .home-tools-row { grid-template-columns: repeat(2, 1fr); }
    .np-arrow { display: none; }
  }

  /* ── TOOL PAGE TAB DOCKING (CapCut editor-style) ──
     Pulls the .page-tabs row onto the same dark surface as the workspace
     and tightens the gap so tabs + upload area read as one panel. */
  body:not(.home) .page-tabs {
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 16px 0;
    background: var(--bg);
    border-bottom: none;
    position: relative;
  }
  body:not(.home) .page-tabs::after {
    content: '';
    position: absolute; left: 16px; right: 16px; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
    pointer-events: none;
  }
  body:not(.home) .page-tab {
    padding: 9px 14px;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
    margin-bottom: 0;
    background: transparent;
    transition: background .18s, color .18s, transform .18s;
  }
  body:not(.home) .page-tab:hover {
    background: rgba(255,255,255,0.04);
    color: var(--cream);
  }
  body:not(.home) .page-tab.active {
    background: var(--bg2);
    color: var(--amber);
    box-shadow: 0 -1px 0 var(--amber) inset, 1px 0 0 var(--border), -1px 0 0 var(--border), 0 -1px 0 var(--border);
    position: relative;
    z-index: 2;
  }
  body:not(.home) .page-tab.home-tab {
    margin-right: 6px;
    color: var(--muted);
  }
  body:not(.home) .page-tab.home-tab:hover { color: var(--amber); background: rgba(255,255,255,0.04); }

  /* Tighten the gap between the docked tabs and the hero/workspace below */
  body:not(.home) .hero-strip { padding-top: 22px; }
  body:not(.home) .page-view.active > .hero-strip:first-child { margin-top: 0; }

  /* On tool pages WITHOUT a hero-strip (audio, look-match, etc.), pull the
     workspace right under the tabs so the upload zone feels docked. */
  body:not(.home) .page-view.active > .workspace:first-child,
  body:not(.home) .page-view.active > .ai-page:first-child {
    margin-top: 0;
  }
  body:not(.home) .workspace > .main-col > .section:first-child,
  body:not(.home) .ai-page > .ai-col:first-child > .section:first-child {
    padding-top: 18px;
  }

  /* Mobile: keep tabs scrollable horizontally instead of wrapping into many rows */
  @media (max-width: 720px) {
    body:not(.home) .page-tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
      justify-content: flex-start;
      padding: 8px 12px 0;
      scrollbar-width: thin;
    }
    body:not(.home) .page-tab { flex: 0 0 auto; }
  }
