*{box-sizing:border-box}body{margin:0;font:16px system-ui,'Microsoft YaHei',sans-serif;color:#18334d;background:#eef4f9}header{height:70px;background:white;padding:0 5%;display:flex;align-items:center;gap:24px;border-bottom:1px solid #dce6ef}header b{font-size:22px}header span,p{color:#728aa0}header button{margin-left:auto}main{max-width:1450px;margin:40px auto;padding:0 24px}h1{margin:0;font-size:28px}button{cursor:pointer;border:1px solid #cfe0ef;border-radius:8px;background:white;color:#246cc2;padding:10px 16px}button:hover{background:#eaf3ff}input{border:1px solid #cbdbe9;border-radius:8px;padding:11px;font:inherit;width:100%;color:#18334d}label{display:grid;gap:7px;color:#59738c;font-size:14px}#auth{background:white;max-width:430px;margin:10vh auto;border-radius:16px;padding:32px;box-shadow:0 12px 40px #153c5912}#authForm{display:grid;gap:18px}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}#search{max-width:450px;margin-bottom:18px}.table{background:white;border-radius:12px;overflow:auto}table{border-collapse:collapse;min-width:1050px;width:100%;text-align:center}th{background:#e3eff9}th,td{padding:15px;border:1px solid #e1eaf2;white-space:pre-line}td:first-child{color:#1764ae;font-weight:bold}td button{margin:2px;padding:6px}dialog{border:0;border-radius:14px;width:min(680px,94vw);box-shadow:0 15px 70px #17395740}dialog::backdrop{background:#17395777}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.actions{text-align:right;margin-top:22px}#notice{position:fixed;bottom:20px;right:20px;background:#1c3a57;color:white;padding:12px;border-radius:8px}#notice:empty{display:none}@media(max-width:600px){.fields{grid-template-columns:1fr}.heading{align-items:flex-start}header span{display:none}}
.status{display:block;margin-top:6px;color:#8195a6;font-size:13px;font-weight:normal}.status.marked{color:#a16600;background:#fff0cd;border-radius:5px;padding:4px}.expiry{color:#c52a3c}fieldset{grid-column:1/-1;border:1px solid #d9e6f1;border-radius:8px}.certificate{display:flex;align-items:center;gap:14px;margin:8px 0}.certificate label{display:flex;align-items:center;min-width:66px}.certificate input[type=checkbox]{width:auto}.certificate input[type=date]{max-width:210px}#count{margin-left:16px;color:#728aa0}
.workspace{display:flex;min-height:calc(100vh - 70px)}aside{width:230px;flex:none;background:#fff;border-right:1px solid #e1eaf2;padding:28px 18px;position:relative}.nav-label{font-size:13px;margin:0 12px 12px;color:#889daf}.nav-item{background:#e8f4fc;color:#2781ed;padding:13px 16px;border-radius:9px;border-left:3px solid #3188f5;font-weight:600}.sidebar-note{position:absolute;bottom:30px;color:#9aadbd;font-size:13px;left:30px}.workspace main{flex:1;min-width:0;width:100%;max-width:none;margin:40px auto;padding:0 36px}section#app,section#admin{max-width:1600px;margin:auto}.table-note{padding:14px 20px;text-align:left;background:#f6f9fc;color:#7990a6;font-size:14px;border-bottom:1px solid #dce7ef}#app table{min-width:1250px}#app th{font-size:14px;font-weight:600}#app td{font-size:14px}#app td:first-child{background:#edf6fd;min-width:110px}#app tr:nth-child(even) td:not(:first-child){background:#f7fafc}#add{background:#eaf2ff;border-color:#c7dcff;font-weight:600}#account{margin-left:auto}header button{margin-left:0}#auth{max-width:440px}#authForm>div{display:flex;gap:10px}#authForm button:first-child{background:#2b80ee;color:white;border-color:#2b80ee}@media(max-width:700px){aside{width:150px;padding:20px 10px}.workspace main{padding:0 16px;margin:25px auto}.sidebar-note{left:14px}.heading{gap:12px;flex-wrap:wrap}}@media(max-width:480px){aside{width:100%;padding:8px 12px}.workspace{display:block}.sidebar-note,.nav-label{display:none}.nav-item{display:inline-block}.workspace main{margin-top:20px}}

.person-name{background:none;border:0;padding:0;color:#1764ae;font-size:15px;font-weight:700}.person-name:hover{text-decoration:underline;background:none}.menu-actions{display:grid;gap:8px;min-width:200px}.trash-row{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid #e2ebf2;padding:10px 0}#passwordForm label,#resetForm label{margin-top:12px}
body.auth-mode{background:#eaf3fb url('/construction.png') center bottom/cover no-repeat}body.auth-mode header{background:transparent;border:0;padding:0 4%;height:76px}body.auth-mode .workspace{min-height:calc(100vh - 76px)}body.auth-mode .workspace main{padding:0 7%;margin:0}.auth-layout{min-height:calc(100vh - 76px);display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,530px);gap:7%;align-items:start;padding-top:8vh}.auth-layout[hidden]{display:none}.auth-intro{padding-top:1vh;max-width:600px}.auth-intro h1{font-size:clamp(42px,5vw,72px);line-height:1.1;color:#102c4f}.auth-intro h2{font-size:clamp(20px,2vw,29px);font-weight:500;color:#243f60;margin:16px 0 36px}.auth-intro p{line-height:1.7;color:#607b97}.auth-features{display:flex;gap:46px;margin-top:48px;color:#153a65;font-weight:700}.auth-features small{font-weight:400;font-size:13px;color:#7189a1}.auth-layout #auth{width:100%;max-width:none;margin:0;background:#fff;border-radius:18px;padding:40px;box-shadow:0 15px 60px #1d46601a}.auth-layout #auth h1{font-size:31px}.auth-layout #auth p{margin:14px 0 24px}.auth-layout #authForm{gap:18px}.auth-layout #authForm input{height:51px}.auth-layout #authForm #authSubmit{height:52px;width:100%;background:#2d7fea;color:#fff;font-weight:700;border:0}.auth-layout .auth-links{display:flex;justify-content:space-between}.auth-layout .auth-links button{border:0;background:none;color:#2477d6;padding:0;font-size:15px}.auth-layout #membershipHint{font-size:13px;color:#8296a9}.auth-layout label[hidden]{display:none}@media(max-width:760px){body.auth-mode .workspace main{padding:20px}.auth-layout{display:block;padding-top:0}.auth-intro{padding:10px 0 25px}.auth-intro h1{font-size:38px}.auth-intro h2{font-size:18px;margin:10px 0}.auth-intro p,.auth-features{display:none}.auth-layout #auth{padding:26px}body.auth-mode header{height:65px}}

.auth-features span{text-align:center}.auth-features img{display:block;margin:0 auto 10px;padding:10px;width:48px;height:48px;border-radius:50%;background:#dcecff;filter:invert(30%) sepia(100%) saturate(1800%) hue-rotate(191deg)}

[hidden]{display:none!important}
.auth-layout #authForm .remember-option{display:flex;align-items:center;gap:8px;color:#4f6d88;cursor:pointer}
.auth-layout #authForm .remember-option input{width:16px;height:16px;accent-color:#2d7fea;margin:0}
.auth-layout #authForm .remember-option small{font-size:12px;color:#8aa0b3}

/* Personnel workspace */
body:not(.auth-mode){background:#edf3f8;color:#183652}
body:not(.auth-mode) header{height:72px;padding:0 36px;box-shadow:0 1px 0 #dbe7f0}
body:not(.auth-mode) header b{font-size:21px;letter-spacing:.02em}
body:not(.auth-mode) aside{width:220px;padding:28px 16px;background:#fff}
body:not(.auth-mode) .nav-label{font-size:13px;color:#91a6b9;margin:0 12px 12px}
body:not(.auth-mode) .nav-item{display:block;width:100%;text-align:left;margin-bottom:6px;border:0;border-left:3px solid transparent;background:transparent;color:#466681;padding:13px 15px}
body:not(.auth-mode) .nav-item:hover,body:not(.auth-mode) .nav-item[aria-current="page"]{border-left-color:#2c89f2;background:#e9f4fc;color:#2077d5}
body:not(.auth-mode) .workspace main{margin:0;padding:42px 34px;max-width:none}
#app .heading,.membership-page .heading{gap:20px;margin-bottom:30px}
#app .heading p,.membership-page .heading p{margin:8px 0 0;color:#758da3}
#app .heading>div:last-child{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
#app .legacy-preview-link{font-size:14px;color:#357ad0;text-decoration:none}
#app .table{border:1px solid #dce8f1;box-shadow:0 10px 30px #204d7010}
#app .table-note{padding:16px 20px}
#app th{background:#dfeef9;color:#28506e}
#app td{height:72px}
#app #empty{padding:24px 0;color:#8ba0b4}
.membership-page{max-width:1600px;margin:auto}
.membership-card{background:#fff;border:1px solid #dce8f1;border-radius:16px;padding:30px 32px;display:flex;flex-direction:column;gap:12px;width:min(460px,100%);box-shadow:0 10px 30px #204d7010}
.membership-card span{color:#7189a1;font-size:14px}
.membership-card strong{font-size:28px;color:#183652}
.membership-card small{color:#8ba0b4}
@media(max-width:700px){body:not(.auth-mode) aside{width:150px;padding:20px 10px}body:not(.auth-mode) .workspace main{padding:28px 16px}#app .heading>div:last-child{justify-content:flex-start}}
@media(max-width:480px){body:not(.auth-mode) aside{width:100%;padding:8px 12px}body:not(.auth-mode) .nav-item{display:inline-block;width:auto;margin:0 6px 0 0}}
/* Keep the selected construction visual, improve form spacing and legibility. */
#authTitle{margin-bottom:24px;line-height:1.25}
#authForm label{color:#405b73;font-size:15px}
#authForm input{font-size:16px;min-height:48px}
#authForm input[type=checkbox]{min-height:0;width:18px;height:18px}
#authForm .auth-links button{background:transparent;color:#2369b3;border:0;border-radius:4px;padding:6px 0;min-height:36px;font-size:14px}
#authForm .auth-links button:hover{text-decoration:underline}
#authForm small{color:#526c82;font-size:13px}
#authForm .remember-option{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px}
#authForm .remember-option small{font-size:12px}
#authForm button:focus-visible,#authForm input:focus-visible{outline:3px solid #1769c2;outline-offset:3px}
.auth-intro>p{color:#3e5d79;line-height:1.8}
@media(max-width:600px){#authTitle{margin-bottom:22px}#authForm{gap:18px}#auth{padding:28px 24px!important}.auth-intro h1{font-size:36px}.auth-intro h2{font-size:17px}}
