*{box-sizing:border-box} [hidden]{display:none!important} :root{color-scheme:dark;font-family:Inter,system-ui,"Microsoft JhengHei",sans-serif;background:#17171b;color:#e7e7e9} body{margin:0;font-size:15px}button,input,textarea,select{font:inherit}button{cursor:pointer;background:#202025;color:inherit;border:1px solid #37373f;border-radius:9px;padding:9px 13px}button:hover,button:focus-visible{border-color:#91aafa;background:#292a33}button:disabled{opacity:.45;cursor:default}a{color:#aebfff}input,textarea,select{width:100%;background:#141418;color:inherit;border:1px solid #3b3b43;border-radius:8px;padding:12px}textarea{resize:vertical;min-height:150px;line-height:1.7}label{display:block;margin:12px 0;color:#c0c0c8}label input,label select,label textarea{margin-top:7px}h1{font-size:21px;margin:0}h2{font-size:18px;margin:0 0 20px}h3{font-size:15px}p{line-height:1.7}small,.muted{color:#9797a2}#tama-toggle{position:fixed;z-index:30;top:18px;left:18px;background:#101013}#sidebar{position:fixed;inset:0 auto 0 0;width:260px;background:#0e0e11;border-right:1px solid #303038;padding:85px 18px 25px;overflow:auto;z-index:20}.sidebar-label{font-size:10px;letter-spacing:2px;color:#777786;margin-bottom:18px}.agent-card{display:flex;border:1px solid #303039;border-radius:11px;margin-bottom:8px;align-items:center}.agent-card.selected{border-color:#b5b5c2;background:#1c1c22}.agent-card .select-agent{flex:1;text-align:left;background:none;border:0;overflow:hidden;text-overflow:ellipsis}.gear{opacity:0;padding:8px;border:0}.agent-card:hover .gear,.agent-card:focus-within .gear{opacity:1}#add-agent{width:100%;border-style:dashed;margin:12px 0 20px}nav{border-top:1px solid #303038;padding-top:18px;display:grid;gap:6px}nav a{color:#aaaab4;text-decoration:none;padding:10px;border-radius:7px}nav a.active{background:#24242b;color:white}.sidebar-foot{display:block;margin-top:45px;font-size:11px}main{margin-left:260px;padding:26px 35px;max-width:1850px}header{display:flex;align-items:center;gap:14px;min-height:45px}.toolbar{margin-left:auto;display:flex;gap:8px}.notice{color:#bcb49c;font-size:12px;padding:12px 0;border-bottom:1px solid #303038}#feedback{min-height:22px;font-size:13px;color:#a6d7bc}.error{color:#ffa8a8!important}.panel{border:1px solid #33333a;border-radius:12px;background:#101013;padding:24px;margin-bottom:20px}.board-grid{display:grid;grid-template-columns:1fr 1fr;border:1px solid #33333a;border-radius:14px;overflow:hidden;background:#101013}.board-cell{padding:25px;min-height:270px;border-bottom:1px solid #2d2d35}.board-cell:nth-child(odd){border-right:1px solid #2d2d35}.board-cell:nth-last-child(-n+2){border-bottom:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.section-head h2{margin:0}.scope{font-size:11px;color:#8d8d98;font-weight:normal;margin-left:8px}.queue-row{border-top:1px solid #2f2f37;padding:12px 0;display:flex;justify-content:space-between;gap:16px}.queue-row small{display:block}.page-tree{padding-left:23px}.page-tree li{padding:7px 0}.page-title{border:0;background:none;color:#b5c6ff;text-align:left}.page-tree summary{cursor:pointer}.page-meta{font-size:11px;color:#9898a4;margin-left:12px}.inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inline input[type=checkbox]{width:auto}.inline label{margin:4px}.search{max-width:600px;margin-bottom:20px}.tabs{display:flex;gap:8px;margin:15px 0 25px;flex-wrap:wrap}.tabs .active{background:#ededf1;color:#17171b}details.record{padding:17px;border:1px solid #33333c;border-radius:9px;margin-bottom:12px}details.record summary{cursor:pointer}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.6}.empty{padding:40px 10px;color:#92929f}dialog{width:min(800px,94vw);max-height:88vh;overflow:auto;background:#18181e;color:inherit;border:1px solid #444451;border-radius:15px;padding:26px}dialog::backdrop{background:#000a;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head h2{margin:0}#editor textarea{min-height:270px}.danger{color:#ffb0ad}.collapsed main{margin-left:0;padding-left:100px}.collapsed #sidebar{transform:translateX(-100%)}.collapsed.drawer #sidebar{transform:none}.collapsed.drawer #shade{display:block;position:fixed;inset:0;background:#0007;border:0;border-radius:0;z-index:15}.collapsed #agent-picker{display:block}.settings-layout{display:grid;grid-template-columns:220px 1fr;gap:24px}.settings-menu{display:flex;flex-direction:column;gap:8px}.settings-menu button{text-align:left}@media(max-width:800px){main,.collapsed main{margin-left:0;padding:80px 18px 25px}#sidebar{box-shadow:15px 0 50px #0008}.board-grid,.settings-layout{grid-template-columns:1fr}.board-cell:nth-child(odd){border-right:0}.board-cell:nth-last-child(2){border-bottom:1px solid #2d2d35}.gear{opacity:1}header{flex-wrap:wrap}}

/* Dense workspace: sidebar and main own their scroll, not nested cards. */
html,body{height:100%;overflow:hidden}body{font-size:14px}*{scrollbar-width:thin;scrollbar-color:#41414b transparent}*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-thumb{background:#41414b;border-radius:8px}#tama-toggle{top:12px;left:16px;padding:5px 10px}#sidebar{width:240px;padding:64px 14px 12px;overscroll-behavior:contain}main{height:100dvh;overflow:auto;overscroll-behavior:contain;margin-left:240px;padding:8px 14px 14px;max-width:none}header{height:48px;min-height:48px;margin-bottom:8px;gap:8px}header h1{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbar{gap:6px}.toolbar button{padding:5px 9px}#feedback:empty{display:none}#feedback{position:fixed;right:18px;bottom:14px;z-index:40;max-width:min(500px,85vw);margin:0;background:#24242b;border:1px solid #41414b;border-radius:8px;padding:10px 14px}.agent-card{margin-bottom:6px;border-radius:9px;min-height:42px}.agent-card .select-agent{white-space:nowrap;font-size:14px;padding:10px}.agent-card.clone{margin-left:14px}.agent-card .gear{flex-shrink:0}#add-agent{margin:8px 0 14px;padding:8px}nav{padding-top:10px;gap:2px}nav a{padding:8px}.board-grid{min-height:calc(100dvh - 80px);grid-template-rows:minmax(220px,1fr) minmax(220px,1fr)}.board-cell{padding:18px;min-height:220px}.board-cell h2{font-size:16px;display:flex;align-items:center;gap:8px;margin-bottom:16px}.board-cell pre{margin:0}.help-button{width:21px;height:21px;padding:0!important;border-radius:50%;font-size:12px;color:#9999a6;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:transparent}.editable-content{display:block;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;width:100%;background:transparent;border:1px solid transparent;padding:8px 0;line-height:1.65}.editable-content:hover{background:#19191f;border-color:#353540}.section-head{margin-bottom:10px}.section-head select{width:auto;max-width:260px}.panel{padding:18px}.page-tree{margin:0;padding-left:20px}.page-tree li{padding:3px 0}.page-title{padding:5px 4px}.search{padding:9px;margin-bottom:12px}.collapsed main{margin-left:0;padding:8px 14px 14px}.collapsed header{padding-left:100px}.collapsed #sidebar{padding-top:64px}#agent-menu{position:fixed;z-index:60;background:#1b1b21;border:1px solid #41414b;border-radius:10px;padding:6px;min-width:180px;box-shadow:0 14px 40px #0006}#agent-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:11px}#agent-menu button:last-child{color:#ffb18a}#agent-menu button:hover,#agent-menu button:focus{background:#30303a}#help-dialog{max-width:520px}#help-body{margin-bottom:0}#help-dialog .dialog-head h2{font-size:17px}@media(max-width:800px){main,.collapsed main{margin-left:0;padding:8px 10px 14px}header,.collapsed header{height:auto;min-height:48px;padding-left:100px;flex-wrap:wrap}.toolbar{margin-left:auto}.board-grid{grid-template-rows:auto;min-height:calc(100dvh - 80px)}.board-cell{padding:16px;min-height:190px}.board-cell h2{margin-bottom:12px}.gear{opacity:1}}

/* Code occupies the workspace only when requested; each window keeps its own view. */
.code-view main{display:flex;flex-direction:column;overflow:hidden}.code-view header{flex-shrink:0}.code-view #workspace{flex:1;min-height:0}.code-view #content{height:100%}.code-workspace{height:100%;display:flex;flex-direction:column;gap:12px}.code-log{flex:1;min-height:80px;overflow:auto;padding:12px 6px;overscroll-behavior:contain}.code-composer{border:1px solid #37373f;background:#101013;border-radius:12px;padding:10px}.code-composer textarea{border:0;background:transparent;min-height:90px;max-height:30dvh;padding:6px;resize:vertical}.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.composer-actions button{flex-shrink:0}@media(max-width:800px){.code-view header h1{max-width:45vw}.composer-actions{align-items:flex-end}}

.agent-card[draggable=true]{cursor:grab}.agent-card[draggable=true]:active{cursor:grabbing}#workspace.agent-drop-target{position:relative;outline:2px solid #91aafa;outline-offset:-3px;border-radius:14px}#workspace.agent-drop-target::after{content:attr(data-drop-label);position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;background:#17171be6;border-radius:14px;color:#c9d5ff;font-size:18px}
.agent-card .select-agent.system-agent{display:flex;align-items:center;gap:9px;min-width:0;padding-top:6px;padding-bottom:6px}.agent-mascot{flex:none;object-fit:contain;pointer-events:none}.system-agent .agent-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#workspace{min-height:calc(100dvh - 80px)}.code-view #workspace{min-height:0}

.dedicated-code #navigation,.dedicated-code #add-agent,.dedicated-code #back-board,.dedicated-code #header-knock{display:none!important}.dedicated-code .collapsed header{padding-left:140px}

/* Instruction uses one compact toolbar and the full width below it. */
#page-controls:empty{display:none}#page-controls{display:flex;align-items:center;gap:8px;min-width:0}#page-controls select{width:auto;max-width:180px;padding:5px 10px}#page-controls button{white-space:nowrap;padding:5px 10px}.instruction-search{width:clamp(100px,16vw,240px);padding:5px 10px}.instruction-view header{flex-wrap:nowrap;overflow-x:auto;flex-shrink:0}.instruction-view header h1{flex-shrink:0}.instruction-view .toolbar{flex-shrink:0}.instruction-columns>.page-tree{column-count:2;column-gap:48px;column-rule:1px solid #303038;list-style-position:outside}.instruction-columns>.page-tree>li{break-inside:avoid-column}.instruction-columns.one-column>.page-tree{column-count:1}.instruction-columns .page-title{overflow-wrap:anywhere;max-width:100%}.instruction-columns{padding:12px 8px;min-height:120px}.add-instruction{display:block;width:100%;margin:12px 0;border-style:dashed;padding:8px;background:transparent;color:#aaaab4}.instruction-columns .empty{padding:12px 0}.dedicated-code.collapsed header{padding-left:140px}@media(max-width:900px){.instruction-columns>.page-tree{column-count:1}.instruction-search{width:130px}}

.conversation-turn{padding:12px 4px;border-bottom:1px solid var(--border,#303039)}
.conversation-turn pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 14px;font-family:inherit}
.chat-user{padding:8px 12px;background:#202027;border-radius:8px}
.work-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.work-actions button{padding:4px 8px;font-size:12px}
.execution-progress{display:inline-flex;align-items:center;gap:7px;font-variant-numeric:tabular-nums}
.execution-spinner{display:inline-block;width:12px;height:12px;border:2px solid #56636d;border-top-color:#b9e8f1;border-radius:50%;animation:execution-spin .8s linear infinite;flex-shrink:0}
@keyframes execution-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.execution-spinner{animation:none}}

/* Bullet Files: compact tree, timing color follows effective inheritance. */
.bullet-columns{flex:1;min-width:0;padding:8px 0}
.bullet-columns>.bullet-tree{column-count:2;column-gap:32px;column-rule:1px solid var(--border,#303038)}
.bullet-columns.single>.bullet-tree{column-count:1}
.bullet-tree{list-style:none;margin:0;padding:0}
.bullet-tree>li{break-inside:avoid}
.bullet-tree .bullet-tree{margin-left:25px;border-left:1px solid var(--timing);padding-left:8px}
.bullet-tree li[data-timing=every_work]{--timing:#83b3ec}
.bullet-tree li[data-timing=session_start]{--timing:#bba0e9}
.bullet-tree li[data-timing=on_request]{--timing:#d5b479}
.bullet-row{display:flex;align-items:center;gap:5px;min-height:34px;border-radius:5px;padding:2px 3px;position:relative}
.bullet-row:hover,.bullet-row:focus-within,.bullet-row.chosen{background:#24242b}
.bullet-row>input{width:13px;height:13px;flex:none;margin:0;opacity:0}
.bullet-row:hover>input,.bullet-row:focus-within>input,.bullet-row.chosen>input{opacity:1}
.bullet-row button{border:0;background:transparent;padding:3px;min-height:24px}
.bullet-fold{color:var(--timing);width:18px;flex:none}
.bullet-fold:disabled{opacity:1}
.bullet-kind{color:#999;flex:none;font-size:13px}
.bullet-name{text-align:left;white-space:normal;overflow-wrap:anywhere;color:inherit}
.bullet-row small{font-size:11px;line-height:1.3}
.bullet-timing{color:var(--timing);flex:none}
.bullet-recipients{color:#92929b;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bullet-more{margin-left:auto;opacity:0;flex:none}
.bullet-row:hover .bullet-more,.bullet-row:focus-within .bullet-more{opacity:1}
.file-menu{position:fixed;z-index:1000;background:#202027;border:1px solid #484854;border-radius:9px;padding:5px;min-width:180px;max-height:calc(100vh - 16px);overflow:auto;box-shadow:0 8px 25px #0007}
.file-menu[hidden]{display:none}
.file-menu button{display:block;text-align:left;width:100%;border:0;background:none;padding:7px 10px}
.file-menu button:hover,.file-menu button:focus{background:#343441}
@media(max-width:900px){.bullet-columns>.bullet-tree{column-count:1}.bullet-more,.bullet-row>input{opacity:1}}

.version-controls{display:flex;gap:12px;flex-wrap:wrap}.version-controls label{flex:1;min-width:180px}
.version-controls select{width:100%}
.version-diff,.version-preview{font:13px/1.6 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:42vh;overflow:auto;padding:10px;background:#101014;border-radius:6px}
.version-diff .added{background:#143b28;color:#b7e8c6}.version-diff .removed{background:#462025;color:#ffd0d0}
.version-table{width:100%;border-collapse:collapse;font-size:13px}.version-table td,.version-table th{text-align:left;padding:7px;border-bottom:1px solid #34343b;overflow-wrap:anywhere}

.km-source-list{max-height:200px;overflow:auto;border:1px solid #33333d;border-radius:6px;padding:8px}
.km-source-list label{display:flex;flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:8px;margin:3px 0}
.km-source-list input{width:auto}.km-list-row{display:flex;align-items:center;gap:12px;padding:4px 0}.km-list-row small{color:#999}

.pipeline-layout{display:grid;grid-template-columns:minmax(210px,28%) minmax(0,1fr);gap:16px}.pipeline-list{border-right:1px solid #34343d;padding-right:12px}.pipeline-list h2{font-size:12px;color:#a6a6b2;margin:16px 0 8px}.pipeline-job{display:flex;width:100%;justify-content:space-between;gap:8px;text-align:left;margin:4px 0;padding:10px;background:transparent}.pipeline-job span{overflow-wrap:anywhere}.pipeline-job small{white-space:nowrap;color:#a6a6b2}.pipeline-job.active{border-color:#a3b9ff;background:#222737}.pipeline-detail{min-width:0;max-width:1200px}.pipeline-detail h2{font-size:19px;margin:8px 0}.pipeline-detail h3{font-size:14px;margin:0 0 12px}.pipeline-card{padding:14px;border:1px solid #34343d;border-radius:10px;margin:12px 0}.pipeline-card textarea{min-height:65px}.pipeline-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.pipeline-comparison section{min-width:0}.pipeline-comparison pre{margin:0;background:#111115;padding:12px;max-height:440px;overflow:auto}.pipeline-comparison textarea{min-height:240px}.pipeline-detail details{border-top:1px solid #34343d;padding:12px 0}.pipeline-detail summary{cursor:pointer;color:#acbce7}.pipeline-detail .inline{margin:12px 0}.pipeline-detail .inline select{width:auto}.pipeline-warning{color:#edc18f}.pipeline-added{background:#19392e;color:#b9e6cc;margin:0;padding:3px 8px}.pipeline-removed{background:#40272b;color:#edc1c3;margin:0;padding:3px 8px}@media(max-width:850px){.pipeline-layout,.pipeline-comparison{grid-template-columns:1fr}.pipeline-list{border-right:0;border-bottom:1px solid #34343d;max-height:230px;overflow:auto}}

.pipeline-card label{margin:8px 0}.pipeline-card textarea{min-height:54px}.pipeline-comparison textarea{min-height:160px}.pipeline-detail .pipeline-card{padding:12px}.pipeline-detail .inline button{padding:8px 12px}
.pipeline-text p,.pipeline-text pre,.pipeline-evidence blockquote{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;margin:8px 0}.pipeline-decision h3{font-size:17px;line-height:1.4}.pipeline-diff{max-height:280px;overflow:auto;border:1px solid #34343d;border-radius:6px}.pipeline-diff pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;margin:0;padding:5px 10px}.pipeline-context{color:var(--muted,#aaa)}.pipeline-detail .pipeline-text details{padding-bottom:0}.pipeline-detail details>.pipeline-card{margin-bottom:0}.pipeline-detail .primary{background:#d3edf1;color:#132125;border-color:#d3edf1}.pipeline-detail .primary:disabled{opacity:.45}.pipeline-detail>details>summary{padding:4px 0}

/* Sign-in: compact form and illustrated information card, based on the legacy visual design. */
body.signed-out{background:#17171b;color:#f0f0ee;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;min-height:100dvh;isolation:isolate}
body.signed-out #sidebar,body.signed-out #tama-toggle,body.signed-out main>header,body.signed-out #shade{display:none!important}
body.signed-out main,body.signed-out.collapsed main{margin:0;padding:24px 16px 48px;min-height:100dvh}
#login{width:min(100%,430px);margin:0 auto;position:relative}
.signin-card,.signin-about{padding:20px 18px 22px;background:#141418;border:1px solid #25252c;border-radius:12px}
.signin-card h1{font-size:21px;line-height:1.6;font-weight:700;margin:0 0 6px;letter-spacing:-.3px}
.signin-intro{font-size:15px;line-height:1.65;color:#aaa9a4;margin:0 0 22px}
#login-form label{font-size:13px;color:#b1b1ac;margin:0 0 4px}
#login-form input{height:38px;padding:7px 10px;background:#ffffff09;border:1px solid #3a3a40;border-radius:7px;font-size:14px;color:#f0f0ee;width:100%}
#login-form input:focus-visible{outline:1px solid #a8a8a4;outline-offset:1px}
.signin-hint{font-size:12px;line-height:1.6;margin:8px 0 16px;color:#aaa9a4}
.signin-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.signin-actions .signin-primary{background:#f0f0ee;color:#17171b;border:1px solid #f0f0ee;border-radius:7px;font-size:15px;padding:7px 14px}
.signin-actions .signin-primary:hover{background:#fff;border-color:#fff}
.signin-actions a,.signin-about a{font-size:13px;color:#b1b7e9;text-underline-offset:3px}
.signin-help{margin-top:18px;font-size:12px;color:#aaa9a4}
.signin-help summary{cursor:pointer;padding:2px 0}
.signin-help p{font-size:13px;margin:10px 0 0;line-height:1.65}
.signin-art{isolation:isolate;position:relative;overflow:hidden;margin:28px 7px;border-radius:11px;border:1px solid #8373ad;outline:7px solid #ffffff03;background:linear-gradient(150deg,#101117,#0c1720);box-shadow:0 0 14px #9977dc30;min-height:205px;padding:20px}
.signin-art::after{content:"";position:absolute;inset:auto -15% -50px;height:90px;background:linear-gradient(0deg,#b279c9b0,#4babd290);transform:rotate(6deg);filter:blur(9px);z-index:-1}
.signin-art-copy{display:grid;gap:10px;max-width:73%}.signin-art-copy small{font-size:10px}.signin-art-copy strong{font-size:24px;line-height:1.12;letter-spacing:-.6px}.signin-art-copy span{font-size:11px;line-height:1.6;color:#b2b7c2}.tama-mascot{width:110px;height:auto;object-fit:contain;position:absolute;bottom:8px;right:9px}
.signin-about h2{font-size:16px;margin:0 0 8px}.signin-about p{font-size:13px;line-height:1.7;color:#aaa9a4;margin:0 0 12px}
.signin-footer{display:flex;gap:16px;flex-wrap:wrap;align-items:center;font-size:11px;color:#8f8f99;margin:20px 2px 0}.signin-footer a{color:#aaa9b6}.signin-footer span{margin-left:auto}
@media(max-width:480px){body.signed-out main,body.signed-out.collapsed main{padding:16px 12px 32px}.signin-card,.signin-about{padding:18px 16px}.signin-art{padding:18px;min-height:190px}.signin-art-copy strong{font-size:22px}.tama-mascot{width:94px;height:115px;right:5px}}
@media(prefers-reduced-motion:reduce){body.signed-out *{scroll-behavior:auto}}

.background-waves{position:fixed;bottom:0;left:0;width:100%;height:min(48vh,390px);z-index:-1;pointer-events:none;opacity:.62}
.signin-footer{flex-wrap:wrap}.motion-control{font:inherit;font-size:11px;background:transparent;color:#aaa9a4;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}

.google-signin{display:block;text-align:center;padding:9px 14px;border:1px solid #74747c;border-radius:7px;background:#f0f0ee;color:#17171b;text-decoration:none;font-size:14px;margin:18px 0 10px}.google-signin[hidden]{display:none}

.km-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.km-map-all{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.km-map-card{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;margin:4px 0;text-align:left;overflow-wrap:anywhere}.km-map-card small{color:var(--muted,#aaa)}.record textarea[readonly]{width:100%;min-height:130px;resize:vertical}.pipeline-comparison textarea[readonly]{width:100%;min-height:180px}@media(max-width:650px){.km-map,.km-map-all{grid-template-columns:1fr}}

/* The public-site artwork continues into the dense working surface. */
body:not(.signed-out){isolation:isolate;background:#17171b;color:#f0f0ee}
body:not(.signed-out) .background-waves{height:min(48vh,390px);opacity:.72}
body:not(.signed-out) #sidebar{display:flex;flex-direction:column;background:linear-gradient(165deg,#101117f5 35%,#0c1720df);border-right-color:#393945}
#sidebar>*{flex-shrink:0}
#tama-toggle{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(150deg,#161720,#0c1720);border-color:#535061;box-shadow:0 0 12px #62d9ec0d}
#tama-toggle::before{content:"";width:19px;height:21px;background:url('/brand-blue-pixel.svg') center/contain no-repeat;flex:none}
.sidebar-spending{margin-top:auto;padding-top:18px;position:sticky;bottom:0}
#agent-spending,#spending-ticker{width:100%;border:1px solid #343b45;border-radius:999px;background:#0b1219;color:#d9dce1;font-size:15px;font-weight:600;padding:9px 14px;font-variant-numeric:tabular-nums}
#agent-spending:hover,#spending-ticker:hover{border-color:#788b9c;background:#16212c}
#spending-ticker{display:none;position:fixed;bottom:10px;left:14px;width:212px;height:32px;overflow:hidden;z-index:25;padding:5px 0;font-size:12px;font-weight:500;text-align:left}
.collapsed:not(.drawer):not(.signed-out) #spending-ticker{display:block}
.collapsed:not(.drawer):not(.signed-out) main{padding-bottom:52px}
.spending-track{display:flex;width:max-content;animation:spending-scroll var(--spending-duration,18s) linear infinite}
.spending-track>span{flex-shrink:0;padding:0 24px;white-space:nowrap;min-width:212px}
#spending-ticker:hover .spending-track,#spending-ticker:focus-visible .spending-track{animation-play-state:paused}
@keyframes spending-scroll{to{transform:translateX(-50%)}}
.spending-summary{display:flex;gap:48px;margin:24px 0}.spending-summary small,.spending-summary strong{display:block}.spending-summary strong{margin-top:6px;font-size:28px;font-weight:600;font-variant-numeric:tabular-nums}
.spending-ledger{overflow:auto;max-height:45vh}.spending-ledger table{border-collapse:collapse;width:100%;font-size:13px}.spending-ledger th,.spending-ledger td{padding:12px 8px;text-align:left;border-bottom:1px solid #333a45}.spending-ledger th{font-size:11px;color:#a5adba;font-weight:500}.spending-ledger small{display:block;margin-top:4px;font-size:11px}.spending-ledger td:last-child{text-align:right;font-variant-numeric:tabular-nums}.spending-note{font-size:11px;color:#9ca5b4;margin-top:20px}
@media(prefers-reduced-motion:reduce){.spending-track{animation:none}#spending-ticker{overflow-x:auto}}
body:not(.signed-out) .agent-card{background:#11111599;border-color:#373741}
body:not(.signed-out) .agent-card:hover{background:#20212bbf;border-color:#647587}
body:not(.signed-out) .agent-card.selected{background:linear-gradient(120deg,#25333ee8,#292439cc);border-color:#92bccb;box-shadow:inset 2px 0 #70c9df}
body:not(.signed-out) nav a.active{background:linear-gradient(100deg,#293a46bd,#28233570);color:#f0f0ee}
body:not(.signed-out) .board-grid{background:linear-gradient(165deg,#101117ed 35%,#0c172075);border-color:#41414d;box-shadow:0 10px 32px #0002}
body:not(.signed-out) .board-cell{border-color:#373841}
body:not(.signed-out) :is(.panel,.record,.pipeline-card,.code-composer){background:linear-gradient(145deg,#14141aed,#101821eb);border-color:#3d3d49}
body:not(.signed-out) :is(.bullet-columns,.pipeline-detail,.code-log){background:#141418b8;border-radius:10px}
body:not(.signed-out) .chat-user{background:linear-gradient(115deg,#20333fe6,#29243bd9);border:1px solid #414650}
body:not(.signed-out) .chat-assistant{color:#f0f0ee}
body:not(.signed-out) :is(dialog,#agent-menu,.file-menu){background:linear-gradient(145deg,#191920,#101b25);border-color:#6c627f;box-shadow:0 16px 60px #0006,0 0 16px #9977dc12}
body:not(.signed-out) :is(button,input,textarea,select,a,summary):focus-visible{outline:2px solid #92d8ee;outline-offset:2px}
body:not(.signed-out) :is(#header-knock,.composer-actions>button):not(:disabled){background:#f0f0ee;color:#17171b;border-color:#f0f0ee}
@media(prefers-reduced-motion:reduce){body:not(.signed-out) *{scroll-behavior:auto}}

.publication-comparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.publication-comparison pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:24rem;overflow:auto}@media(max-width:760px){.publication-comparison{grid-template-columns:1fr}}

/* Optional controls open without shrinking the workspace. */
header,.instruction-view header,.collapsed header{height:48px;min-height:48px;flex-wrap:nowrap;overflow:visible;position:relative;gap:8px}
header h1{min-width:0;flex:0 1 auto}.instruction-view header h1{flex-shrink:1}
#agent-picker{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0}
#page-controls{min-width:0;flex-shrink:0;margin-left:auto;gap:8px}.toolbar{margin-left:0;flex-shrink:0}#page-controls:empty+.toolbar{margin-left:auto}
.page-primary,.page-filters{display:flex;align-items:center;gap:8px}.page-primary:empty{display:none}
.page-more>summary{list-style:none;cursor:pointer;border:1px solid #37373f;border-radius:8px;padding:6px 10px;white-space:nowrap;background:#202025}.page-more>summary::-webkit-details-marker{display:none}
.page-more[open]>summary{border-color:#92bccb;background:#26303a}
.page-more-panel{position:absolute;z-index:45;right:0;top:calc(100% + 6px);width:min(330px,calc(100vw - 28px));max-height:calc(100dvh - 88px);overflow:auto;display:grid;gap:8px;padding:12px;background:#191b23;border:1px solid #535563;border-radius:10px;box-shadow:0 14px 40px #0008}
.page-more-panel .page-filters{display:grid;gap:8px}.page-more-panel .page-filters:not(:empty){padding-bottom:8px;border-bottom:1px solid #373741}
#page-controls .page-more-panel :is(input,select,button){width:100%;max-width:none;text-align:left;min-height:36px}
.settings-menu button.active{background:linear-gradient(100deg,#293a46,#282335);border-color:#92bccb;box-shadow:inset 2px 0 #70c9df;color:#fff}
.settings-menu{align-self:start;position:sticky;top:0}.settings-picker{display:none}.settings-content{min-width:0}
.connection-heading{display:flex;align-items:center;gap:8px}.connection-heading h2{margin:0;min-width:0}
.connection-status{font-size:12px;color:#a9bdc8;margin:10px 0 4px}.connection-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(130px,1fr);gap:14px}
.connection-fields label{min-width:0}.connection-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:4px 0 16px}.connection-actions .danger{margin-left:auto}
.primary-action{background:#f0f0ee;color:#17171b;border-color:#f0f0ee}.primary-action:hover{background:#dce9ed;color:#17171b}
.activity-row{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #303039}.activity-row time{color:#a3a3ad;font-size:12px;white-space:nowrap}.activity-list{margin:8px 0 16px}.advanced-settings{border-top:1px solid #373741;padding-top:12px}.advanced-settings pre{max-height:320px;overflow:auto}
@media(max-width:1000px){.page-primary{display:none}}
@media(max-width:800px){
 header,.collapsed header{height:48px;min-height:48px;flex-wrap:nowrap;padding-left:96px;gap:6px}
 header h1{font-size:16px}#agent-picker{max-width:70px;padding:6px 8px;font-size:12px}
 #page-controls{gap:4px}.page-more>summary{padding:6px 8px;font-size:12px}.toolbar{gap:4px}
 .settings-layout{display:block}.settings-menu{display:none}.settings-picker{display:block;width:100%;margin:0 0 12px;padding:9px}.settings-content{padding:16px}.settings-content h2{font-size:16px}
 .connection-fields{grid-template-columns:1fr;gap:0}.activity-row{display:block}.activity-row time{display:block;margin-top:4px}
}
.pipeline-text-long>p{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}.pipeline-text pre{max-height:440px;overflow:auto}
#auth-loading{display:none}.auth-restoring #auth-loading{display:block;margin:20vh auto;text-align:center;color:#b1b1ac}.auth-restoring #login{display:none}

.todo-attachments{margin-top:10px;min-width:0}.attachment-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}.attachment-chip{display:flex;align-items:center;gap:7px;max-width:100%;min-width:0;border:1px solid #393943;border-radius:8px;padding:2px 4px 2px 8px;background:#1b1d25}.attachment-chip .muted{font-size:11px;white-space:nowrap}.attachment-name{background:transparent;border:0;text-align:left;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 2px;color:#b4ccec}.attachment-chip .attachment-name{min-width:0}.attachment-remove{padding:2px 6px;border:0;background:transparent;font-size:19px}.attachment-add{font-size:12px;padding:5px 9px;background:transparent;border-style:dashed}.file-dragover{outline:2px dashed #8bc8eb;outline-offset:-4px}.code-composer .todo-attachments{margin:4px 0}.code-composer{min-width:0}.conversation-turn>.attachment-name{display:block;font-size:13px}.agent-mascot{image-rendering:pixelated}#tama-toggle::before{width:22px;height:22px;image-rendering:pixelated}

.instruction-table-editor{margin:12px 0;padding:10px;border:1px solid #393b48;border-radius:9px}.instruction-table-scroll{overflow:auto;margin-top:10px}.instruction-table-editor table{border-collapse:collapse;min-width:100%}.instruction-table-editor td,.instruction-table-editor th{border:1px solid #414350;padding:0}.instruction-table-editor input{min-width:130px;border:0;border-radius:0;padding:8px;background:transparent}.instruction-table-editor th{background:#252735}.instruction-table-editor input:focus{outline:2px solid #91aafa;outline-offset:-2px}

/* Drag targets are overlays: starting a drag never shifts the tree. */
.instruction-top-drop{display:none;position:fixed;z-index:1001;bottom:18px;box-sizing:border-box;border:1px dashed #7bd6ec;padding:12px;border-radius:8px;background:#15232ef5;color:#c1eaf1;text-align:center;box-shadow:0 3px 16px #0008}
.instruction-dragging .instruction-top-drop{display:block}
.instruction-drop-target{outline:2px solid #7bd6ec;outline-offset:-2px;background:#18323d!important}
.bullet-row.instruction-drop-target:after{content:"";position:absolute;left:32px;right:8px;bottom:0;height:2px;background:#7bd6ec;pointer-events:none}
.instruction-drag-handle{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.instruction-dragging,.instruction-dragging .instruction-drag-handle{cursor:grabbing;user-select:none}
.instruction-drag-hint{position:fixed;z-index:1100;pointer-events:none;max-width:min(360px,80vw);padding:7px 10px;border:1px solid #7bd6ec;border-radius:6px;background:#122b36;color:#d4f8ff;font-size:12px;box-shadow:0 3px 12px #0006}
.instruction-drag-hint.invalid{border-color:#d78282;background:#361f25;color:#ffd3d3}

dialog::backdrop{backdrop-filter:none}.editor-modes{margin:8px 0}.instruction-preview{line-height:1.7;overflow-wrap:anywhere}.instruction-preview :is(h1,h2,h3,h4,h5,h6){margin:18px 0 8px;white-space:normal}.instruction-preview p{margin:8px 0}.instruction-preview table{border-collapse:collapse;width:100%}.instruction-preview :is(td,th){border:1px solid #414451;padding:8px 10px;text-align:left;min-width:100px}.instruction-preview th{background:#272c37}.instruction-preview blockquote{border-left:3px solid #64768b;margin:8px 0;padding-left:12px}.instruction-preview code{background:#252932;border-radius:3px;padding:1px 4px}.instruction-preview-bullet{padding-left:12px}.instruction-preview pre{overflow:auto;background:#11151b;padding:12px}

.bullet-row.instruction-drop-target[data-drop-mode=before],.bullet-row.instruction-drop-target[data-drop-mode=after]{outline:0;background:transparent!important}
.bullet-row.instruction-drop-target[data-drop-mode=before]:after,.bullet-row.instruction-drop-target[data-drop-mode=after]:after{left:3px;right:3px;height:3px;border-radius:2px;box-shadow:0 0 5px #7bd6ec80}
.bullet-row.instruction-drop-target[data-drop-mode=before]:after{top:0;bottom:auto}
.bullet-row.instruction-drop-target[data-drop-mode=after]:after{bottom:0;top:auto}

/* Inline Board drafts stay in place while saving. */
.board-inline-editor textarea{min-height:140px;max-height:55vh;line-height:1.65;padding:8px;background:transparent;border-color:transparent;resize:vertical}.board-inline-editor textarea:hover{border-color:#353540}.board-inline-editor textarea:focus{background:#14151c;border-color:#91aafa;outline:none}.board-save-state{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-height:22px;font-size:12px}.board-save-state button{font-size:12px;padding:3px 7px}

.pipeline-import{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px dashed #494955;border-radius:9px;padding:10px 12px;margin:0 0 12px}.pipeline-import.drag-over{border-color:#91aafa;background:#233349}.pipeline-import button{padding:5px 10px}.pipeline-import .muted{font-size:12px}
.pipeline-top-actions{display:flex;align-items:center;gap:8px;min-width:0}.pipeline-top-actions .pipeline-import{position:relative;flex-wrap:nowrap;gap:8px;padding:4px 8px;margin:0;white-space:nowrap;font-size:12px}.pipeline-top-actions .pipeline-import .muted:not(:empty){position:absolute;top:calc(100% + 6px);left:0;z-index:44;white-space:normal;width:min(340px,70vw);padding:8px 10px;border:1px solid #535563;border-radius:8px;background:#191b23}.pipeline-top-actions .pipeline-import .muted:empty{display:none}
@media(max-width:700px){.pipeline-view header{height:auto;flex-wrap:wrap;padding-bottom:6px}.pipeline-view #page-controls{order:10;flex-basis:calc(100% + 96px);margin-left:-96px;justify-content:space-between}.pipeline-top-actions{gap:6px}}
@media(max-width:480px){.pipeline-top-actions .pipeline-import>span:first-child{display:none}.pipeline-top-actions .pipeline-import{padding:3px 6px}.pipeline-top-actions button{font-size:12px}}

.instruction-drag-hint{left:0;top:0;will-change:transform;contain:layout style;transition:none}
.file-submenu{position:fixed;z-index:1001;min-width:135px;padding:5px;background:#202027;border:1px solid #484854;border-radius:9px;box-shadow:0 8px 25px #0007}
.file-submenu[hidden],.file-menu[hidden] .file-submenu{display:none}
.file-submenu-trigger::after{content:'▸';float:right;margin-left:20px}
.bullet-row .bullet-fold{width:28px;min-height:30px;font-size:23px;line-height:1;padding:2px;display:inline-flex;align-items:center;justify-content:center}
.editor-heading{display:flex;align-items:center;gap:8px}.editor-heading h2{margin:0}.editor-heading>span:empty{display:none}
.editor-popup{z-index:1100}.editor-popup button:disabled{cursor:default}

/* Reading and editing share one full-height document and one vertical scrollbar. */
#editor[data-document=true]{height:88vh;height:88dvh;max-height:88dvh;overflow-y:auto;scrollbar-gutter:stable;overflow-anchor:none}
#editor[data-document=true] .dialog-head{position:static}
#editor[data-document=true] .instruction-source{display:block;field-sizing:content;height:auto;min-height:max(270px,calc(88dvh - 220px));max-height:none;overflow-y:hidden;resize:none}

.subscription-file-list{display:grid;gap:12px;margin:16px 0}.subscription-file{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:16px;border:1px solid var(--border,#454653);border-radius:12px;background:rgba(12,17,26,.65)}.subscription-file label{display:flex;align-items:center;gap:8px}.subscription-file input[type=checkbox]{width:auto}.subscription-file small{color:#b6b8c5}.subscription-file[hidden]{display:none}
.subscription-workspace{display:grid;gap:18px}.subscription-card{padding:20px;border:1px solid #454653;border-radius:14px;background:rgba(12,17,26,.72);min-width:0}.subscription-card>header{display:flex;justify-content:space-between;align-items:center;gap:12px}.subscription-card h3{margin:0}.subscription-card details{margin-top:16px}.subscription-card label{display:flex;align-items:center;gap:10px;margin:9px 0}.subscription-card input[type=checkbox]{width:18px;flex:0 0 18px}.subscription-card :is(input:not([type=checkbox]),textarea){max-width:100%;width:100%;box-sizing:border-box}.subscription-card textarea{margin-top:12px;font-size:13px;line-height:1.5}.subscription-platforms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.subscription-consent{width:min(600px,90vw);max-height:85vh;overflow:auto;padding:24px}.subscription-consent input{display:block;width:100%;margin:10px 0}.subscription-consent button{margin:6px 8px 0 0}@media(max-width:1000px){.subscription-platforms{grid-template-columns:1fr}}

/* One list card; row settings remain available to keyboard and touch users. */
.subscription-list-card{padding:6px 20px}.subscription-platform-list{list-style:none;padding:0;margin:0}.subscription-platform-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(115px,.55fr) minmax(170px,.85fr) 38px;align-items:center;gap:18px;padding:22px 2px;border-bottom:1px solid #45465380}.subscription-platform-row:last-child{border-bottom:0}.subscription-platform-title{display:flex;align-items:center;gap:12px;min-width:0}.subscription-platform-title strong{overflow-wrap:anywhere}.subscription-platform-title>span{color:#8bd1c0}.subscription-file-count{color:#bac3d0;font-size:14px}.subscription-last-contact{display:grid;gap:4px;font-size:13px}.subscription-last-contact small{color:#a7aabb}.subscription-platform-gear{opacity:0;transition:opacity .15s;padding:5px;font-size:21px;min-width:36px}.subscription-platform-row:hover .subscription-platform-gear,.subscription-platform-row:focus-within .subscription-platform-gear{opacity:1}.subscription-add-platform{justify-self:start}.subscription-settings{width:min(820px,94vw);max-height:88dvh;padding:24px;overflow:auto}.subscription-settings>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.subscription-settings>header h2{margin:0}.subscription-settings-body{border:0;padding:0;margin:0;min-width:0}.subscription-settings :is(input:not([type=checkbox]),textarea){width:100%;box-sizing:border-box}.subscription-settings textarea{font-size:13px;min-height:170px}.subscription-settings details{margin-top:22px}.subscription-settings label{display:block}.subscription-tree,.subscription-tree ul{list-style:none;padding:0;margin:8px 0}.subscription-tree{max-height:42vh;overflow:auto;overscroll-behavior:contain;border:1px solid #454653;border-radius:10px;padding:8px}.subscription-tree ul{margin-left:18px;border-left:1px solid #45465380;padding-left:8px}.subscription-tree-row{display:flex;align-items:center;gap:8px;min-height:40px;padding:3px 6px;border-radius:6px}.subscription-tree-row:hover{background:#ffffff08}.subscription-tree-row label{display:flex;align-items:center;gap:10px;flex:1;min-width:0;margin:0;overflow-wrap:anywhere}.subscription-tree-row input[type=checkbox]{width:17px;flex:0 0 17px;margin:0;accent-color:#7bd6ec}.subscription-tree-row small{font-size:12px;color:#a7aabb}.subscription-fold,.subscription-fold-space{width:26px;flex:0 0 26px}.subscription-fold{padding:2px;min-height:28px;border:0;background:transparent}.subscription-tree [hidden]{display:none}.subscription-settings [role=alert]:empty{display:none}.subscription-settings [role=alert]{color:#9fdce7}.subscription-settings button{margin-right:8px}.subscription-platform-gear:focus-visible{outline:2px solid #9fdce7;outline-offset:3px}@media(hover:none){.subscription-platform-gear{opacity:1}}@media(max-width:700px){.subscription-platform-row{grid-template-columns:1fr 38px;gap:8px 14px}.subscription-platform-title{grid-column:1}.subscription-platform-gear{grid-column:2;grid-row:1/4}.subscription-file-count,.subscription-last-contact{grid-column:1}.subscription-settings{padding:16px}.subscription-tree-row small{display:none}}

/* Platform settings: scoped, complete glass surfaces; no nested modal editor. */
.subscription-detail{max-width:1440px;margin:0 auto;padding-bottom:24px;min-width:0}
.subscription-detail-header{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-bottom:8px}
.subscription-detail-header>span{font-size:13px;color:#b0c4ce}
.subscription-tabs{display:flex;gap:20px;border-bottom:1px solid #48525f;margin:0 0 22px}
.subscription-tabs>button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#b0bacb;min-height:44px;padding:10px 4px}
.subscription-tabs>button[aria-selected=true]{color:#b7e3eb;border-color:#92cbd8}
.subscription-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
.subscription-workspace .subscription-card{background:linear-gradient(115deg,#101720ed,#17202aeb);border:1px solid #46515f;border-radius:14px;padding:24px;min-width:0;box-sizing:border-box;overflow-wrap:anywhere}
.subscription-workspace .subscription-card>h3{margin:0 0 20px;font-size:19px}
.subscription-workspace input:not([type=checkbox]),.subscription-workspace select,.subscription-workspace textarea{box-sizing:border-box;max-width:100%;width:100%;background:#19212de8;border:1px solid #535e6c;color:#e0e8ef;border-radius:8px;padding:10px 12px;min-height:44px}
.subscription-workspace button{min-height:44px}.subscription-workspace button:focus-visible,.subscription-workspace input:focus-visible,.subscription-workspace select:focus-visible,.subscription-workspace summary:focus-visible{outline:2px solid #b7dfe8;outline-offset:3px}
.subscription-tree-tools{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:10px}.subscription-muted{font-size:13px;color:#b1bfd0}
.subscription-tree-v2,.subscription-tree-v2 ul{list-style:none;padding:0;margin:0}.subscription-tree-v2{max-height:60vh;overflow:auto;scrollbar-gutter:stable;padding:4px}.subscription-tree-v2 ul{padding-left:18px;border-left:1px solid #475666;margin-left:12px}
.subscription-tree-row-v2{display:flex;align-items:center;gap:10px;padding:4px 8px;border-radius:8px;min-height:48px}
.subscription-tree-row-v2.selected{background:#31435080;box-shadow:inset 0 0 0 1px #688f9f}.subscription-tree-row-v2:hover{background-color:#ffffff07}
.subscription-tree-row-v2 input[type=checkbox],.subscription-card label>input[type=checkbox]{width:24px;height:24px;min-width:24px;margin:0;accent-color:#93c7d2}
.subscription-tree-row-v2 button{background:transparent;border:0;padding:4px;min-width:30px}.subscription-tree-row-v2 .subscription-file-title{flex:1;text-align:left;min-width:0;overflow-wrap:anywhere;color:#dde5ee}
.subscription-state-icon{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;color:#a9d6df;font-size:19px;flex-shrink:0}.subscription-card label{display:flex;align-items:center;gap:12px;margin:18px 0;font-size:14px}
.subscription-file-content{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.8 inherit;background:#0e151e88;border:1px solid #3f4d5d;border-radius:10px;padding:16px;max-height:45vh;overflow:auto}
.subscription-detail details{margin-top:18px;border-top:1px solid #41505d;padding-top:14px}.subscription-detail summary{cursor:pointer;color:#b1d3de}.subscription-detail h4{margin:18px 0 8px}.subscription-detail textarea{min-height:220px;font:13px/1.6 monospace}
.subscription-fact{border-bottom:1px solid #405061;padding:16px 0}.subscription-fact strong{margin-left:8px;font-size:14px}.subscription-fact p{margin:8px 0;font-size:14px;color:#c0ccdb}
.subscription-savebar{position:sticky;bottom:12px;z-index:4;display:flex;flex-wrap:wrap;align-items:center;gap:12px;background:#182431f5;border:1px solid #6d8597;border-radius:12px;padding:16px;margin-top:20px;box-shadow:0 8px 22px #0004}.subscription-savebar>div{flex:1 1 320px}.subscription-savebar strong{font-size:14px;margin-left:10px}.subscription-savebar details{font-size:13px;max-height:28vh;overflow:auto}
.subscription-savebar>div{min-width:0;overflow-wrap:anywhere}.subscription-detail :is(button,input,select,summary){scroll-margin-block:70px 180px}
.subscription-workspace [hidden]{display:none!important}.subscription-workspace .primary{background:#a3cbd5;color:#102731;border-color:#a3cbd5}.subscription-workspace .danger{color:#efb6c2;border-color:#a26475}.subscription-workspace button:disabled{opacity:.5;cursor:not-allowed}
.subscription-notice:not(:empty){display:flex;gap:12px;align-items:center;background:#182c30ee;border:1px solid #547e85;padding:16px;border-radius:12px;margin-bottom:16px}.subscription-notice.error{background:#30202aee;border-color:#b07384;color:#f2ced8}.subscription-notice.error .subscription-state-icon{color:#f2b7c9}
.subscription-sharing-row{display:grid;grid-template-columns:minmax(0,1fr) 32px auto;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid #414d5b}.subscription-sharing-row small{display:block;color:#b1becf}.subscription-global-link{justify-self:start;background:transparent!important}.subscription-settings pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:35vh;overflow:auto}
@media(max-width:1100px){.subscription-columns{grid-template-columns:1fr}.subscription-tree-v2{max-height:45vh}.subscription-tree-tools{grid-template-columns:minmax(0,1fr) 130px}}
@media(max-width:600px){.subscription-workspace .subscription-card{padding:16px}.subscription-tree-tools{grid-template-columns:1fr}.subscription-savebar{bottom:4px;padding:12px}.subscription-savebar>button{flex:1}.subscription-sharing-row{grid-template-columns:minmax(0,1fr) 30px}.subscription-sharing-row button{grid-column:1/-1}.subscription-tabs{gap:12px}.subscription-detail-header{flex-wrap:wrap}.subscription-tree-v2 ul{padding-left:8px;margin-left:6px}}

.subscription-workspace [data-status="passed"]{color:#86cdb5}.subscription-workspace [data-status="failed"]{color:#ef9898}.subscription-workspace [data-status="pending"],.subscription-workspace [data-status="stale"]{color:#e3be83}.subscription-card p{overflow-wrap:anywhere}

/* Shared Topic workspace */
.topic-ribbon{display:flex;gap:8px;align-items:center;min-width:0;margin-bottom:16px}.topic-ribbon>button{flex-shrink:0}.topic-tabs{display:flex;gap:6px;overflow-x:auto;min-width:0;flex:1;padding:4px 0 8px;scroll-behavior:smooth}.topic-tabs button{white-space:nowrap;flex-shrink:0}.topic-tabs .active{background:linear-gradient(100deg,#263b45,#292b3c);border-color:#82c6d6;color:#eafaff}.topic-heading h2{margin:0}.topic-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:rgba(14,19,28,.78);backdrop-filter:blur(12px)}.topic-grid .board-cell{min-width:0;min-height:300px;display:flex;flex-direction:column;gap:10px}.topic-grid h2{margin:0 0 8px}.topic-grid textarea{flex:1;min-height:180px;background:rgba(9,14,23,.42)}.topic-cell-actions{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:12px}.topic-status{color:#91cbbb}.topic-step,.topic-file{display:flex;align-items:center;gap:10px;overflow-wrap:anywhere}.topic-step input{width:18px;flex-shrink:0}.topic-step span{flex:1}.topic-file button:first-child{flex:1;text-align:left;overflow-wrap:anywhere;min-width:0}.topic-participant{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:12px;margin:8px 0}.topic-grid input[type=file]{min-width:0;font-size:12px}.topic-grid small{line-height:1.5}@media(max-width:800px){.topic-grid{grid-template-columns:1fr}.topic-ribbon{gap:4px}.topic-ribbon>button{padding:8px}.topic-grid .board-cell{min-height:230px}}

.topic-step>button,.topic-file>button:last-child{opacity:0}.topic-step:hover>button,.topic-step:focus-within>button,.topic-file:hover>button,.topic-file:focus-within>button{opacity:1}@media(hover:none){.topic-step>button,.topic-file>button:last-child{opacity:1}}

.topic-grid .board-cell{padding:18px;min-height:230px;gap:8px}.topic-grid textarea{min-height:110px}.topic-step>button{padding:4px 8px}.topic-step-add{display:flex;gap:8px;margin-top:auto}.topic-step-add input{min-width:0}.topic-step-add button{white-space:nowrap}.topic-cell-actions{padding-top:6px}

.board-grid.topic-grid{min-height:calc(100dvh - 150px)}@media(max-width:800px){.board-grid.topic-grid{min-height:0}}

/* Topic navigation belongs to the shared title bar, with scrolling confined to tabs. */
main>header.topic-header{flex-wrap:nowrap;min-width:0;gap:12px}.topic-header #page-title{flex:0 1 auto;max-width:28%;min-width:60px}.topic-header #page-controls{flex:1 1 0;min-width:0;margin-left:8px}.topic-header .topic-ribbon{flex:1 1 0;min-width:0;margin:0;gap:6px}.topic-header .topic-tabs{padding:2px 0;min-width:0;scrollbar-width:thin}.topic-header .toolbar{flex:0 0 auto}.topic-header+.notice:empty{display:none}.board-grid.topic-grid{min-height:calc(100dvh - 86px)}
@media(max-width:800px){main>header.topic-header{gap:6px}.topic-header #page-title{max-width:20%;min-width:36px;font-size:14px}.topic-header #page-controls{margin-left:0;gap:4px}.topic-header .topic-ribbon{gap:4px}.topic-header #page-controls button{padding:5px 7px;font-size:12px}.board-grid.topic-grid{min-height:0}}

/* Agent Board stays visible; topic tabs and creation share one disclosure. */
.topic-options{display:flex;align-items:center;gap:6px;min-width:0;flex:0 1 auto}.topic-options[hidden]{display:none}.topic-options>button{flex-shrink:0;white-space:nowrap}.topic-options .topic-tabs{flex:0 1 auto}.topic-ribbon>button.active{background:linear-gradient(100deg,#263b45,#292b3c);border-color:#82c6d6;color:#eafaff}

/* Board todos: item-level controls, dated comment flyout and quiet autosave. */
.todo-cell{min-width:0}.todo-list{display:flex;flex-direction:column;gap:10px}.todo-item{position:relative;padding:8px 80px 8px 10px;border:1px solid transparent;border-radius:10px;background:rgba(20,25,35,.3);min-width:0}.todo-item:hover,.todo-item:focus-within{border-color:#424958;background:rgba(25,32,44,.6)}.todo-item textarea{display:block;width:100%;min-height:44px;max-height:240px;resize:none;padding:8px 0;background:transparent;border:1px solid transparent;line-height:1.6}.todo-item textarea:focus{outline:1px solid #8dc9db;outline-offset:3px;border-radius:4px}.todo-item-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px}.todo-item-actions .todo-attachments{display:contents}.todo-item-actions .attachment-list:empty{display:none}.todo-item-actions .attachment-list{width:100%;margin:0}.todo-item-tools{position:absolute;right:6px;top:10px;display:flex;align-items:center;gap:4px}.todo-item-tools .todo-attach-trigger,.todo-item-tools .todo-comments-trigger{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:26px;padding:3px;border:0;background:transparent;color:#a4bac9;font-size:12px}.todo-item-tools .todo-attach-trigger{font-size:15px}.todo-item-tools button:hover{background:#ffffff0d}.todo-list-footer{display:flex;justify-content:flex-end;margin-top:6px}.todo-save-icon{font-size:12px;color:#8fc7b8}.todo-save-error{padding:12px;border:1px solid #ac7377;border-radius:8px;background:#302126;margin-top:10px}.todo-save-error button{font-size:12px;margin-right:5px}.todo-comment-panel{position:fixed;z-index:80;max-height:calc(100dvh - 24px);overflow:auto;padding:14px;border:1px solid #4a5666;border-radius:12px;background:rgba(20,25,36,.97);box-shadow:0 16px 48px #0007;backdrop-filter:blur(16px)}.todo-comment-heading{display:flex;align-items:center;justify-content:space-between}.todo-comment-heading button{border:0;background:transparent;padding:2px 7px;font-size:20px}.todo-comment-history{max-height:280px;overflow:auto;margin:8px 0}.todo-comment-history article{padding:10px 0;border-bottom:1px solid #38404d}.todo-comment-history time{font-size:11px;color:#aab6c5}.todo-comment-history p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;margin:5px 0}.todo-comment-panel textarea{min-height:90px;font-size:13px}.todo-comment-panel>.error:empty{display:none}.todo-comment-panel>button{margin-top:8px;font-size:12px}@media(prefers-reduced-motion:reduce){.todo-item-actions button{transition:none}}

/* Compact Board navigation, grouped inside the shared aqua frame. */
.topic-header #page-title{display:none}
.topic-header .topic-ribbon{flex:0 1 auto;padding:6px 8px;border:1px solid #82c6d6;border-radius:12px}
@media(max-width:800px){.topic-header .topic-ribbon{padding:4px}}

#agent-picker-menu{position:fixed;z-index:60;min-width:150px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:6px;border:1px solid #82c6d6;border-radius:10px;background:#151b24;box-shadow:0 14px 40px #0006}
#agent-picker-menu button{display:block;width:100%;text-align:left;overflow-wrap:anywhere;border:0;background:transparent;padding:8px 12px}
#agent-picker-menu button:hover,#agent-picker-menu button:focus-visible,#agent-picker-menu button[aria-checked="true"]{background:#263b45;color:#eafaff}
.todo-item{padding-top:4px;padding-bottom:4px}.todo-item textarea{min-height:26px;padding:2px 0;line-height:1.5}.todo-item-tools{top:4px}
.notepad-cell{display:flex;flex-direction:column}.notepad-cell .board-inline-editor{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}.notepad-cell .board-inline-editor textarea{flex:1;min-height:140px;max-height:none;resize:none}.notepad-cell .board-save-state{min-height:16px}
.topic-grid .topic-text-cell textarea{flex:1;resize:none}.topic-cell-actions{min-height:16px;flex-wrap:wrap;padding-top:0;font-size:12px}.topic-cell-actions button{font-size:12px;padding:3px 7px}
.notepad-cell .board-save-state:has(>span:empty):not(:has(>button:not([hidden]))){display:none}
.topic-text-cell{position:relative}.topic-text-cell textarea{padding-bottom:28px}.topic-text-cell .topic-cell-actions:not(:has(.error)){position:absolute;right:24px;bottom:22px;pointer-events:none}

.operator-documents{--timing:#e4c45c}.bullet-tree .operator-documents>.bullet-tree{border-left:2px solid #e4c45c}.operator-only-label{color:#e4c45c}.bullet-selection-space{width:13px;flex:none}.operator-document>summary{list-style:none;cursor:pointer}.operator-document>summary::-webkit-details-marker{display:none}.operator-document[open] .operator-document-arrow{transform:rotate(90deg)}.operator-document-body{padding:6px 10px 12px 26px}.operator-document-body pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:400px;overflow:auto;margin:4px 0 10px}.operator-documents textarea{width:100%;min-height:320px}

/* Code keeps the conversation visible above a compact, opaque composer. */
.code-workspace{gap:10px;min-height:0}
.code-conversation{position:relative;flex:1;min-height:0}
.code-conversation .code-log{height:100%;min-height:0;padding-bottom:18px;overflow-anchor:none}
.code-latest{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);padding:6px 12px;font-size:12px;border-radius:999px;background:#252b35;box-shadow:0 4px 16px #0007;white-space:nowrap}
body:not(.signed-out) .code-composer{flex:none;background:#171b23;border:1px solid #454c58;border-radius:16px;padding:8px 12px;box-shadow:0 6px 24px #0003}
.code-composer:focus-within{border-color:#7d9eaf}
.code-composer textarea{display:block;min-height:44px;max-height:180px;padding:8px 4px;resize:none;line-height:1.6;font-size:15px;outline:none;border:0;box-shadow:none}
body:not(.signed-out) .code-composer textarea:focus-visible{outline:none}
.code-composer .composer-actions{flex-wrap:wrap;gap:8px;padding-top:2px}
.code-composer .todo-attachments{display:contents}
.code-composer .attachment-list{flex-basis:100%;order:0;margin:0}
.code-composer .attachment-list:empty{display:none}
.code-composer .attachment-add{order:1;border:0;padding:5px 4px;font-size:12px;color:#aebdca}
.code-composer .composer-actions>.muted{order:2;flex:1;min-width:0;font-size:11px;line-height:1.5}
.code-composer .composer-actions>.muted:empty{display:none}
.code-composer .composer-actions>button{order:3;margin-left:auto;padding:6px 14px;border-radius:10px;font-size:13px;min-height:32px}
.result-review{position:relative;font-size:12px;margin-left:auto}
.result-review>summary{cursor:pointer;color:#a3aab7;list-style:none;padding:4px 8px;border-radius:6px}
.result-review>summary::-webkit-details-marker{display:none}
.result-review>summary::after{content:' ⋯'}
.result-review>summary:hover{background:#ffffff08;color:#d5dce6}
.result-review-body{margin-top:6px;padding:12px;max-width:440px;border:1px solid #424b58;border-radius:10px;background:#1a202a}
.result-review-body p{margin:0 0 8px;line-height:1.6;color:#b4bdca}
.result-review-body ul{padding-left:20px;line-height:1.6}
@media(max-width:600px){.code-composer textarea{font-size:16px}.code-composer .composer-actions>.muted:not(:empty){flex-basis:100%;order:0}.result-review-body{max-width:calc(100vw - 80px)}}
.notepad-cell .board-inline-editor textarea,.notepad-cell .board-inline-editor textarea:hover,.notepad-cell .board-inline-editor textarea:focus,.topic-grid .topic-text-cell textarea,.topic-grid .topic-text-cell textarea:hover,.topic-grid .topic-text-cell textarea:focus{border:0;outline:0;box-shadow:none;background:transparent}
.topic-step-list{display:flex;flex-direction:column;gap:10px}.topic-step-item{display:flex;align-items:flex-start;gap:8px;padding:4px 36px 4px 8px}.topic-step-item>input[type=checkbox]{width:16px;height:16px;margin:5px 0;flex:none}.topic-step-item>textarea{flex:none;width:calc(100% - 24px);min-width:0}.topic-step-remove{position:absolute;right:6px;top:5px;border:0;background:transparent;padding:2px 5px}.topic-step-cell>.topic-cell-actions{margin-top:auto;justify-content:flex-end}
.topic-files-cell{position:relative}.topic-file-open{display:flex;align-items:center;gap:8px;border:0;background:transparent;padding:6px}.topic-file-icon{flex:none}.topic-file-open>span:last-child{min-width:0;overflow-wrap:anywhere}.topic-file-controls{margin-top:auto;display:flex;flex-direction:column;gap:8px}.topic-file-controls>.topic-cell-actions{margin:0;justify-content:flex-end}.topic-file-dropping{outline:2px dashed #82c6d6;outline-offset:-8px;background:rgba(35,67,79,.35)}
.topic-status,.todo-save-icon{color:#9296a0}.topic-step-item{padding-right:80px}.topic-step-item .topic-step-remove{position:static}.topic-step-item .todo-item-tools{top:4px}.topic-comment-dialog{width:min(460px,calc(100vw - 32px))}.topic-comment-dialog textarea{min-height:90px;width:100%}.topic-file[draggable=true]{cursor:grab;border-radius:8px}.topic-file[draggable=true]:hover{background:#ffffff08}.topic-file-dragging{opacity:.5}

/* Status notices must never cover a user action with a hit target. */
#feedback{pointer-events:none}

.chat-markdown{white-space:normal;line-height:1.7;overflow-wrap:anywhere;min-width:0}
.chat-markdown p{margin:12px 0}.chat-markdown>:first-child{margin-top:0}.chat-markdown>:last-child{margin-bottom:0}
.chat-markdown pre{white-space:pre;overflow:auto;padding:14px;background:#0e1017;border:1px solid #333842;border-radius:8px;max-width:100%}
.chat-markdown code{font-family:Consolas,monospace;font-size:.92em;background:#262831;border-radius:4px;padding:1px 4px}.chat-markdown pre code{background:none;padding:0}
.chat-markdown blockquote{margin:12px 0;padding-left:16px;border-left:3px solid #6a738a;color:#bfc3d0}.chat-markdown ul,.chat-markdown ol{padding-left:24px}
.chat-table-scroll{overflow-x:auto;max-width:100%;margin:16px 0;border:1px solid #3a3d49;border-radius:9px;background:#171a22}
.chat-markdown table{border-collapse:collapse;min-width:100%;font-size:.95em}.chat-markdown th,.chat-markdown td{padding:10px 14px;border-bottom:1px solid #323643;text-align:left;min-width:130px;vertical-align:top}
.chat-markdown th{background:#242936;font-weight:600}.chat-markdown tbody tr:last-child td{border-bottom:0}.chat-markdown tbody tr:nth-child(even){background:#1c202a}
.chat-interaction{margin:18px 0;padding:18px;border:1px solid #58657f;border-radius:12px;background:#181d29;max-width:800px}
.chat-interaction h3{margin:0 0 12px}.chat-interaction fieldset{border:0;padding:12px 0;margin:0;min-width:0}.chat-interaction legend{font-weight:600;margin-bottom:8px}
.chat-interaction .interaction-option{display:flex;gap:12px;padding:10px 12px;margin:8px 0;border:1px solid #3b465d;border-radius:8px;cursor:pointer}
.chat-interaction .interaction-option:has(input:checked){border-color:#a9bef7;background:#263248}.chat-interaction input[type=radio]{width:18px;height:18px;flex:none;margin:3px 0;accent-color:#a9bef7}
.interaction-option span{display:flex;flex-direction:column;gap:4px}.interaction-option small{font-size:13px}.chat-interaction textarea{min-height:74px;max-height:240px}
.interaction-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.interaction-status{font-size:13px;color:#becce3}.interaction-status[role=alert]{color:#ffaaa5}.interaction-answer{white-space:pre-wrap;margin:4px 0 14px}
@media(max-width:650px){.chat-interaction{padding:12px}.chat-markdown th,.chat-markdown td{padding:8px 10px;min-width:110px}.interaction-actions button{flex:1}}
