/* FRONTLINE V3.91 staff manager, isolated modal on same public URL */
.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.staff-entry{background:transparent;color:#c6d7e3;border:1px solid rgba(220,233,244,.34);border-radius:5px;font-size:11px;font-weight:800;letter-spacing:.06em;padding:10px 12px;min-height:42px;cursor:pointer}
.staff-entry:hover,.staff-entry:focus-visible{border-color:#fff;color:#fff}
.staff-modal{border:0;border-radius:12px;padding:0;background:#f2f6f8;color:#153044;width:min(1060px,calc(100vw - 24px));max-height:min(92vh,1000px);box-shadow:0 22px 80px rgba(0,0,0,.5);overflow:auto}
.staff-modal::backdrop{background:rgba(3,19,32,.76)}
.staff-modal[open]{display:block}
.staff-dialog{padding:0}
.staff-top{background:#0c2942;color:#fff;padding:24px 28px;display:flex;justify-content:space-between;align-items:start;gap:20px}
.staff-top h2{font-size:25px;color:#fff;margin:5px 0 0}
.staff-kicker{font-size:10px;font-weight:900;letter-spacing:.12em;color:#d83e48}
.staff-close{border:1px solid #63788b;background:transparent;border-radius:6px;color:#fff;min-width:42px;height:42px;font-size:25px;cursor:pointer}
.staff-notice{margin:0;color:#7c1e28;font-size:13px;line-height:1.6;min-height:0}
.staff-notice:not(:empty){background:#fff7f7;border-bottom:1px solid #eed2d2;padding:12px 27px}
.staff-login-form{max-width:430px;margin:26px auto 36px;background:#fff;padding:27px;border:1px solid #d9e3e9;border-radius:8px;display:grid;gap:15px}
.staff-login-form[hidden],.staff-manager[hidden]{display:none!important}
.staff-login-form p{font-size:13px;color:#4f6676;line-height:1.7;margin:0}
.staff-login-form label,.staff-fields label{display:grid;gap:7px;color:#163c57;font-size:12px;font-weight:800}
.staff-login-form input,.staff-fields input,.staff-fields textarea{font:inherit;width:100%;background:#fff;color:#112d40;border:1px solid #b5c9d4;border-radius:5px;padding:11px 13px;min-height:44px}
.staff-fields textarea{resize:vertical;min-height:70px}
.staff-login-form .btn{width:100%;justify-content:center}
.staff-manager{padding:24px 26px 28px}
.staff-manager-head{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:21px}
.staff-manager-head h3{font-size:25px;margin:4px 0;color:#0e314b}
.staff-manager-head p{color:#546d7d;font-size:12px;line-height:1.5;margin:0}
#staff-logout{border:1px solid #aabfca;background:#fff;color:#213e54;border-radius:5px;padding:10px 16px;min-height:44px;font-weight:800;cursor:pointer}
.staff-manage-grid{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,2fr);gap:20px;align-items:start}
.staff-list-panel,.staff-editor{background:#fff;border:1px solid #dce6eb;border-radius:9px;padding:19px;min-width:0}
.staff-list-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.staff-list-title h4,.staff-editor h4{font-size:17px;color:#173c57;margin:0}
#staff-add{border:0;border-radius:5px;background:#0f3957;color:#fff;padding:10px;font-size:11px;font-weight:800;cursor:pointer;min-height:42px}
.staff-records{display:grid;gap:8px;max-height:520px;overflow:auto}
.staff-record-item{border:1px solid #d7e1e8;border-radius:6px;padding:11px}
.staff-record-item strong{display:block;color:#0a304b;font-size:13px;overflow-wrap:anywhere}
.staff-record-item small{display:block;font-size:11px;color:#587080;margin:5px 0}
.staff-record-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.staff-record-actions button,.staff-photo-card button{min-height:34px;border:1px solid #acc3d0;background:#f8fbfc;border-radius:4px;font-weight:800;padding:7px 11px;color:#163e5b;cursor:pointer;font-size:11px}
.staff-record-actions .staff-delete{color:#b52732;border-color:#e0b1b7}
.staff-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:19px}
.staff-full{grid-column:1/-1}
.staff-photo-area{border:1px dashed #9db5c4;background:#f9fbfc;border-radius:8px;padding:16px;margin-top:18px}
.staff-photo-label{display:block;color:#103a56;font-weight:850;font-size:13px;margin-bottom:9px}
.staff-photo-area input{display:block;width:100%;font-size:12px}
.staff-photo-area>p{font-size:11px;color:#637985;line-height:1.7}
.staff-photo-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.staff-photo-card{border:1px solid #d2e0e8;padding:8px;border-radius:5px;background:#fff;min-width:0}
.staff-photo-card img{width:100%;height:110px;object-fit:cover;border-radius:3px}
.staff-photo-card input{display:block;width:100%;margin:8px 0;border:1px solid #a9becb;border-radius:4px;padding:10px;font-size:12px}
.staff-editor-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px;flex-wrap:wrap}
.staff-editor-actions .btn{min-height:44px}
.staff-hint{font-size:11px;color:#5d7280;line-height:1.7}
.staff-modal button:focus-visible,.staff-modal input:focus-visible,.staff-modal textarea:focus-visible{outline:3px solid #458eac;outline-offset:2px}
@media(max-width:820px){.staff-manage-grid{grid-template-columns:1fr}.staff-records{max-height:240px}}
@media(max-width:530px){.staff-top,.staff-manager{padding:16px}.staff-top h2{font-size:20px}.staff-fields,.staff-photo-list{grid-template-columns:1fr}.staff-manager-head{align-items:flex-start}.staff-editor-actions .btn{width:100%;text-align:center;justify-content:center}.staff-login-form{margin:18px 12px;padding:18px}}
