/* Preview-only Director Workbench V2: horizontal creation hub + batch management. */
#boardsView.director-workbench .boards-inner{padding-top:24px}
#boardsView.director-workbench .director-hero{min-height:auto;padding:0 0 30px;overflow:visible}
#boardsView.director-workbench .director-feature-label{margin:0 0 15px;font-size:14px;font-weight:600;letter-spacing:0;color:var(--text)}
#boardsView.director-workbench .director-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;width:100%}
#boardsView.director-workbench .director-feature{display:grid;grid-template-columns:minmax(88px,46%) minmax(0,1fr);gap:15px;min-height:117px;align-items:center;text-align:left;padding:7px;border:1px solid var(--hair);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.013));color:var(--text);text-decoration:none;overflow:hidden;transition:border-color .2s,transform .2s,background .2s}
#boardsView.director-workbench .director-feature:hover{transform:translateY(-2px);border-color:rgba(237,201,109,.6);background:linear-gradient(130deg,rgba(237,201,109,.07),rgba(255,255,255,.014))}
#boardsView.director-workbench .director-feature:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#boardsView.director-workbench .director-feature-art{height:103px;min-width:0;border-radius:13px;background-image:linear-gradient(125deg,rgba(0,0,0,.04),rgba(0,0,0,.2)),url('/static/preview/candidate/website-assets/cinematic-studies.webp');background-repeat:no-repeat;background-size:100% 100%,300% 100%;border:1px solid rgba(255,255,255,.08);position:relative;overflow:hidden}
#boardsView.director-workbench .director-feature-art[data-scene=studio]{background-position:center,0% center}
#boardsView.director-workbench .director-feature-art[data-scene=canvas]{background-position:center,50% center}
#boardsView.director-workbench .director-feature-art[data-scene=free]{background-position:center,100% center}
#boardsView.director-workbench .director-feature-copy{min-width:0;display:flex;flex-direction:column;gap:7px;padding-right:8px}
#boardsView.director-workbench .director-feature-copy strong{font-size:15px;font-weight:600;line-height:1.45;white-space:nowrap}
#boardsView.director-workbench .director-feature-copy small{font-size:11px;line-height:1.55;color:var(--muted)}
#boardsView.director-workbench .director-feature-copy em{font-size:10px;font-style:normal;color:var(--accent)}
#boardsView.director-workbench .director-feature-art::after{content:"";position:absolute;inset:auto 12px 11px auto;border:1px solid #edc96d91;width:20px;height:20px;border-radius:7px;box-shadow:0 0 30px #e1c07144}
#boardsView.director-workbench .director-batch-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-left:auto}
#boardsView.director-workbench .director-batch-actions button{font-family:inherit;font-size:12px;font-weight:500;line-height:1.5;padding:9px 12px;white-space:nowrap}
#boardsView.director-workbench .director-batch-actions .director-batch-delete:not(:disabled){color:#e49c8a;border-color:rgba(228,156,138,.45)}
#boardsView.director-workbench .director-batch-actions button:disabled{opacity:.42;cursor:default}
#boardsView.director-workbench .director-panel .board-toolbar{display:flex;align-items:center;flex-wrap:wrap}
#boardsView.director-workbench .director-panel .board-toolbar>div:first-child{margin-right:auto}
#boardsView.director-workbench .director-check{position:absolute;top:9px;left:9px;z-index:12;display:none;align-items:center;gap:7px;padding:6px 8px;border-radius:9px;border:1px solid var(--edge);background:var(--surface);box-shadow:0 3px 10px #0004;color:var(--text);font-size:11px;cursor:pointer}
#boardsView.director-workbench .director-check.is-visible{display:flex}
#boardsView.director-workbench .director-check input{width:16px;height:16px;accent-color:var(--accent);margin:0}
#boardsView.director-workbench .director-batching .board-card{overflow:visible}
#boardsView.director-workbench .director-batching .board-card .director-check{top:9px;left:9px}
#boardsView.director-workbench .director-batching .director-item{position:relative;overflow:visible}
#boardsView.director-workbench .director-script-card{cursor:pointer}
#boardsView.director-workbench .director-script-editor{margin-top:22px;border:1px solid var(--edge);border-radius:16px;padding:20px;background:var(--glass);display:flex;flex-direction:column;gap:11px;max-width:960px}
#boardsView.director-workbench .director-script-editor[hidden]{display:none!important}
#boardsView.director-workbench .director-script-editor label{font-size:12px;color:var(--muted);font-weight:500}
#boardsView.director-workbench .director-script-editor input,#boardsView.director-workbench .director-script-editor textarea{width:100%;background:var(--surface);border:1px solid var(--edge);border-radius:10px;padding:12px 14px;color:var(--text);font-family:inherit;font-size:13px;font-weight:400;line-height:1.7;outline:none}
#boardsView.director-workbench .director-script-editor textarea{min-height:340px;resize:vertical}
#boardsView.director-workbench .director-script-editor input:focus-visible,#boardsView.director-workbench .director-script-editor textarea:focus-visible{border-color:var(--accent)}
#boardsView.director-workbench .director-script-editor-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#boardsView.director-workbench #directorScriptStatus,#boardsView.director-workbench #directorBatchStatus{color:var(--muted);font-size:11px;line-height:1.6}
#boardsView.director-workbench #directorBatchStatus{min-height:18px}
body[data-theme=light] #boardsView.director-workbench .director-feature{background:rgba(255,255,255,.62);border-color:rgba(35,39,40,.12)}
body[data-theme=light] #boardsView.director-workbench .director-feature:hover{border-color:rgba(171,134,53,.6)}
@media(max-width:1180px){#boardsView.director-workbench .director-features{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){#boardsView.director-workbench .director-features{grid-template-columns:1fr}#boardsView.director-workbench .director-feature{min-height:105px;grid-template-columns:130px 1fr}#boardsView.director-workbench .director-feature-art{height:90px}#boardsView.director-workbench .director-panel .board-toolbar{gap:10px}}

/* Studios: the batch toolbar is a deliberate independent row below the
   heading / "进入3D片场" action, never squeezed into that title row. */
#boardsView.director-workbench [data-director-panel="studios"] .director-batch-row{
  display:flex;align-items:center;justify-content:flex-start;
  margin:0 0 20px;padding:8px 0 14px;border-bottom:1px solid var(--hair);
}
#boardsView.director-workbench [data-director-panel="studios"] .director-batch-row .director-batch-actions{margin-left:0}
#boardsView.director-workbench .director-check{user-select:none}
#boardsView.director-workbench .director-check[aria-checked="true"]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
#boardsView.director-workbench .director-check:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#boardsView.director-workbench .director-check input{pointer-events:none}


