:root{font-family:system-ui,sans-serif;color:#182335;background:#edf1f6;font-size:16px}*{box-sizing:border-box}body{margin:0}header{background:#18202e;color:white;display:flex;gap:25px;align-items:center;padding:25px max(20px,calc((100vw - 1100px)/2))}header img{width:175px;filter:brightness(0) invert(1)}header small{letter-spacing:.18em;color:#b9cbe1}h1{font-size:1.6rem;margin:6px 0}main{max-width:1100px;margin:30px auto;padding:0 20px}.panel{background:white;border:1px solid #c5d0df;border-radius:10px;padding:25px;margin:22px 0}#login{max-width:450px;margin:40px auto}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}.card{display:block;background:#fff;border:1px solid #c5d0df;border-top:5px solid #a51a32;padding:24px;border-radius:10px;color:inherit;text-decoration:none}.card:hover{background:#e6edf6}label{display:block;margin:14px 0;font-weight:600}input,select,button{font:inherit;border:1px solid #a6b5c8;border-radius:5px;padding:11px}input:not([type=checkbox]),select{display:block;width:100%;margin-top:7px}.check{display:flex;align-items:center;gap:10px}button{cursor:pointer;background:#263d5c;color:white}button:disabled{opacity:.5;cursor:default}.heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.user-row{display:flex;justify-content:space-between;width:100%;margin:6px 0;background:#f1f5fa;color:#182335;text-align:left}.user-row span{font-size:.85rem}dialog{max-width:650px;width:calc(100% - 24px);max-height:90vh;border:1px solid #a6b5c8;border-radius:12px;padding:25px}dialog::backdrop{background:#101b2acc}fieldset{border:1px solid #c5d0df;margin:18px 0;border-radius:6px}legend{font-weight:700}#message,#editor-error{color:#9a1a30}summary{cursor:pointer;font-weight:600}[hidden]{display:none!important}@media(max-width:600px){header{flex-wrap:wrap;padding:18px;gap:15px}header img{width:135px}h1{font-size:1.25rem}.panel{padding:18px}.user-row{gap:12px}.user-row span{max-width:45%}}

.driver-choice{padding:10px 12px;margin:6px 0;border:1px solid #c5d0df;border-radius:5px;font-weight:400}.driver-choice input{width:20px;height:20px;flex-shrink:0}#assigned-profiles{max-height:250px;overflow:auto;margin-top:12px}#assignment-summary{font-weight:600}.danger{background:#a51a32;color:white;border-color:#a51a32}#delete-error{color:#9a1a30}#user-form>.heading{flex-wrap:wrap}

.user-row{align-items:center;gap:16px}.user-presence{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.presence-state{font-weight:700}.presence-state::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#8491a3;margin-right:7px}.presence-state.online{color:#17633b}.presence-state.online::before{background:#20804b}.presence-state.disabled{color:#8d3340}.last-seen{color:#506078;font-size:12px;font-weight:400}@media(max-width:540px){.user-row{align-items:flex-start}.user-presence{max-width:65%;text-align:right}.last-seen{line-height:1.5}}

/* Larger, high-contrast account status pills. */
.user-row .presence-state{display:inline-flex;align-items:center;justify-content:center;min-width:78px;min-height:27px;padding:4px 11px;border-radius:999px;font-size:13px;line-height:1.25;font-weight:700;max-width:none;white-space:nowrap;color:#485468;background:#e3e8ef}
.user-row .presence-state::before{display:none}
.user-row .presence-state.online{background:#e0eee5;color:#205c38}
.user-row .presence-state.offline{background:#f8e5e9;color:#96283e}
.user-row .presence-state.disabled{background:#e3e8ef;color:#485468}
.user-row .user-presence{gap:4px;flex-shrink:0;max-width:65%}
.user-row .last-seen{max-width:none;line-height:1.4}
@media(max-width:540px){.user-row>strong{min-width:0;overflow-wrap:anywhere}.user-row .user-presence{max-width:65%}.user-row .presence-state{min-width:78px}}

.user-group{margin-top:24px}.user-group h3{margin:0 0 8px;padding-bottom:9px;border-bottom:1px solid #c5d0df;font-size:1rem;color:#344962}

.password-tools{display:flex;gap:8px;flex-wrap:wrap}.password-tools button{flex:1;min-width:90px}#handover-password{font:600 1.15rem ui-monospace,monospace;letter-spacing:.04em}#temporary-status:empty,#handover-status:empty{display:none}.recovery-page{max-width:520px;margin:40px auto;padding:24px}small{display:block;font-weight:normal;margin-top:6px;color:#526786}#forgot-password{margin-top:14px}#mail-status{padding:10px;background:#f1f4f9;border-radius:5px}
