@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600&display=swap');
:root{--paper:#f8f7f3;--surface:#fffefa;--ink:#262b28;--muted:#7a7e75;--line:#e6e6de;--accent:#b84f32;--accent-soft:#f7e9df;--green:#4d6856;--green-soft:#edf1e9;--serif:'Noto Serif SC','Songti SC',serif;--sans:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:var(--sans);font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button{color:inherit}a{color:inherit}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{border:0}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.brand{display:flex;align-items:center;gap:12px}.brand-mark{height:34px;width:34px;background:var(--ink);color:var(--paper);display:grid;place-items:center;border-radius:10px}.brand-mark svg{width:23px;height:23px}.brand-name{font-family:var(--serif);font-size:24px;letter-spacing:3px;font-weight:600}.brand-sub{font-size:10px;color:var(--muted);letter-spacing:2px;margin-top:4px}.eyebrow{font-size:11px;font-weight:600;letter-spacing:2px;color:var(--muted);text-transform:uppercase}.serif{font-family:var(--serif)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 19px;border-radius:8px;background:var(--surface);border:1px solid var(--line);font-weight:500;transition:background .18s,transform .18s}.btn:hover{background:#efefe7;transform:translateY(-1px)}.btn.primary{background:var(--accent);border-color:var(--accent);color:white}.btn.primary:hover{background:#a5442a}.btn.dark{background:var(--ink);color:white;border-color:var(--ink)}.btn.text{border:0;background:transparent;padding:0;min-height:30px;color:var(--muted)}.btn.small{min-height:34px;padding:0 12px;font-size:12px}.tag{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:5px;padding:5px 8px;font-size:11px;color:var(--muted);font-weight:400}.tag.green{color:var(--green);background:var(--green-soft);border-color:transparent}.tag.orange{color:var(--accent);background:var(--accent-soft);border-color:transparent}.dot{display:inline-block;height:6px;width:6px;border-radius:50%;background:currentColor}.muted{color:var(--muted)}h1,h2,h3,p{margin:0}p{line-height:1.8}h1{font-family:var(--serif);font-size:36px;font-weight:500;line-height:1.6}h2{font-size:19px;font-weight:500}h3{font-size:15px;font-weight:500}.label{display:block;font-size:12px;color:var(--muted);margin-bottom:9px}input,textarea,select{width:100%;border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:12px 14px;color:var(--ink);outline:none}input:focus,textarea:focus,select:focus{border-color:var(--accent)}textarea{resize:vertical;line-height:1.8}input::placeholder,textarea::placeholder{color:#a2a49c}.field{margin-bottom:22px}.divider{height:1px;background:var(--line)}
.landing{min-height:100vh;padding:36px 54px;display:flex;flex-direction:column}.landing-head{display:flex;justify-content:space-between;align-items:center}.landing-main{display:grid;grid-template-columns:1.15fr 1fr;gap:100px;max-width:1120px;width:100%;margin:auto;align-items:center;padding:65px 0}.landing h1{font-size:52px;line-height:1.65;letter-spacing:2px;margin:20px 0}.landing h1 em{font-style:normal;color:var(--accent)}.landing-copy>p{color:var(--muted);font-size:15px;max-width:440px}.landing-form{margin-top:34px;max-width:350px}.landing-form .btn{width:100%;margin-top:12px}.landing-foot{display:flex;justify-content:space-between;gap:20px;font-size:12px;color:var(--muted);padding-top:24px;border-top:1px solid var(--line)}.preview{position:relative;padding:40px 30px 36px;background:#eceee5;border-radius:16px}.preview-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:38px}.preview-label span{font-size:11px;color:var(--green);letter-spacing:2px}.bubble{padding:18px 20px;background:var(--surface);border-radius:12px;box-shadow:0 5px 15px #25332705;font-size:14px;line-height:1.9;margin-bottom:18px}.bubble.user{background:#dbe3d2;margin-left:42px}.mini-divider{height:1px;background:#d4dacb;margin:30px 0 22px}.preview-notes{display:flex;gap:28px;color:var(--green);font-size:11px}.preview-notes span{display:flex;gap:7px;align-items:center}.preview-notes svg{width:15px;height:15px}.preview-caption{text-align:center;color:var(--muted);font-size:11px;margin-top:18px}
.shell{display:grid;grid-template-columns:236px 1fr;min-height:100vh}.sidebar{padding:32px 20px 22px;border-right:1px solid var(--line);display:flex;flex-direction:column;position:fixed;width:236px;height:100vh;background:#f2f2ec;z-index:10}.sidebar .brand{padding:0 12px}.sidebar .brand-name{font-size:23px}.sidebar .brand-sub{font-size:9px}.nav-caption{font-size:10px;color:#989d90;letter-spacing:2px;padding:0 16px;margin-top:54px;margin-bottom:14px}.nav-item{display:flex;width:100%;align-items:center;gap:13px;padding:13px 16px;border-radius:8px;background:transparent;text-align:left;color:#737a6d;margin-bottom:6px}.nav-item.active{color:var(--ink);background:#e5e9df;font-weight:600}.nav-item:hover{background:#e9ece3}.nav-item .count{margin-left:auto;font-size:10px;border:1px solid #cbd2c3;padding:1px 5px;border-radius:4px}.side-note{padding:18px 16px;margin-top:auto;border:1px solid #dee3d5;border-radius:9px}.side-note p{font-size:11px;color:#8b9283;line-height:1.9;margin-top:8px}.side-note .title{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--green)}.side-note svg{width:16px;height:16px}.side-user{display:flex;align-items:center;gap:10px;padding:22px 12px 0}.avatar{height:32px;width:32px;display:grid;place-items:center;background:#e8dfd0;border:1px solid #ded4c1;border-radius:50%;font-size:12px;color:#786a52}.side-user small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.side-user .icon-btn{margin-left:auto}.icon-btn{width:32px;height:32px;display:inline-grid;place-items:center;background:transparent;border-radius:6px;color:var(--muted)}.icon-btn:hover{background:#e8e8df}.icon-btn svg{width:17px;height:17px}.workspace{grid-column:2;min-width:0}.topbar{height:77px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);background:var(--paper)}.breadcrumb{font-size:12px;color:var(--muted);display:flex;gap:14px;align-items:center}.breadcrumb span:last-child{color:var(--ink)}.top-actions{display:flex;align-items:center;gap:15px}.mode-control{display:flex;background:#eeeee8;border-radius:7px;padding:3px}.mode-control button{font-size:11px;padding:7px 10px;background:transparent;border-radius:5px;color:var(--muted)}.mode-control button.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px #20202008}.content{padding:42px;max-width:1410px;margin:0 auto}.page-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:32px}.page-intro .eyebrow{margin-bottom:8px}.page-intro p{color:var(--muted);font-size:13px;margin-top:8px}.home-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:26px}.start-card{padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:12px;position:relative;overflow:hidden;min-height:300px}.start-card .step-label{color:var(--accent);font-size:11px;letter-spacing:1px;display:flex;align-items:center;gap:10px;margin-bottom:23px}.start-card .step-label:before{content:'';width:25px;height:1px;background:var(--accent)}.start-card h2{font-family:var(--serif);font-size:27px;line-height:1.6;font-weight:500}.start-card p{max-width:430px;font-size:13px;color:var(--muted);margin:14px 0 26px}.orbit{position:absolute;right:-35px;top:45px;width:160px;height:160px;border:1px solid #eee6dc;border-radius:50%;pointer-events:none}.orbit:after{content:'';position:absolute;inset:22px;border:1px solid #eee6dc;border-radius:50%}.orbit:before{content:'';width:10px;height:10px;position:absolute;top:22px;left:20px;border-radius:50%;background:var(--accent-soft);border:1px solid #d9a58c}.side-panel{padding:26px;border:1px solid var(--line);border-radius:12px;background:#f0f2e9}.side-panel .eyebrow{color:var(--green);margin-bottom:23px}.journey{list-style:none;padding:0;margin:0}.journey li{display:flex;align-items:flex-start;gap:12px;margin-bottom:24px}.journey li:last-child{margin-bottom:0}.step-circle{height:23px;width:23px;flex-shrink:0;border:1px solid #d3d9c9;border-radius:50%;font-size:10px;display:grid;place-items:center;color:#909a83}.journey li.now .step-circle{background:var(--green);border-color:var(--green);color:white}.journey strong{font-size:12px;font-weight:500}.journey p{font-size:11px;color:#8a927e;margin-top:4px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:30px 0 16px}.section-heading h2{font-size:15px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.quick-card{padding:24px;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:10px;transition:transform .2s,border-color .2s;position:relative;min-height:151px}.quick-card:hover{transform:translateY(-3px);border-color:#c5c8b9}.quick-card>.icon-box{color:var(--green);margin-bottom:15px}.quick-card strong{font-size:14px;font-weight:500}.quick-card p{font-size:12px;color:var(--muted);margin-top:7px;max-width:270px}.quick-card .arrow{position:absolute;right:22px;top:26px;color:#a9af9e}.quiet-footer{font-size:11px;color:#95998e;margin-top:28px;display:flex;gap:7px;align-items:center}.quiet-footer svg{width:13px;height:13px}.empty-state{text-align:center;padding:66px 24px;border:1px dashed #d9ddd0;border-radius:10px;background:#f5f6f0}.empty-state svg{height:31px;width:31px;color:#9ba58d;margin-bottom:18px}.empty-state h3{font-family:var(--serif);font-size:20px}.empty-state p{font-size:12px;color:var(--muted);margin:12px auto 23px;max-width:340px}.recent-strip{display:flex;align-items:center;gap:18px;padding:21px 24px;background:var(--surface);border:1px solid var(--line);border-radius:9px}.recent-strip .icon-box{color:var(--accent)}.recent-strip p{font-size:11px;color:var(--muted);margin-top:5px}.recent-strip .btn{margin-left:auto}.demo-notice{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}.demo-notice .dot{color:#b38757}
.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;height:calc(100vh - 77px)}.chat-column{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-head{padding:25px 34px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.chat-head h2{font-size:15px}.chat-head p{font-size:11px;color:var(--muted);margin-top:5px}.messages{flex:1;overflow:auto;padding:30px 34px;scroll-behavior:smooth}.message{display:flex;gap:12px;margin-bottom:26px;max-width:790px}.message .assistant-avatar{height:29px;width:29px;display:grid;place-items:center;background:#e8eddf;color:var(--green);border-radius:9px;flex-shrink:0}.assistant-avatar svg{width:17px;height:17px}.msg-body{max-width:100%;min-width:0}.msg-label{font-size:10px;color:var(--muted);margin-bottom:9px;display:flex;gap:8px;align-items:center}.msg-text{font-size:14px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{margin-left:auto;flex-direction:row-reverse;max-width:85%}.message.user .msg-text{background:#e9ede2;border-radius:10px;padding:13px 18px}.message.user .msg-label{text-align:right;display:block}.sample-stamp{font-size:10px;color:var(--accent);padding:1px 6px;border-radius:3px;background:var(--accent-soft)}.topic-option{display:block;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);padding:16px 18px;margin:10px 0;border-radius:8px}.topic-option:hover{border-color:var(--green)}.topic-option span{font-size:11px;color:var(--muted);display:block;margin-top:7px;line-height:1.7}.topic-option strong{font-size:13px;font-weight:500}.draft-inline{background:var(--surface);padding:22px;border:1px solid var(--line);border-radius:10px;margin-top:12px;max-width:640px}.draft-inline h3{font-family:var(--serif);font-size:21px;margin:12px 0}.draft-inline p{font-size:12px;color:var(--muted);margin-bottom:18px}.draft-inline .actions{display:flex;gap:10px;flex-wrap:wrap}.composer-wrap{padding:12px 30px 20px}.suggestion-row{display:flex;gap:9px;margin-bottom:10px;flex-wrap:wrap}.suggestion-row button{font-size:11px;background:transparent;padding:6px 9px;border:1px solid var(--line);border-radius:5px;color:var(--muted)}.suggestion-row button:hover{background:#eeeee6}.composer{background:var(--surface);border:1px solid #d9ddd2;border-radius:11px;padding:15px 14px 10px;box-shadow:0 3px 15px #25332703}.composer textarea{padding:0;border:0;resize:none;min-height:53px;max-height:145px;font-size:13px;background:transparent;display:block}.composer-bottom{display:flex;justify-content:space-between;align-items:center}.composer-bottom span{font-size:10px;color:#a1a696}.send{height:33px;width:33px;border-radius:7px;background:var(--green);color:white;display:grid;place-items:center}.send svg{width:17px;height:17px}.composer-caption{text-align:center;font-size:10px;color:#959b8d;margin-top:9px}.chat-aside{padding:28px 23px;background:#f2f3ed;border-left:1px solid var(--line);overflow:auto}.chat-aside h3{font-size:12px;margin-bottom:24px;display:flex;align-items:center;gap:9px}.chat-aside h3 svg{width:16px;height:16px;color:var(--green)}.profile-item{margin-bottom:23px}.profile-item dt{font-size:10px;letter-spacing:1px;color:#929a86;margin-bottom:8px}.profile-item dd{font-size:12px;margin:0;line-height:1.8;overflow-wrap:anywhere}.profile-item dd.unknown{color:#a4aa9b}.aside-explainer{font-size:11px;line-height:1.9;color:#8a9380;border-top:1px solid #dfe4d6;padding-top:20px;margin-top:26px}.aside-link{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--green);margin-top:23px;background:transparent;width:100%;padding:0}.aside-link svg{width:14px;height:14px}
.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px;gap:15px}.filters{display:flex;gap:20px}.filter{background:transparent;font-size:12px;color:var(--muted);padding:10px 0;border-bottom:2px solid transparent}.filter.on{color:var(--ink);border-color:var(--accent)}.content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.document-card{background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:25px;display:flex;flex-direction:column;min-height:240px}.document-card .meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:26px}.document-card h3{font-family:var(--serif);font-size:22px;line-height:1.6;margin-bottom:12px}.document-card p{font-size:12px;color:var(--muted);line-height:1.9}.document-card .bottom{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:25px}.document-card .bottom>span{font-size:10px;color:var(--muted)}.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:26px}.form-panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:30px}.form-panel h2{font-family:var(--serif);font-size:22px;margin-bottom:26px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.form-panel .full{grid-column:1/-1}.form-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:23px;margin-top:2px}.form-foot span{font-size:11px;color:var(--muted)}.insight-panel h3{font-family:var(--serif);font-size:20px;margin-bottom:15px}.insight-panel p{color:var(--muted);font-size:12px;margin-bottom:24px}.insight-panel .mini-section{padding:20px 0;border-top:1px solid var(--line)}.insight-panel strong{font-weight:500;font-size:12px}.insight-panel small{display:block;color:var(--muted);font-size:11px;line-height:1.9;margin-top:8px}.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:27px}.stat{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.stat p{font-size:11px;color:var(--muted)}.stat strong{display:block;font-size:30px;font-family:var(--serif);font-weight:500;margin:12px 0}.stat small{font-size:10px;color:var(--muted)}table{width:100%;border-collapse:collapse}th{font-size:11px;font-weight:400;color:var(--muted);text-align:left;background:#f1f3ec}td,th{padding:17px 22px;border-bottom:1px solid var(--line)}td{font-size:12px}tr:last-child td{border-bottom:0}.table-wrap{border:1px solid var(--line);border-radius:10px;overflow:auto;background:var(--surface)}.table-user{display:flex;align-items:center;gap:11px}.table-user small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.admin-bottom{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:25px}.admin-panel{padding:25px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.admin-panel h3{margin-bottom:16px}.admin-panel p{font-size:12px;color:var(--muted);margin-bottom:19px}.metric-line{display:flex;justify-content:space-between;font-size:12px;padding:12px 0;border-bottom:1px solid var(--line)}.metric-line:last-child{border-bottom:0}.modal-backdrop{position:fixed;inset:0;background:#1d27235e;z-index:100;display:grid;place-items:center;padding:30px;backdrop-filter:blur(3px)}.modal{background:var(--paper);border-radius:14px;width:700px;max-width:100%;max-height:90vh;overflow:auto;box-shadow:0 25px 100px #16251a33}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:25px 30px;border-bottom:1px solid var(--line)}.modal-header h2{font-family:var(--serif);font-size:22px}.modal-body{padding:30px}.modal-body>p{font-size:13px;color:var(--muted);margin-bottom:23px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.reader{font-size:14px;line-height:2.15;white-space:pre-wrap}.reader-title{font-family:var(--serif);font-size:26px;line-height:1.7;margin:18px 0 26px}.notice{padding:13px 16px;background:var(--accent-soft);font-size:11px;color:#95654c;border-radius:7px;line-height:1.8;margin-bottom:22px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);z-index:200;background:var(--ink);color:var(--paper);padding:12px 22px;border-radius:8px;font-size:12px;opacity:0;pointer-events:none;transition:all .2s}#toast.show{opacity:1;transform:translate(-50%,0)}.inline-error{color:#b64f35;font-size:12px;margin-top:8px}.session-saved{color:var(--green);font-size:11px}.example-chip{color:var(--muted);font-size:10px;display:flex;gap:7px;align-items:center}.example-chip svg{width:13px;height:13px}
@media(min-width:1500px){.content{padding-top:55px}.start-card{min-height:330px}.home-grid{grid-template-columns:minmax(0,1fr) 310px}}@media(max-width:1100px){.content{padding:30px}.topbar{padding:0 30px}.home-grid{grid-template-columns:1fr}.side-panel{display:none}.chat-layout{grid-template-columns:1fr 230px}.chat-aside{padding:24px 18px}.landing-main{gap:40px}.profile-layout{grid-template-columns:1fr}.insight-panel{display:none}}@media(max-width:800px){.shell{grid-template-columns:180px 1fr}.sidebar{width:180px;padding:25px 12px}.sidebar .brand{gap:7px;padding:0 7px}.sidebar .brand-name{font-size:20px}.brand-sub{display:none}.content{padding:24px}.topbar{padding:0 20px}.top-actions .demo-notice{display:none}.nav-item{padding:12px}.chat-layout{grid-template-columns:1fr}.chat-aside{display:none}.quick-grid,.content-grid,.form-grid,.admin-bottom{grid-template-columns:1fr}.admin-stats{grid-template-columns:1fr}.page-intro{align-items:flex-start;flex-direction:column}.landing{padding:25px}.landing-main{grid-template-columns:1fr;padding:50px 0}.landing h1{font-size:38px}.preview{display:none}.landing-form{max-width:none}.landing-foot{font-size:10px;flex-wrap:wrap}h1{font-size:29px}.chat-head,.messages{padding-left:22px;padding-right:22px}.composer-wrap{padding-left:20px;padding-right:20px}.side-note{display:none}}

.tag{white-space:nowrap;flex-shrink:0}.chat-head .btn{flex-shrink:0}.page-intro>div{min-width:0}
.feature-line{display:flex;gap:18px;padding:22px 0;border-top:1px solid #d4dacb}.feature-line>svg{color:var(--green);margin-top:3px}.feature-line strong{font-family:var(--serif);font-size:19px;font-weight:500}.feature-line p{font-size:12px;color:var(--muted);margin-top:10px}.landing .notice{margin:28px 0;max-width:440px}.auth-tabs{margin-bottom:26px}.auth-hint{font-size:11px;margin-top:18px}.auth-tabs button{margin:0!important;width:auto!important}.landing-form .field{margin-bottom:18px}.landing-form .modal-actions{margin-top:10px}.loading-view{min-height:100vh;display:grid;place-content:center;gap:28px;text-align:center}.account-state{max-width:800px;margin:70px auto;padding:25px}.account-state .form-panel{margin-top:36px}.account-state h1{font-size:27px;margin-bottom:18px}.account-state p{margin:15px 0;color:var(--muted)}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.user-name{min-width:0;overflow-wrap:anywhere;font-size:12px}.sync-status{font-size:11px;color:var(--green);display:flex;align-items:center;gap:8px}.sync-status.offline{color:var(--accent)}.workspace-picker{padding:16px 42px;display:flex;align-items:center;gap:18px;background:var(--surface);border-bottom:1px solid var(--line)}.workspace-picker label{font-size:12px;color:var(--muted);flex-shrink:0}.workspace-picker select{max-width:380px;padding:9px 12px}.error-banner{padding:16px 42px;background:var(--accent-soft);color:var(--accent);font-size:12px}.list-limit{text-align:center;color:var(--muted);font-size:11px;margin-top:24px}.chat-layout{height:calc(100dvh - 146px);min-height:460px}.workspace:not(:has(.workspace-picker)) .chat-layout{height:calc(100dvh - 77px)}.quick-card>svg{display:block;color:var(--green);margin-bottom:16px}.quick-card strong{display:block}.metric-basis{margin-top:18px}.member-email{display:block;font-size:11px;margin-top:8px;color:var(--muted)}.doc-info{display:flex;gap:15px;align-items:center;margin-bottom:22px;font-size:12px}.revision{border-bottom:1px solid var(--line);padding:18px 0}.revision summary{cursor:pointer;line-height:1.8}.revision .reader{padding:22px 0}.preview-banner{padding:10px 20px;background:#f7e9df;text-align:center;color:#985336;font-size:12px;position:relative;z-index:20}.preview-banner+.shell .sidebar{height:calc(100dvh - 37px)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.wrap{flex-wrap:wrap}
@media(max-width:800px){.workspace-picker{padding:14px 24px;flex-wrap:wrap;gap:10px}.workspace-picker select{flex:1;min-width:150px}.error-banner{padding:16px 24px}.sync-status{font-size:10px}.landing .preview{display:block}.landing-main{gap:30px}.content .form-panel{padding:20px}}
@media(max-width:600px){.shell{display:block}.sidebar{position:static;width:100%;height:auto!important;padding:18px 16px 8px;display:flex;flex-direction:row;flex-wrap:wrap;gap:4px;border-right:0;border-bottom:1px solid var(--line)}.sidebar>.brand{width:100%;padding:0 0 12px}.sidebar .brand-sub{display:block}.sidebar .nav-caption,.sidebar .side-note{display:none}.sidebar .nav-item{width:auto;margin:0;font-size:11px;padding:9px 8px;gap:5px}.sidebar .nav-item svg{width:15px;height:15px}.sidebar .side-user{padding:10px 0 0;width:100%;border-top:1px solid var(--line);margin-top:8px}.sidebar .side-user .avatar{width:25px;height:25px}.sidebar .side-user small{display:inline;margin-left:10px}.workspace{display:block}.topbar{height:56px;padding:0 18px;gap:12px}.breadcrumb{font-size:11px;gap:7px}.sync-status{max-width:150px;text-align:right}.content{padding:24px 18px}.workspace-picker{padding:12px 18px}.workspace-picker label{display:none}.chat-layout,.workspace:not(:has(.workspace-picker)) .chat-layout{height:70dvh;min-height:500px}.page-intro{gap:16px}.admin-stats{gap:10px}.stat{padding:18px}.stat strong{font-size:26px}.modal-backdrop{padding:10px}.modal-header,.modal-body{padding:20px}.modal-header h2{font-size:20px}.modal-actions{flex-wrap:wrap}.landing{padding:24px 20px}.landing h1{font-size:34px}.landing-head{gap:14px}.landing-head .tag{font-size:10px}.landing .preview{padding:26px 22px}.account-state{margin:25px auto;padding:18px}.account-state .form-panel{padding:22px}.member-email{overflow-wrap:anywhere}.form-foot{gap:15px;flex-wrap:wrap}}

.history-search{display:flex;gap:12px;margin:0 0 22px}.history-search input{flex:1}.archive-reader{white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--serif);font-size:17px;line-height:2;padding:24px 0}.client-view-banner{background:#e9ede2;padding:12px 28px;color:var(--green);display:flex;gap:15px;align-items:center;justify-content:space-between;font-size:12px}.document-card .bottom small{overflow-wrap:anywhere;min-width:0;font-size:10px}.document-card .bottom{gap:16px}.document-card .bottom button{flex-shrink:0}@media(max-width:650px){.history-search{flex-wrap:wrap}.history-search input{width:100%}}

/* Creation is the default workspace; team messaging is a secondary destination. */
.creation-frame{display:block;width:100%;height:calc(100dvh - 150px);min-height:740px;border:0}.sidebar .side-note{display:none}.sidebar .nav-item[data-nav="chat"]{margin-top:28px;font-size:12px;color:var(--muted)}.sidebar .nav-item[data-nav="ai"]{font-weight:600}.client-view-banner{padding:7px 28px;font-size:11px}.workspace-picker{padding:10px 28px}.workspace-picker .btn{padding:7px 12px;font-size:11px}@media(max-width:600px){.creation-frame{height:900px;min-height:75dvh}.sidebar .nav-item[data-nav="chat"]{margin-top:0}}

.creation-frame{height:calc(100dvh - 80px);min-height:620px}@media(max-width:600px){.creation-frame{height:850px;min-height:75dvh}}

.kb-summary{display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:12px;margin:20px 0}.kb-note{font-size:11px;line-height:1.8;margin-top:25px}.kb-grid{margin-top:24px}.kb-overlay{position:fixed;inset:0;z-index:1000;background:#19251c55;display:flex;align-items:center;justify-content:center;padding:24px}.kb-dialog{background:var(--surface);width:min(800px,100%);max-height:90dvh;overflow:auto;border-radius:16px;padding:28px;box-shadow:0 20px 80px #0003}.kb-dialog-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:20px}.kb-dialog .label{display:block;margin:14px 0}.kb-dialog textarea,.kb-dialog input:not([type=checkbox]),.kb-dialog select{display:block;width:100%;margin-top:8px}.kb-options{display:flex;gap:18px;flex-wrap:wrap;font-size:12px}.kb-options label{display:flex;align-items:center;gap:6px}.kb-options input{width:15px;height:15px}.kb-dialog .muted{font-size:12px;line-height:1.8}.knowledge-page .filters{flex-wrap:wrap}@media(max-width:600px){.kb-overlay{padding:10px}.kb-dialog{padding:20px}.knowledge-page .page-intro h1{font-size:25px}}

.drive-panel{border:1px solid var(--line,#dedfd6);border-radius:16px;padding:20px;margin:22px 0;background:#f0f2eb}.drive-panel p{font-size:14px;line-height:1.7;margin:6px 0}.drive-panel .actions{margin-top:12px}.drive-progress{white-space:pre-wrap;overflow-wrap:anywhere;color:#42664e}.drive-panel a{text-decoration:none}

.creation-frame{height:calc(100dvh - 80px);min-height:430px}@media(max-width:600px){.creation-frame{height:calc(100dvh - 130px);min-height:430px}}

@media(min-width:601px){.shell{grid-template-columns:236px minmax(0,1fr)}.workspace:has(.creation-frame){height:100dvh;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.workspace:has(.creation-frame)>.topbar,.workspace:has(.creation-frame)>.workspace-picker,.workspace:has(.creation-frame)>.client-view-banner{flex-shrink:0}.workspace:has(.creation-frame)>.creation-frame{flex:1;min-height:0;height:auto;min-width:0;width:100%}}
/* v23: conversation navigation first, secondary tools on demand. */
.sidebar{width:248px;padding:22px 16px 16px;gap:8px}.sidebar .brand{margin-bottom:18px}.sidebar .brand-name{font-size:27px}.sidebar .brand-sub{font-size:9px}.sidebar .nav-caption{margin:18px 10px 7px;font-size:12px}.new-chat-button{font-size:16px;min-height:44px}.sidebar .side-user{margin-top:auto}.sidebar .side-note{display:none}#ai-sidebar-history{flex:1;min-height:0;overflow:auto}.sidebar-chat{display:block;width:100%;padding:11px 12px;border:0;border-radius:8px;background:transparent;text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:14px;color:var(--text)}.sidebar-chat:hover{background:var(--green-soft)}.history-empty{padding:8px 12px;color:var(--muted);font-size:12px}.workspace-tools{display:flex;align-items:center;gap:12px}.workspace-menu{position:relative;font-size:14px}.workspace-menu summary{cursor:pointer;padding:8px 10px}.workspace-menu>div{position:absolute;right:0;top:42px;width:220px;max-height:70vh;overflow:auto;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 25px #29322c18;z-index:50}.workspace-menu .nav-item{font-size:14px;min-height:38px}.topbar{min-height:58px;padding:12px 24px}.workspace-picker{padding:8px 24px;font-size:12px}.workspace-picker select{max-width:370px;font-size:14px;min-height:32px}.workspace-picker .btn{font-size:12px;min-height:32px;padding:5px 10px}.client-view-banner{padding:6px 24px;font-size:12px}.client-view-banner .btn{font-size:12px;padding:4px 8px;min-height:28px}@media(max-width:760px){.shell .sidebar{width:150px;min-width:150px;padding:14px 8px}.sidebar .brand-mark{display:none}.sidebar .brand-sub{font-size:7px}.sidebar-chat{font-size:12px;padding:10px 6px}.sidebar .user-name{font-size:11px}.topbar{padding:8px 12px}.breadcrumb{font-size:12px}.workspace-picker{padding:6px 12px;gap:6px;flex-wrap:wrap}.workspace-picker label{display:none}.workspace-picker select{max-width:200px}.workspace-tools{gap:0}.workspace-tools>.btn{display:none}}@media(max-width:480px){.shell .sidebar{width:112px;min-width:112px}.sidebar .brand-name{font-size:23px}.sidebar .nav-item{padding:8px 4px;gap:5px;font-size:13px}.sidebar .side-user .avatar{display:none}.sidebar .brand-sub{display:none}}

/* Preview refinement: rail and sidebar widths share the same grid tracks. */
.shell{--rail-width:56px;--chat-width:236px;display:grid;grid-template-columns:var(--rail-width) var(--chat-width) minmax(0,1fr)}
.utility-rail{position:fixed;inset:0 auto 0 0;width:var(--rail-width);display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 6px;background:#e9ece6;border-right:1px solid var(--line);z-index:40}
.rail-button{position:relative;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:10px;background:transparent;color:#748071;flex-shrink:0}.rail-button svg{width:22px;height:22px}.rail-button:hover,.rail-button.active,.rail-button:focus-visible{background:#dbe2d6;color:var(--green)}
.rail-tooltip{visibility:hidden;opacity:0;position:absolute;left:calc(100% + 9px);top:50%;transform:translateY(-50%);padding:7px 11px;border-radius:8px;white-space:nowrap;background:#26352c;color:white;font-size:13px;font-weight:400;pointer-events:none;box-shadow:0 3px 10px #0002;z-index:60}.rail-button:hover .rail-tooltip,.rail-button:focus-visible .rail-tooltip{visibility:visible;opacity:1}
.shell .sidebar{left:var(--rail-width);width:var(--chat-width);min-width:0;top:0;height:100dvh;position:fixed;display:flex;flex-direction:column;padding:22px 14px 16px;border-right:1px solid var(--line)}.shell .workspace{grid-column:3;min-width:0}.workspace-location{font-size:13px;color:var(--muted)}.preview-banner{position:fixed;top:0;left:calc(56px + 236px);right:0;z-index:45;text-align:center;font-size:11px;padding:5px;background:#f7eadd;color:#86694f}.preview-banner+.shell .topbar{padding-top:25px;min-height:76px}.preview-banner+.shell .workspace:has(.creation-frame){height:100dvh}.sidebar .new-chat-button{width:100%}
@media(max-width:1000px){.shell{--chat-width:210px}.preview-banner{left:266px}.shell .sidebar .brand-name{font-size:25px}.shell .sidebar .brand-sub{font-size:8px}}
@media(max-width:760px){.shell{--rail-width:48px;--chat-width:158px}.utility-rail{padding:15px 4px}.rail-button{width:36px;height:38px}.shell .sidebar{padding:16px 9px}.preview-banner{left:206px}.shell .sidebar .brand-mark{display:none}}
@media(max-width:600px){.shell{--chat-width:130px;display:grid}.shell .sidebar{flex-wrap:nowrap;gap:6px}.shell .sidebar>.brand{width:auto;padding:0}.shell .sidebar .brand-sub{display:none}.shell .sidebar .nav-caption{display:block;margin:12px 0 5px;padding:0 5px}.shell .sidebar .side-user{display:flex;padding:10px 0 0;gap:3px}.shell .sidebar .user-name{font-size:11px}.shell .sidebar .avatar{display:none}.shell .sidebar .brand-name{font-size:23px}.preview-banner{left:178px;font-size:10px}.shell .workspace:has(.creation-frame){height:100dvh;display:flex;flex-direction:column;overflow:hidden}.shell .creation-frame{flex:1;min-height:0;width:100%;height:auto}.shell .topbar{padding:24px 12px 8px;height:70px;flex-shrink:0}}

/* v25: one compact workspace header; management is off the reading canvas. */
.shell .topbar{height:48px;min-height:48px;padding:7px 22px;gap:12px}.header-controls{display:flex;align-items:center;gap:8px}.header-controls .btn{padding:4px 8px;min-height:28px;font-size:12px}.client-view-label{font-size:11px;color:var(--green)}.admin-switcher{position:relative;font-size:12px}.admin-switcher>summary{cursor:pointer;padding:7px 9px;border:1px solid var(--line);border-radius:8px;list-style:none}.admin-switcher .workspace-picker{position:absolute;right:0;top:36px;display:flex;flex-direction:column;align-items:stretch;gap:10px;width:300px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px #26352c22;z-index:50}.admin-switcher .workspace-picker label{display:block}.admin-switcher .workspace-picker select{width:100%;max-width:none}.preview-banner+.shell .topbar{padding-top:25px;height:68px;min-height:68px}.breadcrumb{min-width:0}.breadcrumb>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell .workspace:has(.creation-frame){height:100dvh}.shell .workspace:has(.creation-frame)>.creation-frame{flex:1;min-height:0;height:auto}@media(max-width:600px){.shell .topbar{padding:7px 12px;min-height:44px;height:44px}.client-view-label{display:none}.header-controls{gap:3px}.admin-switcher .workspace-picker{width:260px}.preview-banner+.shell .topbar{height:66px;min-height:66px;padding-top:25px}}

.ai-admin{max-width:1200px}.ai-admin .admin-panel{margin:18px 0;padding:24px}.ai-admin textarea{width:100%;font:15px/1.8 system-ui;resize:vertical;padding:12px;border:1px solid var(--line,#d9ddd2);border-radius:10px;background:#fff;color:var(--ink,#252c27)}.ai-admin pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.9 system-ui;background:#f3f5ef;border-radius:8px;padding:14px;max-height:500px;overflow:auto}.ai-admin details{margin:12px 0}.ai-admin summary{cursor:pointer}.ai-admin .actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.ai-admin-tabs{display:flex;flex-wrap:wrap;gap:16px}.ai-admin-tabs a{color:var(--green);font-size:14px}.ai-memory,.ai-config-version{border-top:1px solid var(--line,#d9ddd2);padding:16px 0}.ai-memory small{display:block;color:var(--muted);margin:8px 0}#ai-config-message{color:#a6412d;position:sticky;top:0;background:#fafbf7;z-index:3;padding:8px 0}.ai-admin section{scroll-margin-top:30px}

.ai-archive-reader{white-space:pre-wrap;overflow-wrap:anywhere;font:18px/1.9 'Songti SC',STSong,SimSun,serif}

.standards-reading{max-width:1000px;margin:18px 0 24px}.standard-section{margin:0 0 23px;padding:0 0 18px;border-bottom:1px solid var(--line)}.standard-section h3{font-size:17px;font-weight:600;color:var(--green);margin:0 0 9px}.standard-section p{font-size:15px;line-height:1.9;margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere}.standard-editor{background:#f5f6f0;border-radius:9px;padding:12px;margin:14px 0}.standard-editor summary{font-size:14px;color:var(--green);cursor:pointer}.standard-editor textarea{margin-top:12px;font-size:15px;line-height:1.9;min-height:280px}

.chat-context-menu{position:fixed;z-index:1000;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:5px;box-shadow:0 5px 25px #0002;min-width:160px}.chat-context-menu button{display:block;width:100%;text-align:left;background:transparent;padding:10px;font:14px system-ui}.chat-context-menu button:hover{background:var(--green-soft)}.recently-deleted{font-size:12px;color:var(--muted);margin:14px 8px}

.admin-rail-dot{position:absolute;right:6px;top:6px;width:6px;height:6px;border-radius:50%;background:#b18a58;box-shadow:0 0 0 2px #e9ece6}.rail-tooltip small{display:block;color:#d6dfd2;font-size:10px;margin-top:3px}

.recording-tabs{margin:0 0 16px;border-bottom:1px solid var(--line);padding-bottom:7px}.team-drafts{margin-top:18px}.team-drafts>summary{font-size:14px;color:var(--muted);cursor:pointer;padding:8px 0}.recording-intro h1{font-size:30px}.recording-intro{margin-bottom:16px}
.production-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.production-heading h1{font:600 30px/1.3 system-ui;margin:0 0 8px}.production-heading p,.production-footnote{font-size:13px;color:var(--muted)}.production-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:14px}.production-tabs button{background:transparent;border:0;padding:8px 12px;color:var(--muted);border-radius:8px}.production-tabs button.on{background:var(--green-soft);color:var(--green);font-weight:600}.production-tabs span{font-size:11px;margin-left:6px}.production-tabs button:last-child:not(.on){margin-left:auto}.production-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}.production-card{text-align:left;padding:22px;border:1px solid var(--line);background:var(--surface);border-radius:14px;cursor:pointer;position:relative}.production-card small{font-size:11px;color:var(--muted);display:block;margin-bottom:12px}.production-card h2{font:600 19px/1.6 system-ui;margin:14px 0}.production-card p{font-size:13px;color:var(--muted);line-height:1.7}.production-card-link{font-size:13px;color:var(--green)}.production-empty{padding:36px 20px;border:1px dashed var(--line);border-radius:12px;background:#f5f7f1;color:var(--muted)}.production-empty h3{font:500 18px system-ui}.production-detail-head{display:flex;gap:12px;align-items:center}.production-title{font:600 25px/1.6 system-ui}.production-detail{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px}.production-main{min-width:0}.production-main video{width:100%;max-height:58vh;border-radius:12px;background:#202820}.review-video-head{display:flex;gap:12px;align-items:center;margin-bottom:10px}.review-video-head select{max-width:65%;font-size:12px}.production-script{margin:20px 0;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.production-script article{white-space:pre-wrap;font:18px/1.9 'Songti SC',SimSun,serif;max-height:65vh;overflow:auto;margin-top:18px}.production-script summary,.production-materials summary{cursor:pointer;color:var(--green)}.production-upload{padding:20px;border-radius:12px;background:#edf2e8;border:1px solid var(--line)}.production-upload h3{margin-top:0}.production-upload p,.production-upload small{font-size:12px;color:var(--muted);line-height:1.7}.production-upload input{display:block;margin:12px 0;max-width:100%}.production-upload select{width:auto;font-size:13px}.production-upload progress{display:block;width:100%;margin-top:12px;accent-color:var(--green)}.production-comments{border-left:1px solid var(--line);padding-left:20px}.production-comments label{display:block;font-size:13px;margin:12px 0}.production-comments textarea{margin-top:7px;width:100%;font-size:14px}.time-comment{display:flex;gap:6px;margin-top:6px}.time-comment input{width:85px}.video-comment-list article{border-top:1px solid var(--line);padding:14px 0}.video-comment-list small{font-size:10px;color:var(--muted)}.video-comment-list p{font-size:14px;white-space:pre-wrap;line-height:1.7}.video-timestamp{background:var(--green-soft);border:0;border-radius:5px;color:var(--green);margin-right:7px;font-size:12px;padding:4px 7px}.production-materials{margin-top:20px}.raw-material{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}.raw-material small{font-size:11px;color:var(--muted)}#production-message{font-size:13px;line-height:1.8;color:var(--green);white-space:pre-wrap}@media(max-width:1000px){.production-detail{grid-template-columns:1fr}.production-comments{border-left:0;border-top:1px solid var(--line);padding:10px 0}.production-tabs{flex-wrap:wrap}}

.onboarding-outline{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.onboarding-outline span{background:#eef2e9;border:1px solid var(--line);border-radius:8px;padding:9px 12px;font-size:12px;color:var(--green)}

.production-upload input[hidden],.production-upload progress[hidden],.production-upload button[hidden]{display:none!important}.production-upload+.production-upload{margin-top:16px}.material-drop{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1px dashed #a8b9a6;border-radius:10px;padding:20px;background:var(--surface);transition:background .15s,border-color .15s}.material-drop span{font-size:13px;color:var(--muted)}.material-drop.drag-over{border-color:var(--green);background:#e0ebdb;box-shadow:0 0 0 2px #4d695622}.material-heading,.material-preview-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.material-heading h3{margin:8px 0}.material-heading span,.material-heading small{font-size:12px;color:var(--muted);font-weight:400}.material-bulk{display:flex;gap:16px;align-items:center;margin:12px 0}.material-bulk label,.material-row label{display:flex;gap:10px;align-items:center}.material-row{border:1px solid var(--line);border-radius:10px;padding:14px;margin:10px 0;background:var(--surface)}.material-row label{min-width:0;align-items:flex-start}.material-row strong{font-size:14px;overflow-wrap:anywhere}.material-row small{display:block;font-size:11px;color:var(--muted);line-height:1.8}.material-row .actions{margin-top:10px;gap:6px;flex-wrap:wrap}.material-row input,.material-bulk input{width:auto!important;margin:3px!important}.material-type{font-size:11px;background:var(--green-soft);padding:2px 6px;border-radius:4px;white-space:nowrap}.material-submit{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.material-submit p{font-size:13px;color:var(--muted)}#material-preview{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:12px}#material-preview img,#material-preview video{display:block;max-width:100%;max-height:60vh;margin:14px auto;object-fit:contain}.production-upload small{display:block}.material-progress{height:6px}.material-preview-head strong{overflow-wrap:anywhere;font-size:14px}

.material-alert{display:inline-block;font-size:12px;color:#a84d29;background:#faeee6;border-radius:5px;padding:4px 8px}.material-submit small{display:block;color:var(--muted);margin-top:12px}.material-submit button+button{margin-left:8px}

.publication-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0}.publication-counts strong,.publication-counts small{display:block}.publication-counts strong{font-size:22px}.publication-counts small{color:var(--muted);margin-top:4px}.publication-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}@media(max-width:600px){.publication-counts{grid-template-columns:repeat(3,1fr)}.publication-form-grid{grid-template-columns:1fr}}

.recording-script-editor{width:100%;min-height:420px;resize:vertical;border:1px solid var(--line,#dfe4da);border-radius:12px;padding:22px;font:20px/1.9 "Songti SC",SimSun,serif;background:#fffefb;color:inherit}.material-heading select{font:inherit;padding:6px;border:1px solid #dce2d7;border-radius:8px;background:#fff}

.tips-admin-table{width:100%;border-collapse:collapse}.tips-admin-table th{text-align:left;font-size:13px;color:#71816d;padding:8px}.tips-admin-table td{vertical-align:middle;padding:6px;border-top:1px solid #e1e7db}.tips-admin-table td:first-child{width:55px}.tips-admin-table textarea{width:100%;font-size:14px;line-height:1.6;padding:9px;border:1px solid #dbe2d5;border-radius:8px}
