:root{--bg:#ECE7D8;--paper:#fff;--ink:#23281e;--muted:#697061;--line:#dfe3d7;--lime:#9BDB1F;--green:#46651f;--dark:#070A08;--red:#a33535;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,a,input,select,textarea{outline-offset:4px}a{color:var(--green)}button{border:1px solid var(--line);background:white;color:var(--ink);border-radius:8px;padding:9px 14px;font-weight:600;transition:background .15s}button:hover{background:#f0f3e9}button.primary{background:var(--lime);border-color:var(--lime);color:#1e2b0e}button.primary:hover{background:#a6dd42}button.dark{background:var(--dark);color:white;border-color:var(--dark)}button.ghost{background:transparent;border-color:transparent}button.small{font-size:12px;padding:6px 10px}button.danger{color:var(--red)}input,select,textarea{width:100%;background:white;border:1px solid #cfd5c7;border-radius:8px;padding:11px 12px;color:var(--ink)}textarea{resize:vertical;min-height:94px;line-height:1.6}input[type=checkbox]{width:auto;accent-color:var(--green)}label{display:block;font-size:12px;font-weight:600;margin-bottom:16px}label>input,label>select,label>textarea{display:block;margin-top:6px}h1,h2,h3,p{margin:0}h1{font-size:36px;line-height:1.14;letter-spacing:-1.5px;font-weight:650}h2{font-size:20px;letter-spacing:-.5px}h3{font-size:15px}p{line-height:1.6}.muted{color:var(--muted)}.tiny{font-size:11px}.mono,.eyebrow{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.eyebrow{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:var(--muted);font-weight:500;margin-bottom:12px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.stack{display:grid;gap:16px}.grow{flex:1;min-width:0}.divider{border:0;border-top:1px solid var(--line);margin:24px 0}.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--dark);color:#dbe2d2;padding:30px 20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.wordmark{font-size:25px;letter-spacing:-1.5px;font-weight:850;color:var(--lime)}.wordmark span{font-size:18px;letter-spacing:-.4px;font-weight:400;color:inherit;margin-left:8px}.brand-line{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:#94a08a;margin-top:7px}.nav-label{font-size:9px;letter-spacing:1.8px;color:#939e8b;margin:40px 12px 12px}.nav{display:grid;gap:6px}.nav button{background:none;border:0;text-align:left;color:#aebaa5;padding:12px 14px;font-weight:500;display:flex;gap:12px;align-items:center}.nav button:hover{background:#293322;color:white}.nav button.active{background:#303d25;color:var(--lime)}.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.sidebar-foot{margin-top:auto;border-top:1px solid #35412e;padding:18px 8px 0;font-size:12px;color:#a8b09e}.sidebar-foot strong{display:block;color:#e3e8dd;font-size:12px;margin-bottom:4px}.sidebar-foot button{color:#b7c2ad;padding:8px 0;font-size:11px}.main{padding:0 42px 48px;min-width:0}.topbar{height:80px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);gap:16px}.topbar strong{color:var(--ink);font-weight:600}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#679a39;margin-right:7px}.pagehead{margin:38px 0 26px;display:flex;justify-content:space-between;gap:18px;align-items:center}.pagehead p{color:var(--muted);margin-top:10px;max-width:640px}.hero{border:1px solid var(--line);border-radius:14px;background:#e9eddf;padding:28px 30px;display:flex;gap:22px;align-items:center;justify-content:space-between;position:relative;overflow:hidden}.hero .eyebrow{color:var(--green);margin-bottom:8px}.hero h2{font-size:25px;letter-spacing:-1px;max-width:490px}.hero p{max-width:500px;color:#626b57;margin:10px 0 20px}.hero-art{width:170px;height:140px;display:grid;place-items:center;flex:none}.hero-art span{width:118px;height:138px;background:var(--dark);color:var(--lime);display:flex;align-items:flex-end;padding:18px;border-radius:9px;font-size:26px;font-weight:750;line-height:1;transform:rotate(8deg);box-shadow:-16px 10px 0 #b8ce92}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0 30px}.stat{border:1px solid var(--line);border-radius:10px;padding:17px 19px;background:white}.stat strong{font-size:25px;font-weight:600;display:block;letter-spacing:-.8px;margin-top:5px}.stat span{font-size:11px;color:var(--muted)}.toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:20px 0}.filters{display:flex;gap:4px;flex-wrap:wrap}.filters button{border-color:transparent;background:none;font-size:12px;padding:7px 10px}.filters button.active{background:#e4eacd;color:#30461b}.search{max-width:240px;font-size:12px;padding:8px 12px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.content-card{border:1px solid var(--line);background:white;border-radius:12px;overflow:hidden;text-align:left;display:flex;flex-direction:column;padding:0;font-weight:400}.content-card:hover{background:white;border-color:#a6b293;box-shadow:0 4px 18px #27320c0c}.card-art{width:100%;height:126px;background:#e9eeda;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:22px;color:#41562b;font-size:24px;font-weight:650;letter-spacing:-1px;line-height:1.05}.card-art.reel{background:#ebe6f0;color:#655371}.card-art.artigo{background:#ebe7dc;color:#6f6241}.card-art.post{background:#e2e9ec;color:#475d67}.card-art .icon{width:28px;height:28px}.card-body{padding:18px;display:grid;gap:12px;flex:1}.card-body h3{font-size:15px;font-weight:650;line-height:1.45;overflow-wrap:anywhere}.card-body p{font-size:12px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);margin-top:auto}.badge{display:inline-block;padding:3px 8px;border-radius:20px;background:#eff1e9;color:#657056;font-size:10px;font-weight:600;white-space:nowrap}.badge.aprovado,.badge.success{background:#e3f0d2;color:#416028}.badge.revisao,.badge.running{background:#fff0d5;color:#805c14}.badge.planejado{background:#e9e3f8;color:#6b518f}.badge.error{background:#f9e5e2;color:#a33535}.empty{border:1px dashed #cbd2c1;border-radius:12px;padding:38px 24px;text-align:center;color:var(--muted)}.empty .icon{width:30px;height:30px;margin-bottom:12px}.empty h3{color:var(--ink);margin-bottom:8px}.empty p{max-width:470px;margin:0 auto 18px;font-size:13px}.panel{border:1px solid var(--line);background:white;border-radius:12px;padding:24px;min-width:0}.panel h2{margin-bottom:8px}.panel p.lead{font-size:12px;color:var(--muted);margin-bottom:22px}.columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.notice{background:#eef1e6;border:1px solid #dce3ce;border-radius:9px;padding:13px 16px;font-size:12px;color:#566448;margin-bottom:20px}.notice.warn{background:#fff4df;border-color:#e9dfc4;color:#786035}.inline-error,.form-error{color:var(--red);font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.form-error{margin:8px 0}.reference,.automation,.source,.run,.calendar-item{padding:18px 0;border-bottom:1px solid var(--line)}.reference:last-child,.automation:last-child,.source:last-child,.run:last-child,.calendar-item:last-child{border-bottom:0}.reference h3,.source h3,.automation h3{margin-bottom:7px}.reference p{font-size:12px;color:var(--muted);white-space:pre-wrap;max-height:140px;overflow:auto;margin:10px 0}.reference a{font-size:11px;overflow-wrap:anywhere}.run{font-size:12px}.calendar-date{width:56px;flex:none;background:#edf0e4;text-align:center;border-radius:8px;padding:8px;font-family:ui-monospace,monospace;font-size:11px}.calendar-date strong{font-size:24px;display:block;line-height:1.2}.calendar-item button{text-align:left}.boot{padding:12vh 8vw;font-size:40px;font-weight:800;letter-spacing:-2px}.boot span{font-weight:400}.boot p{font-size:14px;letter-spacing:0;font-weight:400;margin-top:24px}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-story{background:var(--dark);color:white;padding:50px 10%;display:flex;flex-direction:column;justify-content:space-between;min-height:620px}.login-story h1{font-size:clamp(38px,4.7vw,70px);letter-spacing:-2.7px;font-weight:550;max-width:570px}.login-story h1 em{color:var(--lime);font-style:normal}.login-story p{color:#a7b19d;max-width:410px;margin-top:24px}.login-story footer{font-size:10px;color:#a7b19d;text-transform:uppercase;letter-spacing:1.7px}.login-form{display:flex;align-items:center;justify-content:center;padding:40px}.login-form form{width:100%;max-width:360px}.login-form h2{font-size:29px}.login-form p{color:var(--muted);margin:10px 0 28px}.login-form button{width:100%;margin-top:8px}.login-form small{color:var(--muted);display:block;margin-top:25px;font-size:11px}dialog{border:1px solid var(--line);border-radius:16px;padding:0;width:min(670px,calc(100% - 28px));max-height:92vh;background:var(--bg);color:var(--ink);box-shadow:0 20px 100px #0003}dialog::backdrop{background:#16200f80;backdrop-filter:blur(3px)}dialog.editor{width:min(1270px,calc(100% - 28px))}.dialog-head{padding:22px 26px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;align-items:center;position:sticky;top:0;background:var(--bg);z-index:2}.dialog-head h2{max-width:750px;overflow-wrap:anywhere}.dialog-body{padding:26px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.editor-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(270px,.9fr);gap:28px}.editor-form{min-width:0}.preview-panel{background:#e6e9df;padding:22px;border-radius:12px;align-self:start;position:sticky;top:110px}.preview-top{margin-bottom:16px}.slide-preview{aspect-ratio:4/5;background:var(--dark);color:white;position:relative;overflow:hidden;display:flex;flex-direction:column;padding:32px;container-type:inline-size;border-radius:3px;box-shadow:0 8px 25px #1b270b20}.slide-preview .slide-brand{font-size:11px;color:var(--lime);letter-spacing:1.5px;text-transform:uppercase}.slide-preview h3{font-size:clamp(20px,6cqw,34px);line-height:1.14;letter-spacing:-1px;margin:auto 0 20px;overflow-wrap:anywhere;white-space:pre-wrap;color:var(--lime)}.slide-preview p{font-size:clamp(11px,3cqw,18px);line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;max-height:58%}.slide-preview footer{display:flex;justify-content:space-between;gap:12px;margin-top:24px;font-size:10px;color:#acb5a5}.preview-nav{display:flex;justify-content:center;gap:8px;margin:14px 0}.preview-note{font-size:11px;color:var(--muted);margin-top:15px}.slides-editor{display:grid;gap:12px;margin:14px 0}.slide-fields{background:white;border:1px solid var(--line);border-radius:9px;padding:14px}.slide-fields label:last-child{margin-bottom:0}.slide-fields .row{margin-bottom:10px}.check-list{max-height:160px;overflow:auto;background:white;border:1px solid var(--line);border-radius:8px;padding:12px}.check-list label{display:flex;gap:8px;align-items:center;margin:0 0 9px;font-weight:400}.check-list label:last-child{margin:0}.check-list input{margin:0}.version{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.version pre{white-space:pre-wrap;font:inherit;color:var(--muted)}details summary{cursor:pointer;font-weight:600;font-size:13px;padding:10px 0}.editor-footer{position:sticky;bottom:0;border-top:1px solid var(--line);background:var(--bg);padding:14px 26px;z-index:2}.editor-footer small{font-size:11px;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--dark);color:white;padding:14px 20px;border-radius:10px;box-shadow:0 8px 30px #0002;max-width:calc(100% - 30px);font-size:13px;z-index:20;display:none}#toast.show{display:block}.wide{width:100%}.mt{margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.file-list{display:grid;gap:8px;margin-top:12px}.file-list a{font-size:12px;overflow-wrap:anywhere}@media(min-width:1500px){.main{max-width:1560px;padding-left:60px;padding-right:60px}.cards{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1120px){.shell{grid-template-columns:190px minmax(0,1fr)}.main{padding-left:24px;padding-right:24px}.sidebar{padding-left:12px;padding-right:12px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-grid{gap:18px}}@media(max-width:760px){.shell{display:block}.sidebar{height:auto;position:relative;padding:18px 18px 12px;gap:10px}.brand-line,.nav-label,.sidebar-foot{display:none}.nav{display:flex;overflow:auto;gap:5px;margin-top:7px}.nav button{white-space:nowrap;font-size:11px;padding:9px}.nav .icon{width:15px;height:15px}.wordmark{font-size:22px}.main{padding:0 18px 30px}.topbar{height:56px;font-size:10px}.pagehead{margin:25px 0 20px;align-items:flex-start}h1{font-size:29px}.pagehead p{font-size:12px}.pagehead button{font-size:11px;padding:9px 11px;flex:none}.hero{padding:22px}.hero-art{display:none}.hero h2{font-size:23px}.stats{gap:8px;grid-template-columns:repeat(2,1fr)}.stat{padding:12px 14px}.columns,.editor-grid{grid-template-columns:1fr}.cards{gap:12px}.card-art{height:108px;padding:16px;font-size:20px}.card-body{padding:14px}.toolbar{align-items:flex-start;flex-direction:column}.search{max-width:none}.panel{padding:18px}.login{grid-template-columns:1fr}.login-story{min-height:260px;padding:30px}.login-story h1{font-size:36px;letter-spacing:-1.5px;margin-top:25px}.login-story p,.login-story footer{display:none}.login-form{padding:35px 24px}.preview-panel{position:static;max-width:430px;width:100%;margin:auto}.dialog-head,.dialog-body{padding:18px}.editor-footer{padding:14px 18px}.editor-footer .row{gap:8px}.editor-footer button{font-size:11px;padding:8px 10px}.editor-footer small{width:100%}.dialog-head h2{font-size:17px}dialog.editor{width:calc(100% - 14px)}}@media(max-width:440px){.cards{grid-template-columns:1fr}.card-art{height:115px}.topbar .top-date{display:none}}

.asset-item{border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:12px;display:grid;gap:8px}.asset-item a{font-size:12px;overflow-wrap:anywhere}.asset-preview{max-width:100%;max-height:260px;object-fit:contain;border-radius:5px;background:#e3e5dc}

.slide-art-preview{display:block;width:100%;max-width:288px;max-height:360px;aspect-ratio:4/5;object-fit:contain;margin:0 auto;border-radius:3px;box-shadow:0 8px 25px #1b270b20}.preview-overflow{padding:18px;background:#fff;border:1px solid var(--line);border-radius:8px;max-height:360px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.preview-overflow h3{margin:16px 0 10px}.preview-overflow p{font-size:12px}

@media(min-width:761px){.preview-panel{max-height:calc(100dvh - 235px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}}

.carousel-live-region{width:288px;height:360px;max-width:100%;margin:0 auto;position:relative}.carousel-frame{width:288px;height:360px;overflow:hidden;border-radius:5px;box-shadow:0 8px 25px #1b270b20}.carousel-scale{transform:scale(.2666666667);transform-origin:top left;width:1080px;height:1350px}.carousel-offscreen{position:fixed;left:-18000px;top:0;pointer-events:none}.real-carousel .preview-nav{align-items:center}.real-carousel .inline-error{font-size:12px}.token-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.token-grid input{height:42px;padding:4px}.video-link{font-size:13px;font-weight:650}

.editor-steps{position:sticky;top:80px;z-index:3;display:flex;gap:6px;overflow:auto;padding:10px 0 14px;background:var(--bg);border-bottom:1px solid var(--line);margin:-12px 0 22px}.editor-steps button{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px;padding:7px 10px;background:var(--paper);font-weight:600}.editor-steps button span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#e4e9d9;color:var(--green);font:10px ui-monospace,monospace}.editor-steps button.active{background:#e1edcc;border-color:#a8bf84}.editor-section{scroll-margin-top:164px}.section-intro{margin:8px 0 20px}.hero-video-link{display:inline-flex;margin-left:16px;font-size:12px;font-weight:600;text-decoration:none}.hero-video-link:hover{text-decoration:underline}#video-panel,#distribution-panel{padding-top:8px}#video-panel .notice{margin-bottom:0}#tools-panel h2,#video-panel h2,#distribution-panel h2{font-size:20px}@media(max-width:760px){.editor-steps{top:69px;gap:5px;padding:9px 0;margin-top:-6px}.editor-steps button{font-size:10px;padding:7px}.editor-section{scroll-margin-top:145px}.hero-video-link{display:block;margin:15px 0 0}.editor-steps button span{width:16px;height:16px}}
/* Controles das integrações no fluxo de produção. */
#media-generations-panel{margin-bottom:24px;padding:18px;background:#f8faf4}
#media-generations-panel .grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#reference-collection-panel{margin-bottom:24px}
#instagram-content-panel{margin:24px 0}
#media-generations-panel .asset-preview{width:100%;max-height:360px}
#instagram-settings-panel p,#instagram-content-panel p{overflow-wrap:anywhere}
@media(max-width:600px){#media-generations-panel .grid2{grid-template-columns:1fr}}
@media(max-width:980px){.editor-grid{grid-template-columns:1fr}.preview-panel{position:static;max-width:430px;width:100%;margin:auto;max-height:none;overflow:visible}.editor-form{min-width:0}}
/* Percurso interno ROOT: uma etapa por vez, sobre a ficha existente. */
[hidden]{display:none!important}
.settings-nav{margin-top:24px;color:#b7c2ad;border-top:1px solid #35412e;padding-top:12px}
.settings-nav summary{font-size:12px}
.settings-nav button{display:block;width:100%;text-align:left;color:#c8d4bd;font-size:11px}
.creation-options{display:flex;flex-wrap:wrap;gap:12px}
.idea-card{padding:22px 0;border-bottom:1px solid var(--line)}
.idea-card:last-child{border-bottom:0;padding-bottom:0}
.idea-card p{font-size:13px;margin-top:12px;max-width:850px}
.idea-card a{display:inline-block;margin:12px 0 0;font-size:12px}
.editor-grid.single-column{grid-template-columns:minmax(0,1fr)}
.editor-grid.single-column .editor-form{max-width:850px;width:100%}
.editor-steps{top:72px;justify-content:space-between}
.editor-steps button{flex:1;justify-content:center}
.editor-steps button.active span{background:var(--green);color:white}
#flow-step-label{font-size:12px}
.final-copy{white-space:pre-wrap;margin-top:12px;padding:18px;background:white;border:1px solid var(--line);border-radius:8px}
.advanced-tools{padding:10px 16px;border:1px solid var(--line);border-radius:8px;background:#f8faf4}
.advanced-tools #tools-panel{padding:14px 0}
#format-panel,#brief-panel{padding-bottom:20px}
#flow-next{min-width:170px}
@media(max-width:760px){.settings-nav{margin:0;padding:0;border:0}.settings-nav summary{font-size:11px}.settings-nav button{display:inline-block;width:auto}.editor-steps{top:64px;justify-content:flex-start}.editor-steps button{flex:none}.creation-options button{flex:1;min-width:150px}.editor-footer #flow-next{flex:1;min-width:150px}.editor-grid.single-column .editor-form{max-width:none}}
/* Real production views: the same API records, without status mutations. */
.production-viewbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}.view-toggle,.context-tabs{display:flex;gap:5px}.view-toggle{padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}.view-toggle button{border:0;background:transparent;min-height:36px}.view-toggle button.active,.context-tabs button.active{background:#e3edcf;color:#315017}.production-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(235px,1fr);gap:15px;overflow-x:auto;align-items:start;padding-bottom:20px;scroll-snap-type:x proximity}.production-column{border:1px solid #d7ddcb;background:#e5e9dc;border-radius:12px;padding:13px;min-height:240px;scroll-snap-align:start}.production-column>header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.production-column>header h2{font-size:13px;letter-spacing:0}.production-column>header span{font-size:11px;background:white;border-radius:5px;padding:2px 7px}.production-column>.tiny{margin:-5px 0 12px}.content-card.board-card{display:block;width:100%;min-width:0;margin-bottom:13px;text-align:left}.board-card .card-art{height:64px;padding:14px}.board-card .card-art .icon{width:24px;height:24px}.board-card .card-body{padding:15px}.board-card h3{font-size:14px;line-height:1.45;overflow-wrap:anywhere}.board-card .card-body>p{font-size:12px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.board-open{display:block;margin-top:12px;color:var(--green);font-size:11px;font-weight:600}.production-run{border-top:1px solid var(--line);padding-top:10px;margin-top:10px;overflow-wrap:anywhere}.production-run span{font-weight:600}.board-empty{font-size:12px;color:var(--muted);padding:20px 4px}.context-tabs{border-bottom:1px solid var(--line);margin:0 0 22px;overflow-x:auto;padding-bottom:5px}.context-tabs button{white-space:nowrap;border-color:transparent;min-height:42px}.context-form{max-width:850px}.context-save{margin-top:22px;border-top:1px solid var(--line);padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:18px}.context-save p{max-width:450px}[data-context-section][hidden],#brand-form[hidden]{display:none!important}.tool-preview{border:1px solid #c9d7b5;background:#f5f8ed;border-radius:10px;padding:16px;margin-top:14px}.tool-change{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.tool-diff{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tool-diff pre,.tool-result-text{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.65 ui-monospace,monospace;max-height:260px;overflow:auto;background:white;border:1px solid var(--line);border-radius:7px;padding:12px}.tool-diff h4{margin:8px 0 0;font-size:11px;color:var(--muted)}.tool-apply-confirm{display:flex;align-items:flex-start;gap:8px;margin-top:16px}.tool-apply-confirm input{margin-top:4px}.tool-preview-status{margin-top:10px}@media(max-width:600px){.production-board{grid-auto-columns:minmax(255px,85%)}.context-save{align-items:flex-start;flex-direction:column}.tool-diff{grid-template-columns:1fr}.context-tabs{gap:2px}.context-tabs button{padding:10px}}
/* Routine execution uses persisted stages and receipts. */
.routine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.routine-card h2{font-size:19px}.routine-facts{display:grid;gap:10px}.routine-facts p{display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px;font-size:12px}.routine-facts strong{color:var(--muted);font-weight:500}.routine-facts span{overflow-wrap:anywhere}.routine-last{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0}.routine-last p{margin-top:6px}.executor-list{list-style:none;padding:0;margin:20px 0}.executor-list li{padding:12px 0;border-bottom:1px solid var(--line);display:grid;gap:5px;font-size:12px}.executor-list span{color:var(--muted)}.run-detail{padding:24px 0}.run-detail+.run-detail{border-top:2px solid var(--line)}.pipeline-stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;list-style:none;padding:0;margin:20px 0}.pipeline-stage{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:14px;border:1px solid var(--line);background:#f7f8f2;border-radius:9px}.pipeline-stage strong{font-size:12px;line-height:1.5}.pipeline-stage small{font-size:10px;color:var(--muted)}.pipeline-stage.done{background:#edf3e1;border-color:#c4d5a5}.pipeline-stage.current{box-shadow:inset 0 0 0 1px #8caa5d;background:#f7f8ed}.pipeline-number{display:grid;place-items:center;width:25px;height:25px;background:white;border:1px solid var(--line);border-radius:50%;font-size:11px;color:var(--green)}.run-sources{margin-top:14px;display:grid;gap:12px}.run-sources>section,.run-reference{border:1px solid var(--line);border-radius:9px;padding:15px;background:#fafbf7}.run-reference{margin-top:12px}.run-reference p{margin-top:6px}.run-reference a{display:inline-block;margin-top:8px}.run-sources strong{font-size:12px}.run-sources p{margin-top:7px}.run-detail .inline-error{overflow-wrap:anywhere}@media(max-width:1000px){.pipeline-stages{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.routine-grid{grid-template-columns:1fr}.pipeline-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.pipeline-stage{padding:12px}.routine-facts p{grid-template-columns:70px minmax(0,1fr)}.run-detail{padding:20px 0}}
.writer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.writer-card{border:1px solid var(--line);border-radius:10px;padding:18px;background:#fafbf6}.writer-instruction{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;font-size:12px;line-height:1.7;margin-top:14px}.writer-card .row>h3{overflow-wrap:anywhere;min-width:0}.writer-card .row>.badge{flex-shrink:0}#writer-profile-note{white-space:pre-wrap;max-height:160px;overflow:auto;margin-bottom:14px}@media(max-width:700px){.writer-grid{grid-template-columns:1fr}}
.derived-children{border-top:2px solid var(--line,#d9ded6);margin-top:1.5rem;padding-top:1.25rem}.derived-choices{display:flex;gap:1rem;flex-wrap:wrap}.derived-choices .check{display:flex;align-items:center;gap:.45rem;margin:0}.derived-choices input{width:auto}.derived-piece{border:1px solid var(--line,#d9ded6);border-radius:10px;padding:1rem;background:var(--paper,#fff)}.derived-piece h4{margin-bottom:.8rem}.derived-piece pre{margin:.35rem 0 1rem}.derived-slides{padding-left:1.4rem}.derived-slides li{margin-bottom:.8rem}.derived-slides p{white-space:pre-wrap}.derived-link{flex-wrap:wrap}.derived-link span{overflow-wrap:anywhere}
.review-event{padding:.9rem 0;border-bottom:1px solid var(--line,#d9ded6)}.review-event:last-child{border-bottom:0}.review-comment{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:.5rem}
/* Integrated studio navigation and real workspace pages. */
.management-label{margin-top:28px}.management-nav{margin-bottom:16px}.studio-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.studio-metric{display:flex;flex-direction:column;align-items:flex-start;gap:16px;min-height:128px;border:1px solid var(--line);background:#f8f8f0;text-align:left;padding:22px;border-radius:12px}.studio-metric span{font-size:12px;color:var(--muted);font-weight:500}.studio-metric strong{font-size:34px;font-weight:500;color:var(--ink)}.studio-dashboard{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:22px}.studio-work-item{display:flex;align-items:center;gap:15px;padding:18px 0;border-bottom:1px solid var(--line)}.studio-work-item:last-child{border-bottom:0}.studio-work-item .grow{min-width:0}.studio-work-item h3{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.studio-work-item p{font-size:11px;line-height:1.6;color:var(--muted);margin-top:5px}.studio-work-item button{flex-shrink:0}.studio-file-mark{width:44px;height:52px;flex-shrink:0;display:grid;place-items:center;background:#e6edd9;color:#48642c;border-radius:8px;font-size:22px}.studio-start-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.studio-start-card{min-height:235px;display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;gap:14px;text-align:left;padding:28px;background:#f7f8f0;border:1px solid var(--line);border-radius:14px;transition:background .15s,border-color .15s}.studio-start-card:hover{background:#edf3e2;border-color:#aabd8e}.studio-start-card h2{font-size:23px;margin:0}.studio-start-card p{max-width:420px;font-size:14px;line-height:1.7;color:var(--muted);font-weight:400}.studio-start-icon{font-size:25px;width:48px;height:48px;display:grid;place-items:center;background:#e3eccf;border-radius:12px;color:#3a5522}.studio-start-link{margin-top:auto;padding-top:8px;font-size:12px;color:var(--green)}.studio-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.studio-library-card{min-width:0;display:flex;flex-direction:column;gap:12px;border:1px solid var(--line);border-radius:12px;padding:18px;background:#fafaf5}.studio-library-card img,.studio-library-card video{width:100%;height:190px;object-fit:contain;border-radius:8px;background:#e8eadd}.studio-library-card h3{font-size:15px;overflow-wrap:anywhere}.studio-library-card p{font-size:12px;color:var(--muted);line-height:1.7}.studio-library-card .row{margin-top:auto;flex-wrap:wrap;align-items:flex-start}.studio-library-card a{font-size:11px}.studio-template-art{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;height:155px;background:#25351f;color:#e5edc5;font-size:46px;border-radius:8px}.studio-template-art span{font-size:10px;letter-spacing:.08em}.editor-steps button{font-size:12px;min-width:110px}.editor-steps{overflow-x:auto}.editor [hidden]{display:none!important}#editor-reservation{margin-top:22px;padding:20px;border:1px solid var(--line);border-radius:10px;background:#fafbf6}#editor-activity>h3{padding-top:10px}.mb{margin-bottom:20px}.studio-metric:focus-visible,.studio-start-card:focus-visible{outline:3px solid #7a963e;outline-offset:3px}
@media(max-width:1050px){.studio-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-metrics{gap:10px}.studio-metric{padding:16px}.studio-dashboard{grid-template-columns:1fr}}
@media(max-width:700px){.management-label{margin-top:8px}.studio-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-start-grid{grid-template-columns:1fr}.studio-start-card{min-height:210px}.studio-library-grid{grid-template-columns:1fr}.studio-work-item{flex-wrap:wrap}.studio-work-item .grow{flex:1;min-width:165px}.studio-work-item>button{margin-left:auto}.studio-metric span{font-size:11px}.studio-metric strong{font-size:28px}.studio-dashboard .panel{padding:20px}.editor-steps button{flex:none;min-width:100px}.management-nav{margin-bottom:0}}

@media(max-width:700px){.pagehead{flex-wrap:wrap;align-items:flex-start}.pagehead>div{min-width:0;max-width:100%}.pagehead>.row{flex-wrap:wrap;max-width:100%}}
