:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#23342f;background:#f5f6f2;font-size:14px;line-height:1.6;--ink:#23342f;--muted:#77817a;--line:#e3e7df;--green:#246958;--light:#eef4ed;--white:#fff;--shadow:0 12px 40px #1d38230a}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}a{color:var(--green);text-decoration:none;overflow-wrap:anywhere}a:hover{text-decoration:underline}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:2px solid #54a78f}h1,h2,h3,p{margin-top:0}h1{font-size:30px;font-weight:620;letter-spacing:-1px;margin-bottom:7px}h2{font-size:20px;font-weight:620}h3{font-size:16px}p{margin-bottom:12px}.muted,small{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:2px;color:#8b968b;margin-bottom:12px;font-weight:650}.boot{display:grid;place-content:center;min-height:100dvh;text-align:center;gap:20px}.brand-mark{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--green);color:#fff;font-size:20px;font-family:serif}.brand{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:650;letter-spacing:1px}.brand small{font-size:10px;display:block;letter-spacing:2px;font-weight:450}.button{border:1px solid var(--line);border-radius:8px;padding:9px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:white;color:var(--ink);white-space:nowrap;transition:background .15s,transform .15s}.button:hover{background:#eef3ed}.button:active{transform:translateY(1px)}.button.primary{background:var(--green);border-color:var(--green);color:white}.button.primary:hover{background:#1c5547}.button.danger{color:#af4e3f;background:#fff8f7;border-color:#f1d4ce}.button.ghost,.button.icon{border-color:transparent;background:transparent}.button.icon{padding:4px 10px;font-size:22px}.button.small{padding:5px 10px;font-size:12px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.input{width:100%;min-width:0;border:1px solid #dce2d9;border-radius:8px;background:#fff;color:var(--ink);padding:10px 12px;transition:border .15s}.input:focus{outline:2px solid #d5e8dd;border-color:#6d9e86}.input::placeholder{color:#a0a9a0}.input[readonly]{background:#f7f9f5}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}.field-label{font-size:13px;font-weight:550}textarea.input{resize:vertical;line-height:1.7}.check{display:flex;gap:9px;align-items:center;cursor:pointer}.check input{accent-color:var(--green);width:16px;height:16px}.badge{display:inline-flex;align-items:center;border-radius:5px;padding:2px 7px;white-space:nowrap;font-size:11px;font-weight:500}.badge.good{color:#347752;background:#e9f4e9}.badge.bad{color:#a74938;background:#fff0eb}.badge.neutral{color:#827243;background:#f3f0e5}.pill{border-radius:100px;padding:5px 10px;background:#edf2ec;color:#60705f;font-size:11px;display:inline-flex;align-items:center;gap:5px}.platform-dot{width:7px;height:7px;background:#79a38a;border-radius:50%;display:inline-block;margin-right:6px}.auth{min-height:100dvh;display:grid;grid-template-columns:1.1fr 1fr}.auth-story{background:#e7eddf;position:relative;padding:55px clamp(30px,6vw,90px);display:flex;flex-direction:column;overflow:hidden}.auth-story .brand{color:#28493b}.auth-story h1{font-size:clamp(40px,4.2vw,64px);line-height:1.3;margin:70px 0 22px;letter-spacing:-2px}.auth-story p{max-width:340px;font-size:16px;color:#60745f}.auth-platforms{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px;max-width:360px}.auth-art{margin:50px 0 0;position:relative;min-height:180px}.art-sheet{position:absolute;background:#fcfdf8;border:1px solid #fff;border-radius:14px;box-shadow:0 15px 40px #53643d14;width:280px;padding:24px;transform:rotate(-8deg);font-size:13px}.art-sheet:nth-child(2){left:100px;top:50px;transform:rotate(6deg);background:#f7f6eb}.art-line{height:7px;border-radius:3px;background:#dde4d7;margin-top:11px}.art-line.short{width:60%}.auth-panel{display:grid;place-content:center;padding:40px}.auth-form{width:min(360px,85vw)}.auth-form h2{font-size:28px;margin-bottom:10px}.auth-form>p{margin-bottom:30px}.auth-form .button.primary{width:100%}.code-row{display:flex;gap:8px}.code-row .input{flex:1}.auth-note{font-size:12px;margin-top:28px;line-height:1.8}.shell{min-height:100dvh;display:grid;grid-template-columns:238px 1fr}.sidebar{background:#f0f3ec;border-right:1px solid var(--line);padding:27px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100dvh;overflow:auto;gap:24px}.sidebar .brand{padding:0 10px}.enterprise-control{border:1px solid #dce4d5;border-radius:10px;background:#f8faf4;padding:11px;display:flex;flex-direction:column;gap:8px}.enterprise-control .input{padding:5px 3px;border:0;background:transparent;font-size:13px;font-weight:600}.enterprise-control .button{font-size:11px;padding:3px 6px;color:#77826b}.nav-group{display:grid;gap:4px}.nav-label{font-size:10px;color:#8a9584;letter-spacing:1px;padding:0 12px;margin-bottom:6px}.nav-item{display:flex;align-items:center;gap:12px;color:#6b7568;border-radius:8px;padding:11px 13px;font-size:13px}.nav-item:hover{background:#e7ecdf;text-decoration:none}.nav-item.active{color:#20543d;background:#dfe9d8;font-weight:600}.nav-symbol{font-size:17px;width:20px;text-align:center}.account{margin-top:auto;border-top:1px solid var(--line);padding:17px 7px 0;display:flex;align-items:center;gap:10px;min-width:0}.avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#dfe7d7;color:#4f6941;font-weight:600;flex:none}.account-email{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-copy{min-width:0;flex:1}.account small{font-size:10px}.main{min-width:0}.topbar{height:66px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 34px;background:#ffffff90;gap:15px}.topbar-meta{display:flex;align-items:center;gap:14px;font-size:12px;color:#84907e}.topbar .mobile-menu{display:none}.content{padding:32px 36px;max-width:1550px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-heading p{font-size:13px;margin:0}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:var(--shadow)}.card+.card{margin-top:20px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.section-heading h2{margin:0;font-size:17px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:22px}.toolbar .search{flex:1;min-width:200px}.toolbar select{width:140px}.toolbar .date{width:145px}.doc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:17px}.doc-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:21px;min-height:215px;display:flex;flex-direction:column;gap:13px;transition:border .15s,box-shadow .15s}.doc-card:hover{border-color:#bbcdb7;box-shadow:var(--shadow)}.doc-card.selected{border-color:#71a482;background:#fcfef9}.doc-card-top{display:flex;justify-content:space-between;align-items:center}.doc-card-title{font-size:16px;font-weight:600;line-height:1.6;text-align:left;border:0;padding:0;background:transparent;color:var(--ink);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.doc-card p{font-size:12px;margin:0;color:var(--muted)}.doc-card-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:12px;border-top:1px solid #f0f2ec;font-size:11px;color:#91998b}.selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#e8efdf;border-radius:9px;padding:11px 16px;margin-bottom:18px}.empty{text-align:center;padding:60px 20px;color:var(--muted)}.empty-symbol{font-size:42px;color:#9aac91;margin-bottom:10px}.empty h3{color:#51654b;font-size:17px;margin-bottom:8px}.empty p{max-width:400px;margin:0 auto 20px;font-size:13px}.error-panel{background:#fff8f5;border:1px solid #eddfd7;border-radius:12px}.error-panel strong{color:#92523c}.loading{padding:50px;display:flex;justify-content:center;align-items:center;gap:10px;color:var(--muted)}.spinner{width:17px;height:17px;border:2px solid #dce5d6;border-top-color:#528667;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.dialog{border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 100px #18261c2a;width:min(530px,calc(100vw - 30px));max-height:90dvh;padding:26px;color:var(--ink);background:#fcfdf9}.dialog.wide{width:min(840px,calc(100vw - 30px))}.dialog::backdrop{background:#1c2b2460;backdrop-filter:blur(2px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.dialog-heading h2{margin:0}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.notice{padding:12px 15px;border:1px solid #dfe8d4;background:#f1f6e8;border-radius:8px;color:#697749;font-size:12px;margin:15px 0;line-height:1.8}.notice.warn{border-color:#ecdfc6;background:#fff9ed;color:#98773b}.facts{display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:10px 20px;font-size:12px}.facts dt{color:var(--muted)}.facts dd{margin:0;overflow-wrap:anywhere}.prose{line-height:1.9;font-size:14px;overflow-wrap:anywhere}.prose p{white-space:pre-wrap}.prose h2{font-size:19px}.prose h3{font-size:17px}.prose h4{font-size:15px}.prose code{font-size:12px;background:#eff2e9;border-radius:3px;padding:2px 5px}.prose pre{background:#f0f3ed;padding:16px;border-radius:8px;overflow:auto;white-space:pre-wrap}.prose .list-line{padding-left:17px;text-indent:-14px}.asset-image{display:block;max-width:100%;height:auto;border-radius:8px;margin:15px auto}.source-list{font-size:12px;display:grid;gap:8px;margin:12px 0}.source-list a{display:block}.chat-layout{display:grid;grid-template-columns:225px minmax(280px,1fr) 235px;min-height:calc(100dvh - 135px);gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white}.chat-sessions{border-right:1px solid var(--line);background:#fafbf7;padding:15px;max-height:calc(100dvh - 135px);overflow:auto}.chat-sessions>.button{width:100%;margin-bottom:20px}.session-item{display:block;padding:12px 10px;border-radius:7px;margin-bottom:5px;color:#667160;font-size:12px}.session-item:hover{background:#edf2e6;text-decoration:none}.session-item.active{background:#e5eddd;color:#395333}.session-item strong{font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.session-item small{font-size:10px}.chat-main{min-width:0;display:flex;flex-direction:column;max-height:calc(100dvh - 135px)}.chat-heading{padding:17px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}.chat-heading h2{font-size:15px;margin:0}.messages{padding:24px;overflow:auto;flex:1;min-height:220px;scroll-behavior:smooth}.message{margin-bottom:26px}.message-head{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);margin-bottom:9px}.message-body{border:1px solid var(--line);border-radius:3px 13px 13px;padding:17px;background:#fafbf7}.message.user .message-body{background:#eaf0e3;border-color:#dfe7d5;white-space:pre-wrap}.message.user{margin-left:32px}.message-scope{border-top:1px solid var(--line);margin-top:14px;padding-top:10px;font-size:11px;color:var(--muted)}.message-scope summary{cursor:pointer}.composer{padding:16px 20px;border-top:1px solid var(--line);background:#fff;flex:none}.composer textarea{border:0;resize:none;padding:0;min-height:72px;background:transparent}.composer textarea:focus{outline:none}.composer-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px}.composer small{font-size:10px;display:block;margin-top:10px}.chat-resources{border-left:1px solid var(--line);background:#fbfcf8;padding:19px 15px;max-height:calc(100dvh - 135px);overflow:auto}.chat-resources h3{font-size:12px;margin-bottom:5px}.resource-row{display:flex;align-items:flex-start;gap:8px;border:1px solid #e5eada;border-radius:7px;background:#fff;padding:10px;margin-top:9px;font-size:12px}.resource-row input{margin-top:5px;accent-color:var(--green)}.resource-row strong{font-size:12px;font-weight:500;display:block;line-height:1.5}.resource-row small{font-size:10px}.resource-row .button{font-size:11px;padding:0;margin-top:5px}.chat-placeholder{padding:60px 25px;margin:auto;text-align:center}.chat-placeholder h2{font-size:25px}.chat-placeholder p{font-size:13px;color:var(--muted);max-width:340px}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin-bottom:25px}.stat{padding:23px;border:1px solid var(--line);border-radius:12px;background:#fff}.stat-label{font-size:12px;color:var(--muted)}.stat-value{font-size:28px;font-weight:550;margin:8px 0 3px;letter-spacing:-1px}.stat-hint{font-size:11px;color:#96a08f}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-weight:500;color:#8a9484;padding:12px;background:#f7f9f2;white-space:nowrap}td{padding:16px 12px;border-bottom:1px solid #ecf0e5}td .input{padding:5px 8px;font-size:12px;min-width:90px}.credential-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.credential-card{border:1px solid var(--line);padding:20px;border-radius:12px;background:white}.credential-card h3{margin:0}.credential-card p{font-size:12px;margin:14px 0}.credential-card .section-heading{margin:0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-grid .card+.card{margin:0}.platform-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0e7;padding:13px 0;gap:15px}.platform-row:last-child{border:0}.platform-row small{font-size:11px;display:block;margin-top:3px}.switch{width:35px;height:20px;accent-color:var(--green);cursor:pointer}.inline-result{padding:14px;border:1px solid #dfe7d7;border-radius:8px;margin-top:15px;background:#f7fbf0}.inline-result .input{font-size:11px;margin:10px 0}#notifications{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:10000;display:grid;gap:9px;max-width:min(90vw,550px)}.toast{padding:12px 22px;background:#2e4838;color:white;border-radius:9px;box-shadow:0 8px 30px #23342f28;font-size:13px}.toast.error{background:#8a4d3c}.tabs{display:flex;gap:7px;margin-bottom:23px;flex-wrap:wrap}.tab{padding:7px 13px;border-radius:7px;border:1px solid transparent;color:#76816d;font-size:12px}.tab.active{background:#e6eddf;border-color:#d5e0cc;color:#405a34}.tab:hover{text-decoration:none;background:#eef2e8}.mobile-nav-close{display:none}.doc-detail-meta{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:18px}.resource-chooser{max-height:50dvh;overflow:auto}.resource-chooser label{margin:8px 0;padding:12px;border:1px solid var(--line);border-radius:8px}.resource-chooser .check span{flex:1}.doc-count{color:var(--muted);font-size:12px;margin-bottom:15px}.divider{height:1px;background:var(--line);margin:20px 0}.credential-value{font-family:ui-monospace,monospace;-webkit-text-security:disc}
@media(min-width:1500px){.content{padding:42px 48px}.chat-layout{grid-template-columns:240px minmax(350px,1fr) 255px}}@media(max-width:1200px){.shell{grid-template-columns:205px 1fr}.sidebar{padding:24px 12px}.content{padding:25px 24px}.chat-layout{grid-template-columns:180px minmax(250px,1fr)}.chat-resources{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);max-height:230px}.chat-main,.chat-sessions{max-height:calc(100dvh - 170px)}.settings-grid{grid-template-columns:1fr}}@media(max-width:800px){.shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-270px;width:250px;z-index:30;transition:left .2s;box-shadow:20px 0 50px #17372120}.shell.nav-open .sidebar{left:0}.mobile-nav-close{display:inline-flex}.topbar{padding:0 20px;height:59px}.topbar .mobile-menu{display:inline-flex}.content{padding:22px 18px}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:16px}h1{font-size:26px}.eyebrow{margin-bottom:7px}.topbar-meta{font-size:11px}.auth{grid-template-columns:1fr}.auth-story{padding:30px;min-height:300px}.auth-story h1{margin:35px 0 14px;font-size:38px}.auth-art,.auth-platforms{display:none}.auth-panel{padding:40px 25px}.auth-story p{margin:0;font-size:14px}.auth-form{width:min(430px,86vw)}.chat-layout{grid-template-columns:1fr;min-height:600px}.chat-sessions{max-height:180px;border-bottom:1px solid var(--line);border-right:0}.chat-sessions>.button{width:auto;margin-bottom:8px}.session-item{display:inline-block;max-width:160px;margin-right:5px}.chat-main{max-height:none;min-height:480px}.messages{max-height:55dvh;padding:18px}.chat-resources{max-height:260px}.composer{padding:15px}.chat-heading{padding:16px}.two-fields{grid-template-columns:1fr;gap:0}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:17px}.stat-value{font-size:24px}.toolbar{gap:8px}.toolbar select{width:calc(50% - 4px)}.toolbar .date{width:calc(50% - 4px)}.toolbar .search{width:100%;flex-basis:100%}.dialog{padding:21px}.card{padding:18px}.selection-bar{flex-wrap:wrap}.doc-grid{grid-template-columns:1fr}.message.user{margin-left:15px}.settings-grid{gap:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.spinner{animation:none}}

.art-heading{margin:16px 0 0}.actions.centered{justify-content:center}.small-text{font-size:11px}.welcome-heading{margin-top:20px}

input[type=checkbox]{width:16px;min-width:16px;height:16px;padding:0;flex:none;accent-color:var(--green)}.pill{white-space:nowrap}.doc-card-top{gap:15px}

.credential-card p{overflow-wrap:anywhere}.chat-heading>div{min-width:0}.chat-heading h2{overflow-wrap:anywhere}.resource-row>div{min-width:0}.resource-row strong{overflow-wrap:anywhere}

.admin-confirm{align-items:flex-start;font-size:12px;line-height:1.8;margin:18px 0}.admin-confirm input{margin-top:4px}.auth-switch{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:18px;font-size:12px}.auth-switch .button{padding:6px 7px;color:var(--green);font-weight:600}.onboarding-identity{margin-bottom:20px}.onboarding-identity h2{margin-top:14px;font-size:26px;overflow-wrap:anywhere}.onboarding-role{color:var(--green);font-weight:600;margin-bottom:10px}
