:root{--bg:#f5f6f2;--paper:#fff;--ink:#183330;--muted:#71817c;--line:#dfe5df;--green:#116552;--mint:#e1efe8;--warm:#f1ede2;--radius:16px;font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button{border:0;background:transparent;color:inherit}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #8bbbab;outline-offset:3px}[hidden]{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;padding:30px 20px;background:#f0f2ec;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-weight:750;font-size:23px;letter-spacing:.05em;margin-bottom:34px}.brand small{display:block;font-size:10px;letter-spacing:.13em;font-weight:400;color:var(--muted);margin-top:4px}.mark{display:grid;place-items:center;background:var(--green);color:white;width:44px;height:44px;border-radius:13px;font-size:25px}.primary{background:var(--green);color:white;border-radius:10px;padding:13px 20px;font-size:14px;font-weight:600}.primary:hover{background:#0b5344}.wide{width:100%}nav{display:flex;flex-direction:column;gap:6px;margin-top:26px}nav button{padding:13px 12px;text-align:left;font-size:13px;border-radius:9px;display:flex;justify-content:space-between;line-height:1.6}nav button:hover,nav button.active{background:#e0e8df}.builder-entry{font-weight:700}.sidebar-bottom{margin-top:auto;padding:20px 5px 0;border-top:1px solid var(--line);font-size:11px;line-height:1.8}.sidebar-bottom .small{display:block;margin-top:5px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:100%;background:#61927c;margin-right:7px}.shell{margin-left:244px}.topbar{height:78px;display:flex;justify-content:space-between;align-items:center;padding:0 46px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);gap:20px}.account{display:flex;align-items:center;gap:13px;flex-wrap:wrap}#system-switch{max-width:200px}.quiet{border:1px solid var(--line);padding:8px 13px;border-radius:8px;background:var(--paper);font-size:12px}.quiet:hover{border-color:#9fb6a7}main{max-width:1060px;padding:0 48px;margin:0 auto;min-height:calc(100vh - 128px)}.hero{text-align:center;padding:75px 0 30px}.eyebrow{display:block;font-size:11px;letter-spacing:.17em;color:#668675;font-weight:600;margin-bottom:13px}h1{font-size:38px;letter-spacing:-.04em;line-height:1.4;font-weight:650;margin:0 0 14px}p{line-height:1.75}.hero p,.page-heading p{font-size:13px;color:var(--muted);margin:0}.composer{background:white;border:1px solid #c9d8cd;border-radius:19px;box-shadow:0 12px 30px #244e3810;padding:20px 22px 17px}.composer textarea{width:100%;resize:vertical;min-height:130px;border:0;background:none;line-height:1.9;color:var(--ink);font-size:14px;outline-offset:6px}.composer textarea::placeholder{color:#95a19a}.composer-bottom{display:flex;align-items:center;gap:14px;padding-top:14px;border-top:1px solid #eef1ec}.composer-bottom .primary{margin-left:auto;white-space:nowrap}.composer select{border:0;background:var(--bg);border-radius:8px;padding:8px;font-size:12px;max-width:180px}.attachment-button{font-size:12px;color:var(--muted);cursor:pointer;white-space:nowrap}.attachment-list{display:flex;gap:8px;flex-wrap:wrap}.attachment-pill{padding:5px 8px;background:var(--mint);font-size:11px;border-radius:5px}.entry-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:16px;margin-top:23px}.feature-card{display:flex;align-items:center;text-align:left;gap:15px;padding:21px;border-radius:13px;border:1px solid var(--line);background:#e7eee5}.feature-card+ .feature-card{background:var(--warm)}.feature-card strong{font-size:14px}.feature-card p{font-size:11px;color:var(--muted);margin:7px 0 0}.card-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:11px;background:#d3e2d3;color:var(--green);font-size:25px}.card-icon.soft{background:#e7e0cd;color:#8f8061}.arrow{margin-left:auto;color:#69876e}.section-title{display:flex;justify-content:space-between;align-items:center;margin:34px 0 15px;gap:15px}h2{font-size:16px;font-weight:650;margin:0}.text-button{color:var(--green);font-size:12px;padding:8px 0}.task-list{border-top:1px solid var(--line)}.task-row{display:flex;gap:15px;align-items:center;border-bottom:1px solid var(--line);padding:18px 4px}.task-info{flex:1;min-width:0}.task-info strong{font-size:13px;font-weight:550;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-info small{display:block;color:var(--muted);font-size:11px;margin-top:7px}.badge{white-space:nowrap;font-size:10px;padding:5px 9px;border-radius:6px;background:#e5ece4;color:#5c7664}.badge.running,.badge.waiting_media{background:#fff0d3;color:#987024}.badge.failed,.badge.blocked{background:#f8e2da;color:#a35541}.empty{text-align:center;padding:40px 10px;color:var(--muted);font-size:12px}.page-heading{padding:53px 0 26px}.panel{padding:22px;border:1px solid var(--line);background:var(--paper);border-radius:var(--radius);margin:18px 0}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.stat{border:1px solid var(--line);background:white;border-radius:13px;padding:22px}.stat strong{font-size:27px;display:block;margin-top:12px;font-weight:600}.stat small{color:var(--muted);font-size:12px}form label{display:block;font-size:12px;color:var(--muted)}input,select{max-width:100%;color:var(--ink);padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:white}label input,label select{display:block;width:100%;margin-top:8px}.inline-form{display:flex;gap:15px;align-items:end}.inline-form label{flex:1}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .primary{grid-column:1/-1;justify-self:start}.recharge-form{max-width:460px}.recharge-form .primary{margin-top:20px}.role-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:14px 0;font-size:13px;gap:15px}.role-row:last-child{border-bottom:0}.toggle{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}.toggle input{margin:0;width:16px;height:16px}.muted{color:var(--muted)}.small{font-size:11px}.message{border-radius:10px;padding:14px 18px;font-size:13px;background:#e1ede4;position:sticky;bottom:20px;box-shadow:0 8px 25px #17372a12}.message.error,.error{color:#a54d3e}.message.error{background:#f8e7df}footer{text-align:center;padding:24px;font-size:10px;letter-spacing:.07em;color:#9aa69e}dialog{width:min(420px,calc(100vw - 36px));border:1px solid var(--line);border-radius:20px;padding:30px;box-shadow:0 25px 100px #20392a33}dialog::backdrop{background:#1b332c55;backdrop-filter:blur(3px)}dialog label{margin:18px 0}.dialog-title{display:flex;align-items:center;justify-content:space-between}.dialog-title .quiet{border:0;font-size:22px;padding:0 4px}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{position:fixed;top:10px;left:10px;z-index:100;background:white;padding:10px}.detail-list{margin:10px 0;padding:0;list-style:none;font-size:12px;line-height:2}.payment-link{color:var(--green);display:inline-block;padding:14px 0}summary{cursor:pointer;font-size:13px}
@media(max-width:1100px){.sidebar{width:210px;padding:25px 16px}.shell{margin-left:210px}.topbar{padding:0 25px}main{padding:0 30px}.hero{padding-top:55px}.feature-card{padding:17px}.card-icon{display:none}}@media(max-width:760px){.sidebar{position:static;width:auto;padding:16px 20px;border-right:0;border-bottom:1px solid var(--line)}.brand{margin:0;font-size:21px}.brand small{display:inline;margin-left:10px}.mark{width:36px;height:36px;font-size:21px}.sidebar>.primary,.sidebar-bottom{display:none}nav{flex-direction:row;overflow:auto;margin-top:15px;gap:5px}nav button{white-space:nowrap;font-size:12px;padding:9px 11px}nav button span{display:none}.shell{margin:0}.topbar{height:auto;min-height:64px;padding:14px 20px;align-items:flex-start}.account{justify-content:flex-end;gap:8px}#identity-label{font-size:11px}.topbar>#breadcrumb{display:none}main{padding:0 20px}.hero{padding:40px 0 25px}h1{font-size:29px}.composer{padding:16px}.composer textarea{min-height:145px}.composer-bottom{gap:7px;flex-wrap:wrap}.composer-bottom .primary{padding:11px 13px;font-size:12px}.composer select{max-width:135px}.entry-grid{grid-template-columns:1fr;margin-top:16px;gap:10px}.feature-card{padding:18px}.card-icon{display:grid}.stats-grid{grid-template-columns:1fr}.stat{padding:16px;display:flex;align-items:center;justify-content:space-between}.stat strong{margin:0;font-size:23px}.form-grid{grid-template-columns:1fr}.task-row{gap:8px}.badge{font-size:9px}.task-row>.quiet{font-size:11px;padding:7px 9px}.page-heading{padding:33px 0 20px}}
.role-row{flex-wrap:wrap}.role-capabilities{flex-basis:100%;padding:6px 0}.role-capabilities .toggle{display:inline-flex;margin:12px 18px 0 0}

.topic-toolbar{display:flex;gap:16px;justify-content:space-between;align-items:center;flex-wrap:wrap}.topic-toolbar[hidden]{display:none}.topic-toolbar strong{display:block;font-size:20px}.topic-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.topic-actions select{max-width:260px}.topic-actions span{flex:1}#topic-dialog{max-width:560px;width:calc(100% - 40px)}#topic-dialog input{width:100%;margin:12px 0}#topic-dialog .topic-actions{margin-top:14px}

/* Public official help shares the composer and never hides unsubmitted materials. */
.help-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:9px 3px 0}.help-entry p{font-size:11px;color:var(--muted);margin:0}.help-entry .text-button{white-space:nowrap}.help-panel{border-color:#b8d2c5;background:#fcfefb}.help-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.help-heading .eyebrow{margin-bottom:6px}.help-question{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.help-answer{font-size:14px;white-space:pre-line;overflow-wrap:anywhere}.help-steps{padding-left:24px;font-size:13px;line-height:1.9}.help-steps li{padding:3px 0;white-space:pre-line}.help-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.help-actions .quiet{font-size:13px;padding:10px 14px}.help-sources{border-top:1px solid var(--line);margin-top:20px;padding-top:15px;font-size:11px;line-height:1.8}.help-sources ul{padding-left:18px;margin:6px 0}.help-sources a{color:var(--green)}.help-sources li{overflow-wrap:anywhere}#help-status:empty{display:none}#help-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto}#help-dialog p,.help-effects{font-size:13px;line-height:1.8}.help-effects{padding-left:20px}#help-dialog .help-actions{justify-content:flex-end;margin-bottom:0}@media(max-width:760px){.help-entry{align-items:flex-start;flex-direction:column;gap:0}.help-panel{padding:18px}.help-heading{align-items:flex-start}.help-actions .quiet{max-width:100%;text-align:left}.help-sources{font-size:11px}}

/* Unified email identity and account recovery. */
#auth-dialog{width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto}#auth-description{margin:14px 0 18px}.auth-code-row{display:flex;align-items:center;gap:10px;margin-top:8px}.auth-code-row input{min-width:0;flex:1;width:100%}.auth-code-row button{flex-shrink:0;min-height:42px}.auth-code-row+ p{margin:8px 0}.auth-links{display:flex;justify-content:center;column-gap:20px;row-gap:2px;flex-wrap:wrap;margin-top:12px}.auth-notice{padding:11px 13px;border-radius:9px;background:var(--mint);line-height:1.7}.auth-result{padding:14px;background:var(--mint);border-radius:10px;overflow-wrap:anywhere}.auth-result p{margin:3px 0;font-size:13px}#auth-form input[readonly]{background:var(--bg);color:#52675e}#auth-error:empty{display:none}#auth-submit{margin-top:8px}@media(max-width:480px){#auth-dialog{padding:23px}.auth-links{column-gap:15px}.auth-code-row{gap:8px}.auth-code-row button{padding:8px 10px}}

/* Knowledge is a section of this home; the original palette and type stay shared. */
.sidebar nav{min-height:0;overflow-y:auto;overscroll-behavior:contain}.sidebar>.brand,.sidebar>.primary,.sidebar-bottom{flex-shrink:0}
.knowledge-menu{display:grid;gap:3px;padding:2px 0 7px 13px;border-left:1px solid #cbdacf;margin:0 8px 0 14px}.knowledge-menu button{width:100%;padding:8px 10px;font-size:12px}.knowledge-menu button.active{color:var(--green);font-weight:650;background:var(--mint)}#nav-knowledge[aria-expanded="true"]>span{transform:rotate(180deg)}
main.knowledge-main{max-width:none;padding:0 24px}.knowledge-view{min-width:0}.knowledge-feedback{font-size:13px}.knowledge-feedback p:not([hidden]){padding:18px 0;margin:0}.knowledge-feedback .quiet{margin-bottom:18px}.knowledge-frame{display:block;width:100%;height:calc(100dvh - 230px);min-height:560px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper)}
@media(max-width:1100px){main.knowledge-main{padding:0 20px}}
@media(max-width:760px){.sidebar nav{flex-wrap:wrap;overflow:visible}.knowledge-menu{order:1;flex-basis:100%;grid-template-columns:repeat(3,minmax(0,1fr));margin:4px 0;padding:8px;border:1px solid var(--line);border-radius:10px}.knowledge-menu button{white-space:normal;min-height:40px}.sidebar #nav-knowledge>span{display:inline}.sidebar-bottom{display:none}main.knowledge-main{padding:0 12px}.knowledge-frame{height:calc(100dvh - 175px);min-height:480px}.knowledge-main .topic-toolbar{padding:14px}.knowledge-main .topic-actions{gap:6px}.knowledge-main .topic-actions select{max-width:180px}}
@media(max-width:420px){.knowledge-menu{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Separate the prompt, staged files and actions, including long filenames. */
.composer{display:flex;flex-direction:column;gap:16px;min-width:0}
.composer textarea{display:block;min-width:0;max-width:100%}
.composer .attachment-list{min-width:0}
.composer .attachment-list:empty{display:none}
.composer .attachment-list:not(:empty){max-height:192px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;flex-shrink:0;align-content:flex-start;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.composer .attachment-pill{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal;text-align:left;line-height:1.6}
.composer-bottom{min-width:0;flex-shrink:0}