/* Script + DeepSeek chat share the same Director Workspace glass panels. */
#boardsView.director-workbench .director-script-chat{
  margin-top:22px;display:flex;flex-direction:column;
  border:1px solid var(--edge);border-radius:16px;background:var(--glass);
  padding:16px;gap:12px;max-width:100%;min-width:0;
  backdrop-filter:blur(24px) saturate(135%);
}
#boardsView.director-workbench .director-script-chat-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
#boardsView.director-workbench .director-script-chat-head>div{display:grid;gap:5px}
#boardsView.director-workbench .director-script-chat-head strong{font-size:14px;font-weight:650}
#boardsView.director-workbench .director-script-chat-head small{font-size:11px;color:var(--muted)}
#boardsView.director-workbench .director-script-chat-head>span{
  font-size:10px;color:var(--accent);border:1px solid var(--edge);
  border-radius:999px;padding:5px 10px;white-space:nowrap;
}
#boardsView.director-workbench .director-script-messages{
  display:flex;flex-direction:column;gap:12px;overflow:auto;
  min-height:150px;max-height:420px;padding:10px 5px;
}
#boardsView.director-workbench .director-script-chat-empty{color:var(--muted);font-size:12px}
#boardsView.director-workbench .director-script-message{
  max-width:94%;border:1px solid var(--edge);border-radius:14px;
  padding:12px 14px;display:flex;flex-direction:column;gap:8px;
  background:var(--surface);min-width:0;
}
#boardsView.director-workbench .director-script-user{align-self:flex-end;background:color-mix(in srgb,var(--accent) 11%,var(--glass))}
#boardsView.director-workbench .director-script-assistant{align-self:flex-start}
#boardsView.director-workbench .director-script-message strong{font-size:12px;color:var(--accent)}
#boardsView.director-workbench .director-script-message pre{
  font:12px/1.85 inherit;white-space:pre-wrap;word-break:break-word;margin:0;
  font-family:inherit;color:var(--text);
}
#boardsView.director-workbench .director-script-message button{align-self:flex-start}
#boardsView.director-workbench .director-script-chat-form{display:flex;flex-direction:column;gap:8px}
#boardsView.director-workbench .director-script-chat-form label{font-size:11px;color:var(--muted)}
#boardsView.director-workbench .director-script-chat-form textarea{
  width:100%;min-height:85px;resize:vertical;padding:13px;
  border:1px solid var(--edge);border-radius:12px;background:var(--surface);
  color:var(--text);font-size:12px;line-height:1.7;
}
#boardsView.director-workbench .director-script-chat-actions{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
}
#boardsView.director-workbench #directorScriptChatStatus{font-size:11px;color:var(--muted);min-width:0}

/* Compose manuscripts beside DeepSeek just like Free Creation's two-pane studio. */
@media(min-width:1121px){
 #boardsView.director-workbench [data-director-panel="scripts"]:has(#directorScriptEditor:not([hidden])){
  display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.95fr);
  column-gap:18px;align-items:start;
 }
 #boardsView.director-workbench [data-director-panel="scripts"] .board-toolbar,
 #boardsView.director-workbench [data-director-panel="scripts"] #directorScriptsGrid,
 #boardsView.director-workbench [data-director-panel="scripts"] .director-batch-row{
  grid-column:1/-1;
 }
 #boardsView.director-workbench [data-director-panel="scripts"] #directorScriptEditor{
  grid-column:1;margin-top:18px;min-width:0;
 }
 #boardsView.director-workbench [data-director-panel="scripts"] .director-script-chat{
  grid-column:2;margin-top:18px;min-width:0;
 }
}
@media(max-width:1120px){
 #boardsView.director-workbench [data-director-panel="scripts"] .director-script-chat{margin-top:16px}
}
