:root{--bg:#121212;--panel:#1b1b1b;--raised:#252525;--line:#373737;--text:#eceddf;--muted:#9b9b9b;--accent:#f5f5f2;--dark:#262626;--danger:#efab9b;--radius:12px;font-family:'Avenir Next',Avenir,'Segoe UI',sans-serif;color:var(--text);background:var(--bg);font-size:14px;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.dropzone:focus-visible{outline:2px solid var(--accent)}button{cursor:pointer;color:inherit;background:none;border:0}button:disabled{opacity:.45;cursor:wait}a{color:inherit;text-decoration:none}header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4.5vw}.wordmark{display:flex;align-items:center;gap:12px;font-weight:650;font-size:23px;letter-spacing:-.9px}.brandmark{font-family:Georgia,serif;font-size:37px;font-style:italic;line-height:1;color:var(--accent);letter-spacing:-10px;width:41px}.brandmark span{display:inline-block;transform:translateY(5px)}.local-badge{font-size:9px;letter-spacing:1.2px;color:var(--muted);border:1px solid var(--line);padding:6px 8px;border-radius:4px;margin-left:8px}.header-actions{display:flex;align-items:center;gap:24px}.connection{font-size:12px;color:var(--muted)}.connection:before,.dot{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:8px}main{max-width:1510px;margin:auto;padding:42px 4.5vw 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:25px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;color:var(--muted)}h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(32px,3.2vw,48px);letter-spacing:-1.8px;margin:12px 0 10px}p{line-height:1.65;color:var(--muted)}.page-heading p{margin:0;font-size:13px}.mode-control,.library-filter{display:flex;border:1px solid var(--line);background:#1b1b1b;border-radius:7px;padding:4px;gap:3px}.mode-control button,.library-filter button{padding:9px 17px;border-radius:4px;font-size:12px;color:var(--muted)}.mode-control .selected,.library-filter .selected{background:#3a3a3a;color:var(--accent)}.mode-note{display:flex;align-items:center;margin:26px 0 15px;font-size:11px;color:var(--muted)}.mode-note.live{color:var(--accent)}.studio{display:grid;grid-template-columns:minmax(0,1fr) 330px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--panel)}.composer{padding:28px 30px 18px;min-width:0}.controls{background:#212121;border-left:1px solid var(--line);padding:28px 25px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}h2{font-weight:500;font-size:16px;margin:0;letter-spacing:-.35px}.step{display:inline-flex;border:1px solid #454545;width:23px;height:23px;align-items:center;justify-content:center;font-size:10px;margin-right:9px;border-radius:50%;color:var(--muted)}.section-help{font-size:11px;margin:12px 0 18px;max-width:75ch}.text-button{color:var(--muted);font-size:11px;padding:5px 0;white-space:nowrap}.text-button:hover,.quiet:hover{color:var(--accent)}.text-button span,.library-heading h2 span{margin-left:5px;font-size:10px;background:#343434;border-radius:4px;padding:3px 6px}.references{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.ref-card{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#252525}.ref-preview{height:112px;position:relative;display:block;width:100%;padding:0;background:#151515}.ref-preview img,.ref-preview video{width:100%;height:100%;object-fit:cover}.media-symbol{font-family:Georgia,serif;font-size:34px;color:#9f9f9f;display:grid;place-items:center;height:100%}.ref-kind{position:absolute;bottom:6px;right:6px;background:#111b;padding:3px 5px;font-size:9px;border-radius:3px}.ref-info{padding:9px}.ref-tag{color:var(--accent);font-size:12px;text-align:left;padding:0}.ref-name{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:5px 0 9px}.ref-actions{display:flex;align-items:center;gap:5px}.ref-actions button{border:1px solid #414141;border-radius:3px;padding:1px 7px;color:var(--muted);font-size:11px}.ref-actions button:last-child{margin-left:auto}.dropzone{border:1px dashed #4e4e4e;border-radius:8px;display:flex;align-items:center;gap:12px;padding:23px 18px;margin-top:12px;cursor:pointer;background:#1f1f1f;transition:background .15s}.dropzone:hover,.dropzone.dragover{background:#313131;border-color:var(--accent)}.upload-icon{font-size:24px;color:var(--accent);width:35px;height:35px;border:1px solid #525252;border-radius:50%;display:grid;place-items:center}.dropzone strong{font-size:12px;font-weight:500;display:block}.dropzone small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.upload-hint{margin-left:auto;font-size:9px;color:var(--muted)}.prompt-heading{margin-top:30px;margin-bottom:16px}.muted{color:var(--muted);font-size:10px}.prompt-wrap{border:1px solid #404040;border-radius:8px;overflow:hidden;background:#151515}.prompt-wrap:focus-within{border-color:#9b9b9b}textarea{display:block;width:100%;height:225px;background:transparent;border:0;resize:vertical;min-height:150px;color:var(--text);padding:18px;line-height:1.8;font-size:13px}textarea:focus{outline:0}textarea::placeholder{color:#838383}.prompt-footer{display:flex;align-items:center;justify-content:space-between;padding:7px 17px 12px;gap:12px;color:var(--muted);font-size:10px}.draft-actions{display:flex;align-items:center;gap:20px;margin-top:15px}.quiet{border:1px solid #464646;border-radius:5px;font-size:11px;padding:9px 13px;background:#282828}.spacer{flex:1}.field-label{font-size:9px;letter-spacing:1.2px;font-weight:600;color:#a9a9a9;display:block;margin:24px 0 10px}select,input[type=password],input:not([type]){border:1px solid #474747;background:#1a1a1a;border-radius:5px;padding:12px 11px;color:var(--text);width:100%;font-size:12px}select{appearance:auto;cursor:pointer}.control-help{font-size:10px;margin:8px 0 0;line-height:1.6}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.duration-heading{display:flex;align-items:center;justify-content:space-between;margin-top:22px}.duration-heading .field-label{margin:0}.duration-heading>span{display:flex;align-items:center;gap:4px}input[type=number]{width:49px;border:1px solid #474747;border-radius:4px;background:#1a1a1a;padding:6px 2px 6px 7px;color:var(--text);font-size:12px}input[type=range]{accent-color:var(--accent);width:100%;margin:17px 0 8px;height:4px}.range-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}.audio-row{display:flex;justify-content:space-between;align-items:center;padding:23px 0;margin-top:6px;border-bottom:1px solid var(--line);cursor:pointer}.audio-row strong{font-weight:500;font-size:12px}.audio-row small{display:block;font-size:10px;color:var(--muted);margin-top:6px}input[role=switch]{appearance:none;width:32px;height:18px;background:#4f4f4f;border-radius:10px;position:relative;cursor:pointer;transition:background .15s}input[role=switch]:before{content:'';position:absolute;width:12px;height:12px;left:3px;top:3px;background:#1c1c1c;border-radius:50%;transition:transform .15s}input[role=switch]:checked{background:var(--accent)}input[role=switch]:checked:before{transform:translateX(14px)}.estimate{padding:21px 0 13px}.estimate-heading{font-size:11px;color:var(--muted);display:flex;justify-content:space-between}.price{display:flex;align-items:baseline;gap:13px;margin:10px 0}.price>span:first-child{font-family:Georgia,serif;font-size:32px;letter-spacing:-1px}.price>span:last-child{color:#c6c6c6;font-size:11px}.cost-math{font-size:10px;color:#b6b6b6;line-height:1.5}.estimate p{font-size:9px;line-height:1.5;margin:7px 0}.primary{background:var(--accent);color:#2d2d2d;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 17px;border-radius:6px;font-size:12px;font-weight:650;transition:background .15s}.primary:hover{background:#f5f5f2}.controls>.primary{width:100%}.generate-note{font-size:9px;text-align:center;margin:10px 0 0;line-height:1.5}.validation{color:var(--danger);font-size:11px;line-height:1.5;white-space:pre-line;margin-bottom:12px}.validation:empty{display:none}details{font-size:10px;color:var(--muted);margin-top:18px}summary{cursor:pointer}details label{display:block;margin-top:12px}input[type=checkbox]{accent-color:var(--accent)}.library-section{margin-top:44px}.library-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.library-heading h2{font-family:Georgia,serif;font-size:29px;margin-top:8px}.library-filter{border:none;background:transparent}.library-filter button{font-size:11px}.jobs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.empty-library{grid-column:1/-1;min-height:198px;border:1px solid var(--line);border-radius:10px;background:repeating-linear-gradient(90deg,transparent,transparent 119px,#2b2b2b1a 120px);display:flex;align-items:center;justify-content:center;gap:24px;padding:30px}.empty-icon{width:72px;height:56px;border:1px solid #535353;transform:rotate(-5deg);border-radius:5px;position:relative;color:#868686;display:grid;place-items:center;font-size:26px}.empty-icon:before{content:'';position:absolute;inset:6px;border:1px solid #404040;border-radius:2px}.empty-library h3{font-family:Georgia,serif;font-weight:400;font-size:23px;margin:0 0 8px}.empty-library p{font-size:11px;margin:0;max-width:47ch}.job-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#1e1e1e}.job-visual{aspect-ratio:16/9;position:relative;background:#101010;display:grid;place-items:center;overflow:hidden}.job-visual video{width:100%;height:100%;object-fit:contain}.job-visual .state-art{color:#aaaaaa;font-size:30px;font-family:Georgia,serif;text-align:center}.state-art small{display:block;font-family:'Avenir Next',sans-serif;font-size:11px;margin-top:12px;color:var(--muted)}.badge{position:absolute;left:10px;top:10px;font-size:9px;font-weight:600;letter-spacing:.5px;padding:5px 7px;background:#111d;border:1px solid #5e5e5e;border-radius:4px;color:var(--accent);pointer-events:none}.job-content{padding:15px}.job-meta{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);gap:8px}.job-prompt{font-size:12px;line-height:1.65;margin:12px 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:58px;color:#d3d3d3}.job-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.job-actions a{font-size:11px;color:var(--accent)}.job-error{font-size:11px;color:var(--danger);line-height:1.6;overflow-wrap:anywhere}.status-line{font-size:10px;margin-top:10px;color:var(--muted)}footer{border-top:1px solid var(--line);padding:24px 0 28px;display:flex;justify-content:space-between;gap:15px;margin-top:42px;color:#7c7c7c;font-size:10px}.footer-mark{font-family:Georgia,serif;font-style:italic;color:#b7b7b7;font-size:18px;letter-spacing:-3px;margin-right:14px}dialog{background:#222222;color:var(--text);border:1px solid #5c5c5c;border-radius:14px;padding:28px;width:min(560px,calc(100% - 32px));max-height:85vh}dialog::backdrop{background:#080808c9;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-heading h2{font-family:Georgia,serif;font-size:27px}.close{font-size:25px;color:var(--muted);padding:0 5px}dialog>p{font-size:12px}dialog form .primary{margin-top:20px}dialog .field-label{margin-top:20px}.settings-actions{display:flex;align-items:center;gap:20px;margin:20px 0 10px}#keyStatus{font-size:12px;white-space:pre-line}.text-link{color:var(--accent);font-size:12px}.settings-info{border-top:1px solid var(--line);padding-top:23px;margin-top:25px;font-size:12px}.settings-info p{font-size:11px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.review-summary{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:24px 0}.review-summary>div{border:1px solid var(--line);padding:12px;border-radius:5px}.review-summary small{display:block;color:var(--muted);font-size:10px;margin-bottom:6px}.review-summary strong{font-size:13px;font-weight:500}.review-prompt{white-space:pre-wrap;max-height:190px;overflow:auto;background:#181818;padding:16px;border-radius:6px;color:#cdcdcd;font-size:12px;line-height:1.7}.review-note{font-size:11px;line-height:1.6;color:var(--muted)}.list-item{border-bottom:1px solid var(--line);padding:15px 0;display:flex;align-items:center;justify-content:space-between;gap:15px}.list-item strong{font-size:13px;display:block}.list-item p{font-size:10px;margin:5px 0 0}.list-item .quiet{flex-shrink:0}.list-item img{width:50px;height:50px;object-fit:cover;border-radius:4px}.list-item>div{flex:1;min-width:0;overflow-wrap:anywhere}#previewContent img,#previewContent video{max-width:100%;max-height:60vh;display:block;margin:20px auto;object-fit:contain}#previewContent audio{width:100%;margin-top:25px}.toast{position:fixed;top:calc(var(--app-top,90px) + 12px);left:50%;transform:translateX(-50%);animation:toast-in .22s cubic-bezier(.2,.8,.2,1);background:var(--accent);color:var(--dark);padding:13px 22px;border-radius:7px;box-shadow:0 6px 30px #0008;font-size:12px;max-width:90vw;z-index:100;white-space:pre-line}.toast.error{background:#efb7a7}.toast[hidden]{display:none}.busy{animation:pulse 1.5s infinite}@keyframes pulse{50%{opacity:.4}}@media(min-width:1400px){textarea{height:255px}.dropzone{padding:30px 20px}.composer{padding:30px 35px}}@media(max-width:1000px){.studio{grid-template-columns:minmax(0,1fr) 290px}.composer{padding:24px 20px}.controls{padding:24px 20px}.upload-hint{display:none}.jobs{grid-template-columns:repeat(2,minmax(0,1fr))}.local-badge{display:none}.draft-actions{gap:12px}}@media(max-width:720px){header{height:72px;padding:0 20px}.wordmark{font-size:20px}.connection{display:none}main{padding:28px 18px 0}.page-heading{align-items:flex-start;flex-direction:column;gap:20px}.page-heading h1{font-size:34px}.mode-note{line-height:1.6}.studio{grid-template-columns:1fr}.controls{border-left:0;border-top:1px solid var(--line)}.controls .field-grid{grid-template-columns:1fr 1fr}.composer{padding:23px 18px}.section-title{gap:8px}.section-title h2{font-size:14px}.section-help{font-size:10px}.prompt-heading #saveState{font-size:9px}.draft-actions{flex-wrap:wrap}.draft-actions .spacer{display:none}textarea{height:230px}.library-heading{gap:10px;align-items:flex-start}.library-filter button{padding:8px}.jobs{grid-template-columns:1fr}.empty-library{gap:18px;padding:22px}.empty-library h3{font-size:21px}.empty-icon{flex-shrink:0;width:55px}footer{flex-direction:column;line-height:1.7}.review-summary{gap:8px}.dialog-actions .primary{font-size:11px}dialog{padding:23px}.references{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Reference suggestions float by the caret, above the keyboard on narrow screens. */
.mention-picker{position:fixed;z-index:80;display:flex;flex-direction:column;background:#292929;border:1px solid #747474;border-radius:10px;box-shadow:0 12px 38px #0009;overflow:hidden;padding:5px}
.mention-picker[hidden]{display:none}
.mention-heading{display:flex;align-items:center;justify-content:space-between;padding:3px 9px 5px;color:#dadada;font-size:11px;flex-shrink:0}
.mention-heading button{font-size:21px;min-width:36px;min-height:32px;color:var(--muted)}
#mentionOptions{position:relative;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;min-height:0}
#mentionOptions [role=option]{display:flex;align-items:center;gap:10px;width:100%;min-height:60px;padding:9px;border-radius:6px;text-align:left}
#mentionOptions [role=option][aria-selected=true],#mentionOptions [role=option]:hover{background:#414141}
#mentionOptions img,.mention-symbol{width:40px;height:40px;object-fit:cover;flex-shrink:0;border-radius:5px;background:#1e1e1e}
.mention-symbol{display:grid;place-items:center;color:var(--accent);font-size:23px}
.mention-label{min-width:0;flex:1}.mention-label strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500}.mention-label small{display:block;color:#cdcdcd;font-size:10px;margin-top:5px}
.mention-action{color:#e0e0e0;font-size:10px;flex-shrink:0}.mention-status{font-size:10px;line-height:1.5;color:#bdbdbd;padding:8px 9px 5px;flex-shrink:0}
.mention-trigger{color:var(--accent);min-height:36px}.prompt-footer #charCount{margin-right:auto}
@media(max-width:720px){.prompt-footer{flex-wrap:wrap;gap:4px 12px}.prompt-footer #starterButton{margin-left:auto}.mention-heading button{min-height:44px;min-width:44px}.mention-label strong{font-size:14px}#mentionOptions [role=option]{min-height:64px}#prompt{font-size:16px}}
/* Shared project foundation; the existing generator remains its own workspace. */
[hidden]{display:none!important}
.workspace-bar{display:flex;align-items:center;gap:14px;padding-bottom:24px;margin-bottom:30px;border-bottom:1px solid var(--line)}
.workspace-bar>label{font-size:10px;letter-spacing:1.3px;color:var(--muted)}.workspace-bar select{max-width:440px;flex:1;min-width:0}.workspace-bar button{margin-left:auto;min-height:44px}
.project-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.project-heading h1{overflow-wrap:anywhere}.project-heading p{margin:0;font-size:13px}.project-next{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:26px 0;padding:18px 20px;border:1px solid #4a4a4a;background:#212121;border-radius:9px}.project-next strong{display:block;font-size:14px;font-weight:500;margin-top:7px}.project-next button{min-height:44px}
.project-stages{display:flex;gap:5px;overflow-x:auto;margin-bottom:20px;padding-bottom:4px}.project-stages button{display:flex;align-items:center;gap:9px;white-space:nowrap;border-radius:6px;padding:13px 16px;font-size:12px;color:var(--muted);min-height:46px}.project-stages button span{font-size:10px;opacity:.7}.project-stages button[aria-current=page]{color:var(--accent);background:#373737}
.project-surface{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:28px}.project-section-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:22px}.project-section-heading h2{font-family:Georgia,serif;font-size:26px}.project-section-heading p{font-size:12px;max-width:70ch;margin:10px 0 0}.project-section-heading>.primary{flex-shrink:0;min-height:44px}
.project-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 24px}.project-field{display:block;min-width:0;margin:0 0 21px}.project-field>span{display:block;font-size:12px;color:#d6d6d6;margin-bottom:9px}.project-field small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:7px}.project-field input,.project-field select,.project-field textarea{width:100%;border:1px solid #474747;background:#151515;border-radius:6px;padding:12px;color:var(--text);font-size:14px}.project-field textarea{height:118px;min-height:100px;line-height:1.7;resize:vertical}.project-field textarea:focus{outline:2px solid var(--accent)}.project-wide{grid-column:1/-1}.project-wide textarea{height:190px}.project-form-actions{display:flex;align-items:center;justify-content:space-between;gap:20px}.project-form-actions>span{color:var(--muted);font-size:11px;line-height:1.6;max-width:64ch}.project-form-actions button{min-height:44px;flex-shrink:0}.project-boundary{font-size:11px;line-height:1.6;margin:17px 0;color:var(--muted)}.project-save-error{color:var(--danger)!important}
.project-records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.project-record{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#202020}.project-record-image,.project-record-placeholder{height:160px;width:100%;object-fit:contain;background:#141414}.project-record-placeholder{display:grid;place-items:center;color:#969696;font-size:38px}.project-record-body{padding:19px}.project-record h3{font-family:Georgia,serif;font-size:24px;font-weight:400;margin:0;overflow-wrap:anywhere}.project-record p{white-space:pre-wrap;font-size:12px;line-height:1.75;overflow-wrap:anywhere}.project-continuity{border-top:1px solid var(--line);padding-top:14px}.project-continuity strong{font-size:11px;color:var(--accent);font-weight:500}.project-continuity p{margin-top:6px}.project-record-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}.project-record-footer span{font-size:10px;color:var(--muted)}.project-record-footer button{min-height:44px}.project-empty{grid-column:1/-1;border:1px dashed #525252;border-radius:9px;padding:30px}.project-empty h3{font-family:Georgia,serif;font-size:24px;font-weight:400;margin:0 0 10px}.project-empty p{font-size:12px;max-width:65ch}.project-empty .primary{margin-top:20px}
.project-reference-fieldset{border:1px solid var(--line);border-radius:7px;padding:14px;margin:0 0 18px;min-width:0}.project-reference-fieldset legend{font-size:12px;color:#d6d6d6;padding:0 6px}.project-reference-fieldset p{font-size:11px;margin:0 0 10px}.project-reference-fieldset>label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:12px;overflow-wrap:anywhere}#recordReferences{max-height:250px;overflow:auto}.project-asset-choice{display:flex;align-items:center;gap:10px;padding:9px 0;min-height:58px;cursor:pointer}.project-asset-choice img,.project-asset-symbol{width:40px;height:40px;object-fit:cover;border-radius:5px;flex-shrink:0}.project-asset-symbol{display:grid;place-items:center;background:#373737}.project-asset-choice>span:last-child{font-size:12px;overflow-wrap:anywhere;min-width:0}.project-asset-choice small{display:block;color:var(--muted);margin-top:5px}.project-upload{display:block;padding:12px;border:1px dashed #656565;border-radius:6px;font-size:12px;margin:16px 0;color:var(--accent)}.project-upload input{display:block;width:100%;font-size:11px;margin-top:12px}#recordDialog .project-field{margin-top:18px}
.project-context-state{display:inline-block;border:1px solid #565656;border-radius:5px;padding:8px 12px;font-size:11px;color:var(--accent);margin-bottom:24px}.project-context-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:30px}.project-context-columns>section{min-width:0}.project-context-columns h3,.project-draft-layout h3,.project-saved-drafts h3,.project-crew h3{font-size:14px;font-weight:500;margin:0 0 13px}.project-context-copy{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 'Avenir Next',sans-serif;max-height:420px;overflow:auto;background:#141414;color:#cecece;padding:18px;border:1px solid #373737;border-radius:7px;margin:0}.project-crew{border-top:1px solid var(--line);margin-top:30px;padding-top:24px}.project-crew p{font-size:11px}.project-crew>div{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.project-crew>div>span{border:1px solid var(--line);padding:14px;border-radius:6px}.project-crew strong{font-size:12px;font-weight:500;display:block}.project-crew small{font-size:10px;color:var(--muted);display:block;margin-top:7px;line-height:1.6}
.project-draft-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:28px}.project-draft-layout>*{min-width:0}#projectDraftText{height:240px}.project-saved-drafts{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}.project-saved-drafts>p{font-size:12px}.project-saved-drafts .list-item button{min-height:44px}
@media(max-width:1000px){.project-records{grid-template-columns:repeat(2,minmax(0,1fr))}.project-stages button{padding:12px}.project-crew>div{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.workspace-bar{flex-wrap:wrap;gap:10px;margin-bottom:24px;padding-bottom:20px}.workspace-bar>label{width:100%}.workspace-bar select{font-size:14px;padding:12px 7px}.workspace-bar button{font-size:11px;padding:10px}.project-heading{align-items:start;flex-direction:column;gap:12px}.project-heading h1{font-size:32px}.project-heading p{font-size:12px}.project-stages{margin-left:-4px;margin-right:-4px;}.project-stages button{padding:12px;font-size:12px}.project-surface{padding:20px 16px}.project-section-heading{flex-direction:column;gap:16px}.project-section-heading h2{font-size:25px}.project-form-grid,.project-context-columns,.project-draft-layout,.project-records{grid-template-columns:1fr}.project-context-columns{gap:20px}.project-context-copy{max-height:290px}.project-field input,.project-field textarea,.project-field select{font-size:16px}.project-form-actions{align-items:stretch;flex-direction:column;gap:13px}.project-form-actions .primary{justify-content:center}.project-record-image,.project-record-placeholder{height:180px}.project-next{padding:15px}.project-next strong{font-size:12px}.project-crew>div{gap:8px}.project-crew>div>span{padding:12px}.project-reference-fieldset>label{font-size:13px}}

/* Reference inbox */
.imports-dialog{width:min(1100px,calc(100vw - 32px));max-width:1100px}.imports-dialog label{display:block;font-size:11px;letter-spacing:.08em;margin:12px 0 8px;color:#aaa}.import-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.import-fields[hidden]{display:none}.import-form{padding:20px 0;border-bottom:1px solid #343434;margin-bottom:24px}.import-form input,.import-form select,.import-settings input{width:100%;min-width:0}.import-settings{padding:16px;border:1px solid #343434;border-radius:12px}.import-review{padding:20px;border:1px solid #f5f5f2;border-radius:12px;margin:16px 0}.import-review p{overflow-wrap:anywhere}.import-job{border-top:1px solid #343434;padding:24px 0}.import-job-heading{display:flex;justify-content:space-between;gap:16px}.import-job-heading a{display:block;color:#b7b7b7;margin-top:8px;overflow-wrap:anywhere}.import-status{font-size:12px;color:#f5f5f2}.import-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.import-card{border:1px solid #343434;border-radius:12px;overflow:hidden;min-width:0}.import-card video,.import-card img{width:100%;height:220px;object-fit:contain;background:#111}.import-card-body{padding:18px}.import-caption{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;font-size:13px;line-height:1.6}.import-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.import-placeholder,.import-empty{padding:40px 20px;color:#999;text-align:center;background:#191919}.import-placeholder{font-size:12px}.import-empty{border-radius:12px;line-height:1.8}.import-card details{margin-top:12px}.import-card a{color:#f5f5f2}.import-card button{font-size:12px}.import-settings a{font-size:12px;color:#f5f5f2}
@media(max-width:650px){.import-fields,.import-cards{grid-template-columns:1fr}.header-actions{flex-wrap:wrap;justify-content:flex-end}.imports-dialog{padding:18px}.import-job-heading{flex-direction:column}}
/* Compact reference gallery with focused post detail. */
.import-cards{grid-template-columns:repeat(auto-fill,minmax(150px,190px));align-items:start;gap:16px}.import-card{display:block;padding:0;text-align:left;background:#1f1f1f;color:inherit;cursor:pointer}.import-thumb{position:relative;overflow:hidden;background:#111;max-height:340px}.import-thumb video,.import-thumb img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}.import-thumb .import-placeholder{height:100%;display:grid;place-items:center;padding:16px}.import-play{position:absolute;right:10px;bottom:10px;border-radius:50%;background:#000a;padding:8px}.import-card-summary{padding:12px;display:grid;gap:6px}.import-card-summary strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-card-summary span,.import-card-summary small{font-size:11px;color:#bbbbbb}.import-detail{width:min(960px,calc(100vw - 32px));max-width:960px;padding:28px}.import-detail>article{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.import-detail>.close{float:right}.import-detail-media video,.import-detail-media img{width:100%;max-height:75vh;object-fit:contain;background:#111}.import-detail .import-caption{max-height:42vh}.import-detail details{margin-top:16px}.import-detail .import-card-body{min-width:0;padding:12px 0}.import-card:focus-visible{outline:2px solid #f5f5f2;outline-offset:3px}@media(max-width:650px){.import-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.import-detail>article{grid-template-columns:1fr}.import-detail-media video,.import-detail-media img{max-height:50vh}}
.import-card-open{display:block;width:100%;border:0;padding:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.import-copy{margin:0 12px 12px}.import-card-open:focus-visible{outline:2px solid #f5f5f2;outline-offset:-2px}

/* Project inspiration canvas */
.board-surface{padding:0;overflow:hidden}.board-heading{padding:24px 24px 12px;display:flex;align-items:center;justify-content:space-between;gap:16px}.board-heading h2{font:28px Georgia,serif;margin:0}.board-heading p{margin:6px 0;font-size:13px}.board-status{font-size:12px;color:var(--muted);max-width:360px}.board-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:6px 20px 16px}.board-toolbar button,.board-footer button{min-height:44px;padding:10px 13px;border:1px solid var(--line);border-radius:6px;font-size:12px}.board-toolbar button.primary{background:var(--accent);color:var(--bg)}.board-tool-divider{flex:1}.board-viewport{height:clamp(430px,65vh,850px);position:relative;overflow:hidden;background-color:#141414;background-image:radial-gradient(#3e3e3e 1px,transparent 1px);background-size:24px 24px;touch-action:none;isolation:isolate;border-block:1px solid var(--line);cursor:grab}.board-viewport:active{cursor:grabbing}.board-viewport.is-dropping{outline:3px solid var(--accent);outline-offset:-4px}.board-plane{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0}.board-card{position:absolute;background:#272727;border:1px solid #585858;border-radius:7px;overflow:hidden;box-shadow:0 8px 24px #0004;cursor:default;touch-action:auto}.board-card.is-selected{outline:2px solid var(--accent);outline-offset:3px}.board-handle{display:flex;align-items:center;gap:9px;width:100%;text-align:left;padding:9px 12px;min-height:44px;cursor:grab;touch-action:none;background:#292929;font-size:12px}.board-handle span:first-child{font-size:20px;color:var(--muted)}.board-handle span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.board-card img{display:block;width:100%;max-height:460px;object-fit:contain;background:#101010;user-select:none}.board-card video{display:block;width:100%;max-height:360px;background:#101010}.board-card audio{width:100%;display:block;padding:10px 0}.board-caption{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65;padding:16px;margin:0;color:var(--text)}.board-note{background:#e9e9e9;border-color:#d7d7d7}.board-note .board-handle{background:#e1d3a4;color:#352d19}.board-note .board-caption{color:#352d19;font-size:17px;font-family:Georgia,serif;min-height:120px}.board-note .board-card-actions{color:#352d19;border-color:#cbbc88}.board-card-actions{display:flex;align-items:center;border-top:1px solid #ffffff15;padding:0 6px}.board-card-actions button{min-width:44px;min-height:44px;font-size:14px}.board-card-actions button:first-child{margin-right:auto;font-size:12px}.board-card-actions button:hover{background:#ffffff12}.board-link-body{padding:20px}.board-domain{color:var(--accent);font-size:12px;overflow-wrap:anywhere}.board-link-body p{font:23px/1.3 Georgia,serif;overflow-wrap:anywhere;color:var(--text)}.board-link-body a{display:inline-block;text-decoration:underline;font-size:13px;padding:10px 0}.board-link-body small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:10px}.board-play{display:block;border:1px solid var(--line);border-radius:5px;min-height:44px;padding:8px 12px;font-size:12px;margin-top:10px}.board-link-body iframe{width:100%;aspect-ratio:16/9;border:0;margin-top:12px}.board-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;pointer-events:none;padding:24px}.board-empty[hidden]{display:none}.board-empty button{pointer-events:auto;min-height:44px}.board-empty-icon{color:var(--accent);font-size:40px;font-weight:200}.board-empty h3{font:29px Georgia,serif;margin:16px 0 8px}.board-empty p{font-size:13px;line-height:1.8;margin:0 0 20px}.board-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px}.board-hint{font-size:11px;color:var(--muted)}.board-footer>div{display:flex;align-items:center;gap:6px;flex-shrink:0}.board-zoom{font-size:12px;min-width:40px;text-align:center}.board-dialog{width:min(540px,calc(100vw - 24px));max-height:85dvh;overflow:auto;padding:24px}.board-dialog h2{font:27px Georgia,serif}.board-dialog label{display:block;font-size:13px;margin:18px 0}.board-dialog input:not([type=checkbox]),.board-dialog textarea{display:block;width:100%;padding:12px;margin-top:8px;background:var(--bg);border:1px solid var(--line);border-radius:6px;color:var(--text);font-size:16px}.board-dialog textarea{height:140px;resize:vertical}.board-dialog p{font-size:12px;line-height:1.6}.board-dialog-actions{display:flex;justify-content:flex-end;gap:10px}.board-dialog-actions button{min-height:44px;padding:10px 16px}.board-shelf{max-height:45vh;overflow:auto}.board-shelf label{display:flex;align-items:center;gap:12px;min-height:56px;margin:4px 0;padding:6px}.board-shelf img,.board-shelf-icon{width:48px;height:48px;object-fit:cover;flex-shrink:0}.board-shelf-icon{display:grid;place-items:center;background:var(--raised);font-size:24px}.board-shelf label span:last-child{overflow-wrap:anywhere;min-width:0}.board-missing{padding:16px;font-size:13px}
@media(max-width:600px){.board-heading{padding:18px 14px 8px;align-items:flex-start;flex-direction:column;gap:4px}.board-heading h2{font-size:26px}.board-toolbar{padding:10px;gap:5px}.board-toolbar button{padding:10px;font-size:12px}.board-tool-divider{display:none}.board-viewport{height:60dvh;min-height:420px}.board-footer{padding:8px;flex-wrap:wrap;justify-content:center}.board-hint{width:100%;text-align:center;font-size:10px}.board-empty h3{font-size:24px}.board-empty p{font-size:12px}.board-status{max-width:100%;overflow-wrap:anywhere}}
.board-card.is-selected{z-index:1}

/* Use the display as a workspace; let the media define each canvas card. */
main{max-width:none;padding:28px clamp(16px,2vw,48px) 0}
header{padding-inline:clamp(16px,2vw,48px)}
.board-surface{position:relative;border-radius:8px}
.board-heading{height:52px;padding:0 18px;flex-direction:row;align-items:center}
.board-heading h2{font:16px 'Avenir Next',Avenir,'Segoe UI',sans-serif}
.board-heading .board-status{font-size:11px}
.board-toolbar{position:absolute;z-index:3;top:68px;left:16px;right:16px;padding:0;gap:6px;pointer-events:none}
.board-toolbar button{pointer-events:auto;background:#1e1e1eed;backdrop-filter:blur(12px);box-shadow:0 2px 8px #0002}
.board-toolbar button.primary{background:var(--accent)}
.board-viewport{height:max(520px,calc(100dvh - 330px));border:0;background-image:radial-gradient(#353535 1px,transparent 1px)}
.board-footer{position:absolute;z-index:3;inset:auto 16px 16px;padding:0;pointer-events:none}
.board-footer>div{pointer-events:auto;background:#1e1e1eed;backdrop-filter:blur(12px);border:1px solid var(--line);padding:4px;border-radius:8px}
.board-footer button{border:0}
.board-hint{padding:8px 12px;background:#141414dc;border-radius:5px}
.board-card{box-shadow:none}
.board-media{background:transparent;border:0;border-radius:4px;overflow:visible}
.board-media>img,.board-video,.board-media>audio{border-radius:4px;overflow:hidden}
.board-media img,.board-media video{max-height:none;width:100%;height:auto;background:#101010}
.board-media .board-handle{position:absolute;z-index:2;left:8px;top:8px;width:44px;height:44px;justify-content:center;padding:0;border-radius:7px;background:#171717df;backdrop-filter:blur(10px);color:var(--text)}
.board-media .board-handle span{color:var(--text)}
.board-card-actions{position:absolute;z-index:2;bottom:8px;right:8px;padding:0 3px;border:1px solid #6d6d6d66;border-radius:7px;background:#171717ed;color:var(--text);backdrop-filter:blur(10px)}
.board-note .board-card-actions{background:#171717ed;color:var(--text);border-color:#6d6d6d66}
.board-card-actions button:first-child{margin:0}
.board-card-actions,.board-media .board-handle{opacity:0;pointer-events:none;transition:opacity .12s}
.board-card:hover .board-card-actions,.board-card:focus-within .board-card-actions,.board-card.is-selected .board-card-actions,.board-media:hover .board-handle,.board-media:focus-within .board-handle,.board-media.is-selected .board-handle{opacity:1;pointer-events:auto}
.board-card-actions:focus-within{opacity:1;pointer-events:auto}
.board-video{position:relative}
.board-video video{display:block;cursor:pointer;outline-offset:-3px}
.board-video-cue{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:46px;height:46px;display:grid;place-items:center;padding-left:3px;border-radius:50%;background:#1119;color:#fff;font-size:16px;pointer-events:none}
.board-video.is-playing .board-video-cue{display:none}
.board-note{display:flex;flex-direction:column}.board-note .board-caption{flex:1;min-height:0;padding-bottom:22px;overflow:auto}
.board-note .board-caption{font-size:var(--note-font-size,17px)}
.board-note .board-caption[contenteditable=true]{outline:1px dashed var(--accent);outline-offset:3px;border-radius:3px;cursor:text}
.board-empty{padding:90px 24px}
@media(min-width:1000px){.project-heading{margin-bottom:12px}.project-stages{margin-bottom:16px}.workspace-bar{margin-bottom:20px;padding-bottom:18px}}
@media(max-width:600px){
 main{padding-top:20px}
 .board-heading{padding-inline:12px;height:48px;gap:8px}
 .board-heading .board-status{font-size:10px;max-width:65%;text-align:right}
 .board-toolbar{top:60px;left:10px;right:10px;gap:5px}
 .board-toolbar button{font-size:11px;padding:8px;min-height:44px}
 .board-viewport{height:70dvh;min-height:540px}
 .board-footer{inset:auto 10px 10px;justify-content:flex-end;flex-wrap:nowrap}
 .board-hint{display:none}
 .board-card-actions{bottom:6px;right:6px}
}
@media(hover:none){.board-media .board-handle{opacity:1;pointer-events:auto}.board-card.is-selected .board-card-actions{opacity:1;pointer-events:auto}}
@media(prefers-reduced-motion:reduce){.board-card-actions,.board-media .board-handle{transition:none}}

/* A softer shell, with direct manipulation on the canvas. */
:root{--radius:20px}
header{margin:16px clamp(16px,2vw,48px) 0;padding:14px 22px;height:auto;min-height:76px;border:1px solid var(--line);border-radius:24px;background:var(--panel);gap:18px}
.project-surface{border-radius:20px}
.project-next,.project-record,.project-empty{border-radius:16px}
.project-field input,.project-field select,.project-field textarea,.workspace-bar select{border-radius:12px}
.project-stages button,.quiet,.primary,.mode-control,.library-filter{border-radius:12px}
.board-surface{border-radius:20px}
.board-toolbar button,.board-footer>div{border-radius:12px}
.board-dialog{border-radius:22px}
.board-dialog.board-note-editor{position:fixed;inset:auto;margin:0;width:max-content;max-width:calc(100vw - 24px);max-height:calc(100dvh - 16px);padding:4px;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 36px #0008;z-index:40}
.board-note-editor .board-note-options{display:flex;align-items:center;gap:4px;margin:0}
.board-note-editor .board-dialog-actions{display:none}
.board-note-styles{display:flex;gap:2px;padding-right:4px}
.board-note-styles button{display:grid;place-items:center;width:30px;height:30px;border-radius:6px;font:17px Georgia,serif}
.board-note-styles button[aria-pressed=true]{background:var(--raised)}
.board-note-styles button[data-note-style=sticky] span{display:grid;place-items:center;width:21px;height:21px;background:#e8d9aa;color:#252525;border-radius:2px;font-size:14px}
.board-note-size{display:flex;align-items:center;height:30px;border-radius:6px;background:var(--bg)}
.board-note-emphasis{display:flex;align-items:center;gap:1px;padding:0 2px;border-radius:6px;background:var(--bg)}
.board-note-emphasis button{display:grid;place-items:center;width:26px;height:30px;min-height:30px;padding:0;border-radius:5px;font:14px Georgia,serif}
.board-note-emphasis button[aria-pressed=true]{background:var(--raised)}
.board-note-emphasis strong,.board-note-emphasis em,.board-note-emphasis s{font:inherit}
.board-note-emphasis strong{font-weight:700}.board-note-emphasis em{font-style:italic}.board-note-emphasis s{text-decoration:line-through}
.board-note.note-bold .board-caption{font-weight:700}
.board-note.note-italic .board-caption{font-style:italic}
.board-note.note-strike .board-caption{text-decoration:line-through}
.board-note-editor .board-note-options input[type=color]{width:30px;height:30px;min-height:30px;padding:2px;border:0;background:transparent;cursor:pointer}
.board-note-editor .board-note-options input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.board-note-editor .board-note-options input[type=color]::-webkit-color-swatch{border:0;border-radius:50%}
.board-note-editor .board-note-options input[type=color]::-moz-color-swatch{border:0;border-radius:50%}
.board-note-editor .board-note-options button:focus-visible,.board-note-editor .board-note-options input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.board-note .board-caption[contenteditable=true]:empty::before{content:'Write a note…';opacity:.55}
.board-card-actions{bottom:auto;top:8px;right:8px}
.board-card-actions button{display:inline-flex;align-items:center;justify-content:center}
.board-resize{position:absolute;z-index:3;right:-10px;bottom:-10px;width:44px;height:44px;border:0;background:transparent;color:#fff;display:grid;place-items:center;cursor:nwse-resize;touch-action:none;opacity:0;pointer-events:none;filter:drop-shadow(0 1px 2px #000)}
.board-card:hover .board-resize,.board-card:focus-within .board-resize,.board-card.is-selected .board-resize{opacity:1;pointer-events:auto}
.board-note,.board-link{overflow:visible}
.board-note .board-handle,.board-link .board-handle{border-radius:6px 6px 0 0;padding-right:110px}
.board-note.note-plain{background:transparent;border:0;box-shadow:none}.board-note.note-plain .board-handle{background:transparent;color:inherit;padding-left:0}.board-note.note-plain .board-caption{padding:2px 4px 20px;color:inherit}.board-note.note-sticky.color-white{background:#f4f4f1}.board-note.note-sticky.color-cream{background:#e8d9aa}.board-note.note-sticky.color-pink{background:#eab5cb}.board-note.note-sticky.color-blue{background:#aed3ec}.board-note.note-sticky.color-green{background:#b8d7b4}.board-note.note-sticky .board-handle{background:#00000012}.board-note.note-sticky .board-caption{color:#252525}.board-note.note-plain.color-white{color:#f4f4f1}.board-note.note-plain.color-cream{color:#e8d9aa}.board-note.note-plain.color-pink{color:#eab5cb}.board-note.note-plain.color-blue{color:#aed3ec}.board-note.note-plain.color-green{color:#b8d7b4}.board-note.font-sans .board-caption{font-family:'Avenir Next',Avenir,'Segoe UI',sans-serif}.board-note.font-serif .board-caption{font-family:Georgia,serif}.board-note.font-mono .board-caption{font-family:ui-monospace,SFMono-Regular,monospace}.board-note-options select{display:block;width:100%;margin-top:8px;padding:12px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:7px}.board-viewport.is-drawing{cursor:crosshair}.board-draw-preview{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.board-drawing{background:transparent;border:0;overflow:visible;box-shadow:none;touch-action:none}.board-drawing-svg{width:100%;height:100%;overflow:visible;pointer-events:stroke}.board-drawing .board-handle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:36px;height:36px;padding:0;justify-content:center;background:#222d;border:1px solid #777;border-radius:50%;opacity:0}.board-drawing:hover .board-handle,.board-drawing.is-selected .board-handle,.board-drawing:focus-within .board-handle{opacity:1}.board-drawing .board-card-actions{top:-46px;bottom:auto}.board-toolbar [aria-pressed=true]{outline:2px solid var(--accent);outline-offset:-2px}
.board-delete-confirm{background:#623128;border:1px solid #9c5f51;border-radius:12px;color:#fff1e9}
.board-delete-cancel{border:1px solid var(--line);border-radius:12px}
.board-toolbar [hidden]{display:none!important}
.board-section{z-index:0;background:#242424;border:1px dashed #777;border-radius:14px;box-shadow:none;overflow:visible}
.board-section .board-handle{background:transparent;border-radius:13px 13px 0 0;color:#f4f4f1;font-weight:600;font-size:15px;min-height:48px}
.board-section .board-section-body{height:calc(100% - 48px);pointer-events:none}
.board-section .board-card-actions{z-index:2}
.board-card:not(.board-section){z-index:1}
.board-card.is-selected{outline:2px solid var(--accent);outline-offset:2px}
.board-marquee{position:absolute;z-index:5;border:1px solid #d8d8d8;background:#ffffff22;pointer-events:none}
.board-marquee[hidden]{display:none}
/* Keep creation at the top and drawing controls beside the canvas. */
.board-pin-menu{position:absolute;left:0;top:42px;display:grid;gap:5px;min-width:176px;padding:6px;background:#232323f5;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px #0008;pointer-events:auto}
.board-pin-menu[hidden]{display:none}
.board-pin-menu button{text-align:left;width:100%;box-shadow:none}
.board-side-tools{position:absolute;z-index:4;right:16px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px;background:#222e;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 28px #0008;backdrop-filter:blur(12px)}
.board-side-tools button{width:38px;height:38px;min-height:38px;padding:0;display:grid;place-items:center;background:transparent;border:0;border-radius:11px;font-size:19px;line-height:1}
.board-side-tools button svg{width:22px;height:22px;display:block}
.board-side-tools button:hover,.board-side-tools button[aria-pressed=true]{background:#ffffff26}
.board-side-divider{width:24px;height:1px;background:var(--line);margin:5px 0}
.board-color-tool{width:38px;min-height:42px;display:grid;justify-items:center;gap:2px;font-size:9px;color:var(--muted);cursor:pointer}
.board-color-tool input{width:27px;height:27px;padding:0;border:0;background:none;cursor:pointer}
.board-note.note-plain .board-handle{position:absolute;z-index:2;left:-21px;top:0;width:22px;height:22px;min-height:22px;padding:0;display:grid;place-items:center;border-radius:50%;background:#222c;color:var(--text);opacity:.65}
.board-note.note-plain .board-caption{padding:0 4px 20px}
.board-drawing{pointer-events:none}
.board-drawing.is-selected{outline:none}
.board-drawing-svg{pointer-events:none}
.board-drawing .board-handle{width:28px;height:28px;min-height:28px;pointer-events:auto;opacity:.8;cursor:grab}
.board-drawing .board-handle:hover,.board-drawing .board-handle:focus-visible{opacity:1;background:#444e}
.board-drawing .board-card-actions{pointer-events:auto;opacity:0}
.board-drawing.is-selected .board-card-actions,.board-drawing:focus-within .board-card-actions{opacity:1}
@media(max-width:600px){.board-side-tools{right:8px;top:54%;gap:1px;padding:4px}.board-side-tools button{width:34px;height:34px;min-height:34px}.board-toolbar{right:8px;left:8px}}
@media(max-width:600px){header{margin-top:10px;padding:12px;gap:10px;border-radius:20px;flex-wrap:wrap}.header-actions{margin-left:auto;gap:8px}.wordmark{font-size:19px}.header-actions button{min-height:44px;font-size:11px}.board-card-actions{top:6px;right:6px;bottom:auto}.board-resize{right:-6px;bottom:-6px}}
@media(hover:none){.board-resize{opacity:1;pointer-events:auto}}

.board-note.note-plain .board-caption,.board-note.note-sticky .board-caption{color:var(--note-text-color)}

/* Shared, keyboard-accessible dropdown surface. The source select remains in the form. */
.site-select{display:inline-flex;position:relative;width:100%;min-width:0;max-width:100%;vertical-align:middle}
.site-select-source{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)}
.site-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:40px;padding:9px 11px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--text);font-size:12px;text-align:left;white-space:nowrap;overflow:hidden}
.site-select-trigger::after{content:'';flex:none;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);color:var(--muted)}
.site-select-trigger:hover,.site-select-trigger[aria-expanded=true]{background:var(--raised)}
.site-select-menu{position:fixed;margin:0;inset:auto;color:var(--text);z-index:10000;max-height:280px;overflow:auto;padding:5px;border:1px solid var(--line);border-radius:10px;background:var(--raised);box-shadow:0 14px 42px #0009}
.site-select-option{display:block;width:100%;min-height:34px;padding:7px 10px;border-radius:6px;text-align:left;font-size:12px;white-space:normal}
.site-select-option:hover,.site-select-option:focus-visible,.site-select-option.is-active,.site-select-option[aria-selected=true]{background:color-mix(in srgb,var(--text) 12%,transparent)}
.site-select-option[aria-selected=true]{font-weight:700}
.workspace-bar>.site-select{flex:1;width:100%;max-width:440px}
.workspace-switch .site-select{width:100%}
.board-note-editor .site-select{width:78px}
.board-note-editor .site-select-trigger{min-height:30px;height:30px;padding:3px 6px;border:0;background:var(--bg);font-size:12px}
.board-note-editor .site-select-trigger[data-font=sans]{font-family:'Avenir Next',Avenir,'Segoe UI',sans-serif}
.board-note-editor .site-select-trigger[data-font=serif]{font-family:Georgia,serif}
.board-note-editor .site-select-trigger[data-font=mono]{font-family:ui-monospace,SFMono-Regular,monospace}
@media(max-width:720px){.workspace-bar>.site-select{max-width:none;flex-basis:100%}}

.board-note.note-sticky[class*="color-"]{background:var(--note-background-color,#e8d9aa)}
.board-note-editor .board-note-options input[name=noteBackgroundColor]{width:30px;height:30px;min-height:30px;padding:2px;border:0;background:transparent;cursor:pointer}
.board-note-editor .board-note-options input[name=noteBackgroundColor]::-webkit-color-swatch-wrapper{padding:0}
.board-note-editor .board-note-options input[name=noteBackgroundColor]::-webkit-color-swatch{border:0;border-radius:4px}
.board-note-editor .board-note-options input[name=noteBackgroundColor]::-moz-color-swatch{border:0;border-radius:4px}
.board-note-editor .board-note-options input[hidden]{display:none}

.board-note-editor .board-note-size .site-select{width:48px}
.board-note-editor .board-note-size .site-select-trigger{position:relative;display:flex;align-items:center;justify-content:center;gap:0;padding:0;text-align:center;font-variant-numeric:tabular-nums}
.board-note-editor .board-note-size .site-select-trigger::after{position:absolute;right:5px;width:5px;height:5px}

@media(max-width:420px){.board-note-editor .board-note-options{flex-wrap:wrap;max-width:calc(100vw - 34px)}}

.board-note-editor .board-note-title-input{display:block;width:100%;height:32px;min-height:32px;margin-top:4px;padding:5px 8px;border:0;border-radius:6px;background:var(--bg);color:var(--text);font-size:13px;outline:none}
.board-note-editor .board-note-title-input:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.board-note-editor .board-note-title-input[hidden]{display:none}

.board-media-prep{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);box-shadow:0 24px 80px #0009;overflow:auto}
.board-media-prep::backdrop{background:#000a}
.board-media-prep-head,.board-media-prep-actions,.board-media-prep-crop-row,.board-media-prep-trim>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.board-media-prep-head strong{font-size:17px}.board-media-prep-head p{max-width:500px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:3px 0 0;color:var(--muted);font-size:12px}
.board-media-prep-head [data-close]{font-size:24px;line-height:1;width:32px;height:32px}
.board-media-prep-stage{height:min(44vh,360px);min-height:200px;display:grid;place-items:center;margin:16px 0;background:#111;border-radius:8px;overflow:hidden}
.board-media-prep-frame{position:relative;max-width:100%;max-height:100%;display:grid;place-items:center}
.board-media-prep-frame>img,.board-media-prep-frame>video{display:block;width:100%;height:100%;object-fit:contain}
.board-media-prep-frame>audio{width:min(460px,calc(100vw - 80px))}
.board-media-crop{position:absolute;z-index:2;box-sizing:border-box;border:2px solid #fff;box-shadow:0 0 0 9999px #0008,0 0 0 1px #000;cursor:move;touch-action:none}
.board-media-crop[hidden]{display:none}
.board-media-crop-grip{position:absolute;right:-8px;bottom:-8px;width:18px;height:18px;border:2px solid #111;border-radius:4px;background:#fff;cursor:nwse-resize}
.board-media-prep-crop-row{justify-content:flex-start;flex-wrap:wrap}.board-media-prep-crop-row span{font-size:11px;color:var(--muted)}
.board-media-prep-crop-row button,.board-media-prep-actions button{min-height:36px;padding:7px 12px;border:1px solid var(--line);border-radius:7px;background:var(--raised);font-size:12px}
.board-media-prep-crop-row button[aria-pressed=true]{background:var(--accent);color:var(--bg)}
.board-media-prep-trim{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.board-media-prep-trim strong{font-size:13px}.board-media-prep-trim output{font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}
.board-media-prep-trim label{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:10px;margin-top:10px;font-size:12px}.board-media-prep-trim input{width:100%;accent-color:var(--accent)}
.board-media-prep-actions{justify-content:flex-end;margin-top:20px}.board-media-prep-actions .primary{background:var(--accent);color:var(--bg)}
.board-media-prep-error{color:#e89d8d;font-size:12px}
/* Mood board full screen (recording mode): chrome fades out when idle. */
.board-fullscreen{display:inline-grid;place-items:center;width:34px;padding:0}.board-fullscreen svg{width:16px;height:16px}
.board-surface.is-fullscreen{background:var(--bg);border-radius:0}
.board-surface.is-fullscreen .board-heading{display:none}
.board-surface.is-fullscreen .board-viewport{height:100vh;min-height:0}
.board-surface.is-fullscreen .board-toolbar{top:16px}
.board-surface.is-fullscreen :is(.board-toolbar,.board-side-tools,.board-footer){opacity:0;visibility:hidden;transition:opacity .25s ease,visibility 0s linear .25s}
.board-surface.is-fullscreen.show-chrome:not(.chrome-locked-hidden) :is(.board-toolbar,.board-side-tools,.board-footer){opacity:1;visibility:visible;transition:opacity .25s ease}
.board-surface.is-fullscreen:not(.show-chrome) .board-viewport,.board-surface.is-fullscreen.chrome-locked-hidden .board-viewport{cursor:none}
@media(prefers-reduced-motion:reduce){.board-surface.is-fullscreen :is(.board-toolbar,.board-side-tools,.board-footer){transition:none}}
.router-mode{margin:16px 0 0;padding:14px 0 0;border:0;border-top:1px solid var(--line)}
.router-mode legend{font-weight:600;padding:0}
.router-options{display:flex;gap:16px;margin:8px 0}
.router-options label{display:flex;align-items:center;gap:6px}

/* Toasts sit under the header, clear of the chat box; they ease in from above. */
@keyframes toast-in{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}
@media(prefers-reduced-motion:reduce){.toast{animation:none}}
/* Reference breakdowns on the board: a quiet state badge on media cards and the breakdown panel. */
.board-ref-badge{position:absolute;z-index:2;bottom:8px;left:8px;display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:0 9px;border:1px solid #6d6d6d66;border-radius:999px;background:#171717e6;color:#f0f0ea;font-size:11px;line-height:1;cursor:pointer;backdrop-filter:blur(8px)}
.board-ref-badge:hover,.board-ref-badge:focus-visible{border-color:var(--muted)}
.board-link .board-ref-badge{position:static;margin:8px 0 0 12px}
.board-ref-badge i,.board-ref-state i{width:7px;height:7px;border-radius:50%;background:var(--muted);flex:none}
[data-state=ready] i{background:#9fcf9a}
[data-state=measured] i,[data-state=partial] i{background:#e3c77c}
[data-state=stale] i{background:transparent;box-shadow:inset 0 0 0 1.5px #e3c77c}
[data-state=failed] i{background:var(--danger)}
[data-state=unavailable] i,[data-state=link] i{background:transparent;box-shadow:inset 0 0 0 1.5px var(--muted)}
[data-state=queued] i,[data-state=analyzing] i{background:var(--accent);animation:board-ref-pulse 1.2s ease-in-out infinite}
@keyframes board-ref-pulse{50%{opacity:.25}}
@media(prefers-reduced-motion:reduce){[data-state=queued] i,[data-state=analyzing] i{animation:none}}
.board-ref-dialog{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 48px)}
.board-ref-dialog .board-dialog-body{max-height:calc(100dvh - 160px);overflow:auto}
.board-ref-dialog label{display:block;margin:10px 0}
:is(#brandSurface,body) .board-ref-dialog textarea{width:100%;min-height:0;height:64px;resize:vertical}
.board-ref-roles{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 4px;padding:0;border:0}
.board-ref-roles legend{margin-bottom:8px;font-size:13px}.board-ref-roles legend small{color:var(--muted)}
.board-ref-dialog .board-ref-roles label{margin:0}
.board-ref-roles input{position:absolute;opacity:0;pointer-events:none}
.board-ref-roles span{display:inline-block;padding:6px 11px;border:1px solid var(--line);border-radius:999px;font-size:12px;color:var(--muted);cursor:pointer}
.board-ref-roles input:checked+span{border-color:var(--accent);color:var(--text);background:var(--raised)}
.board-ref-roles input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.board-ref-analysis{margin-top:18px;padding-top:14px;border-top:1px solid var(--line);font-size:13px;line-height:1.5}
.board-ref-analysis h3{margin:0 0 8px;font:20px Georgia,serif}
.board-ref-analysis h4{margin:16px 0 6px;font-size:13px;font-weight:600}
.board-ref-state{display:flex;align-items:center;gap:8px;margin:0}.board-ref-state span{color:var(--muted)}
.board-ref-reasons,.board-ref-events,.board-ref-coverage ul{margin:6px 0;padding-left:18px;color:var(--muted)}
.board-ref-events{padding-left:0;list-style:none;color:var(--text)}.board-ref-events li{margin:4px 0}
.board-ref-actions,.board-ref-confirm>div{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.board-ref-confirm{margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-control,10px);background:var(--raised)}
.board-ref-confirm p{margin:0 0 6px}.board-ref-confirm>div{justify-content:flex-end;margin-bottom:0}
.board-ref-dialog .board-ref-check{display:flex;gap:8px;align-items:flex-start;margin:6px 0;color:var(--muted)}
.board-ref-summary{margin:14px 0 4px;font:16px/1.5 Georgia,serif}
.board-ref-topic{margin:0;color:var(--muted)}.board-ref-topic span{color:var(--text)}
.board-ref-dims{display:grid;grid-template-columns:minmax(110px,auto) 1fr;gap:10px 16px;margin:16px 0 0}
.board-ref-dims dt{color:var(--muted)}.board-ref-dims dd{margin:0}.board-ref-dims p{margin:0}
.board-ref-dims small,.board-ref-meta{color:var(--muted);font-size:11px}
.board-ref-unknown,.board-ref-hint{color:var(--muted)}
.board-ref-measured{color:var(--muted);font-size:12px}
.board-ref-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.board-ref-time,.board-ref-region{display:inline-block;padding:2px 7px;border:1px solid var(--line);border-radius:6px;font:11px/1.5 var(--font-data,ui-monospace,monospace);color:var(--text);background:transparent}
.board-ref-time{cursor:pointer}.board-ref-time:hover,.board-ref-time:focus-visible{border-color:var(--accent)}
.board-ref-region{color:var(--muted);font-family:inherit}
.board-ref-swatches{display:flex;gap:4px;margin-top:5px}.board-ref-swatches span{width:22px;height:22px;border-radius:5px;border:1px solid var(--line)}
.board-ref-coverage{margin-top:14px}.board-ref-coverage summary{cursor:pointer}
.board-ref-coverage blockquote{margin:6px 0;padding-left:10px;border-left:2px solid var(--line);color:var(--muted);max-height:9em;overflow:auto}
@media(max-width:520px){.board-ref-dims{grid-template-columns:1fr;gap:2px}.board-ref-dims dd{margin-bottom:8px}}

/* Reference dialog: one button shape, chips with one selected state, the analysis laid out as labelled lines. */
.board-ref-dialog :is(.board-ref-actions,.board-ref-confirm,.board-dialog-actions) button{width:auto;height:36px;min-height:36px;padding:0 16px;border-radius:999px;font-size:13px;font-weight:500;line-height:1;white-space:nowrap;box-shadow:none}
.board-ref-dialog .board-dialog-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);background:inherit}
.board-ref-roles{gap:6px;margin:14px 0 6px}
.board-ref-roles span{padding:7px 12px;font-size:12.5px;line-height:1;transition:border-color .15s ease,background-color .15s ease}
.board-ref-roles label:hover span{border-color:color-mix(in srgb,var(--text) 45%,var(--line))}
.board-ref-roles input:checked+span{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text);background:var(--raised);color:var(--text);font-weight:600}
.board-ref-roles input:focus-visible+span{outline:2px solid color-mix(in srgb,var(--text) 55%,transparent);outline-offset:2px}
.board-ref-analysis{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.board-ref-analysis h3{display:inline-block;margin:0 10px 0 0;font:600 15px/1.3 inherit;font-family:inherit;vertical-align:middle}
.board-ref-analysis .board-ref-state{display:inline-flex;vertical-align:middle;padding:3px 10px 3px 8px;border:1px solid var(--line);border-radius:999px;font-size:12px}
.board-ref-analysis .board-ref-state strong{font-weight:500}
.board-ref-analysis .board-ref-actions{margin:12px 0 8px}
.board-ref-hint{margin:6px 0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.board-ref-dims{display:grid;grid-template-columns:minmax(96px,132px) minmax(0,1fr);gap:8px 14px;margin:12px 0 6px;align-items:start}
.board-ref-dims dt{font-size:12px;color:var(--muted);padding-top:2px}
.board-ref-dims dd{margin:0;font-size:13px;line-height:1.5}
.board-ref-dims dd p{margin:0 0 4px}
@media (max-width:520px){.board-ref-dims{grid-template-columns:1fr;gap:2px 0}.board-ref-dims dd{margin-bottom:8px}}
@media (prefers-reduced-motion:reduce){.board-ref-roles span{transition:none}}
/* The Select tool: a crosshair over empty canvas, the usual pointer over items. */
.board-viewport.is-selecting{cursor:crosshair}.board-viewport.is-selecting .board-card{cursor:pointer}
.board-ref-dialog :is(.board-ref-actions,.board-ref-confirm>div,.board-dialog-actions){align-items:center}
.board-ref-dialog :is(.board-ref-actions,.board-ref-confirm,.board-dialog-actions) button{margin:0}

/* Analyze several references at once: the count and cost, then progress. */
.board-bulk{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 20px 12px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--raised);font-size:13px}
.board-bulk span{flex:1;min-width:180px}
.board-bulk button{height:32px;min-height:32px;padding:0 14px;border-radius:999px;font-size:12.5px;margin:0}


/* Board style: a panel over the canvas, opened from the Style button. Nothing sits in the page flow above the canvas. */
.board-style-panel{position:absolute;z-index:6;top:64px;right:16px;bottom:64px;width:min(360px,calc(100% - 32px));overflow:auto;display:grid;align-content:start;gap:12px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:0 12px 36px color-mix(in srgb,#000 22%,transparent);font-size:13px;line-height:1.5}
.board-style-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.board-style-panel h3{margin:0;font:600 15px/1.3 inherit;font-family:inherit}.board-style-head small{color:var(--muted);font-size:12px}
.board-style-head button{width:30px;height:30px;min-height:30px;padding:0;border-radius:50%;font-size:18px;line-height:1;margin:0}
.board-style-panel h4{margin:0 0 2px;font:500 12px/1.4 inherit;font-family:inherit;color:var(--muted)}
.board-style-panel section p{margin:0 0 6px}
.board-style-swatches{display:flex;flex-wrap:wrap;gap:6px}.board-style-swatches i{width:24px;height:24px;border-radius:7px;border:1px solid var(--line)}
.board-style-ground,.board-style-hint{margin:0;color:var(--muted);font-size:12.5px}
.board-style-panel .primary{justify-self:start;height:34px;min-height:34px;padding:0 14px;border-radius:999px;font-size:12.5px}
.board-style-file summary{cursor:pointer;font-size:12.5px;color:var(--muted)}
.board-style-file pre{margin:8px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);font-size:11.5px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto}
[data-action=style]{position:relative}.board-style-dot{position:absolute;top:6px;right:6px;width:7px;height:7px;border-radius:50%;background:var(--text)}
/* The Analyze bar floats under the toolbar, over the canvas. */
.board-bulk{position:absolute;z-index:5;top:64px;left:20px;right:76px;max-width:560px;margin:0;box-shadow:0 8px 24px color-mix(in srgb,#000 18%,transparent)}
/* Items are grabbed anywhere; the old move grip is gone. A title bar stays where a card has a title. */
.board-card{cursor:grab}.board-card:active{cursor:grabbing}.board-card.board-section{cursor:default}
.board-handle>span:first-child{display:none}
.board-media>.board-handle,.board-drawing>.board-handle,.board-note.note-plain>.board-handle{display:none}
.board-video-cue{position:absolute;left:10px;top:10px;width:34px;height:34px;min-height:34px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:color-mix(in srgb,#000 62%,transparent);color:#fff;font-size:13px;line-height:1;cursor:pointer;pointer-events:auto;opacity:1;transform:none}
.board-video-cue:hover{background:color-mix(in srgb,#000 80%,transparent)}
.board-video-cue:focus-visible{outline:2px solid #fff;outline-offset:2px}
.board-video video{cursor:inherit}
.board-video.is-playing .board-video-cue{display:grid;opacity:0;transition:opacity .15s}
.board-card:hover .board-video.is-playing .board-video-cue,.board-video.is-playing .board-video-cue:focus-visible{opacity:1}
@media(prefers-reduced-motion:reduce){.board-video.is-playing .board-video-cue{transition:none}}
/* In the project sheet the canvas fills the sheet, so the hint and zoom bar sit on its bottom edge. */
.board-sheet-body.board-surface{display:flex;flex-direction:column}
.board-sheet-body.board-surface>.board-viewport{flex:1 1 auto;height:auto;min-height:0}
.board-surface:has(>.board-heading) :is(.board-bulk,.board-style-panel){top:122px}
/* A restyle card: which slide, the idea for it, and what is taken from the board. */
.assist-restyle{display:grid;gap:6px;font-size:13px;line-height:1.45}
.assist-restyle p{margin:0}.assist-restyle-slide{font-weight:600}
.assist-restyle-label{color:var(--muted);font-size:12px;margin-top:4px!important}
.assist-restyle ul{margin:0;padding-left:18px;display:grid;gap:2px}
.assist-gen-change .assist-gen-prompt{grid-column:1/-1;flex:1 1 100%;display:grid;gap:4px}
.assist-gen-change .assist-gen-prompt textarea{width:100%;min-height:120px}
.assist-restyle-match{color:var(--muted);font-size:12.5px}
/* Watermark place: a 3×3 picker. */
.tpl-wm-grid{display:grid;grid-template-columns:repeat(3,22px);gap:4px}
.tpl-wm-grid button{width:22px;height:22px;min-height:22px;padding:0;border-radius:5px;border:1px solid var(--line);background:transparent}
.tpl-wm-grid button[aria-checked=true]{background:var(--text);border-color:var(--text)}
.tpl-wm input[type=range]{flex:1;max-width:160px}
.tpl-wm .tpl-img{width:120px;flex:none}.tpl-wm .tpl-img-btn img{object-fit:contain}
/* ---- The compact restyle card in a project's side chat, and its results as tiles in the chat. */
.assist-rs-card{display:grid;gap:10px}
.assist-rs-card h3{margin:0}
.assist-rs-board{display:flex;align-items:center;gap:10px;min-width:0}
.assist-rs-board p{margin:0;flex:1;min-width:0;font-size:12.5px;line-height:1.4;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.assist-rs-board p span{color:var(--text);font-weight:600}
.assist-rs-refs{display:flex;gap:4px;flex:none}.assist-rs-refs img{width:28px;height:35px;object-fit:cover;border-radius:5px;border:1px solid var(--line)}
.assist-rs-slides{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.assist-rs-slides li{border-bottom:1px solid var(--line)}
.assist-rs-slides summary{display:flex;align-items:center;gap:10px;padding:8px 2px;cursor:pointer;list-style:none;font-size:13px;line-height:1.3}
.assist-rs-slides summary::-webkit-details-marker,.assist-rs-settings summary::-webkit-details-marker{display:none}
.assist-rs-slides summary::after{content:'›';margin-left:auto;color:var(--muted);transition:transform .15s}
.assist-rs-slides details[open] summary::after{transform:rotate(90deg)}
.assist-rs-slides summary b{flex:none;width:20px;font-variant-numeric:tabular-nums;color:var(--muted);font-weight:600}
.assist-rs-slides summary span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.assist-rs-slides summary i{flex:none;font-style:normal;font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 7px}
.assist-rs-detail{display:grid;gap:8px;padding:0 2px 10px 32px;font-size:12.5px;line-height:1.45}
.assist-rs-detail p{margin:0;color:var(--muted)}
.assist-rs-detail .assist-gen-prompt{display:grid;gap:4px}.assist-rs-detail textarea{width:100%;min-height:96px;font-size:12px}
.assist-rs-settings summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;font-size:12.5px;color:var(--muted)}
.assist-rs-settings summary span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.assist-rs-settings summary em{font-style:normal;color:var(--text);text-decoration:underline;text-underline-offset:3px}
.assist-rs-settings>div{display:grid;gap:8px;padding-top:8px}
.assist-rs-card .assist-card-actions{flex-wrap:wrap;gap:6px}
.assist-rs-status{margin:0;font-size:12px;color:var(--muted)}
.assist-rs-takes{display:grid;gap:8px;margin:8px 0}
.assist-rs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.assist-rs-grid.is-one{grid-template-columns:minmax(0,220px)}
@container (max-width:240px){.assist-rs-grid{grid-template-columns:1fr}}
.assist-rs-tile{margin:0;display:grid;gap:4px;min-width:0}
.assist-rs-frame{position:relative;display:block;width:100%;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--raised);min-height:0;cursor:default}
button.assist-rs-frame{cursor:pointer}button.assist-rs-frame:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.assist-rs-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.assist-rs-frame b{position:absolute;left:6px;bottom:6px;z-index:2;min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border-radius:6px;background:color-mix(in srgb,#000 62%,transparent);color:#fff;font-size:11px;font-weight:600}
.assist-rs-tile figcaption{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.assist-rs-tile.is-failed .assist-rs-frame{border-style:dashed}.assist-rs-tile.is-failed figcaption{color:var(--text)}
@media(prefers-reduced-motion:reduce){.assist-rs-slides summary::after{transition:none}}
/* A single generation in the side chat: pickers wait behind "Change settings". */
.assist-gen-change.is-compact>div{display:grid;gap:8px}
.assist-gen-change.is-compact .assist-pick-row,.assist-gen-change.is-compact>div>label{grid-column:1/-1}
.assist-rs-card{grid-template-columns:minmax(0,1fr);min-width:0}.assist-rs-card>*{min-width:0}
.assist-rs-slides summary::after{flex:none}.assist-rs-settings summary em{flex:none}
/* Board items: icon controls, resize handles on corners and edges, and snapping guides. */
.board-card-actions button[data-card-action=chat],.board-card-actions button[data-card-action=edit]{display:inline-grid;place-items:center;width:34px;padding:0}
.board-edge{position:absolute;z-index:3;touch-action:none;opacity:0;pointer-events:none}
.board-card:hover .board-edge,.board-card.is-selected .board-edge{pointer-events:auto}
.edge-n,.edge-s{left:14px;right:14px;height:12px;cursor:ns-resize}.edge-n{top:-6px}.edge-s{bottom:-6px}
.edge-e,.edge-w{top:14px;bottom:14px;width:12px;cursor:ew-resize}.edge-e{right:-6px}.edge-w{left:-6px}
.edge-nw,.edge-ne,.edge-sw{width:18px;height:18px}.edge-nw{left:-7px;top:-7px;cursor:nwse-resize}.edge-ne{right:-7px;top:-7px;cursor:nesw-resize}.edge-sw{left:-7px;bottom:-7px;cursor:nesw-resize}
/* Corners show as small squares on a selected item. */
.board-card.is-selected .edge-nw,.board-card.is-selected .edge-ne,.board-card.is-selected .edge-sw{opacity:1}
.edge-nw::after,.edge-ne::after,.edge-sw::after{content:'';position:absolute;inset:5px;border-radius:2px;background:#fff;border:1px solid #1118}
@media(hover:none){.board-edge{pointer-events:auto}}
.board-guides{position:absolute;inset:0;z-index:6;pointer-events:none;overflow:hidden}
.board-guides i{position:absolute;background:var(--text);opacity:.7}
.board-guides i.is-v{top:0;bottom:0;width:1px}.board-guides i.is-h{left:0;right:0;height:1px}
.board-guides span{position:absolute;transform:translate(-50%,-130%);padding:2px 7px;border-radius:999px;background:var(--text);color:var(--bg);font:600 11px/1.4 inherit;font-family:inherit;white-space:nowrap}
/* Handles sit partly outside the item, where hover on the item doesn't reach: they take the pointer on their own. */
.board-edge{pointer-events:auto}
/* ---- Areas: an area's pages as tabs over the main column, the Marketing overview, and a planned area's page. */
.area-tabs{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;margin:4px 0 18px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.area-tabs h1{margin:0;font-size:20px;line-height:1.2;font-weight:600}
.area-tabs [role=tablist]{display:flex;gap:2px;flex-wrap:wrap}
.area-tabs button{height:32px;min-height:32px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:13.5px;margin:0}
.area-tabs button:hover{color:var(--text);background:var(--raised)}
.area-tabs button[aria-selected=true]{color:var(--text);background:var(--raised);font-weight:500}
.area-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;align-items:start}
.area-card{border:1px solid var(--line);border-radius:16px;padding:16px 18px;background:var(--panel)}
.area-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
.area-card-head h2{margin:0;font-size:15px;font-weight:600}
.area-list{list-style:none;margin:0;padding:0}
.area-list li+li{border-top:1px solid var(--line)}
.area-list button{display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%;min-height:40px;padding:8px 0;border:0;border-radius:0;background:transparent;text-align:left;font-size:14px;margin:0}
.area-list button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.area-list button small{flex:none;color:var(--muted);font-size:12.5px}
.area-list button:hover span{text-decoration:underline;text-underline-offset:3px}
.area-empty{padding:10px 0;color:var(--muted);font-size:13.5px}
.area-planned{max-width:560px;padding:24px 0;display:grid;gap:12px}
.area-planned-tag{margin:0;justify-self:start;font-size:11.5px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:2px 9px}
.area-planned h1{margin:0;font-size:28px;line-height:1.15;font-weight:600}
.area-planned-about{margin:0;font-size:16px;line-height:1.5;color:var(--muted)}
.area-planned ul{margin:4px 0 8px;padding-left:20px;display:grid;gap:6px;font-size:14.5px;line-height:1.5}
.area-planned-ask{display:grid;gap:8px;padding-top:16px;border-top:1px solid var(--line)}
.area-planned-ask label{font-size:14px;font-weight:600}
.area-planned-ask textarea{width:100%;min-height:84px}
.area-planned-ask div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.area-planned-ask small{color:var(--muted);font-size:12.5px}
.ws-set-area{margin:16px 0 6px;font-size:12.5px;font-weight:600;color:var(--muted)}
.ws-set-modules{list-style:none;margin:0;padding:0}.ws-set-modules li+li{border-top:1px solid var(--line)}
.ws-set-module{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;cursor:pointer}
.ws-set-module span{display:grid;gap:2px}.ws-set-module small{color:var(--muted);font-size:12.5px}
.ws-set-module em{font-style:normal;font-size:12px;color:var(--muted)}
.ws-set-modules.is-planned .ws-set-module{cursor:default}
.ws-set-module input{width:18px;height:18px;flex:none}
/* Home asks a workspace once what kind of business it is. */
.ws-type{border:1px solid var(--line);border-radius:16px;padding:18px 20px;background:var(--panel)}
.ws-type h3{margin:0 0 4px;font-size:16px;font-weight:600}.ws-type p{margin:0 0 12px;color:var(--muted);font-size:13.5px}
.ws-type-picks{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.ws-type-picks button{display:grid;gap:2px;text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:transparent;margin:0;min-height:0}
.ws-type-picks button:hover{background:var(--raised)}
.ws-type-picks strong{font-size:14px;font-weight:600}.ws-type-picks small{font-size:12.5px;color:var(--muted)}
.ws-type{margin-bottom:18px}.ws-type-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.ws-type-head h3{margin:0 0 4px}
.ws-type{max-width:820px;margin-inline:auto}
/* Settings → Kind of business: one card per kind, the chosen one marked. */
.ws-kind-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;margin-top:16px}
.ws-kind-card{position:relative;display:grid;gap:3px;align-content:start;padding:12px 34px 12px 14px;border:1px solid var(--line);border-radius:12px;cursor:pointer;min-width:0}
.ws-kind-card:hover{background:var(--raised)}
.ws-kind-card strong{font-size:14.5px;font-weight:600;line-height:1.3}
.ws-kind-card span{font-size:13px;line-height:1.4;color:var(--muted)}
.ws-kind-card small{font-size:12px;color:var(--muted);margin-top:4px}
.ws-kind-card i{position:absolute;top:10px;right:10px;width:18px;height:18px;border-radius:50%;display:none;place-items:center;background:var(--text);color:var(--bg);font-style:normal;font-size:11px;font-weight:700}
.ws-kind-card:has(input:checked){border-color:var(--text);background:var(--raised)}
.ws-kind-card:has(input:checked) i{display:grid}
.ws-kind-card:has(input:focus-visible){outline:2px solid var(--text);outline-offset:2px}
/* drag-sort.js: the lifted item, the gap it will land in, and no text selection while dragging. */
.is-lifted{box-shadow:0 14px 36px color-mix(in srgb,#000 28%,transparent);opacity:.96;cursor:grabbing}
.drag-gap{border:1px dashed var(--muted);border-radius:16px;background:color-mix(in srgb,var(--raised) 60%,transparent);list-style:none;min-height:24px}
.is-drag-sorting{user-select:none;-webkit-user-select:none;cursor:grabbing}
.is-drag-sorting *{cursor:grabbing!important}
/* The Edit button at the right of an area's tab row (dashboards only). */
.area-edit{margin-left:auto;height:30px;min-height:30px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--muted);font-size:13px}
.area-edit:hover{color:var(--text);background:var(--raised)}.area-edit[aria-pressed=true]{background:var(--text);color:var(--bg);border-color:var(--text)}
.area-tabs .area-edit{margin-left:auto}
