:root{color:#3a2e24;font-synthesis:none;text-rendering:optimizelegibility;--bg:#f5f2ee;--surface:#fdfcfa;--surface-muted:#f0ece6;--line:#e0d8cd;--line-strong:#c9bfb2;--text:#3a2e24;--muted:#7a6e60;--primary:#1f7a6d;--primary-strong:#155f55;--accent:#8b4f20;--danger:#b42318;--shadow:0 18px 40px #3a2e241a;font-family:PingFang SC,Microsoft YaHei,Noto Sans SC,Source Han Sans SC,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}.auth-page,.single-page{background:linear-gradient(135deg, #1f7a6d12, transparent 38%), linear-gradient(315deg, #8b4f2014, transparent 34%), var(--bg);place-items:center;min-height:100dvh;padding:32px 20px;display:grid}.auth-card,.panel{border:1px solid var(--line);background:var(--surface);width:min(100%,440px);box-shadow:var(--shadow);border-radius:12px;padding:28px}.panel.wide{width:min(100%,780px)}.auth-brand,.brand{align-items:center;gap:10px;font-weight:700;display:inline-flex}.brand{border-bottom:1px solid var(--line);width:100%;padding:4px 2px 18px}.brand-mark{background:var(--primary);color:#fff;border-radius:8px;place-items:center;width:34px;height:34px;display:inline-grid}.auth-card h1,.panel h1{margin:22px 0 8px;font-size:26px;line-height:1.25}.auth-card p,.muted{color:var(--muted)}.segmented{border:1px solid var(--line);background:var(--surface-muted);border-radius:9px;grid-template-columns:1fr 1fr;gap:4px;margin:24px 0 18px;padding:4px;display:grid}.segmented button{min-height:38px;color:var(--muted);background:0 0;border:0;border-radius:7px}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 5px #2836461a}.form-stack,.assessment-grid{gap:16px;display:grid}label span,legend{margin-bottom:7px;font-size:14px;font-weight:600;display:block}input,select,textarea{border:1px solid var(--line);background:var(--surface);width:100%;min-height:42px;color:var(--text);border-radius:8px;outline:none;padding:9px 11px}textarea{resize:vertical;line-height:1.6}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #1f7a6d26}fieldset{border:1px solid var(--line);border-radius:10px;gap:8px;margin:0;padding:16px;display:grid}fieldset label{color:var(--muted);align-items:center;gap:8px;display:flex}fieldset input{width:auto;min-height:auto}.inline-input{gap:8px;display:flex}.inline-input input{min-width:0}.primary-button,.outline-button,.ghost-button{border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:6px;min-height:40px;padding:0 16px;transition:background .16s,border-color .16s,color .16s;display:inline-flex}.primary-button{background:var(--primary);color:#fff}.primary-button:hover{background:var(--primary-strong)}.outline-button{border-color:var(--line);background:var(--surface);color:var(--text)}.outline-button:hover,.ghost-button:hover{border-color:var(--line-strong);background:var(--surface-muted)}.ghost-button{color:var(--muted);background:0 0;border-color:#0000}.compact{min-height:34px;padding:0 12px;font-size:14px}.full{width:100%}.full-row{grid-column:1/-1}.error-text{color:var(--danger);margin:0}.app-shell{background:var(--bg);grid-template-columns:228px minmax(0,1fr);min-height:100dvh;display:grid}.app-sidebar{border-right:1px solid var(--line);background:var(--surface);flex-direction:column;gap:20px;height:100dvh;padding:22px;display:flex;position:sticky;top:0}.nav-list{gap:6px;display:grid}.nav-item{color:var(--muted);border-radius:8px;padding:10px 12px}.nav-item.router-link-active,.nav-item:hover{background:var(--surface-muted);color:var(--text)}.sidebar-logout{margin-top:auto}.app-main{min-width:0;padding:28px}.page-header{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px;display:flex}.page-header h1,.section-heading h2,.mentor-section h2,.mentor-section h3{margin:0}.page-header h1{font-size:28px}.page-header p{color:var(--muted);margin:6px 0 0}.header-actions,.section-row{align-items:center;gap:10px;display:flex}.coin-pill{border:1px solid var(--line);background:var(--surface);min-height:34px;color:var(--accent);white-space:nowrap;border-radius:999px;align-items:center;padding:0 12px;font-size:13px;font-weight:600;display:inline-flex}.loading-block{min-height:240px;color:var(--muted);place-items:center;display:grid}.quick-grid,.stats-grid,.project-grid,.template-grid{gap:14px;display:grid}.quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:28px}.project-grid,.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.action-card,.stat-card,.project-card,.template-card,.mini-card,.mentor-empty{border:1px solid var(--line);background:var(--surface);text-align:left;border-radius:10px}.action-card{gap:7px;padding:18px;display:grid}.action-card span,.project-title{font-weight:700}.action-card small,.project-card .muted,.project-meta,.template-card p,.template-card span,.mini-card span{color:var(--muted)}.stat-card{gap:6px;padding:16px;display:grid}.stat-card span{color:var(--muted);font-size:14px}.stat-card strong{font-size:24px}.content-section{margin-top:28px}.section-heading{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.empty-state{justify-items:start;gap:14px;width:100%;display:grid}.project-card{gap:8px;padding:18px;display:grid}.template-card{padding:18px}.template-card h3{margin:0 0 8px}.editor-page{background:var(--bg);flex-direction:column;height:100dvh;display:flex;overflow:hidden}.editor-header{border-bottom:1px solid var(--line);background:var(--surface);align-items:center;gap:8px;height:44px;padding:0 16px;display:flex}.editor-title-fields{flex:1;min-width:0}.editor-title-fields input{min-height:auto;box-shadow:none;background:0 0;border:0;padding:0}.editor-title-fields>input{font-weight:700}.editor-title-fields div{color:var(--muted);align-items:center;gap:8px;font-size:12px;display:flex}.editor-title-fields div input{width:84px;color:var(--muted)}.document-upload-input{display:none}.editor-layout{flex:1;grid-template-columns:calc(71.4% - 4px) 8px calc(28.6% - 4px);min-height:0;display:grid;overflow:hidden}.layout-resize-handle{background:var(--surface-muted);cursor:col-resize;border:0;border-left:1px solid #0000;border-right:1px solid #0000;width:8px;min-width:8px;height:100%;padding:0}.layout-resize-handle:hover,.layout-resizing .layout-resize-handle{background:#1f7a6d24}.layout-resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}.layout-resizing iframe,.layout-resizing textarea,.layout-resizing .screenplay-prosemirror{pointer-events:none}.editor-pane{flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.editor-pane>.screenplay-editor{flex:1;min-height:0;overflow-y:auto}.stage-strip,.editor-footer{border-bottom:1px solid var(--line);min-height:32px;color:var(--muted);justify-content:space-between;align-items:center;gap:10px;padding:0 16px;font-size:12px;display:flex}.editor-footer{border-top:1px solid var(--line);border-bottom:0}.screenplay-editor{background:var(--surface);width:100%;box-shadow:none;border:none;border-radius:0;margin:0;overflow:hidden}.editor-toolbar{border-bottom:1px solid var(--line);background:var(--surface-muted);align-items:center;gap:6px;min-height:46px;padding:7px 10px;display:flex}.toolbar-button{min-height:32px;color:var(--muted);background:0 0;border:1px solid #0000;border-radius:7px;padding:0 10px}.toolbar-button.active,.toolbar-button:hover{background:var(--primary);color:#fff}.toolbar-button.icon{width:32px;padding:0}.toolbar-divider{background:var(--line);align-self:stretch;width:1px;margin:0 4px}.editor-content{padding:16px 24px}.screenplay-prosemirror{min-height:50vh;color:var(--text);white-space:pre-wrap;outline:none;font-size:15px;line-height:1.75}.screenplay-prosemirror p{margin:0 0 .85rem}.screenplay-scene-heading{margin-top:1.15rem;font-weight:800}.screenplay-action{font-family:Georgia,Noto Serif SC,serif}.screenplay-character-name{text-align:center;margin-top:1rem;font-weight:800}.screenplay-dialogue{max-width:28rem;margin-left:auto;margin-right:auto}.is-empty:before{color:var(--muted);content:attr(data-placeholder);float:left;pointer-events:none;height:0}.mentor-pane{background:var(--surface);flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.chat-tabs{border-bottom:1px solid var(--line);background:var(--surface);flex-shrink:0;align-items:stretch;min-height:36px;display:flex}.chat-tabs-list{scrollbar-width:none;flex:1;display:flex;overflow-x:auto}.chat-tabs-list::-webkit-scrollbar{display:none}.chat-tab{min-height:36px;color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-bottom:2px solid #0000;flex:none;align-items:center;gap:4px;max-width:140px;padding:0 14px;font-size:12.5px;transition:color .15s,border-color .15s,background .15s;display:flex}.chat-tab:hover{color:var(--text);background:oklch(96% .005 260/.5)}.chat-tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.chat-tab-label{text-overflow:ellipsis;overflow:hidden}.chat-tab-add{border:none;border-left:1px solid var(--line);width:36px;min-height:36px;color:var(--muted);cursor:pointer;background:0 0;flex-shrink:0;justify-content:center;align-items:center;font-size:18px;font-weight:300;transition:color .15s,background .15s;display:flex}.chat-tab-add:hover{color:var(--primary);background:oklch(96% .005 260/.5)}.chat-tab-add:disabled{opacity:.4;cursor:not-allowed}.mentor-drawer{border-bottom:1px solid var(--line);flex-shrink:0}.mentor-drawer-toggle{cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--muted);justify-content:center;align-items:center;gap:6px;padding:6px 16px;font-size:12px;list-style:none;transition:color .15s;display:flex}.mentor-drawer-toggle:hover{color:var(--primary)}.mentor-drawer-toggle::-webkit-details-marker{display:none}.mentor-drawer-toggle:after{content:"▾";font-size:10px;transition:transform .15s}.mentor-drawer[open]>.mentor-drawer-toggle:after{transform:rotate(180deg)}.mentor-drawer-body{gap:16px;max-height:50vh;padding:0 16px 14px;display:grid;overflow-y:auto}.editor-drawer{border-top:1px solid var(--line);flex-shrink:0}.editor-drawer-toggle{cursor:pointer;color:var(--muted);justify-content:center;align-items:center;gap:6px;padding:6px 16px;font-size:12px;list-style:none;transition:color .15s;display:flex}.editor-drawer-toggle:hover{color:var(--primary)}.editor-drawer-toggle::-webkit-details-marker{display:none}.editor-drawer-toggle:after{content:"▴";font-size:10px;transition:transform .15s}.editor-drawer[open]>.editor-drawer-toggle:after{transform:rotate(180deg)}.editor-drawer-body{gap:16px;max-height:40vh;padding:0 16px 10px;display:grid;overflow-y:auto}.drawer-group{gap:10px;display:grid}.drawer-group-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.drawer-group-header strong{font-size:13px}.drawer-group-header .muted{font-size:12px}.mentor-section{border-bottom:1px solid var(--line);padding:16px}.mentor-section h2{font-size:16px}.mentor-section h3{font-size:14px}.chat-session-section{gap:8px;display:grid}.chat-session-list{gap:8px;padding-bottom:2px;display:flex;overflow-x:auto}.chat-session-chip{border:1px solid var(--line);background:var(--surface);min-height:28px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;cursor:pointer;border-radius:999px;flex:none;max-width:140px;padding:0 10px;font-size:12px;overflow:hidden}.chat-session-chip.active{color:var(--primary);background:#1f7a6d14;border-color:#1f7a6d5c;font-weight:700}.mini-card{gap:4px;margin-top:10px;padding:10px;font-size:13px;display:grid}.mentor-empty{min-height:120px;color:var(--muted);text-align:center;justify-content:center;align-items:center;padding:24px 20px;font-size:14px;line-height:1.7;display:flex}.document-card small{min-width:0;color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.document-card-button{background:var(--surface);width:100%;color:inherit;text-align:left;cursor:pointer;border:1px solid #0000}.document-card-button:hover,.document-card-button.active{background:#1f7a6d0f;border-color:#1f7a6d47}.document-preview-pane{border-left:1px solid var(--line);background:var(--surface);flex-direction:column;min-width:0;display:flex;overflow:hidden}.document-preview-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;min-height:58px;padding:12px 16px;display:flex}.document-preview-header>div{min-width:0}.document-preview-header h2{color:var(--text);text-overflow:ellipsis;white-space:nowrap;margin:2px 0 0;font-size:15px;line-height:1.3;overflow:hidden}.document-preview-body{flex:1;align-content:start;gap:12px;min-height:0;padding:14px 16px;display:grid;overflow:auto}.document-meta-row{color:var(--muted);flex-wrap:wrap;gap:8px;font-size:12px;display:flex}.document-preview-surface{border:1px solid var(--line);background:var(--surface-muted);border-radius:8px;padding:14px}.word-document-preview{background:var(--surface);min-height:320px}.document-preview-surface p{color:var(--text);white-space:pre-wrap;margin:0;line-height:1.7}.document-preview-state{border:1px solid var(--line);background:var(--surface-muted);color:var(--muted);border-radius:8px;padding:14px;font-size:13px}.document-preview-state.error{color:var(--danger);background:#b423180f;border-color:#b4231838}.document-file-link{color:var(--primary);font-size:13px;font-weight:700;text-decoration:none}.document-preview-empty{color:var(--muted);padding:16px;font-size:13px}.agent-flow-section,.mentor-details-body .agent-flow-section{border:none;gap:12px;padding:0;display:grid}.agent-status-pill{min-height:24px;color:var(--primary);background:#1f7a6d14;border:1px solid #1f7a6d33;border-radius:999px;align-items:center;padding:0 9px;font-size:12px;font-weight:700;display:inline-flex}.agent-flow-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.agent-flow-item{color:var(--muted);grid-template-columns:24px minmax(0,1fr);align-items:start;gap:9px;display:grid}.agent-flow-item strong,.agent-flow-item small{display:block}.agent-flow-item strong{color:var(--text);font-size:13px}.agent-flow-item small{margin-top:2px;font-size:12px}.agent-step-dot{border:1px solid var(--line);background:var(--surface);width:24px;height:24px;color:var(--muted);border-radius:999px;place-items:center;font-size:12px;font-weight:700;display:inline-grid}.agent-flow-item.done .agent-step-dot{color:var(--primary);background:#1f7a6d14;border-color:#1f7a6d3d}.agent-flow-item.active .agent-step-dot{border-color:var(--primary);background:var(--primary);color:#fff}.stage-agent-card{border:1px solid var(--line);background:var(--surface-muted);border-radius:8px;gap:8px;padding:12px;display:grid}.stage-agent-card .section-row{color:var(--muted);font-size:12px}.stage-agent-card .section-row em{color:var(--primary);font-style:normal;font-weight:700}.stage-agent-card strong{font-size:14px}.stage-agent-card p{color:var(--muted);margin:0;font-size:12px;line-height:1.6}.stage-agent-tags{flex-wrap:wrap;gap:6px;display:flex}.stage-agent-tags span{color:var(--primary);background:#1f7a6d12;border:1px solid #1f7a6d33;border-radius:999px;padding:3px 7px;font-size:12px}.agent-runtime-timeline{border:1px solid var(--line);background:var(--surface);border-radius:8px;gap:9px;padding:12px;display:grid}.agent-runtime-timeline .section-row{color:var(--muted);font-size:12px}.agent-runtime-timeline .section-row em{color:var(--primary);font-style:normal;font-weight:700}.agent-runtime-timeline ol{gap:8px;margin:0;padding:0;list-style:none;display:grid}.agent-runtime-timeline li{grid-template-columns:12px minmax(0,1fr);align-items:start;gap:8px;display:grid}.agent-runtime-timeline strong,.agent-runtime-timeline small,.agent-runtime-timeline li em{display:block}.agent-runtime-timeline strong{color:var(--text);font-size:12px}.agent-runtime-timeline small{color:var(--muted);margin-top:2px;font-size:12px;line-height:1.5}.agent-runtime-timeline li em{color:var(--primary);margin-top:4px;font-size:11px;font-style:normal;font-weight:700}.runtime-dot{background:#1f7a6d14;border:1px solid #1f7a6d40;border-radius:999px;width:9px;height:9px;margin-top:4px}.agent-runtime-timeline li.done .runtime-dot{background:var(--primary)}.agent-runtime-timeline li.info .runtime-dot{border-color:var(--line);background:var(--surface-muted)}.agent-structured-card{background:#fdf8f0;border:1px solid #b1742233;border-radius:8px;gap:9px;padding:12px;display:grid}.agent-structured-card .section-row{color:var(--muted);font-size:12px}.agent-structured-card .section-row em{color:#8a5b16;font-style:normal;font-weight:700}.agent-structured-card strong{color:var(--text);font-size:14px}.agent-structured-card p{color:var(--muted);margin:0;font-size:12px;line-height:1.6}.structured-targets{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.structured-targets span{color:var(--muted);font-size:12px}.structured-targets em{color:#8a5b16;background:#b1742214;border:1px solid #b174223d;border-radius:999px;padding:3px 7px;font-size:12px;font-style:normal;font-weight:700}.structured-actions{flex-wrap:wrap;gap:6px;display:flex}.structured-actions span{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:3px 7px;font-size:12px}.agent-confirmation-card{border:1px solid var(--line);background:var(--surface);border-radius:10px;gap:9px;padding:12px;display:grid}.agent-confirmation-card strong{font-size:14px}.agent-confirmation-card p{color:var(--muted);margin:0;font-size:13px;line-height:1.65}.agent-source-list{gap:6px;padding-top:2px;display:grid}.agent-source-list span{color:var(--muted);font-size:12px}.agent-source-list em{width:fit-content;max-width:100%;color:var(--accent);background:#8b4f2012;border:1px solid #8b4f202e;border-radius:999px;padding:3px 8px;font-size:12px;font-style:normal;display:inline-flex}.agent-card-actions{flex-wrap:wrap;gap:8px;display:flex}.chat-body{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.chat-list{scroll-behavior:smooth;flex:1;align-content:start;gap:14px;min-height:0;padding:16px;display:grid;overflow-y:auto}.chat-message{background:var(--surface-muted);word-break:break-word;border-radius:14px;max-width:88%;padding:12px 14px;font-size:14px;line-height:1.7}.chat-message.user{background:var(--primary);color:#fff;border-radius:14px 14px 4px;justify-self:end}.chat-message.assistant{background:var(--surface-muted);border-radius:14px 14px 14px 4px;justify-self:start}.chat-md{word-break:break-word;font-size:14px;line-height:1.7}.chat-md p{margin:0 0 8px}.chat-md p:last-child{margin-bottom:0}.chat-md strong{font-weight:600}.chat-md ul,.chat-md ol{margin:4px 0 8px;padding-left:20px}.chat-md li{margin:2px 0}.chat-md blockquote{border-left:3px solid var(--primary);color:var(--muted);margin:6px 0;padding:4px 10px;font-style:italic}.chat-md code{background:#0000000f;border-radius:3px;padding:1px 4px;font-size:13px}.chat-md pre{background:#0000000d;border-radius:6px;margin:6px 0;padding:8px 10px;font-size:13px;overflow-x:auto}.chat-md h1,.chat-md h2,.chat-md h3{margin:8px 0 4px;font-size:14px;font-weight:600}.chat-md hr{border:none;border-top:1px solid var(--line);margin:8px 0}.chat-message.system{max-width:92%;color:var(--danger,#b42318);text-align:center;background:#b423180f;border:1px solid #b423182e;border-radius:10px;justify-self:center;font-size:13px}.chat-message p{white-space:pre-wrap;margin:0}.chat-message small{opacity:.6;margin-top:6px;font-size:11px;display:block}.thinking-block{width:100%;margin-bottom:6px;transition:opacity .4s}.thinking-block.collapsed{margin-bottom:4px;animation:.4s ease-out both thinking-collapse}@keyframes thinking-collapse{0%{opacity:1}to{opacity:1}}.thinking-toggle{color:oklch(55% .02 260);cursor:pointer;background:0 0;border:1px dashed oklch(65% .02 260/.35);border-radius:6px;padding:4px 10px;font-size:12px;transition:all .2s}.thinking-toggle:hover{background:oklch(96% .01 260);border-color:oklch(55% .02 260/.5)}.thinking-steps{background:oklch(97% .005 260/.6);border-left:3px solid oklch(75% .03 260/.4);border-radius:8px;margin-top:4px;padding:8px 12px}.thinking-step{color:oklch(52% .015 260);margin:0;padding:3px 0;font-size:12.5px;line-height:1.5;animation:.5s ease-out both thinking-fade-in}.thinking-step:before{content:"";vertical-align:middle;background:oklch(65% .03 260/.5);border-radius:50%;width:5px;height:5px;margin-right:8px;display:inline-block}.thinking-step:last-child:not(.thinking-done){color:oklch(45% .02 260);font-weight:500}.thinking-step:last-child:not(.thinking-done):before{background:var(--primary);opacity:.7}.thinking-step.thinking-done{color:var(--primary);font-style:italic;font-weight:500}.thinking-step.thinking-done:before{background:var(--primary);opacity:.9}.apply-to-editor-btn{color:var(--primary);cursor:pointer;background:oklch(95% .02 145);border:1px solid oklch(85% .04 145);border-radius:6px;align-items:center;gap:4px;margin-top:8px;padding:5px 14px;font-size:12px;transition:all .2s;display:inline-flex}.apply-to-editor-btn:hover{border-color:var(--primary);background:oklch(90% .04 145)}.apply-to-editor-btn:active{transform:scale(.97)}@keyframes thinking-fade-in{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}.thinking-dots{align-items:center;gap:4px;padding:4px 0;display:flex}.thinking-dots span{opacity:.4;background:oklch(60% .02 260);border-radius:50%;width:5px;height:5px;animation:1.4s ease-in-out infinite thinking-dot-pulse}.thinking-dots span:nth-child(2){animation-delay:.2s}.thinking-dots span:nth-child(3){animation-delay:.4s}@keyframes thinking-dot-pulse{0%,60%,to{opacity:.25;transform:scale(1)}30%{opacity:.8;transform:scale(1.3)}}.typing-indicator{align-items:center;gap:5px;padding:4px 2px;display:flex}.typing-indicator span{background:var(--primary);opacity:.4;border-radius:50%;width:8px;height:8px;animation:1.4s ease-in-out infinite typing-bounce}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing-bounce{0%,60%,to{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-6px)}}.chat-footer{border-top:1px solid var(--line);background:var(--surface);flex-shrink:0}.chat-input-block{flex-direction:column;padding:8px 12px;display:flex}.chat-input-block textarea{resize:vertical;border:1px solid var(--line);width:100%;min-height:44px;max-height:120px;color:var(--text);background:oklch(98% .003 260/.6);border-radius:8px;padding:8px 12px;font-family:inherit;font-size:13.5px;line-height:1.5;transition:border-color .15s}.chat-input-block textarea:focus{border-color:var(--primary);background:var(--surface);outline:none}.chat-input-block textarea::placeholder{color:var(--muted)}.chat-toolbar{justify-content:space-between;align-items:center;gap:8px;padding-top:6px;display:flex}.chat-toolbar-left{flex-wrap:wrap;gap:4px;min-width:0;display:flex}.chat-toolbar-right{flex-shrink:0;align-items:center;gap:4px;display:flex}.toolbar-chip{border:1px solid var(--line);background:var(--surface);min-height:26px;color:var(--muted);cursor:pointer;border-radius:999px;padding:0 10px;font-size:11.5px;transition:border-color .15s,color .15s}.toolbar-chip:hover{border-color:var(--primary);color:var(--primary)}.toolbar-icon-btn{width:32px;height:32px;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;transition:color .15s,background .15s;display:flex}.toolbar-icon-btn:hover{color:var(--primary);background:oklch(96% .01 260)}.toolbar-icon-btn:disabled{opacity:.35;cursor:not-allowed}.toolbar-send-btn{background:var(--primary);color:#fff;cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;width:32px;height:32px;transition:opacity .15s;display:flex}.toolbar-send-btn:hover{opacity:.85}.toolbar-send-btn:disabled{opacity:.35;cursor:not-allowed}.chat-input-legacy{gap:8px;padding:10px 12px 12px;display:flex}.chat-input-legacy textarea{resize:vertical;border:1px solid var(--line);background:var(--surface-muted);min-height:44px;max-height:120px;color:var(--text);border-radius:10px;flex:1;padding:10px 12px;font-family:inherit;font-size:14px;line-height:1.5;transition:border-color .15s}.chat-input-legacy textarea:focus{border-color:var(--primary);background:var(--surface);outline:none}.chat-input-legacy textarea::placeholder{color:var(--muted)}.chat-input-legacy button{align-self:flex-end}.full-screen{min-height:calc(100dvh - 58px)}.editor-toast{z-index:1000;color:#fff;text-align:center;pointer-events:none;background:#1b2430e0;border-radius:8px;min-width:200px;max-width:400px;padding:10px 20px;font-size:14px;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 4px 16px #0000002e}.toast-fade-enter-active,.toast-fade-leave-active{transition:opacity .3s,transform .3s}.toast-fade-enter-from{opacity:0;transform:translate(-50%)translateY(12px)}.toast-fade-leave-to{opacity:0;transform:translate(-50%)translateY(-8px)}.brand-logo{object-fit:contain;border-radius:6px;width:32px;height:32px}.auth-brand .brand-logo{width:40px;height:40px}.account-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.account-card{border:1px solid var(--line);background:var(--surface-muted);border-radius:10px;flex-direction:column;gap:6px;padding:18px;display:flex}.account-card.highlight{border-color:var(--primary);background:#1f7a6d0f}.account-label{color:var(--muted);font-size:13px}.account-value{font-size:22px;font-weight:700}.account-value.coin{color:var(--accent)}.account-layout{grid-template-columns:1fr 1fr;align-items:start;gap:20px;display:grid}.account-left{flex-direction:column;gap:20px;display:flex}.account-right{min-height:0}.section-header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.section-header h2{margin:0}.profile-row{align-items:flex-start;gap:24px;display:flex}.avatar-wrap{flex-shrink:0;position:relative}.avatar-img{object-fit:cover;border:2px solid var(--line);border-radius:50%;width:80px;height:80px}.avatar-placeholder{background:var(--surface-muted);border:2px solid var(--line);width:80px;height:80px;color:var(--muted);border-radius:50%;place-items:center;font-size:28px;font-weight:700;display:grid}.avatar-upload-label{background:var(--primary);color:#fff;cursor:pointer;border:2px solid var(--surface);border-radius:50%;place-items:center;width:26px;height:26px;font-size:11px;display:grid;position:absolute;bottom:0;right:0}.avatar-upload-label.disabled{opacity:.5;pointer-events:none}.profile-fields{flex-direction:column;flex:1;gap:12px;display:flex}.profile-field{align-items:center;gap:12px;display:flex}.field-label{width:60px;color:var(--muted);flex-shrink:0;font-size:13px}.field-value{font-size:15px;font-weight:500}.field-input{flex:1;font-size:14px;min-height:36px!important}.tx-list{flex-direction:column;gap:0;display:flex}.tx-item{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:12px 0;display:flex}.tx-item:last-child{border-bottom:0}.tx-info{flex-direction:column;gap:4px;display:flex}.tx-desc{font-size:14px}.tx-time{color:var(--muted);font-size:12px}.tx-amount{font-variant-numeric:tabular-nums;text-align:right;flex-shrink:0;min-width:80px;font-size:16px;font-weight:600}.tx-amount.positive{color:var(--primary)}.tx-amount.negative{color:var(--danger)}.modal-overlay{z-index:1000;background:#0006;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal-card{background:var(--surface);width:min(100%,420px);box-shadow:var(--shadow);border-radius:12px;padding:28px}.modal-card h3{margin:0 0 6px;font-size:20px}.template-card.clickable{cursor:pointer;transition:border-color .16s,box-shadow .16s}.template-card.clickable:hover{border-color:var(--primary);box-shadow:0 4px 12px #1f7a6d1a}.template-card.clickable:disabled{cursor:not-allowed;opacity:.55}@media (width<=980px){.app-shell{grid-template-columns:1fr}.app-sidebar{height:auto;position:static}.quick-grid,.stats-grid,.project-grid,.template-grid,.editor-layout,.account-layout{grid-template-columns:1fr!important}.editor-layout{overflow:visible}.layout-resize-handle{display:none}.mentor-pane{border-left:0;border-top:1px solid var(--line)}.document-preview-pane{border-left:0;border-top:1px solid var(--line);min-height:360px}}@media (width<=680px){.page-header,.editor-header,.header-actions{flex-wrap:wrap}.app-main,.editor-content{padding:18px}.auth-card,.panel{padding:22px}}
