:root{--radius: 12px;--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary-foreground: 0 0% 100%;--secondary-foreground: 0 0% 100%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 201 96% 32%}.dark,[data-theme=dark]{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 201 96% 32%}:root{color-scheme:light dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:hsl(var(--background));color:hsl(var(--foreground));--director-ready: 146 58% 42%;--director-review: 38 84% 49%}*{box-sizing:border-box}body{margin:0;background:hsl(var(--background));color:hsl(var(--foreground))}button{font:inherit}.director-workspace{display:grid;gap:18px;min-width:0;width:100%;max-width:min(100%,calc(100vw - 56px));overflow-x:clip}.director-workspace>*{min-width:0}.director-hero,.director-alert,.director-panel,.metric-card{border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--card));color:hsl(var(--card-foreground))}.director-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px;overflow:hidden}.director-hero--compact{justify-content:flex-end;padding:0;border:0;background:transparent}.director-hero--compact .director-hero__copy{display:none}.director-hero--compact .director-toolbar{width:100%}.director-hero--compact .director-button{min-height:36px}.director-hero__copy{display:flex;gap:14px;min-width:0}.director-mark{display:grid;flex:0 0 auto;place-items:center;width:44px;height:44px;border-radius:var(--radius);background:hsl(var(--primary) / .14);color:hsl(var(--primary))}.director-hero h2{margin:0;font-size:clamp(24px,3vw,38px);line-height:1.08;letter-spacing:0}.director-hero p,.director-alert span,.bridge-detail,.human-cue-row p,.human-cue-row small,.stage-card span,.runbook-card span,.runbook-card small,.runbook-target,.proof-row span,.proof-row small,.session-card span,.narration-row p,.policy-row span,.workflow-row span,.workflow-row small,.voice-render-card span,.voice-render-card code{color:hsl(var(--muted-foreground))}.director-hero p{max-width:820px;margin:10px 0 0;font-size:15px;line-height:1.55}.director-toolbar{display:flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;gap:10px}.director-button,.director-refresh{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--primary));color:hsl(var(--primary-foreground));cursor:pointer;font-weight:700}.director-button--secondary,.director-refresh{background:hsl(var(--background));color:hsl(var(--foreground))}.director-button--full{width:100%;margin-top:12px}.director-refresh:disabled,.director-button:disabled{cursor:wait;opacity:.62}.director-alert{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;color:hsl(var(--destructive))}.director-alert strong,.director-alert span{display:block}.director-alert span{margin-top:3px;font-size:13px}.director-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metric-card{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon label" "icon value";gap:2px 12px;align-items:center;padding:16px}.metric-card>div{grid-area:icon;display:grid;place-items:center;width:38px;height:38px;border-radius:var(--radius);background:hsl(var(--muted));color:hsl(var(--foreground))}.metric-card span{grid-area:label;color:hsl(var(--muted-foreground));font-size:12px}.metric-card strong{grid-area:value;font-size:22px;line-height:1.1}.metric-card.ready>div,.status-icon.ready{color:hsl(var(--director-ready))}.metric-card.review>div,.status-icon.review{color:hsl(var(--director-review))}.metric-card.blocked>div,.status-icon.blocked{color:hsl(var(--destructive))}.director-tab-summary{display:flex;align-items:end;justify-content:space-between;gap:16px;min-height:62px;padding:4px 2px 0;border-bottom:1px solid hsl(var(--border))}.director-tab-summary h3{margin:0;font-size:20px;line-height:1.2;letter-spacing:0}.director-tab-summary p{max-width:620px;margin:0 0 2px;color:hsl(var(--muted-foreground));font-size:13px;line-height:1.45;text-align:right}.director-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:14px;align-items:start}.director-grid--tab-runbooks,.director-grid--tab-proof{grid-template-columns:minmax(0,1fr)}.director-grid--tab-script,.director-grid--tab-session,.director-grid--tab-capture{grid-template-columns:repeat(2,minmax(0,1fr))}.director-tab-section{display:none}.director-grid--tab-overview .director-tab-section--overview,.director-grid--tab-session .director-tab-section--session,.director-grid--tab-runbooks .director-tab-section--runbooks,.director-grid--tab-proof .director-tab-section--proof,.director-grid--tab-script .director-tab-section--script,.director-grid--tab-capture .director-tab-section--capture{display:block}.director-panel{padding:16px;overflow:hidden}.director-panel--wide{min-height:0}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-header div{display:inline-flex;align-items:center;gap:9px}.panel-header strong{font-size:15px}.panel-header span{flex:0 0 auto;color:hsl(var(--muted-foreground));font-size:12px}.stage-grid,.runbook-list,.proof-list,.narration-list,.policy-list,.workflow-list,.capture-stack,.bridge-list,.human-cue-list,.step-list{display:grid;gap:10px}.stage-grid{grid-template-columns:repeat(auto-fit,minmax(148px,1fr))}.stage-card,.proof-row,.capture-item,.step-row,.human-cue-row,.narration-row,.policy-row,.workflow-row,.voice-render-card{border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--background))}.stage-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;min-height:132px;padding:13px}.stage-card strong,.stage-card span,.proof-row strong,.proof-row span{display:block}.stage-card strong,.proof-row strong{font-size:13px;line-height:1.3}.stage-card span,.proof-row span{margin-top:5px;font-size:12px;line-height:1.45}.stage-card .status-pill{grid-column:1 / -1;justify-self:start;margin-top:auto}.bridge-detail{margin:0 0 12px;font-size:14px;line-height:1.55}.bridge-list span{display:block;padding:10px 11px;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--background));font-size:12px}.source-chip-list{display:flex;flex-wrap:wrap;gap:6px}.source-chip-list span{min-height:24px;border:1px solid hsl(var(--border));border-radius:999px;padding:4px 8px;background:hsl(var(--muted));color:hsl(var(--muted-foreground));font-size:12px;font-weight:700}.pairing-box,.command-block,.empty-state,.session-card{display:grid;gap:9px;margin-bottom:12px;padding:12px;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--background))}.pairing-box{grid-template-columns:minmax(0,1fr) auto}.pairing-box>div span,.command-block>span,.empty-state span{display:block;color:hsl(var(--muted-foreground));font-size:12px}.pairing-box strong{display:block;margin-top:2px;color:hsl(var(--primary));font-size:28px;line-height:1;letter-spacing:0}.pairing-box code,.command-block code,.session-card code{display:block;grid-column:1 / -1;max-width:100%;overflow-wrap:anywhere;border:1px solid hsl(var(--border));border-radius:var(--radius);padding:9px 10px;background:hsl(var(--muted));color:hsl(var(--foreground));font-size:12px}.pairing-box small{grid-column:1 / -1;color:hsl(var(--muted-foreground))}.icon-button{display:grid;place-items:center;width:34px;height:34px;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--card));color:hsl(var(--foreground));cursor:pointer}.runbook-card{border:1px solid hsl(var(--border));border-radius:var(--radius);padding:14px;background:hsl(var(--background))}.runbook-card__header{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.runbook-card__header strong,.runbook-card__header span{display:block}.runbook-card__header strong{font-size:16px;line-height:1.25}.runbook-card__header span{margin-top:4px;font-size:12px}.runbook-target{display:inline-flex;align-items:center;gap:7px;max-width:100%;margin-bottom:12px;overflow-wrap:anywhere;text-decoration:none;font-size:12px}.runbook-row .runbook-target,.runbook-detail-main .runbook-target{margin-bottom:0}.runbook-workspace{display:grid;gap:16px}.runbook-workspace__topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid hsl(var(--border));padding-bottom:14px}.runbook-workspace__topbar span,.runbook-editor__heading span,.runbook-inspector span,.runbook-row__meta span{color:hsl(var(--muted-foreground));font-size:12px;font-weight:700}.runbook-workspace__topbar strong{display:block;margin-top:4px;font-size:22px;line-height:1.15}.runbook-workspace__topbar p{max-width:620px;margin:6px 0 0;color:hsl(var(--muted-foreground));font-size:13px;line-height:1.45}.runbook-workspace__actions,.runbook-row__actions,.runbook-detail-heading__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.runbook-table{display:grid;gap:8px}.runbook-row{display:grid;grid-template-columns:minmax(260px,1.1fr) minmax(180px,.9fr) minmax(170px,.8fr) auto auto;gap:12px;align-items:center;border:1px solid hsl(var(--border));border-radius:var(--radius);padding:12px;background:hsl(var(--background))}.runbook-row.is-selected{border-color:hsl(var(--primary) / .7);background:hsl(var(--primary) / .06)}.runbook-row__main{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;min-width:0}.runbook-row__main strong,.runbook-row__main span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.runbook-row__main strong{font-size:14px;line-height:1.25}.runbook-row__main span{margin-top:3px;color:hsl(var(--muted-foreground));font-size:12px}.runbook-row__meta{display:inline-flex;gap:10px}.runbook-row__actions button,.runbook-detail-heading__actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;border:1px solid hsl(var(--border));border-radius:var(--radius);padding:0 10px;background:hsl(var(--card));color:hsl(var(--foreground));cursor:pointer;font-size:12px;font-weight:800}.runbook-row__actions button:last-child,.runbook-detail-heading__actions button:last-child{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}.runbook-detail-screen{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.34fr);gap:14px;align-items:start}.runbook-detail-main,.runbook-inspector,.runbook-editor{border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--background))}.runbook-detail-main{display:grid;gap:14px;padding:14px}.runbook-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.runbook-detail-heading h4{margin:8px 0 4px;font-size:24px;line-height:1.1}.runbook-detail-heading p{margin:0;color:hsl(var(--muted-foreground));font-size:13px}.runbook-inspector{display:grid;gap:14px;padding:14px}.runbook-inspector>div{display:grid;gap:7px}.runbook-inspector strong{overflow-wrap:anywhere;font-size:14px}.runbook-editor{display:grid;gap:16px;max-width:860px;padding:16px}.runbook-editor__heading strong{display:block;margin-top:4px;font-size:20px;line-height:1.2}.runbook-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.runbook-form-grid__wide{grid-column:1 / -1}.runbook-form-grid label{display:grid;gap:6px}.runbook-form-grid label span{color:hsl(var(--muted-foreground));font-size:12px;font-weight:700}.runbook-form-grid input{min-width:0;min-height:40px;border:1px solid hsl(var(--border));border-radius:var(--radius);padding:0 11px;background:hsl(var(--card));color:hsl(var(--foreground));font:inherit}.step-row{display:grid;grid-template-columns:56px minmax(0,1fr) minmax(180px,.8fr) auto;gap:12px;align-items:center;padding:10px 12px}.step-row>span{color:hsl(var(--primary));font-variant-numeric:tabular-nums;font-weight:700}.step-row strong,.step-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.step-row strong{font-size:13px}.step-row small{font-size:12px}.human-cue-row{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px}.human-cue-row>span:first-child{color:hsl(var(--primary));font-variant-numeric:tabular-nums;font-weight:800}.human-cue-row strong,.human-cue-row p,.human-cue-row small{display:block}.human-cue-row strong{font-size:13px;line-height:1.3}.human-cue-row p{margin:7px 0 0;font-size:13px;line-height:1.45}.human-cue-row small{margin-top:8px;font-size:12px;line-height:1.45}.off-record-chip{align-self:start;border:1px solid hsl(var(--border));border-radius:999px;padding:4px 8px;background:hsl(var(--muted));color:hsl(var(--muted-foreground));font-size:11px;font-weight:800;white-space:nowrap}.proof-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;padding:12px}.proof-row small{display:block;margin-top:7px;overflow-wrap:anywhere;font-size:12px}.proof-actions,.narration-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.proof-actions button,.narration-actions button{min-height:30px;padding:0 9px;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--card));color:hsl(var(--foreground));cursor:pointer;font-size:12px;font-weight:700}.script-pass-toolbar{display:grid;gap:8px;margin-bottom:12px}.script-pass-toolbar .director-button{width:100%}.script-pass-toolbar span{color:hsl(var(--muted-foreground));font-size:12px;line-height:1.4}.narration-row{padding:12px}.narration-row>span{display:block;color:hsl(var(--primary));font-size:12px;font-weight:700}.narration-row p{margin:6px 0 10px;font-size:13px;line-height:1.5}.capture-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px}.capture-item>div:first-child{color:hsl(var(--primary))}.capture-item strong,.capture-item span{display:block}.capture-item span{margin-top:3px;color:hsl(var(--muted-foreground));font-size:12px;line-height:1.35}.policy-row,.workflow-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px}.policy-row strong,.policy-row span,.policy-row code,.workflow-row strong,.workflow-row span,.workflow-row small{display:block}.policy-row strong,.workflow-row strong{font-size:13px;line-height:1.3}.policy-row span,.workflow-row span{margin-top:5px;font-size:12px;line-height:1.45}.policy-row code{margin-top:9px;overflow-wrap:anywhere;border:1px solid hsl(var(--border));border-radius:var(--radius);padding:7px 8px;background:hsl(var(--muted));color:hsl(var(--foreground));font-size:12px}.workflow-row small{margin-top:8px;font-size:12px}.voice-render-card{display:grid;gap:12px;margin-top:10px;padding:12px}.voice-render-card__header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}.voice-render-card__header strong,.voice-render-card__header span{display:block}.voice-render-card__header strong{font-size:13px;line-height:1.3}.voice-render-card__header span{margin-top:5px;font-size:12px;line-height:1.45}.voice-render-meta{display:grid;grid-template-columns:minmax(82px,auto) minmax(0,1fr);gap:7px 10px;align-items:center}.voice-render-meta span,.voice-render-meta code{min-width:0;font-size:12px}.voice-render-meta code{overflow-wrap:anywhere;border:1px solid hsl(var(--border));border-radius:var(--radius);padding:6px 7px;background:hsl(var(--muted));color:hsl(var(--foreground))}.session-card>div{display:flex;justify-content:space-between;gap:10px}.session-card a{color:hsl(var(--primary));overflow-wrap:anywhere;text-decoration:none;font-size:13px}.runbook-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:12px;align-items:end}.runbook-form label{display:grid;gap:6px}.runbook-form label span{color:hsl(var(--muted-foreground));font-size:12px;font-weight:700}.runbook-form input:not([type=checkbox]){min-width:0;min-height:40px;border:1px solid hsl(var(--border));border-radius:var(--radius);padding:0 11px;background:hsl(var(--background));color:hsl(var(--foreground));font:inherit}.source-picker{display:flex;flex-wrap:wrap;gap:8px;grid-column:1 / -1;min-width:0;margin:0;border:0;padding:0}.source-picker legend{width:100%;margin-bottom:2px;color:hsl(var(--muted-foreground));font-size:12px;font-weight:700}.source-picker label{display:inline-flex;align-items:center;min-height:34px;border:1px solid hsl(var(--border));border-radius:var(--radius);padding:0 10px;background:hsl(var(--background))}.source-picker label span{color:hsl(var(--foreground))}.source-picker--panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.source-picker--panel label{justify-content:flex-start}.status-pill{display:inline-flex;align-items:center;gap:6px;width:fit-content;min-height:24px;padding:0 9px;border:1px solid hsl(var(--border));border-radius:999px;color:hsl(var(--muted-foreground));font-size:12px;font-weight:700;white-space:nowrap}.status-pill span{width:7px;height:7px;border-radius:999px;background:currentColor}.status-pill.ready{color:hsl(var(--director-ready))}.status-pill.review{color:hsl(var(--director-review))}.status-pill.blocked{color:hsl(var(--destructive))}@media (max-width: 1120px){.director-kpis,.stage-grid,.director-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.director-grid--tab-runbooks,.director-grid--tab-proof{grid-template-columns:1fr}.director-panel--wide{grid-column:1 / -1}.runbook-form{grid-template-columns:repeat(2,minmax(0,1fr))}.runbook-row{grid-template-columns:minmax(0,1fr)}.runbook-row__actions,.runbook-workspace__actions,.runbook-detail-heading__actions{justify-content:flex-start}.runbook-detail-screen{grid-template-columns:1fr}}@media (max-width: 760px){.director-workspace{max-width:min(100%,calc(100vw - 24px))}.director-hero,.director-hero__copy{display:grid}.director-toolbar{justify-content:stretch}.director-tab-summary{display:grid;min-height:0;padding-top:0}.director-tab-summary p{max-width:none;text-align:left}.director-toolbar .director-button,.director-toolbar .director-refresh{width:100%}.director-kpis,.stage-grid,.director-grid{grid-template-columns:1fr}.step-row{grid-template-columns:1fr;gap:5px}.human-cue-row{grid-template-columns:1fr}.step-row strong,.step-row small{white-space:normal}.runbook-form{grid-template-columns:1fr}.runbook-workspace__topbar,.runbook-detail-heading{display:grid}.runbook-workspace__actions .director-button,.runbook-row__actions button,.runbook-detail-heading__actions button{width:100%}.runbook-form-grid{grid-template-columns:1fr}}
