/* Generated by tools/build_rsi_ui.mjs; source styles remain in the approved prototype. */
/* interface.css */
:root{--canvas:#f5f6f8;--paper:#fff;--surface:#fff;--ink:#182230;--text:#182230;--muted:#576574;--line:#dce1e8;--border:#dce1e8;--blue:#2458b3;--primary:#2458b3;--blue-soft:#edf3fc;--green:#237052;--green-soft:#eaf5ee;--amber:#926215;--amber-soft:#fcf5e8;--red:#b52c36;--red-soft:#fceff0;--radius:9px;font-family:"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;font-size:15px;color:var(--ink);background:var(--canvas);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;line-height:1.65}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.4;font-weight:600;letter-spacing:-.6px}h2{font-size:18px;line-height:1.5;font-weight:600}h3{font-weight:600}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}input,select,textarea{max-width:100%;background:#fff;border:1px solid #cbd2dd;border-radius:6px;padding:9px 12px;min-height:42px}textarea{min-height:100px;resize:vertical;line-height:1.7}input[type=checkbox],input[type=radio]{min-height:0;accent-color:var(--blue);padding:0}button,a,input,select,textarea,summary{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #8eafe7;outline-offset:3px}button{border:0;background:transparent}p,dd,li{overflow-wrap:anywhere}small,.muted{color:var(--muted);font-size:12px;line-height:1.8}[hidden]{display:none!important}
.app-shell{display:grid;grid-template-columns:208px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:28px 18px 20px;background:#fafbfc;border-right:1px solid var(--line);z-index:20}.brand{font-size:19px;line-height:1.5;font-weight:600;color:var(--ink);padding:0 10px;margin-bottom:28px;white-space:nowrap}.brand span{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:5px}.space-switch{display:flex;justify-content:space-between;gap:10px;align-items:center;text-align:left;padding:11px 12px;border:1px solid var(--line);border-radius:7px;background:white;font-size:13px;line-height:20px}.space-switch small{background:var(--canvas);padding:0 6px;border-radius:4px}.sidebar nav{display:grid;gap:5px;margin-top:24px}.sidebar nav a,.sidebar-bottom>a{display:flex;align-items:center;padding:11px 14px;min-height:44px;border-radius:6px;font-size:14px;color:var(--muted)}.sidebar nav a:hover,.sidebar-bottom>a:hover{background:#eef1f6;color:var(--ink)}.sidebar nav a.active{background:#eaf0fa;color:var(--blue);font-weight:600}.sidebar-bottom{margin-top:auto;display:grid;gap:3px;padding-top:24px}.sidebar-bottom .text-button{justify-content:flex-start;padding-left:14px;font-size:12px;color:var(--muted)}.sidebar-collapsed{grid-template-columns:96px minmax(0,1fr)}.sidebar-collapsed .sidebar{padding-inline:10px}.sidebar-collapsed .brand{font-size:13px;padding-inline:0;text-align:center}.sidebar-collapsed .brand span,.sidebar-collapsed .space-switch small{display:none}.sidebar-collapsed .space-switch{padding-inline:6px;justify-content:center;font-size:12px}.sidebar-collapsed .sidebar nav a,.sidebar-collapsed .sidebar-bottom>a{justify-content:center;padding-inline:6px}.sidebar-collapsed .sidebar-bottom .text-button{padding:6px 0;justify-content:center;font-size:11px}
.workspace{min-width:0}.topbar{height:66px;padding:0 32px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);display:flex;align-items:center;gap:16px;justify-content:space-between;position:sticky;top:0;z-index:15}.demo-label{color:var(--muted);font-size:12px;white-space:nowrap}.topbar-actions{display:flex;align-items:center;gap:15px}.topbar .text-button{font-size:12px}.execution-entry{display:flex;align-items:center;gap:10px;font-size:12px;line-height:20px;min-height:36px;border:1px solid var(--line);border-radius:6px;padding:7px 12px;background:white}.execution-caption{color:var(--muted)}.mobile-settings{display:none!important}.connection-notice{padding:12px 32px;background:var(--amber-soft);font-size:13px;border-bottom:1px solid #ecdbb8}.connection-notice a{white-space:nowrap;margin-left:8px}#main{max-width:1600px;margin:auto;padding:30px 32px 60px;min-width:0;outline:none}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:26px}.page-heading>div:first-child{min-width:0}.page-heading p{font-size:14px;color:var(--muted);line-height:1.8;margin-top:9px}.page-heading .actions{flex-shrink:0;margin-top:4px}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.primary,.secondary,.text-button,.danger{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:6px;min-height:38px;padding:8px 14px;font-size:13px;line-height:20px;white-space:nowrap;text-decoration:none;font-weight:500}.primary{background:var(--blue);border:1px solid var(--blue);color:#fff}.primary:hover{background:#1d4996;color:#fff}.secondary{border:1px solid #cbd2dd;background:white;color:#344255}.secondary:hover{background:#f2f5fa}.text-button{color:var(--blue);background:transparent;padding:6px 4px}.text-button:hover{background:var(--blue-soft)}.danger{border:1px solid #eac5c8;background:#fff;color:var(--red)}.danger:hover{background:var(--red-soft)}.tag{display:inline-flex;align-items:center;padding:3px 8px;border-radius:4px;background:#eef1f5;color:var(--muted);font-size:12px;line-height:20px;white-space:nowrap;font-weight:400}.tag.green,.tag.success{background:var(--green-soft);color:var(--green)}.tag.blue{background:var(--blue-soft);color:var(--blue)}.tag.amber,.tag.warning{background:var(--amber-soft);color:var(--amber)}.tag.red,.tag.danger{background:var(--red-soft);color:var(--red)}.section,.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:24px;min-width:0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}.section-head>span,.section-head>a{font-size:12px;color:var(--muted)}.section-head>a{color:var(--blue)}.empty{text-align:center;padding:42px 22px;min-width:0}.empty h2{font-size:16px}.empty p{color:var(--muted);font-size:13px;margin-top:10px;line-height:1.9}.empty .actions{justify-content:center;margin-top:20px}.field{display:grid;gap:7px;min-width:0;margin:0 0 18px;font-size:13px;line-height:1.8}.field input,.field select,.field textarea{width:100%;font-size:1rem}.field>small{font-size:12px}.field input:focus,.field textarea:focus{border-color:var(--blue)}.form-error{background:var(--red-soft);border-left:3px solid var(--red);padding:10px 14px;color:var(--red);font-size:13px;margin-top:16px}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin:0 0 24px}.tabs a{display:flex;align-items:center;min-height:44px;padding:8px 0;border-bottom:2px solid transparent;font-size:14px;color:var(--muted);white-space:nowrap}.tabs a.active,.tabs a[aria-current=page]{border-color:var(--blue);color:var(--blue);font-weight:600}.back-link{font-size:12px;display:inline-block;color:var(--muted);margin-bottom:14px}.notice{border-left:3px solid var(--blue);padding:14px 18px;background:var(--blue-soft);font-size:13px;color:#34475e;margin-bottom:20px}
.today-intro{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:26px 28px;margin-bottom:28px;background:white;border:1px solid var(--line);border-radius:var(--radius);border-left:3px solid var(--blue)}.section-label{font-size:12px;color:var(--muted)}.today-intro h2{font-size:23px;margin-top:8px}.today-intro p{color:var(--muted);font-size:13px;margin-top:8px}.today-links{display:flex;gap:20px;align-items:center;font-size:13px;flex-wrap:wrap}.task-row{display:flex;align-items:center;gap:18px;padding:18px 0;border-top:1px solid var(--line);color:var(--ink);min-width:0}.task-main{display:grid;gap:6px;min-width:0;flex:1}.row-title{font-size:15px;font-weight:550;overflow-wrap:anywhere}.row-meta{font-size:12px;color:var(--muted)}.row-next{font-size:12px;color:var(--blue);white-space:nowrap}.task-row:hover .row-title{color:var(--blue)}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.dashboard-columns .task-row{flex-wrap:wrap}.dashboard-columns .row-next{display:none}.dashboard-columns .task-main{flex-basis:65%}
dialog{border:1px solid var(--line);color:var(--ink);background:white;padding:0;border-radius:12px;max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);box-shadow:0 16px 64px #17223326;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#15203359}.modal{width:640px}.drawer{position:fixed;inset:0 0 0 auto;margin:0;width:640px;height:100dvh;max-height:100dvh;border-radius:0;max-width:calc(100vw - 48px)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 26px;border-bottom:1px solid var(--line);background:white;position:sticky;top:0;z-index:3}.dialog-head h2{font-size:19px;line-height:30px;outline:none;min-width:0;overflow-wrap:anywhere}.dialog-head .text-button{flex:none;min-height:32px}.dialog-content{padding:24px 26px}.dialog-content>p{font-size:14px;line-height:1.9;margin-bottom:18px}.dialog-content .muted{font-size:12px}.dialog-actions{padding:18px 26px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:12px;background:white}.guide-list{margin:22px 0;padding-left:22px}.guide-list li{padding:8px 0;font-size:14px}.guide-list p{color:var(--muted);font-size:13px;margin-top:4px}.notice-row{display:grid;width:100%;gap:7px;text-align:left;padding:18px 4px;border-bottom:1px solid var(--line)}.notice-row strong{font-size:14px;line-height:1.8;font-weight:550}.notice-row span{font-size:12px;color:var(--muted)}.notice-row.read strong{font-weight:400;color:var(--muted)}.notice-row:hover{background:var(--canvas)}.search-results{margin-top:22px}.search-results a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.search-results span{font-size:12px;color:var(--muted);flex:none}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,15px);background:#20304a;color:white;border-radius:8px;padding:12px 20px;font-size:13px;line-height:1.8;max-width:min(580px,calc(100vw - 32px));box-shadow:0 5px 20px #13263e22;opacity:0;pointer-events:none;z-index:100;transition:opacity .15s,transform .15s}#toast.visible{opacity:1;transform:translate(-50%,0)}.skip-link{position:fixed;top:-60px;left:20px;z-index:200;background:white;padding:12px 20px}.skip-link:focus{top:12px}pre{overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}details summary{cursor:pointer}
@media(max-width:1100px){.app-shell{grid-template-columns:176px minmax(0,1fr)}.sidebar{padding-inline:12px}.brand{font-size:17px}.topbar{padding-inline:24px}.topbar-actions{gap:10px}.execution-caption{display:none}#main{padding:26px 24px 50px}.dashboard-columns{grid-template-columns:minmax(0,1fr);gap:0}.today-intro{align-items:flex-start;flex-direction:column;gap:18px}.sidebar-collapsed{grid-template-columns:96px minmax(0,1fr)}}
@media(max-width:760px){.app-shell,.app-shell.sidebar-collapsed{display:block}.sidebar{position:sticky;top:0;height:auto;padding:10px 16px 0;display:grid;grid-template-columns:1fr auto;border:0;border-bottom:1px solid var(--line);background:#fafbfc;z-index:30}.brand,.sidebar-collapsed .brand{font-size:16px;padding:0;margin:0;text-align:left;align-self:center}.brand span{display:none}.space-switch,.sidebar-collapsed .space-switch{font-size:12px;min-height:36px;padding:6px 10px;max-width:160px}.space-switch small{display:block}.sidebar nav{grid-column:1/-1;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;margin-top:9px}.sidebar nav a,.sidebar-collapsed .sidebar nav a{justify-content:center;min-height:44px;padding:9px 3px;border-radius:0;font-size:13px;border-bottom:2px solid transparent}.sidebar nav a.active{background:transparent;border-color:var(--blue)}.sidebar-bottom{display:none}.topbar{height:auto;min-height:58px;padding:8px 16px;position:static;gap:8px;align-items:center}.demo-label{font-size:11px}.demo-label>span{display:none}.topbar-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end}.topbar .text-button{min-height:36px;font-size:12px}.execution-entry{font-size:11px;max-width:160px;padding:6px 8px;min-height:36px}.execution-caption{display:none}.mobile-settings{display:inline-flex!important}#main{padding:22px 16px 40px}.page-heading{gap:12px;margin-bottom:22px;flex-wrap:wrap}.page-heading h1{font-size:24px}.page-heading p{font-size:13px}.page-heading .actions{margin-top:0}.primary,.secondary,.danger{min-height:44px;padding:10px 13px}.section,.panel{padding:18px 16px;margin-bottom:18px}.section-head{margin-bottom:14px}.section-head h2{font-size:17px}.today-intro{padding:22px 20px;margin-bottom:20px}.today-intro h2{font-size:20px}.today-links{gap:18px}.today-links a{min-height:36px;display:flex;align-items:center}.task-row{gap:10px;flex-wrap:wrap;padding:16px 0}.task-main{flex-basis:65%}.row-title{font-size:15px}.row-next{width:100%;padding-top:3px}.dashboard-columns .row-next{display:block}.empty{padding:30px 14px}.tabs{gap:24px}.connection-notice{padding:12px 16px}.modal{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:10px}.drawer{max-width:100vw;width:100vw}.dialog-head{padding:18px 18px}.dialog-head h2{font-size:18px}.dialog-head .text-button{min-height:36px}.dialog-content{padding:20px 18px}.dialog-actions{padding:16px 18px}.field input,.field select,.field textarea{font-size:max(16px,1rem)}#toast{bottom:16px}.notice-row{min-height:64px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* assistant.css */
.as-workspace{display:grid;grid-template-columns:184px minmax(0,1fr) 270px;align-items:start;gap:22px;overflow-anchor:none}
.as-list-pane,.as-chat,.as-contract{min-width:0}
.as-list-pane{position:sticky;top:92px;padding:6px 0}
.as-list-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 8px}
.as-list-head h2{font-size:13px;line-height:24px;font-weight:700;color:var(--ink)}
.as-list-head .text-button{font-size:12px;min-height:32px;padding-inline:8px}
.as-search{display:block;margin:12px 0 2px}
.as-search input{width:100%;min-height:38px;font-size:13px;padding:8px 11px;background:var(--panel);border:1px solid var(--line);border-radius:9px}
.as-list-switch{margin:2px 0 10px;padding:0 7px}
.as-list-switch .text-button{font-size:12px;color:var(--muted);min-height:32px}
.as-conversation-list{display:grid;gap:5px;max-height:calc(100dvh - 285px);overflow:auto;scrollbar-width:thin}
.as-conversation-row{display:flex;align-items:center;gap:4px;border-radius:10px;border:1px solid transparent;transition:background .16s ease,border-color .16s ease}
.as-conversation-row:hover{background:var(--panel)}
.as-conversation-row.selected{background:var(--panel);border-color:var(--line);box-shadow:0 2px 5px rgb(28 41 36 / 3%)}
.as-conversation-open{flex:1;min-width:0;padding:13px 11px;text-align:left;line-height:1.65;border:0;background:transparent;color:var(--ink)}
.as-conversation-open span{display:block;font-size:13px;overflow-wrap:anywhere}
.as-conversation-open small{display:block;margin-top:6px;font-size:11px;line-height:1.6;color:var(--muted)}
.as-conversation-open[aria-current=page] span{color:var(--primary);font-weight:550}
.as-conversation-row>.text-button{font-size:12px;margin-right:6px}
.as-list-empty{padding:16px 10px;font-size:13px;line-height:1.8;color:var(--muted)}
.as-chat{background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 3px 16px rgb(36 44 36 / 3%)}
.as-chat-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:22px 26px 19px;border-bottom:1px solid var(--line)}
.as-chat-head>div:first-child{min-width:0}
.as-chat-head h2{font-size:18px;line-height:1.6;overflow-wrap:anywhere;font-weight:700}
.as-chat-head p{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:4px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}
.as-chat-head p .text-button{font-size:12px;min-height:28px;padding:0;color:var(--muted)}
.as-meta-separator{opacity:.5}
.as-chat-menu{display:flex;gap:8px;flex-shrink:0}
.as-chat-menu .text-button{font-size:12px;min-height:30px;color:var(--muted);padding:3px 5px}
.as-messages{padding:28px 28px 14px;min-height:340px;max-height:calc(100dvh - 405px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.as-message{margin:0 0 28px}
.as-message:last-of-type{margin-bottom:18px}
.as-message-by{display:flex;align-items:center;gap:7px;margin:0 0 9px;font-size:12px;line-height:1.7;font-weight:700;color:var(--primary);letter-spacing:.03em}
.as-assistant .as-message-by:before{content:"";width:5px;height:5px;background:var(--primary);border-radius:50%;flex:none}
.as-message p{margin:0;max-width:42em;font-size:15px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
.as-message .reading-copy>p+p{margin-top:10px}
.as-assistant>.reading-copy{padding-inline-start:12px;border-inline-start:1px solid var(--line)}
.as-message .reading-copy{font-weight:400}
.as-user{width:fit-content;max-width:calc(100% - 26px);margin-left:auto;padding:12px 17px;background:var(--canvas);border:1px solid var(--line);border-radius:13px 13px 3px 13px}
.as-user .as-message-by{display:none}
.as-assistant{margin-right:10px}
.as-system{padding:12px 14px;border-left:2px solid var(--line);background:var(--canvas);border-radius:0 8px 8px 0}
.as-system .as-message-by{color:var(--muted);font-weight:400;margin-bottom:5px}
.as-system p{font-size:12px;line-height:1.8;color:var(--muted)}
.as-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 12px}
.as-suggestion-label{display:block;flex-basis:100%;margin-bottom:2px;font-size:11px;line-height:1.7;color:var(--muted)}
.as-suggestion{font:inherit;font-size:12px;line-height:1.8;min-height:36px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--muted);text-align:left;transition:background .16s ease,color .16s ease,border-color .16s ease}
.as-suggestion:hover{color:var(--primary);border-color:var(--primary);background:var(--accent-soft)}
.as-start{padding:24px 0 32px}
.as-start h2,.as-start h3{font-size:25px;font-weight:700;line-height:1.55;letter-spacing:-.5px;margin:13px 0 14px}
.as-start p{font-size:14px;line-height:1.9;color:var(--muted)}
.as-landing{grid-template-columns:184px minmax(0,1fr)}
.as-chat-empty{grid-column:2;max-width:890px;width:100%;margin-inline:auto;box-shadow:none;background:transparent;border:0;overflow:visible}
.as-chat-empty .as-start{padding:36px 40px 24px}
.as-chat-empty .as-start h2{font-size:35px;letter-spacing:-1.2px;margin:14px 0 16px;line-height:1.45}
.as-chat-empty .as-start p{font-size:16px;line-height:1.9}
.as-starter-examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:2px 28px 22px}
.as-starter-examples .as-suggestion-label{grid-column:1/-1;padding-left:2px}
.as-starter{min-width:0;min-height:72px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--ink);font-size:13px;line-height:1.8;text-align:left;padding:17px 18px;transition:transform .16s ease,border-color .16s ease}
.as-starter:hover{border-color:var(--primary);transform:translateY(-2px)}
.as-composer{padding:12px 22px 18px;background:var(--panel)}
.as-compose-box{padding:8px;border:1px solid var(--line);border-radius:13px;background:var(--panel);box-shadow:0 3px 10px rgb(28 45 36 / 3%);transition:border-color .16s ease,box-shadow .16s ease}
.as-compose-box:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--accent-soft)}
.as-composer textarea{display:block;width:100%;box-sizing:border-box;min-height:78px;max-height:240px;resize:vertical;border:0;background:transparent;border-radius:7px;padding:9px 10px;font:inherit;font-size:15px;line-height:1.85;color:var(--ink)}
.as-composer textarea:focus-visible{outline:0}
.as-composer textarea::placeholder{color:var(--muted);opacity:.9}
.as-compose-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:2px 3px 0}
.as-send{min-height:36px;padding:7px 13px;border-radius:8px}
.as-send svg{width:16px;height:16px;flex:none}
.as-compose-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:10px 3px 0;font-size:11px;line-height:1.7;color:var(--muted)}
.as-file-select{position:relative;display:inline-flex;gap:6px;align-items:center;min-height:36px;padding:5px 7px;font-size:12px;color:var(--muted);cursor:pointer;border-radius:7px}
.as-file-select:hover{background:var(--canvas);color:var(--primary)}
.as-file-select svg{width:15px;height:15px;flex:none}
.as-file-input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.as-file-select:focus-within{outline:2px solid var(--primary);outline-offset:3px}
.as-chat-empty .as-composer{padding:12px 28px 24px;background:transparent}
.as-chat-empty .as-compose-box{padding:12px;border-radius:16px;box-shadow:0 5px 25px rgb(28 45 36 / 5%)}
.as-chat-empty textarea{min-height:104px}
.as-contract{position:sticky;top:92px;padding:22px;background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow-wrap:anywhere}
.as-eyebrow{font-size:11px;line-height:1.8;font-weight:550;color:var(--primary);letter-spacing:.06em}
.as-contract-heading h2{font-size:17px;line-height:1.7;margin:9px 0 0;font-weight:700;letter-spacing:-.2px}
.as-contract-summary>p{font-size:13px;line-height:1.85;margin:12px 0;color:var(--muted);white-space:pre-wrap}
.as-progress-card{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:12px;margin:12px 0}
.as-progress-card .as-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.as-progress-card h3{font-size:13px;line-height:1.5;margin:0;color:var(--ink)}
.as-progress-card>p{font-size:12px;line-height:1.65;margin:5px 0;color:var(--muted)}
.as-progress-card .text-button{display:inline-flex;margin-top:4px}
.as-progress-task+.as-progress-task{border-top:1px solid var(--line);margin-top:10px;padding-top:10px}
.as-team-channel{border:1px solid var(--line);border-radius:12px;background:var(--surface);margin:12px 0;overflow:hidden}
.as-team-channel>details>summary{cursor:pointer;padding:12px 14px;font-size:13px;font-weight:650;list-style-position:inside}
.as-team-messages{max-height:320px;overflow:auto;padding:4px 14px}
.as-team-message{padding:10px 0;border-top:1px solid var(--line)}
.as-team-message>div{display:flex;justify-content:space-between;gap:10px;font-size:12px}
.as-team-message time,.as-team-message small{color:var(--muted);font-size:11px}
.as-team-message p{margin:5px 0 0;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.as-team-draft{display:grid;gap:9px;margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.as-team-draft>label{display:grid;gap:4px;color:var(--muted);font-size:12px}
.as-team-draft input,.as-team-draft textarea,.as-team-draft select{width:100%;padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font:inherit}
.as-team-draft fieldset{display:grid;gap:6px;padding:9px;border:1px solid var(--line);border-radius:8px}
.as-team-draft legend{padding:0 4px;font-size:12px;color:var(--muted)}
.as-team-acceptance{display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:center;gap:10px;font-size:13px}
.as-team-draft details{font-size:12px}.as-team-draft details ul{padding:6px 0 0 18px;list-style:disc}
.as-team-draft details li{padding:3px 0}.as-team-draft details small{display:block;color:var(--muted)}
.as-team-composer{border-top:1px solid var(--line);padding:12px 14px}
.as-team-composer textarea{box-sizing:border-box;width:100%;min-height:68px;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:9px 10px;font:inherit;font-size:14px}
.as-team-composer .rsi-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.as-team-composer .rsi-muted{font-size:11px}
.as-contract-summary .as-delivery-label{display:flex;align-items:center;gap:6px;color:var(--info);font-size:12px;font-weight:600;margin:14px 0 10px}
.as-goal-state{font-weight:700}
.as-goal-state.as-state-confirmed{color:var(--primary)}
.as-goal-state.as-state-pending{color:var(--amber)}
.as-goal-state.as-state-discussing{color:var(--info)}
.as-delivery-label svg{width:15px;height:15px;flex:none}
.as-contract-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin:15px 0 8px;font-size:11px;line-height:1.7;color:var(--muted)}
.as-goal-toggle{display:inline-flex;font-size:12px;min-height:34px;margin:2px 0 4px;padding:3px 0}
.as-contract-body{display:none;padding-top:8px}
.as-contract.is-open .as-contract-body{display:block}
.as-contract-body>.text-button{font-size:12px;margin-right:8px}
.as-agreement{margin:0}
.as-agreement>div{padding:14px 0;border-top:1px solid var(--line)}
.as-agreement dt,.as-acceptance-summary h3{font-size:13px;font-weight:700;line-height:1.8;color:var(--ink);margin:0 0 9px}
.as-agreement dd{font-size:13px;line-height:1.85;font-weight:400;color:var(--ink);margin:0;padding-inline-start:12px;border-inline-start:2px solid var(--line)}
.as-agreement .reading-copy>p{margin:0;white-space:pre-wrap}
.as-agreement .reading-copy>p+p{margin-top:8px}
.as-role-user dt{color:var(--info)}
.as-role-user dd{border-inline-start-color:var(--info)}
.as-role-assistant dt{color:var(--primary)}
.as-role-assistant dd{border-inline-start-color:var(--primary)}
.as-acceptance-summary{border-top:1px solid var(--line);padding:15px 0}
.as-acceptance-summary ol{margin:8px 0 0;padding-left:18px}
.as-acceptance-summary li{padding:0 0 9px;font-size:13px;line-height:1.85}
.as-acceptance-summary li:last-child{padding-bottom:0}
.as-acceptance-summary li::marker{color:var(--info);font-weight:600}
.as-acceptance-summary .reading-copy>p{margin:0}
.as-acceptance-summary .reading-copy>p+p{margin-top:7px}
.as-contract-actions{margin-top:17px}
.as-contract-actions .primary{width:100%;white-space:normal;font-size:12px}
.as-help{font-size:12px;line-height:1.8;color:var(--muted);margin:12px 0 0}
.as-contract>.as-help{font-size:11px}
.as-confirmation>h3{font-size:20px;font-weight:700;line-height:1.65;margin:8px 0 22px}
.as-confirm-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:var(--muted)}
.as-delivery-info{color:var(--info);font-weight:600}
.as-confirmation .as-agreement{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
.as-confirmation .as-agreement>div:nth-child(-n+2){grid-column:1/-1}
.as-confirmation .as-agreement dd,.as-confirmation .as-acceptance-summary li{font-size:14px}
.as-confirm-budget{font-size:13px;margin-top:14px;color:var(--ink)}
.as-confirmation>.as-help{padding:13px 15px;background:var(--canvas);border-radius:9px}
.as-mobile-selector,.as-new-mobile{display:none}
.as-files{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}
.as-compose-box>.as-files{margin-inline:6px}
.as-file{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;border:1px solid var(--line);border-radius:8px;padding:9px 12px;background:var(--panel)}
.as-file-name{border:0;background:none;text-align:left;min-width:0;font:inherit;font-size:13px;line-height:1.7;overflow-wrap:anywhere;color:var(--primary);cursor:pointer;padding:0}
.as-file-name small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.as-file .text-button{flex-shrink:0;font-size:12px}
.as-related,.as-notice{padding:12px 25px;border-bottom:1px solid var(--line);background:var(--canvas);font-size:12px;line-height:1.85}
.as-related a,.as-notice a{color:var(--primary)}
.as-related span{display:block;color:var(--muted);margin-top:3px}
.as-notice{background:var(--amber-soft);color:var(--amber)}
.as-chat-empty>.as-notice{margin:0 28px 5px;border:1px solid var(--line);border-radius:9px}
.as-boundary{font-size:11px;line-height:1.8;color:var(--muted);margin:20px 0 0;text-align:center}
.as-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.as-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.as-field{display:grid;gap:8px;margin:17px 0;font-size:13px;line-height:1.8;color:var(--ink)}
.as-field textarea,.as-field input{font:inherit;font-size:15px;line-height:1.8;width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:var(--panel);color:var(--ink);resize:vertical}
.as-field>span{font-size:12px;line-height:1.8;color:var(--muted)}
.as-form-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:22px}
.as-form-error{font-size:13px;line-height:1.8;color:var(--red)}
.as-revision{border-top:1px solid var(--line);padding:20px 0}
.as-revision h3{font-size:16px;font-weight:700;line-height:1.6;margin:0 0 8px}
.as-revision p,.as-revision dd{font-size:14px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
.as-revision dd{margin:4px 0 16px}
.as-revision dt{font-size:13px;font-weight:700;color:var(--ink)}
.as-revision summary{cursor:pointer;color:var(--primary);font-size:13px;margin-top:12px}
.as-attachment-text{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.85 "PingFang SC","Noto Sans SC",sans-serif;max-height:65vh;overflow:auto}
.as-attachment-image{display:block;max-width:100%;height:auto}
.as-picker .as-conversation-list{max-height:55vh}
.as-picker .as-conversation-row .text-button{white-space:nowrap}
@media(max-width:1320px){
  .as-workspace{grid-template-columns:165px minmax(0,1fr) 240px;gap:16px}
  .as-landing{grid-template-columns:165px minmax(0,1fr)}
  .as-chat-head{padding:20px}.as-chat-menu{display:grid;gap:2px}.as-messages{padding-inline:22px}.as-contract{padding:19px}
}
@media(max-width:1120px){
  .as-workspace{grid-template-columns:170px minmax(0,1fr);gap:18px}
  .as-list-pane{grid-column:1;grid-row:1/3}.as-contract{grid-column:2;grid-row:1;position:static}
  .as-contract-summary>p{margin-block:9px}.as-contract-actions{margin-top:10px}.as-contract-actions .primary{width:auto;min-width:170px}
  .as-chat{grid-column:2;grid-row:2}.as-chat-empty{grid-row:1}.as-chat-menu{display:flex;gap:8px}.as-messages{max-height:600px}
  .as-chat-empty .as-start{padding:28px 18px 22px}.as-chat-empty .as-composer{padding-inline:10px}
  .as-starter-examples{grid-template-columns:1fr;padding-inline:10px;gap:9px}.as-starter{min-height:54px;padding:12px 16px}
}
@media(max-width:760px){
  .as-workspace,.as-landing{grid-template-columns:minmax(0,1fr);gap:15px}.as-list-pane{display:none}
  .as-mobile-selector{display:block;margin:0 0 16px}.as-mobile-selector .secondary{width:100%;justify-content:space-between;white-space:normal;text-align:left;line-height:1.7;min-height:44px;font-size:13px}
  .as-new-mobile{display:inline-flex}.as-contract{grid-column:1;grid-row:1;padding:18px 20px;border-radius:12px}.as-contract-heading h2{font-size:16px}.as-contract-actions .primary{width:100%}
  .as-contract:not(.is-open){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 12px;padding:12px 16px}
  .as-contract:not(.is-open) .as-contract-heading{grid-column:1;grid-row:1}
  .as-contract:not(.is-open) .as-contract-heading h2,.as-contract:not(.is-open) .as-contract-summary,.as-contract:not(.is-open)>.as-help{display:none}
  .as-contract:not(.is-open) .as-goal-toggle{grid-column:2;grid-row:1;margin:0;padding:0;min-height:44px;white-space:nowrap}
  .as-contract:not(.is-open) .as-contract-actions{grid-column:1/-1;grid-row:2;margin:5px 0 2px}
  .as-chat,.as-chat-empty{grid-column:1;grid-row:2;border-radius:12px}.as-chat-empty{grid-row:1}.as-chat-head{padding:18px;display:block}.as-chat-head h2{font-size:16px}
  .as-chat-menu{display:flex;margin-top:10px;gap:14px}.as-chat-menu .text-button{min-height:36px}
  .as-messages{padding:24px 18px 12px;min-height:240px;max-height:none;overscroll-behavior:auto}.as-message p{font-size:15px;line-height:1.85}
  .as-user{max-width:calc(100% - 14px);padding:11px 14px}.as-composer{padding:8px 13px 16px}.as-composer textarea{font-size:16px;min-height:94px}
  .as-compose-actions{gap:8px}.as-send,.as-file-select,.as-suggestion,.as-goal-toggle{min-height:44px}.as-send{padding-inline:14px}
  .as-compose-meta{font-size:11px;gap:6px}.as-suggestions{gap:7px}.as-suggestion{font-size:12px}
  .as-chat-empty .as-start{padding:16px 7px 16px}.as-chat-empty .as-start h2{font-size:29px;letter-spacing:-.7px}.as-chat-empty .as-start p{font-size:14px}
  .as-chat-empty .as-composer{padding:12px 0 24px}.as-chat-empty .as-compose-box{padding:8px}.as-starter-examples{padding:0 0 14px}.as-starter{font-size:13px;min-height:52px}
  .as-chat-empty>.as-notice{margin-inline:0}.as-start h3{font-size:22px}.as-related,.as-notice{padding:12px 18px}.as-boundary{text-align:left;font-size:11px;margin-top:16px}
  .as-file{padding:9px}.as-file .text-button{min-height:44px}.as-form-grid,.as-confirmation .as-agreement{grid-template-columns:1fr;gap:0}
  .as-field textarea,.as-field input{font-size:16px}.as-form-actions .primary{flex:1}
}
/* Desktop viewport density */
@media(min-width:1024px){
  .as-workspace{
    --as-desktop-height:calc(100dvh - 176px);
    grid-template-columns:clamp(136px,12vw,164px) minmax(0,1fr) clamp(208px,18vw,236px);
    grid-template-rows:minmax(0,1fr);gap:14px;align-items:stretch;
  }
  .as-workspace:not(.as-landing){height:var(--as-desktop-height);min-height:0}
  .as-workspace.as-landing{grid-template-columns:clamp(136px,12vw,164px) minmax(0,1fr)}
  .as-list-pane{grid-column:1;grid-row:1;position:static;display:flex;flex-direction:column;height:var(--as-desktop-height);min-height:0;padding:0}
  .as-list-pane>:not(.as-conversation-list){flex:0 0 auto}
  .as-list-pane>.as-conversation-list{flex:1 1 0;min-height:0;max-height:none;overflow-y:auto;align-content:start;overscroll-behavior:contain}
  .as-list-head{padding-inline:5px}
  .as-search{margin-top:7px}
  .as-search input{min-height:32px;padding:5px 9px;font-size:12px}
  .as-list-switch{margin:0 0 5px;padding-inline:4px}
  .as-list-switch .text-button{min-height:28px;padding-block:3px}
  .as-conversation-open{padding:9px 10px}
  .as-conversation-open small{margin-top:3px}
  .as-chat:not(.as-chat-empty){grid-column:2;grid-row:1;display:flex;flex-direction:column;height:100%;min-height:0;border-radius:12px}
  .as-chat:not(.as-chat-empty)>.as-chat-head{flex:0 0 auto;padding:12px 16px;gap:10px}
  .as-chat-head h2{font-size:18px;line-height:1.5}
  .as-chat-head p{margin-top:2px;gap:6px}
  .as-chat-menu{display:flex;gap:6px;margin:0}
  .as-chat-menu .text-button{padding:3px;min-height:28px}
  .as-chat:not(.as-chat-empty)>.as-related,.as-chat:not(.as-chat-empty)>.as-notice{flex:0 1 auto;min-height:0;max-height:64px;padding:7px 16px;overflow-y:auto}
  .as-chat:not(.as-chat-empty)>.as-messages{flex:1 1 0;min-height:0;max-height:none;overflow-y:auto;padding:18px 20px 10px;scroll-padding-block:12px}
  .as-message{margin-bottom:20px}
  .as-message:last-of-type{margin-bottom:12px}
  .as-message p{font-size:14px;line-height:1.85}
  .as-message-by{margin-bottom:6px}
  .as-message .reading-copy>p+p{margin-top:8px}
  .as-user{padding:9px 13px}
  .as-system{padding:8px 12px}
  .as-system p{font-size:12px}
  .as-suggestions{gap:6px;margin:14px 0 8px}
  .as-suggestion{min-height:32px;padding:5px 10px}
  .as-chat:not(.as-chat-empty)>.as-composer{flex:0 0 auto;padding:8px 14px 10px}
  .as-compose-box{padding:6px;border-radius:10px}
  .as-composer textarea{height:66px;min-height:60px;max-height:110px;padding:6px 8px;font-size:14px;line-height:1.85}
  .as-compose-actions{padding-top:1px}
  .as-send,.as-file-select{min-height:32px;padding:5px 10px}
  .as-compose-meta{margin-top:6px}
  .as-compose-box>.as-files{max-height:72px;overflow-y:auto;margin-block:6px;overscroll-behavior:contain}
  .as-file{padding:6px 9px}
  .as-contract{grid-column:3;grid-row:1;align-self:start;position:static;min-height:0;max-height:var(--as-desktop-height);overflow-y:auto;padding:15px 16px;border-radius:12px;scrollbar-width:thin;overscroll-behavior:contain}
  .as-contract-heading h2{font-size:16px;line-height:1.6;margin-top:6px}
  .as-contract-summary>p{margin-block:8px;line-height:1.75}
  .as-contract-summary .as-delivery-label{margin:9px 0 7px}
  .as-contract-meta{margin:9px 0 4px;gap:6px 10px}
  .as-goal-toggle{min-height:30px;margin-bottom:2px}
  .as-contract-actions{margin-top:10px}
  .as-contract-actions .primary{width:100%;min-width:0;min-height:32px;padding:6px 10px}
  .as-contract>.as-help{margin-top:8px}
  .as-agreement>div{padding-block:11px}
  .as-acceptance-summary{padding-block:12px}
  .as-chat-empty{grid-column:2;grid-row:1;max-width:800px}
  .as-chat-empty .as-start{padding:14px 24px 16px}
  .as-chat-empty .as-start h2{font-size:28px;margin:8px 0 10px;letter-spacing:-.7px}
  .as-chat-empty .as-start p{font-size:14px;line-height:1.8}
  .as-chat-empty .as-composer{padding:8px 16px 18px}
  .as-chat-empty .as-compose-box{padding:8px}
  .as-chat-empty textarea{height:82px;min-height:76px;max-height:110px}
  .as-starter-examples{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:0 16px 10px}
  .as-starter{min-height:58px;padding:11px 13px;font-size:12px;line-height:1.75}
  .as-boundary{margin-top:10px}
}
@media(prefers-reduced-motion:reduce){.as-starter,.as-suggestion,.as-conversation-row,.as-compose-box{transition:none}.as-starter:hover{transform:none}}

/* development.css */
.dev-wrap{font-size:15px;line-height:1.65;min-width:0}.dev-wrap h1{overflow-wrap:anywhere}.dev-wrap .dev-note,.dev-note{color:var(--muted);font-size:12px;line-height:1.8;margin:0 0 18px}.dev-filters{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(145px,.7fr) minmax(220px,1.4fr);gap:16px}.dev-field{font-size:13px}.dev-field input,.dev-field textarea,.dev-field select{font-size:15px}.dev-field small{font-size:12px;line-height:1.6}.dev-result-count{font-size:12px;color:var(--muted);padding:2px 0 14px}.dev-table{width:100%;border-collapse:collapse;font-size:14px}.dev-table th{font-size:12px;font-weight:400;color:var(--muted);text-align:left;padding:12px 12px 12px 0;border-block:1px solid var(--line);white-space:nowrap}.dev-table td{padding:19px 14px 19px 0;vertical-align:top;border-bottom:1px solid var(--line)}.dev-table tr:last-child td{border-bottom:0}.dev-table td:first-child{width:43%}.dev-table td:nth-child(2){width:13%}.dev-table td:last-child{min-width:95px;font-size:12px;white-space:nowrap;color:var(--muted)}.dev-task-link{font-weight:600;line-height:1.7;overflow-wrap:anywhere}.dev-task-link:hover,.dev-next-link:hover{text-decoration:underline;text-underline-offset:4px;color:var(--blue)}.dev-row-meta{font-size:12px;color:var(--muted);line-height:1.8;margin-top:7px;overflow-wrap:anywhere}.dev-next-link{font-size:13px;line-height:1.8;display:inline-block}.dev-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.dev-detail-head>div{min-width:0}.dev-detail-head>.tag{margin-top:30px;flex:none}.dev-kicker{color:var(--muted);font-size:12px;margin-bottom:8px;overflow-wrap:anywhere}.dev-status-line{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px}.dev-status-line>p{max-width:740px;color:var(--muted);font-size:14px}.dev-status-line>.actions{flex:none}.dev-execution{display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--paper,#fff);border-block:1px solid var(--line);padding:14px 0;margin-bottom:23px;font-size:12px}.dev-execution>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap;min-width:0}.dev-execution>div>span:first-child{color:var(--muted)}.dev-execution strong{font-size:13px;font-weight:550}.dev-execution>button{flex:none}.dev-pending{display:block;color:var(--amber);width:100%;overflow-wrap:anywhere}.dev-change-notice{padding:18px 20px;margin-bottom:24px;border-left:3px solid var(--amber);background:var(--amber-soft);display:flex;justify-content:space-between;align-items:center;gap:20px}.dev-change-notice strong{font-size:14px}.dev-change-notice p{font-size:13px;color:var(--muted);margin-top:5px}.dev-change-notice .actions{flex:none}.dev-detail-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,.8fr);gap:22px;align-items:start}.dev-contract .section-head{gap:12px}.dev-contract h2,.dev-boundary h2{font-size:17px}.dev-reading{margin-bottom:24px}.dev-reading:last-child{margin-bottom:0}.dev-reading h3{font-size:13px;color:var(--muted);font-weight:400;margin-bottom:8px}.dev-reading p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.85}.dev-responsibilities{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding-top:20px;border-top:1px solid var(--line)}.dev-readable-list{padding-left:22px;margin:8px 0;line-height:1.9;font-size:15px}.dev-readable-list li{padding:4px 0;overflow-wrap:anywhere}.dev-facts{margin:18px 0 0;display:grid;gap:7px}.dev-facts dt{font-size:12px;color:var(--muted);margin-top:13px}.dev-facts dt:first-child{margin-top:0}.dev-facts dd{margin:0;font-size:14px;line-height:1.8;overflow-wrap:anywhere}.dev-facts dd .text-button{margin-left:8px}.dev-boundary>.dev-note{margin-top:20px;margin-bottom:0}.dev-steps{margin:0;padding:0;list-style:none}.dev-step{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:13px;position:relative;padding:0 0 28px}.dev-step:last-child{padding-bottom:0}.dev-step:not(:last-child):before{content:'';position:absolute;left:13px;top:28px;bottom:0;border-left:1px solid var(--line)}.dev-step-index{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-size:12px;background:var(--canvas);color:var(--muted);z-index:1}.dev-step-passed .dev-step-index{background:var(--green-soft);color:var(--green)}.dev-step-current .dev-step-index{background:var(--blue);color:white}.dev-step h3{font-size:15px;line-height:27px}.dev-step p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:5px;overflow-wrap:anywhere}.dev-step-end{display:flex;gap:9px;align-items:center;align-self:start;flex-wrap:wrap;justify-content:flex-end}.dev-step-end .text-button{font-size:12px;min-height:28px}.dev-progress-foot{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:26px;padding-top:16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.dev-simulation{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.dev-simulation summary{cursor:pointer;font-size:13px;color:var(--muted);min-height:30px}.dev-simulation>p{font-size:12px;color:var(--muted);margin:8px 0 13px}.dev-simulation .actions{margin-top:10px}.dev-spaced{margin-top:22px}.dev-prose{margin-top:14px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}.dev-checks{margin:16px 0}.dev-check{display:flex;gap:12px;align-items:flex-start;padding:15px 0;border-bottom:1px solid var(--line);font-size:15px;line-height:1.8;cursor:pointer}.dev-check>input{flex:none;margin:6px 0 0;width:17px;height:17px;accent-color:var(--blue)}.dev-check>span{overflow-wrap:anywhere;min-width:0}.dev-check:has(input:disabled){cursor:default}.dev-form-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.dev-form-actions>p{font-size:12px;color:var(--muted)}.dev-acceptance-evidence{margin-top:18px}.dev-history{list-style:none;margin:0;padding:0}.dev-history>li{display:grid;grid-template-columns:100px minmax(0,1fr);gap:18px;padding:17px 0;border-bottom:1px solid var(--line)}.dev-history>li:last-child{border:0}.dev-history time{font-size:12px;color:var(--muted);line-height:1.8}.dev-history h3{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.dev-history-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.dev-history-line:last-child{border:0}.dev-detail-footer{margin-top:24px;display:flex;gap:20px;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.dev-detail-footer .text-button{font-size:12px}.dev-evidence-content{margin:14px 0 22px;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--canvas);font:13px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;overflow:auto}.dev-evidence-list>section{padding:17px 0;border-top:1px solid var(--line)}.dev-evidence-list h3{font-size:15px;margin-bottom:8px}.dev-evidence-list p{font-size:14px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.dev-evidence-row{display:flex;width:100%;text-align:left;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.7;white-space:normal;border-radius:0;min-height:44px}.dev-evidence-row>span:last-child{font-size:12px;color:var(--blue);flex:none}.dev-comparison section{padding:17px 0;border-bottom:1px solid var(--line)}.dev-comparison h3{font-size:14px;margin-bottom:12px}.dev-comparison section>div{display:grid;grid-template-columns:55px minmax(0,1fr);gap:12px;margin-bottom:9px}.dev-comparison span{font-size:12px;color:var(--muted)}.dev-comparison p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.dev-attachment{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:12px 0}.dev-attachment>span{min-width:0;overflow-wrap:anywhere;font-size:14px}.dev-attachment small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.dev-attachment .text-button{flex:none}.dev-wrap .tag{font-size:12px}.dev-tabs{overflow-x:auto}.dev-tabs a{font-size:14px;min-height:44px}
@media(max-width:1180px){.dev-detail-grid{grid-template-columns:minmax(0,1fr)}.dev-boundary .dev-facts{grid-template-columns:120px minmax(0,1fr);align-items:baseline}.dev-boundary .dev-facts dt{margin-top:0}.dev-status-line{align-items:flex-start}.dev-status-line>.actions{flex:none}.dev-change-notice{align-items:flex-start;flex-direction:column}.dev-filters{grid-template-columns:1fr 1fr}.dev-filters>.field:last-child{grid-column:1/-1}.dev-step-end{max-width:130px}.dev-detail-footer{align-items:flex-start;flex-direction:column;gap:8px}}
@media(max-width:700px){.dev-filters{gap:10px}.dev-filters .field{margin-bottom:9px}.dev-list-panel{padding:18px}.dev-table,.dev-table tbody,.dev-table tr,.dev-table td{display:block;width:100%!important}.dev-table thead{display:none}.dev-table tr{padding:16px 0;border-top:1px solid var(--line)}.dev-table td{border:0;padding:5px 0!important;min-width:0!important;white-space:normal!important}.dev-table td[data-label]{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;font-size:13px}.dev-table td[data-label]:before{content:attr(data-label);font-size:12px;color:var(--muted)}.dev-table td .tag{justify-self:start}.dev-task-link{font-size:15px}.dev-detail-head{gap:12px}.dev-detail-head>.tag{margin-top:0}.dev-detail-head h1{font-size:22px}.dev-kicker{font-size:12px}.dev-status-line{flex-direction:column;gap:14px}.dev-status-line .actions{width:100%}.dev-status-line .actions>.primary{flex:1}.dev-execution{align-items:flex-start;flex-wrap:wrap;padding-block:14px;gap:10px}.dev-execution>div{gap:7px 10px;width:100%}.dev-execution>button{min-height:44px}.dev-detail-grid{gap:16px}.dev-contract .section-head{align-items:flex-start;flex-wrap:wrap}.dev-responsibilities{grid-template-columns:1fr;gap:0}.dev-boundary .dev-facts{grid-template-columns:88px minmax(0,1fr);gap:10px}.dev-step{grid-template-columns:28px minmax(0,1fr);gap:10px}.dev-step-end{grid-column:2;max-width:none;justify-content:flex-start;gap:14px}.dev-step-end .text-button{min-height:44px}.dev-step h3{font-size:15px}.dev-step p{font-size:13px}.dev-progress-foot{flex-wrap:wrap;gap:4px}.dev-history>li{grid-template-columns:1fr;gap:3px}.dev-form-actions{flex-wrap:wrap;gap:12px}.dev-form-actions button{min-height:44px}.dev-form-actions>.primary{margin-left:auto}.dev-change-notice{padding:16px}.dev-change-notice .actions{width:100%}.dev-check{font-size:15px}.dev-evidence-row{min-height:48px}.dev-detail-footer{font-size:12px}.dev-tabs{gap:24px}.dev-tabs a{font-size:14px}.dev-field input,.dev-field textarea,.dev-field select{font-size:16px}.dev-wrap .back-link{min-height:32px;display:inline-flex;align-items:center;font-size:12px}}

/* Result and next action stay above secondary execution details. */
.dev-result-count{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dev-table tbody tr:hover{background:var(--canvas)}
.dev-table td:first-child{padding-left:10px}.dev-table th:first-child{padding-left:10px}
.dev-status-line{padding:23px 25px;background:var(--blue-soft,#eef4fd);border:1px solid var(--line);border-radius:12px;margin-bottom:25px;align-items:center}
.dev-status-copy{min-width:0;max-width:740px}.dev-eyebrow{display:block;font-size:12px;letter-spacing:.02em;color:var(--muted);margin-bottom:7px}
.dev-status-copy h2{font-size:20px;line-height:1.45;font-weight:600;letter-spacing:-.01em;margin:0 0 9px;color:var(--ink)}
.dev-status-copy p{font-size:14px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere;margin:0}
.dev-status-line>.actions:empty{display:none}.dev-status-line .primary{min-width:132px}
.dev-detail-head{margin-bottom:23px}.dev-detail-head h1{line-height:1.4;font-weight:650}
.dev-contract .dev-reading{max-width:760px}.dev-contract .dev-reading h3{font-weight:500;font-size:13px;color:var(--ink)}
.dev-contract .dev-reading p{line-height:1.9}.dev-contract>.dev-reading+.dev-reading{padding-top:20px;border-top:1px solid var(--line)}
.dev-step{padding-bottom:24px}.dev-step h3{line-height:1.75;font-weight:550}.dev-step-current>div:nth-child(2)>h3{color:var(--blue)}
.dev-step-end{display:flex;align-items:center;gap:12px}.dev-step-end .tag{white-space:nowrap}
.dev-technical{margin-top:25px;border-block:1px solid var(--line);padding:0 4px}
.dev-technical>summary{display:flex;justify-content:space-between;align-items:center;gap:18px;cursor:pointer;padding:17px 0;font-size:13px;min-height:52px;font-weight:550;list-style:none}
.dev-technical>summary:after{content:'展开';font-size:12px;font-weight:400;color:var(--blue)}
.dev-technical[open]>summary:after{content:'收起'}.dev-technical>summary>span{margin-left:auto;font-size:12px;color:var(--muted);font-weight:400}
.dev-technical>.dev-execution{margin-bottom:12px;border-bottom:0;padding:10px 0 0}
.dev-technical>summary::-webkit-details-marker{display:none}
.dev-method-rows{padding-bottom:12px}.dev-method-rows>div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0;font-size:13px;border-top:1px solid var(--line)}
.dev-method-rows small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.dev-action-error{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px 16px;margin:-8px 0 20px;border-left:3px solid var(--amber);background:var(--amber-soft);font-size:13px;line-height:1.8}
.dev-action-error>p{margin:0;overflow-wrap:anywhere}.dev-action-error>button{flex:none}
.dev-detail-footer{align-items:flex-start}.dev-detail-footer>.actions{justify-content:flex-end}
@media(max-width:900px){.dev-status-line{align-items:flex-start;gap:20px}.dev-status-line>.actions{align-self:center}.dev-status-copy h2{font-size:19px}.dev-status-line .primary{min-width:110px}}
@media(max-width:700px){.dev-status-line{padding:18px;border-radius:10px;margin-bottom:20px;gap:18px}.dev-status-copy h2{font-size:19px}.dev-status-copy p{font-size:14px}.dev-status-line>.actions{width:100%}.dev-technical{margin-top:20px}.dev-technical>summary{font-size:14px;gap:10px}.dev-technical>summary>span{font-size:11px}.dev-step-end{padding-top:0;gap:14px}.dev-step-end .text-button{min-height:36px}.dev-table td:first-child{padding-left:0}.dev-method-rows>div{align-items:flex-start}.dev-method-rows>div>span{min-width:0;overflow-wrap:anywhere}.dev-method-rows .text-button{flex:none}.dev-detail-footer>.actions{justify-content:flex-start}.dev-result-count{font-size:12px;gap:4px}.dev-action-error{align-items:flex-start;gap:8px;padding:12px}.dev-change-notice{margin-bottom:20px}.dev-technical .dev-execution{padding-block:10px}}

/* workspace.css */
.ws-page { min-width: 0; }
.ws-page h2 { font-size: 17px; line-height: 26px; margin: 0 0 16px; }
.ws-page h3 { font-size: 15px; line-height: 24px; margin: 24px 0 8px; }
.ws-page p { line-height: 1.7; }
.ws-section { min-width: 0; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: var(--radius, 12px); padding: 24px; margin: 0 0 20px; }
.ws-section-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ws-section-head h2 { margin: 0; }
.ws-two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 24px; align-items: start; }
.ws-muted { color: var(--muted, #576574); font-size: 13px; }
.ws-notice { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius, 12px); color: var(--muted); font-size: 13px; line-height: 1.7; padding: 12px 16px; margin: 0 0 24px; overflow-wrap: anywhere; }
.ws-prose { white-space: normal; overflow-wrap: anywhere; line-height: 1.85; font-weight: 400; color: var(--ink); }
.ws-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 20px 0; }
.ws-filters > label { flex: 1 1 150px; min-width: 0; }
.ws-filters > label:first-child { flex-grow: 2; }
.ws-filters button { flex: 0 0 auto; margin-bottom: 0; }
.ws-field { display: grid; gap: 7px; margin: 0 0 16px; }
.ws-field textarea { resize: vertical; min-height: 110px; width: 100%; box-sizing: border-box; font: inherit; color: inherit; padding: 10px 12px; border: 1px solid var(--border, #d8dee8); border-radius: 6px; background: var(--surface, #fff); }
.ws-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ws-form-grid > label { min-width: 0; }
.ws-form-grid input, .ws-form-grid select, .ws-settings-body select { max-width: 100%; }
.ws-full { grid-column: 1 / -1; }
.ws-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.ws-list { border: 1px solid var(--border); border-radius: var(--radius, 12px); background: var(--surface); padding: 0 22px; }
.ws-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.ws-row:last-child { border-bottom: 0; }
.ws-row > div:first-child { min-width: 0; flex: 1; }
.ws-row-title { color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.ws-row-title:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.ws-row p { margin: 5px 0 0; font-size: 13px; color: var(--muted, #576574); overflow-wrap: anywhere; }
.ws-row-meta { flex-shrink: 0; display: grid; justify-items: end; gap: 8px; font-size: 12px; color: var(--muted); max-width: 220px; }
.ws-row-next { text-align: right; line-height: 1.6; }
.ws-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 10px; color: var(--primary, #2458b3); line-height: 22px; text-decoration: none; border-radius: 5px; box-sizing: border-box; overflow-wrap: anywhere; }
.ws-link:hover { background: var(--canvas); }
.ws-link-primary { color: #fff; background: var(--primary, #2458b3); white-space: nowrap; }
.ws-link-primary:hover { color: #fff; background: var(--primary); filter: brightness(.94); }
.ws-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.ws-actions button, .ws-section-head button, .ws-form-actions button { white-space: nowrap; flex-shrink: 0; }
.ws-source { padding: 14px 0; border-bottom: 1px solid var(--border, #d8dee8); }
.ws-source:last-child { border-bottom: 0; padding-bottom: 0; }
.ws-source a { color: var(--primary, #2458b3); overflow-wrap: anywhere; }
.ws-source p { margin: 4px 0 0; color: var(--muted, #576574); font-size: 12px; overflow-wrap: anywhere; }
.ws-long-link { display: block; overflow-wrap: anywhere; color: var(--primary, #2458b3); }
.ws-facts { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px 16px; font-size: 13px; line-height: 1.7; }
.ws-facts dt { color: var(--muted, #576574); }
.ws-facts dd { margin: 0; overflow-wrap: anywhere; }
.ws-history { list-style: none; padding: 0; margin: 0; }
.ws-history li { padding: 14px 0; border-bottom: 1px solid var(--border, #d8dee8); font-size: 13px; line-height: 1.7; }
.ws-history li:last-child { border-bottom: none; }
.ws-history time { display: block; color: var(--muted, #576574); font-size: 12px; margin-bottom: 4px; }
.ws-history p { color: var(--muted, #576574); margin: 4px 0 0; overflow-wrap: anywhere; }
.ws-past-result { padding: 14px 0; border-bottom: 1px solid var(--border); }
.ws-past-result:last-child { border-bottom: 0; }
.ws-past-result summary { cursor: pointer; min-height: 30px; line-height: 1.8; font-size: 13px; }
.ws-comparison-scroll { max-width: 100%; overflow-x: auto; }
.ws-comparison { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.65; }
.ws-comparison caption { text-align: left; font-weight: 600; margin: 24px 0 12px; }
.ws-comparison th, .ws-comparison td { padding: 13px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.ws-comparison thead th { background: var(--canvas); color: var(--muted); font-weight: 500; font-size: 12px; }
.ws-comparison tbody th { min-width: 92px; font-weight: 550; }
.ws-comparison td:nth-child(2), .ws-comparison td:nth-child(3) { white-space: nowrap; }
.ws-comparison td p { margin: 0; }
.ws-case-regression { background: var(--red-soft); }
.ws-case-trace { margin-top: 9px; white-space: normal; }
.ws-case-trace summary { color: var(--primary); cursor: pointer; font-size: 13px; min-height: 32px; }
.ws-case-context { padding-top: 8px; }
.ws-case-context p { margin: 0 0 8px !important; font-size: 13px; }
.ws-case-context ol { padding-left: 18px; color: var(--muted); margin: 12px 0 0; font-size: 13px; }
.ws-evaluation-conditions, .ws-evaluation-diff, .ws-evaluation-history { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 16px; }
.ws-evaluation-conditions > summary, .ws-evaluation-diff > summary, .ws-evaluation-history > summary { font-size: 14px; font-weight: 550; min-height: 40px; cursor: pointer; }
.ws-evaluation-conditions > summary > span, .ws-evaluation-diff > summary > span, .ws-evaluation-history > summary > span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin: 3px 0 0 17px; }
.ws-disclosure-body { padding-top: 18px; }
.ws-frozen-copy { padding: 16px; background: var(--canvas); border-radius: 8px; font-size: 13px; margin-top: 18px; }
.ws-frozen-copy > p:not(.ws-eyebrow) { margin: 10px 0 0; white-space: pre-wrap; }
.ws-evaluation .ws-facts { margin: 0; gap: 10px 16px; }
.ws-evaluation .ws-past-result { margin-top: 0; }
.ws-evaluation .ws-past-result .ws-result-overview { margin-top: 16px; }
.ws-snapshot-diff { border-left: 2px solid var(--border, #d8dee8); padding-left: 14px; margin: 16px 0; overflow-wrap: anywhere; }
.ws-snapshot-diff h4 { margin: 0 0 6px; }
.ws-snapshot-diff p { margin: 6px 0; }
.ws-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border, #d8dee8); margin: 8px 0 24px; }
.ws-tabs a { color: var(--muted, #576574); padding: 12px 16px; min-height: 44px; box-sizing: border-box; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.ws-tabs a[aria-current="page"] { color: var(--primary, #2458b3); border-color: var(--primary, #2458b3); font-weight: 600; }
.ws-settings-body { max-width: 860px; }
.ws-check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; cursor: pointer; line-height: 1.7; }
.ws-check input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 4px; }
.ws-memory-text { color: var(--text, #182230) !important; font-size: 15px !important; white-space: pre-wrap; }
.ws-page a:focus-visible, .ws-page button:focus-visible, .ws-page input:focus-visible, .ws-page select:focus-visible, .ws-field textarea:focus-visible, .ws-page summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.ws-page .ws-eyebrow { font-size: 12px; line-height: 1.6; font-weight: 450; color: var(--muted); margin: 0 0 6px; }
.ws-row .ws-eyebrow { margin-bottom: 6px; }
.ws-row-purpose { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ws-page .ws-demo-boundary { margin: 12px 0 22px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.ws-collection-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; }
.ws-collection-summary > span { color: var(--text); }
.ws-collection-summary > p { margin: 0 0 0 auto; font-size: 12px; color: var(--muted); }
.ws-method-outcome { display: flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid var(--border); border-radius: var(--radius, 12px); padding: 22px 24px; background: var(--surface); }
.ws-method-outcome > div { min-width: 0; }
.ws-method-outcome > button { flex: 0 0 auto; white-space: nowrap; }
.ws-method-outcome h2 { margin-bottom: 6px; font-size: 19px; }
.ws-method-outcome p:not(.ws-eyebrow) { margin: 0; font-size: 14px; color: var(--muted); }
.ws-tone-success { border-left: 3px solid var(--green); }
.ws-tone-warning { border-left: 3px solid var(--amber); }
.ws-tone-danger { border-left: 3px solid var(--red); }
.ws-tone-neutral { border-left: 3px solid var(--primary); }
.ws-definition > .ws-eyebrow:not(:first-child) { margin-top: 24px; }
.ws-result-overview { border: 1px solid var(--border); border-radius: 10px; padding: 20px; background: var(--surface); }
.ws-result-overview.ws-tone-success { border-left: 3px solid var(--green); }
.ws-result-overview.ws-tone-warning { border-left: 3px solid var(--amber); }
.ws-result-overview.ws-tone-danger { border-left: 3px solid var(--red); }
.ws-result-overview.ws-tone-neutral { border-left: 3px solid var(--primary); }
.ws-result-overview h3 { font-size: 18px; margin: 0 0 8px; }
.ws-result-overview p:not(.ws-eyebrow) { font-size: 14px; color: var(--muted); margin: 0; }
.ws-result-counts { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.ws-result-counts b { font-size: 17px; font-weight: 600; color: var(--text); margin-right: 3px; }
.ws-stale-score { padding: 12px 14px; background: var(--amber-soft); border-radius: 8px; font-size: 13px; margin: 12px 0 18px; }
.ws-observation { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; }
.ws-lineage .ws-link { justify-content: flex-start; text-align: left; padding-left: 0; }
.ws-change-log > summary { font-weight: 550; font-size: 14px; line-height: 1.8; }
.ws-change-log[open] > summary { margin-bottom: 12px; }
.ws-inline-count { font-size: 12px; font-weight: 450; color: var(--muted); margin-left: 6px; }
.ws-research-conclusion { padding: 16px; background: var(--canvas); border-radius: 8px; margin-bottom: 20px; }
.ws-research-conclusion ~ .ws-eyebrow { margin-top: 20px; }
.ws-page h1, .ws-page h2, .ws-page h3, .ws-page h4 { font-weight: 700; color: var(--ink); }
.ws-page .ws-field-label { font-size: 13px; line-height: 1.7; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.ws-page p.ws-field-label { font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.ws-content-field + .ws-content-field { margin-top: 24px; }
.ws-field-value { min-width: 0; padding-left: 0; }
.ws-prose .reading-copy { font-size: 15px; line-height: 1.9; color: var(--ink); font-weight: 400; }
.ws-prose .reading-copy > p { margin: 0 0 10px; font-weight: 400; color: var(--ink); white-space: pre-wrap; }
.ws-prose .reading-copy > p:last-child { margin-bottom: 0; }
.ws-field-value .ws-prose .reading-copy > p { text-indent: 0; }
.ws-result-explanation { padding-left: 14px; border-left: 1px solid var(--border); margin-top: 12px; }
.ws-result-explanation .reading-copy { padding-inline-start: 0; }
.ws-method-outcome p.ws-field-label { margin-bottom: 10px; }
.ws-page .ws-result-explanation .reading-copy > p { margin-bottom: 8px; color: var(--ink); font-weight: 400; }
.ws-page .ws-result-explanation .reading-copy > p:last-child { margin-bottom: 0; }
.ws-result-counts > span { font-weight: 600; }
.ws-result-counts > span > b { color: inherit; font-weight: 700; }
.ws-page .ws-semantic-info, .ws-page p.ws-semantic-info { color: var(--info, #2457a6); }
.ws-page .ws-semantic-success, .ws-page p.ws-semantic-success { color: var(--green); }
.ws-page .ws-semantic-warning, .ws-page p.ws-semantic-warning { color: var(--amber); }
.ws-page .ws-semantic-danger, .ws-page p.ws-semantic-danger { color: var(--red); }
.ws-comparison caption { font-weight: 700; color: var(--ink); }
.ws-comparison thead th { font-weight: 600; color: var(--ink); }
.ws-comparison tbody th { font-weight: 600; }
.ws-comparison .tag { font-weight: 600; }
.ws-case-finding.ws-semantic-danger, .ws-case-finding.ws-semantic-warning { font-weight: 600; }
.ws-case-context .ws-content-field + .ws-content-field { margin-top: 16px; }
.ws-case-context .ws-field-value { padding-left: 0; }
.ws-case-context .ws-prose .reading-copy { font-size: 13px; }
.ws-case-context .ws-field-label { font-weight: 600; }
.ws-case-context li { margin: 5px 0; padding-left: 4px; color: var(--ink); font-weight: 400; }
.ws-evaluation .ws-facts dt { font-weight: 600; color: var(--ink); }
.ws-evaluation .ws-facts dt.ws-semantic-warning { color: var(--amber); }
.ws-evaluation .ws-facts dd { padding-left: 12px; font-weight: 400; color: var(--ink); }
.ws-evaluation .ws-facts .reading-copy { padding-inline-start: 0; }
.ws-evaluation .ws-facts .reading-copy > p { text-indent: 0; }
.ws-frozen-copy h4 { font-size: 15px; line-height: 1.7; margin: 8px 0 20px; }
.ws-snapshot-diff h4 { font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
.ws-snapshot-diff .ws-content-field + .ws-content-field { margin-top: 18px; }
.ws-research-detail .ws-source a { color: var(--info, #2457a6); font-weight: 600; }
.ws-research-conclusion { background: transparent; border-left: 2px solid var(--info, #2457a6); border-radius: 0; padding: 4px 0 4px 16px; margin-bottom: 24px; }
.ws-evaluation-conditions > summary, .ws-evaluation-diff > summary, .ws-evaluation-history > summary, .ws-change-log > summary { font-weight: 700; color: var(--ink); }
@media (max-width: 1100px) { .ws-two-column { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (max-width: 640px) {
  .ws-section { padding: 18px 16px; margin-bottom: 16px; }
  .ws-section-head { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .ws-filters { gap: 10px; }
  .ws-filters > label { flex-basis: calc(50% - 10px); }
  .ws-filters > label:first-child { flex-basis: 100%; }
  .ws-filters button { width: 100%; min-height: 44px; }
  .ws-row { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 16px 0; }
  .ws-list { padding: 0 16px; }
  .ws-row > div:first-child { flex-basis: 100%; }
  .ws-row-meta { display: flex; flex-wrap: wrap; width: 100%; max-width: none; justify-content: space-between; align-items: center; }
  .ws-row .ws-actions { margin-top: 0; }
  .ws-form-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ws-link { min-height: 44px; }
  .ws-tabs { gap: 0; }
  .ws-tabs a { padding: 10px 12px; }
  .ws-facts { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; }
  .ws-collection-summary { gap: 8px 18px; }
  .ws-collection-summary > p { flex-basis: 100%; margin: 0; }
  .ws-method-outcome { padding: 18px 16px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .ws-method-outcome h2 { font-size: 17px; }
  .ws-result-overview { padding: 16px; }
  .ws-comparison-scroll { overflow: visible; }
  .ws-comparison { display: block; }
  .ws-comparison caption { display: block; }
  .ws-comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ws-comparison tbody { display: grid; gap: 14px; }
  .ws-comparison tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
  .ws-comparison tbody th { grid-column: 1 / -1; min-width: 0; font-size: 14px; }
  .ws-comparison th, .ws-comparison td { padding: 10px 12px; min-width: 0; }
  .ws-comparison td:nth-child(2), .ws-comparison td:nth-child(3) { display: flex; align-items: center; gap: 8px; }
  .ws-comparison td:nth-child(2)::before { content: '原方法'; color: var(--muted); font-size: 12px; }
  .ws-comparison td:nth-child(3)::before { content: '本候选'; color: var(--muted); font-size: 12px; }
  .ws-comparison td:nth-child(4) { grid-column: 1 / -1; border-bottom: 0; }
  .ws-case-trace summary { min-height: 36px; display: list-item; padding-top: 4px; }
  .ws-field-value { padding-left: 0; }
  .ws-prose .reading-copy > p { line-height: 1.9; }
  .ws-field-value .ws-prose .reading-copy > p { text-indent: 0; }
  .ws-evaluation .ws-facts dd { padding-left: 6px; }
  .ws-result-explanation { padding-left: 10px; }
}

/* refinement.css */
/* 统一阅读层级与交互质感；模块布局保留，各页共享同一套语义色。 */
:root {
  --canvas: #f7f8f5;
  --paper: #fff;
  --surface: #fff;
  --panel: #fff;
  --ink: #202e2a;
  --text: #202e2a;
  --muted: #61706a;
  --line: #e1e7e1;
  --border: #e1e7e1;
  --blue: #236656;
  --primary: #236656;
  --accent: #236656;
  --blue-soft: #edf5ef;
  --accent-soft: #edf5ef;
  --green: #2c7153;
  --green-soft: #edf6ee;
  --amber: #88591b;
  --amber-soft: #fbf4e8;
  --red: #ae3b3b;
  --red-soft: #fbedec;
  --radius: 12px;
  --shadow-soft: 0 2px 5px #23392f04, 0 8px 24px #23392f03;
  -webkit-font-smoothing: antialiased;
}
body { line-height: 1.7; }
h1 { font-size: 30px; line-height: 1.4; font-weight: 600; letter-spacing: -.7px; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; }
small, .muted { font-size: 13px; }
.ui-icon { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, a { transition: color 140ms, background-color 140ms, border-color 140ms, box-shadow 140ms; }
button:disabled { opacity: .5; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible,
.ws-page a:focus-visible, .ws-page button:focus-visible, .ws-page input:focus-visible, .ws-page select:focus-visible { outline: 3px solid #83b9a9; outline-offset: 3px; }
input, select, textarea { border-color: #ccd6ce; border-radius: 8px; background: #fff; padding: 9px 12px; }
input:hover, select:hover, textarea:hover { border-color: #aebdb2; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); }
::placeholder { color: #87928b; }
.app-shell { grid-template-columns: 220px minmax(0,1fr); }
.sidebar { padding: 24px 14px 16px; background: #f1f4ee; border-color: #dfe6dc; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 8px 29px; padding: 0; color: var(--ink); }
.brand .brand-symbol { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; background: var(--primary); color: white; border-radius: 11px; margin: 0; font-size: 22px; font-weight: 600; line-height: 1; }
.brand-symbol .ui-icon { width: 21px; height: 21px; }
.brand .brand-copy { color: var(--ink); font-size: 17px; line-height: 24px; font-weight: 600; margin: 0; letter-spacing: -.3px; }
.brand-copy small { display: block; color: var(--muted); font-size: 11px; line-height: 17px; font-weight: 400; margin-top: 2px; letter-spacing: .4px; }
.space-switch { justify-content: flex-start; gap: 9px; padding: 10px; border-color: #dce4d9; border-radius: 9px; font-size: 13px; background: #fafbf8; min-height: 48px; }
.space-switch:hover { background: white; border-color: #bccabd; }
.space-switch small { display: inline-flex; justify-content: center; align-items: center; width: 25px; height: 25px; font-size: 11px; background: #e6ecde; color: #4a6342; border-radius: 7px; padding: 0; }
.space-tail { margin-left: auto; color: var(--muted); }
.space-tail .ui-icon { width: 13px; height: 13px; transform: rotate(90deg); }
.nav-caption { font-size: 11px; color: #7b897e; padding: 0 14px; margin-top: 29px; letter-spacing: 1px; }
.sidebar nav { gap: 5px; margin-top: 10px; }
.sidebar nav a, .sidebar-bottom>a { padding: 9px 14px; min-height: 41px; gap: 12px; color: #586a5f; font-size: 14px; border-radius: 8px; }
.sidebar nav a .ui-icon { color: #6f8072; width: 19px; height: 19px; }
.sidebar nav a:hover, .sidebar-bottom>a:hover { background: #e7eee3; color: var(--ink); }
.sidebar nav a.active, .sidebar-bottom>a.active { background: #dfece0; color: #255540; font-weight: 600; }
.sidebar nav a.active .ui-icon { color: #316749; }
.sidebar-bottom { padding-top: 24px; gap: 4px; }
.sidebar-bottom .nav-caption { margin: 0 0 7px; }
.sidebar-utilities { display: flex; gap: 12px; border-top: 1px solid #dce4d9; padding: 14px 9px 0; margin-top: 17px; }
.sidebar-bottom .text-button { padding: 4px 0; font-size: 11px; min-height: 32px; }
.sidebar-collapsed { grid-template-columns: 88px minmax(0,1fr); }
.sidebar-collapsed .sidebar { padding-inline: 9px; }
.sidebar-collapsed .brand { justify-content: center; margin: 0 0 22px; }
.sidebar-collapsed .brand .brand-symbol { display: flex; }
.sidebar-collapsed .brand-copy, .sidebar-collapsed .nav-caption, .sidebar-collapsed .space-tail, .sidebar-collapsed #identity-name { display: none; }
.sidebar-collapsed .space-switch { padding: 7px 3px; min-height: 36px; justify-content: center; font-size: 11px; }
.sidebar-collapsed .sidebar nav { margin-top: 20px; gap: 5px; }
.sidebar-collapsed .sidebar nav a { flex-direction: column; gap: 3px; padding: 8px 2px; font-size: 11px; line-height: 18px; }
.sidebar-collapsed .sidebar-bottom>a { padding: 6px 2px; font-size: 11px; min-height: 34px; }
.sidebar-collapsed .sidebar-bottom>a>[data-icon] { display: none; }
.sidebar-collapsed .sidebar-utilities { display: grid; gap: 1px; padding: 10px 0 0; margin-top: 7px; }
.topbar { height: 64px; padding: 0 32px; background: #fcfdfa; border-color: var(--line); }
.topbar-context { display: flex; align-items: center; gap: 12px; min-width: 0; }
#page-location { font-size: 13px; font-weight: 500; color: #58655e; white-space: nowrap; }
.demo-label { display: inline-flex; border: 1px solid #e0e6dc; padding: 3px 8px; border-radius: 5px; font-size: 10px; background: #f6f8f2; color: #6b776b; line-height: 18px; }
.demo-label:hover { background: #ecf1e7; }
.topbar-actions { gap: 16px; }
.topbar .text-button { color: #607168; font-size: 12px; gap: 7px; }
.topbar .ui-icon { width: 16px; height: 16px; }
.search-entry kbd { font: 10px/17px "PingFang SC",sans-serif; color: #7d887f; background: #f2f5ef; border: 1px solid #e2e8de; border-radius: 3px; padding: 0 4px; margin-left: 9px; }
.execution-entry { border: 1px solid #dce5d9; border-radius: 8px; font-size: 11px; background: #fff; padding: 7px 10px; gap: 8px; }
.execution-entry .execution-caption { display: none; }
.execution-entry:hover { border-color: #acc1ad; background: #f7faf5; }
#main { padding: 34px 36px 60px; max-width: 1510px; }
.page-heading { margin-bottom: 27px; align-items: center; }
.page-heading p { font-size: 14px; line-height: 1.8; margin-top: 8px; max-width: 780px; }
.primary, .secondary, .danger, .text-button { border-radius: 8px; font-size: 13px; line-height: 20px; gap: 7px; min-height: 38px; }
.primary { background: var(--primary); border-color: var(--primary); box-shadow: 0 1px 2px #18392b15; padding: 9px 15px; }
.primary:hover { background: #1b5144; border-color: #1b5144; }
.primary:active { background: #143e34; }
.secondary { border-color: #d2dcd3; box-shadow: 0 1px 2px #17372c05; padding: 8px 13px; color: #405749; }
.secondary:hover { background: #f4f8f1; border-color: #adbfaf; }
.text-button { padding: 7px 5px; }
.text-button:hover { background: #eaf2e7; }
.tag { font-size: 12px; line-height: 19px; padding: 2px 8px; border-radius: 5px; background: #f0f3ed; color: #657367; }
.tag, .tag.danger { min-height: 0; border: 0; box-shadow: none; }
.tag.green, .tag.success { background: var(--green-soft); color: var(--green); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.amber, .tag.warning { background: var(--amber-soft); color: var(--amber); }
.tag.red, .tag.danger { background: var(--red-soft); color: var(--red); }
.section, .panel, .ws-section { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow-soft); padding: 24px; margin-bottom: 22px; }
.section-head, .ws-section-head { margin-bottom: 18px; }
.section-head h2 { font-size: 16px; display: flex; align-items: center; gap: 9px; }
.section-head>span, .section-head>a { font-size: 12px; }
.section-head>a { display: flex; gap: 6px; align-items: center; }
.section-head>a .ui-icon { width: 14px; height: 14px; }
.section-count { display: inline-flex; min-width: 20px; justify-content: center; align-items: center; font-size: 11px; line-height: 20px; border-radius: 5px; padding-inline: 5px; font-weight: 500; background: #f0f3ec; color: #667961; }
.empty { padding: 37px 22px; }
.empty-symbol { display: inline-flex; width: 39px; height: 39px; background: #eef4e9; color: #6f8866; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 16px; }
.empty-symbol .ui-icon { width: 22px; height: 22px; }
.empty p { font-size: 13px; max-width: 460px; margin-inline: auto; }
.field { font-size: 13px; gap: 6px; }
.field>span, .as-field>label { color: #485f50; }
.field input, .field select, .field textarea { font-size: 1rem; }
.ws-filters .field { margin-bottom: 0; }
.ws-filters, .dev-filters { padding: 17px 20px; background: #f0f4ed; border: 1px solid #e4eadd; border-radius: 10px; }
.tabs, .ws-tabs, .dev-tabs { border-color: var(--line); }
.dev-tabs { display: flex; align-items: center; gap: 26px; border-bottom: 1px solid var(--line); margin: 0 0 24px; }
.dev-tabs a { display: inline-flex; align-items: center; padding: 10px 2px; min-height: 45px; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.ws-tabs a, .dev-tabs a { color: var(--muted); }
.tabs a.active, .ws-tabs a[aria-current=page], .dev-tabs a.active { color: var(--primary); border-color: var(--primary); }
.notice, .ws-notice { background: #f0f5ec; border-left-color: #9caf92; color: #586853; border-radius: 0 7px 7px 0; font-size: 12px; line-height: 1.8; padding: 11px 15px; }
.connection-notice { color: var(--amber); }
.back-link { display: inline-flex; align-items: center; min-height: 30px; font-size: 12px; margin-bottom: 12px; }
/* 首页：决定、工作与已验证方法分开，草稿不混入任务状态。 */
.today-date { color: #74806f; font-size: 12px; margin: 0 0 10px; }
[data-page=today] .page-heading { margin-bottom: 32px; }
[data-page=today] h1 { font-size: 34px; letter-spacing: -1px; }
.today-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(255px,.4fr); gap: 24px; align-items: start; }
.today-main, .today-side { min-width: 0; }
.attention-section { border-top: 3px solid #87a77b; }
.task-row { gap: 13px; padding: 19px 0; border-color: #e9ede5; }
.task-row:last-child { padding-bottom: 0; }
.task-state-mark, .draft-symbol, .method-symbol { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; background: #f2f5ef; color: #7b8e72; }
.task-state-mark .ui-icon { width: 16px; height: 16px; }
.task-state-mark.amber { color: #a27c42; background: #fbf6eb; }
.task-state-mark.green, .task-state-mark.blue { color: #5c8653; background: #eef5e8; }
.task-main { gap: 6px; }
.row-title { font-size: 15px; line-height: 1.65; font-weight: 550; }
.row-meta { font-size: 13px; color: #697864; line-height: 1.7; }
.meta-separator { padding: 0 7px; color: #b4bdb0; }
.row-action { display: grid; gap: 5px; justify-items: end; flex: 0 0 auto; }
.row-next { font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.row-next .ui-icon { width: 13px; height: 13px; }
.draft-row { display: flex; align-items: center; gap: 12px; padding: 15px 0; color: var(--ink); border-top: 1px solid #e9ede5; }
.draft-row:last-child { padding-bottom: 0; }
.draft-row:hover .row-title { color: var(--primary); }
.draft-symbol { background: #f4f5f0; }
.draft-row .row-title { font-size: 13px; font-weight: 500; }
.calm-empty { padding: 10px 4px 15px; display: flex; flex-direction: column; align-items: flex-start; }
.calm-empty strong { font-size: 13px; font-weight: 500; }
.calm-empty p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.quiet-empty { font-size: 13px; color: #75816f; line-height: 1.9; padding: 8px 0; }
.today-side .section { padding: 21px; }
.today-side .task-row { flex-wrap: wrap; gap: 10px; }
.today-side .task-main { flex-basis: 65%; }
.today-side .row-action { display: flex; width: 100%; justify-content: space-between; }
.method-summary { background: #f9fbf6; }
.method-summary-row { display: flex; align-items: flex-start; gap: 10px; color: #496144; padding: 13px 0; font-size: 13px; line-height: 1.7; border-top: 1px solid #e6edde; }
.method-summary-row>span:nth-child(2) { flex: 1; }
.method-summary-row>.ui-icon { margin-top: 5px; width: 13px; height: 13px; }
.method-summary-row small { display: block; font-size: 11px; color: #7b8b73; margin-top: 4px; }
.method-symbol { width: 29px; height: 29px; flex-basis: 29px; background: #edf3e6; color: #78966a; border-radius: 8px; }
.method-symbol .ui-icon { width: 16px; height: 16px; }
.method-summary-note { font-size: 11px; color: #839078; margin-top: 10px; }
.quiet-help { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; color: #718066; font-size: 12px; }
.quiet-help .ui-icon { width: 14px; height: 14px; }
/* 资料与扩展工具沿用轻列表，不再让所有信息同等突出。 */
.ws-list { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; padding: 0 22px; box-shadow: var(--shadow-soft); }
.ws-row { padding: 21px 0; border-color: #e9eee6; }
.ws-row:last-child { border-bottom: 0; }
.ws-row-title { font-size: 15px; font-weight: 550; }
.ws-row p { max-width: 750px; font-size: 13px; }
.ws-link:hover { background: #eaf2e6; }
.ws-link-primary:hover { background: #1b5144; }
.ws-facts { font-size: 14px; line-height: 1.8; }
.ws-prose { font-size: 14px; line-height: 1.9; }
.ws-history time { color: #7e8b78; }
.ws-comparison thead th { background: #f3f7ee; }
.tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 26px; color: var(--ink); min-height: 205px; box-shadow: var(--shadow-soft); }
.tool-card:hover { border-color: #b3c5ab; background: #fcfef9; }
.tool-card .tool-symbol { color: #6f9160; display: inline-flex; width: 36px; height: 36px; background: #eff5e8; border-radius: 10px; align-items: center; justify-content: center; margin-bottom: 16px; }
.tool-card h2 { font-size: 17px; margin: 0 0 8px; }
.tool-card p { font-size: 13px; line-height: 1.85; color: var(--muted); }
.tool-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 22px; font-size: 12px; color: #75876b; }
/* 抽屉、表单与低调反馈。 */
dialog { border-color: var(--line); border-radius: 14px; box-shadow: 0 24px 80px #19332726; }
dialog::backdrop { background: #20362c40; backdrop-filter: blur(2px); }
.drawer { border-radius: 16px 0 0 16px; width: 680px; }
.dialog-head { padding: 22px 28px; background: #fcfefa; border-color: var(--line); }
.dialog-head h2 { font-size: 18px; }
.dialog-content { padding: 25px 28px; }
.dialog-actions { background: #fbfdf8; border-color: var(--line); padding: 17px 28px; }
.dialog-content>h3 { font-size: 14px; color: #60745a; margin: 26px 0 13px; }
.dialog-content>h3:first-child { margin-top: 0; }
.dialog-content p { font-size: 14px; line-height: 1.85; }
.dialog-content details { border-color: var(--line); }
.dialog-content summary { padding-block: 8px; font-size: 13px; }
.dialog-content .ws-facts { font-size: 13px; }
.notice-row { border-color: var(--line); padding: 17px 4px; }
.notice-row strong { font-size: 14px; font-weight: 500; }
.notice-row:not(.read)::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #81a469; }
#toast { background: #263b2e; border: 1px solid #466048; padding: 12px 18px; border-radius: 10px; font-size: 13px; box-shadow: 0 9px 28px #253c2526; }
#toast:not(.visible) { visibility: hidden; }
.form-error { border-radius: 0 7px 7px 0; }
.ws-notice + .ws-two-column { margin-top: 8px; }
@media(min-width:1600px) { #main { padding-inline: 46px; } }
@media(max-width:1180px) {
  .app-shell { grid-template-columns: 192px minmax(0,1fr); }
  .sidebar-collapsed { grid-template-columns: 88px minmax(0,1fr); }
  .brand { gap: 9px; margin-inline: 4px; }
  .brand .brand-copy { font-size: 15px; }
  .brand-copy small { font-size: 10px; }
  .brand .brand-symbol { flex-basis: 32px; width: 32px; height: 32px; }
  .topbar { padding-inline: 24px; }
  .topbar-actions { gap: 12px; }
  .topbar .demo-label>span { display: none; }
  #main { padding: 28px 26px 50px; }
  .today-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .today-side { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
  .quiet-help { grid-column: 1/-1; margin-top: -8px; }
  .search-entry kbd { display: none; }
}
@media(max-width:900px) and (min-width:761px) {
  .execution-entry { max-width: 150px; }
  .topbar-context .demo-label { display: none; }
  .sidebar .nav-caption { margin-top: 23px; }
  .sidebar-bottom .nav-caption { margin-top: 0; }
}
@media(max-width:760px) {
  .app-shell, .app-shell.sidebar-collapsed { display: block; }
  .sidebar { padding: 13px 16px 0; grid-template-columns: 1fr auto; background: #f1f5ed; border-bottom: 1px solid #dce5d7; }
  .brand, .sidebar-collapsed .brand { margin: 0; justify-content: flex-start; gap: 8px; }
  .brand .brand-symbol, .sidebar-collapsed .brand .brand-symbol { display: flex; width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; }
  .brand-symbol .ui-icon { width: 17px; height: 17px; }
  .brand .brand-copy, .sidebar-collapsed .brand-copy { display: block; font-size: 15px; }
  .brand-copy small, .nav-caption, .sidebar-collapsed .nav-caption { display: none; }
  .space-switch, .sidebar-collapsed .space-switch { min-height: 33px; padding: 5px 8px; gap: 7px; border-radius: 7px; font-size: 11px; max-width: 147px; }
  .space-switch small, .sidebar-collapsed #identity-name { display: none; }
  .sidebar nav, .sidebar-collapsed .sidebar nav { margin-top: 10px; gap: 0; }
  .sidebar nav a, .sidebar-collapsed .sidebar nav a { display: flex; flex-direction: row; gap: 0; font-size: 13px; padding: 10px 2px; min-height: 43px; border-radius: 0; color: #6c7b64; }
  .sidebar nav a .ui-icon { display: none; }
  .sidebar nav a.active { color: #23573c; background: transparent; border-bottom: 2px solid #568354; }
  .sidebar-bottom { display: none; }
  .topbar { padding: 8px 16px; min-height: 48px; gap: 8px; }
  #page-location { display: none; }
  .topbar-context { flex: 0 0 auto; }
  .demo-label { font-size: 9px; padding: 1px 5px; border-color: #e4eadf; }
  .demo-label span { display: none; }
  .topbar-actions { gap: 9px; }
  .topbar .text-button { font-size: 11px; gap: 4px; min-height: 34px; padding: 4px 0; }
  .topbar .ui-icon { width: 13px; height: 13px; }
  .topbar .execution-entry { max-width: 124px; font-size: 9px; padding: 4px 6px; gap: 4px; min-height: 31px; }
  .execution-entry [data-icon] { display: none; }
  #main { padding: 23px 16px 38px; }
  .page-heading { gap: 13px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 25px; line-height: 1.5; }
  .page-heading p { font-size: 13px; line-height: 1.8; margin-top: 6px; }
  .page-heading .actions { flex-shrink: 1; }
  .primary, .secondary, .danger { min-height: 44px; padding: 10px 12px; }
  .section, .panel, .ws-section { padding: 19px 17px; margin-bottom: 18px; border-radius: 11px; }
  .section-head h2 { font-size: 16px; }
  .section-head>span, .section-head>a { font-size: 11px; }
  [data-page=today] h1 { font-size: 28px; }
  [data-page=today] .page-heading { margin-bottom: 25px; flex-wrap: nowrap; }
  [data-page=today] .page-heading p { max-width: 210px; font-size: 12px; }
  [data-page=today] .page-heading .primary { font-size: 12px; padding-inline: 11px; }
  .today-date { font-size: 11px; margin-bottom: 8px; }
  .today-side { display: block; }
  .today-side .section { padding: 19px 17px; }
  .task-row { gap: 10px; padding: 17px 0; flex-wrap: nowrap; align-items: flex-start; }
  .task-state-mark { flex-basis: 26px; width: 26px; height: 26px; border-radius: 7px; margin-top: 2px; }
  .task-state-mark .ui-icon { width: 14px; height: 14px; }
  .task-main { flex: 1 1 auto; }
  .row-title { font-size: 14px; line-height: 1.7; }
  .row-meta { font-size: 12px; }
  .row-action { gap: 9px; max-width: 86px; }
  .row-next { width: auto; font-size: 12px; white-space: nowrap; padding: 0; }
  .row-next .ui-icon { display: none; }
  .tag, .tag.danger { min-height: 0; font-size: 11px; padding: 2px 6px; }
  .draft-row { align-items: flex-start; gap: 9px; }
  .draft-symbol { width: 26px; height: 26px; flex-basis: 26px; }
  .draft-symbol .ui-icon { width: 14px; height: 14px; }
  .draft-row .row-next { padding-top: 4px; }
  .draft-row .row-title { font-size: 13px; }
  .today-side .task-row { flex-wrap: wrap; }
  .today-side .task-main { flex-basis: 65%; }
  .today-side .row-action { max-width: none; }
  .quiet-help { margin: 4px 0 0; }
  .tool-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .tool-card { padding: 22px; min-height: 190px; }
  .ws-list { padding-inline: 16px; }
  .ws-row { padding: 18px 0; }
  .ws-filters, .dev-filters { padding: 15px; }
  .ws-facts { font-size: 13px; }
  .ws-tabs a { font-size: 13px; padding: 10px 11px; }
  .dev-tabs { gap: 24px; margin-bottom: 20px; }
  .dev-tabs a { font-size: 13px; padding-inline: 0; }
  .dialog-head { padding: 19px 18px; }
  .dialog-content { padding: 21px 18px; }
  .dialog-actions { padding: 16px 18px; }
  .drawer { border-radius: 0; max-width: 100vw; width: 100vw; }
  .field input, .field select, .field textarea { font-size: max(16px, 1rem); }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* typography.css */
/* 阅读层级：字重建立结构，段落建立节奏，语义色只指出重点。 */
:root {
  --info: #2457a6;
  --info-soft: #eff4fd;
  --heading: #17242d;
  --body-copy: #34424c;
}
#main h1 { font-size: 30px; font-weight: 700; color: var(--heading); line-height: 1.4; }
#main h2, .dialog-head h2 { font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--heading); }
#main h3, .dialog-content h3 { font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--heading); }
#main .row-title, #main .dev-task-link { font-weight: 600; color: var(--heading); }
#main .section-head h2, #main .ws-section-head h2 { font-size: 20px; }
.reading-copy { font-size: 15px; line-height: 1.9; font-weight: 400; color: var(--body-copy); overflow-wrap: anywhere; min-width: 0; }
.reading-copy--indent { padding-inline-start: 18px; }
.reading-copy p { margin: 0; font: inherit; color: inherit; white-space: pre-wrap; }
.reading-copy p + p { margin-top: 10px; }
.content-key { font-weight: 700; }
.content-key--info { color: var(--info); }
.content-key--warning { color: var(--amber); }
.content-key--success { color: var(--green); }
.content-key--danger { color: var(--red); }
.tag.blue { color: var(--info); background: var(--info-soft); }
.tag.green, .tag.success { color: var(--green); }
.tag { font-weight: 600; }
.field>span, .as-field { font-weight: 600; }
.field input, .field textarea, .field select, .as-field input, .as-field textarea { font-weight: 400; }
.field small, .as-field>span { font-weight: 400; }
.dev-contract .section-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.dev-contract .dev-reading { max-width: 100%; margin-bottom: 26px; }
.dev-contract .dev-reading h3, .dialog-content .dev-reading h3 { font-size: 16px; font-weight: 700; color: var(--heading); margin: 0 0 10px; }
.dev-contract .dev-reading .reading-copy { max-width: 68ch; }
.dev-contract .dev-reading p, .dialog-content .dev-reading p { font-size: 15px; font-weight: 400; color: var(--body-copy); line-height: 1.9; }
.dev-contract>.dev-reading+.dev-reading { border: 0; padding-top: 0; }
.dev-responsibilities { padding-block: 23px 5px; margin-bottom: 21px; border-block: 1px solid var(--line); gap: 30px; }
.dev-responsibilities .dev-reading h3 { display: flex; align-items: center; gap: 9px; }
.dev-responsibilities .dev-reading h3::before { content: ''; width: 4px; height: 17px; border-radius: 2px; background: var(--info); flex: none; }
.dev-responsibilities .dev-reading--assistant h3::before { background: var(--primary); }
.dev-responsibilities .reading-copy { padding-inline-start: 13px; }
.dev-responsibilities .reading-copy p + p { margin-top: 8px; }
.dev-readable-list { padding-inline-start: 38px; margin: 8px 0 0; color: var(--body-copy); }
.dev-readable-list li { padding: 5px 0 5px 4px; line-height: 1.9; }
.dev-readable-list li + li { margin-top: 7px; }
.dev-readable-list li::marker { color: var(--info); font-weight: 700; }
.dev-boundary { border-top: 3px solid var(--info); }
.dev-boundary h2 { margin-bottom: 22px; }
.dev-boundary .dev-facts { display: block; margin-top: 0; }
.dev-boundary .dev-facts dt { font-size: 14px; font-weight: 600; color: var(--heading); margin: 26px 0 8px; }
.dev-boundary .dev-facts dt:first-child { margin-top: 0; }
.dev-boundary .dev-facts dd { padding-inline-start: 16px; font-size: 15px; line-height: 1.9; }
.dev-boundary .dev-facts dd>.content-key--info { font-size: 18px; }
.dev-boundary .dev-facts dd.dev-boundary-exclusion { border-left: 3px solid #d8a354; padding-left: 13px; margin-left: 2px; }
.dev-budget-value { font-size: 22px; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.dev-status-line { background: white; border-left: 3px solid var(--info); }
.dev-status-copy p { padding-inline-start: 14px; color: var(--body-copy); }
.dev-status-copy h2 { margin-bottom: 10px; }
.dev-step-current>div:nth-child(2)>h3 { color: var(--info) !important; }
.dev-step-current .dev-step-index { background: var(--info); }
.dev-technical>summary { font-weight: 700; font-size: 15px; color: var(--heading); }
.dev-facts dt, .dev-comparison h3 { font-weight: 600; }
.dev-prose { padding-inline-start: 18px; line-height: 1.9; }
.dev-checks { padding-inline-start: 14px; }
@media(max-width:760px) {
  #main h1 { font-size: 25px; }
  #main h2, #main .section-head h2, #main .ws-section-head h2, .dialog-head h2 { font-size: 19px; }
  #main h3, .dialog-content h3 { font-size: 16px; }
  .reading-copy--indent { padding-inline-start: 12px; }
  .dev-contract .section-head { padding-bottom: 16px; margin-bottom: 22px; }
  .dev-contract .dev-reading { margin-bottom: 23px; }
  .dev-responsibilities { gap: 0; padding-top: 21px; margin-bottom: 21px; }
  .dev-readable-list { padding-inline-start: 28px; }
  .dev-boundary .dev-facts dt { margin-top: 22px; }
  .dev-boundary .dev-facts dd { padding-inline-start: 12px; }
  .dev-status-copy p { padding-inline-start: 0; }
  .dev-checks { padding-inline-start: 0; }
}

/* density.css */
/* 默认 100% 比例的工作密度。只压缩桌面空间，不整体缩放页面。 */
@media (min-width:761px) {
  :root { --desktop-sidebar: 184px; --desktop-topbar: 48px; }
  body { font-size: 14px; line-height: 1.65; }
  .app-shell { grid-template-columns: var(--desktop-sidebar) minmax(0,1fr); }
  .app-shell.sidebar-collapsed { grid-template-columns: 72px minmax(0,1fr); }
  .sidebar { padding: 16px 10px 12px; }
  .brand { gap: 9px; margin: 0 6px 18px; }
  .brand .brand-symbol { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; font-size: 20px; }
  .brand .brand-copy { font-size: 15px; line-height: 21px; }
  .brand-copy small { font-size: 10px; line-height: 16px; margin-top: 0; }
  .space-switch { min-height: 38px; padding: 7px 9px; font-size: 12px; }
  .space-switch small { width: 22px; height: 22px; }
  .nav-caption { margin-top: 18px; padding-inline: 12px; }
  .sidebar nav { margin-top: 6px; gap: 3px; }
  .sidebar nav a, .sidebar-bottom>a { min-height: 36px; padding: 6px 12px; gap: 9px; font-size: 13px; }
  .sidebar nav a .ui-icon { width: 18px; height: 18px; }
  .sidebar-bottom { padding-top: 16px; gap: 2px; }
  .sidebar-utilities { margin-top: 10px; padding: 9px 7px 0; gap: 10px; }
  .sidebar-bottom .text-button { min-height: 28px; }
  .sidebar-collapsed .brand { margin-bottom: 14px; }
  .sidebar-collapsed .sidebar nav { margin-top: 12px; gap: 2px; }
  .sidebar-collapsed .sidebar nav a { padding: 5px 0; gap: 2px; font-size: 11px; }
  .sidebar-collapsed .sidebar-bottom>a { padding: 4px 0; min-height: 30px; font-size: 11px; }
  .topbar { height: var(--desktop-topbar); min-height: var(--desktop-topbar); padding: 0 24px; gap: 12px; }
  .topbar-actions { gap: 12px; }
  .topbar .text-button { min-height: 30px; padding-block: 3px; }
  .execution-entry { min-height: 30px; padding: 4px 9px; }
  #main { padding: 18px 24px 32px; max-width: 1500px; }
  #main h1 { font-size: 24px; font-weight: 700; line-height: 1.35; }
  #main h2, #main .section-head h2, #main .ws-section-head h2, .dialog-head h2 { font-size: 18px; font-weight: 700; line-height: 1.45; }
  #main h3, .dialog-content h3 { font-size: 15px; font-weight: 700; line-height: 1.55; }
  #main .as-list-head h2 { font-size: 14px; }
  #main .as-chat-head h2 { font-size: 17px; }
  #main .as-contract-heading h2 { font-size: 16px; }
  .page-heading, [data-page=today] .page-heading { gap: 16px; margin-bottom: 18px; }
  .page-heading p { font-size: 13px; line-height: 1.7; margin-top: 5px; }
  .page-heading .actions { margin-top: 0; }
  .primary, .secondary, .danger, .text-button { min-height: 32px; padding: 5px 11px; font-size: 13px; line-height: 20px; }
  .text-button { padding-inline: 4px; }
  .section, .panel, .ws-section { padding: 18px; margin-bottom: 16px; border-radius: 10px; }
  .section-head, .ws-section-head { margin-bottom: 13px; gap: 12px; }
  .reading-copy, .dev-contract .dev-reading p, .dialog-content .dev-reading p { font-size: 14px; line-height: 1.75; }
  .reading-copy p + p { margin-top: 7px; }
  .field { margin-bottom: 13px; gap: 5px; }
  .field input, .field select, .field textarea { min-height: var(--ctl, 44px); padding: 6px 10px; font-size: 1rem; }
  .field textarea { min-height: 86px; }
  .ws-filters, .dev-filters { padding: 12px 14px; gap: 12px; }
  .ws-filters { margin: 14px 0; }
  .tabs, .ws-tabs, .dev-tabs { margin-bottom: 16px; gap: 22px; }
  .tabs a, .ws-tabs a, .dev-tabs a { min-height: 36px; padding-block: 6px; font-size: 13px; }
  .back-link, .dev-wrap .back-link { min-height: 22px; margin-bottom: 8px; line-height: 20px; }
  .dev-detail-head { margin-bottom: 12px; gap: 14px; }
  .dev-kicker { margin-bottom: 4px; font-size: 11px; }
  .dev-detail-head>.tag { margin-top: 20px; }
  .dev-status-line { padding: 12px 18px; margin-bottom: 16px; gap: 18px; }
  .dev-eyebrow { margin-bottom: 3px; font-size: 11px; }
  .dev-status-copy h2 { margin-bottom: 5px; }
  .dev-status-copy p { font-size: 13px; line-height: 1.7; padding-left: 12px; }
  .dev-status-line .primary { min-width: 112px; }
  .dev-detail-grid { gap: 18px; }
  .dev-contract .section-head { padding-bottom: 12px; margin-bottom: 16px; }
  .dev-contract .dev-reading { margin-bottom: 17px; }
  .dev-contract .dev-reading h3, .dialog-content .dev-reading h3 { font-size: 15px; margin-bottom: 6px; }
  .dev-responsibilities { padding-block: 15px 0; margin-bottom: 15px; gap: 22px; }
  .dev-responsibilities .reading-copy p + p { margin-top: 5px; }
  .dev-readable-list { margin-top: 5px; font-size: 14px; line-height: 1.75; }
  .dev-readable-list li { padding-block: 3px; line-height: 1.75; }
  .dev-readable-list li + li { margin-top: 3px; }
  .dev-boundary h2 { margin-bottom: 16px; }
  .dev-boundary .dev-facts dt { margin: 18px 0 5px; font-size: 13px; }
  .dev-boundary .dev-facts dd { font-size: 14px; line-height: 1.75; }
  .dev-boundary .dev-facts dd>.content-key--info { font-size: 16px; }
  .dev-budget-value { font-size: 20px; }
  .dev-technical { margin-top: 14px; }
  .dev-technical>summary { min-height: 42px; padding-block: 10px; font-size: 14px; }
  .dev-detail-footer { margin-top: 16px; }
  .dev-step { padding-bottom: 18px; }
  .dev-step h3 { line-height: 1.65; }
  .dev-progress-foot { margin-top: 18px; padding-top: 12px; }
  .dev-table td { padding-block: 13px; }
  .dev-checks { margin-block: 12px; }
  .dev-check { padding-block: 10px; font-size: 14px; }
  .today-date { margin-bottom: 6px; }
  .today-grid { gap: 18px; }
  .today-side .section { padding: 17px; }
  .task-row { padding-block: 13px; gap: 11px; }
  .row-title, .ws-row-title { font-size: 14px; }
  .row-meta { font-size: 12px; }
  .draft-row { padding-block: 11px; }
  .ws-list { padding-inline: 18px; }
  .ws-row { padding-block: 14px; gap: 18px; }
  .ws-two-column { gap: 18px; }
  .ws-method-outcome { padding: 16px 18px; gap: 18px; }
  .ws-page .ws-demo-boundary { margin-block: 9px 16px; }
  .ws-content-field + .ws-content-field { margin-top: 18px; }
  .ws-page h3 { margin-top: 18px; }
  .ws-page .ws-prose .reading-copy { font-size: 14px; }
  .ws-page .ws-prose .reading-copy > p { line-height: 1.75; }
  .ws-result-overview { padding: 16px; }
  .ws-comparison th, .ws-comparison td { padding-block: 10px; }
  .tool-grid { gap: 16px; }
  .tool-card { padding: 20px; min-height: 166px; }
  .tool-card .tool-symbol { width: 30px; height: 30px; margin-bottom: 12px; }
  .tool-card-footer { padding-top: 14px; }
  .dialog-head { padding: 14px 20px; }
  .dialog-content { padding: 18px 20px; }
  .dialog-actions { padding: 12px 20px; }
  .dialog-content>h3 { margin-top: 20px; }
  .drawer { width: min(620px,calc(100vw - 48px)); }
  .modal { width: 600px; }
}
@media (min-width:1101px) {
  .dev-detail-grid { grid-template-columns: minmax(0,1fr) 280px; }
  .dev-status-copy { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 5px 10px; align-items: baseline; }
  .dev-status-copy .dev-eyebrow, .dev-status-copy h2 { margin: 0; }
  .dev-status-copy p { grid-column: 1 / -1; padding-inline-start: 0; }
  .today-grid { grid-template-columns: minmax(0,1fr) minmax(240px,.38fr); }
  .today-side { display: block; }
}
@media (min-width:761px) and (max-width:1000px) {
  :root { --desktop-sidebar: 168px; }
  #main { padding-inline: 18px; }
  .topbar { padding-inline: 18px; }
  .topbar-context .demo-label { display: none; }
}
@media (min-width:761px) and (max-height:700px) {
  .sidebar { padding-top: 12px; }
  .brand { margin-bottom: 13px; }
  .nav-caption { margin-top: 13px; }
  .sidebar-bottom { padding-top: 12px; }
}

.rsi-budget-compact{padding:0;overflow:visible}.rsi-budget-compact>.rsi-budget-compact-summary{display:flex;align-items:center;gap:10px;min-height:54px;padding:12px 16px;list-style:none;cursor:pointer}.rsi-budget-compact>.rsi-budget-compact-summary::-webkit-details-marker{display:none}.rsi-budget-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-size:14px;font-weight:700}.rsi-budget-compact-summary strong{margin-left:auto;color:var(--blue);font-size:14px}.rsi-budget-compact-summary>.rsi-muted{font-size:12px}.rsi-budget-expanded{padding:0 16px 16px}.rsi-budget-compact[open]>.rsi-budget-compact-summary{border-bottom:1px solid var(--line)}
