:root{font-family:"Microsoft YaHei UI","PingFang SC",sans-serif;color:#21334b;background:#f3f6fa;font-size:14px;--blue:#225da6;--line:#e1e7ef;--muted:#718096;--ink:#21334b}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid #3984df}button{border:1px solid transparent;border-radius:7px;padding:10px 15px;background:var(--blue);color:white;transition:background .15s}button:hover{filter:brightness(.95)}button.secondary{border-color:var(--line);background:#fff;color:var(--ink)}button.subtle{color:var(--muted);background:transparent;padding:7px 9px}button.danger{color:#bb3c38;background:#fff4f3;border-color:#ffd3ce}.app-shell{min-height:100vh;display:grid;grid-template-columns:218px minmax(0,1fr)}.sidebar{background:#142b49;color:#c1cfe1;display:flex;flex-direction:column;padding:30px 18px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:0 12px 35px;color:white;font-size:18px;letter-spacing:.04em}.brand img{width:33px;height:33px}.sidebar .caption{font-size:12px;letter-spacing:.15em;color:#91a6c1;padding:12px}.nav{display:grid;gap:6px}.nav button{text-align:left;background:transparent;color:#bccce0;display:flex;align-items:center;gap:12px;padding:13px}.nav button.active{color:#fff;background:#29496e}.nav svg{width:18px;height:18px}.sidebar-bottom{margin-top:auto;padding:20px 12px 0;border-top:1px solid #30445e;font-size:12px;line-height:1.8;color:#9db0c9}.main{min-width:0;padding:30px 36px;max-width:1700px;width:100%;margin:auto}.topbar,.head,.actions,.toolbar,.identity,.split{display:flex;align-items:center;justify-content:space-between;gap:14px}.topbar{padding-bottom:25px;border-bottom:1px solid var(--line)}.eyebrow{font-size:12px;letter-spacing:.13em;color:var(--muted);margin-bottom:7px}.topbar h1{font-size:26px;letter-spacing:-.02em;margin:0;font-weight:650}.identity{font-size:13px;color:var(--muted);gap:10px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e0eaf6;color:var(--blue);font-weight:700}.muted{color:var(--muted)}.small{font-size:12px}.sync{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);margin:18px 0}.sync:before{content:"";width:6px;height:6px;background:#218166;border-radius:50%}.sync.error{color:#b53e35}.sync.error:before{background:#b53e35}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.metric{background:#fff;border:1px solid var(--line);border-top:3px solid #b4c7df;border-radius:8px;padding:17px 20px}.metric .number{font-size:32px;font-weight:650;line-height:1.6;font-variant-numeric:tabular-nums}.metric.orange{border-top-color:#c99025}.metric.red{border-top-color:#d56b66}.metric .small{color:var(--muted)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:22px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-bottom:20px}.panel .head{padding:20px 22px;border-bottom:1px solid var(--line)}h2{font-size:16px;margin:0;font-weight:650}.panel-body{padding:20px 22px}.toolbar{padding:15px 22px;border-bottom:1px solid var(--line);flex-wrap:wrap}.toolbar input{max-width:250px}.filters{display:flex;gap:8px;flex-wrap:wrap}.filters button{padding:7px 12px;background:#f3f6fa;color:#66788c;font-size:13px}.filters button.active{background:#e7f0fc;color:#225da6}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-weight:500;color:var(--muted);font-size:12px;background:#fafbfd;padding:13px 20px;white-space:nowrap}td{padding:18px 20px;border-top:1px solid #edf0f5;vertical-align:middle;font-size:14px}tbody tr:hover{background:#fbfcff}.name-link{background:transparent;padding:0;color:#254f86;font-weight:650;text-align:left;line-height:1.6;word-break:break-word}.subline{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.6}.progress{display:flex;align-items:center;gap:9px;min-width:120px;font-size:12px;font-variant-numeric:tabular-nums}.track{height:6px;width:88px;background:#edf1f7;border-radius:4px;overflow:hidden}.fill{height:100%;background:#3f7dbb}.pill{font-size:12px;padding:4px 8px;border-radius:4px;display:inline-block;white-space:nowrap;background:#edf1f6;color:#66778d}.pill.good{background:#e9f5ef;color:#267052}.pill.warn{background:#fff2d9;color:#986411}.pill.bad{background:#fff0ed;color:#b2493e}.pill.blue{background:#e9f0fc;color:#2f64a5}.row-actions{display:flex;gap:5px}.row-actions button{padding:5px 8px;white-space:nowrap}.empty{text-align:center;padding:56px 24px;color:var(--muted);line-height:1.9}.empty strong{display:block;color:#344b67;margin:10px 0;font-size:16px}.empty svg{width:32px;height:32px;opacity:.65}.empty button{margin-top:16px}.aside-title{display:flex;align-items:center;gap:8px}.report{white-space:pre-wrap;font-size:13px;line-height:1.9;margin:0;color:#52657e;max-height:500px;overflow:auto}.feed-item{border-left:2px solid #e5ebf3;padding:0 0 19px 14px;position:relative;word-break:break-word}.feed-item:before{content:"";width:6px;height:6px;background:#9ab3d3;position:absolute;left:-4px;top:6px;border-radius:50%}.feed-item:last-child{padding-bottom:0}.feed-item p{font-size:13px;margin:5px 0;color:#5d7087;line-height:1.7}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--line)}.week{background:#f8fafc;padding:11px;text-align:center;color:var(--muted);font-size:12px}.day{background:#fff;min-height:95px;padding:9px;min-width:0}.day.dim{background:#fafbfd;color:#adb8c6}.day.today>b{background:var(--blue);color:white;border-radius:4px;padding:3px 6px}.day b{font-size:12px}.event{display:block;font-size:12px;padding:4px 6px;margin-top:6px;background:#eaf3ef;color:#267052;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:4px;width:100%;text-align:left}.event.bad{background:#ffede9;color:#ad473b}.event.warn{background:#fff2d9;color:#986411}.details{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:22px;border-bottom:1px solid var(--line);background:#fafcff}.details p{margin:6px 0;font-size:15px}.back{margin-bottom:15px}.note{padding:0 22px 20px;white-space:pre-wrap;line-height:1.8}.thumb{width:42px;height:42px;object-fit:cover;border-radius:4px;margin-top:7px}.form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.full{grid-column:1/-1}label{font-size:13px;color:#53677f}input,select,textarea{padding:10px 11px;border:1px solid #cfd9e6;border-radius:6px;min-width:0;background:white;color:var(--ink)}input:focus,select:focus,textarea:focus{outline:2px solid #c9ddf7;border-color:#5a8bc7}textarea{min-height:100px;resize:vertical;line-height:1.7}input[type=range]{padding:0;accent-color:var(--blue)}dialog{border:1px solid var(--line);border-radius:12px;width:min(640px,calc(100vw - 30px));max-height:90vh;padding:0;color:var(--ink);box-shadow:0 24px 100px #122c4833}dialog::backdrop{background:#10243b80;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:20px 26px;border-bottom:1px solid var(--line)}.dialog-body{padding:24px 26px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;padding-top:22px}.error-box{background:#fff0ed;color:#a6382d;padding:12px;border-radius:6px;line-height:1.7;font-size:13px;margin:14px 0}.error-box:empty{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 22px;background:#163554;color:white;border-radius:8px;box-shadow:0 8px 30px #142b4922;z-index:10;display:none;max-width:90vw}.loading{padding:80px;text-align:center;color:var(--muted)}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-intro{background:#142b49;color:white;padding:70px 12%;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-intro .brand{padding:0;margin-bottom:70px}.auth-intro h1{font-size:40px;line-height:1.5;font-weight:600;margin:0 0 25px}.auth-intro p{font-size:16px;line-height:1.9;color:#aebfd5;max-width:360px}.auth-line{width:65px;height:4px;background:#76a5df;margin-bottom:28px}.auth-tags{display:flex;gap:22px;padding-top:35px;margin-top:35px;border-top:1px solid #324967;color:#aebfd5;font-size:13px}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px}.auth-card{width:360px;max-width:100%}.auth-card h2{font-size:26px;margin-bottom:12px}.auth-card>p{line-height:1.8;margin-bottom:30px}.auth-card form{display:grid;gap:18px}.auth-card .switch{display:block;text-align:center;width:100%;margin-top:15px}.auth-card small{display:block;margin-top:26px;color:var(--muted);line-height:1.8}.member{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.invite-code{display:block;padding:16px;background:#f1f5fb;border:1px dashed #bdcde3;word-break:break-all;font-family:monospace;font-size:18px;margin:15px 0}.history-detail{color:var(--muted);font-size:13px;white-space:pre-wrap;line-height:1.7}.status-note{font-size:13px;color:var(--muted);line-height:1.8}.section-label{margin:20px 22px 12px;font-size:14px}.read-image{max-width:100%;max-height:60vh;display:block;margin:0 auto}@media(min-width:1500px){.workspace{grid-template-columns:minmax(0,1fr) 350px}}@media(max-width:1200px){.main{padding:24px}.workspace{grid-template-columns:1fr}.aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.app-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:26px 12px}.metric{padding:14px}}@media(max-width:800px){.app-shell{display:block}.sidebar{height:auto;position:static;padding:15px}.sidebar .brand{padding:0 6px 15px;font-size:16px}.sidebar .caption,.sidebar-bottom{display:none}.nav{display:flex;overflow:auto;gap:3px}.nav button{white-space:nowrap;padding:10px;font-size:13px;gap:5px}.nav svg{width:15px}.main{padding:20px 16px}.topbar h1{font-size:23px}.identity>span{display:none}.metrics{grid-template-columns:repeat(2,1fr);gap:10px}.metric .number{font-size:28px}.aside{display:block}.panel .head{padding:17px}.toolbar{padding:13px 17px}.head{flex-wrap:wrap}.details{grid-template-columns:1fr}.calendar .day{min-height:75px;padding:6px}.event{font-size:12px;padding:3px}.auth-shell{display:block}.auth-intro{padding:30px}.auth-intro .brand{margin-bottom:22px}.auth-intro h1{font-size:26px;margin:0}.auth-intro p,.auth-tags,.auth-line{display:none}.auth-form-wrap{padding:35px 24px}.form{grid-template-columns:1fr}.dialog-body{padding:20px}.dialog-head{padding:16px 20px}.toolbar input{max-width:none;width:100%}.topbar{align-items:flex-start}.topbar .identity{gap:3px}.week{padding:9px 2px}}
/* Allow tables to scroll inside the panel without widening the mobile page. */
td:first-child{min-width:180px}
.workspace>div,.workspace>.aside{min-width:0}.table-scroll td:nth-child(2){white-space:nowrap}.nav{scrollbar-width:none}.nav::-webkit-scrollbar{display:none}@media(max-width:1200px){.workspace{grid-template-columns:minmax(0,1fr)}}
