:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#34242a;background:#f5f3f0;font-synthesis:none}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,textarea,select{font:inherit}a{color:#8c1b30}button{cursor:pointer;border:1px solid #ded4d5;background:white;border-radius:7px;padding:9px 14px;color:#5d3541;font-size:13px}button:hover{background:#f7eeee}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d399a4;outline-offset:3px}.primary{background:#a01d36;border-color:#a01d36;color:white}.primary:hover{background:#7f172c}.danger{color:#a21e33}.wide{width:100%;padding:13px}.muted{color:#8b7c80;line-height:1.8;font-size:14px}.small{font-size:12px}label{display:block;font-size:13px;color:#66525a;margin:20px 0}input,textarea,select{display:block;width:100%;border:1px solid #dcd3d5;background:#fff;padding:12px;margin-top:8px;border-radius:7px;color:#35222b}textarea{min-height:120px;resize:vertical}h1,h2,h3,p{overflow-wrap:anywhere}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;font-weight:700;line-height:1.6}.brand b{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#ffffff19;font-size:21px}.brand span{font-size:17px;letter-spacing:1px}.auth-shell{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-story{background:#81182c;color:#fff5eb;display:flex;flex-direction:column;justify-content:space-between;padding:55px clamp(28px,6vw,90px)}.auth-story a{color:inherit}.auth-story h1{font-size:clamp(30px,3.2vw,48px);line-height:1.5;letter-spacing:2px;font-weight:600}.auth-story p:not(.eyebrow){font-size:14px;line-height:2;color:#dfc2c8}.eyebrow{font-size:12px;letter-spacing:4px;color:#e5baa3}.auth-story small{font-size:12px;color:#d5a6b1}.auth-main{display:grid;place-items:center;padding:50px 35px;background:#fbfaf8}.auth-card{width:100%;max-width:380px}.auth-card h2{font-weight:600;font-size:27px;margin:25px 0 10px}.pill{display:inline-block;font-size:11px;padding:6px 10px;border:1px solid #e0bdc4;border-radius:30px;color:#9b3047;background:#fbf1f3;white-space:nowrap}.tabs{display:flex;gap:24px;border-bottom:1px solid #e1d8d8;margin:28px 0}.tabs button{border:0;background:transparent;border-radius:0;padding:10px 0;color:#8b7c80}.tabs .selected{border-bottom:2px solid #a01d36;color:#8d1930;font-weight:600}.footnote{font-size:11px;color:#99868d;line-height:1.9;margin-top:25px}.back{display:inline-block;text-decoration:none;font-size:12px;margin-top:20px}.app-shell{min-height:100vh;display:grid;grid-template-columns:230px minmax(0,1fr)}.sidebar{background:#581324;color:#f6e6e9;padding:32px 23px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .brand{color:inherit}.sidebar .brand span{font-size:16px}.sidebar-caption{font-size:10px;color:#cda8b3;margin-top:15px;letter-spacing:1px}.sidebar nav{display:grid;gap:7px;margin-top:40px}.sidebar nav button{border:0;background:transparent;color:#dcc0c8;text-align:left;padding:12px 15px;font-size:13px}.sidebar nav button:hover,.sidebar nav button.active{background:#ffffff15;color:white}.sidebar nav button.active{box-shadow:inset 3px 0 #f5b8a2}.sidebar-bottom{margin-top:auto;padding-top:40px;color:#c19aa6}.sidebar-bottom p{font-size:11px}.sidebar-bottom small{font-size:10px;line-height:1.9}.topbar{display:flex;align-items:center;justify-content:space-between;padding:20px 38px;background:#fff;border-bottom:1px solid #e9e2e2;gap:15px}.identity{font-size:12px;color:#78636b;display:flex;align-items:center;gap:16px}.text-button{background:transparent;border:0;padding:5px;color:#8c1b30}.workspace{min-width:0;display:flex;flex-direction:column}.workspace main{padding:35px 38px;flex:1}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:25px}.page-head h1{font-size:27px;letter-spacing:1px;margin:0 0 10px;font-weight:600}.page-head p{font-size:12px;line-height:1.9;color:#8b7c80;margin:0}.page-head button{flex-shrink:0}.welcome{padding:30px 34px;background:#8d1c32;color:white;border-radius:9px;margin-bottom:28px}.welcome h2{font-size:23px;font-weight:500;margin:0 0 12px}.welcome p{color:#e7c5ce;font-size:13px;line-height:1.9;margin:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid #e8dfe0;border-radius:9px;margin-bottom:32px}.stat{padding:24px 27px}.stat+.stat{border-left:1px solid #eee5e6}.stat span{display:block;font-size:12px;color:#9a858d}.stat strong{font-size:29px;display:block;margin-top:10px;font-weight:500;color:#8b2038}.section-title{font-size:17px;font-weight:600;margin:27px 0 17px}.events{display:grid;gap:14px}.event{background:#fff;border:1px solid #e8dfe0;border-radius:9px;padding:23px 26px}.event-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.event h2{font-size:18px;margin:0;font-weight:600}.badge{display:inline-block;font-size:10px;background:#f6ecef;color:#8e2a41;padding:5px 9px;border-radius:4px;white-space:nowrap}.badge.neutral{color:#83727a;background:#f1eef0}.event-meta{display:flex;flex-wrap:wrap;gap:8px 22px;color:#907b83;font-size:12px;margin:13px 0}.event-desc{font-size:13px;color:#77636b;line-height:1.9;white-space:pre-wrap;margin:12px 0 17px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.actions .meta-note{margin-right:auto;color:#948088;font-size:11px}.empty{background:white;border:1px dashed #dacdd1;border-radius:9px;text-align:center;color:#9d8b92;font-size:13px;padding:50px 22px;line-height:2}.table-wrap{background:white;border:1px solid #e5dcdf;border-radius:9px;overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left;white-space:nowrap}th{background:#faf6f7;color:#8d767f;font-weight:500}td,th{padding:15px 18px;border-bottom:1px solid #f0e8eb}tr:last-child td{border-bottom:0}td .actions{flex-wrap:nowrap}td button{font-size:11px;padding:5px 8px}.row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.row label{margin:10px 0}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:23px}.workspace-footer{padding:20px 38px;font-size:10px;color:#9f8d94;border-top:1px solid #e8dfe2;line-height:1.8}dialog{width:min(740px,calc(100vw - 36px));border:1px solid #e1d2d8;border-radius:12px;padding:28px;max-height:90vh;color:#34242a}dialog::backdrop{background:#2c0c1b66}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.dialog-head h2{font-size:20px;font-weight:600;margin:0}.dialog-head+div{margin-top:20px}.activation-code{font-family:monospace;min-height:80px;word-break:break-all}.pager{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:18px;font-size:12px;color:#8a737e}.planned{display:flex;gap:15px;flex-wrap:wrap;margin-top:30px;padding-top:20px;border-top:1px solid #e4dadd}.planned span{font-size:11px;color:#9d8b93}.skip{position:absolute;left:10px;top:-100px;background:white;padding:10px;z-index:5}.skip:focus{top:10px}#notice{position:fixed;top:18px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#481627;color:white;z-index:99;border-radius:7px;font-size:13px;max-width:90vw;box-shadow:0 5px 30px #41122522;line-height:1.8}.warning{padding:12px 16px;background:#faf0e7;color:#89654c;border-radius:7px;font-size:12px;line-height:1.9}.checklist{line-height:2;color:#78616c;font-size:13px}@media(max-width:850px){.auth-shell{grid-template-columns:1fr}.auth-story{padding:30px;gap:30px}.auth-story h1{font-size:29px;margin:12px 0}.auth-story p:not(.eyebrow){display:none}.auth-story small{display:none}.auth-main{padding:35px 24px}.app-shell{grid-template-columns:1fr}.sidebar{height:auto;position:static;padding:19px 22px}.sidebar .brand span{font-size:14px}.sidebar .brand b{width:35px;height:35px;font-size:18px}.sidebar .brand span br{display:none}.sidebar-caption,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:4px;overflow:auto;margin-top:18px}.sidebar nav button{white-space:nowrap;font-size:12px;padding:8px 12px}.sidebar nav button.active{box-shadow:inset 0 -2px #f5b8a2}.workspace main{padding:26px 20px}.topbar{padding:15px 20px}.identity{font-size:11px;gap:8px}.page-head h1{font-size:23px}.event{padding:19px}.event-top{align-items:flex-start}.event h2{font-size:17px}.welcome{padding:24px}.stats .stat{padding:18px 14px}.stat span{font-size:10px}.stat strong{font-size:25px}.workspace-footer{padding:18px 20px}.row{grid-template-columns:1fr;gap:0}dialog{padding:22px}.auth-card h2{font-size:25px}.pill{font-size:10px}}
:root{--mobile-breakpoint:850px}
@media(max-width:850px){.app-shell{display:block}.sidebar{min-width:0}.workspace{min-height:calc(100vh - 132px)}.identity span{max-width:16ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

button{touch-action:manipulation;transition:background-color .1s ease,border-color .1s ease,box-shadow .1s ease}button:active:not(:disabled){transform:translateY(1px)}button[aria-busy=true]{cursor:progress;opacity:.85}.loading-state{display:flex;align-items:center;gap:10px;font-size:13px;color:#907781;padding:22px 0}.spinner{display:inline-block;width:16px;height:16px;border:2px solid #ead4da;border-top-color:#a01d36;border-radius:50%;animation:spin .7s linear infinite}.loading-block{height:150px;border-radius:9px;background:linear-gradient(110deg,#eee6e8 25%,#f8f4f5 40%,#eee6e8 55%);background-size:200% 100%;animation:loading-shine 1.4s ease-in-out infinite}dialog[open]{animation:dialog-appear .12s ease-out}@keyframes spin{to{transform:rotate(360deg)}}@keyframes loading-shine{to{background-position:-200% 0}}@keyframes dialog-appear{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){button{transition:none}.spinner,.loading-block,dialog[open]{animation:none}}

.topbar{position:relative}.sync-state{position:absolute;bottom:3px;right:38px;font-size:9px;color:#9d747e}
/* Local collaboration workspace */
.filter-bar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid #e8dfe0;padding:15px 18px;border-radius:9px;margin-bottom:20px}.filter-bar label{margin:0;min-width:125px;flex:1}.filter-bar .filter-search{flex:2;min-width:180px}.filter-bar input,.filter-bar select{padding:9px;margin-top:6px}.filter-bar button{margin-bottom:1px}.button-link{display:inline-block;padding:5px 8px;border:1px solid #ded4d5;border-radius:6px;font-size:11px;text-decoration:none;background:white}.settings-card{max-width:660px;background:#fff;padding:28px;border:1px solid #e5dcdf;border-radius:10px}.settings-card h2{font-size:20px;margin-top:0}.code-row{display:flex;align-items:flex-end;gap:12px;margin:15px 0 23px}.code-row label{flex:1;margin:0;min-width:0}.code-row button{flex-shrink:0;min-height:42px}.forgot-link{font-size:12px;margin-top:20px;padding-left:0}.success-note{background:#edf5f0;color:#37614b;padding:12px 16px;border-radius:7px;font-size:13px;line-height:1.8}.details{display:grid;grid-template-columns:130px 1fr;gap:15px;font-size:13px;line-height:1.8}.details dt{color:#8c737d}.details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.checksum{font-family:monospace;font-size:11px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}.communications{display:grid;grid-template-columns:215px minmax(0,1fr);border:1px solid #e5dade;background:white;border-radius:10px;overflow:hidden;min-height:550px}.channel-sidebar{background:#faf6f7;padding:14px;border-right:1px solid #e8dfe2;min-width:0}.channel-sidebar p{margin:3px 8px 18px}.channel-button{width:100%;display:flex;align-items:center;gap:8px;text-align:left;border:0;background:transparent;margin:3px 0;padding:12px 10px;min-width:0}.channel-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.channel-button b{background:#a01d36;color:white;border-radius:20px;font-size:10px;padding:2px 6px}.channel-button small{font-size:10px;color:#9c8b92}.channel-button.active{background:#eedde2;color:#831a31;font-weight:600}.conversation{display:flex;flex-direction:column;min-width:0}.conversation-header{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;gap:12px;border-bottom:1px solid #eee4e7}.conversation-header h2{font-size:17px;margin:0}.conversation-header button{font-size:11px}.message-navigation{display:flex;justify-content:space-between;padding:6px 20px}.message-navigation button{font-size:11px}.messages{padding:12px 24px;height:380px;overflow:auto;overscroll-behavior:contain;scroll-behavior:auto}.chat-message{margin:0 0 22px;max-width:90%}.message-byline{display:flex;align-items:center;gap:12px;font-size:11px;color:#a08b93}.message-byline strong{color:#79515f;font-weight:600}.message-byline button{font-size:10px;padding:0}.message-body{display:inline-block;margin:7px 0 0;background:#f4eef1;border-radius:0 9px 9px 9px;padding:11px 14px;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.own{margin-left:auto;text-align:right}.chat-message.own .message-byline{justify-content:flex-end}.chat-message.own .message-body{text-align:left;background:#f5e4e8;border-radius:9px 0 9px 9px}.message-body a{text-decoration:underline}.empty-chat{text-align:center;color:#aa969e;font-size:13px;padding:80px 0}.communications #message-form{border-top:1px solid #eee4e7;padding:14px 20px}.communications #message-text{margin:0;min-height:70px;height:80px;border:0;background:#faf7f8;resize:vertical}.composer-foot{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-top:12px}.composer-foot span{font-size:10px;color:#a08b93}.people-list{display:grid;gap:7px}.people-list>div{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #eee5e8}.people-list span{flex:1}.people-list strong{font-size:14px}.people-list small{display:block;color:#a08b93;font-size:11px;margin-top:5px}.call-panel{position:fixed;right:24px;bottom:24px;z-index:80;width:300px;padding:22px;background:#fff;border:1px solid #dbc5cd;border-radius:12px;box-shadow:0 10px 50px #3a0d2526}.call-panel strong{font-size:16px}.call-panel p{font-size:12px;color:#8c6f7d;line-height:1.8}.call-panel>div{display:flex;gap:12px}.call-panel audio{display:none}@media(max-width:850px){.filter-bar{padding:13px;gap:10px}.filter-bar label{min-width:120px}.communications{grid-template-columns:1fr;min-height:0}.channel-sidebar{border-right:0;border-bottom:1px solid #e8dfe2;padding:10px}.channel-sidebar>p{margin:2px 6px 8px}#channel-list{display:flex;overflow:auto;gap:6px}.channel-button{width:auto;flex-shrink:0;padding:9px 12px}.channel-button span{max-width:140px}.conversation-header{padding:15px}.messages{padding:12px 16px;height:350px}.communications #message-form{padding:12px 15px}.composer-foot span{max-width:180px;line-height:1.6}.settings-card{padding:22px}.call-panel{right:16px;bottom:16px;width:calc(100vw - 32px);max-width:330px}.details{grid-template-columns:1fr;gap:4px}.details dd{margin-bottom:10px}.code-row{gap:8px}.code-row button{padding:10px;font-size:11px}}

.sidebar{overflow-y:auto}.sidebar nav,.sidebar-bottom{flex-shrink:0}.people-list button:disabled{cursor:not-allowed}@media(max-width:850px){.sidebar{overflow-y:visible}}

.public-portal{min-height:100vh;background:var(--bg,#f6f4f1)}.public-header{display:flex;align-items:center;gap:24px;padding:24px max(24px,calc((100vw - 1200px)/2));background:#541026;color:white;flex-wrap:wrap}.public-header .brand{color:inherit;font-size:18px;flex:1}.public-header .brand b{width:44px;height:44px;font-size:24px}.public-header>.pill{color:#ffdedf;border-color:#c38291;background:#6a263b}.public-header>button{background:#fff8f3;color:#541026}.public-nav{display:flex;gap:12px;flex-wrap:wrap;padding:16px max(24px,calc((100vw - 1200px)/2));border-bottom:1px solid #e6dde0;background:white}.public-nav button.active{background:#f5e7eb;color:#8f1533;border-color:#d2a4b2}#public-content{max-width:1248px;margin:auto;padding:36px 24px 60px;min-height:65vh}.public-portal .settings-card{margin:24px auto;max-width:680px}.identity-fields{border:0;padding:0;margin:0 0 18px;min-width:0}.identity-fields legend{font-weight:600;margin-bottom:10px}.identity-fields .row{margin:0}.auth-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.inline-filter{max-width:260px;margin:20px 0}.archive-history{border-bottom:1px solid #e6dde0;padding:18px 0}.review-alert{padding:16px 0}.filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:24px 0}.filters label{flex:1;min-width:130px;margin:0}.filters button{margin-bottom:0}.filters input,.filters select{width:100%}@media(max-width:600px){.public-header{padding:20px;gap:16px}.public-header .brand{flex-basis:100%}.public-header .pill{font-size:11px}.public-header>button{font-size:12px}.public-nav{padding:12px 20px;gap:8px}.public-nav button{font-size:12px;padding:10px}#public-content{padding:28px 20px 48px}.filters label{min-width:140px}}

.button{display:inline-block;text-decoration:none;border:1px solid #ded4d5;border-radius:7px;padding:10px 14px;color:#5d3541;background:white;font-size:13px}.button.primary{background:#a01d36;color:white;border-color:#a01d36}.export-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}.export-cards .settings-card{margin:0}.export-cards h2{font-size:20px}

.nav-group-label{display:block;color:#d4b7bf;font-size:11px;letter-spacing:2px;margin:15px 14px 7px}.profile-reminder{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 30px;background:#fff2d9;color:#805219;border-bottom:1px solid #eedbb4;font-size:14px}.profile-reminder button{color:#805219;background:#fff9ec;flex-shrink:0}.points-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.task-scores{color:#8c1b30;font-weight:600}.account-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.account-panels .settings-card{margin:0}.department-scores{display:flex;gap:18px;flex-wrap:wrap;margin:20px 0}.department-scores span{padding:12px;background:#f4e7ec;border-radius:7px}@media(max-width:720px){.nav-group-label{display:none}.profile-reminder{padding:12px 20px;font-size:12px}.points-fields,.account-panels{grid-template-columns:1fr}.account-panels{gap:20px}}

.archive-department-picker{border:1px solid #e4d9dd;border-radius:8px;margin:20px 0;padding:16px;min-width:0}.archive-department-picker legend{font-size:13px;color:#66525a;padding:0 6px}.department-checkboxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.department-checkboxes label{display:flex;align-items:center;gap:9px;margin:0;padding:8px;border-radius:6px;background:#faf7f8}.department-checkboxes input{display:inline-block;width:17px;height:17px;margin:0;accent-color:#a01d36;flex-shrink:0}

.archive-preview-dialog{width:min(1280px,96vw);max-width:96vw;height:94vh;max-height:94vh;padding:22px}.archive-preview-dialog #dialog-body{overflow:visible}.archive-preview-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;position:sticky;top:0;background:#fff;padding:10px 0;z-index:3}.archive-preview-toolbar label{margin:0;font-size:11px;display:flex;gap:6px;align-items:center}.archive-preview-toolbar select{margin:0;padding:8px;max-width:240px}.archive-preview-scroll{background:#e9e5e2;overflow:auto;border:1px solid #ded6d7;min-height:240px;max-height:65vh;padding:14px}.archive-page{position:relative;min-width:300px;margin:0 auto;background:white;line-height:0}.archive-page-image{display:block;width:100%;height:auto;box-shadow:0 1px 8px #0001}.archive-image-hotspot{position:absolute;background:transparent;border:1px solid transparent;border-radius:0;padding:0;cursor:zoom-in}.archive-image-hotspot:hover,.archive-image-hotspot:focus{background:#a01d3614;border:2px solid #a01d36}.archive-image-gallery{margin-top:20px}.archive-image-gallery summary{font-size:13px;cursor:pointer;padding:12px 0}.archive-image-gallery>div{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.archive-image-gallery button{display:grid;gap:8px;align-content:start;text-align:left}.archive-image-gallery img{width:100%;height:100px;object-fit:contain;background:#f5f3f0}.archive-image-gallery span{font-size:11px;overflow-wrap:anywhere}.archive-image-dialog{width:94vw;max-width:1500px;height:92vh;max-height:92vh;padding:18px}.archive-image-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.archive-image-scroll{height:calc(100% - 70px);overflow:auto;display:grid;place-items:center;background:#ede9e6}.archive-image-scroll img{max-width:100%;max-height:100%;object-fit:contain}.image-actual .archive-image-scroll{display:block}.image-actual .archive-image-scroll img{max-width:none;max-height:none}.archive-history h3{font-size:15px}.archive-history p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}.archive-history .actions{padding:8px 0}.archive-preview-toolbar .button{padding:8px 10px;font-size:12px}@media(max-width:650px){.archive-preview-dialog{padding:14px;width:98vw;max-width:98vw}.archive-preview-toolbar{gap:7px}.archive-preview-toolbar select{max-width:160px}.archive-preview-scroll{padding:5px;max-height:60vh}.archive-image-head{align-items:start;flex-wrap:wrap}.archive-image-gallery>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
