
:root{--brand:#6259d8;--brand-strong:#5148bd;--brand-soft:#f0eefb;--ink:#252735;--muted:#777a88;--sub:#a1a3ae;--line:#e7e8ec;--page:#f6f7f9;--paper:#fff;--green:#26785e;--green-bg:#edf7f1;--red:#b64d5c;--red-bg:#fff1f2;--amber:#9a6a25;--amber-bg:#fcf5e6;--radius:11px;--shadow:0 12px 44px #23213812}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:13px;line-height:1.6}button,input,textarea,select{font:inherit}button{cursor:pointer}button,input,textarea,select{outline:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b9b3f5;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.45}button{color:inherit}a{color:var(--brand)}svg.icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:-3px}img{max-width:100%}h1,h2,h3,p{margin:0}button{border:0;background:none}.app{display:grid;grid-template-columns:204px minmax(0,1fr);min-height:100vh}.sidebar{height:100vh;position:sticky;top:0;display:flex;flex-direction:column;padding:25px 15px 15px;border-right:1px solid var(--line);background:#fbfbfd}.brand{display:flex;align-items:center;gap:10px;margin:0 9px 29px}.brand img{width:37px;height:37px;border-radius:11px}.brand-name{font-size:19px;font-weight:750;letter-spacing:.5px}.brand-small{color:var(--muted);font-size:10px;letter-spacing:1px;margin-top:0}.nav-group{margin:20px 12px 8px;display:flex;align-items:center;justify-content:space-between;color:#9395a2;font-size:11px;letter-spacing:1px}.navitem{display:flex;align-items:center;gap:11px;width:100%;padding:11px 13px;text-align:left;border-radius:8px;color:#666a7b;white-space:nowrap;margin:3px 0;min-height:42px}.navitem:hover{background:#f0f1f5}.navitem.active{background:var(--brand-soft);color:var(--brand);font-weight:650}.navitem .icon{width:17px}.navitem .small-count{margin-left:auto;color:var(--muted);font-size:11px}.project-nav{padding-left:15px;font-size:12px}.project-nav .project-dot{width:7px;height:7px;border:1.5px solid #b6b2d6;border-radius:2px;flex-shrink:0}.project-nav.active .project-dot{background:var(--brand);border-color:var(--brand)}.project-nav span.project-name{overflow:hidden;text-overflow:ellipsis}.sidebar-bottom{margin-top:auto}.learn-mini{padding:13px 12px;background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:16px}.learn-mini .row{display:flex;justify-content:space-between;align-items:center}.learn-mini small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.mini-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#4b9c7b;margin-right:6px}.mini-dot.paused{background:#b2a177}.profile{display:flex;gap:9px;align-items:center;padding:5px 10px}.avatar{width:29px;height:29px;border-radius:50%;background:#eeedf5;color:#726c93;display:grid;place-items:center;font-size:10px;font-weight:600}.profile strong{font-size:11px;font-weight:550}.profile small{display:block;font-size:10px;color:var(--muted)}.profile .icon-button{margin-left:auto}.main{min-width:0}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 27px;gap:16px}.crumb{display:flex;align-items:center;gap:11px;color:#9395a2;font-size:12px;min-width:0}.crumb strong{font-weight:550;color:#424655;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crumb .icon{width:13px;color:#b5b7bf}.top-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:35px;padding:7px 12px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:12px;line-height:1.5;white-space:nowrap}.btn:hover:not(:disabled){background:#f9f9fc;border-color:#d1cde7}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover:not(:disabled){background:var(--brand-strong)}.btn.quiet{border-color:transparent;background:transparent}.btn.quiet:hover:not(:disabled){background:#f1f0f7}.btn.small{min-height:29px;padding:4px 8px;font-size:11px}.btn.green{background:var(--green-bg);border-color:#d8ecdf;color:var(--green)}.btn.danger{color:var(--red);border-color:#f0d3d8;background:#fff}.btn.wide{width:100%}.icon-button{width:30px;height:30px;display:inline-grid;place-items:center;border-radius:6px;color:var(--muted);flex-shrink:0}.icon-button:hover{background:#eeeef4;color:var(--brand)}.icon-button .icon{width:16px;height:16px}.workspace{height:calc(100vh - 70px);display:grid;grid-template-columns:minmax(0,1fr) 326px}.writing-area{min-width:0;display:flex;flex-direction:column;overflow:hidden}.writing-head{padding:22px 29px 15px;flex-shrink:0;border-bottom:1px solid var(--line);background:#fafafd}.writing-head-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#8e8f9c;font-weight:600}.writing-head h1{font-size:18px;letter-spacing:.1px;font-weight:650;margin-top:4px}.saved{display:flex;align-items:center;gap:6px;font-size:10px;color:#8b8d98;white-space:nowrap}.saved .mini-dot{width:5px;height:5px;margin:0}.writing-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.segmented{display:flex;align-items:center;padding:3px;background:#eeeef3;border-radius:7px;gap:2px}.segmented button{font-size:11px;color:#81818f;padding:5px 10px;border-radius:5px;line-height:1.6}.segmented button.active{background:#fff;color:#414454;box-shadow:0 1px 3px #20202e0b}.segmented .count{font-size:10px;border-radius:4px;padding:0 4px;margin-left:4px;background:#f1effa;color:var(--brand)}.compact-actions{display:flex;align-items:center;gap:5px}.switch-line{display:flex;align-items:center;gap:8px;font-size:11px;white-space:nowrap;color:#6a6c7b}.switch{display:inline-flex;align-items:center;position:relative;width:30px;height:18px;border-radius:20px;background:#d5d6de;padding:2px;cursor:pointer;border:none;flex-shrink:0;transition:background .16s}.switch:after{content:"";width:14px;height:14px;display:block;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .16s}.switch.on{background:var(--brand)}.switch.on:after{transform:translateX(12px)}.style-caption{display:flex;align-items:center;gap:5px;color:var(--brand);font-size:10px;margin-left:6px}.style-caption .icon{width:13px}.doc-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 29px;border-bottom:1px solid #ececf2;gap:8px;background:#fff;flex-shrink:0}.legend{display:flex;gap:12px;font-size:10px;color:#8c8d99;flex-wrap:wrap}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:7px;height:7px;border-radius:2px;background:#a89fe8}.legend i.accepted{background:#8bbda4}.legend i.removed{background:#dea0aa}.doc-scroll{overflow:auto;min-height:0;flex:1;padding:25px 24px 55px;scroll-behavior:smooth}.paper{background:#fff;border:1px solid #e6e6eb;box-shadow:0 4px 22px #27263804;max-width:770px;margin:0 auto;padding:39px 32px 39px;border-radius:3px;min-height:670px}.paper-title{text-align:center;font-family:"Songti SC","STSong","SimSun",serif;font-size:23px;font-weight:700;line-height:1.7;letter-spacing:1.3px;margin:0 auto 7px;max-width:95%}.paper-meta{text-align:center;color:#aaa9b3;font-size:10px;letter-spacing:1px;margin-bottom:26px}.section-heading{font-family:"Songti SC","STSong","SimSun",serif;font-size:17px;font-weight:700;margin:28px 9px 10px}.sentence{position:relative;margin:8px 0;padding:12px 12px 10px 13px;border:1px solid transparent;border-radius:7px;scroll-margin-top:20px}.sentence:hover{border-color:#e9e5f8;background:#fdfcfe}.sentence.selected{border-color:#dcd7f4;background:#fcfbff}.sentence.pending .proposal{background:#f2effd;color:#4f487c;box-decoration-break:clone;-webkit-box-decoration-break:clone;border-radius:3px;padding:2px 1px}.sentence.accepted .main-sentence{background:#f2f9f4;box-decoration-break:clone;-webkit-box-decoration-break:clone;border-radius:3px;padding:2px 1px}.sentence-text{font-family:"Songti SC","STSong","SimSun",serif;font-size:16px;line-height:2.1;color:#42424e;word-break:break-word;overflow-wrap:anywhere}.sentence .old-text{display:block;font-size:14px;color:#bc7c85;text-decoration:line-through;text-decoration-color:#c9909a;background:#fff8f8;border-radius:3px;padding:0 3px;margin-bottom:5px;line-height:1.95}.sentence.delete .old-text{font-size:16px;margin:0}.sentence-top{display:flex;align-items:center;gap:7px;margin-bottom:6px;font-size:9px;color:#aaa5b8;min-height:15px}.sentence-number{font:10px ui-monospace,SFMono-Regular,monospace;letter-spacing:.5px;color:#b3b0bd}.sentence-actions{display:flex;align-items:center;gap:4px;margin-top:8px;min-height:28px}.sentence-actions .spacer{flex:1}.sentence-actions .btn{font-size:10px;min-height:26px;padding:3px 7px}.sentence-actions .icon{width:13px;height:13px}.sentence-status{font-size:9px;display:inline-flex;gap:4px;align-items:center;color:var(--brand)}.sentence-status.accepted{color:var(--green)}.sentence-status.rejected{color:var(--red)}.sentence-status .icon{width:12px;height:12px}.citation{font:10px Inter,-apple-system,sans-serif;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;vertical-align:4px;padding:0 4px;border:1px solid #e5e1f6;border-radius:4px;color:#7a6fbd;background:#f8f7fd;margin-left:4px}.citation:hover{background:#ece8fc}.check-badge{display:inline-flex;align-items:center;gap:4px;border-radius:4px;padding:2px 5px;font-size:9px;line-height:1.5;color:var(--green);background:#f0f7f2}.check-badge .icon{width:11px;height:11px}.check-badge.conflict{color:var(--red);background:var(--red-bg)}.check-badge.missing,.check-badge.stale{color:var(--amber);background:var(--amber-bg)}.check-badge.na{color:#96909f;background:#f4f3f7}.rejected-new{font-size:12px;color:#aaa3af}.document-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:25px 8px 0;border-top:1px solid #eeedf2;padding-top:16px;font-size:10px;color:#aaa7b1}.preview-notice{max-width:770px;margin:0 auto 14px;font-size:11px;color:#837b96;display:flex;align-items:center;gap:7px;line-height:1.8}.plain-paper p{font-family:"Songti SC","STSong","SimSun",serif;font-size:17px;line-height:2.2;text-indent:2em;margin:10px 0;color:#34343e}.plain-paper h2{font-family:"Songti SC","STSong","SimSun",serif;font-size:18px;margin:23px 0 10px}.empty-draft{max-width:560px;margin:70px auto;text-align:center;color:#9995a5}.empty-draft .empty-illustration{width:65px;height:65px;background:#edeaf9;color:#9185ce;display:grid;place-items:center;margin:0 auto 20px;border-radius:19px}.empty-draft .icon{width:25px;height:25px}.empty-draft h2{font-size:19px;color:#494555;margin-bottom:10px}.empty-draft p{font-size:12px;line-height:1.9;margin-bottom:24px}.right-panel{border-left:1px solid var(--line);background:#fff;display:flex;flex-direction:column;min-width:0;overflow:hidden}.panel-tabs{display:flex;border-bottom:1px solid var(--line);padding:9px 13px 0;gap:0;height:52px;flex-shrink:0}.panel-tabs button{flex:1;font-size:11px;color:#8b8997;position:relative;padding:7px 1px 11px;white-space:nowrap}.panel-tabs button.active{color:var(--brand);font-weight:600}.panel-tabs button.active:after{content:"";position:absolute;bottom:-1px;left:18%;right:18%;height:2px;background:var(--brand);border-radius:3px}.panel-content{padding:22px 19px 30px;overflow:auto;min-height:0;flex:1}.panel-kicker{font-size:9px;letter-spacing:1.3px;color:#aaa6b4;margin-bottom:5px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.panel-title h2{font-size:14px;font-weight:600}.panel-desc{font-size:11px;color:#8c8897;line-height:1.85;margin-bottom:19px}.selected-quote{font-size:11px;line-height:1.9;background:#f8f7fb;padding:11px 12px;border-radius:7px;border-left:2px solid #c9c1e9;color:#756c8c;margin:12px 0 20px;overflow-wrap:anywhere}.source-card{border:1px solid var(--line);border-radius:9px;padding:13px;margin-bottom:12px}.file-line{display:flex;align-items:flex-start;gap:9px}.file-icon{display:grid;place-items:center;background:#f1effa;color:#8a7dc4;width:29px;height:33px;border-radius:5px;flex-shrink:0}.file-icon.green{background:#eff6f0;color:#6a9c79}.file-line strong{font-size:11px;font-weight:600;line-height:1.7;overflow-wrap:anywhere;display:block}.file-line small{font-size:9px;color:#aaa6b2;display:block;margin-top:3px}.source-role{display:inline-block;background:#f1f6f2;color:#668374;border-radius:4px;font-size:9px;padding:2px 5px;margin:11px 0 6px}.source-role.style{background:#f4f0fb;color:#9381b3}.source-loc{font-size:9px;color:#9a96a6;margin-bottom:7px;font-family:ui-monospace,SFMono-Regular,monospace}.source-quote{font-size:11px;line-height:1.9;color:#686174;background:#faf9fc;border-radius:5px;padding:9px 10px}.source-card .source-bottom{margin-top:9px;display:flex;gap:7px;align-items:center;justify-content:space-between}.source-card .source-bottom button{font-size:10px;color:var(--brand);padding:3px 0}.source-card .source-bottom .icon{width:12px}.subtle-note{font-size:10px;color:#a7a1b1;line-height:1.85}.audit-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 0 15px}.audit-summary div{padding:10px 4px;border:1px solid var(--line);border-radius:7px;text-align:center}.audit-summary b{display:block;font-size:19px;font-weight:550;color:#6b6579}.audit-summary small{font-size:9px;color:#9c97a8}.audit-summary .bad b{color:var(--red)}.audit-summary .warn b{color:var(--amber)}.audit-card{border:1px solid #e9e4ed;border-radius:9px;padding:14px;margin-bottom:12px}.audit-card.conflict{border-color:#f0d9df;background:#fffdfd}.audit-card.missing{border-color:#eee2cd;background:#fffefa}.audit-card h3{font-size:12px;font-weight:600;margin-bottom:10px}.audit-label{font-size:10px;color:#9e96a8;margin-top:9px;margin-bottom:3px}.formula{padding:10px;background:#f7f6f9;font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px;border-radius:5px;line-height:1.9;color:#676071;overflow-wrap:anywhere}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:11px 0}.comparison div{padding:8px;background:#f9f7fa;border-radius:5px;font-size:10px;color:#aaa1ae}.comparison strong{font-size:18px;display:block;color:#62566c;font-weight:550}.comparison .wrong strong{color:var(--red)}.issue-link{width:100%;display:flex;align-items:center;gap:7px;padding:9px 5px;border-bottom:1px solid #f0edf3;text-align:left;font-size:10px;color:#857b8c}.issue-link .icon{width:13px;height:13px}.issue-link .arrow{margin-left:auto}.chat-message{font-size:11px;color:#6d657b;line-height:1.9;margin-bottom:21px}.chat-label{font-size:9px;color:#a6a0b0;margin-bottom:7px;display:flex;align-items:center;gap:6px}.chat-message.user .chat-body{padding:11px 12px;background:#f5f3fb;border-radius:9px}.chat-message.ai .chat-body{padding:0 0 0 1px}.chat-message.ai .chat-label{color:#7d70ae}.chat-label img{width:19px;height:19px;border-radius:6px}.chat-mini-task{font-size:10px;border:1px solid #ebe7f2;border-radius:6px;margin:9px 0;padding:8px 9px;display:flex;gap:8px;align-items:center;color:#95899f}.chat-compose{margin-top:20px;padding:11px;border:1px solid #ddd7ec;border-radius:9px;box-shadow:0 2px 8px #6f5a9d05}.chat-compose textarea{border:0;resize:vertical;width:100%;min-height:80px;font-size:11px;color:#61596d;background:transparent;line-height:1.9}.chat-compose-footer{display:flex;align-items:center;justify-content:space-between}.chat-compose-footer small{font-size:9px;color:#aaa0b6}.view-container{max-width:1260px;margin:0 auto;padding:35px 35px 70px}.view-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:29px;gap:15px}.view-header h1{font-size:24px;font-weight:650;margin:4px 0 7px}.view-header p{font-size:12px;color:#9691a0}.view-header .btn{min-height:37px}.summary-bar{display:flex;align-items:center;justify-content:space-between;padding:15px 19px;background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:20px;gap:12px}.summary-bar strong{font-weight:550;font-size:12px}.summary-bar small{font-size:11px;color:#9e99a8;margin-left:12px}.material-layout{display:grid;grid-template-columns:185px minmax(0,1fr);gap:18px;align-items:start}.folder-tree{padding:15px 11px;background:white;border:1px solid var(--line);border-radius:9px}.tree-title{font-size:10px;color:#aaa4b4;letter-spacing:1px;padding:4px 7px 14px}.tree-button{display:flex;align-items:center;width:100%;padding:10px 7px;border-radius:6px;gap:8px;font-size:11px;color:#8a8295;text-align:left}.tree-button .icon{width:14px}.tree-button.active{background:var(--brand-soft);color:var(--brand)}.tree-button span:last-child{margin-left:auto;font-size:9px}.material-main{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden;min-width:0}.list-toolbar{padding:15px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}.search-box{display:flex;align-items:center;gap:7px;max-width:270px;min-width:100px;color:#afa8b8}.search-box input{width:100%;border:0;background:transparent;font-size:11px;color:#766c83}.search-box .icon{width:15px}.material-table{border-collapse:collapse;width:100%;font-size:11px;table-layout:fixed}.material-table th{color:#a49bab;font-size:9px;font-weight:500;letter-spacing:.5px;text-align:left;padding:11px 16px;background:#fcfbfd;border-bottom:1px solid #eeebf2}.material-table td{padding:14px 16px;border-bottom:1px solid #f0edf3;vertical-align:middle}.material-table tbody tr:hover{background:#fcfbff}.material-table th:first-child{width:53%}.material-table td .file-line strong{font-weight:500}.material-table td .file-line small{font-size:9px}.material-table .file-icon{width:28px;height:32px}.status-pill{display:inline-flex;align-items:center;gap:5px;font-size:9px;border-radius:4px;background:#f0f6f2;color:#7b9483;padding:3px 6px;white-space:nowrap}.status-pill.partial{color:#a58b57;background:#fcf7ed}.status-pill.wait{color:#a19aaa;background:#f3f1f6}.table-foot{padding:12px 16px;color:#ada3b5;font-size:9px;line-height:1.8}.style-top{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:10px;padding:24px 26px;margin-bottom:22px;gap:18px}.style-top h2{font-size:19px;font-weight:600}.style-meta{display:flex;gap:8px;margin-top:11px;flex-wrap:wrap}.chip{border:1px solid #e8e3ef;border-radius:4px;padding:2px 6px;color:#94869f;font-size:9px;white-space:nowrap}.chip.purple{background:#f4f0fb;color:#8c78ac;border-color:#e8dff2}.coverage{font-size:11px;color:#8e8199;margin-top:14px}.coverage-track{height:4px;background:#efedf4;border-radius:4px;margin-top:9px;width:180px}.coverage-track div{height:100%;width:100%;border-radius:4px;background:#a394c9}.style-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr);gap:20px}.section-card{background:white;border:1px solid var(--line);border-radius:10px;padding:22px 24px}.section-card h2{font-size:14px;font-weight:600;margin-bottom:19px}.style-rule{border-bottom:1px solid #efebf4;padding:0 0 20px;margin-bottom:20px;display:flex;gap:13px}.style-rule:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}.rule-num{font-size:10px;color:#a79abb;line-height:2;padding-top:1px;font-family:ui-monospace,SFMono-Regular,monospace}.style-rule h3{font-size:12px;font-weight:600;margin-bottom:5px}.style-rule p{font-size:11px;color:#9c91a7;line-height:1.9}.evidence-button{font-size:10px;color:#9281b1;padding:6px 0 0;display:inline-flex;gap:5px;align-items:center}.evidence-button .icon{width:12px}.small-section{margin:0 0 21px}.small-section:last-child{margin:0}.small-section h3{font-size:11px;color:#84758e;margin-bottom:8px}.small-section p,.small-section li{font-size:11px;color:#a093ac;line-height:1.95}.small-section ul{margin:0;padding-left:17px}.learning-list{margin-top:22px;background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.learning-list summary{padding:17px 22px;font-size:12px;color:#7e6b8c;cursor:pointer}.learning-list .evidence-row{display:flex;align-items:center;gap:9px;padding:12px 22px;border-top:1px solid #f1edf4;color:#9d8da7;font-size:10px}.learning-list .evidence-row .btn{margin-left:auto}.projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.project-card{display:flex;flex-direction:column;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:11px;padding:22px;text-align:left;min-height:172px}.project-card:hover{border-color:#cfc5e4;box-shadow:0 6px 20px #6259d809}.project-card .project-icon{width:35px;height:35px;background:#f1edf9;display:grid;place-items:center;border-radius:9px;color:#9b83bc;margin-bottom:18px}.project-card h2{font-size:14px;margin-bottom:8px}.project-card p{font-size:10px;color:#a492b0}.project-card .row{display:flex;gap:15px;margin-top:auto;padding-top:20px;font-size:10px;color:#a395ad}.modal-backdrop{position:fixed;inset:0;background:#27213d40;z-index:50;display:flex;align-items:center;justify-content:center;padding:25px;backdrop-filter:blur(3px)}.modal{background:#fff;width:640px;max-width:100%;max-height:90vh;border-radius:15px;box-shadow:0 25px 90px #1f163d33;display:flex;flex-direction:column;overflow:hidden}.modal.large{width:920px}.modal.small{width:450px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px 26px 17px;border-bottom:1px solid var(--line);flex-shrink:0}.modal-head h2{font-size:17px;font-weight:650}.modal-head p{font-size:10px;color:#a399af;margin-top:5px}.modal-body{padding:23px 26px;overflow:auto;min-height:0}.modal-foot{border-top:1px solid var(--line);padding:17px 25px;display:flex;align-items:center;justify-content:space-between;gap:13px;flex-shrink:0;background:#fdfcfe}.modal-foot .actions{display:flex;gap:8px}.modal-foot p{font-size:10px;color:#a598b1;max-width:310px;line-height:1.8}.form-field{margin-bottom:19px}.form-field label{font-size:11px;color:#8c7b9d;display:block;margin-bottom:7px}.input,select.input{width:100%;border:1px solid #e3dcec;border-radius:7px;padding:10px 12px;font-size:12px;line-height:1.7;background:#fff;color:#6d5d7c}.input:focus{border-color:#b8a9d4;box-shadow:0 0 0 3px #f4effb}.form-field textarea{min-height:130px;resize:vertical}.form-help{font-size:10px;color:#ae9db8;line-height:1.9;margin-top:7px}.info-strip{padding:12px 15px;border:1px solid #e7dff1;border-radius:7px;background:#faf7ff;font-size:11px;color:#9581ac;line-height:1.85;display:flex;gap:9px;margin-bottom:18px}.info-strip .icon{width:16px;margin-top:2px}.info-strip.warn{background:#fffaf1;border-color:#f0e1c9;color:#a68953}.info-strip.green{background:#f3faf5;border-color:#dcecdf;color:#6c947c}.material-tabs{padding:0 23px;display:flex;gap:20px;border-bottom:1px solid var(--line);flex-shrink:0}.material-tabs button{padding:13px 0;font-size:11px;color:#a391ae;position:relative}.material-tabs button.active{color:var(--brand);font-weight:600}.material-tabs button.active:after{position:absolute;content:"";left:0;right:0;bottom:-1px;height:2px;background:var(--brand)}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-item{padding:16px;background:#fbf9fd;border:1px solid #ede6f4;border-radius:8px}.detail-item h3{font-size:11px;color:#8f7a9c;margin-bottom:8px}.detail-item p{font-size:12px;color:#9f8eab;line-height:1.9}.detail-table{width:100%;border-collapse:collapse;font-size:11px}.detail-table th,.detail-table td{padding:13px 10px;text-align:left;border-bottom:1px solid #ede6f4}.detail-table th{font-size:10px;color:#ab98b7;font-weight:500}.detail-table td{color:#927e9f}.detail-table strong{color:#725b81;font-weight:550}.raw-preview{padding:25px 30px;border:1px solid #ece5f3;min-height:250px;font-family:"Songti SC","SimSun",serif;line-height:2.1;color:#8e7c9d;background:#fff}.raw-preview h3{font-size:18px;margin-bottom:20px}.raw-preview p{font-size:14px;margin-bottom:13px}.raw-preview .source-loc{font-family:inherit;color:#b39dc1;font-size:11px}.fact-footnote{font-size:10px;line-height:1.9;color:#ad98b9;padding-top:16px}.export-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(230px,1fr);gap:22px}.export-paper{border:1px solid #e8e1ee;padding:24px;background:#fff;max-height:430px;overflow:auto}.export-paper h2{text-align:center;font-family:"Songti SC","SimSun",serif;font-size:18px;line-height:1.8;margin:0 0 18px}.export-paper h3{font-family:"Songti SC","SimSun",serif;font-size:13px;margin:17px 0 8px}.export-paper p{font-family:"Songti SC","SimSun",serif;font-size:12px;line-height:2.1;text-indent:2em;color:#786784}.export-check{padding:13px 0;border-bottom:1px solid #eee7f4;font-size:11px;color:#9c87a9;display:flex;align-items:flex-start;gap:8px;line-height:1.9}.export-check .icon{width:15px;height:15px;margin-top:3px;color:#90ab99}.export-check.bad .icon{color:#bc8793}.export-check.warn .icon{color:#bca16d}.export-meta{font-size:10px;color:#b09fbc;margin:13px 0 0;line-height:1.9}.history-item{display:flex;gap:13px;padding:14px 0;border-bottom:1px solid #eee7f4}.history-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f4eef9;color:#ae92bd}.history-icon .icon{width:13px;height:13px}.history-item strong{font-size:11px;font-weight:550;color:#8c729d}.history-item p{font-size:10px;color:#b09aba;line-height:1.8;margin-top:5px}.history-item small{font-size:9px;color:#bfadca;margin-left:auto;white-space:nowrap}.output-row{padding:13px 0;border-bottom:1px solid var(--line);display:flex;gap:10px;align-items:center}.output-row .file-line{flex:1}.output-row .chip{margin-left:auto}.toast-host{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:80;pointer-events:none;max-width:90vw}.toast{background:#393345;color:#f9f5ff;border-radius:8px;padding:12px 18px;box-shadow:0 8px 35px #352a4b26;font-size:12px;line-height:1.7;animation:toast-in .18s ease}.mobile-menu,.mobile-panel{display:none}.selection-note{margin-top:8px;padding:7px;background:#f5effb;border-radius:5px;font-size:10px;color:#a387b4}.no-results{padding:45px;text-align:center;color:#ad9dba;font-size:12px}.hidden{display:none!important}@keyframes toast-in{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(min-width:1600px){.workspace{grid-template-columns:minmax(0,1fr) 360px}.paper{padding-left:47px;padding-right:47px}.panel-content{padding-left:25px;padding-right:25px}}
@media(max-width:1190px){.app{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding-left:10px;padding-right:10px}.brand{margin-left:5px;gap:8px}.brand-name{font-size:17px}.workspace{grid-template-columns:minmax(0,1fr) 296px}.writing-head{padding:19px 20px 14px}.doc-toolbar{padding-left:20px;padding-right:20px}.doc-scroll{padding:19px 17px 45px}.paper{padding:28px 20px}.paper-title{font-size:21px}.sentence-text{font-size:15px}.topbar{padding:0 20px}.top-actions .panel-content{padding:20px 15px}.style-caption{display:none}.view-container{padding:28px 25px 60px}.material-layout{grid-template-columns:155px minmax(0,1fr)}.material-table th:first-child{width:60%}.material-table .type-col{display:none}.style-grid{grid-template-columns:1fr 1fr}.projects-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:960px){.workspace{grid-template-columns:minmax(0,1fr)}.right-panel{display:none}.right-panel.mobile-open{display:flex;position:fixed;right:0;top:70px;bottom:0;width:340px;z-index:25;box-shadow:-8px 0 45px #3326461a}.mobile-panel{display:inline-flex}.writing-head h1{font-size:18px}.paper{max-width:730px;padding:33px 27px}.doc-scroll{padding:22px}.style-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr 1fr}.view-header{align-items:flex-start}.view-header h1{font-size:22px}.material-layout{grid-template-columns:1fr}.folder-tree{display:flex;gap:4px;overflow:auto;padding:7px}.tree-title{display:none}.tree-button{width:auto;white-space:nowrap;gap:7px;padding:7px 9px}.tree-button span:last-child{margin-left:5px}.summary-bar small{display:none}.style-top{padding:20px}.modal-backdrop{padding:19px}.export-grid{gap:16px}.material-table th:first-child{width:58%}}
@media(max-width:640px){.app{display:block}.sidebar{display:none}.sidebar.mobile-open{display:flex;position:fixed;left:0;top:0;width:220px;z-index:40;box-shadow:8px 0 35px #33264630}.topbar{height:58px;padding:0 13px;gap:8px}.crumb{font-size:11px;gap:5px}.crumb .crumb-label,.crumb>.icon{display:none}.mobile-menu{display:inline-grid}.top-actions{gap:4px}.top-actions .btn{font-size:10px;padding:5px 8px;min-height:31px}.top-actions .preview-top{display:none}.workspace{height:calc(100dvh - 58px)}.right-panel.mobile-open{top:58px;width:min(100vw,355px)}.writing-head{padding:16px 15px 12px}.writing-head h1{font-size:16px}.writing-head-top{margin-bottom:12px}.saved{font-size:8px}.writing-controls{gap:10px}.switch-line{font-size:10px}.style-caption{display:none}.compact-actions .btn.small{font-size:10px}.doc-toolbar{padding:8px 14px}.legend{gap:8px;font-size:9px}.doc-toolbar .btn.small{font-size:9px;padding:3px 5px}.doc-scroll{padding:14px 9px 35px}.paper{padding:26px 12px;min-height:620px}.paper-title{font-size:19px;letter-spacing:.4px}.paper-meta{font-size:8px}.sentence{padding:10px 8px}.sentence-text{font-size:15px;line-height:2.15}.sentence .old-text{font-size:13px}.section-heading{font-size:16px}.sentence-actions{gap:2px}.sentence-actions .btn{padding:3px 5px}.sentence-actions .source-text{display:none}.view-container{padding:23px 15px 50px}.view-header{gap:9px;margin-bottom:20px}.view-header h1{font-size:20px}.view-header p{font-size:10px}.view-header .btn{font-size:10px;min-height:32px;padding:6px 8px}.summary-bar{padding:12px 13px}.summary-bar strong{font-size:10px}.material-table td,.material-table th{padding:11px 10px}.material-table th:first-child{width:60%}.material-table .action-col{width:18%}.material-table .file-line strong{font-size:10px}.material-table .file-line small{font-size:8px}.material-table .file-icon{display:none}.material-table .status-pill{font-size:8px}.list-toolbar{padding:11px 12px}.list-toolbar .subtle-note{font-size:9px}.folder-tree{margin-bottom:-3px}.style-top{padding:18px;align-items:flex-start;gap:12px}.style-top h2{font-size:17px}.style-top .switch-line{flex-direction:column-reverse;gap:6px}.section-card{padding:19px}.projects-grid{grid-template-columns:1fr}.project-card{min-height:146px}.modal-backdrop{padding:12px}.modal{max-height:94dvh;border-radius:12px}.modal-head{padding:18px 18px 13px}.modal-head h2{font-size:15px}.modal-body{padding:18px}.modal-foot{padding:13px 17px;flex-wrap:wrap}.modal-foot p{font-size:9px;max-width:100%}.modal-foot .actions{margin-left:auto}.material-tabs{padding:0 18px;gap:16px}.material-tabs button{font-size:10px}.detail-grid{grid-template-columns:1fr;gap:12px}.export-grid{grid-template-columns:1fr}.export-paper{max-height:260px;padding:20px}.export-check{padding:8px 0}.raw-preview{padding:19px}.plain-paper p{font-size:15px}.history-item small{font-size:8px}.connection-badge-legacy{font-size:8px}.toast-host{bottom:18px}.toast{font-size:11px}.paper .document-footer{font-size:8px}}
.panel-tabs .panel-close{flex:0 0 30px;min-width:30px;padding:0;align-self:center;margin-right:5px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{body>.app,body>#app,body>.toast-host{display:none!important}}
/* Conversation, plans and page editing */
.app{grid-template-columns:176px minmax(0,1fr)}.sidebar{padding:24px 10px 14px}.brand{margin:0 7px 27px;gap:8px}.brand img{width:34px;height:34px}.brand-name{font-size:17px}.brand-small{font-size:9px}.navitem{padding:10px 11px;font-size:12px}.nav-group{margin-left:10px;margin-right:8px}.profile{padding:5px}.learn-mini{padding:11px 10px}.topbar{height:62px;padding:0 24px}.v3-workspace{height:calc(100dvh - 62px);grid-template-columns:minmax(310px,360px) minmax(0,1fr);position:relative;overflow:hidden}.conversation-pane{min-width:0;display:flex;flex-direction:column;background:#fbfbfd;border-right:1px solid var(--line);overflow:hidden}.conversation-head{height:66px;display:flex;justify-content:space-between;align-items:center;padding:13px 20px 11px;border-bottom:1px solid #f0eff4;gap:7px;flex-shrink:0}.conversation-head>div{min-width:0;flex:1}.conversation-kicker{display:block;font-size:9px;letter-spacing:1px;color:#a1a0ae;margin-bottom:1px}.conversation-head select{max-width:100%;width:100%;padding:0 16px 0 0;border:0;background:transparent;color:#454151;font-size:12px;font-weight:600;text-overflow:ellipsis}.chat-scroll{padding:21px 21px 15px;overflow:auto;min-height:0;flex:1;scroll-behavior:smooth}.welcome-card{padding:5px 0 22px;margin-bottom:18px;border-bottom:1px solid #eeedf4}.welcome-card>img{width:33px;height:33px;border-radius:10px;margin-bottom:13px}.welcome-card h2{font-size:20px;font-weight:650;letter-spacing:-.3px;margin-bottom:9px;color:#36323f}.welcome-card p{font-size:12px;line-height:1.9;color:#8a8494}.welcome-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:18px}.welcome-actions button{padding:9px 10px;border:1px solid #e7e3ee;border-radius:8px;background:#fff;text-align:left;font-size:11px;color:#726780;display:flex;align-items:center;gap:8px}.welcome-actions button:hover{border-color:#c6bfe7;background:#f5f2fc;color:var(--brand)}.welcome-actions .icon{width:15px}.welcome-card.compact{display:grid;grid-template-columns:25px minmax(0,1fr);column-gap:9px;padding:0 0 15px;margin-bottom:19px}.welcome-card.compact>img{width:25px;height:25px;margin:1px 0 0}.welcome-card.compact h2{font-size:12px;margin:0}.welcome-card.compact p{font-size:10px;grid-column:2;line-height:1.7;margin:2px 0 0}.conversation-pane .chat-message{font-size:12px;color:#635c70;line-height:1.9;margin-bottom:22px;overflow-wrap:anywhere}.chat-label{font-size:10px;color:#a39aaa;gap:6px}.chat-label time{margin-left:auto;font-size:9px;color:#b1aab7}.chat-message.user .chat-body{background:#efedf6;border-radius:10px;padding:11px 12px}.chat-message.ai .chat-body{padding:0}.chat-message.ai .chat-body>p{margin-bottom:12px}.composer-wrap{padding:0 15px 14px;background:#fbfbfd;flex-shrink:0}.composer-settings{display:flex;align-items:center;justify-content:space-between;padding:9px 4px 10px;gap:8px}.composer-settings .switch-line{font-size:10px;color:#8f839e;gap:7px}.composer-settings .icon{width:13px;height:13px}.composer-settings>button{font-size:9px;color:#a397b1;white-space:nowrap}.composer-settings .switch{width:26px;height:16px}.composer-settings .switch:after{width:12px;height:12px}.composer-settings .switch.on:after{transform:translateX(10px)}.prompt-box{border:1px solid #dcd7e8;border-radius:14px;background:#fff;box-shadow:0 3px 14px #44356b08;transition:border-color .15s}.prompt-box:focus-within{border-color:#a99ad9;box-shadow:0 0 0 3px #6259d807}.prompt-box.plan-mode{border-color:#d6c8e9}#prompt-editor{min-height:96px;max-height:200px;overflow:auto;padding:15px 14px 8px;font-size:13px;line-height:2;outline:none;color:#4b4258;overflow-wrap:anywhere;white-space:pre-wrap}#prompt-editor:empty:before{content:attr(data-placeholder);color:#aaa0b4;pointer-events:none}.prompt-ref{display:inline-flex;max-width:100%;vertical-align:middle;align-items:center;border:1px solid #dcd7ed;border-radius:6px;background:#eeebf8;color:#6e5d9a;font-size:11px;line-height:1.7;padding:1px 4px;margin:1px 2px 2px 0;white-space:nowrap;user-select:none;max-height:27px}.prompt-ref.material{background:#edf3f8;border-color:#d8e6ef;color:#54728d}.prompt-ref.plan{background:#f4eff9;border-color:#e1d7ee;color:#84639f}.prompt-ref.invalid{background:#fff3ed;border-color:#edd3c1;color:#b27850}.ref-open{min-width:0;display:inline-flex;gap:5px;align-items:center;cursor:pointer;max-width:225px}.ref-open>span{overflow:hidden;text-overflow:ellipsis;max-width:185px}.ref-open .icon{width:13px;height:13px}.ref-remove{display:inline-grid;place-items:center;margin-left:3px;padding:2px;border-radius:3px;cursor:pointer}.ref-remove:hover{background:#d8d1ed}.ref-remove .icon{width:11px;height:11px}.prompt-actions{display:flex;align-items:center;justify-content:space-between;padding:6px 10px 10px;gap:7px}.prompt-left,.prompt-right{display:flex;align-items:center;gap:4px;min-width:0}.mode-control{display:flex;gap:5px;align-items:center;padding:3px 6px;border-radius:6px;color:#78688c;background:#f6f3fa}.mode-control .icon{width:14px;height:14px}.mode-control select{border:0;background:transparent;color:#746285;font-size:11px;padding:2px 0;max-width:68px}.mode-hint{font-size:9px;color:#b0a4bb;margin-left:3px;white-space:nowrap}.send-button{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:var(--brand);color:white}.send-button .icon{width:18px;height:18px}.send-button.stop{border-radius:9px;background:#83758e}.composer-note{display:flex;align-items:center;justify-content:space-between;font-size:8px;color:#b4acbd;padding:7px 3px 0;gap:4px}.composer-note span{white-space:nowrap}.composer-note .icon{width:10px;height:10px;margin-right:3px}.priority-tray{padding:0 3px;font-size:10px;color:#92849f}.priority-tray>summary{list-style:none;display:flex;gap:6px;align-items:center;padding:8px 2px;cursor:pointer}.priority-tray summary .icon{width:13px;height:13px}.priority-tray summary>span{margin-left:auto;font-size:9px}.priority-tray>div{border-top:1px solid #ece6f1;padding:6px 1px 8px;max-height:160px;overflow:auto}.priority-tray small{font-size:9px;color:#a89bb5}.priority-item{display:flex;align-items:center;justify-content:space-between;gap:6px}.priority-item>button:first-child{display:flex;align-items:center;gap:6px;min-width:0;font-size:10px;color:#8b7d99;text-align:left}.priority-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.priority-item .icon{width:13px;height:13px}.priority-item .icon-button{width:24px;height:24px}.page-workspace{background:#fff;min-width:0}.page-topbar{height:66px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 26px;border-bottom:1px solid var(--line);flex-shrink:0}.page-tabs{display:flex;align-self:stretch;align-items:center;gap:18px}.page-tabs>button{display:flex;align-items:center;gap:7px;height:100%;border-bottom:2px solid transparent;color:#96909f;font-size:12px;white-space:nowrap;padding:0 2px}.page-tabs>button.active{color:#51435e;border-color:var(--brand);font-weight:550}.page-tabs .count{font-size:9px;color:#9081a4;background:#f1eef6;border-radius:4px;padding:0 4px;margin-left:0}.page-tabs .icon{width:15px}.page-tools,.plan-controls{padding:10px 26px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #f0edf4;flex-shrink:0}.page-tools .segmented{background:#f5f3f8}.page-tools .segmented button{font-size:10px;padding:4px 8px}.page-tools .btn.small{font-size:10px}.page-tools .icon-button{width:27px}.page-workspace .doc-scroll{padding:0 17px 40px;background:#fff}.paper.page-paper{border:0;box-shadow:none;max-width:850px;padding:35px 37px 36px;background:transparent;min-height:690px}.document-heading{margin-bottom:27px}.page-document-type{display:flex;align-items:center;gap:7px;color:#b1a7bb;font-size:10px;letter-spacing:.5px;margin-bottom:17px}.page-document-type .icon{width:13px;height:13px}.page-document-type>span:first-of-type{font-size:9px;background:#f6f3f9;border-radius:4px;padding:0 5px}.page-document-type .saved{margin-left:auto;font-size:9px;color:#b4a9bd;letter-spacing:0}.page-paper .paper-title{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:26px;line-height:1.55;letter-spacing:-.4px;text-align:left;max-width:100%;margin:0 0 12px;font-weight:650;color:#343039;cursor:text}.page-paper .paper-meta{text-align:left;font-size:9px;color:#b6acbd;letter-spacing:0;display:flex;gap:10px;margin:0}.page-block{position:relative;margin:15px 0;min-height:26px;scroll-margin-top:24px}.block-rail{position:absolute;left:-33px;top:6px;display:flex;flex-direction:column;gap:0;opacity:0;transition:opacity .12s}.page-block:hover>.block-rail,.page-block:focus-within>.block-rail,.page-block.menu-open>.block-rail{opacity:1}.block-rail .icon-button{width:25px;height:24px;color:#b7adbf}.block-rail .icon{width:14px;height:14px}.page-block .sentence{padding:10px 12px;border-radius:7px;margin:5px 0}.page-block .sentence.pending{border:1px solid #e6e0f0;background:#fdfbff}.page-block .sentence.accepted:not(.unchanged){border-left:2px solid #b8d5c6}.page-block .sentence.unchanged{padding:2px 0;border:0;background:transparent}.page-block .sentence.unchanged .sentence-actions{height:26px;margin:4px 0 0;opacity:.65}.page-block .sentence.unchanged:hover .sentence-actions{opacity:1}.page-block .sentence-text{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:2.05;color:#514958}.page-block .sentence .old-text{font-size:12px;line-height:1.85;margin-bottom:5px}.page-block .sentence-top{margin-bottom:6px}.page-block .sentence-status{font-size:9px}.page-block .sentence-actions{gap:3px;margin-top:8px}.page-block .sentence-actions .check-badge{font-size:8px}.page-block .sentence-actions .btn{font-size:10px}.page-block .sentence-actions .icon-button{width:25px;height:25px}.page-block .sentence-actions>.btn:first-child{padding-left:0}.page-block .main-sentence{background:transparent!important}.page-block .sentence.accepted:not(.unchanged) .main-sentence{background:#f1f8f3!important}.page-block .structural-text{font-size:15px;line-height:1.85;cursor:text}.page-block.type-heading1{margin-top:30px;margin-bottom:14px}.page-block.type-heading2{margin-top:25px;margin-bottom:12px}.page-block.type-heading3{margin-top:20px;margin-bottom:10px}.type-heading1 .structural-text,.type-heading1 .sentence-text{font-size:22px;font-weight:650}.type-heading2 .structural-text,.type-heading2 .sentence-text{font-size:18px;font-weight:600}.type-heading3 .structural-text,.type-heading3 .sentence-text{font-size:15px;font-weight:600}.type-quote>.block-content{border-left:3px solid #d4cadf;padding-left:15px;color:#918298}.type-bullet>.block-content{padding-left:15px}.type-bullet>.block-content:before{content:'•';position:absolute;left:0;top:5px;color:#aa9bb7}.type-numbered>.block-content{padding-left:22px}.type-numbered>.block-content:before{content:'1.';position:absolute;left:0;top:5px;color:#aa9bb7;font-size:12px}.empty-page-block,[data-block-editor]{outline:0;min-height:32px;font-size:14px;line-height:1.95;color:#5b4b67;white-space:pre-wrap;overflow-wrap:anywhere}.empty-page-block:empty:before,[data-block-editor]:empty:before{content:attr(data-placeholder);color:#c0b5c9;pointer-events:none}.inline-block-editor{border:1px solid #d7cce7;border-radius:7px;background:#fefcff;padding:12px}.inline-block-editor [data-block-editor]{min-height:60px}.block-editor-actions{display:flex;justify-content:flex-end;align-items:center;gap:5px;border-top:1px solid #eee8f4;margin-top:11px;padding-top:8px}.block-editor-actions small{margin-right:auto;font-size:9px;color:#b19bbd;max-width:65%}.add-block-end{display:flex;gap:7px;align-items:center;color:#b7a9c3;font-size:11px;padding:12px 0;margin:14px 0 0;width:100%;text-align:left}.add-block-end:hover{color:var(--brand)}.add-block-end .icon{width:14px}.block-menu{position:absolute;z-index:45;top:4px;left:-27px;width:240px;background:#fff;border:1px solid #e4ddec;border-radius:10px;box-shadow:0 12px 35px #44315324;padding:10px}.block-menu-label{font-size:9px;color:#b1a2bd;margin:0 6px 8px}.block-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:3px}.block-type-grid button{display:flex;align-items:center;gap:7px;text-align:left;padding:7px 6px;font-size:10px;color:#91809e;border-radius:5px}.block-type-grid button:hover,.block-type-grid button.active{background:#f0ebf8;color:var(--brand)}.block-type-grid .icon{width:13px;height:13px}.block-menu>.btn{justify-content:flex-start;font-size:11px;min-height:30px;padding:5px 7px}.block-menu-row{display:flex;gap:4px}.block-menu-row .btn{flex:1}.block-menu-divider{height:1px;background:#ece5f1;margin:7px 1px}.selection-popover{position:fixed;z-index:110;display:flex;gap:4px;background:white;border:1px solid #dcd2e8;border-radius:8px;box-shadow:0 5px 24px #49345925;padding:4px}.selection-popover .btn{font-size:10px}.simple-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}.simple-table th,.simple-table td{padding:9px 10px;border:1px solid #e4ddec;text-align:left;overflow-wrap:anywhere;white-space:pre-wrap}.simple-table th{background:#f8f5fb;color:#7d688f;font-weight:550}.simple-table-wrap>.btn{margin:8px 7px 0 0}.page-paper .document-footer{font-size:9px;margin:20px 0 0;color:#b7a9c3}.page-paper.plain-paper .paper-title{margin-bottom:30px}.page-paper.plain-paper p{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:2.05;text-indent:0;margin:12px 0;color:#514958}.page-paper.plain-paper h2,.page-paper.plain-paper h3{font-family:inherit;font-size:18px;margin:24px 0 14px}.page-paper.plain-paper h4{font-size:15px;margin:20px 0 12px}.preview-notice{padding:17px 24px 0;font-size:10px}.empty-body{color:#b2a0bd;font-size:12px;padding:40px 0}.inspector-backdrop{position:absolute;inset:0;background:#30223716;z-index:60}.right-panel.inspector{position:absolute;display:flex!important;top:0;bottom:0;right:0;width:365px;z-index:65;border-left:1px solid #e4dcec;box-shadow:-8px 0 40px #42324f10}.inspector .panel-tabs{height:53px}.inspector .panel-tabs .icon-button{flex:0 0 28px;padding:0;margin-left:7px}.inspector .panel-tabs .icon-button:after{display:none}.inspector .panel-content{padding:20px}.plan-controls{padding-top:12px;padding-bottom:12px}.plan-controls .segmented button{font-size:10px}.plan-controls .btn{font-size:10px}.plan-paper{max-width:820px;margin:0 auto;padding:32px 30px 42px}.plan-file-label{display:flex;align-items:center;gap:8px;font-size:13px;color:#64516f;font-weight:550;margin-bottom:11px}.plan-file-label>span{font-size:9px;background:#f2edf7;border-radius:4px;padding:2px 6px;color:#9f87af;margin-left:auto;font-weight:400}.plan-file-label .icon{color:var(--brand)}.plan-explain{font-size:11px;color:#a28cad;line-height:1.9;margin-bottom:20px}.plan-bound-refs{border:1px solid #e8dfef;border-radius:8px;padding:9px 11px;font-size:10px;line-height:2.3;margin-bottom:20px}.plan-bound-refs>span:first-child{display:block;color:#aa98b6;font-size:9px}.plan-bound-refs>small{color:#aa98b6;font-size:10px}.plan-bound-refs .prompt-ref{max-width:100%}.plan-bound-refs .ref-open>span{max-width:320px}.plan-bound-refs>.btn{display:block;margin-top:4px;font-size:9px}.markdown-preview{font-size:13px;line-height:1.95;color:#67546f}.markdown-preview h1{font-size:25px;letter-spacing:-.5px;margin:20px 0;font-weight:650;color:#3e3345}.markdown-preview h2{font-size:17px;margin:26px 0 10px;font-weight:600;color:#55415f}.markdown-preview h3{font-size:14px;margin:18px 0 8px}.markdown-preview p{margin:10px 0}.markdown-preview ul,.markdown-preview ol{padding-left:22px;margin:8px 0}.markdown-preview li{padding-left:2px;margin:7px 0}.md-task{list-style:none;margin-left:-22px!important;display:flex;align-items:flex-start;gap:8px}.md-checkbox{border:1px solid #cfc0dd;border-radius:3px;width:13px;height:13px;line-height:12px;flex-shrink:0;margin-top:7px;text-align:center;font-size:10px}.markdown-editor{width:100%;min-height:640px;resize:vertical;border:1px solid #e1d6ea;border-radius:8px;padding:16px;font:12px/1.9 ui-monospace,SFMono-Regular,Menlo,monospace;color:#796185;background:#fdfbff;tab-size:2}.plan-bottom{border-top:1px solid #eee5f4;margin-top:25px;padding-top:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.plan-bottom>span{font-size:9px;color:#b4a2c0}.plan-card{border:1px solid #e2d8ec;border-radius:9px;background:#fff;margin-top:11px;padding:12px 13px}.plan-card-title{display:flex;align-items:center;gap:7px;font-size:11px;color:#7f6793}.plan-card-title .icon{width:15px;height:15px}.plan-card-title>span{margin-left:auto;font-size:9px;color:#aa95b9}.plan-card>p{font-size:10px;color:#a08aaf;margin-top:7px}.plan-card ol{padding-left:19px;font-size:10px;line-height:1.9;margin:9px 0 11px;color:#9982a8}.plan-card-actions{display:flex;justify-content:space-between;gap:7px}.plan-card .btn{font-size:10px}.run-card{border:1px solid #e8dfef;background:#fff;border-radius:9px;overflow:hidden}.run-card>summary{display:flex;align-items:center;gap:7px;list-style:none;padding:12px 11px;cursor:pointer;font-size:10px;color:#927c9e}.run-card>summary>strong{font-weight:550;color:#796185}.run-card>summary>span:not(.run-status){font-size:9px}.run-card>summary>i{font-style:normal;font-size:8px;background:#f4f0f8;color:#b2a0bd;padding:1px 4px;border-radius:3px;margin-left:auto}.run-card>summary>.icon{width:11px;height:11px}.run-status{display:flex;color:#779987}.run-status .icon{width:14px;height:14px}.run-status.running{color:var(--brand)}.run-status.blocked{color:#b57b58}.run-steps{padding:1px 12px 10px}.run-step>summary{display:flex;align-items:center;gap:8px;padding:8px 0;list-style:none;cursor:pointer;font-size:10px;color:#897097}.run-step>summary>strong{font-weight:500}.run-step>summary>small{font-size:8px;color:#beadc8;margin-left:auto}.step-indicator{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;border:1px solid #e9dfef;color:#b8a6c4;font-size:8px;flex-shrink:0}.step-indicator .icon{width:10px;height:10px}.run-step.done .step-indicator{background:#eff7f2;border-color:#dfede4;color:#7a9b86}.run-step.running .step-indicator{background:#f0eafb;border-color:#ddd0f0;color:var(--brand)}.run-step.failed .step-indicator{background:#fcf0e9;color:#b77f58}.run-step>div{margin:0 0 9px 24px;padding-left:10px;border-left:1px solid #eee6f5}.tool-name{font:9px ui-monospace,SFMono-Regular,monospace;letter-spacing:.2px;color:#b49ac2}.run-step p{font-size:10px;line-height:1.9;color:#aa91b7;margin-top:4px}.run-snapshot{font-size:9px;padding:8px 12px 11px;border-top:1px solid #f0e8f5;color:#b19bbe}.run-snapshot>summary,.run-snapshot details>summary{cursor:pointer}.run-snapshot p{font-size:9px;line-height:1.8;margin-top:6px}.run-snapshot pre{white-space:pre-wrap;font:9px/1.8 ui-monospace,monospace;margin-top:8px}.run-result{display:flex;align-items:center;gap:8px;margin-top:10px;border:1px solid #e5dceb;border-radius:8px;background:#fff;padding:10px}.run-result>.icon{width:17px;height:17px;color:var(--brand);flex-shrink:0}.run-result>span{font-size:10px;color:#90719f;min-width:0;overflow-wrap:anywhere}.run-result small{display:block;font-size:9px;color:#b299bf}.run-result>.btn{margin-left:auto;font-size:9px}.run-status.running .icon,.run-step.running .icon{animation:spin 1.2s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.reference-details blockquote{font-size:13px;line-height:2;margin:0;background:#f8f4fc;border-left:3px solid #cbb8dc;padding:15px;color:#836793;white-space:pre-wrap}.reference-details dl{display:grid;grid-template-columns:80px 1fr;gap:8px;margin-top:18px;font-size:11px}.reference-details dt{color:#b49ac1}.reference-details dd{margin:0;color:#8e6d9f}.reference-markdown{font:11px/1.9 ui-monospace,monospace;white-space:pre-wrap;color:#92729f}.material-explorer{max-width:1450px;padding:31px 30px 65px}.explorer-layout{display:grid;grid-template-columns:215px minmax(0,1fr);gap:17px;align-items:start}.explorer-tree{border:1px solid var(--line);background:#fff;border-radius:9px;padding:14px 8px 18px;overflow:auto;max-height:calc(100vh - 250px)}.explorer-tree .tree-title{padding:0 10px 10px}.tree-root{display:flex;align-items:center;width:100%;gap:7px;text-align:left;padding:9px 11px;border-radius:5px;font-size:11px;color:#8d8098;margin-bottom:4px}.tree-root>small{margin-left:auto;font-size:9px}.tree-root.active{background:var(--brand-soft);color:var(--brand)}.tree-root .icon{width:15px}.tree-line{display:flex;align-items:center;padding-left:calc(var(--depth)*10px);border-radius:5px;color:#9c8ca5;min-height:33px}.tree-line.active{background:var(--brand-soft);color:var(--brand)}.tree-expander{width:19px;height:27px;display:grid;place-items:center;flex-shrink:0;padding:0;color:inherit}.tree-expander .icon{width:10px;height:10px}.tree-folder{display:flex;align-items:center;gap:6px;flex:1;min-width:0;padding:5px 7px 5px 0;color:inherit;font-size:10px;text-align:left}.tree-folder>.icon{width:13px;height:13px}.tree-folder>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-folder>small{margin-left:auto;font-size:8px}.explorer-main{min-width:0;border:1px solid var(--line);background:#fff;border-radius:9px;overflow:hidden}.explorer-location{display:flex;gap:7px;align-items:center;padding:14px 16px;border-bottom:1px solid #ece7f1;min-height:52px}.folder-breadcrumb{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:10px;color:#b0a0bc;min-width:0}.folder-breadcrumb>button{display:inline-flex;align-items:center;gap:5px;padding:1px 3px;font-size:10px;color:#9784a5}.folder-breadcrumb>button:last-child{color:#665070;font-weight:550}.folder-breadcrumb>.icon{width:10px;height:10px}.folder-breadcrumb button .icon{width:13px;height:13px}.directory-header{display:grid;grid-template-columns:minmax(0,1fr) 105px 40px;font-size:9px;color:#b8a9c4;padding:9px 17px;background:#fcfafd;border-bottom:1px solid #f0eaf5}.directory-folder{width:100%;display:flex;align-items:center;gap:12px;padding:16px 19px;text-align:left;border-bottom:1px solid #f2edf6}.directory-folder:hover,.directory-file:hover{background:#fdfbff}.folder-tile{display:grid;place-items:center;width:30px;height:32px;background:#f5f0fc;border-radius:6px;color:#a38bc3;flex-shrink:0}.folder-tile .icon{width:20px;height:20px;fill:#ede6f6;stroke-width:1.3}.directory-folder>span:nth-child(2){flex:1;min-width:0}.directory-folder strong,.directory-file-main strong{display:block;font-size:11px;font-weight:500;color:#75617f;overflow-wrap:anywhere}.directory-folder small,.directory-file-main small{display:block;font-size:9px;color:#b4a3bf;margin-top:3px;overflow-wrap:anywhere}.directory-folder>.icon{width:12px;color:#c0aecb;margin-left:8px}.folder-count{font-size:9px;color:#b3a0c0;white-space:nowrap;min-width:80px}.directory-file{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid #f2edf6}.directory-file-main{display:flex;align-items:center;gap:12px;min-width:0;flex:1;text-align:left;padding:0}.directory-file-main>span:last-child{min-width:0}.directory-file .status-pill{flex-shrink:0}.picker-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.picker-toolbar .search-box{max-width:100%;flex:1;border:1px solid #e8dfef;border-radius:7px;padding:8px 10px}.picker-files{max-height:370px;overflow:auto;padding-top:5px}.picker-folder{display:flex;align-items:center;gap:10px;padding:14px 9px;width:100%;text-align:left;border-bottom:1px solid #eee6f4;color:#a18ab0;font-size:12px}.picker-folder>small{margin-left:auto;color:#b9a5c7;font-size:10px}.picker-folder>.icon:last-child{width:12px}.picker-file{display:flex;align-items:center;gap:10px;padding:13px 5px;border-bottom:1px solid #eee6f4;cursor:pointer}.picker-file:hover,.picker-folder:hover{background:#fdfbff}.picker-file input{accent-color:var(--brand);width:14px;height:14px;flex-shrink:0}.picker-file>span:not(.file-icon){flex:1;min-width:0}.picker-file strong{display:block;font-size:11px;font-weight:500;color:#886a9a;overflow-wrap:anywhere}.picker-file small{display:block;font-size:9px;color:#b399c3;margin-top:3px;overflow-wrap:anywhere}.picker-file em{font-size:9px;font-style:normal;color:#b49bc5}.mobile-work-tabs{display:none}.export-paper .simple-table{font-size:10px}.export-quote{border-left:2px solid #aaa;padding-left:12px}
@media(min-width:1500px){.v3-workspace{grid-template-columns:390px minmax(0,1fr)}.chat-scroll{padding:25px}.conversation-pane .chat-message{font-size:13px}.composer-wrap{padding:0 20px 17px}.paper.page-paper{padding:42px 45px}.page-block .sentence-text{font-size:15px}}
@media(max-width:1180px) and (min-width:761px){.app{grid-template-columns:72px minmax(0,1fr)}.sidebar{padding:23px 9px 14px}.brand{margin:0 9px 26px}.brand>div,.sidebar .navitem>span,.sidebar .nav-group>span,.sidebar .project-nav .project-name,.sidebar .profile>div:not(.avatar),.sidebar .learn-mini,.sidebar .brand-small{display:none}.sidebar .navitem{justify-content:center;padding:11px 5px}.sidebar .project-nav .project-dot{width:8px;height:8px}.sidebar .nav-group{justify-content:center;margin:18px 0 7px}.sidebar .profile{padding:0;flex-direction:column;gap:11px}.sidebar .profile .icon-button{margin:0}.v3-workspace{grid-template-columns:320px minmax(0,1fr)}.page-topbar{padding:0 18px}.page-tools,.plan-controls{padding-left:18px;padding-right:18px}.page-tabs{gap:14px}.page-workspace .doc-scroll{padding-left:8px;padding-right:8px}.paper.page-paper{padding:30px 30px}.page-paper .paper-title{font-size:23px}.page-tools .btn{font-size:9px}.chat-scroll{padding:20px 18px}.plan-paper{padding:26px 22px}.explorer-layout{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:960px) and (min-width:761px){.v3-workspace{grid-template-columns:300px minmax(0,1fr)}.page-tools .btn.small{padding:4px 5px;font-size:8px;gap:4px}.page-tools .btn.small>.icon{display:none}.page-tabs{gap:10px}.page-tabs button{font-size:11px}.page-topbar>.compact-actions{gap:0}.page-topbar>.compact-actions .icon-button{width:24px}.page-paper .paper-title{font-size:21px}.paper.page-paper{padding:26px 24px}.block-rail{left:-23px}.page-block .sentence-text{font-size:13px}.page-block .sentence-actions{flex-wrap:wrap}.page-block .sentence-actions .spacer{min-width:5px}.plan-controls{flex-wrap:wrap}.explorer-layout{grid-template-columns:160px minmax(0,1fr)}.material-explorer{padding:25px 20px}}
@media(max-width:760px){.app{display:block}.sidebar{display:none}.sidebar.mobile-open{display:flex;position:fixed;left:0;top:0;width:220px;z-index:100;box-shadow:8px 0 35px #33264630}.topbar{height:58px;padding:0 13px}.mobile-menu{display:inline-grid}.top-actions .connection-badge-legacy{font-size:8px}.top-actions .btn{font-size:10px;padding:6px 8px}.crumb{font-size:11px}.crumb-label,.crumb>.icon{display:none}.mobile-work-tabs{display:flex;height:42px;padding:0 18px;gap:25px;background:white;border-bottom:1px solid var(--line)}.mobile-work-tabs>button{display:flex;align-items:center;gap:7px;border-bottom:2px solid transparent;font-size:11px;color:#a18dad;padding:0 2px}.mobile-work-tabs>button.active{border-color:var(--brand);color:var(--brand)}.mobile-work-tabs .icon{width:14px}.v3-workspace{display:block;height:calc(100dvh - 100px)}.conversation-pane,.page-workspace{height:100%;width:100%}.v3-workspace.mobile-chat .page-workspace{display:none}.v3-workspace.mobile-document .conversation-pane{display:none}.conversation-head{height:56px;padding:10px 20px}.chat-scroll{padding:22px 23px}.welcome-card h2{font-size:22px}.welcome-card p{font-size:13px}.welcome-actions button{font-size:12px;padding:11px}.conversation-pane .chat-message{font-size:13px}.composer-wrap{padding:0 15px 12px}.prompt-box #prompt-editor{min-height:85px;max-height:160px}.composer-settings{padding:8px 5px}.composer-note{font-size:8px}.page-topbar{height:55px;padding:0 19px}.page-tabs{gap:22px}.page-tabs>button{font-size:11px}.page-tools{padding:9px 15px}.page-tools .btn.small{font-size:9px}.page-workspace .doc-scroll{padding:0 6px 30px}.paper.page-paper{padding:27px 28px;min-height:620px}.page-paper .paper-title{font-size:23px}.page-document-type{font-size:9px}.page-block .sentence-text{font-size:14px}.block-rail{opacity:.65;left:-26px}.block-rail .icon-button{width:23px}.block-menu{left:-22px;width:235px}.block-editor-actions small{display:none}.page-block .sentence-actions .btn{font-size:9px;padding:3px 5px}.right-panel.inspector{position:absolute;top:0;width:min(100%,380px);bottom:0}.page-topbar .icon-button{width:25px}.plan-controls{padding:10px 14px;flex-wrap:wrap;gap:9px}.plan-controls .btn{font-size:9px;padding:5px 7px}.plan-paper{padding:25px 23px}.markdown-preview{font-size:13px}.markdown-editor{min-height:550px;font-size:11px}.plan-bound-refs .ref-open>span{max-width:200px}.plan-file-label{font-size:11px}.plan-file-label>span{font-size:8px}.plan-explain{font-size:10px}.explorer-layout{display:block}.explorer-tree{display:none}.material-explorer{padding:24px 15px 50px}.material-explorer .view-header{align-items:flex-start;gap:12px}.material-explorer .view-header .compact-actions{flex-direction:column;gap:5px;align-items:stretch}.material-explorer .view-header .btn{font-size:10px;min-height:30px}.material-explorer .view-header p{font-size:10px;max-width:180px}.directory-header{grid-template-columns:minmax(0,1fr) 70px 22px;font-size:8px;padding:9px 12px}.directory-folder{padding:13px 13px;gap:9px}.folder-count{min-width:52px;font-size:9px}.directory-file{padding:12px 11px;gap:7px}.directory-file-main{gap:8px}.directory-file-main strong,.directory-folder strong{font-size:11px}.directory-file-main small,.directory-folder small{font-size:8px}.directory-file .file-icon{width:24px;height:28px}.directory-file .status-pill{font-size:8px;padding:2px 4px}.directory-file>.icon-button{width:23px}.explorer-location{padding:11px 12px;min-height:45px;gap:2px}.folder-breadcrumb>button{font-size:9px}.folder-breadcrumb{gap:1px}.list-toolbar{padding:12px}.directory-file-main .file-icon .icon{width:14px}.picker-files{max-height:45dvh}.picker-file{gap:7px}.picker-file .file-icon{display:none}.picker-file strong{font-size:11px}.picker-file small{font-size:8px}.picker-file em{font-size:8px}.reference-details dl{grid-template-columns:65px 1fr;font-size:10px}.selection-popover{max-width:calc(100vw - 20px)}.selection-popover .btn{font-size:10px}.preview-notice{padding:15px 22px 0}.page-paper.plain-paper p{font-size:14px}}
@media(prefers-reduced-motion:reduce){.run-status.running .icon,.run-step.running .icon{animation:none}}


/* Project files and independent plan files */
.app{grid-template-columns:256px minmax(0,1fr)}.sidebar{padding:22px 12px 12px;min-height:0;overflow:hidden}.brand{margin:0 8px 20px}.sidebar-main-nav{flex-shrink:0}.sidebar .nav-group{margin:18px 9px 4px;letter-spacing:.7px}.sidebar .nav-group>div{display:flex;gap:0}.sidebar .nav-group .icon-button{width:25px;height:25px}.project-selector{display:flex;align-items:center;gap:8px;padding:7px 9px 8px;margin-bottom:10px;border:1px solid #e4e0f0;border-radius:7px;background:white;color:var(--brand)}.project-selector>.icon,.project-selector>span .icon{width:15px;height:15px}.project-selector select{width:100%;min-width:0;padding:0;border:0;color:#514a62;background:transparent;font-size:12px;font-weight:600;text-overflow:ellipsis}.project-files{display:flex;flex-direction:column;flex:1;min-height:135px;overflow:hidden;border-top:1px solid #ebe7f2;padding-top:9px}.project-files-title{display:flex;align-items:center;justify-content:space-between;margin:0 4px 7px 8px;gap:5px;flex-shrink:0}.project-files-title>span{display:flex;align-items:center;gap:6px;font-size:10px;color:#8d849a}.project-files-title>span .icon{width:13px;height:13px}.project-files-title>div{display:flex}.project-files-title .icon-button{width:24px;height:24px}.project-file-scroll{flex:1;min-height:0;overflow:auto;padding:0 2px 9px;scrollbar-width:thin;scrollbar-color:#d8d2e4 transparent}.project-folder-head,.project-subfolder-head{width:100%;display:flex;align-items:center;gap:6px;text-align:left;min-height:32px;font-size:11px;color:#6f647f;border-radius:5px;padding:5px 5px}.project-folder-head:hover,.project-subfolder-head:hover{background:#f0edf8}.project-folder-head>.icon{width:15px;height:15px;color:#9381b5}.project-folder-head>span:not(.project-chevron){flex:1;min-width:0;font-weight:550}.project-folder-head>span>small{display:block;font-size:8px;color:#aaa0b8;font-weight:400;line-height:1.2;margin:1px 0}.project-folder-head>em,.project-subfolder-head>em{margin-left:auto;font-size:9px;color:#a294b2;font-style:normal;font-weight:400}.project-chevron{display:grid;place-items:center;width:11px;flex-shrink:0}.project-chevron .icon{width:10px;height:10px}.project-subfolder-head{padding-left:calc(14px + var(--file-depth)*9px);font-size:10px;min-height:29px;color:#95889f;gap:4px}.project-subfolder-head>.icon{width:13px;height:13px;flex-shrink:0;color:#afa1bf}.project-subfolder-head>span:not(.project-chevron){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.project-file-row{display:flex;align-items:center;min-width:0;border-radius:5px;min-height:30px;margin:1px 0;padding-left:calc(21px + var(--file-depth,0)*9px);color:#81718e}.project-file-row:hover{background:#f0edf8}.project-file-row.active{background:#eeeafa;color:var(--brand)}.project-file-main{display:flex;align-items:center;gap:6px;min-width:0;flex:1;text-align:left;padding:6px 3px;color:inherit;font-size:10px;line-height:1.6}.project-file-main>.icon{width:13px;height:13px;flex-shrink:0;color:#a18cb5}.material-file .project-file-main>.icon{color:#9b8ab0}.project-file-main>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-file-main>small{font-size:8px;flex-shrink:0;margin-left:auto;color:#a594b5}.project-file-add,.project-file-info{display:grid;place-items:center;width:20px;height:26px;padding:0;flex-shrink:0;border-radius:4px;color:#b0a1be}.project-file-add:hover,.project-file-info:hover{color:var(--brand);background:white}.project-file-add .icon,.project-file-info .icon{width:12px;height:12px}.project-file-info{width:18px}.project-folder-empty{display:block;font-size:9px;line-height:1.9;color:#aaa0b5;padding:6px 12px 9px 27px;text-align:left}.project-folder-create{color:#a18ab8;display:flex;align-items:center;gap:5px;width:100%}.project-folder-create:hover{color:var(--brand)}.project-folder-create .icon{width:12px;height:12px}.project-shared-divider{border-top:1px solid #ebe6f3;margin:9px 6px 5px}.project-files-hint{font-size:8px;color:#afa5bb;padding:8px 7px 0;border-top:1px solid #eeebf3;flex-shrink:0}.sidebar-bottom{margin-top:12px;flex-shrink:0}.learn-mini{padding:9px 10px;margin-bottom:10px}.learn-mini small{font-size:8px}.profile small{font-size:8px}.v3-workspace{grid-template-columns:minmax(300px,335px) minmax(0,1fr)}.plan-path{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:9px;color:#b29fc1;margin-bottom:17px;overflow-wrap:anywhere}.plan-path>.icon{width:13px;height:13px}.plan-path>span{color:#d0c0da}.plan-file-label{align-items:flex-start;flex-wrap:wrap;gap:7px}.plan-file-label>strong{font-weight:600;min-width:0;overflow-wrap:anywhere;flex:1}.plan-file-label>span{margin-left:0}.plan-version-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:15px 0 12px;color:#aa96b9;font-size:10px;flex-wrap:wrap}.plan-version-row label{display:flex;align-items:center;gap:7px}.plan-version-row select{border:1px solid #e5dbed;border-radius:5px;padding:3px 6px;background:white;font-size:10px;color:#9575a8}.plan-version-row>span{font-size:9px;color:#b9a4c6}.plan-binding-actions{display:flex;gap:3px;flex-wrap:wrap;width:100%;margin-top:5px}.plan-binding-actions .btn{font-size:9px}.plan-card-title{align-items:flex-start}.plan-card-title>strong{font-size:10px;overflow-wrap:anywhere;flex:1;min-width:0}.plan-card-title>span{white-space:nowrap}.plan-bottom{flex-wrap:wrap}.markdown-editor[readonly]{background:#fcfafd;color:#a38daf}.plan-paper{min-width:0}.plan-file-label .icon{flex-shrink:0}
@media(min-width:1500px){.v3-workspace{grid-template-columns:370px minmax(0,1fr)}}
@media(max-width:1180px) and (min-width:761px){.app{grid-template-columns:236px minmax(0,1fr)}.sidebar{padding:20px 10px 12px}.brand{margin:0 7px 18px}.brand>div,.sidebar .navitem>span,.sidebar .nav-group>span,.sidebar .profile>div:not(.avatar),.sidebar .learn-mini{display:block}.sidebar .navitem{justify-content:flex-start;padding:8px 10px;font-size:11px;min-height:35px}.sidebar .nav-group{justify-content:space-between;margin:12px 8px 4px}.sidebar .profile{padding:4px 3px;flex-direction:row;gap:8px}.sidebar .profile .icon-button{margin-left:auto}.v3-workspace{grid-template-columns:290px minmax(0,1fr)}.conversation-head{padding-left:14px;padding-right:13px}.chat-scroll{padding:18px 15px}.composer-wrap{padding-left:11px;padding-right:11px}.page-topbar{padding-left:13px;padding-right:13px}.page-tabs{gap:10px}.page-topbar .icon-button{width:24px}.page-tools{padding:9px 12px;flex-wrap:wrap}.page-tools .btn.small{font-size:9px}.plan-controls{padding:10px 12px;flex-wrap:wrap}.plan-paper{padding:25px 20px}.plan-path{font-size:8px}.plan-file-label{font-size:11px}}
@media(max-width:1040px) and (min-width:761px){.app{grid-template-columns:224px minmax(0,1fr)}.v3-workspace{grid-template-columns:270px minmax(0,1fr)}.conversation-head{padding-left:12px;padding-right:10px}.chat-scroll{padding:18px 13px}.welcome-card h2{font-size:18px}.welcome-actions{gap:5px}.welcome-actions button{font-size:10px;padding:8px}.page-topbar{flex-wrap:wrap;height:auto;min-height:64px;padding-top:4px;padding-bottom:4px}.page-tabs>button{font-size:10px}.page-topbar>.compact-actions{margin-left:auto}.page-paper .paper-title{font-size:20px}.page-tools>.compact-actions .btn .icon{display:none}.page-block .sentence-actions{flex-wrap:wrap}.page-block .sentence-text{font-size:13px}.project-files-title{font-size:9px}}
@media(max-width:900px) and (min-width:761px){.app{grid-template-columns:240px minmax(0,1fr)}.v3-workspace{display:block;height:calc(100dvh - 104px)}.mobile-work-tabs{display:flex;height:42px;padding:0 18px;gap:25px;background:white;border-bottom:1px solid var(--line)}.mobile-work-tabs>button{display:flex;align-items:center;gap:7px;border-bottom:2px solid transparent;font-size:11px;color:#a18dad;padding:0 2px}.mobile-work-tabs>button.active{border-color:var(--brand);color:var(--brand)}.mobile-work-tabs .icon{width:14px}.conversation-pane,.page-workspace{height:100%;width:100%}.v3-workspace.mobile-chat .page-workspace{display:none}.v3-workspace.mobile-document .conversation-pane{display:none}.page-topbar{height:56px;flex-wrap:nowrap}.page-paper .paper-title{font-size:24px}.page-block .sentence-text{font-size:14px}.chat-scroll{padding:25px}.composer-wrap{padding:0 22px 15px}.topbar{padding:0 16px}}
@media(max-width:760px){.app{display:block}.sidebar{display:none}.sidebar.mobile-open{width:min(300px,86vw);padding:20px 12px 12px;height:100dvh}.sidebar .brand{margin-bottom:18px}.sidebar .navitem{padding:8px 11px;min-height:35px}.sidebar .nav-group{margin-top:12px}.sidebar-bottom{margin-top:8px}.project-files{min-height:140px}.project-file-main{font-size:11px}.project-subfolder-head{font-size:11px;min-height:31px}.project-folder-head{font-size:12px;min-height:34px}.project-file-row{min-height:32px}.project-file-add,.project-file-info{width:25px;height:30px}.plan-path{font-size:8px;gap:5px}.plan-file-label>strong{font-size:12px;flex-basis:80%}.plan-version-row>span{font-size:8px}.v3-workspace{display:block;height:calc(100dvh - 100px)}}


.sidebar .brand,.sidebar .nav-group,.sidebar .project-selector{flex-shrink:0}
.sidebar-library-scroll{flex:1;min-height:100px;overflow:auto;padding:0 2px 8px;scrollbar-width:thin;scrollbar-color:#d8d2e4 transparent;overscroll-behavior:contain}
.sidebar-library-scroll [hidden]{display:none}
.sidebar .project-files{flex:none;min-height:0;overflow:visible;margin-top:9px;padding-top:7px}
.sidebar .project-file-scroll{flex:none;min-height:0;overflow:visible;padding-bottom:3px}
.sidebar .project-files-title{margin:0 2px 5px}
.sidebar .project-files-hint{border-top:0;padding:5px 8px 2px}
.sidebar-section-toggle{display:flex;align-items:center;gap:6px;flex:1;min-width:0;text-align:left;padding:7px 4px;font-size:11px;color:#746781;border-radius:5px}
.sidebar-section-toggle:hover{background:#f0edf8}
.sidebar-section-toggle>.icon{width:14px;height:14px;color:#9b88b1}
.sidebar-section-toggle>span:not(.project-chevron){flex:1;min-width:0;font-weight:550}
.sidebar-section-toggle>em{font-size:9px;font-style:normal;color:#a294b2;margin-left:auto}
.sidebar-conversations{border-top:1px solid #ebe7f2;padding-top:7px}
.sidebar-conversations-head{display:flex;align-items:center;gap:2px;margin:0 2px 3px}
.sidebar-conversations-head>.icon-button{width:24px;height:24px}
.conversation-project-toggle{display:flex;align-items:center;gap:5px;width:100%;min-width:0;min-height:29px;text-align:left;padding:5px 6px 5px 12px;border-radius:5px;font-size:10px;color:#8c7e9a}
.conversation-project-toggle:hover{background:#f0edf8}
.conversation-project-toggle>.icon{width:12px;height:12px;color:#aa9ab8}
.conversation-project-toggle>.conversation-project-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-project-toggle>em{font-style:normal;font-size:9px;color:#a99bb6;flex-shrink:0}
.conversation-project-toggle.current-project>.conversation-project-name{color:#75608e;font-weight:600}
.conversation-tree-item{display:flex;align-items:center;gap:7px;width:100%;min-width:0;min-height:32px;padding:6px 8px 6px 29px;border-radius:5px;text-align:left;font-size:10px;color:#87768f;margin:1px 0}
.conversation-tree-item>.icon{width:13px;height:13px;color:#ac98bb}
.conversation-tree-item>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-tree-item:hover{background:#f0edf8}
.conversation-tree-item.active{background:#eeeafa;color:var(--brand);font-weight:550}
.conversation-tree-item.active>.icon{color:#8f80d3}
.conversation-tree-empty{font-size:10px;color:#a89caf;padding:6px 12px 9px 29px}
@media(max-width:760px){.sidebar-section-toggle{font-size:12px;min-height:35px}.conversation-project-toggle{font-size:11px;min-height:32px}.conversation-tree-item{font-size:11px;min-height:35px}}


.library-upload-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:360px;min-width:0}.library-upload-actions>small{font-size:10px;color:#968a9e;text-align:right;line-height:1.7;overflow-wrap:anywhere}.library-scope-tabs{display:flex;gap:7px;margin:0 0 15px;align-items:center}.library-scope-tabs>button{display:flex;gap:7px;align-items:center;padding:9px 13px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#8c7c99;font-size:11px;white-space:nowrap}.library-scope-tabs>button.active{background:#f4effa;border-color:#dcd0eb;color:var(--brand)}.library-scope-tabs .icon{width:15px;height:15px}.library-scope-tabs span{font-size:9px;color:#a093a9;background:#f7f4f9;padding:1px 5px;border-radius:4px}.library-tree-divider{height:1px;background:var(--line);margin:15px 8px 12px}.status-pill.managed{color:#8b739e;background:#f3eef8;white-space:nowrap}.library-open-arrow{width:28px;display:flex;justify-content:center;color:#b1a3bc;flex-shrink:0}.library-open-arrow .icon{width:13px;height:13px}.material-explorer .list-toolbar{flex-wrap:wrap;gap:10px}.material-explorer .search-box{min-width:0;flex:1}.material-explorer .search-box input{min-width:0;width:100%}.material-explorer .directory-folder>span:nth-child(2){min-width:0}.material-explorer .directory-folder small{overflow-wrap:anywhere}.conversation-tree-item{padding-left:17px}
@media(max-width:1100px) and (min-width:761px){.material-explorer .view-header{flex-wrap:wrap}.material-explorer .library-upload-actions{align-items:flex-start;max-width:100%}.material-explorer .library-upload-actions>small{text-align:left}.material-explorer .explorer-layout{grid-template-columns:180px minmax(0,1fr)}.material-explorer .directory-file-main small{font-size:9px}.material-explorer .directory-folder{padding-left:12px;padding-right:12px}.material-explorer .folder-count{min-width:52px}.material-explorer .directory-file{padding-left:12px;padding-right:10px;gap:8px}}
@media(max-width:760px){.material-explorer .view-header{flex-direction:column;gap:14px}.material-explorer .view-header p{max-width:none;font-size:11px}.library-upload-actions{align-items:flex-start;max-width:100%;width:100%;gap:6px}.library-upload-actions>small{text-align:left;font-size:9px}.material-explorer .view-header .compact-actions{flex-direction:row;gap:7px}.library-scope-tabs{gap:7px;margin-bottom:12px}.library-scope-tabs>button{flex:1;justify-content:center;padding:9px 8px;font-size:11px}.material-explorer .list-toolbar .subtle-note{flex-basis:100%;font-size:9px}.material-explorer .search-box{max-width:none;width:100%;flex-basis:100%}.library-open-arrow{width:23px}.material-explorer .directory-folder small{font-size:8px}.material-explorer .directory-file-main small{font-size:8px;line-height:1.6}}

.app{grid-template-columns:280px minmax(0,1fr)}
.sidebar{height:100dvh;min-height:0;padding:18px 14px 12px;background:#f7f8fc;border-right:1px solid #e3e6ef;overflow:hidden;color:#454958;z-index:35}
.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;padding:0 3px 18px}
.sidebar .brand{display:flex;align-items:center;gap:10px;margin:0;min-width:0}
.sidebar .brand img{width:35px;height:35px;border-radius:10px;flex-shrink:0}
.sidebar .brand-copy{display:block;min-width:0}.sidebar .brand-name{font-size:18px;color:#242936;letter-spacing:.2px}.sidebar .brand-small{display:block;font-size:9px;color:#767c8d;letter-spacing:.6px}
.sidebar-collapse{width:29px;height:31px;color:#7d8394;border:1px solid transparent}.sidebar-collapse:hover{background:#fff;border-color:#e3e5ef}.sidebar-collapse>.icon{width:18px;height:18px}
.sidebar-mobile-close,.sidebar-rail-context,.sidebar-backdrop{display:none}
.sidebar .sidebar-main-nav{flex-shrink:0;padding:0 0 14px;border-bottom:1px solid #e3e6ef}
.sidebar-kicker{font-size:10px;font-weight:600;color:#7a8192;letter-spacing:1px;margin:0 10px 6px}
.sidebar .navitem{position:relative;display:flex;align-items:center;justify-content:flex-start;width:100%;gap:10px;padding:8px 11px;min-height:37px;margin:2px 0;border-radius:8px;font-size:12px;color:#5d6477;text-align:left}
.sidebar .navitem>.icon{width:17px;height:17px;color:#7c8497}.sidebar .navitem .nav-label{display:block;flex:1;min-width:0}.sidebar .navitem .small-count{display:block;margin-left:auto;background:#e9ecf3;color:#7b8292;font-size:10px;line-height:18px;min-width:22px;text-align:center;padding:0 5px;border-radius:5px}
.sidebar .navitem:hover{background:#eceff6}.sidebar .navitem.active{color:#5648bd;background:#ebe8fb;font-weight:650}.sidebar .navitem.active>.icon{color:#6556c8}.sidebar .navitem.active:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:3px;background:#6b5bd3}.sidebar .navitem.active .small-count{background:#ded8f8;color:#6556bc}
.sidebar-expanded{display:flex;flex-direction:column;flex:1;min-height:0;padding-top:14px;gap:0}
.sidebar-project-card{background:#fff;border:1px solid #dfe3ee;border-radius:10px;padding:8px 10px 10px;flex-shrink:0;box-shadow:0 2px 5px #313b5c03}
.sidebar-project-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:500;line-height:22px;color:#7c8292;margin-bottom:3px}
.sidebar-project-label>span{display:flex;align-items:center;gap:6px}.sidebar-project-label i{width:5px;height:5px;border-radius:50%;background:#8a7cdb}.sidebar-project-label .icon-button{width:24px;height:24px;color:#8a82ae}
.sidebar .project-selector{padding:0;margin:0;background:transparent;border:0;border-radius:0;gap:8px;min-height:25px}.sidebar .project-selector>span{display:grid;place-items:center;width:25px;height:25px;background:#f1edfd;border-radius:6px;color:#8b78cf;flex-shrink:0}.sidebar .project-selector>span .icon{width:14px;height:14px}.sidebar .project-selector select{font-size:13px;font-weight:650;color:#343a4c;padding:0 1px;min-height:25px;cursor:pointer}
.sidebar-library-scroll{min-height:100px;padding:12px 0 6px;margin:0 -3px;overflow:auto;flex:1;scrollbar-color:#cbd0df transparent;scrollbar-width:thin;overscroll-behavior:contain}
.sidebar .sidebar-conversations{border-top:0;padding:0 3px 0}.sidebar .sidebar-conversations-head{margin:0 0 5px;gap:2px}.sidebar .sidebar-section-toggle{font-size:12px;color:#41495d;font-weight:600;min-height:32px;padding:5px 4px;gap:7px;border-radius:6px}.sidebar .sidebar-section-toggle:hover{background:#eaeef6}.sidebar .sidebar-section-toggle>span:not(.project-chevron){font-weight:600}.sidebar .sidebar-section-toggle>.icon{width:15px;height:15px;color:#858da3}.sidebar .sidebar-section-toggle>em{font-size:10px;color:#7a8296;min-width:20px;text-align:center;line-height:18px;padding:0 4px;border-radius:4px;background:#e9edf5}.sidebar .sidebar-section-toggle small{font-size:10px;color:#8991a4;font-weight:400;display:block;line-height:1.6;margin-top:2px}
.sidebar .sidebar-conversations-head>.icon-button,.sidebar .project-files-title .icon-button{width:24px;height:26px;color:#8c94a6}.sidebar .sidebar-conversations-head>.icon-button:hover,.sidebar .project-files-title .icon-button:hover{background:#e5e9f3;color:#6454bf}
.sidebar #conversation-tree-body{border-left:1px solid #dce1ec;margin-left:12px;padding-left:8px;margin-bottom:3px}
.sidebar .conversation-tree-item{font-size:11px;font-weight:400;line-height:1.6;min-height:33px;padding:6px 8px;gap:7px;color:#697389;border-radius:6px}.sidebar .conversation-tree-item>.icon{width:13px;height:13px;color:#9aa4b7}.sidebar .conversation-tree-item:hover{background:#ecedf7}.sidebar .conversation-tree-item.active{background:#ebe8fa;color:#5c4fbb;font-weight:550}.sidebar .conversation-tree-item.active>.icon{color:#8071cd}
.sidebar .conversation-tree-empty{font-size:10px;color:#8c94a6;padding:6px 8px;line-height:1.7}
.sidebar .project-files{display:block;flex:none;border-top:1px solid #e4e8f0;min-height:0;overflow:visible;margin:12px 3px 0;padding-top:10px}.sidebar .project-files-title{margin:0 0 4px;gap:0}.sidebar .project-files-title>div{display:flex;gap:0}
.sidebar .project-file-scroll{margin-left:12px;padding:0 0 0 8px;border-left:1px solid #dce1ec;overflow:visible;min-height:0}
.sidebar .project-folder-head{padding:6px 7px;min-height:32px;font-size:12px;color:#505b72;gap:6px}.sidebar .project-folder-head>.icon{color:#9c95bc;width:15px;height:15px}.sidebar .project-folder-head>em{color:#8c94a6;font-size:10px}.sidebar .project-folder-head>span:not(.project-chevron){font-weight:500}
.sidebar .project-chevron{width:10px}.sidebar .project-chevron .icon{width:9px;height:9px;color:#a0a7b8}
.sidebar .project-folder-content{border-left:1px solid #e1e5ee;margin:0 0 3px 11px;padding:0 0 2px 4px;min-width:0}
.sidebar .project-subfolder-head{font-size:11px;color:#69758b;line-height:1.6;min-height:31px;padding:5px 5px 5px calc(7px + var(--file-depth)*12px);gap:5px}.sidebar .project-subfolder-head>.icon{color:#b6a16d;width:14px;height:14px}.sidebar .project-subfolder-head>em{font-size:9px;color:#8e97a9}.sidebar .project-subfolder-head>span:not(.project-chevron){font-weight:400}
.sidebar .project-folder-head:hover,.sidebar .project-subfolder-head:hover{background:#eaeef6}
.sidebar .project-file-row{min-height:30px;padding-left:calc(20px + var(--file-depth,0)*12px);color:#748097;margin:1px 0}.sidebar .project-file-row:hover{background:#eceff7}.sidebar .project-file-row.active{background:#efedfb;color:#6657bc}.sidebar .project-file-main{font-size:11px;gap:6px;padding:5px 1px;line-height:1.6}.sidebar .project-file-main>.icon{width:13px;height:13px;color:#9a94b4}.sidebar .project-file-main>small{font-size:9px;color:#9386b4}.sidebar .project-file-add,.sidebar .project-file-info{width:21px;height:27px;color:#9aa2b4}.sidebar .project-file-add:hover,.sidebar .project-file-info:hover{background:#fff;color:#6b5ccc}.sidebar .project-folder-empty{font-size:10px;line-height:1.8;color:#949bad;padding:7px 8px 9px 17px}.sidebar .project-folder-create{color:#8f82b5}.sidebar .plan-file,.sidebar .output-file{padding-left:12px}
.sidebar-shared{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;max-height:38%;margin-top:10px;border:1px solid #dfe4ee;background:#fff;border-radius:10px;overflow:hidden}
.sidebar-shared-head{display:flex;align-items:center;gap:2px;padding:8px 7px 7px;flex-shrink:0}.sidebar-shared-head>.icon-button{width:25px;height:28px;color:#929cb0}.sidebar .sidebar-shared-head .sidebar-section-toggle{padding:3px 3px;align-items:center;gap:7px}.sidebar .sidebar-shared-head .sidebar-section-toggle>.icon{color:#7e8db2;width:16px;height:16px}.sidebar .sidebar-shared-head .sidebar-section-toggle:hover{background:#f4f6fa}.sidebar .sidebar-shared-head .sidebar-section-toggle>em{background:#f0f3f8;color:#7e8ca5}
.sidebar-shared-tree{overflow:auto;min-height:0;flex:1;padding:0 9px 9px;border-top:1px solid #f0f2f6;scrollbar-width:thin;scrollbar-color:#cbd0df transparent;overscroll-behavior:contain}.sidebar .sidebar-shared-tree .project-subfolder-head{padding-top:7px;padding-bottom:7px;min-height:33px}.sidebar .sidebar-shared-tree>.project-subfolder:first-child{padding-top:4px}.sidebar-shared-tree[hidden]{display:none}
.sidebar-bottom{margin-top:12px;flex-shrink:0;border-top:1px solid #e4e8f0;padding-top:8px}.sidebar .learn-mini{display:block;margin:0 2px 8px;padding:4px 5px;border:0;border-radius:0;background:transparent}.sidebar .learn-mini .row>span{font-size:10px;color:#818a9d}.sidebar .mini-dot{width:5px;height:5px;background:#5a9e8a}.sidebar .mini-dot.paused{background:#b2a177}.sidebar .learn-mini .switch{transform:scale(.85);transform-origin:right center}.sidebar .profile{display:flex;align-items:center;flex-direction:row;padding:4px 6px;gap:9px}.sidebar .avatar{width:28px;height:28px;font-size:10px;background:#e8eaf4;color:#77809a;flex-shrink:0}.sidebar .profile-copy{display:block;min-width:0}.sidebar .profile strong{font-size:11px;color:#545d72;font-weight:550}.sidebar .profile small{font-size:9px;color:#9ca4b5}.sidebar .profile .icon-button{margin-left:auto;color:#9aa2b3;width:24px;height:25px}

@media(max-width:1040px) and (min-width:761px){.app{grid-template-columns:264px minmax(0,1fr)}.sidebar{padding-left:11px;padding-right:11px}.v3-workspace{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:900px) and (min-width:761px){.v3-workspace{display:block}.app.sidebar-collapsed .v3-workspace{display:block}}
@media(max-height:760px) and (min-width:761px){.sidebar{padding-top:12px}.sidebar-head{padding-bottom:12px}.sidebar .navitem{min-height:33px;padding-top:6px;padding-bottom:6px}.sidebar .sidebar-main-nav{padding-bottom:10px}.sidebar-expanded{padding-top:10px}.sidebar-project-card{padding-top:5px;padding-bottom:8px}.sidebar-bottom{margin-top:8px;padding-top:5px}.sidebar .learn-mini{margin-bottom:4px}.sidebar-library-scroll{padding-top:8px;min-height:90px}.sidebar-shared{margin-top:7px;max-height:40%}}
@media(max-width:760px){
 .app,.app.sidebar-collapsed{display:block}.sidebar,.app.sidebar-collapsed .sidebar{display:none}.sidebar.mobile-open,.app.sidebar-collapsed .sidebar.mobile-open{display:flex;position:fixed;inset:0 auto 0 0;height:100dvh;width:min(304px,87vw);max-width:100vw;padding:16px 12px 12px;z-index:100;box-shadow:10px 0 45px #25315424;overflow:hidden}
 .sidebar-head{padding:0 3px 14px;gap:8px;flex-direction:row}.sidebar .brand{margin:0}.sidebar .brand-copy{display:block}.sidebar .brand-name{font-size:18px}.sidebar .brand-small{display:block}.sidebar-collapse{display:none}.sidebar-mobile-close{display:inline-grid;width:32px;height:32px;border:1px solid #e2e6ef;background:#fff;color:#8b93a7}.sidebar-rail-context{display:none}
 .sidebar-backdrop{display:block;position:fixed;inset:0;z-index:99;background:#2b344a52;backdrop-filter:blur(2px);cursor:default}.mobile-nav-open .main{max-height:100dvh;overflow:hidden}
 .sidebar .navitem{font-size:12px;min-height:36px;padding:7px 11px}.sidebar-kicker{font-size:10px}.sidebar .sidebar-main-nav{padding-bottom:11px}.sidebar-expanded{padding-top:11px}.sidebar .sidebar-section-toggle{font-size:12px;min-height:33px}.sidebar .conversation-tree-item{font-size:11px;min-height:34px}.sidebar .project-folder-head{font-size:12px;min-height:33px}.sidebar .project-subfolder-head{font-size:11px;min-height:32px}.sidebar .project-file-main{font-size:11px}.sidebar .project-file-add,.sidebar .project-file-info{width:25px;height:30px}.sidebar-library-scroll{min-height:90px;padding-top:9px}.sidebar-shared{max-height:38%;margin-top:9px}.sidebar-shared-tree{min-height:0}.sidebar-bottom{margin-top:8px;padding-top:6px}.sidebar .learn-mini{margin-bottom:5px}
}



.sidebar-project-label{margin-bottom:5px}
.sidebar .project-files-title{gap:5px}
.sidebar .project-upload-bar{position:sticky;top:0;z-index:2;background:#f7f8fc;padding-bottom:6px}
.upload-trigger{gap:6px}.upload-trigger>.icon:last-child{width:12px;height:12px}.sidebar .upload-trigger{min-height:29px;padding:4px 7px;font-size:10px;background:#fff;border-color:#dde2ee;color:#6d658f;flex-shrink:0}.sidebar .upload-trigger>.icon:first-child{width:13px;height:13px}.sidebar .upload-trigger:disabled{color:#9ca2af;opacity:.65}
.upload-destination{display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:3px 5px;margin-top:7px;font-size:11px;line-height:1.7;color:#8f94a3;max-width:440px}.upload-destination>strong{font-weight:500;color:#737d94;overflow-wrap:anywhere}.upload-destination>small{display:block;flex-basis:100%;font-size:10px;color:#969baa;line-height:1.7}.upload-destination.compact{justify-content:flex-start;margin:3px 4px 2px;padding:5px 7px;border-radius:6px;background:#eef1f7;gap:2px 5px;font-size:9px;line-height:1.7}.upload-destination.compact>strong{font-weight:450;color:#7f88a0}.upload-destination.compact>small{font-size:9px;color:#9ba2b1}.upload-destination.unavailable{color:#9a9eaa}.upload-destination.unavailable>strong{color:#9298a7}.library-upload-actions{display:flex;flex-direction:column;align-items:flex-end}
.sidebar .project-directory-row{display:flex;align-items:center;position:relative;min-width:0;min-height:32px;margin:1px 0;border-radius:6px;gap:0;color:#5e6a82;padding-left:0}.sidebar .project-directory-row.nested{padding-left:calc(5px + var(--folder-depth)*12px);min-height:31px}.sidebar .project-directory-row:hover{background:#edf0f7}.sidebar .project-directory-arrow{display:grid;place-items:center;flex-shrink:0;width:20px;height:30px;padding:0;border-radius:4px;color:#a1a8b8}.sidebar .project-directory-arrow .icon{width:9px;height:9px}.sidebar .project-directory-arrow:hover{background:#e0e3f1;color:#6956bd}.sidebar .project-directory-name{display:flex;align-items:center;gap:6px;flex:1;min-width:0;min-height:32px;padding:5px 7px 5px 0;text-align:left;font-size:12px;color:inherit}.sidebar .project-directory-name>.icon{width:15px;height:15px;color:#aaa1c0;flex-shrink:0}.sidebar .project-directory-name>span{min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:500}.sidebar .project-directory-name>em{font-style:normal;font-size:10px;font-weight:400;color:#9099ad;margin-left:auto}.sidebar .project-directory-row.nested .project-directory-name{font-size:11px;min-height:31px}.sidebar .project-directory-row.nested .project-directory-name>.icon{color:#b5a172;width:14px;height:14px}.sidebar .project-directory-row.nested .project-directory-name>span{font-weight:400}.sidebar .project-directory-row.folder-selected{background:#ebe7fb;color:#6853b6}.sidebar .project-directory-row.folder-selected:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:#9686d8}.sidebar .project-directory-row.folder-selected .project-directory-name>span{font-weight:600}.sidebar .project-directory-row.folder-selected .project-directory-name>.icon,.sidebar .project-directory-row.folder-selected .project-directory-name>em{color:#9c8bcb}
.upload-options-menu{position:fixed;z-index:180;width:296px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:6px;border:1px solid #e3e0ec;border-radius:12px;background:#fff;box-shadow:0 12px 42px #30335324,0 2px 6px #30335310;animation:menuReveal .12s ease-out}.upload-menu-destination{display:flex;flex-direction:column;gap:4px;margin:0 0 5px;padding:10px 11px 12px;border-bottom:1px solid #efedf5}.upload-menu-destination>span{font-size:10px;color:#9d96ad}.upload-menu-destination>strong{font-size:12px;font-weight:500;color:#7c6c95;line-height:1.7;overflow-wrap:anywhere}.upload-options-menu>[role="menuitem"]{display:flex;align-items:center;gap:11px;width:100%;padding:10px 11px;text-align:left;border-radius:7px;color:#61566f;font-size:12px}.upload-options-menu>[role="menuitem"]:hover,.upload-options-menu>[role="menuitem"]:focus-visible{background:#f2effb;outline:0;color:#7962b8}.upload-options-menu>[role="menuitem"]>.icon{width:19px;height:19px;color:#ac98c7}.upload-options-menu>[role="menuitem"]>span{display:block}.upload-options-menu>[role="menuitem"] small{display:block;margin-top:3px;font-size:10px;line-height:1.5;color:#a69aac}@keyframes menuReveal{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.library-upload-actions{align-items:flex-start;max-width:100%}.library-upload-actions .upload-destination{justify-content:flex-start;max-width:100%}.upload-destination>small{font-size:10px}.sidebar .project-upload-bar{background:#f7f8fc}.sidebar .project-directory-arrow{width:23px;height:33px}.sidebar .project-directory-name{min-height:33px}.sidebar .upload-trigger{min-height:30px;padding:4px 8px}.upload-options-menu>[role="menuitem"]{min-height:52px}.top-actions .btn[data-action="blank-doc"]{font-size:10px;padding-left:7px;padding-right:7px}}


.app{--nav-width:184px;--context-width:292px;grid-template-columns:var(--nav-width) minmax(0,1fr) var(--context-width);min-height:100dvh}
.app .workspace-nav{padding:18px 11px 13px;background:#f7f8fc;min-width:0}
.workspace-nav .sidebar-head{gap:4px;padding:0 1px 24px}.workspace-nav .brand{gap:8px}.workspace-nav .brand img{width:30px;height:30px}.workspace-nav .brand-name{font-size:16px}.workspace-nav .brand-small{font-size:8px;letter-spacing:.2px}.workspace-nav .sidebar-collapse{width:23px;height:28px}.workspace-nav .sidebar-main-nav{border-bottom:0}.workspace-nav .navitem{padding:9px 10px;font-size:12px;min-height:40px}.workspace-nav .sidebar-bottom{margin-top:auto;padding-top:11px}.workspace-nav .profile{gap:7px;padding-left:4px;padding-right:2px}.workspace-nav .profile small{font-size:8px}.workspace-nav .profile strong{font-size:10px}.workspace-nav .learn-mini .row>span{font-size:9px}.workspace-nav .learn-mini{margin-left:0;margin-right:0;padding-left:4px;padding-right:4px}
.app .context-sidebar{display:flex;position:sticky;top:0;height:100dvh;min-height:0;min-width:0;padding:0 13px 13px;border-left:1px solid #e4e7ee;border-right:0;background:#f8f9fc;overflow:hidden;z-index:36}
.context-sidebar-head{height:62px;display:flex;align-items:center;justify-content:space-between;gap:7px;flex-shrink:0;border-bottom:1px solid #e6e9f0;margin:0 -13px;padding:0 15px}.context-heading{display:flex;align-items:center;gap:8px;color:#626b80;font-size:12px;font-weight:600;min-width:0}.context-heading>.icon{width:16px;height:16px;color:#8a82ae}.context-collapse{width:29px;height:30px;color:#8c94a6}.context-collapse>.icon{transform:scaleX(-1)}.context-collapse:hover{background:#ebeef5;color:#6e5bc8}.context-mobile-close,.mobile-context-toggle,.context-rail,.context-backdrop{display:none}
.context-sidebar .sidebar-expanded{padding-top:13px;gap:0;min-height:0}.context-sidebar .sidebar-project-card{padding:8px 11px 10px;background:#fff;border-color:#e0e5ee}.context-sidebar .sidebar-library-scroll{min-height:120px;padding-top:11px;flex:1;margin-left:-3px;margin-right:-3px}.context-sidebar .project-upload-bar{background:#f8f9fc}.context-sidebar .project-files{margin-top:12px}.context-sidebar .project-file-scroll{margin-left:8px;padding-left:6px}.context-sidebar .project-file-row{padding-left:calc(14px + var(--file-depth,0)*12px)}.context-sidebar .project-file-main{padding-top:7px;padding-bottom:7px}.context-sidebar .project-file-add{width:25px;height:29px;background:transparent;color:#9992b2}.context-sidebar .project-file-add:hover{background:#eee8fc;color:#6554c0}.context-sidebar .project-file-add .icon{width:13px;height:13px}.context-sidebar .project-directory-row.folder-selected{background:#eae5fb;color:#6450b2}.context-sidebar .project-directory-row.folder-selected:before{background:#8f7ed1}
.context-sidebar .sidebar-shared{flex:0 1 43%;max-height:43%;min-height:86px;margin-top:12px;box-shadow:0 2px 6px #303d5d03;background:#fff;border-color:#dfe4ee}.context-sidebar .sidebar-shared-head{padding:8px 7px 5px}.shared-selected-path{flex-shrink:0;display:flex;align-items:baseline;gap:4px 6px;flex-wrap:wrap;margin:0 11px 8px;padding:5px 7px;border-radius:5px;background:#f3f1fa;font-size:9px;line-height:1.6;color:#9b94ac}.shared-selected-path strong{font-weight:500;color:#8a7da5;overflow-wrap:anywhere;min-width:0}.context-sidebar .sidebar-shared-tree{padding:5px 7px 9px;border-top:1px solid #eeedf5}.context-sidebar .sidebar-shared-tree .project-directory-row.nested{padding-left:calc(7px + var(--folder-depth)*12px)}.context-sidebar .sidebar-shared-tree .project-file-row{padding-left:calc(24px + var(--file-depth,0)*12px)}.context-sidebar .shared-root-spacer{pointer-events:none;width:18px}.context-sidebar .sidebar-shared-tree .project-directory-name{font-size:11px}.context-sidebar .sidebar-shared-tree .project-directory-name>.icon{width:14px;height:14px}.context-sidebar .sidebar-shared:has(.sidebar-shared-tree[hidden]){flex:0 0 auto;min-height:0}
.topbar{padding:0 21px}.v3-workspace{grid-template-columns:minmax(265px,32%) minmax(0,1fr)}.conversation-head{padding-left:18px;padding-right:15px}.conversation-pane .chat-scroll{padding-left:20px;padding-right:20px}.composer-wrap{padding-left:14px;padding-right:14px}.page-workspace .doc-scroll{padding:0 7px 40px}.paper.page-paper{padding:35px 38px}.page-paper .paper-title{font-size:25px}.page-block .sentence-text{font-size:14px}.page-topbar{padding-left:20px;padding-right:15px}.page-tools{padding-left:20px;padding-right:15px}.material-explorer{padding-left:24px;padding-right:24px}.material-explorer .explorer-layout{grid-template-columns:176px minmax(0,1fr)}.material-explorer .summary-bar{flex-wrap:wrap}.material-explorer .summary-bar small{display:block;margin-left:0;margin-top:3px}.material-explorer .directory-file-main small{overflow-wrap:anywhere}.material-explorer .view-header{align-items:flex-start;flex-wrap:wrap}.material-explorer .view-header p{max-width:420px}
.modal-backdrop{z-index:220}.modal.material-reader{max-width:800px}.material-reader .modal-head{padding-bottom:17px}.material-reader .modal-head h2{font-size:17px;line-height:1.7;overflow-wrap:anywhere}.material-reader .modal-head p{color:#8f879c}.material-reader .material-tabs{gap:22px;padding-left:26px;padding-right:26px}.material-reader .material-tabs button{font-size:12px}.material-reader .modal-body{padding:20px 26px 26px;min-height:220px}.material-reader .modal-foot{align-items:center;gap:15px}.material-reader .modal-foot>p{min-width:0;overflow-wrap:anywhere;font-size:10px;line-height:1.8;max-width:62%}.material-reader .modal-foot>.actions{flex-shrink:0}.material-readonly-note{display:flex;align-items:center;gap:6px;margin-bottom:16px;color:#8d7fa3;font-size:10px}.material-readonly-note>.icon{width:13px;height:13px}.material-readonly-note small{margin-left:auto;color:#b2a8bd;font-size:10px}.material-reader .raw-preview{padding:22px 25px;background:#fdfcfe;border:1px solid #eae5f1;border-radius:9px;user-select:text}.material-reader .raw-preview h3{font-size:18px;line-height:1.9;margin-bottom:19px;color:#494252}.material-reader .raw-preview p{font-family:"Songti SC","STSong","SimSun",serif;font-size:15px;line-height:2.2;white-space:pre-wrap;color:#5b5266;overflow-wrap:anywhere}.raw-sample-label{display:inline-block;font-family:inherit;color:#a291b6;background:#f0eaf7;padding:2px 6px;border-radius:4px;margin-right:7px}.material-reader .source-loc{font-size:10px;margin-bottom:13px;line-height:1.8}.material-reader .detail-table{margin-top:20px}.material-unparsed{text-align:center;padding:28px 20px 34px;margin-bottom:18px;border:1px dashed #ded7e8;border-radius:9px;background:#fcfafd;color:#a08db1}.material-unparsed>.icon{width:27px;height:27px;margin-bottom:11px}.material-unparsed h3{font-size:15px;color:#80708e;margin-bottom:7px}.material-unparsed p{font-size:12px;line-height:1.9;max-width:380px;margin:auto;color:#a393af}
@media(min-width:761px){
 .app.sidebar-collapsed{--nav-width:68px;grid-template-columns:var(--nav-width) minmax(0,1fr) var(--context-width)}.app.context-collapsed{--context-width:54px;grid-template-columns:var(--nav-width) minmax(0,1fr) var(--context-width)}
 .app.sidebar-collapsed .workspace-nav{padding:17px 10px 12px;overflow:visible}.app.sidebar-collapsed .workspace-nav .sidebar-head{flex-direction:column;gap:15px;padding:0 0 16px}.app.sidebar-collapsed .workspace-nav .brand{gap:0}.app.sidebar-collapsed .workspace-nav .brand img{width:33px;height:33px}.app.sidebar-collapsed .workspace-nav .brand-copy{display:none}.app.sidebar-collapsed .workspace-nav .sidebar-collapse{width:34px;height:29px}.app.sidebar-collapsed .workspace-nav .sidebar-collapse>.icon{transform:scaleX(-1)}.app.sidebar-collapsed .workspace-nav .sidebar-kicker,.app.sidebar-collapsed .workspace-nav .nav-label,.app.sidebar-collapsed .workspace-nav .small-count{display:none}.app.sidebar-collapsed .workspace-nav .navitem{justify-content:center;min-height:40px;width:44px;padding:10px;margin:4px auto}.app.sidebar-collapsed .workspace-nav .navitem>.icon{width:18px;height:18px}.app.sidebar-collapsed .workspace-nav .sidebar-bottom{border-top:0}.app.sidebar-collapsed .workspace-nav .learn-mini,.app.sidebar-collapsed .workspace-nav .profile-copy,.app.sidebar-collapsed .workspace-nav .profile>.icon-button{display:none}.app.sidebar-collapsed .workspace-nav .profile{justify-content:center;padding:4px 0}
 .app.context-collapsed .context-sidebar{padding:0 8px 12px;overflow:visible}.app.context-collapsed .context-sidebar-head{justify-content:center;margin:0 -8px;padding:0 8px}.app.context-collapsed .context-heading,.app.context-collapsed .context-sidebar .sidebar-expanded{display:none}.app.context-collapsed .context-collapse>.icon{transform:none}.app.context-collapsed .context-rail{display:flex;flex-direction:column;gap:10px;padding-top:15px}.context-rail-button{display:flex;align-items:center;flex-direction:column;gap:5px;width:38px;padding:8px 2px;border-radius:7px;color:#8d80b2}.context-rail-button:hover{background:#eee9f9;color:#6b57b4}.context-rail-button small{font-size:9px;color:#9c92b2}.context-rail-button>.icon{width:18px;height:18px}
 .app.sidebar-collapsed .workspace-nav [data-tooltip],.app.context-collapsed .context-sidebar [data-tooltip]{position:relative}.app.sidebar-collapsed .workspace-nav [data-tooltip]:after,.app.context-collapsed .context-sidebar [data-tooltip]:after{content:attr(data-tooltip);position:absolute;top:50%;transform:translateY(-50%);padding:7px 10px;border-radius:6px;white-space:nowrap;max-width:280px;background:#34364a;color:white;font-size:11px;font-weight:400;line-height:1.6;box-shadow:0 4px 14px #23263d20;opacity:0;visibility:hidden;pointer-events:none;z-index:150}.app.sidebar-collapsed .workspace-nav [data-tooltip]:after{left:calc(100% + 13px)}.app.context-collapsed .context-sidebar [data-tooltip]:after{right:calc(100% + 12px)}.app.sidebar-collapsed .workspace-nav [data-tooltip]:hover:after,.app.sidebar-collapsed .workspace-nav [data-tooltip]:focus-visible:after,.app.context-collapsed .context-sidebar [data-tooltip]:hover:after,.app.context-collapsed .context-sidebar [data-tooltip]:focus-visible:after{opacity:1;visibility:visible}
}
@media(min-width:1500px){.app{--nav-width:190px;--context-width:304px}.v3-workspace{grid-template-columns:330px minmax(0,1fr)}.paper.page-paper{padding:42px 48px}.page-block .sentence-text{font-size:15px}}
@media(max-width:1380px) and (min-width:761px){.app{--nav-width:176px;--context-width:280px}.topbar{padding-left:17px;padding-right:16px}.top-actions{gap:5px}.paper.page-paper{padding:29px 32px}.page-paper .paper-title{font-size:23px}.page-topbar{padding-left:16px;padding-right:12px}.page-tabs{gap:15px}.page-tools{padding-left:16px;padding-right:12px}.page-tools .btn.small{font-size:9px}.material-explorer{padding-left:18px;padding-right:18px}}
@media(max-width:1100px) and (min-width:761px){.app{--nav-width:168px;--context-width:268px}.workspace-nav .brand-small{display:none}.workspace-nav .brand-name{font-size:15px}.v3-workspace,.app.sidebar-collapsed .v3-workspace{display:block;height:calc(100dvh - 104px)}.mobile-work-tabs{display:flex;height:42px;padding:0 20px;gap:25px;background:white;border-bottom:1px solid var(--line)}.mobile-work-tabs>button{display:flex;align-items:center;gap:7px;border-bottom:2px solid transparent;font-size:11px;color:#a18dad;padding:0 2px}.mobile-work-tabs>button.active{border-color:var(--brand);color:var(--brand)}.mobile-work-tabs .icon{width:14px}.conversation-pane,.page-workspace{height:100%;width:100%}.v3-workspace.mobile-chat .page-workspace{display:none}.v3-workspace.mobile-document .conversation-pane{display:none}.page-topbar{height:56px;flex-wrap:nowrap}.page-paper .paper-title{font-size:24px}.page-block .sentence-text{font-size:14px}.conversation-pane .chat-scroll{padding:23px}.composer-wrap{padding:0 20px 15px}.material-explorer .explorer-layout{display:block}.material-explorer .explorer-tree{display:none}.material-explorer .view-header h1{font-size:21px}.material-explorer .view-header p{font-size:11px}.material-explorer .summary-bar{gap:9px}.context-sidebar .sidebar-shared{max-height:40%;flex-basis:40%}}
@media(max-height:760px) and (min-width:761px){.context-sidebar .sidebar-library-scroll{min-height:110px}.context-sidebar .sidebar-shared{max-height:36%;flex-basis:36%}.context-sidebar .sidebar-project-card{padding-top:5px;padding-bottom:7px}.context-sidebar .sidebar-project-label{margin-bottom:2px}.context-sidebar-head{height:54px}.context-sidebar .sidebar-expanded{padding-top:9px}.context-sidebar .sidebar-library-scroll{padding-top:7px}.context-sidebar .project-files{margin-top:8px;padding-top:7px}}
@media(max-width:760px){
 .app,.app.sidebar-collapsed,.app.context-collapsed{display:block}.app .workspace-nav,.app .context-sidebar{display:none}.app .workspace-nav.mobile-open{display:flex;position:fixed;inset:0 auto 0 0;width:min(280px,85vw);height:100dvh;padding:18px 14px 13px;z-index:100}.app .context-sidebar.mobile-open{display:flex;position:fixed;inset:0 0 0 auto;width:min(322px,92vw);height:100dvh;padding:0 13px 13px;z-index:100;box-shadow:-10px 0 45px #25315424;overflow:hidden}.workspace-nav .brand-name{font-size:18px}.workspace-nav .brand img{width:35px;height:35px}.workspace-nav .brand-small{font-size:9px;display:block}.workspace-nav .sidebar-head{padding-bottom:24px}.workspace-nav .sidebar-main-nav{border-bottom:0}.workspace-nav .sidebar-bottom{margin-top:auto}.workspace-nav .profile strong{font-size:11px}.workspace-nav .profile small{font-size:9px}.workspace-nav .learn-mini .row>span{font-size:10px}.workspace-nav .sidebar-collapse{display:none}.context-collapse{display:none}.context-mobile-close{display:inline-grid;width:30px;height:30px;border:1px solid #e0e5ee;background:#fff}.context-heading{font-size:13px}.context-sidebar-head{height:58px}.context-rail{display:none}.context-sidebar .sidebar-expanded{display:flex}.context-sidebar .sidebar-library-scroll{min-height:100px;flex:1}.context-sidebar .sidebar-shared{max-height:41%;flex-basis:41%;margin-top:10px}.context-sidebar .sidebar-shared:has(.sidebar-shared-tree[hidden]){flex:0 0 auto}.context-sidebar .project-upload-bar{background:#f8f9fc}.context-sidebar .project-file-main{font-size:11px;min-height:34px}.context-sidebar .project-file-add{width:30px;height:34px}.context-sidebar .project-file-add .icon{width:14px;height:14px}.context-sidebar .project-directory-arrow{width:24px;min-height:34px}.context-sidebar .project-directory-name{min-height:34px}.mobile-context-toggle{display:inline-grid;width:30px;height:32px;border:1px solid #e7e3f0;border-radius:7px;color:#8c7ca6;background:#faf8fd}.mobile-context-toggle>.icon{width:16px;height:16px}.context-backdrop{display:block;position:fixed;inset:0;z-index:99;background:#2b344a52;backdrop-filter:blur(2px);cursor:default}.mobile-context-open .main{max-height:100dvh;overflow:hidden}.topbar{padding:0 11px;gap:8px}.crumb{gap:6px;flex:1;min-width:0}.crumb strong{font-size:10px}.top-actions{gap:4px}.top-actions .btn{font-size:10px;padding:5px 7px;gap:4px}.top-actions .btn>.icon{width:13px;height:13px}.top-actions .v3-workspace{height:calc(100dvh - 100px)}.paper.page-paper{padding:27px 28px}.page-paper .paper-title{font-size:23px}.material-explorer{padding:24px 15px 50px}.material-explorer .explorer-layout{display:block}.material-reader .modal-head{padding:20px 18px 14px}.material-reader .modal-head h2{font-size:15px}.material-reader .material-tabs{padding-left:18px;padding-right:18px;gap:17px}.material-reader .material-tabs button{font-size:11px}.material-reader .modal-body{padding:16px 18px 22px}.material-reader .raw-preview{padding:18px 16px}.material-reader .raw-preview h3{font-size:16px}.material-reader .raw-preview p{font-size:14px}.material-reader .modal-foot{padding:13px 18px;flex-wrap:wrap;gap:10px}.material-reader .modal-foot>p{max-width:100%;width:100%;font-size:9px}.material-reader .modal-foot>.actions{margin-left:auto}.material-readonly-note small{font-size:9px}.material-reader .source-loc{font-size:9px}.material-reader .detail-table td{font-size:10px;padding:9px 7px}.material-unparsed{padding:24px 14px}.material-unparsed p{font-size:11px}
}


.app .workspace-nav .navitem,.app.sidebar-collapsed .workspace-nav .navitem{height:40px;min-height:40px;border-radius:8px}
.app .workspace-nav .navitem>.icon,.app.sidebar-collapsed .workspace-nav .navitem>.icon{width:17px;height:17px}
.app .workspace-nav .navitem.active,.app.sidebar-collapsed .workspace-nav .navitem.active{background:#ebe8fb;color:#5648bd;font-weight:650}
.app .workspace-nav .navitem.active>.icon,.app.sidebar-collapsed .workspace-nav .navitem.active>.icon{color:#6556c8}
.app .workspace-nav .navitem.active:before,.app.sidebar-collapsed .workspace-nav .navitem.active:before{content:"";position:absolute;left:0;top:50%;bottom:auto;transform:translateY(-50%);width:3px;height:20px;border-radius:3px;background:#6b5bd3;pointer-events:none}
.conversation-head{height:66px;min-height:66px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:2px;padding-top:8px;padding-bottom:8px}
.conversation-head .conversation-kicker{margin:0;line-height:14px}
.conversation-head>.conversation-controls{display:flex;align-items:center;gap:3px;min-width:0;flex:none;height:30px}
.conversation-switcher{position:relative;min-width:0;flex:1;height:30px}
.conversation-head .conversation-switcher select{display:block;width:100%;min-width:0;height:30px;line-height:30px;appearance:none;-webkit-appearance:none;padding:0 27px 0 0;border-radius:5px;cursor:pointer}
.conversation-chevron{position:absolute;right:2px;top:0;width:24px;height:30px;display:grid;place-items:center;pointer-events:none;color:#888193}
.conversation-chevron>.icon{width:16px;height:16px}
.conversation-controls>.icon-button{width:30px;height:30px;align-self:center}
.conversation-controls>.icon-button>.icon{width:16px;height:16px}
.sidebar .conversation-tree-row{display:flex;align-items:center;gap:0;min-width:0;margin:1px 0;border-radius:6px}
.sidebar .conversation-tree-row:hover{background:#ecedf7}
.sidebar .conversation-tree-row.active{background:#ebe8fa}
.sidebar .conversation-tree-row .conversation-tree-item{flex:1;width:auto;min-width:0;margin:0;background:transparent}
.sidebar .conversation-tree-row .conversation-rename{width:26px;height:28px;margin-right:3px;color:#a19ab1;opacity:.75}
.sidebar .conversation-tree-row.active .conversation-rename{color:#8a7bc0}
.sidebar .conversation-tree-row:hover .conversation-rename,.sidebar .conversation-rename:focus-visible{opacity:1}
.sidebar .conversation-rename:hover{background:#ded7f4;color:#6554b2}
.sidebar .conversation-rename>.icon{width:13px;height:13px}
.rename-conversation-modal .form-field{margin-bottom:0}.rename-conversation-modal .form-help{margin-top:8px}.rename-conversation-modal .form-error{margin-top:6px;color:var(--red);font-size:11px}.rename-conversation-modal .input[aria-invalid="true"]{border-color:#d98d9a}


.conversation-start{padding:3px 0 20px;border-bottom:1px solid #eeedf4;margin-bottom:18px}.conversation-start-label{font-size:10px;color:#9b94a5;letter-spacing:.5px}.conversation-start .welcome-actions{margin-top:10px}
.paragraph-picker-modal{max-width:640px}.paragraph-picker-modal .modal-head p{max-width:480px}.paragraph-picker-modal .modal-body{padding-top:18px}.paragraph-picker-field{margin-bottom:15px}.paragraph-picker-field .input{width:100%;cursor:pointer}.paragraph-picker-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:#9b91a5;margin:0 0 10px}.paragraph-picker-summary strong{font-weight:500;color:#786b87}.paragraph-choices{display:flex;flex-direction:column;gap:9px;max-height:340px;overflow:auto;padding:2px 3px 3px 0;overscroll-behavior:contain}.paragraph-choice{width:100%;display:block;text-align:left;border:1px solid #e8e2ef;border-radius:9px;padding:12px 14px;background:#fff}.paragraph-choice:hover{background:#faf8ff;border-color:#cfc5e6}.paragraph-choice.selected{background:#f7f4ff;border-color:#a999df;box-shadow:0 0 0 1px #a999df25}.paragraph-choice-head{display:flex;align-items:center;gap:7px;color:#8a7e9c;font-size:10px;margin-bottom:6px}.paragraph-choice-head>.icon{width:14px;height:14px}.paragraph-choice-head strong{font-size:11px;color:#61556e;font-weight:550}.paragraph-choice-head .paragraph-state{margin-left:auto;font-size:9px;color:#a28eae}.paragraph-choice-head .paragraph-check{width:16px;height:16px;border:1px solid #d7cee3;border-radius:50%;display:grid;place-items:center;margin-left:3px;color:transparent}.paragraph-choice.selected .paragraph-check{background:var(--brand);border-color:var(--brand);color:#fff}.paragraph-check .icon{width:10px;height:10px}.paragraph-choice-text{font-size:12px;line-height:1.85;color:#756a81;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.paragraph-choice.selected .paragraph-choice-text{-webkit-line-clamp:unset}.paragraph-empty{padding:28px 18px;text-align:center;border:1px dashed #ded5e8;border-radius:10px;background:#fcfafe}.paragraph-empty>.icon{width:24px;height:24px;color:#b5a8c6;margin-bottom:10px}.paragraph-empty h3{font-size:13px;font-weight:550;color:#766882}.paragraph-empty p{font-size:11px;line-height:1.9;color:#a095aa;margin:8px auto 16px;max-width:350px}.paragraph-picker-feedback{margin:0 0 12px;padding:10px 12px;border:1px solid #eeddb9;border-radius:7px;background:#fffbf0;font-size:11px;color:#9e7f3f}.paragraph-picker-feedback>p{line-height:1.8;margin-bottom:6px}.paragraph-picker-feedback .btn{font-size:10px}.paragraph-picker-modal .modal-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}.paragraph-picker-modal .modal-foot>p{font-size:10px;color:#a095aa;line-height:1.8;max-width:310px}.paragraph-picker-modal .modal-foot>.actions{display:flex;gap:7px}.paragraph-picker-modal .form-help{font-size:10px;margin-top:7px}
@media(max-width:760px){.paragraph-picker-modal .modal-head{padding:20px 18px 14px}.paragraph-picker-modal .modal-body{padding:16px 18px 20px}.paragraph-picker-modal .modal-foot{padding:14px 18px;flex-wrap:wrap}.paragraph-picker-modal .modal-foot>.actions{margin-left:auto}.paragraph-choices{max-height:40dvh}.paragraph-choice{padding:11px 12px}.paragraph-choice-text{font-size:12px}.paragraph-empty{padding:23px 14px}.paragraph-picker-summary{font-size:9px}.conversation-start .welcome-actions button{font-size:11px}}



@media(min-width:761px){
 #workspace-sidebar .sidebar-collapse,#context-sidebar .context-collapse{width:28px;height:28px;min-width:28px;flex:0 0 28px;padding:0;border:1px solid #e3e5ef;border-radius:8px;background:#fff;color:#7d8394;box-shadow:none}
 #workspace-sidebar .sidebar-collapse>.icon,#context-sidebar .context-collapse>.icon{width:18px;height:18px}
 #workspace-sidebar .sidebar-collapse:hover,#context-sidebar .context-collapse:hover{background:#f3f0fc;border-color:#d9d3f1;color:#6b5bd3}
 #workspace-sidebar .sidebar-collapse:active,#context-sidebar .context-collapse:active{background:#ebe8fb;border-color:#c6bdef;color:#5d4dc3}
 #workspace-sidebar .sidebar-collapse:focus-visible,#context-sidebar .context-collapse:focus-visible{outline:2px solid #b9b3f5;outline-offset:2px;background:#f3f0fc;border-color:#d9d3f1;color:#6b5bd3}
}



.crumb{flex:1;min-width:0}
.crumb>.crumb-label,.crumb>.icon{flex-shrink:0}
.crumb-writing .crumb-project{flex:0 1 auto;max-width:180px;min-width:0;color:#808495;font-weight:500}
.crumb-writing .crumb-document{flex:0 1 auto;min-width:0;font-weight:600;color:#424655}
.page-tabs{flex:1 1 auto;min-width:0}
.page-tabs>.document-tab{flex:0 1 auto;min-width:0}
.document-tab-title{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-tabs>.document-tab>.icon,.page-tabs .count,.page-tabs>[data-id="plan"],.page-topbar>.compact-actions{flex-shrink:0}
@media(max-width:1040px){
 .page-topbar{height:auto;min-height:56px;flex-wrap:wrap}
 .page-tabs{flex-basis:230px;min-height:48px;max-width:100%}
 .page-topbar>.compact-actions{min-height:30px;margin-left:auto}
}
@media(max-width:760px){
 .crumb-writing{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:6px;row-gap:0;align-items:center}
 .crumb-writing>.mobile-menu{grid-column:1;grid-row:1 / 3}
 .crumb-writing>.crumb-project{grid-column:2;grid-row:1;max-width:100%;font-size:9px;line-height:1.5}
 .crumb-writing>.crumb-document{grid-column:2;grid-row:2;font-size:10px;line-height:1.6}
}


.page-topbar{height:auto;min-height:62px;flex-wrap:wrap;gap:8px;padding-top:5px;padding-bottom:5px}
.page-head-main{display:flex;align-items:center;align-self:stretch;gap:18px;flex:1 1 390px;min-width:0;max-width:100%}
.page-head-main .page-tabs{flex:0 1 auto;min-width:130px;min-height:46px;gap:14px}
.page-head-main .document-tab{min-width:65px}
.page-style-control{display:flex;align-items:center;gap:7px;flex:0 0 auto;margin-right:auto;font-size:10px;color:#8b8595;white-space:nowrap}
.page-style-control .switch-line{gap:6px;font-size:10px}
.page-style-control .switch-line>.icon{width:14px;height:14px}
.page-style-name{display:flex;align-items:center;gap:4px;color:#827490;font-size:10px;max-width:114px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-style-name>.icon{width:12px;height:12px}
.page-topbar>.compact-actions{margin-left:auto;min-height:32px}
@media(max-width:1380px){.page-head-main{gap:12px;flex-basis:340px}.page-style-control,.page-style-control .switch-line,.page-style-name{font-size:9px}.page-style-control{gap:5px}.page-style-name{max-width:90px}}
@media(max-width:1040px){.page-head-main{flex-basis:100%;flex-wrap:wrap;gap:0 12px}.page-head-main .page-tabs{flex:1 1 215px}.page-style-control{margin-left:auto;margin-right:0;min-height:32px}}
@media(max-width:760px){.page-head-main .page-tabs{min-width:0;flex-basis:100%}.page-style-control{margin-left:0}.page-topbar>.compact-actions{margin-top:-37px}.page-style-name{max-width:110px}}

/* PLAN_CANVAS_CSS_START */

.plan-canvas-controls{min-height:55px;gap:10px}
.plan-canvas-controls .compact-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.plan-canvas-controls .btn{font-size:11px}
.plan-canvas-paper{max-width:820px;margin:0 auto;padding:35px 48px 55px;min-height:calc(100% - 32px);background:#fff}
.plan-canvas-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:5px 0 10px}
.plan-name-row{min-width:0;display:flex;align-items:center;gap:6px}
.plan-name-row>strong{color:#65566f;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.plan-draft-status{font-size:10px;line-height:1.5;padding:3px 7px;border-radius:5px;background:#f3f1f7;color:#9d8aa9;white-space:nowrap}
.plan-draft-status.is-dirty{background:#fff6e7;color:#a47832}
.plan-canvas-paper .plan-version-row{margin:7px 0 14px}
.plan-canvas-paper .plan-path{margin-bottom:13px;font-size:10px}
.plan-reference-details{border-top:1px solid #f0edf5;border-bottom:1px solid #f0edf5;margin:12px 0 28px;color:#9989a5}
.plan-reference-details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;font-size:11px;min-height:40px}
.plan-reference-details>summary::-webkit-details-marker{display:none}
.plan-reference-details>summary>.icon{width:14px;height:14px;flex-shrink:0}
.plan-reference-details>summary>small{font-size:10px;color:#b5a9bf;margin-left:auto}
.plan-reference-details>summary>.icon:last-child{width:12px;transition:transform .15s}
.plan-reference-details[open]>summary>.icon:last-child{transform:rotate(180deg)}
.plan-reference-details .plan-bound-refs{border:0;background:transparent;padding:0 0 12px;margin:0}
.plan-reference-details .plan-bound-refs>small{color:#a798b3;font-size:10px}
.plan-history-notice{display:flex;align-items:flex-start;gap:7px;padding:10px 12px;margin:10px 0;border-radius:6px;background:#f5f3fa;color:#897596;font-size:11px;line-height:1.6}
.plan-history-notice>.icon{width:14px;height:14px;flex-shrink:0;margin-top:2px}
.plan-page-block{margin:9px 0;min-height:30px}
.plan-page-block .block-rail{top:2px}
.plan-page-block:focus-within{z-index:1}
.plan-page-block.menu-open{z-index:50}
.plan-block-content{display:flex;align-items:flex-start;gap:9px;min-width:0}
.plan-block-text{flex:1;min-width:0;min-height:29px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.95;color:#514958;outline:none;border-radius:5px;padding:2px 3px;margin-left:-3px;transition:background .12s}
.plan-block-text[contenteditable]:hover{background:#faf9fc}
.plan-block-text[contenteditable]:focus{background:#faf8ff;box-shadow:0 0 0 1px #eee7fa}
.plan-block-text[contenteditable]:empty:before{content:attr(data-placeholder);color:#c0b7cc;pointer-events:none}
.plan-page-block.type-heading1{margin-top:24px;margin-bottom:15px}
.plan-page-block.type-heading1 .plan-block-text{font-size:28px;line-height:1.5;font-weight:650;color:#38323e;letter-spacing:-.4px}
.plan-page-block.type-heading2{margin-top:26px;margin-bottom:10px}
.plan-page-block.type-heading2 .plan-block-text{font-size:20px;line-height:1.6;font-weight:600;color:#463d4f}
.plan-page-block.type-heading3{margin-top:20px;margin-bottom:8px}
.plan-page-block.type-heading3 .plan-block-text{font-size:16px;line-height:1.7;font-weight:600;color:#51445c}
.plan-page-block.type-heading4 .plan-block-text,.plan-page-block.type-heading5 .plan-block-text,.plan-page-block.type-heading6 .plan-block-text{font-size:14px;font-weight:600}
.plan-page-block.type-quote .plan-block-content{border-left:3px solid #d8cee7;padding-left:15px;color:#8f7c9b}
.plan-page-block.type-quote .plan-block-text{color:#897497}
.plan-page-block.type-code .plan-block-text{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;background:#f7f6f9;padding:10px 12px;line-height:1.8}
.plan-list-marker{flex-shrink:0;min-width:16px;padding-top:3px;line-height:1.95;font-size:14px;color:#a28eaf;text-align:right}
.plan-todo-toggle{height:17px;width:17px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border:1px solid #d9d1e3;border-radius:4px;background:#fff;color:transparent;margin:7px 0 0;cursor:pointer;padding:0}
.plan-todo-toggle>.icon{width:12px;height:12px}
.plan-todo-toggle.checked{background:#8171c7;border-color:#8171c7;color:white}
.plan-todo-toggle:disabled{cursor:default;opacity:.7}
.plan-add-block-row{margin-top:16px;padding:7px 0;border-top:1px dashed #eee9f3}
.plan-add-block-row .btn{font-size:11px;color:#a390b1}
.plan-block-menu{position:absolute;z-index:65;top:4px;left:-27px;width:242px;max-width:calc(100vw - 44px);background:#fff;border:1px solid #e4ddec;border-radius:11px;box-shadow:0 12px 35px #44315324;padding:10px}
.plan-block-menu>.btn{justify-content:flex-start;font-size:11px;min-height:30px;padding:5px 7px;width:100%}
.plan-block-menu .block-type-grid button{min-height:31px}
.plan-block-menu button:disabled{opacity:.4;cursor:not-allowed}
.plan-block-menu .block-menu-row .btn{font-size:11px}
.plan-canvas-paper .plan-bottom{margin-top:28px;gap:12px}
.plan-canvas-paper .plan-bottom>.btn{font-size:11px}
.plan-canvas-paper .plan-bottom>span{font-size:10px;line-height:1.6}
@media(max-width:1200px){.plan-canvas-paper{padding:30px 34px 45px}.plan-canvas-controls{padding-left:16px;padding-right:16px}.plan-canvas-controls .btn{font-size:10px}}
@media(max-width:700px){.plan-canvas-paper{padding:24px 26px 40px}.plan-canvas-heading{align-items:flex-start;gap:8px}.plan-canvas-paper .plan-path{font-size:9px}.plan-name-row>strong{font-size:12px}.plan-draft-status{font-size:9px}.plan-canvas-paper .plan-version-row>span{font-size:9px}.plan-page-block.type-heading1 .plan-block-text{font-size:24px}.plan-page-block.type-heading2 .plan-block-text{font-size:18px}.plan-block-text{font-size:13px}.plan-block-menu{left:-21px}.plan-canvas-controls{padding:10px 12px}.plan-canvas-controls .compact-actions{gap:4px}.plan-canvas-paper .plan-bottom>span{font-size:9px}}

/* PLAN_CANVAS_CSS_END */


.plan-option-label{display:flex;align-items:center;gap:6px;color:#7e748e;font-size:10px;white-space:nowrap}
.plan-option-label .icon{width:13px;height:13px}.plan-option-label>span,.plan-owner-line em{font-size:9px;font-style:normal;border-radius:4px;background:#f3f0f8;color:#9a8cac;padding:2px 5px}
.plan-owner-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:12px 0;color:#9a91a4;font-size:10px;min-width:0}
.plan-owner-line>.icon{width:13px;height:13px;flex-shrink:0}.plan-owner-line>button{color:#71618d;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.plan-owner-line>button:hover{text-decoration:underline}
.plan-optional-note{font-size:12px;line-height:1.9;color:#a59caf;margin:24px 0 20px}.plan-empty-editor{min-height:100px;outline:none;border-radius:8px;padding:12px;font-size:14px;line-height:1.9;white-space:pre-wrap}.plan-empty-editor:empty:before{content:attr(data-placeholder);color:#b1a8bb}.plan-empty-editor:focus{background:#faf9fd}
.plan-backup-entry{margin-top:10px;display:flex;justify-content:flex-end}.plan-backup-entry .btn{font-size:10px;color:#a196af}
.plan-backup-note{font-size:12px;line-height:1.8;color:#93889f;background:#f7f5fb;padding:12px 14px;border-radius:8px;margin-bottom:18px}.plan-backup-row{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.plan-backup-row>div{min-width:0;display:flex;align-items:center;gap:7px;flex-wrap:wrap}.plan-backup-row strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.plan-backup-row small{font-size:10px;color:#a297ae}.plan-backup-version{font-size:11px;color:#93889f;display:flex;gap:8px;align-items:center;margin-bottom:16px}.plan-backup-version select{border:1px solid var(--line);padding:6px 8px;border-radius:6px;background:white}.plan-backup-content{max-height:50vh;overflow:auto}.plan-backup-draft{margin-top:16px;font-size:12px;color:#8b7e99}.plan-backup-draft summary{cursor:pointer}
@media(max-width:760px){.plan-canvas-controls .plan-option-label{font-size:9px}.plan-owner-line{font-size:10px}.plan-option-label>.icon{display:none}}


.style-top-actions{display:flex;flex-direction:column;gap:14px;align-items:flex-end;flex-shrink:0}
.style-user-rule{display:inline-block;font-size:10px;color:#8b7b9f;margin-top:7px}
.style-examples{display:grid;gap:10px;margin-top:10px}
.style-examples blockquote{margin:0;border-left:3px solid #ded6f6;border-radius:0 6px 6px 0;background:#faf8ff;padding:11px 13px;color:#6b627a;font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.style-baseline-body{padding:18px}
.style-history{margin-top:18px;border:1px solid var(--line);border-radius:9px;background:#fff}
.style-history>summary{padding:14px 16px;font-size:12px;color:#746683;cursor:pointer}
.style-history-version{padding:0 16px 14px;border-top:1px solid #eeeaf4}
.style-history-version>summary{cursor:pointer;padding:13px 0;font-size:12px;font-weight:600;color:#62566f;overflow-wrap:anywhere}
.style-history-version>summary span{font-weight:400;color:#9789a4;font-size:10px;margin-left:12px}
.style-history-version .panel-desc{margin-bottom:14px}
.style-detail-modal,.style-editor-modal{width:min(760px,calc(100vw - 32px))}
.style-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.style-detail-heading h3{font-size:18px;font-weight:600;color:#4b4058;overflow-wrap:anywhere}
.style-detail-heading h3 .chip{vertical-align:2px;margin-left:6px}
.style-detail-scope{font-size:12px;line-height:1.9;color:#786c87;margin:16px 0 22px;white-space:pre-wrap}
.style-detail-section{font-size:13px;color:#6b5d7b;margin:20px 0 15px}
.style-detail-modal .style-rule p{color:#80748f}
.style-editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.style-editor-modal .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.style-editor-modal .input{color:#5a4b69;background:#fff}
.style-editor-modal .style-scenario-field{min-height:78px;resize:vertical}
.style-editor-section{border-top:1px solid var(--line);padding-top:18px;margin-top:3px;margin-bottom:23px}
.style-editor-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}
.style-editor-section-title h3{font-size:13px;color:#645571}
.style-editor-section-title>span{font-size:10px;color:#9a8ca8}
.style-edit-rule{border:1px solid #e9e2f2;border-radius:9px;padding:13px;background:#fcfbfe;margin-bottom:12px}
.style-edit-rule-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.style-edit-rule-head .input{flex:1;min-width:0;font-weight:600;padding:7px 10px}
.style-edit-rule-head .rule-num{padding:0;flex-shrink:0;color:#9b8aae}
.style-edit-rule-head .icon-button{flex-shrink:0;width:30px;height:30px;padding:5px}
.style-edit-rule textarea{min-height:76px;resize:vertical}
.style-edit-rule>small{display:block;color:#9a8da7;font-size:10px;line-height:1.8;margin-top:7px;overflow-wrap:anywhere}
.style-examples-field label>span{font-size:10px;color:#ada0b9;font-weight:400;margin-left:4px}
.style-examples-field textarea{min-height:115px;resize:vertical}
.style-editor-note{border:1px solid #ebe5f5;background:#faf8ff;border-radius:8px;padding:12px 13px;display:flex;gap:9px;align-items:flex-start;margin-top:16px;color:#91819f;font-size:11px;line-height:1.85}
.style-editor-note .icon{width:15px;height:15px;margin-top:3px;flex-shrink:0}
.style-editor-modal .form-error{margin-top:12px}
.run-style-snapshot{border-top:1px solid #e9e4f1;margin-top:12px;padding-top:10px}
.run-style-snapshot summary{cursor:pointer;font-size:11px;color:#8c78a5}
.run-style-snapshot ol{padding-left:20px;font-size:11px;color:#897c98;line-height:1.9}
.run-style-snapshot li{margin-bottom:9px}
.run-style-snapshot h4{font-size:11px;color:#867391;margin:10px 0 5px}
.run-style-snapshot .style-examples blockquote{font-size:11px;padding:9px 11px}
@media(max-width:760px){.style-top{align-items:flex-start}.style-top-actions{align-items:flex-start}.style-editor-fields{grid-template-columns:1fr;gap:0}.style-editor-section-title{align-items:flex-start;flex-direction:column;gap:5px}.style-detail-modal,.style-editor-modal{width:calc(100vw - 24px)}.style-editor-modal .modal-body,.style-detail-modal .modal-body{padding:18px}.style-editor-modal .modal-foot>p{max-width:160px}.style-editor-modal .modal-foot{padding:14px 18px}.style-edit-rule{padding:10px}}


.style-catalog{padding-top:31px}
.style-catalog .view-header{margin-bottom:22px}
.style-catalog-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.style-catalog-intro>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.style-catalog-intro strong{font-size:13px;font-weight:600;color:#62566e}
.style-catalog-intro span,.style-catalog-intro p{font-size:10px;line-height:1.8;color:#9b91a6}
.style-filter-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}
.style-filter-tabs button{display:flex;align-items:center;gap:7px;border:1px solid #e6e0ed;border-radius:7px;background:#fff;padding:8px 11px;color:#8a7c98;font-size:11px;transition:background .15s,border-color .15s}
.style-filter-tabs button>span{font-size:9px;color:#aa9db7;background:#f6f3fa;min-width:16px;padding:1px 3px;border-radius:4px;text-align:center}
.style-filter-tabs button:hover{border-color:#cfc3e6;background:#fcfaff}
.style-filter-tabs button.active{border-color:#b7a7df;background:#f2edff;color:var(--brand);font-weight:550}
.style-filter-tabs button.active>span{color:#9a89be;background:#e9e2f8}
.style-catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,282px),1fr));gap:16px}
.style-catalog-card{min-width:0;background:#fff;border:1px solid #e7e1ee;border-radius:11px;padding:21px 20px 0;display:flex;flex-direction:column;box-shadow:0 2px 9px #4f3c6403}
.style-catalog-card.current{border-color:#c4b5e7;box-shadow:0 0 0 1px #d2c7ec25}
.style-catalog-card.disabled-profile{background:#fcfbfd}
.style-catalog-card-head{display:flex;align-items:center;gap:11px;min-height:49px}
.style-category-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:9px;background:#f2edfb;color:#9c87c6}
.style-category-icon>.icon{width:19px;height:19px}
.style-catalog-card-head>div{min-width:0;flex:1}
.style-category-name{display:block;color:#a89bb5;font-size:10px;margin-bottom:4px}
.style-catalog-card h2{font-size:15px;line-height:1.5;font-weight:600;color:#5d4c6f;overflow-wrap:anywhere}
.style-catalog-card h2>.chip{vertical-align:2px;margin-left:4px;font-size:9px}
.style-current-label{align-self:flex-start;font-size:9px;line-height:1.8;color:#9580bf;background:#f1eafa;padding:2px 6px;border-radius:4px;white-space:nowrap}
.style-card-badges{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0 11px}
.style-card-description{font-size:11px;line-height:1.9;color:#9c8da9;min-height:42px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.style-card-rule-preview{list-style:none;padding:0;margin:16px 0 14px;display:flex;flex-direction:column;gap:7px}
.style-card-rule-preview>li{font-size:11px;line-height:1.7;color:#7d6b8d;display:flex;align-items:baseline;gap:7px}
.style-card-rule-preview>li:before{content:"";width:4px;height:4px;border-radius:50%;background:#c3b2dc;flex:0 0 4px}
.style-card-learning{display:flex;align-items:center;gap:6px;font-size:10px;color:#aaa0b5;margin-top:auto;margin-bottom:18px;line-height:1.7}
.style-card-learning .icon{width:13px;height:13px;flex-shrink:0}
.style-catalog-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #f0ebf5;padding:14px 0}
.style-catalog-card-foot .switch-line{font-size:10px;color:#a095ad;gap:8px}
.style-catalog-card-foot .actions{display:flex;gap:7px}
.style-catalog-card-foot .btn{font-size:10px;padding:6px 9px;min-height:29px}
.style-catalog-card-foot .btn>.icon{width:12px;height:12px}
.style-catalog-note{display:flex;align-items:flex-start;gap:8px;color:#a499af;font-size:10px;line-height:1.9;margin-top:20px;padding:12px 2px}
.style-catalog-note>.icon{width:14px;height:14px;flex-shrink:0;margin-top:3px}
.style-catalog-empty{border:1px dashed #ddd3e9;background:#fff;border-radius:10px;padding:30px;font-size:12px;line-height:1.9;color:#a091af;grid-column:1/-1}
.style-profile-evidence,.style-detail-modal .style-baseline{margin-top:18px}
.style-detail-modal .evidence-row{font-size:10px;gap:10px;flex-wrap:wrap}
.style-detail-modal .evidence-row>span:nth-of-type(1){flex:1;min-width:160px;overflow-wrap:anywhere}
.style-detail-modal .evidence-row>small{font-size:9px;color:#a698b2}
.style-source-empty{display:flex;align-items:flex-start;gap:10px;margin-top:20px;padding:15px;border:1px dashed #e3d9ed;background:#fcfafe;border-radius:8px;color:#9f8eaf}
.style-source-empty>.icon{width:17px;height:17px;flex:0 0 17px;margin-top:2px}
.style-source-empty strong{font-size:11px;font-weight:550;color:#8f7c9f}
.style-source-empty p{font-size:11px;line-height:1.9;margin-top:5px;color:#a394b0}
.style-editor-category{display:flex;align-items:center;gap:9px;margin-bottom:19px;font-size:11px;color:#a18ead;flex-wrap:wrap}
.style-editor-category strong{font-size:11px;font-weight:550;color:#8a71a4;background:#f3edf9;padding:5px 9px;border-radius:5px}
.style-editor-category small{font-size:10px;color:#b0a0bd}
.multi-style-control{gap:7px}
.page-genre-name{display:flex;align-items:center;gap:4px;color:#8d78a0;background:#f5f1fa;border:1px solid #ece4f4;border-radius:5px;padding:5px 6px;font-size:10px;white-space:nowrap;max-width:86px}
.page-genre-name>.icon{width:12px;height:12px;flex:0 0 12px}
.multi-style-control .page-style-name{min-width:0;display:block;max-width:122px;overflow:hidden;text-overflow:ellipsis}
.multi-style-control .page-style-name>.icon{display:inline;vertical-align:-2px;margin-left:3px}
.manuscript-style-modal{width:min(640px,calc(100vw - 32px))}
.manuscript-style-modal .modal-body{padding-top:22px}
.manuscript-style-modal .form-field{margin-bottom:17px}
.manuscript-style-modal .form-field .optional-label{font-size:10px;color:#ad9fba;font-weight:400;margin-left:4px}
.manuscript-settings-grid{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.7fr);gap:14px}
.manuscript-style-modal select.input{width:100%;cursor:pointer;min-height:39px;font-size:12px;color:#746180;padding-right:28px;background:#fff}
.manuscript-current-title{display:flex;align-items:center;gap:9px;background:#faf8fd;border:1px solid #ede6f4;border-radius:7px;padding:11px 13px;margin-bottom:20px;color:#826d91;font-size:12px;line-height:1.8}
.manuscript-current-title>.icon{width:15px;height:15px;flex-shrink:0}
.manuscript-current-title>span{overflow-wrap:anywhere}
.manuscript-genre-description{font-size:11px;line-height:1.8;color:#a08eae;margin:-8px 0 18px}
.manuscript-style-preview{border:1px solid #e7ddf0;background:#fcfafe;border-radius:9px;padding:16px 17px}
.manuscript-style-preview-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.manuscript-style-preview-head>div{flex:1;min-width:160px}
.manuscript-style-preview-head h3,.manuscript-style-preview h3{font-size:13px;font-weight:600;color:#756084;line-height:1.7;overflow-wrap:anywhere}
.manuscript-style-preview-head h3>.chip{vertical-align:1px;margin-left:4px}
.manuscript-style-preview-head p{font-size:10px;color:#aa97b7;margin-top:3px;line-height:1.7}
.manuscript-style-scope{font-size:11px;line-height:1.9;color:#a08aaa;margin:13px 0 10px}
.manuscript-style-preview ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px;margin:0 0 14px}
.manuscript-style-preview ul>li{font-size:11px;line-height:1.75;color:#8e789d;display:flex;align-items:baseline;gap:7px}
.manuscript-style-preview ul>li:before{content:"";width:4px;height:4px;border-radius:50%;background:#beabd2;flex:0 0 4px}
.manuscript-style-source{display:block;border-top:1px solid #eee5f5;padding-top:11px;font-size:10px;color:#ad9abb}
.manuscript-style-preview.no-style{display:flex;align-items:flex-start;gap:12px;padding:20px 17px}
.manuscript-style-preview.no-style p{font-size:11px;line-height:1.9;color:#a08cab;margin-top:5px}
.manuscript-style-fallback{display:flex;align-items:flex-start;gap:7px;font-size:11px;line-height:1.9;color:#a58c5f;background:#fffbf2;border:1px solid #f0e4cb;border-radius:7px;padding:10px 12px;margin-bottom:13px}
.manuscript-style-fallback>.icon{width:14px;height:14px;flex-shrink:0;margin-top:3px}
.manuscript-plan-note{font-size:10px;line-height:1.9;color:#a895b4;margin-top:14px}
.manuscript-style-modal .form-error{margin-top:14px}
.manuscript-style-modal .modal-foot>p{font-size:10px;line-height:1.9;color:#a694b2;max-width:260px}
@media(max-width:1380px){.multi-style-control{gap:5px}.page-genre-name{font-size:9px;padding:4px 5px;gap:3px}.multi-style-control .page-style-name{max-width:105px;font-size:9px}}
@media(max-width:760px){.style-catalog{padding:24px 17px 55px}.style-catalog-intro{display:block}.style-catalog-intro>p{margin-top:7px}.style-filter-tabs{gap:6px}.style-filter-tabs button{padding:7px 9px}.style-catalog-grid{grid-template-columns:1fr;gap:13px}.style-catalog-card{padding:19px 17px 0}.style-catalog-card-head h2{font-size:15px}.style-card-description{min-height:0}.style-card-rule-preview{margin:13px 0}.manuscript-style-modal{width:calc(100vw - 24px)}.manuscript-style-modal .modal-head{padding:20px 18px 14px}.manuscript-style-modal .modal-body{padding:18px}.manuscript-style-modal .modal-foot{padding:14px 18px;gap:12px;flex-wrap:wrap}.manuscript-style-modal .modal-foot>.actions{margin-left:auto}.manuscript-style-modal .modal-foot>p{max-width:180px}.manuscript-settings-grid{grid-template-columns:1fr;gap:0}.manuscript-style-preview{padding:15px}.manuscript-style-preview-head>div{min-width:145px}.style-detail-modal .modal-foot{flex-wrap:wrap;gap:8px}.style-detail-modal .modal-foot>.actions{margin-left:auto}.style-detail-modal .modal-foot .btn{font-size:10px;padding:7px 9px}.page-genre-name{font-size:9px}.multi-style-control .page-style-name{max-width:105px}}

/* Manual genre creation uses the same focused editor as existing style rules. */
.style-catalog-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}
.style-create-source{display:flex;align-items:flex-start;gap:10px;padding:14px 15px;margin-bottom:22px;border:1px solid #e6def7;background:#f8f5ff;border-radius:10px;color:#6a5590}
.style-create-source>.icon{margin-top:2px}
.style-create-source>div{min-width:0;flex:1}
.style-create-source strong{display:block;font-size:12px;font-weight:600}
.style-create-source div>span{display:block;margin-top:4px;color:#8b799e;font-size:11px;line-height:1.7}
.style-create-source>.chip{flex-shrink:0}
.style-create-modal .form-help{font-size:10px;line-height:1.7;color:#998ba8;margin-top:6px}
.manual-style-source{background:#faf8ff;border-color:#e9e2f6}
.manual-style-source strong{color:#716084}
@media(max-width:900px){.style-catalog .view-header{flex-wrap:wrap;gap:16px}.style-catalog-actions{justify-content:flex-start}}
@media(max-width:600px){.style-create-source{padding:12px}.style-create-source>.chip{display:none}.style-catalog-actions .btn{font-size:11px}.style-create-modal .modal-foot>p{max-width:115px}.style-create-modal .modal-foot .actions{gap:6px}.style-create-modal .modal-foot .btn{padding:7px 9px}}

/* Account entry and settings use the workspace's existing purple/white palette. */
.workspace-nav .profile.account-profile-button{display:flex;align-items:center;gap:9px;width:100%;padding:9px 7px;border:1px solid transparent;border-radius:9px;background:transparent;text-align:left;transition:background .15s,border-color .15s;color:#64586e}
.workspace-nav .profile.account-profile-button:hover{background:#f0ecfa;border-color:#e5ddf4}
.workspace-nav .account-profile-button .avatar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;background:#eae5f5;color:#827099;border-radius:50%;font-size:10px;font-weight:600}
.workspace-nav .account-profile-button .profile-copy{flex:1;min-width:0}
.workspace-nav .account-profile-button .profile-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#61556e;line-height:1.7}
.workspace-nav .account-profile-button .profile-copy small{display:block;color:#a297af;line-height:1.7}
.account-settings-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:25px;height:26px;margin-left:auto;color:#9b8aae}
.account-settings-icon>.icon{width:16px;height:16px}
.account-settings-modal{width:min(650px,calc(100vw - 32px))}
.account-settings-modal .modal-head{padding-bottom:19px}
.account-settings-modal .modal-head h2{font-size:18px}
.account-settings-modal .modal-head p{color:#9b8daa;font-size:11px}
.account-settings-tabs{display:flex;gap:25px;padding:0 27px;border-bottom:1px solid #e9e4ef;flex-shrink:0;background:#fff}
.account-settings-tabs>button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:0 2px;border-bottom:2px solid transparent;color:#a292af;font-size:12px;white-space:nowrap}
.account-settings-tabs>button>.icon{width:15px;height:15px}
.account-settings-tabs>button:hover{color:#76618e}
.account-settings-tabs>button.active{border-bottom-color:var(--brand);color:var(--brand);font-weight:600}
.account-settings-modal .modal-body{padding:25px 27px 27px;min-height:350px}
.account-settings-modal .modal-foot{gap:16px;padding:16px 27px}
.account-settings-modal .modal-foot>.actions{display:flex;align-items:center;gap:10px}
.account-settings-modal .modal-foot>p{font-size:10px;color:#a497b0;line-height:1.7}
.account-profile-heading{display:flex;align-items:center;gap:13px;margin-bottom:26px;padding-bottom:23px;border-bottom:1px solid #eee9f3}
.account-large-avatar{display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex-shrink:0;background:#eee8fa;border:1px solid #e6dcf7;border-radius:15px;color:#836ca1;font-size:16px;font-weight:600}
.account-profile-heading>div{min-width:0;flex:1}
.account-profile-heading h3{font-size:15px;color:#61506e;font-weight:600;overflow-wrap:anywhere;line-height:1.7}
.account-profile-heading p{font-size:11px;color:#a190b0;margin-top:3px;overflow-wrap:anywhere}
.account-profile-heading>.chip{margin-left:auto;flex-shrink:0}
.account-profile-fields .form-field{margin-bottom:20px}
.account-settings-modal .form-field>label{font-size:12px;color:#756381}
.account-settings-modal .form-field>label>span{font-size:10px;color:#b0a3bc;font-weight:400;margin-left:5px}
.account-settings-modal .input{font-size:12px;color:#65536f;background:#fff;min-height:40px}
.account-settings-modal .input::placeholder{color:#b9afc4}
.account-settings-modal .input[aria-invalid=true]{border-color:#c38d98;background:#fffafa}
.account-settings-modal .form-help{font-size:10px;line-height:1.7;margin-top:6px;color:#aa9bb6}
.account-settings-modal .account-field-error{margin-top:6px;font-size:11px}
.account-settings-note{display:flex;align-items:flex-start;gap:7px;font-size:10px;line-height:1.9;color:#a190af;margin-top:6px}
.account-settings-note>.icon{width:14px;height:14px;margin-top:3px}
.account-section-heading{display:flex;gap:11px;align-items:center;margin-bottom:22px}
.account-section-icon{display:flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:10px;background:#f2edf9;color:#9c83ba}
.account-section-heading h3{font-size:14px;font-weight:600;color:#6b577b}
.account-section-heading p{font-size:11px;line-height:1.8;margin-top:4px;color:#a493b1}
.account-service-state{display:flex;align-items:flex-start;gap:9px;padding:13px 15px;margin:0 0 22px;border:1px solid #e8e1f1;background:#faf8fd;border-radius:9px;color:#9783a8}
.account-service-state>.icon{width:15px;height:15px;margin-top:2px}
.account-service-state strong{font-size:11px;line-height:1.8;font-weight:550;color:#89719b}
.account-service-state p{font-size:10px;line-height:1.8;margin-top:4px;color:#a795b6}
.account-password-fields{border:0;padding:0;margin:0;min-width:0}
.account-password-fields .form-field{margin-bottom:17px}
.account-password-fields .form-field:last-child{margin-bottom:0}
.account-password-fields .input:disabled{background:#f8f6fb;border-color:#ece7f1;color:#ad9dbc;cursor:not-allowed;opacity:1}
.account-password-fields .input:disabled::placeholder{color:#b7a9c2}
.account-preference-list{border:1px solid #ece6f2;border-radius:10px;overflow:hidden}
.account-preference-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 16px;background:#fff}
.account-preference-row+.account-preference-row{border-top:1px solid #eee8f4}
.account-preference-row>div{min-width:0}
.account-preference-row strong{font-size:12px;font-weight:550;color:#735c84}
.account-preference-row p{font-size:10px;line-height:1.9;margin-top:4px;color:#a998b5}
.account-preference-row>.switch{flex-shrink:0}
.account-data-settings{display:flex;align-items:center;gap:20px;margin-top:25px;padding-top:21px;border-top:1px solid #eee8f4}
.account-data-settings>div{flex:1;min-width:0}
.account-data-settings strong{font-size:11px;font-weight:550;color:#9985a8}
.account-data-settings p{font-size:10px;line-height:1.85;color:#b1a0bc;margin-top:4px}
.account-data-settings>.btn{color:#9a8ca7;flex-shrink:0}
@media(min-width:761px){.app.sidebar-collapsed .workspace-nav .account-profile-button{width:44px;height:44px;margin:0 auto;padding:0;justify-content:center;gap:0}.app.sidebar-collapsed .workspace-nav .account-profile-button .profile-copy,.app.sidebar-collapsed .workspace-nav .account-profile-button .account-settings-icon{display:none}.app.sidebar-collapsed .workspace-nav .account-profile-button .avatar{width:30px;height:30px}}
@media(max-width:600px){.account-settings-modal{width:calc(100vw - 24px)}.account-settings-modal .modal-head{padding:19px 19px 16px}.account-settings-modal .modal-head h2{font-size:17px}.account-settings-modal .modal-head p{max-width:235px;font-size:10px;line-height:1.8}.account-settings-tabs{padding:0 19px;gap:20px}.account-settings-tabs>button{font-size:11px;gap:5px;min-height:44px}.account-settings-tabs>button>.icon{width:14px;height:14px}.account-settings-modal .modal-body{padding:22px 19px;min-height:325px}.account-settings-modal .modal-foot{padding:14px 19px;gap:10px}.account-settings-modal .modal-foot>.actions{gap:8px}.account-settings-modal .modal-foot>.actions>.btn{padding:7px 10px;font-size:11px}.account-profile-heading{gap:11px}.account-profile-heading>.chip{display:none}.account-data-settings{gap:12px;align-items:flex-start}.account-data-settings>.btn{margin-top:3px}.account-preference-row{padding:15px 13px;gap:13px}}


/* Product workspace states */
.storage-error-banner{position:fixed;z-index:95;left:18px;right:18px;bottom:18px;display:flex;align-items:center;gap:12px;padding:14px 18px;background:#fff4df;border:1px solid #d8b56e;border-radius:10px;color:#75521c;box-shadow:0 8px 32px #60491922;font-size:12px}.storage-error-banner>span{flex:1}.storage-error-banner>.btn{flex-shrink:0}
.workspace-nav .connection-label{display:flex;align-items:center;gap:9px;width:100%;min-height:40px;margin-top:4px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:11px;text-align:left;background:#fff}
.workspace-nav .connection-label:hover{color:var(--brand);border-color:#d9d2f2;background:#faf9ff}
.workspace-nav .connection-label .icon{flex-shrink:0;width:16px;height:16px}
@media(min-width:761px){
 .app.sidebar-collapsed .workspace-nav .connection-label{justify-content:center;width:44px;height:44px;margin:4px auto 0;padding:0}
 .app.sidebar-collapsed .workspace-nav .connection-label>span{display:none}
}
@media(max-width:760px){
 .app .workspace-nav.mobile-open .sidebar-main-nav{min-height:0;flex-shrink:1;overflow-y:auto}
 .workspace-nav .connection-label{min-height:44px}
 .workspace-nav.mobile-open .connection-label::after{display:none}
}
.project-empty{grid-column:1/-1;min-height:350px;border:1px dashed #ddd9ea;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:44px 28px;background:linear-gradient(140deg,#fff,#fbfaff)}
.project-empty .empty-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:var(--brand-soft);color:var(--brand);margin-bottom:20px}.project-empty .empty-icon .icon{width:27px;height:27px}.project-empty h2{font-size:20px;letter-spacing:.2px;font-weight:600}.project-empty p{max-width:400px;color:var(--muted);margin:13px 0 25px;line-height:1.9}
.context-empty{padding:25px 18px;border-bottom:1px solid var(--line);margin-bottom:8px}.context-empty strong{font-size:12px}.context-empty p{font-size:11px;color:var(--muted);line-height:1.8;margin:9px 0 14px}
.service-overview{padding:18px;border:1px solid #e8e4f0;border-radius:10px;background:#fbfaff}.service-status{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--muted)}.service-status.online{color:var(--green)}.service-overview dl{display:grid;grid-template-columns:74px 1fr;gap:12px;font-size:12px;margin:20px 0 0}.service-overview dt{color:var(--muted)}.service-overview dd{margin:0;line-height:1.9;overflow-wrap:anywhere}.service-capabilities{margin-top:22px}.service-capabilities>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.service-capabilities strong{font-weight:500;color:var(--muted)}.raw-full-text{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/2 'Songti SC','SimSun',serif;max-height:52vh;overflow:auto;padding:14px 0;color:var(--ink);margin:0}.learning-record-list{display:grid;gap:16px}.learning-record-list .detail-item{border:1px solid var(--line);border-radius:9px;padding:17px}.learning-evidence{margin-top:12px;padding:10px 12px;background:#f8f7fc;border-radius:7px}.learning-evidence blockquote{margin:6px 0 0;line-height:1.85;font-size:12px;color:#726783}.learning-evidence small{color:var(--muted)}.material-reader .modal-foot .actions{flex-wrap:wrap;gap:8px}.run-step.failed .step-indicator{color:var(--red);background:var(--red-bg)}
@media(max-width:760px){.project-empty{min-height:330px;padding:30px 20px}.project-empty h2{font-size:18px}.project-empty p{font-size:12px}.service-overview dl{grid-template-columns:64px 1fr}.material-reader .modal-foot{align-items:flex-start;flex-direction:column}}


/* Upload results keep paths and controls visible in the same row. */
.workspace-upload-results{list-style:none;margin:12px 0 0;padding:0}
.workspace-upload-results>li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:10px 0}
.workspace-upload-results .upload-file-info{flex:1;min-width:0}
.workspace-upload-results .upload-file-info strong,.workspace-upload-results .upload-file-info p{overflow-wrap:anywhere}
.workspace-upload-results .status-pill{margin-left:8px}
.workspace-upload-results .actions{display:flex;flex-wrap:wrap;flex-shrink:0;gap:12px}
@media(max-width:600px){.workspace-upload-results>li{flex-direction:column;gap:6px}}
.workspace-sync-notice{padding:9px 20px;background:#fff8e9;color:#755f2d;font-size:12px;border-bottom:1px solid #eadcb9}.workspace-service-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.workspace-json-editor{width:100%;min-height:250px;font-family:ui-monospace,monospace;font-size:12px}.workspace-review-row{display:block;padding:10px 0;border-bottom:1px solid #e8e5ef}.workspace-review-row input{margin-right:8px}

/* Status shown while the hosted entry checks the account session. */
#workspace-entry{max-width:420px;margin:clamp(24px,12vh,110px) auto;padding:24px;text-align:center;color:#575369}
#workspace-entry[hidden],#workspace-entry-retry[hidden],#app[hidden]{display:none!important}

.workspace-learning-card{margin:0 0 18px;padding:14px 17px;background:#fff;border:1px solid var(--line);border-radius:12px}
.workspace-learning-head,.learning-summary-progress{display:flex;justify-content:space-between;align-items:center;gap:12px}
.workspace-learning-head h2{margin:0;font-size:15px}
.workspace-learning-head p,.workspace-learning-card p{margin:4px 0;color:var(--muted);font-size:12px}
.workspace-learning-card progress,#workspace-learning-modal-summary progress{width:100%;height:9px;margin:7px 0 2px;accent-color:var(--brand)}
.learning-summary-progress{margin-top:10px;font-size:13px}
.workspace-learning-filters{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.workspace-learning-results{list-style:none;padding:0;margin:0}
.workspace-learning-results>li{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.workspace-learning-results>li>div{min-width:0;overflow-wrap:anywhere}
.workspace-learning-results small{display:block;color:var(--muted)}
.workspace-learning-results li p{margin:4px 0 0;font-size:12px;color:var(--muted)}
.workspace-learning-results .status-pill{flex-shrink:0}

.workspace-learning-results .learning-failure-reason{margin:7px 0 0;color:#7e4040;line-height:1.65}
.workspace-learning-results .learning-failure-reason strong{font-size:12px}
