/* Shared work column and help rail, used by every stage. */
.production-main{display:grid;grid-template-columns:minmax(0,1fr) 270px;column-gap:28px;align-items:start;padding-inline:clamp(12px,2.2vw,28px)}
.production-main>.production-heading{grid-column:1;grid-row:1;min-width:0;margin-top:12px}
.production-main>.production-heading button{margin-right:0}
.cut-overview-list{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));align-items:start}
.cut-overview-preview{max-height:150px}
.cut-overview-preview.is-empty{aspect-ratio:auto;height:70px;color:var(--faint)}
.cut-overview-preview.is-empty small{position:static;background:transparent;text-align:center}
.production-main>.stage-guide{grid-column:1;grid-row:2;min-width:0;width:100%;box-sizing:border-box;margin:0 0 20px}
.production-main>.stage-editor{grid-column:1;grid-row:3;max-width:none;min-width:0;width:100%;box-sizing:border-box}
.production-main>.workspace{grid-column:1;grid-row:4;min-width:0;width:100%;box-sizing:border-box}
/* Living Storyboard の詳細レイヤーとして見せる */
.living-stage-shell{
  --living-line:#a1b5e522;--living-muted:#a8b2c6;--living-text:#f5f7fc;
  --living-gradient:linear-gradient(110deg,#9559eb,#477cff 70%,#45c6e6);
}
.living-stage-bar{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;
  margin:0 0 18px;padding:12px 14px;border-radius:14px;
  border:1px solid var(--living-line,#a1b5e522);
  background:linear-gradient(115deg,#161e2eaa,#0d1422);
}
.living-stage-brand{
  display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;max-width:min(100%,320px);
  margin:0;padding:4px 6px;border:0;border-radius:10px;background:transparent;color:inherit;
  font:inherit;cursor:pointer;text-align:left;
}
.living-stage-brand:hover{background:#ffffff08}
.living-stage-brand .living-eyebrow,
.living-stage-intro .living-eyebrow,
.living-stage-home-card .living-eyebrow{
  display:block;margin:0 0 2px;font-size:10px;letter-spacing:.16em;color:#8faff1;
}
.living-stage-brand strong{
  display:block;font-size:16px;line-height:1.25;font-weight:700;color:var(--living-text,#f5f7fc);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;
}
.living-stage-brand-meta{font-size:11px;color:var(--living-muted,#a8b2c6)}
.living-stage-views{
  display:flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:12px;
  border:1px solid var(--living-line,#a1b5e522);background:#080d17;
}
.living-stage-views>button{
  display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0;padding:8px 12px;
  border:0;border-radius:9px;background:transparent;color:#a9c4e9;font:inherit;cursor:pointer;
}
.living-stage-views>button:hover{background:#1d2940;color:#fff}
.living-stage-views>button.is-detail{
  background:#1a2436;color:#e8eef8;cursor:default;
  box-shadow:inset 0 0 0 1px #8bb0ff55;
}
.living-stage-views .story-view-name{font-size:12px;font-weight:650;line-height:1.2}
.living-stage-views .story-view-sub{font-size:10px;opacity:.82}
.living-stage-filmstrip{
  margin:16px 0 0;padding:12px 12px 10px;border-radius:14px;
  border:1px solid var(--living-line,#a1b5e522);background:#101723cc;
}
.living-stage-filmstrip-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;
}
.living-stage-filmstrip-label{margin:0;font-size:11px;letter-spacing:.1em;color:#8faff1;text-transform:uppercase}
.living-stage-filmstrip-head>button{
  margin:0;padding:6px 10px;border-radius:999px;border:1px solid #718dc066;
  background:transparent;color:#c5d2ef;font:inherit;font-size:11px;cursor:pointer;
}
.living-stage-filmstrip-head>button:hover{border-color:#9eb0d8;background:#1d2940}
.living-stage-filmstrip-track{
  display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none;
}
.living-stage-filmstrip-track::-webkit-scrollbar{display:none}
.living-stage-shot{
  flex:0 0 auto;width:118px;margin:0;padding:10px 10px 9px;border-radius:10px;text-align:left;
  border:1px solid #6a759250;background:#080e18;color:#cfdbef;font:inherit;cursor:pointer;
}
.living-stage-shot>span{display:block;font-size:10px;color:#8faff1;letter-spacing:.04em;margin:0 0 4px}
.living-stage-shot>strong{
  display:block;font-size:12px;line-height:1.35;font-weight:650;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.living-stage-shot:hover{border-color:#729cff99}
.living-stage-shot.is-current{border-color:#72acff;box-shadow:0 0 0 1px #6f84f655,0 0 14px #477cff30}
.living-stage-home-card{background:linear-gradient(150deg,#192334cc,#10151f)!important}
.living-stage-home-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.living-stage-quiet-btn,
.living-stage-home-actions .living-stage-quiet-btn,
.stage-primary-next .living-stage-quiet-btn,
.planning-next-flow .living-stage-quiet-btn{
  margin:0!important;padding:9px 12px!important;border-radius:10px!important;
  border:1px solid #6f8fd055!important;background:#121a28!important;color:#c5d2ef!important;
  font:inherit!important;font-size:12px!important;font-weight:600!important;cursor:pointer;
  box-shadow:none!important;
}
.living-stage-quiet-btn:hover{
  border-color:#9eb0d8!important;background:#1a2436!important;color:#eef3ff!important;
}
.planning-page-hero{margin:0 0 10px;padding:2px 2px 0;position:relative}
.stage-hero-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
.planning-page-hero small,
.stage-hero-meta small{display:block;font-size:11px;letter-spacing:.18em;color:#9eb0d8;margin:0}
.stage-hero-count{
  font-size:11px;letter-spacing:.08em;color:#c5d2ef;padding:4px 10px;border-radius:999px;
  border:1px solid #6f8fd055;background:#0c152699;font-variant-numeric:tabular-nums;
}
.planning-page-hero h1{margin:0 0 8px;font-size:clamp(30px,3vw,40px);line-height:1.15;font-weight:750;color:var(--ink,#eef3ff);letter-spacing:.01em}
.planning-page-hero p{
  margin:0;font-size:14px;line-height:1.65;color:var(--muted,#a9b7d0);
  max-width:34em;white-space:normal;word-break:normal;overflow-wrap:anywhere;line-break:strict;
}
.living-stage-intro h1{letter-spacing:-.03em}
.planning-more-nav{margin:10px 0 0;font-size:12px;color:#9eb0d8}
.planning-more-nav>summary{cursor:pointer;padding:4px 0}
.planning-more-nav .stage-guide-actions{margin-top:8px;display:flex;flex-wrap:wrap;gap:8px}
/* フィルムストリップ風フロー：シェル固定・工程はぱぱっと切替 */
.planning-flow-path{
  margin:18px 0 0;padding:14px 14px 12px;border-radius:18px;position:relative;overflow:hidden;
  border:1px solid #6f8fd044;
  background:
    radial-gradient(ellipse 70% 140% at 8% 40%,#3d6cb828,transparent 55%),
    radial-gradient(ellipse 50% 100% at 92% 60%,#c5ad8414,transparent 50%),
    linear-gradient(165deg,#121b2cf2,#0a111cf8);
}
.planning-flow-path::before{
  content:"";position:absolute;inset:0 auto 0 0;width:3px;
  background:linear-gradient(180deg,#8bb0ff00,#8bb0ff99 30%,#c5ad8488 70%,#c5ad8400);
}
.planning-flow-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px;padding-left:6px}
.planning-flow-label{margin:0;font-size:11px;letter-spacing:.12em;color:#9eb0d8;text-transform:uppercase}
.planning-flow-tip{margin:0;font-size:11px;color:#7f90b0}
.planning-flow-track{
  list-style:none;margin:0;padding:8px 4px 4px;display:flex;align-items:flex-start;gap:0;
  overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;position:relative;
}
.planning-flow-track::-webkit-scrollbar{display:none;width:0;height:0}
.planning-flow-track::before{
  content:"";position:absolute;left:18px;right:18px;top:20px;height:2px;border-radius:2px;pointer-events:none;
  background:linear-gradient(90deg,#8bb0ff66,#6f8fd044 35%,#6f8fd022);
}
.planning-flow-step{
  position:relative;display:flex;align-items:flex-start;justify-content:center;flex:1 0 auto;min-width:72px;z-index:1;
}
.planning-flow-step>button{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  width:100%;max-width:100px;margin:0;padding:0 4px;border:0;background:transparent;
  color:#b7c4de;font:inherit;cursor:pointer;text-align:center;
  transition:color .18s,transform .18s;
}
.planning-flow-step>button:hover{color:#eef3ff;transform:translateY(-1px)}
.planning-flow-num{
  display:inline-flex;align-items:center;justify-content:center;
  width:24px;height:24px;border-radius:50%;border:2px solid #566482;background:#0c1320;
  font-size:10px;color:#9eb0d8;line-height:1;box-shadow:0 0 0 4px #0a111c;
  transition:border-color .18s,background .18s,color .18s,box-shadow .18s,transform .18s;
}
.planning-flow-name{font-size:11px;line-height:1.35;font-weight:600;overflow-wrap:anywhere;max-width:5.8em}
.planning-flow-step.is-done .planning-flow-num{border-color:#8fad6a;color:#cfe8b0;background:#1c2a16}
.planning-flow-step.is-current>button{color:#eef3ff}
.planning-flow-step.is-current .planning-flow-num{
  border-color:#d7e4ff;color:#081018;background:#b8d0ff;font-weight:700;
  transform:scale(1.12);box-shadow:0 0 0 4px #0a111c,0 0 18px #8bb0ff66;
}
.planning-flow-step.is-current .planning-flow-name{font-weight:750}
.planning-flow-step.is-ahead>button{opacity:.7}
.stage-editor.is-swapping{animation:stageBodyIn .32s ease}
@keyframes stageBodyIn{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}
.stage-inline-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.stage-inline-controls select{
  min-width:min(100%,240px);padding:10px 12px;border-radius:10px;border:1px solid #6f8fd055;
  background:#080f1c;color:#eef3ff;font:inherit;
}
.stage-secondary-action{margin:0 0 16px}
.stage-side-card{
  padding:16px;border:1px solid #7aa8fa44;border-radius:14px;margin:0 0 12px;
  background:linear-gradient(165deg,#152038f2,#0b1424f5);
}
.stage-side-card-title{margin:0 0 6px;font-size:13px;font-weight:650;color:#e8eef8}
.stage-asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin-top:8px}
.stage-asset-grid article{
  display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid #6f8fd044;border-radius:12px;background:#0b1322;
}
.stage-asset-grid img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:8px;background:#060a12}
.stage-left-col>.workspace{
  margin-top:18px;min-width:0;width:100%;max-width:100%;box-sizing:border-box;
  display:flex!important;flex-direction:column;gap:14px;overflow-x:hidden;
}
.stage-left-col>.workspace .kind-top,
.stage-left-col>.workspace .control-main,
.stage-left-col>.workspace .side{
  position:static!important;inset:auto!important;width:100%!important;max-width:100%!important;
  min-width:0!important;grid-column:auto!important;grid-row:auto!important;height:auto!important;max-height:none!important;
}
.stage-left-col>.workspace .side{display:flex;flex-direction:column;gap:12px}
.stage-left-col>.workspace .side .history{max-height:min(360px,46vh)!important}
.production-main.is-planning.is-stage-shell{align-items:stretch!important}
.production-main.is-planning.is-stage-shell>.planning-side-rail,
.production-main.is-planning.is-stage-shell>.stage-help.planning-side-rail{
  /* 生成画面が出ても右レール（AI Director）は常に独立ペイン */
  flex-shrink:0!important;
}
.stage-guide-planning .stage-guide-actions,
.stage-guide-chrome .stage-guide-actions{display:none!important}
.stage-guide-chrome .stage-coach{
  margin-top:14px;padding-top:12px;border-top:1px solid #6f8fd033;
}
.stage-guide-chrome .stage-coach>summary{font-size:13px;color:#c5d2ef}
.stage-guide-chrome .stage-coach:not([open]){padding:10px 0 2px;margin-top:10px}
.stage-mission{
  margin:0 0 18px;padding:18px 18px 16px;border-radius:16px;
  border:1px solid #6f8fd055;background:#101725ee;
}
.stage-mission-head{margin:0 0 14px}
.stage-mission-head small{display:block;margin:0 0 6px;font-size:11px;letter-spacing:.1em;color:#9eb0d8}
.stage-mission-head h2{margin:0;font-size:clamp(20px,2.2vw,26px);line-height:1.25;font-weight:750;color:#eef3ff}
.stage-mission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.stage-mission-grid>div{padding:12px;border-radius:12px;background:#0a122099;border:1px solid #6f8fd033;min-width:0}
.stage-mission-grid small{display:block;margin:0 0 6px;font-size:10px;letter-spacing:.08em;color:#8faff1}
.stage-mission-grid p{margin:0;font-size:13px;line-height:1.55;color:#c5d2ef}
.stage-mission-board{border-color:#7aa8fa66;background:linear-gradient(145deg,#172038f2,#0d1524f5)}
.stage-mission-stills{border-color:#6fad8a66;background:linear-gradient(145deg,#14241cf2,#0d1612f5)}
.stage-mission-motion{border-color:#b08ad866;background:linear-gradient(145deg,#221833f2,#120e1cf5)}
.stage-mission-pick{border-color:#c5ad8466;background:linear-gradient(145deg,#241e14f2,#16120cf5)}
.stage-mission-export{border-color:#6f9ad066;background:linear-gradient(145deg,#142030f2,#0c141ef5)}
.stage-mission-refs{border-color:#6f8fd066;background:linear-gradient(145deg,#182030f2,#0e1520f5)}
.stage-scope-note{margin:0 0 16px!important;padding:10px 12px;border-radius:10px;border:1px dashed #6f8fd055;background:#0a122066}
.stage-field{display:block;margin:0 0 14px;font-size:13px;color:#c5d2ef}
.stage-field textarea{
  display:block;width:100%;box-sizing:border-box;margin:8px 0 0;padding:12px 14px;
  border-radius:12px;border:1px solid #6f8fd066;background:#080f1c;color:#eef3ff;font:inherit;line-height:1.6;
}
.stage-cut-picker{margin:0 0 16px}
.stage-workbench-stills{border-color:#6fad8a55!important}
.stage-workbench-motion{border-color:#b08ad855!important}
.stage-workbench-export{border-color:#6f9ad055!important}
@media(max-width:900px){.stage-mission-grid{grid-template-columns:1fr}}
.stage-work-primary{
  margin:0 0 20px;padding:18px 20px;border:1px solid #7aa8fa44;border-radius:14px;
  background:linear-gradient(145deg,#1a2740ee,#0d1628f5);
}
.stage-work-label{margin:0 0 10px;font-size:12px;letter-spacing:.06em;color:#9eb0d8}
.stage-work-primary label{display:block;margin:0 0 8px;font-size:13px;color:#c5d2ef}
.stage-work-primary textarea{
  width:100%;box-sizing:border-box;margin:8px 0 0;padding:14px 16px;min-height:140px;
  border-radius:12px;border:1px solid #6f8fd066;background:#080f1c;color:#eef3ff;font:inherit;line-height:1.6;
}
.stage-concept-ref{margin:0 0 16px!important}
.stage-concept-ref-text{margin:8px 0 0;font-size:13px;line-height:1.7;color:#c5d2ef;white-space:pre-wrap}
.stage-primary-next{margin:8px 0 20px}
.structure-approval{
  margin:0 0 18px;padding:16px 18px;border:1px solid #6f8a5588;border-radius:12px;background:#121a14cc;
}
.structure-approval button{
  margin-top:10px;padding:12px 16px!important;border-radius:10px!important;font-size:14px!important;
}
.production-main:has(.stage-guide-chrome)>.production-heading{display:none!important}
.production-main:has(.stage-guide-chrome)>.stage-editor{padding:8px 4px 36px;box-sizing:border-box}
.stage-help-details:not([open])>summary{padding:10px 0!important;margin:0}
/* スパーク：最初に触る操作 */
.planning-spark{
  margin:0 0 28px;padding:20px 22px;border:1px solid #7aa8fa55;border-radius:16px;
  background:linear-gradient(145deg,#1a2740f0,#0d1628f5);box-shadow:0 12px 32px #00000044;
}
.planning-spark-label{display:block;margin:0;font-size:12px;letter-spacing:.06em;color:#9eb0d8}
.planning-spark-input{
  display:block;width:100%;box-sizing:border-box;margin:10px 0 14px;padding:14px 16px;
  border-radius:12px;border:1px solid #6f8fd066;background:#080f1c;color:#eef3ff;
  font:inherit;font-size:16px;line-height:1.55;resize:vertical;min-height:64px;
}
.planning-spark-input:focus{outline:2px solid #7aa8fa99;outline-offset:2px;border-color:#9eb0d8}
.planning-spark-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.planning-spark-go{font-size:14px!important;padding:12px 18px!important;border-radius:10px!important}
.planning-spark-status{margin:12px 0 0;min-height:1.2em;font-size:12px;color:#a9b7d0}
.planning-brief-panel{margin:0 0 24px!important}
.production-main.is-planning .stage-editor{padding:8px 8px 32px;box-sizing:border-box}
.production-main.is-planning .fixed-concept-card{margin:0 0 28px}
.production-main.is-planning .concept-candidates{margin-top:8px;padding-top:8px;border-top:0}
.concept-flow-hint{margin:0 0 16px;font-size:12px;color:#9eb0d8}
.concept-candidate-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin:0 0 20px;
}
.concept-idea-card{
  display:flex;flex-direction:column;gap:10px;min-height:180px;padding:18px 18px 14px;
  border:1px solid #6f8fd055;border-radius:14px;background:linear-gradient(165deg,#152038,#0b1322 75%);
  box-sizing:border-box;
}
.concept-idea-card.is-adopted{border-color:#c5ad8488;box-shadow:inset 0 0 0 1px #c5ad8444}
.concept-idea-card>header{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.concept-idea-card h4{margin:0;font-size:16px;line-height:1.35;color:#eef3ff}
.concept-idea-blurb{margin:0;flex:1;font-size:13px;line-height:1.65;color:#c5d2ef}
.concept-idea-card .concept-candidate-actions{margin-top:auto;gap:6px}
.concept-idea-pick{display:inline-flex!important;align-items:center;gap:6px;margin:0!important;font-size:11px;color:#9eb0d8;cursor:pointer}
.concept-idea-pick input{width:auto;margin:0}
.concept-empty{
  grid-column:1/-1;padding:28px 22px;border:1px dashed #6f8fd055;border-radius:14px;background:#0a122099;text-align:left;
}
.concept-empty strong{display:block;font-size:15px;color:#e8eef8;margin:0 0 8px}
.concept-empty p{margin:0;font-size:13px;line-height:1.6;color:#a9b7d0}
.concept-compare-panel{margin:0 0 20px;padding:10px 12px;border:1px solid #2a3650;border-radius:12px;background:#0b1322}
.concept-compare-panel>summary{cursor:pointer;font-size:12px;color:#9eb0d8;padding:4px 0}
.planning-side-rail .help-purpose,
.planning-side-rail .help-steps li,
.planning-side-rail .help-tip p,
.planning-side-rail .help-goal strong{
  word-break:normal;overflow-wrap:anywhere;line-break:strict;
}
/* creation-dock の「coach無し＝余白ゼロ」ルールより優先 */
.stage-guide.stage-guide-planning{
  padding:22px 22px 18px!important;
  border:1px solid var(--line,#7aa8fa33)!important;
  border-radius:18px!important;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%,#3d6cb818,transparent 45%),
    linear-gradient(160deg,#121a2ce8,#0a1220f0)!important;
  margin:0 0 18px!important;
  flex:0 0 auto;
}
.stage-guide-planning .planning-location{margin:8px 0 14px;font-size:12px;color:var(--muted,#a9b7d0)}
.stage-guide-planning .planning-location strong{color:#c5d2ef}
.stage-guide-planning .stage-guide-actions{margin-top:2px;opacity:.92}
.stage-guide-planning .stage-guide-actions button{font-size:12px;padding:8px 12px}

/* ---- 企画：sticky を使わず左右独立スクロールの2ペイン ---- */
/* :has が効かない環境向けに body.is-planning-layout も併用 */
body.director-design:has(.production-main.is-planning),
body.director-design.is-planning-layout{
  overflow:hidden!important;
  height:100dvh!important;
}
body.director-design:has(.production-main.is-planning) .shell,
body.director-design.is-planning-layout .shell{
  height:100dvh!important;
  max-height:100dvh!important;
  display:flex!important;
  flex-direction:column!important;
  box-sizing:border-box!important;
  padding-bottom:0!important;
  overflow:hidden!important;
}
body.director-design:has(.production-main.is-planning) .shell>.top,
body.director-design.is-planning-layout .shell>.top{
  flex-shrink:0!important;
}
body.director-design:has(.production-main.is-planning) .shell>.cinovex-workspace,
body.director-design.is-planning-layout .shell>.cinovex-workspace{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:hidden!important;
  display:flex!important;
  margin-left:0!important;
  margin-right:0!important;
  width:100%!important;
  max-width:none!important;
}
body.director-design:has(.production-main.is-planning) .production-nav,
body.director-design.is-planning-layout .production-nav{
  display:none!important;
}

.production-main.is-planning{
  display:flex!important;
  flex-direction:row!important;
  align-items:stretch!important;
  gap:clamp(24px,3vw,40px)!important;
  flex:1 1 auto!important;
  min-height:0!important;
  height:100%!important;
  max-height:100%!important;
  overflow:hidden!important;
  padding:20px clamp(28px,3.5vw,52px) 20px!important;
  box-sizing:border-box!important;
  grid-template-columns:none!important;
}
.production-main.is-planning>.production-heading{display:none!important}
.production-main.is-planning>.planning-left-col{
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:none;
  padding-right:4px;
}
.production-main.is-planning>.planning-left-col::-webkit-scrollbar{width:0;height:0;display:none}
.production-main.is-planning>.planning-left-col>.stage-guide,
.production-main.is-planning>.planning-left-col>.stage-editor{
  grid-column:auto;
  grid-row:auto;
  width:100%;
  max-width:none;
  box-sizing:border-box;
}
.production-main.is-planning>.planning-side-rail,
.production-main.is-planning>.stage-help.planning-side-rail{
  display:flex!important;
  flex-direction:column;
  gap:14px;
  flex:0 0 clamp(300px,28vw,360px)!important;
  width:clamp(300px,28vw,360px)!important;
  max-width:380px;
  min-width:280px;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:none;
  position:relative!important;
  top:auto!important;
  align-self:stretch;
  grid-column:auto!important;
  grid-row:auto!important;
  padding:0 2px 8px!important;
  box-sizing:border-box;
  z-index:auto;
}
.production-main.is-planning>.planning-side-rail::-webkit-scrollbar,
.production-main.is-planning>.stage-help.planning-side-rail::-webkit-scrollbar{width:0;height:0;display:none}
.planning-director-slot{min-width:0;position:static;top:auto}
.planning-consult{
  padding:16px!important;
  border:1px solid #7aa8fa44!important;
  border-radius:14px!important;
  background:linear-gradient(165deg,#152038f2,#0b1424f5)!important;
  box-shadow:0 10px 28px #00000055;
}
.planning-consult .director-intro{font-size:12px!important;line-height:1.55!important;margin:0 0 10px!important;color:#b8c7e0!important}
.planning-consult-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.planning-consult-chip{border:1px solid #6f8fd066;border-radius:999px;background:#15233acc;color:#d7e3f7;font:inherit;font-size:11px;padding:6px 10px;cursor:pointer}
.planning-consult-chip:hover{border-color:#9eb0d8;background:#1d3155}
.planning-consult select.director-goal,
.planning-consult>textarea:not(.planning-consult-answer){
  width:100%;box-sizing:border-box;margin:0 0 8px;padding:10px 12px;
  border-radius:10px;border:1px solid #6f8fd055;background:#0a1220;color:#e8eef8;font:inherit;font-size:12px
}
.planning-consult-answer{width:100%;box-sizing:border-box;margin:8px 0;padding:12px;border-radius:10px;border:1px solid #7c9fce55;background:#0a1220;color:#e8eef8;font:inherit;font-size:12px;line-height:1.7;resize:vertical}
.planning-consult .director-apply-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.planning-consult .director-apply{flex:1 1 auto;font-size:11px!important;padding:8px 10px!important}
.planning-side-rail .stage-help-details{border-left:0;padding-left:0;border:1px solid #6f8fd033;border-radius:12px;padding:0 14px;background:#101725cc}
.planning-side-rail .stage-help-details>summary{padding:12px 0}

.stage-guide:empty{display:none}
.stage-guide-actions{margin-top:0}
.stage-guide>.stage-coach:first-child{border-top:0;margin-top:0}
.stage-help{grid-column:2;grid-row:1 / span 4;position:sticky;top:20px;align-self:start;min-width:0;max-height:calc(100dvh - 40px);overflow-y:auto;scrollbar-width:thin;padding:6px 0 20px}
.stage-help-details{border-left:1px solid var(--line);padding-left:22px}
.stage-help-details>summary{font-size:12px;color:#c5cee0;cursor:pointer;font-weight:650;padding:10px 0 20px}
.help-eyebrow{font-size:9px;letter-spacing:.18em;color:#bda88a}
.stage-help h3{font-size:17px;line-height:1.6;font-weight:650;margin:10px 0}
.help-purpose,.help-tip p{font-size:12px;color:var(--muted);line-height:1.9;margin:0}
.help-goal{padding:14px;margin:20px 0 24px;border:1px solid #c5ad8426;border-radius:9px;background:#c5ad8409}
.help-goal small{display:block;font-size:10px;color:#bda88a;margin-bottom:7px}
.help-goal strong{display:block;font-size:12px;font-weight:550;line-height:1.8;color:#dce3f2}
.stage-help h4{font-size:12px;margin:0 0 12px;font-weight:650;color:#dce3f2}
.help-steps{counter-reset:help-step;list-style:none;padding:0;margin:0 0 24px}
.help-steps li{position:relative;padding:0 0 18px 30px;font-size:12px;line-height:1.9;color:var(--muted)}
.help-steps li:before{counter-increment:help-step;content:counter(help-step);position:absolute;left:0;top:1px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid #566482;color:#c9d5ef;font-size:10px}
.help-tip{border-top:1px solid var(--line);padding-top:18px;margin-bottom:18px}
.help-ask{width:100%;padding:10px 12px;border:1px solid #685b7d;border-radius:8px;background:#b99ae90b;color:#d6c8ed;font:inherit;font-size:12px;cursor:pointer}
.help-ask:hover{background:#b99ae91c}
.help-ask:focus-visible{outline:2px solid #a999cd;outline-offset:3px}
@container production (max-width:1450px){.production-main>.workspace{grid-template-columns:minmax(0,1fr)}.production-main .kind-top,.production-main .control-main,.production-main .side{grid-column:1;grid-row:auto}.production-main .side{position:static;height:auto;max-height:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.8fr);align-items:start}.production-main .side .history{grid-column:2;grid-row:1 / span 3}}
@media(max-width:1100px){
  .production-main{grid-template-columns:minmax(0,1fr);column-gap:0;padding-inline:clamp(10px,3vw,20px)}
  body.director-design:has(.production-main.is-planning),
  body.director-design.is-planning-layout{overflow:auto!important;height:auto!important}
  body.director-design:has(.production-main.is-planning) .shell,
  body.director-design.is-planning-layout .shell{height:auto!important;max-height:none!important;overflow:visible!important;padding-bottom:24px!important}
  body.director-design:has(.production-main.is-planning) .shell>.cinovex-workspace,
  body.director-design.is-planning-layout .shell>.cinovex-workspace{overflow:visible!important;flex:none!important}
  .production-main.is-planning{
    display:flex!important;
    flex-direction:column!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding:14px clamp(16px,4vw,28px) 28px!important;
  }
  .production-main.is-planning>.planning-left-col,
  .production-main.is-planning>.planning-side-rail,
  .production-main.is-planning>.stage-help.planning-side-rail{
    flex:none!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    overflow:visible!important;
  }
  .stage-help{grid-column:1;grid-row:2;position:static;max-height:none;padding:0;margin:0 0 20px}
  .stage-help-details{padding:0 16px;border:1px solid var(--line);border-radius:9px;background:#101725}
  .stage-help-details>summary{padding:14px 0}
  .stage-help-body{padding:0 4px 18px}
  .production-main>.stage-guide{grid-row:3}
  .production-main>.stage-editor{grid-row:4}
  .production-main>.workspace{grid-row:5}
}
@media(max-width:650px){.production-main .side{display:flex;flex-direction:column}.production-main .side>.history{width:100%}.production-heading{gap:10px}.production-heading h2{font-size:21px}.production-main .stage-editor{padding-bottom:20px}.planning-page-hero h1{font-size:24px}.production-main.is-planning{padding:12px 14px 24px!important}}
