  #fsStudio { position: fixed; inset: 0; z-index: 61; background: var(--bg, #05070d); overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 90px); }
  #fsStudio.hidden { display: none; }
  html[data-theme="light"] #fsStudio { background: #f5f5f7; }
  body.fs-open { overflow: hidden; }
  #fsStudio .mv-grid { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
  #fsStudio .mv-grid > * { min-width: 0; }
  @media (max-width: 860px) { #fsStudio .mv-grid { grid-template-columns: minmax(0, 1fr); } }
  .fs-top h2 .ic { background: linear-gradient(135deg, #f59e0b, #ef4444); }
  .fs-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
  .fs-tabs::-webkit-scrollbar { display: none; }
  .fs-tabs button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 22px; font-size: 14px; }
  .fs-tabs button.on { background: linear-gradient(135deg, var(--accent, #3b82f6), var(--accent-2, #8b5cf6)); color: var(--accent-text, #fff); border-color: transparent; }
  .fs-pbar { height: 8px; border-radius: 4px; background: color-mix(in srgb, currentColor 14%, transparent); overflow: hidden; margin: 8px 0 4px; }
  .fs-pbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #f59e0b, #ef4444); transition: width .4s; }
  .fs-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
  .fs-row button { min-height: 44px; }
  .fs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 12px; }
  .fs-ent { border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
  .fs-look { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; background: rgba(127,127,127,.15); display: block; }
  .fs-ph { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; display: grid; place-items: center; color: var(--muted, #8b93a7); font-size: 13px; background: rgba(127,127,127,.12); text-align: center; padding: 8px; }
  .fs-ent input, .fs-ent textarea, .fs-ent select, .fs-shot input, .fs-shot textarea, .fs-shot select { width: 100%; box-sizing: border-box; }
  .fs-photos { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .fs-photos .ph { position: relative; width: 62px; height: 62px; }
  .fs-photos .ph img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; display: block; }
  .fs-photos .ph button { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; min-height: 26px; padding: 0; border-radius: 13px; font-size: 12px; }
  .fs-photos .ph small { position: absolute; left: 3px; bottom: 3px; background: rgba(0,0,0,.65); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 6px; }
  .fs-shots { display: grid; gap: 14px; margin-top: 10px; }
  .fs-shot { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 14px; border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 16px; padding: 12px; }
  @media (max-width: 760px) { .fs-shot { grid-template-columns: 1fr; } }
  .fs-fr { position: relative; border-radius: 12px; overflow: hidden; background: rgba(127,127,127,.15); aspect-ratio: 16 / 9; }
  .fs-fr.tall { aspect-ratio: 9 / 16; max-height: 60vh; margin: 0 auto; }
  .fs-fr img, .fs-fr video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .fs-fr .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted, #8b93a7); font-size: 13px; }
  .fs-cam { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin: 8px 0; }
  .fs-cam label, .fs-sel label.lbl { font-size: 11px; color: var(--muted, #8b93a7); display: block; margin-bottom: 2px; }
  .fs-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
  .fs-pick { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 18px; border: 1px solid var(--line, rgba(255,255,255,.14)); font-size: 13px; }
  .fs-pick input { width: 18px; height: 18px; }
  .fs-note { font-size: 13px; color: var(--muted, #8b93a7); margin: 6px 0; line-height: 1.45; }
  .fs-cut video { width: 100%; max-height: 62vh; border-radius: 12px; background: #000; margin-top: 8px; }
  .fs-song { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid transparent; width: 100%; text-align: left; min-height: 56px; }
  .fs-song.on { border-color: var(--accent, #3b82f6); }
  .fs-song img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
  .fs-proj { display: block; width: 100%; text-align: left; min-height: 56px; padding: 8px 10px; border-radius: 12px; margin-bottom: 6px; }
  .fs-proj.on { border-color: var(--accent, #3b82f6); }
  .fs-proj small { display: block; color: var(--muted, #8b93a7); }
  /* ===== Film Studio v2: layout from the approved mockup ===== */
  #fsStudio { --fa: #5ee7ff; --fb: #7c8cff; --fw: #ffb454; --fl: rgba(255,255,255,.09); --fm: #8a97ad; --ftx: #e9f0fb; --fcard: linear-gradient(150deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
    background: radial-gradient(1200px 600px at 80% -10%, rgba(124,140,255,.12), transparent 60%), #03070e; color: var(--ftx); }
  html[data-theme="light"] #fsStudio { --fl: rgba(0,0,0,.13); --fm: #5b6475; --ftx: #111827; --fcard: #fff; background: #f5f5f7; }
  body.fs-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
  .fs-wrap { max-width: 1440px; margin: 0 auto; }
  .fs-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .fs-bar h1 { font-size: 24px; margin: 0; letter-spacing: -.02em; font-weight: 700; }
  #fsStudio .fs-back, #fsStudio .fs-x { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--fl); background: transparent; color: var(--fm); font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
  .fs-proj-pill { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--fl); color: var(--fm); background: rgba(127,127,127,.06); font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fs-proj-pill b { color: var(--ftx); }
  .fs-st { margin-left: auto; color: var(--fm); font-size: 14px; display: flex; align-items: center; gap: 6px; }
  .fs-st .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; flex: none; }
  .fs-st .dot.bad { background: #f87171; }
  #fsStudio .fs-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 16px; border: 1px solid var(--fl); background: rgba(127,127,127,.05); margin: 0 0 18px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  #fsStudio .fs-tabs button { flex: none; min-height: 40px; padding: 0 18px; border-radius: 12px; border: 0; background: transparent; color: var(--fm); font-weight: 600; font-size: 14px; cursor: pointer; }
  #fsStudio .fs-tabs button.on { color: #04121c; background: linear-gradient(135deg, var(--fa), var(--fb)); box-shadow: 0 0 18px rgba(94,231,255,.35); }
  .fs-card { border: 1px solid var(--fl); border-radius: 20px; background: var(--fcard); padding: 16px; min-width: 0; }
  .fs-lbl { font: 700 11px/1 system-ui, sans-serif; letter-spacing: .16em; color: var(--fa); text-transform: uppercase; margin-bottom: 12px; }
  html[data-theme="light"] .fs-lbl { color: #0e7490; }
  .fs-m { color: var(--fm); font-size: 13px; }
  .fs-split { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 20px; align-items: start; }
  @media (max-width: 1000px) { .fs-split { grid-template-columns: minmax(0, 1fr); } }
  #fsStudio .fs-btn { appearance: none; border: 0; min-height: 44px; padding: 0 18px; border-radius: 13px; font-weight: 700; font-size: 14px; cursor: pointer; background: linear-gradient(135deg, var(--fa), var(--fb)); color: #04121c; }
  #fsStudio .fs-btn.g { background: rgba(127,127,127,.08); color: var(--ftx); border: 1px solid var(--fl); }
  #fsStudio .fs-btn:disabled { opacity: .5; cursor: default; }
  .fs-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
  .fs-p { display: inline-block; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--fl); color: var(--fm); font-size: 13px; background: rgba(127,127,127,.06); margin: 0 6px 6px 0; }
  .fs-p.on { border-color: rgba(94,231,255,.7); color: var(--ftx); background: rgba(94,231,255,.12); }
  #fsStudio button.fs-p { cursor: pointer; min-height: 32px; }
  .fs-chip { display: inline-block; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--fl); font-size: 12px; color: var(--fm); background: rgba(127,127,127,.06); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
  .fs-chip.on { border-color: rgba(94,231,255,.7); color: var(--ftx); background: rgba(94,231,255,.12); }
  .fs-chip.warm, .fs-chip.work { border-color: rgba(255,180,84,.5); color: #ffd9a3; background: rgba(255,180,84,.08); }
  html[data-theme="light"] .fs-chip.warm, html[data-theme="light"] .fs-chip.work { color: #92400e; }
  .fs-chip.bad { border-color: rgba(248,113,113,.6); color: #fca5a5; background: rgba(248,113,113,.08); }
  .fs-art { position: relative; border-radius: 14px; overflow: hidden; background: #101a2c; height: 128px; }
  .fs-art img, .fs-art video { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
  .fs-phd { position: absolute; inset: 0; display: grid; place-items: center; color: #8a97ad; font-size: 13px; text-align: center; padding: 8px; background: #101a2c; }
  .fs-tag { position: absolute; left: 8px; top: 8px; font: 700 10px/1 system-ui, sans-serif; letter-spacing: .1em; padding: 4px 7px; border-radius: 7px; background: rgba(3,7,14,.7); color: #cfe; border: 1px solid rgba(255,255,255,.14); }
  .fs-ok { position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--fa), var(--fb)); color: #04121c; display: grid; place-items: center; font-weight: 800; font-size: 12px; border: 0; padding: 0; cursor: pointer; }
  .fs-sg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
  #fsStudio .fs-sg button, #fsStudio .fs-tg button { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--fl); color: var(--fm); background: rgba(127,127,127,.06); font-size: 13px; font-weight: 600; cursor: pointer; }
  #fsStudio .fs-sg button.on, #fsStudio .fs-tg button.on { border-color: rgba(94,231,255,.8); color: #04121c; background: linear-gradient(135deg, var(--fa), var(--fb)); }
  .fs-gl { color: var(--fm); font-size: 11px; margin-bottom: 6px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .fs-two { display: flex; gap: 14px; flex-wrap: wrap; } .fs-two > div { flex: 1; min-width: 140px; }
  .fs-tg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
  #fsStudio .fs-card input, #fsStudio .fs-card textarea, #fsStudio .fs-card select { width: 100%; box-sizing: border-box; }
  .fs-sh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
  .fs-sh .fs-lbl { margin: 0; flex: 1; min-width: 160px; }
  .fs-scn { display: flex; gap: 6px; flex-wrap: wrap; }
  #fsStudio .fs-scn button { min-height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--fl); color: var(--fm); background: rgba(127,127,127,.06); font-size: 13px; cursor: pointer; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #fsStudio .fs-scn button.on { border-color: rgba(94,231,255,.7); color: var(--ftx); background: rgba(94,231,255,.12); }
  .fs-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 8px; }
  .fs-tools .fs-sg { margin: 0; }
  .fs-sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
  @media (max-width: 560px) { .fs-sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
  .fs-sc { padding: 10px; cursor: pointer; position: relative; touch-action: manipulation; }
  .fs-sc.cur { border-color: rgba(94,231,255,.75); box-shadow: 0 0 22px rgba(94,231,255,.2); }
  .fs-sc.drag { opacity: .35; }
  .fs-sc.dbf::before, .fs-sc.dba::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--fa); }
  .fs-sc.dbf::before { left: -9px; } .fs-sc.dba::after { right: -9px; }
  .fs-sct { display: flex; align-items: center; margin-top: 9px; gap: 6px; } .fs-sct b { font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fs-scb { display: flex; align-items: center; margin-top: 6px; gap: 6px; } .fs-scb .fs-chip { flex: 1; min-width: 0; text-align: left; }
  .fs-scb label { display: grid; place-items: center; width: 34px; height: 34px; margin: -6px -6px -6px 0; cursor: pointer; } .fs-scb input { width: 20px; height: 20px; }
  .fs-mini { height: 5px; border-radius: 3px; background: rgba(127,127,127,.2); overflow: hidden; margin-top: 8px; } .fs-mini i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #ef4444); transition: width .4s; }
  .fs-pv { border-radius: 14px; overflow: hidden; background: #101a2c; height: 200px; margin-bottom: 12px; position: relative; }
  .fs-pv.tall { height: 340px; }
  .fs-pv video, .fs-pv img { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
  .fs-panel textarea { margin-bottom: 8px; }
  .fs-tlh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } .fs-tlh .fs-lbl { margin: 0; }
  .fs-zm { margin-left: auto; display: flex; gap: 4px; } #fsStudio .fs-zm button { min-width: 36px; min-height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--fl); background: rgba(127,127,127,.06); color: var(--ftx); cursor: pointer; }
  .fs-tlscroll { overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .fs-tlin { position: relative; min-width: 100%; }
  .fs-ruler { position: relative; height: 16px; margin-bottom: 4px; } .fs-ruler i { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--fl); padding-left: 3px; font: 10px/16px system-ui, sans-serif; color: var(--fm); font-style: normal; }
  .fs-clips { display: flex; height: 58px; }
  .fs-clip { position: relative; flex: none; margin-right: 4px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); background: #101a2c; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-x; }
  .fs-clip.cur { border-color: var(--fa); box-shadow: 0 0 0 1px var(--fa); }
  .fs-clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
  .fs-clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.6)); pointer-events: none; }
  .fs-clip b { position: absolute; left: 6px; top: 3px; font: 700 12px system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px #000; z-index: 1; }
  .fs-clip small { position: absolute; left: 6px; right: 4px; bottom: 7px; font-size: 10px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; z-index: 1; }
  .fs-clip u { position: absolute; left: 0; bottom: 0; height: 4px; z-index: 2; text-decoration: none; background: transparent; }
  .fs-clip u.ok { background: #4ade80; } .fs-clip u.work { background: #f59e0b; }
  .fs-clip.drag { opacity: .35; }
  .fs-clip.dbf::before, .fs-clip.dba::before { content: ""; position: absolute; top: 0; bottom: 0; width: 5px; background: var(--fa); z-index: 3; } .fs-clip.dbf::before { left: 0; } .fs-clip.dba::before { right: 0; }
  .fs-ghost { position: fixed; z-index: 99999; pointer-events: none; opacity: .92; box-shadow: 0 10px 34px rgba(0,0,0,.55); border-radius: 12px; overflow: hidden; margin: 0 !important; }
  .fs-dlg { position: relative; height: 22px; margin-top: 8px; }
  .fs-dlg span { position: absolute; top: 0; height: 22px; box-sizing: border-box; border-radius: 6px; background: rgba(255,180,84,.14); border: 1px solid rgba(255,180,84,.4); font-size: 11px; line-height: 20px; padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .fs-score { margin-top: 8px; height: 34px; border-radius: 9px; background: linear-gradient(90deg, rgba(124,140,255,.35), rgba(94,231,255,.2)); border: 1px solid rgba(124,140,255,.4); display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13px; white-space: nowrap; overflow: hidden; box-sizing: border-box; }
  .fs-score.none { border-style: dashed; background: transparent; color: var(--fm); cursor: pointer; }
  .fs-score .fs-m { margin-left: auto; font-size: 12px; }
  .fs-egrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  @media (max-width: 560px) { .fs-egrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
  .fs-ec { padding: 12px; cursor: pointer; } .fs-ec.cur { border-color: rgba(94,231,255,.75); box-shadow: 0 0 22px rgba(94,231,255,.2); }
  .fs-en { margin-top: 12px; font-size: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fs-sep { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--fl); }
  .fs-intro { color: var(--fm); line-height: 1.5; font-size: 14px; }
