/* JUNO design system. Cosmos collection layouts inform spacing and navigation.
   One stylesheet owns every screen; artwork is original JUNO vector work. */
@font-face{font-family:Juno;src:url('/static/assets/fonts/BricolageGrotesque-Variable.ttf') format('truetype');font-weight:200 800;font-display:swap}
:root{--ink:#171717;--muted:#767676;--line:#ededed;--soft:#f5f5f5;--paper:#fff;--accent:#2862f5;--accent-soft:#eff4ff;--r-card:24px;--r-control:14px;--r-pill:999px;--font:Juno,-apple-system,BlinkMacSystemFont,'PingFang SC','Helvetica Neue',sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 var(--font);-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:600;letter-spacing:-.6px}h1{font-size:32px;line-height:1.3}h2{font-size:20px}h3{font-size:17px}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer;padding:0;transition:background .18s,transform .18s}button:disabled{opacity:.45;cursor:not-allowed}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #82a5ff;outline-offset:4px}svg{display:block;width:22px;height:22px;flex-shrink:0}.hidden,[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.muted{color:var(--muted);line-height:1.8}.eyebrow{display:none}.heading-dot{display:none}.error{color:#b64444;font-size:13px;line-height:1.7}.error:empty{display:none}
.primary,.send,.secondary,.new-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 22px;min-height:46px;border:1px solid var(--ink);border-radius:var(--r-pill);background:var(--ink);color:#fff;font-weight:500;font-size:14px;white-space:nowrap}.primary:hover,.send:hover,.new-button:hover{background:#333}.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.secondary:hover{background:var(--soft);border-color:#ddd}.primary svg,.secondary svg,.new-button svg{width:18px;height:18px}.small{padding:9px 16px;min-height:40px;font-size:13px}.text-button{display:inline-flex;align-items:center;gap:7px;color:var(--muted);min-height:44px;font-size:13px;padding:8px 0}.text-button:hover{color:var(--ink)}.text-button svg{width:16px;height:16px}.icon-control,.icon-button,#project-menu{display:grid;place-items:center;width:40px;height:40px;background:var(--soft);border-radius:50%;color:var(--ink)}.icon-control:hover,.icon-button:hover,#project-menu:hover{background:#ececec}.icon-control svg,.icon-button svg,#project-menu svg{width:19px;height:19px}.brandmark{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:12px;background:#171717;color:#fff;font:italic 33px Georgia;padding-right:4px;letter-spacing:-2px}.brand,.header-brand,.sidebar-brand{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:600;letter-spacing:.1px}.brand-sub,.sidebar-brand-note{display:none}.app-rail{display:none}
/* A single floating navigation pattern stays in place on every screen. */
.main{width:100%;min-height:100dvh;display:flex;flex-direction:column}.topbar{width:100%;height:96px;position:sticky;top:0;z-index:10;background:#fffffff0;backdrop-filter:blur(20px);display:flex;align-items:center;gap:12px;padding:0 40px}.header-nav{display:flex;gap:4px;position:absolute;left:50%;transform:translateX(-50%);padding:5px;background:#f7f7f7;border:1px solid #f0f0f0;border-radius:var(--r-pill)}.header-nav button{font-size:13px;min-height:38px;padding:8px 24px;border-radius:var(--r-pill);color:var(--muted);white-space:nowrap}.header-nav button:hover{color:var(--ink)}.header-nav button.active{background:#fff;color:var(--ink);box-shadow:0 1px 5px #00000006}.breadcrumbs{margin-left:auto}.crumb,.slash,#page-title{display:none}.topbar-right{display:flex;align-items:center;gap:12px}.header-account,.avatar{display:grid;place-items:center;border-radius:50%;background:#eceef1;color:#555;font-size:13px;width:38px;height:38px}.header-account:hover{background:#e3e5e8}.connection,#quick-create{display:none}.mobile-tabbar{display:none}.sidebar{display:none;position:fixed;inset:0 auto 0 0;width:280px;z-index:25;flex-direction:column;padding:30px 20px;background:#fff;border-right:1px solid var(--line);overflow:auto;box-shadow:10px 0 40px #00000008}.sidebar.expanded{display:flex}.sidebar-scrim{position:fixed;inset:0;z-index:24;background:#0003;backdrop-filter:blur(3px)}.sidebar-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.sidebar-heading .icon-control{width:30px;height:30px}.new-button{width:100%;padding:12px 16px;justify-content:flex-start;font-size:13px}.keycap{margin-left:auto;font-size:10px;opacity:.5}.sidebar-search,.large-search{display:flex;align-items:center;gap:9px;background:var(--soft);border-radius:var(--r-pill);padding:12px 15px;color:var(--muted)}.sidebar-search{margin-top:17px}.sidebar-search svg{width:16px;height:16px}.sidebar-search input,.large-search input{border:0;background:none;min-width:0;width:100%;outline:none;font-size:13px}.sidebar-search kbd{font:10px var(--font);white-space:nowrap}.workspace-links{display:grid;gap:5px;margin:24px 0 12px}.workspace-links button{display:flex;align-items:center;gap:13px;padding:12px 14px;text-align:left;border-radius:var(--r-pill);font-size:13px;color:var(--muted)}.workspace-links button.active,.workspace-links button:hover{background:var(--soft);color:var(--ink)}.workspace-links svg{width:19px;height:19px}.nav-label{display:flex;align-items:center;justify-content:space-between;margin:22px 12px 13px;font-size:11px;color:#999}.chat-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border-radius:var(--r-control);padding:12px;font-size:13px;color:var(--muted)}.chat-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.chat-icon svg{width:16px;height:16px}.chat-item:hover,.chat-item.active{background:var(--soft);color:var(--ink)}.chat-dot{display:none}.sidebar-bottom{margin-top:auto;padding-top:40px}#knowledge-nav{display:none}.account{display:flex;gap:11px;align-items:center;padding:18px 0 0;border-top:1px solid var(--line)}.account>div{flex:1}.account b,.account small{display:block;font-size:12px}.account small{font-size:10px;color:var(--muted);margin-top:3px}.account button svg{width:17px;height:17px}
/* Collections: no extra container around an image and its caption. */
.home-view{width:100%;max-width:1100px;margin:0 auto;padding:38px 40px 70px}.workspace-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 26px}.workspace-card{display:block;position:relative;min-width:0;text-align:left;border-radius:var(--r-card)}.workspace-art{display:block;aspect-ratio:1.55;width:100%;border-radius:var(--r-card);background:var(--soft);overflow:hidden;transition:transform .25s}.workspace-art img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s}.workspace-card:hover .workspace-art img{transform:scale(1.045)}.workspace-card:active .workspace-art{transform:scale(.985)}.workspace-card-copy{display:block;padding:17px 2px 0}.workspace-card-copy b{display:block;font-size:19px;font-weight:600;letter-spacing:-.3px;padding-right:30px}.workspace-card-copy small{display:block;font-size:12px;line-height:1.7;color:var(--muted);margin-top:4px}.workspace-card-arrow{position:absolute;right:0;bottom:24px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:#777}.workspace-card-arrow svg{width:14px;height:14px}.workspace-card:hover .workspace-card-arrow{background:var(--ink);color:#fff}
/* Shared page rhythm, title, icon tile and card surfaces. */
.module-view,.projects-view,.settings-view,.knowledge-view{width:100%;max-width:1100px;margin:0 auto;padding:30px 40px 70px}.module-heading{display:flex;align-items:center;gap:17px;margin:30px 0 48px}.module-heading h1{margin:0 0 7px}.module-heading p,.page-heading p{font-size:13px;color:var(--muted)}.module-heading .primary{margin-left:auto}.workspace-symbol,.module-icon,.task-icon,#brief-icon,.empty-icon{display:grid;place-items:center;flex-shrink:0;background:var(--soft);color:var(--ink);border-radius:18px;width:54px;height:54px}.workspace-symbol svg{width:26px;height:26px}.module-icon{width:39px;height:39px;border-radius:13px}.module-icon svg{width:21px;height:21px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 18px}.section-heading h2{font-size:16px;font-weight:500}.count-badge{display:inline-block;padding:2px 7px;background:var(--soft);border-radius:8px;font-size:11px;color:var(--muted);margin-left:9px}.task-rows{border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden}.task-row{display:flex;align-items:center;gap:15px;width:100%;text-align:left;padding:22px;min-height:90px;border-bottom:1px solid var(--line)}.task-row:last-child{border:0}.task-row:hover{background:#fafafa}.task-icon{width:42px;height:42px;border-radius:14px}.task-icon svg{width:20px;height:20px}.task-row-copy{flex:1;min-width:0}.task-row-copy b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:500}.task-row-copy small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.task-date{font-size:11px;color:#999}.row-chevron svg{width:15px;height:15px;color:#aaa}.workspace-empty,.browser-empty,.conversation-empty{text-align:center;padding:70px 24px}.workspace-empty>span,.browser-empty>svg,.conversation-empty>svg{display:grid;place-items:center;width:60px;height:60px;border-radius:20px;background:var(--soft);margin:0 auto 25px;color:#999}.workspace-empty>span svg{width:26px;height:26px}.workspace-empty h2,.browser-empty h3,.conversation-empty h3{font-size:20px;font-weight:500}.workspace-empty p,.browser-empty p,.conversation-empty p{font-size:13px;color:var(--muted);line-height:1.8;margin:12px 0 28px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 30px}.page-heading p{margin-top:10px}.large-search{margin:25px 0 22px;max-width:500px}.large-search svg{width:18px;height:18px}.segmented,.knowledge-tabs{display:flex;gap:4px;background:var(--soft);padding:5px;width:max-content;max-width:100%;border-radius:var(--r-pill)}.segmented button,.knowledge-tabs button{min-height:38px;padding:8px 22px;font-size:13px;color:var(--muted);border-radius:var(--r-pill);white-space:nowrap}.segmented button.active,.knowledge-tabs button.active{color:var(--ink);background:#fff;box-shadow:0 1px 5px #00000006}.project-tabs{margin-bottom:30px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.project-card{text-align:left;border:0;border-radius:var(--r-card);background:none;min-width:0}.project-card:hover .project-cover{background:#eee}.project-cover{border-radius:var(--r-card);height:160px;background:var(--soft);padding:24px;display:flex;align-items:flex-end;justify-content:space-between}.project-cover svg{width:54px;height:54px;stroke-width:1.1}.project-cover>span{padding:5px 9px;background:#fff;border-radius:var(--r-pill);font-size:10px;color:#888}.project-card-copy{display:block;padding:17px 2px 0}.project-card-copy b{display:block;font-size:19px;font-weight:500;overflow-wrap:anywhere}.project-card-copy>span{display:block;font-size:12px;color:var(--muted);margin-top:7px}.project-card-copy small{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#999;margin-top:25px}.project-card-copy svg{width:16px;height:16px}.empty-projects{display:flex;align-items:center;gap:18px;border:1px solid var(--line);border-radius:var(--r-card);padding:25px}.empty-projects b{font-size:15px;font-weight:500}.empty-projects p{font-size:12px;color:var(--muted);margin-top:8px}.empty-projects .primary{margin-left:auto}.settings-profile{display:flex;gap:17px;align-items:center;border:1px solid var(--line);border-radius:var(--r-card);padding:26px;margin:28px 0 24px}.settings-profile>.avatar{width:52px;height:52px;font-size:20px}.settings-profile>div{min-width:0}.settings-profile h2{font-size:19px}.settings-profile p{font-size:13px;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.status-pill{margin-left:auto;padding:6px 10px;background:var(--soft);border-radius:var(--r-pill);font-size:11px;white-space:nowrap;color:var(--muted)}.settings-group{border:1px solid var(--line);border-radius:var(--r-card);padding:0 24px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:21px 0;font-size:14px;border-bottom:1px solid var(--line)}.setting-row:last-child{border:0}.setting-row>span:first-child{display:flex;align-items:center;gap:14px}.setting-row svg{width:19px;height:19px;color:#999}.setting-row .muted{font-size:12px}.logout-action{width:100%;margin-top:25px}
/* Forms use the same typography, controls and spacing as the rest of the app. */
.design-view{width:100%;max-width:1260px;margin:0 auto;position:relative;padding-bottom:24px}.welcome,.composer-wrap{width:calc(100% - 80px);max-width:780px;margin:22px auto 16px}.wizard-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.welcome h1{font-size:32px;margin-bottom:10px}.welcome>p{font-size:14px;color:var(--muted);line-height:1.8}.wizard-steps{display:flex;align-items:center;gap:13px;margin:22px 0}.wizard-steps button{display:flex;align-items:center;gap:8px;font-size:12px;min-height:42px;color:#999;white-space:nowrap}.wizard-steps button span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--soft);font-size:11px}.wizard-steps button.active{color:var(--ink)}.wizard-steps button.active span{background:var(--ink);color:#fff}.wizard-steps button.done span{background:#e9e9e9;color:#555}.wizard-steps i{height:1px;background:var(--line);flex:1;max-width:80px}.type-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.type-card{position:relative;text-align:left;padding:22px;border:1px solid var(--line);border-radius:var(--r-card);min-width:0;min-height:166px;background:#fff}.type-card:hover{border-color:#ccc}.type-card .module-icon{margin-bottom:20px}.type-card b{display:block;font-size:14px;font-weight:500;margin-bottom:7px}.type-card small{font-size:11px;color:var(--muted);line-height:1.7}.type-card.selected{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}.type-card.selected .module-icon{background:var(--ink);color:white}.card-arrow{position:absolute;right:18px;top:20px;color:#aaa}.card-arrow svg{width:15px;height:15px}.type-card.selected .card-arrow{color:var(--ink);transform:rotate(45deg)}.module-description{margin:20px 0 0;padding:16px 19px;background:var(--soft);border-radius:var(--r-control);font-size:12px;line-height:1.8;color:var(--muted)}.wizard-actions{display:flex;align-items:center;gap:12px;margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line)}.wizard-actions>span{font-size:12px;color:var(--muted)}.wizard-actions .primary{margin-left:auto}.form-group{border:1px solid var(--line);border-radius:var(--r-card);padding:20px;margin:18px 0}.group-label{font-size:14px;font-weight:500;margin-bottom:19px}.project-picker,.scope-picker{display:flex;gap:20px;flex-wrap:wrap}.project-picker label,.scope-picker label{display:grid;gap:9px;flex:1;min-width:140px;font-size:12px;color:var(--muted)}input,select,textarea{max-width:100%}input:where(:not([type='checkbox']):not([type='radio'])),select,dialog textarea,.knowledge-card textarea{border:1px solid var(--line);border-radius:var(--r-control);padding:12px 14px;min-height:46px;background:#fafafa;box-shadow:none;font-size:14px;min-width:0;width:100%}input:disabled,select:disabled{color:#999;background:#f5f5f5}input:focus,select:focus,dialog textarea:focus{background:#fff;border-color:#bbb}.sidebar-search input,.large-search input{min-height:0;padding:0;border:0;background:none;border-radius:0;font-size:13px}.form-group input[aria-invalid='true']{border-color:#cc6d6d;background:#fff8f8}.field-note{font-size:12px;color:var(--muted);line-height:1.8;margin:15px 4px}.brief-summary{display:flex;align-items:center;gap:15px;border:1px solid var(--line);border-radius:var(--r-card);padding:23px;margin:22px 0}.brief-summary b{font-size:15px;font-weight:500}.brief-summary p{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.8}.brief-summary>div{flex:1;min-width:0}.brief-summary .text-button{margin-left:auto;flex-shrink:0;white-space:nowrap}.brief-hint{font-size:14px;line-height:1.9;color:var(--muted);margin:20px 4px}.composer-wrap{margin-top:22px}.composer{padding:22px;border:1px solid #e5e5e5;border-radius:var(--r-card);background:#fff;box-shadow:0 8px 30px #00000003}.composer:focus-within{border-color:#bcbcbc}.composer textarea{display:block;border:0;padding:0;width:100%;resize:vertical;min-height:105px;background:transparent;outline:none;font-size:16px;line-height:1.9}.composer textarea::placeholder{color:#aaa}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px}.composer-tools{display:flex;align-items:center;gap:12px;color:#999;font-size:12px}.composer select{width:auto;border:0;background:none;padding:8px;font-size:13px;min-height:40px;color:var(--muted)}.composer-tools.text-task #ratio,.composer-tools.text-task .divider{display:none}.divider{width:1px;height:16px;background:var(--line)}.send{font-size:13px;padding:10px 20px;min-height:44px}.send span{font-size:18px}.composer-foot{display:flex;justify-content:space-between;font-size:10px;color:#999;margin:14px 3px}.file-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.file-chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;padding:7px 11px;border:1px solid var(--line);background:var(--soft);border-radius:10px;max-width:100%;overflow-wrap:anywhere}.file-chip a{min-width:0;overflow-wrap:anywhere}.upload-status{font-size:12px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 3px;line-height:1.8}.upload-status:empty{display:none}.upload-help{font-size:11px;color:var(--muted);line-height:1.9;margin:12px 3px}.upload-help summary{cursor:pointer}.upload-help p{margin-top:9px;background:var(--soft);padding:15px;border-radius:var(--r-control)}.drop-hint{display:none;pointer-events:none}.design-view.dragging:after{content:'';position:absolute;inset:15px;z-index:20;border:2px dashed var(--accent);border-radius:var(--r-card);background:#eef3ffdb;pointer-events:none}.design-view.dragging .drop-hint{display:block;position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);z-index:21;background:#fff;padding:20px 30px;border-radius:var(--r-card);white-space:nowrap}
/* Existing task output, research and company knowledge share the same surfaces. */
.task-segments{display:none}.scope-summary{display:flex;gap:12px;align-items:center;margin:24px 40px 0;font-size:12px;color:var(--muted);line-height:1.9}.scope-summary button{margin-left:auto}.project-area{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;padding:30px 40px}.conversation{min-width:0;max-height:calc(100dvh - 390px);overflow:auto;padding:0 5px 15px}.message{margin-bottom:26px;font-size:15px;line-height:1.9;overflow-wrap:anywhere;white-space:pre-wrap}.message-label{font-size:10px;color:#999;margin-bottom:9px;letter-spacing:1px}.message.user .message-body{padding:17px 20px;background:var(--soft);border-radius:20px}.message.assistant .message-body{padding:5px 0}.feedback-link{color:var(--muted);font-size:12px;margin-top:9px}.result-panel{border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden;position:sticky;top:115px;background:#fff}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 22px;border-bottom:1px solid var(--line);font-size:13px}.board-title{display:flex;align-items:center;gap:9px}.board-title svg{width:18px;height:18px}.result-heading select{border:0;background:none;width:auto;max-width:160px;padding:5px;font-size:12px;min-height:30px;color:var(--muted)}.result-empty{padding:80px 24px;text-align:center}.result-empty>span{display:block;font-size:40px;color:#ccc;margin-bottom:22px}.result-empty b{font-size:15px;font-weight:500;color:var(--muted)}.result-empty p{font-size:12px;color:#999;line-height:1.8;margin-top:11px}#image-open{display:block}#result-image{display:block;width:100%;max-height:530px;object-fit:contain;background:var(--soft)}.result-text{white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.9 var(--font);padding:24px;max-height:65dvh;overflow:auto;margin:0}.result-copy{padding:23px}.result-copy h3{font-size:17px;font-weight:500}.result-copy p{font-size:13px;color:var(--muted);line-height:1.9;white-space:pre-wrap;margin-top:10px;max-height:140px;overflow:auto}.result-actions{display:flex;justify-content:space-between;gap:10px;margin-top:24px}.progress{border:1px solid var(--line);background:var(--soft);border-radius:var(--r-control);padding:18px;margin:14px 0}.progress-heading{display:flex;align-items:center;gap:9px;font-size:13px}.progress-heading b{font-weight:500}.live-badge{margin-left:auto;color:var(--accent);font-size:9px;letter-spacing:1px}.spinner{width:12px;height:12px;border:2px solid #ccc;border-top-color:var(--ink);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#progress-log{font-size:12px;color:var(--muted);line-height:1.9;margin-top:12px}#stream-text{font-size:14px;line-height:1.9;white-space:pre-wrap;margin-top:16px}.knowledge-view>h1{margin:8px 0 13px}.knowledge-view>.muted{font-size:14px}.knowledge-filters{display:flex;gap:13px;margin:30px 0 25px}.knowledge-filters select{width:auto;min-width:130px}.knowledge-tabs{margin:25px 0}.knowledge-card{border:1px solid var(--line);border-radius:var(--r-card);padding:24px;margin:18px 0}.knowledge-card p{font-size:15px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.knowledge-card small{display:block;font-size:12px;line-height:1.8;color:var(--muted);margin-top:12px}.knowledge-card textarea{margin-top:14px;line-height:1.8}.knowledge-actions{display:flex;gap:9px;margin-top:17px}.empty-state{font-size:13px;color:var(--muted);line-height:1.9;padding:25px 10px}.invite-box,.members-box{padding:24px;border:1px solid var(--line);border-radius:var(--r-card);margin:24px 0;background:#fff}.invite-box{display:flex;gap:18px;flex-wrap:wrap;align-items:center}.invite-box b{font-size:15px;font-weight:500}.invite-box p{font-size:12px;line-height:1.8;color:var(--muted);margin-top:9px}.invite-box button{margin-left:auto}.invite-box select{width:auto}.invite-box output{width:100%;overflow-wrap:anywhere;user-select:all;font-size:13px}.members-box summary{cursor:pointer;font-size:14px}.members-box .muted{font-size:13px;margin-top:15px}.member-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:18px 0;border-bottom:1px solid var(--line);font-size:13px}.member-row small{font-size:12px;color:var(--muted)}.member-row select{width:auto;min-height:38px}.member-row label{white-space:nowrap}.archive-help{font-size:13px;line-height:1.9;padding-left:20px;color:var(--muted);margin:18px 0}#archive-form{display:grid;gap:15px;margin:24px 0}#archive-form label{display:grid;gap:8px;font-size:12px;color:var(--muted)}#archive-settings-status,.archive-state{font-size:12px;line-height:1.8;color:var(--muted);margin:14px 0}.research-panel{margin:24px 0}.research-run{border:1px solid var(--line);border-radius:var(--r-card);margin:16px 0;overflow:hidden}.research-run>summary{cursor:pointer;padding:19px;font-size:14px;font-weight:500}.research-run>summary span{font-size:12px;color:var(--muted);margin-left:8px}.research-content{padding:0 20px 22px;font-size:14px;line-height:1.9;overflow-wrap:anywhere}.research-content h4{font-size:13px;margin:19px 0 8px}.research-content p{white-space:pre-wrap;margin:8px 0}.research-content small,.research-queries{font-size:12px;color:var(--muted)}.research-finding{padding:12px 0;border-bottom:1px solid var(--line)}.research-note{padding:13px;background:var(--soft);border-radius:var(--r-control)}.research-sources{list-style:none;padding:0}.research-sources li{padding:14px 0;border-bottom:1px solid var(--line)}.research-sources a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.research-sources summary{font-size:12px;color:var(--muted);cursor:pointer;margin-top:7px}.research-sources details p{max-height:240px;overflow:auto}
/* Account and dialogs are part of this same design system. */
.auth{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:45px 24px;gap:34px}.auth-story>div,.auth-story>.story-foot,.auth-story .brand-sub{display:none}.auth-form{display:flex;flex-direction:column;gap:17px;width:100%;max-width:390px;border:1px solid var(--line);border-radius:var(--r-card);padding:32px}.auth-form h2{font-size:27px}.auth-form .muted{font-size:13px}.auth-form label{display:grid;gap:8px;font-size:12px;color:var(--muted)}.auth-form input{font-size:16px}.auth-form .primary{margin-top:8px}.auth-form .text-button{justify-content:center}.auth-form small{font-size:11px;line-height:1.8;color:#999}.auth-form #auth-error:empty{display:none}dialog{border:1px solid var(--line);border-radius:var(--r-card);padding:30px;width:calc(100% - 48px);max-width:500px;color:var(--ink);background:#fff}dialog::backdrop{background:#0004;backdrop-filter:blur(4px)}dialog h2{font-size:24px;line-height:1.5;margin:15px 0 12px}dialog p{font-size:13px;line-height:1.9}.dialog-symbol svg{width:31px;height:31px;color:#aaa}.feedback-label{display:grid;gap:10px;font-size:12px;color:var(--muted);margin:18px 0}.feedback-label select{margin:0}dialog textarea{font-size:15px;line-height:1.9;min-height:130px;resize:vertical}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);z-index:50;background:var(--ink);color:#fff;border-radius:var(--r-pill);padding:14px 23px;max-width:calc(100vw - 40px);width:max-content;font-size:13px;box-shadow:0 6px 30px #0002}.toast.error{background:#873c3c}
@media(max-width:900px){.topbar{padding:0 25px}.home-view,.module-view,.projects-view,.settings-view,.knowledge-view{padding-left:28px;padding-right:28px}.workspace-grid{gap:32px 22px}.workspace-card-copy b{font-size:17px}.workspace-card-copy small{font-size:11px}.workspace-card-arrow{bottom:23px;width:24px;height:24px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.header-nav button{padding:8px 18px}.project-area{gap:24px;padding:28px}.scope-summary{margin-left:28px;margin-right:28px}}
@media(max-width:760px){.workspace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-art{aspect-ratio:1.3}.project-area{display:block}.task-segments{display:flex;margin:25px 28px 0;width:calc(100% - 56px)}.task-segments button{flex:1}.result-panel{position:static}.conversation{max-height:none}.type-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){:root{--r-card:22px;--r-control:13px}.main{padding-bottom:104px}.topbar{height:82px;padding:0 22px;gap:10px}.header-brand{font-size:20px;gap:9px}.brandmark{width:33px;height:33px;font-size:31px;border-radius:11px}.header-nav{display:none}.header-account{width:34px;height:34px;font-size:12px}.topbar-right{gap:0}#project-menu{width:34px;height:34px;background:none}#project-menu svg{width:19px;height:19px}.home-view{padding:19px 22px 30px;max-width:520px}.workspace-grid{gap:25px 16px}.workspace-art{aspect-ratio:1.1}.workspace-card-copy{padding:12px 1px 0}.workspace-card-copy b{font-size:14px;padding-right:0;letter-spacing:-.2px;white-space:nowrap}.workspace-card-copy small{font-size:10px;line-height:1.7;margin-top:3px}.workspace-card-arrow{display:none}.workspace-card:hover .workspace-art img{transform:none}.mobile-tabbar{position:fixed;display:flex;align-items:center;justify-content:space-around;padding:5px;left:25px;right:25px;bottom:calc(15px + env(safe-area-inset-bottom));z-index:15;border:1px solid #ededed;border-radius:var(--r-pill);background:#fffffff2;backdrop-filter:blur(24px);height:62px;box-shadow:0 4px 22px #00000008}.mobile-tabbar button{display:flex;align-items:center;justify-content:center;flex:1;flex-direction:column;gap:3px;border-radius:var(--r-pill);font-size:9px;height:50px;color:#999}.mobile-tabbar svg{width:20px;height:20px}.mobile-tabbar button.active{color:var(--ink);background:var(--soft)}.sidebar{width:min(300px,85vw);padding:26px 20px}.module-view,.projects-view,.settings-view,.knowledge-view{padding:18px 22px 35px}.module-heading{gap:13px;flex-wrap:wrap;margin:25px 0 34px}.module-heading h1{font-size:25px;margin-bottom:6px}.module-heading p{font-size:11px}.workspace-symbol{width:47px;height:47px;border-radius:16px}.workspace-symbol svg{width:23px;height:23px}.module-heading .primary{width:100%;margin:12px 0 0}.task-row{padding:19px 16px;gap:11px}.task-icon{width:35px;height:35px;border-radius:12px}.task-icon svg{width:18px;height:18px}.task-row-copy b{font-size:13px}.task-row-copy small{font-size:10px}.task-date{display:none}.workspace-empty,.browser-empty{padding:48px 18px}.workspace-empty h2,.browser-empty h3{font-size:18px;line-height:1.6}.workspace-empty p,.browser-empty p{font-size:12px}.page-heading{margin:13px 0 25px;align-items:flex-start;gap:12px}.page-heading h1,.knowledge-view h1{font-size:27px}.page-heading p{font-size:11px;line-height:1.8;margin-top:8px}.page-heading .primary{font-size:11px;min-height:40px;padding:10px 13px;gap:6px;margin-top:0}.page-heading .primary svg{width:15px;height:15px}.project-grid{gap:15px}.project-cover{height:115px;padding:18px}.project-cover svg{width:42px;height:42px}.project-card-copy{padding:12px 1px 0}.project-card-copy b{font-size:14px}.project-card-copy>span{font-size:10px}.project-card-copy small{font-size:10px;margin-top:20px}.large-search{padding:13px 15px}.segmented button,.knowledge-tabs button{font-size:12px;min-height:40px;padding:8px 17px}.empty-projects{flex-wrap:wrap;padding:22px}.empty-projects .primary{width:100%;margin:8px 0 0}.settings-profile{padding:21px 17px;gap:12px}.settings-profile h2{font-size:18px}.settings-profile p{font-size:11px}.settings-profile>.avatar{width:45px;height:45px;font-size:18px}.status-pill{font-size:9px;padding:5px 8px}.settings-group{padding:0 18px}.setting-row{font-size:12px;gap:10px}.setting-row>span:first-child{gap:11px}.setting-row .muted{font-size:10px}.welcome,.composer-wrap{width:calc(100% - 44px);margin:19px auto}.welcome h1{font-size:27px}.welcome>p{font-size:12px}.wizard-heading{margin-bottom:22px}.wizard-steps{gap:9px;margin:26px 0}.wizard-steps button{font-size:10px;gap:5px;min-height:44px}.wizard-steps button span{width:22px;height:22px;font-size:10px}.wizard-steps i{max-width:18px}.type-cards{gap:12px}.type-card{padding:19px 15px;min-height:160px}.type-card b{font-size:13px}.type-card small{font-size:10px}.type-card .module-icon{margin-bottom:19px;width:34px;height:34px}.card-arrow{top:17px;right:14px}.module-description{font-size:11px;padding:16px}.wizard-actions{gap:10px;margin-top:23px}.wizard-actions>span{font-size:10px}.wizard-actions .primary,.wizard-actions .secondary{font-size:12px;padding:11px 15px}.form-group{padding:22px 19px;margin:17px 0}.group-label{font-size:13px}.project-picker,.scope-picker{display:flex;flex-direction:column;gap:17px}.project-picker label,.scope-picker label{width:100%;min-width:0;font-size:12px}.form-group input,.form-group select{font-size:16px;min-height:48px}.field-note{font-size:11px}.brief-summary{padding:18px;gap:12px}.brief-summary #brief-icon{width:39px;height:39px;border-radius:13px}.brief-summary #brief-icon svg{width:21px;height:21px}.brief-summary b{font-size:14px}.brief-summary p{font-size:11px}.brief-summary .text-button{font-size:11px}.brief-hint{font-size:12px}.composer{padding:20px}.composer textarea{font-size:16px;min-height:110px}.composer-bottom{gap:9px;margin-top:15px}.composer-tools{gap:8px}.composer select{font-size:16px;min-height:44px;padding:8px 2px}.send{font-size:12px;padding:10px 17px;min-height:44px;gap:10px}#kind-pill{display:none}.composer-foot{font-size:9px}.composer-foot span:last-child{display:none}.upload-help{font-size:10px}.file-chip{font-size:11px}.task-segments{margin:20px 22px 0;width:calc(100% - 44px)}.task-segments button{font-size:12px}.scope-summary{font-size:10px;margin:18px 22px 0;flex-wrap:wrap;gap:7px}.project-area{padding:24px 22px}.message{font-size:14px;line-height:1.9}.message.user .message-body{padding:16px 18px}.result-heading{padding:17px 19px}.result-text{font-size:14px;padding:20px;max-height:none}.result-copy{padding:20px}.result-copy p{font-size:12px}.result-actions{gap:8px}.result-actions .small{font-size:12px;padding:9px 13px}.knowledge-view>.muted{font-size:12px}.knowledge-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:25px 0}.knowledge-filters select{width:100%;min-width:0;font-size:12px;padding:12px}.knowledge-filters select:last-child{grid-column:1/-1}.knowledge-tabs{width:100%;gap:0;padding:4px}.knowledge-tabs button{flex:1;font-size:10px;padding:8px 7px;min-height:42px}.knowledge-card{padding:20px}.knowledge-card p{font-size:14px}.invite-box,.members-box{padding:21px 19px}.invite-box{gap:16px}.invite-box select,.invite-box button{width:100%;margin:0}.invite-box select,#archive-form input{font-size:16px}.members-box .muted{font-size:12px}.archive-help{font-size:12px}.member-row{font-size:12px}.auth{padding:36px 24px;gap:28px}.auth-form{padding:29px 27px;gap:17px}.auth-form h2{font-size:26px}.toast{bottom:calc(99px + env(safe-area-inset-bottom));font-size:12px;border-radius:18px}dialog{position:fixed;inset:auto 0 0;width:100%;max-width:100%;margin:0;border:0;border-radius:26px 26px 0 0;max-height:88dvh;overflow:auto;padding:32px 24px calc(25px + env(safe-area-inset-bottom))}dialog:before{content:'';position:absolute;top:11px;left:50%;transform:translateX(-50%);width:34px;height:4px;border-radius:99px;background:#ddd}dialog h2{font-size:23px}dialog textarea,dialog select{font-size:16px}.dialog-actions button{flex:1}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.workspace-card:hover .workspace-art img,.workspace-card:active .workspace-art{transform:none}}

/* Uploaded white logo: invert its rendering on white surfaces, preserve source pixels. */
.brand-logo{display:block;width:126px;height:auto;filter:invert(1);object-fit:contain}.auth-story .brand-logo{width:160px}.sidebar-brand .brand-logo{width:126px}
@media(max-width:600px){.header-brand .brand-logo{width:110px}.auth-story .brand-logo{width:150px}}

/* Short desktop windows: keep business cards and setup actions in view. */
@media(min-width:901px) and (max-height:820px){
 .topbar{height:72px}.home-view{padding-top:22px;padding-bottom:22px}.workspace-grid{row-gap:26px}.workspace-art{aspect-ratio:auto;height:clamp(120px,calc((100dvh - 304px)/2),210px)}
 .welcome{margin:12px auto}.welcome h1{font-size:28px}.welcome>p{font-size:13px;line-height:1.6}.wizard-heading{margin-bottom:10px}.wizard-heading .text-button{min-height:32px;padding:4px 0}.wizard-steps{margin:16px 0}.form-group{padding:16px;margin:14px 0}.group-label{margin-bottom:14px}.field-note{margin:10px 4px}.wizard-actions{margin-top:16px;padding-top:12px}.design-view{padding-bottom:16px}
}
/* One centered conversation, with a stable composer below it. */
#workspace[data-view='task'] .main{height:100dvh;min-height:0;overflow:hidden;padding-bottom:0}
#workspace[data-view='task'] .topbar{height:64px;flex-shrink:0}
#workspace[data-view='task'] .page-backbar{max-width:960px;padding:4px 28px}
#workspace[data-view='task'] .design-view{flex:1;min-height:0;max-width:960px;display:flex;flex-direction:column;padding:0 28px 16px}
#workspace[data-view='task'] .scope-summary{flex-shrink:0;margin:0 0 12px;font-size:11px}
#workspace[data-view='task'] .project-area{display:flex;flex:1;min-height:0;overflow:hidden;padding:0;gap:0}
#workspace[data-view='task'] .conversation{width:100%;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px 16px 24px}
#workspace[data-view='task'] .composer-wrap{flex-shrink:0;margin:0;width:100%;max-width:none;min-width:0;padding-top:8px}
#workspace[data-view='task'] .composer{padding:12px 16px;border-radius:22px}
#workspace[data-view='task'] .composer textarea{height:50px;min-height:50px;max-height:120px;resize:none;font-size:15px;line-height:1.7}
/* Keep the composer height stable while focus moves to attachment controls. */
#workspace[data-view='task'] .composer-bottom{margin-top:6px}
#workspace[data-view='task'] .composer-foot{display:none}
#workspace[data-view='task'] .message{margin-bottom:32px;font-size:15px;line-height:1.9;white-space:normal}
.message-body{white-space:pre-wrap}
#workspace[data-view='task'] .message.user{width:fit-content;max-width:82%;margin-left:auto}
#workspace[data-view='task'] .message.user .message-label{text-align:right}
#workspace[data-view='task'] .message.user .message-body{padding:12px 18px;border-radius:20px 20px 5px 20px}
#workspace[data-view='task'] .message.assistant{margin-right:auto;width:100%}
.chat-artifact{max-width:600px;margin:18px 0 8px;white-space:normal}
.artifact-preview{display:block;width:100%;text-align:left;border-radius:16px;overflow:hidden;background:var(--soft);cursor:zoom-in}
.artifact-preview img{display:block;width:100%;height:auto;max-height:380px;object-fit:contain}
.artifact-caption{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:11px;color:var(--muted);margin-top:5px}
.artifact-caption>span{min-width:0;overflow-wrap:anywhere}.artifact-caption>a{flex-shrink:0}
.artifact-description{font-size:12px;color:var(--muted)}.artifact-description summary{cursor:pointer;min-height:28px}.artifact-description p{white-space:pre-wrap;line-height:1.8;margin:8px 0}
.text-artifact{border:1px solid var(--line);border-radius:16px;padding:16px}.text-artifact summary{cursor:pointer}.text-artifact pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.8 var(--font)}
#image-dialog{inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;padding:64px 32px;border:0;border-radius:0;background:#151515e8;overflow:hidden;color:#fff}
#image-dialog[open]{display:grid;place-items:center}
#image-dialog::before{display:none}#image-dialog::backdrop{background:#0009;backdrop-filter:blur(8px)}
#image-dialog-picture{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 128px);object-fit:contain;border-radius:4px}
#image-dialog-close{position:absolute;right:24px;top:16px;width:40px;height:40px;font-size:28px;border-radius:50%;background:#ffffff24;color:#fff}
.lightbox-hint{position:absolute;bottom:20px;left:0;width:100%;text-align:center;color:#ccc;font-size:12px;pointer-events:none}
@media(max-width:760px){
 #workspace[data-view='task'] .mobile-tabbar{display:none}
 #workspace[data-view='task'] .page-backbar{padding:4px 18px 8px;flex-wrap:nowrap;gap:12px}
 #workspace[data-view='task'] #task-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;width:auto}
 #workspace[data-view='task'] .page-backbar button{font-size:12px;padding:8px 12px}
 #workspace[data-view='task'] .design-view{padding:0 14px max(12px,env(safe-area-inset-bottom))}
 #workspace[data-view='task'] .scope-summary{margin:0 4px 6px;font-size:10px}
 #workspace[data-view='task'] .conversation{padding:16px 4px 20px}
 #workspace[data-view='task'] .message{font-size:14px;margin-bottom:26px}
 #workspace[data-view='task'] .message.user{max-width:90%}
 #workspace[data-view='task'] .composer textarea{font-size:16px}
 #image-dialog{padding:60px 12px}#image-dialog-picture{max-height:calc(100dvh - 120px)}
}
@media(max-width:760px){.conversation,.result-text,.result-copy p{max-height:none;overflow:visible}}
@media(max-width:600px){.main{padding-bottom:calc(90px + env(safe-area-inset-bottom))}.home-view{padding-bottom:16px}.design-view{padding-bottom:16px}}
/* A drawer or modal owns scrolling while open, keeping its page in place. */
html:has(.sidebar.expanded),html:has(dialog[open]){overflow:hidden}.sidebar{overscroll-behavior:contain;scrollbar-gutter:stable}dialog{overscroll-behavior:contain}
.file-chips:empty{display:none}
@media(min-width:901px) and (max-height:820px){
 .composer-wrap{margin-top:12px;margin-bottom:12px}.composer{padding:18px 20px}.composer textarea{min-height:88px}.composer-bottom{margin-top:14px}.composer-foot{display:none}.upload-help{margin:8px 3px}
}
html{scrollbar-gutter:stable}
@media(max-width:600px){.main{padding-bottom:calc(84px + env(safe-area-inset-bottom))}.home-view .workspace-art{max-height:clamp(105px,calc((100dvh - 414px)/3),160px)}}

@media(max-width:600px){.composer-foot{display:none}.composer-wrap{margin-bottom:8px}.upload-help{margin:8px 3px}.brief-hint{margin:16px 4px}}
@media(min-width:761px){#workspace[data-view='task'] .upload-status{max-height:80px;overflow:auto}}

@media(max-width:600px){.design-view{padding-bottom:4px}}

/* Keep a visible return path on detail and secondary pages. */
.page-backbar{display:flex;align-items:center;gap:18px;width:100%;max-width:1260px;margin:0 auto;padding:8px 40px 4px;flex-shrink:0;min-width:0}
.page-backbar button{flex-shrink:0;color:var(--ink)}
#task-title{font-size:17px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;margin:0}
@media(max-width:900px){.page-backbar{padding-left:28px;padding-right:28px}}
@media(max-width:600px){.page-backbar{padding:4px 22px 8px;gap:12px;flex-wrap:wrap}.page-backbar button{min-height:44px}#task-title{font-size:16px;width:100%;white-space:normal;overflow-wrap:anywhere}}

/* Attachment and output details expand only when requested. */
.materials-toolbar{display:flex;align-items:center;gap:14px;min-width:0;margin-bottom:6px}
.materials-toolbar .text-button{min-height:32px;padding:4px 0;flex-shrink:0;color:var(--ink)}
#materials-count{padding:0 7px;border-radius:8px;background:var(--soft);font-size:11px}
#upload-summary{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#materials-dialog{max-width:720px;max-height:85dvh;overflow:auto}
.materials-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.materials-heading h2{margin:0}
#materials-dialog .file-chips{margin-top:20px;display:grid;grid-template-columns:1fr;max-height:none;overflow:visible}
#materials-dialog .file-chip{padding:12px 14px;white-space:normal;overflow-wrap:anywhere}
#materials-dialog .upload-status{max-height:none;overflow:visible}
.result-details{position:relative;font-size:12px;color:var(--muted)}
.result-details>summary{cursor:pointer;min-height:28px;display:list-item;list-style-position:inside;line-height:28px}
.result-details>div{max-height:130px;overflow:auto;padding:10px 0}
.result-details h3{font-size:14px;color:var(--ink)}
.result-details p{max-height:none;overflow:visible;font-size:12px;margin-top:6px}

@media(max-width:760px){.materials-toolbar{gap:10px}#materials-dialog{max-height:85dvh}.result-copy{padding:16px}.result-actions{margin-top:10px}}

/* Provider balance stays beside the task menu; API credentials never reach the UI. */
.breadcrumbs{display:flex;align-items:center;gap:12px}
.kie-balance{display:flex;align-items:center;gap:8px;white-space:nowrap;background:var(--soft);border-radius:999px;padding:0 12px;min-height:36px;font-size:11px}
#kie-credit-refresh{display:flex;align-items:center;gap:5px;min-height:36px;color:var(--muted)}
#kie-credit-value{color:var(--ink);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.kie-balance.low{background:#fff3df}.kie-balance.low #kie-credit-value,#kie-topup{color:#995500}#kie-topup{text-decoration:underline;text-underline-offset:3px}
.kie-balance.unavailable #kie-credit-value{color:var(--muted);font-size:11px}
@media(max-width:1000px) and (min-width:601px){.header-nav button{padding-left:14px;padding-right:14px}.header-brand .brand-logo{width:100px}}
@media(max-width:600px){.breadcrumbs{gap:5px}.kie-balance{padding:0 8px;gap:5px;font-size:10px}#kie-credit-value{font-size:11px}.credit-unit{display:inline}.topbar{gap:6px}.header-brand .brand-logo{width:92px}}

/* One compact row of numbered materials; names appear in an unclipped tooltip. */
.material-strip{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;padding:4px 2px 7px;margin-bottom:5px;scrollbar-width:thin}
.material-strip:empty{display:none}
.material-item{position:relative;flex:0 0 58px;width:58px;padding-top:9px}
.material-delete{position:absolute;z-index:1;right:-4px;top:0;display:grid;place-items:center;width:26px;height:26px;min-height:26px;padding:0;border:1px solid #dedede;border-radius:50%;background:#fff;color:#737373;box-shadow:0 1px 4px #0000000d;font-size:19px;line-height:1}
.material-delete:hover{background:#fff3f1;color:#ad3d33;border-color:#dbb4ae}
.material-delete:focus-visible{outline:2px solid #577bcc;outline-offset:2px}
.material-delete:disabled{cursor:wait;opacity:.45}
@media(pointer:coarse){.material-item{padding-top:15px}.material-delete{width:32px;height:32px;min-height:32px;right:-5px}}
@media(max-width:600px){.material-item{flex-basis:52px;width:52px}}
.material-tile{display:flex;flex-direction:column;align-items:center;gap:3px;width:58px;flex:0 0 58px;min-width:0;color:var(--muted);text-decoration:none;border-radius:12px}
.material-face{display:grid;place-items:center;width:56px;height:56px;border:1px solid #e6e6e6;border-radius:11px;background:#fafafa;overflow:hidden}
.material-face img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.material-tile:hover .material-face,.material-tile:focus-visible .material-face{border-color:#9a9a9a;background:#f0f0f0}
.material-label{font-size:10px;line-height:16px;font-variant-numeric:tabular-nums}
.file-type{font-size:11px;font-weight:600;letter-spacing:-.2px;color:#626262}
.type-pdf{color:#bb4845}.type-pptx{color:#be5c31}.type-xlsx{color:#2d7a52}.type-docx{color:#3c6aaa}
#materials-dialog .file-chips.material-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:16px 12px;margin:20px 0}
.material-tooltip{position:fixed;z-index:100;max-width:min(360px,calc(100vw - 24px));padding:9px 12px;background:#252525;color:#fff;border-radius:9px;box-shadow:0 5px 18px #0002;font-size:12px;line-height:1.6;white-space:normal;overflow-wrap:anywhere;pointer-events:none}
#workspace[data-view='task'] .materials-toolbar{margin-bottom:0;min-height:26px}
#workspace[data-view='task'] .materials-toolbar .text-button{min-height:26px}
@media(max-width:600px){.material-strip{gap:8px}.material-tile{width:52px;flex-basis:52px}.material-face{width:50px;height:50px}}

.materials-toolbar:has(#upload-summary:empty){display:none}

/* Feishu workbench uses the same workspace and owner-scoped session. */
.password-login-fields{display:flex;flex-direction:column;gap:17px}#feishu-login{display:flex;align-items:center;justify-content:center;text-decoration:none;min-height:48px}#password-login-toggle{font-size:12px;color:var(--muted)}

/* Image model selection stays available for each image iteration. */
.composer-tools{flex-wrap:wrap;min-width:0}
.image-model-control{display:inline-flex;align-items:center;gap:6px;min-width:0;color:var(--muted);font-size:11px}
.image-model-control select{max-width:230px;min-width:0}
.image-model-control.hidden{display:none}
.artifact-model{display:block;margin-top:4px;font-size:10px;color:var(--muted)}
.artifact-quality{display:block;margin-top:5px;color:var(--muted);font-size:11px}
/* Research stays in the conversation, with optional detail and full image previews. */
.deep-research{margin:16px 0 24px;min-width:0}
.research-evidence-counts{display:flex;flex-wrap:wrap;gap:8px 16px;margin:12px 0;color:var(--muted);font-size:12px}
.research-plan,.research-page-log{padding:12px 0;border-bottom:1px solid var(--line)}
.deep-research summary{cursor:pointer;font-size:13px}
.deep-research ul,.deep-research ol{padding-left:20px;margin:10px 0}
.research-page-log li{padding:6px 0}.research-page-log small{display:block}
.deep-research a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.research-review>h4{font-size:14px;margin-top:22px}
.research-case{border:1px solid var(--line);border-radius:16px;margin:14px 0;min-width:0}
.research-case>summary{padding:16px;line-height:1.7}
.research-case-title{font-weight:500}.research-case-relevance{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.research-case-body{padding:0 16px 18px}.research-case-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:12px;margin-bottom:16px}
.research-case-images figure{margin:0;min-width:0}.research-case-images img{display:block;width:100%;height:220px;object-fit:contain;background:var(--soft);border-radius:10px}
.research-case-images figcaption{font-size:11px;color:var(--muted);margin-top:6px}
.research-case-sources{display:grid;gap:5px;font-size:12px;margin-bottom:14px}
.research-case dl{margin:0}.research-case dl>div{padding:10px 0;border-top:1px solid var(--line)}
.research-case dt{font-size:12px;color:var(--muted);margin-bottom:4px}.research-case dd{margin:0;white-space:pre-wrap;line-height:1.85}
.research-case blockquote{margin:12px 0;padding:0 12px;border-left:2px solid var(--line)}
@media(max-width:600px){.research-case>summary{padding:13px}.research-case-body{padding:0 13px 15px}.research-case-images{grid-template-columns:1fr}.research-case-images img{height:190px}}
.visual-references{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.visual-reference{min-width:0;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.visual-reference img{display:block;width:100%;height:220px;object-fit:contain;background:var(--soft)}
.reference-copy{padding:16px}.reference-copy>b,.reference-copy>small{display:block}.reference-copy small{margin-top:6px}
.reference-copy a{color:var(--accent);text-decoration:underline}.reference-copy details summary{cursor:pointer;font-size:12px;color:var(--muted)}
.reference-placeholder{padding:45px 12px;background:var(--soft);text-align:center;color:var(--muted);font-size:12px}
.visual-brief,.visual-quality{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:16px}
.visual-brief h4,.visual-quality h4{margin-top:0}.visual-brief dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.visual-brief dt{color:var(--muted);font-size:12px}.visual-brief dd{margin:0;white-space:pre-wrap}
.quality-check{padding:12px 0;border-top:1px solid var(--line)}.quality-status{margin-left:12px;font-size:11px;color:var(--muted)}
@media(max-width:600px){.visual-references{grid-template-columns:1fr}.visual-brief dl>div{grid-template-columns:65px minmax(0,1fr);gap:8px}.reference-copy{padding:12px}}
@media(max-width:600px){.composer-bottom{flex-wrap:wrap}.composer-tools{width:100%;gap:8px}.image-model-control{flex:1 0 100%}.image-model-control select{flex:1;width:0;max-width:none;min-height:32px}.composer-bottom>.send{margin-left:auto}.artifact-caption{gap:8px}}

/* Creative direction: a visible premise and visual treatment before image production. */
.visual-directions,.visual-art-direction{margin:24px 0;padding-top:20px;border-top:1px solid var(--line)}
.direction-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:12px 0}
.direction-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fafafa}
.direction-card.selected-direction{border-color:#8d9dc8;background:#f3f5fb}
.direction-card h5{font-size:16px;margin:6px 0 14px}.direction-card p{font-size:13px;line-height:1.8;margin:8px 0}
.direction-card details{font-size:12px;margin-top:12px}.direction-rationale{font-size:13px;line-height:1.8}
.visual-art-direction dl{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}
.visual-art-direction dl>div{min-width:0}.visual-art-direction dt{font-size:12px;color:var(--muted);margin-bottom:4px}.visual-art-direction dd{margin:0;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.visual-art-direction details{font-size:13px}.reference-use{padding:10px;border-radius:10px;background:#f3f5fb}.reference-use small{display:block;margin-top:6px}
.layout-preview img{width:100%;height:auto!important;object-fit:contain!important;margin-top:10px;border-radius:8px}
.visual-recipe{margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:12px;font-size:12px}
.visual-recipe p{margin:10px 0;overflow-wrap:anywhere}.visual-recipe pre{max-height:320px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 var(--font);padding:12px;background:#f6f6f6;border-radius:8px}
@media(max-width:600px){.direction-grid,.visual-art-direction dl{grid-template-columns:1fr}.direction-card{padding:14px}}

/* Explicit project choices are shared by later tasks; drafts stay in history. */
.project-selections{margin:0 0 24px;padding:16px 18px;border:1px solid var(--line,#e6e6e6);border-radius:18px;background:#fafafa;font-size:13px}
.project-selections p{margin:6px 0;color:#6b6b6b;line-height:1.6}
.project-selections a{color:#175fba;overflow-wrap:anywhere}
.source-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
.source-heading h2{margin:0;font-size:20px}.source-heading button{flex-shrink:0;min-height:36px}
.source-list{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:6px}
.source-row{display:inline-flex;align-items:center;gap:6px;min-width:0}
.source-row small{color:var(--muted);font-size:10px;white-space:nowrap}
.source-row a{min-width:0}.source-note{display:block;color:var(--muted);font-size:11px;margin-top:10px}
#workspace[data-view='task'] #project-selections{flex-shrink:0;max-height:none;overflow:visible;margin:4px 0 0;padding:0;border-radius:14px;background:#fafafa}
.task-context>summary{display:flex;align-items:center;gap:14px;padding:13px 16px;cursor:pointer;list-style:none;min-width:0;min-height:46px;line-height:1.5}
.task-context>summary::-webkit-details-marker{display:none}
.task-context>summary:focus-visible{outline:2px solid #2463b9;outline-offset:2px;border-radius:14px}
.task-context-label{flex-shrink:0;font-weight:500;font-size:12px}
.task-context-summary{font-size:12px;color:var(--muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-context-toggle{margin-left:auto;flex-shrink:0;font-size:11px;color:var(--muted)}
.task-context-toggle:before{content:'展开 ＋'}
.task-context[open]>.task-context-toggle:before,.task-context[open]>summary .task-context-toggle:before{content:'收起 −'}
.task-context-content{padding:0 16px 16px;max-height:min(38dvh,360px);overflow:auto;overscroll-behavior:contain;border-top:1px solid var(--line)}
.task-context-content>.source-heading{padding-top:12px}
#workspace[data-view='task'] .conversation-empty{padding:clamp(24px,6dvh,60px) 16px;text-align:left}
#workspace[data-view='task'] .conversation-empty h3{font-size:20px;line-height:1.5}
#workspace[data-view='task'] .conversation-empty p{font-size:13px;line-height:1.8;margin:10px 0 0}
@media(max-width:760px){#workspace[data-view='task'] #project-selections{margin:4px 4px 0}.task-context>summary{gap:9px;padding:11px 12px}.task-context-summary{font-size:11px}.task-context-content{padding:0 12px 12px;max-height:32dvh}}
.source-dialog{width:min(520px,calc(100vw - 32px));max-height:80dvh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:22px}
.source-dialog>p{font-size:13px;line-height:1.8;margin:10px 0 20px}.source-choice{display:block;margin:16px 0}
.source-choice b{display:block;font-size:13px;margin-bottom:8px}.source-choice select{width:100%;min-width:0;min-height:42px}
.run-sources{font-size:11px;color:var(--muted);margin-top:8px}

#workspace[data-view="task"] .project-area{flex-direction:column}
#workspace[data-view="task"] .conversation{flex:1}

/* Business entrances share the existing project and workflow components. */
.workspace-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.workspace-card-arrow{font-size:17px}
.business-view{width:100%;max-width:1100px;margin:0 auto;padding:24px 40px 70px}
.business-heading{margin:24px 0}.business-heading p{margin-top:8px;color:var(--muted);font-size:13px}
.business-project-picker{display:grid;grid-template-columns:auto minmax(180px,440px);align-items:center;gap:10px 20px;border:1px solid var(--line);border-radius:var(--r-card);padding:20px 24px}
.business-project-picker label{font-size:14px}.business-project-picker select{width:100%;min-width:0;font-size:14px;background:var(--soft);border:0;border-radius:var(--r-control);padding:12px 14px;min-height:46px}
.business-project-picker p{grid-column:2;color:var(--muted);font-size:12px}
.function-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.function-card{position:relative;display:flex;flex-direction:column;text-align:left;gap:12px;border:1px solid var(--line);border-radius:var(--r-card);padding:23px 20px;min-width:0}
.function-card:hover,.function-card[aria-expanded='true']{background:var(--soft)}.function-card b{font-size:18px;font-weight:500}.function-card small{font-size:12px;line-height:1.8;color:var(--muted)}.function-arrow{position:absolute;right:20px;top:30px;color:#999}.function-arrow svg{width:17px;height:17px}
.image-function-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px;background:var(--soft);border-radius:var(--r-card);margin-top:16px}
.image-function{display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border-radius:var(--r-control);padding:18px 16px;min-width:0}.image-function>span:nth-child(2){flex:1;min-width:0}.image-function b{display:block;font-size:14px;font-weight:500}.image-function small{display:block;font-size:11px;color:var(--muted);line-height:1.8;margin-top:4px}.image-function>svg{width:16px;height:16px;color:#999}.image-function:hover{box-shadow:0 0 0 1px #cbd7f5}
.business-empty{padding:26px;text-align:center;color:var(--muted);font-size:13px}
@media(max-width:1050px) and (min-width:761px){.workspace-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.business-view{padding-left:28px;padding-right:28px}.function-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.image-function-grid{grid-template-columns:1fr}}
@media(max-width:760px){.workspace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.business-view{padding:18px 22px 35px}.business-heading{margin:18px 0 24px}.business-heading h1{font-size:27px}.business-heading p{font-size:12px}.business-project-picker{grid-template-columns:1fr;padding:18px;gap:10px}.business-project-picker p{grid-column:1;line-height:1.8;font-size:11px}.business-project-picker select{font-size:16px}.function-grid{gap:12px}.function-card{padding:20px 16px;gap:10px}.function-card b{font-size:16px}.function-card small{font-size:11px}.function-arrow{top:29px;right:15px}.function-arrow svg{width:14px;height:14px}.image-function-grid{padding:12px;gap:10px}.image-function{padding:16px 12px}.business-view .section-heading{margin:24px 0 16px}.business-empty{font-size:12px;line-height:1.8;padding:24px 16px}}

/* Project understanding stays inside the existing source panel. */
.business-context{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.business-context summary{cursor:pointer;color:var(--ink);font-weight:500}
.process-intro,.process-note{font-size:12px;line-height:1.8;color:var(--muted);margin:12px 0 20px}
.process-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.process-stage{border:1px solid var(--line);border-radius:22px;background:#fff;min-width:0;overflow:hidden;transition:border-color .18s,box-shadow .18s}
.process-stage:hover{border-color:#c6c6c6;box-shadow:0 5px 20px #00000005}
.process-card-main{display:flex;flex-direction:column;gap:14px;align-items:stretch;text-align:left;width:100%;min-height:285px;padding:22px;background:transparent;cursor:pointer;border:0;color:inherit;font:inherit;overflow-wrap:anywhere}
.process-card-main:focus-visible{outline:2px solid #2463b9;outline-offset:-4px;border-radius:20px}
.process-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.process-card-main>b{font-size:18px;font-weight:500;line-height:1.5}
.process-purpose{display:block;color:var(--muted);font-size:12px;line-height:1.8}
.process-deliverable{display:block;color:#666;font-size:11px;line-height:1.8}
.process-number{display:grid;place-items:center;border-radius:50%;width:32px;height:32px;flex-shrink:0;background:var(--soft);font-size:12px}
.process-state{font-size:11px;color:var(--muted)}
.has-output .process-state{color:#326852}
.process-card-enter{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:8px;font-size:12px;color:var(--ink)}
.process-card-enter>span{font-size:18px}
.process-card-footer{border-top:1px solid var(--line);padding:14px 22px;font-size:12px;line-height:1.8}
.process-card-footer>.text-button{display:block;margin-bottom:10px;text-align:left}
.process-stage-details summary{cursor:pointer;color:var(--muted);font-size:11px}
.process-stage-body{padding-top:14px;font-size:12px;line-height:1.85;overflow-wrap:anywhere}
.process-stage-body p{margin-bottom:10px;color:var(--muted)}
.process-stage-body p b{font-weight:500;color:var(--ink);margin-right:8px}
.process-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.process-actions .secondary{white-space:normal;min-height:40px}
@media(max-width:1050px){.process-stages{grid-template-columns:repeat(2,minmax(0,1fr))}}
.process-brief{font-size:12px;line-height:1.8;margin-top:12px;overflow-wrap:anywhere}
.process-brief summary{cursor:pointer;font-weight:500}
.process-brief p{color:var(--muted);margin:8px 0}
.process-brief small{color:var(--muted)}
#process-brief{padding:16px 20px;border-radius:18px;background:var(--soft);margin:16px 0}
@media(max-width:600px){.process-stages{grid-template-columns:1fr;gap:12px}.process-card-main{padding:20px;min-height:0;gap:12px}.process-card-main>b{font-size:17px}.process-purpose{font-size:12px}.process-number{width:28px;height:28px}.process-card-footer{padding:12px 20px}#business-process .section-heading{gap:8px;flex-wrap:wrap}}

.business-context p{margin:9px 0;color:var(--muted)}
.business-context ul{margin:10px 0;padding-left:20px}
.workflow-launch{grid-column:1/-1;background:#f5f5f5!important;min-height:120px}
.workflow-project-link{display:block;margin-top:12px}
.workflow-dialog{width:min(820px,calc(100vw - 40px));max-height:88dvh;padding:30px;border:1px solid #e8e8e8;border-radius:24px;background:#fff;color:#181818;box-sizing:border-box;overflow:auto}
.workflow-dialog::backdrop{background:#0005;backdrop-filter:blur(4px)}
.workflow-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.workflow-heading h2{font-size:24px;font-weight:500;margin:7px 0 0}
.workflow-dialog .muted,.workflow-dialog p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.workflow-dialog form,.workflow-dialog label{display:grid;gap:10px}.workflow-dialog form{gap:20px}.workflow-dialog label{font-size:13px}
.workflow-dialog input,.workflow-dialog textarea,.workflow-dialog select{width:100%;padding:12px;border:1px solid #e6e6e6;border-radius:12px;background:#fafafa;box-sizing:border-box;font:inherit}.workflow-dialog textarea{resize:vertical;line-height:1.8;min-height:150px}
.workflow-settings{display:grid;grid-template-columns:1fr 1fr;gap:16px}.workflow-overview{background:#f7f7f7;padding:20px;border-radius:16px}.workflow-overview h3{font-size:20px;font-weight:500;margin:0 0 10px}.workflow-overview details p{white-space:pre-wrap}.workflow-state{font-size:12px;border-radius:999px;padding:5px 12px;background:#e9e9e9}.workflow-overview summary{cursor:pointer;font-size:13px}
.workflow-steps{list-style:none;padding:0;margin:24px 0;display:grid;gap:12px;counter-reset:workflow}
.workflow-step{padding:16px;border:1px solid #e7e7e7;border-radius:14px;counter-increment:workflow}.workflow-step>div{display:flex;align-items:center;gap:10px;justify-content:space-between}.workflow-step b{font-size:14px;font-weight:500}.workflow-step b:before{content:counter(workflow) '. ';color:#888}.workflow-step span{font-size:12px;color:#777;flex-shrink:0}.workflow-step p{color:#777;margin:9px 0}.workflow-step.state-running{border-color:#8da9c4}.workflow-step.state-failed{border-color:#cc9e8d}.workflow-step.state-completed span{color:#3f7452}.workflow-step .text-button{margin-right:12px}
.workflow-error{color:#964a31;font-size:13px}.workflow-actions,.workflow-delivery{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:22px}.workflow-delivery .muted{width:100%}.workflow-upload{margin-top:20px}
@media(max-width:600px){.workflow-dialog{width:calc(100vw - 24px);padding:20px;max-height:92dvh;border-radius:20px}.workflow-heading h2{font-size:21px}.workflow-settings{grid-template-columns:1fr}.workflow-actions>*{width:100%}.workflow-dialog .primary{justify-content:center;white-space:normal;text-align:center}.workflow-step>div{align-items:flex-start}}

/* Durable PDF uploads: readable progress without a full-height status panel. */
#pdf-jobs:empty{display:none}
#pdf-jobs{display:grid;gap:8px;margin:10px 3px;font-size:12px;line-height:1.7;color:var(--muted)}
#pdf-jobs>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;background:var(--soft);border-radius:12px}
#pdf-jobs span{flex:1 1 240px;min-width:0;overflow-wrap:anywhere}
#pdf-jobs button{font-size:12px;padding:6px 10px;min-height:32px}

/* Per-file transport and full-text parsing progress. */
.material-face{position:relative}
.material-progress{position:absolute;inset:0;display:grid;place-items:center;background:#fffffff0;border-radius:10px;color:#2b5cc5}
.material-progress svg{width:36px;height:36px;transform:rotate(-90deg)}
.material-progress circle{fill:none;stroke-width:2.5}
.progress-track{stroke:#e4e9f2}.progress-value{stroke:currentColor;stroke-linecap:round;transition:stroke-dasharray .2s linear}
.material-progress>span{position:absolute;font-size:9px;font-weight:600;font-variant-numeric:tabular-nums}
.material-progress.indeterminate svg{animation:material-spin 1.2s linear infinite}
.material-progress.failed{color:#b44e3d;background:#fff6f1ee}
.material-state{font-size:9px;line-height:13px;max-width:65px;color:#777;text-align:center;overflow-wrap:anywhere}
.material-pending{cursor:default}.material-pending[data-retry-material]{cursor:pointer}
#shared-materials>details{margin-top:15px;border-top:1px solid var(--line);padding-top:12px}
#shared-materials summary{cursor:pointer;font-size:12px;color:var(--muted)}
.shared-material-strip{padding-top:14px;margin-top:8px}
@keyframes material-spin{to{transform:rotate(270deg)}}
@media(prefers-reduced-motion:reduce){.material-progress.indeterminate svg{animation:none}}
