:root{font-family:"Microsoft YaHei",system-ui,sans-serif;color:#193b35;background:#f3f7f5;font-size:16px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{display:flex;align-items:center;gap:24px;background:white;border-bottom:4px solid #eb8523;padding:20px max(24px,calc((100vw - 1140px)/2))}header img{width:100px;height:100px;object-fit:contain}header strong{font-size:22px;line-height:1.55}header p{color:#52756b;margin:4px 0}main{max-width:1140px;margin:24px auto;padding:0 20px}section{background:#fff;border:1px solid #d6e5dd;border-radius:12px;padding:24px;margin-bottom:22px}h1{font-size:26px;margin:0 0 14px}h2{font-size:21px}p{line-height:1.75}label{display:block;margin:15px 0}input,select,textarea{display:block;width:100%;font:inherit;border:1px solid #8fac9e;border-radius:6px;background:white;padding:10px;margin-top:7px;color:#193b35}button{font:inherit;border:0;border-radius:7px;background:#0c6d4e;color:white;padding:10px 18px;cursor:pointer;margin:4px 8px 4px 0}button.secondary{background:#e8efeb;color:#254c40}button:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #eea23b;outline-offset:3px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.card{border:1px solid #dce7df;border-radius:9px;padding:18px;margin:12px 0;overflow-wrap:anywhere}.card h3{margin-top:0}.card p{white-space:pre-wrap}.meta{font-size:14px;color:#5b7169}.confirm{display:flex;align-items:flex-start;gap:10px}.confirm input{width:auto;flex:none}#notice:not(:empty){max-width:1100px;padding:14px 20px;margin:18px auto;background:#fff0d5;border-left:4px solid #d58a1a}footer{padding:24px;text-align:center;color:#536f61;font-size:14px}@media(max-width:600px){header{padding:16px;gap:14px}header strong{font-size:18px}header img{width:80px;height:80px}section{padding:18px}main{padding:0 12px}}
/* 会员门户：品牌、中央认证、右上角会员入口 */
body[data-page=customer]{background:radial-gradient(ellipse at 15% 0%,#d9eee3 0,transparent 46%),#f5f7f4}
.member-header{justify-content:space-between;padding:14px max(24px,calc((100vw - 1140px)/2));border-bottom:1px solid #d6e5dd}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit;flex-shrink:0}.brand img{width:72px;height:72px}.brand span{font-weight:700;font-size:19px;text-align:center;line-height:1.6}
.header-actions{margin-left:auto}.member-button{display:flex;align-items:center;gap:10px;background:white;color:#193b35;border:1px solid #d6e5dd;text-align:left}.member-button small{display:block;font-size:12px;color:#5b7169;margin-top:4px}.avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#146349;color:white;font-weight:700}
.auth-card{max-width:460px;margin:clamp(32px,7vh,76px) auto 64px;padding:32px;border-radius:20px;box-shadow:0 16px 50px #163e2910}.auth-card h1{margin-top:14px}.eyebrow{font-size:12px;letter-spacing:.15em;font-weight:700;color:#287556}.muted,.hint{color:#60766d}.hint{font-size:13px;line-height:1.6}.full{width:100%;margin:16px 0 0}.auth-tabs{display:flex;gap:4px;padding:5px;background:#edf3ef;border-radius:10px;margin:24px 0}.auth-tabs button{flex:1;margin:0;background:transparent;color:#567064}.auth-tabs button[aria-selected=true]{background:white;color:#0c6d4e;box-shadow:0 2px 5px #163e2912}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-heading h2{margin:10px 0}.overview{background:linear-gradient(130deg,#fafffc,white)}.department-card button{font-size:14px}.department-card h3{margin-bottom:8px}.department-card p{color:#60766d;font-size:14px}
dialog{border:1px solid #d6e5dd;border-radius:16px;padding:26px;width:min(620px,calc(100vw - 30px));max-height:85vh;overflow:auto;color:#193b35;box-shadow:0 20px 90px #122d3333}dialog::backdrop{background:#12372d70}dialog details{border-top:1px solid #d6e5dd;padding-top:18px;margin:18px 0}fieldset{border:1px solid #d6e5dd;border-radius:10px;margin:16px 0}legend{font-weight:600}.permission-choice{display:flex;gap:10px;align-items:center;margin:10px 0}.permission-choice input{width:18px;margin:0}#messages,#adminMessages{max-height:450px;overflow:auto}.discussion-message{padding:14px;border-radius:8px;background:#f0f6f2;margin:10px 0}.discussion-message p{white-space:pre-wrap;overflow-wrap:anywhere}.discussion-message small{color:#64786e}.pending{color:#9b6412}
.readonly-note{border-left:3px solid #327c5f;background:#edf6f0;padding:10px 14px;border-radius:0 8px 8px 0;font-size:14px}.empty-state{padding:18px;border:1px dashed #c9d9cf;border-radius:9px;color:#60766d}.agent-status .status-value{margin:8px 0;font-size:14px}.agent-status[data-state=busy] .status-value{color:#8b5812}.agent-status[data-state=idle] .status-value{color:#176c4e}.agent-status small{color:#64786e;font-size:12px}.work-event{border:1px solid #dce7df;border-radius:10px;margin:14px 0;padding:18px;overflow-wrap:anywhere}.work-event h4{margin:14px 0 8px;font-size:16px;line-height:1.7}.work-event>p{white-space:pre-wrap;margin:8px 0}.work-event-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.work-event-header time{color:#64786e;font-size:12px}.event-kind{background:#e8f2ec;color:#1b684b;font-size:12px;padding:5px 10px;border-radius:20px}.work-event[data-kind=handoff] .event-kind{background:#fff0d8;color:#8c5a13}.work-event[data-kind=delivery] .event-kind{background:#e9effa;color:#395786}.event-source{font-size:12px}.work-event .event-source{margin-top:14px;color:#64786e}
@media(max-width:600px){.brand img{width:48px;height:48px}.brand span{font-size:14px}.member-header{gap:6px;padding:12px}.member-button{padding:6px}.member-button span:not(.avatar){max-width:86px;overflow:hidden;text-overflow:ellipsis}.avatar{width:30px;height:30px}.auth-card{padding:24px;margin:30px auto}.header-actions button{font-size:13px;margin-right:0}.section-heading{flex-wrap:wrap}.work-event{padding:14px}}

/* 登录前仅保留认证入口，内容区域在身份确认前默认隐藏。 */
body[data-page=customer]:not(.authenticated) main{min-height:calc(100svh - 230px);display:grid;align-items:center;width:100%}
body[data-page=customer]:not(.authenticated) .auth-card{width:min(460px,100%);margin:24px auto}

/* 技术部入口与公司全名单行展示：窄屏将会员按钮放到独立一行。 */
.brand span{white-space:nowrap;text-align:left}
@media(max-width:760px){.member-header{flex-wrap:wrap;gap:8px}.brand{gap:8px;max-width:100%}.brand img{width:40px;height:40px;flex-shrink:0}.brand span{font-size:clamp(12px,3.3vw,19px)}.header-actions{margin-left:auto}}

/* Local operations layout, applied only to the authenticated customer workspace. */
body.authenticated[data-page=customer] main{max-width:1600px;padding:0 24px}
.operations-layout{display:grid;grid-template-columns:236px minmax(0,1fr);gap:24px;align-items:start}
.operations-sidebar{position:sticky;top:20px;background:#142338;color:#f3f6fb;padding:26px 18px;border-radius:14px;min-height:620px}
.operations-sidebar .eyebrow{color:#83b7a2}.operations-sidebar h2{font-size:22px;margin:6px 0 28px}.sidebar-note{color:#b3c3d5;font-size:13px;line-height:1.8;margin-top:32px}
#operationsNav{display:flex;flex-direction:column;gap:6px}#operationsNav button{width:100%;text-align:left;background:transparent;color:#dbe5f0;margin:0;padding:14px 12px;line-height:1.6}
#operationsNav button.selected,#operationsNav button:hover{background:#234938;color:white}
.operations-main{min-width:0}.operations-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.metric{background:#f4f7fa;padding:16px;border:1px solid #e4eaf0;border-radius:9px}.metric span{display:block;font-size:13px;color:#607285}.metric strong{display:block;font-size:28px;color:#142338;margin-top:8px}
.operations-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;background:#f7f9fb;border-radius:10px;padding:12px 16px}.operations-filters label{margin:0;flex:1;min-width:140px}.operations-filters label:last-of-type{flex:2}.operations-filters button{margin:0 0 1px}
.document-section{margin-top:24px;padding:20px 0 0;border:0;border-top:1px solid #dce5ef;border-radius:0}.document-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e4eaf0;padding:16px 0;overflow-wrap:anywhere}.document-row>div{min-width:0}.document-row button{flex-shrink:0}.document-row .hint{margin:5px 0 0}.document-reader{width:min(1000px,calc(100vw - 30px))}.document-reader pre{font:15px/1.9 "Microsoft YaHei",sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;color:#20313e}.document-reader h2{overflow-wrap:anywhere;max-width:80%}
.operations-main .overview{background:linear-gradient(120deg,#fff,#edf6f0)}.operations-main .overview h1{color:#142338}.operations-main .overview p{max-width:760px}
@media(max-width:1000px){.operations-layout{grid-template-columns:190px minmax(0,1fr);gap:16px}.operations-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.operations-sidebar{padding:20px 12px}body.authenticated[data-page=customer] main{padding:0 16px}}
@media(max-width:720px){.operations-layout{display:block}.operations-sidebar{position:static;min-height:0;margin-bottom:16px;padding:16px}.operations-sidebar h2,.sidebar-note{display:none}#operationsNav{flex-direction:row;overflow-x:auto;gap:4px}#operationsNav button{flex:0 0 auto;width:auto;font-size:13px}.operations-sidebar .eyebrow{margin-bottom:8px}.document-row{gap:10px}.document-row button{padding:8px 10px}body.authenticated[data-page=customer] main{padding:0 12px}}
