html.authBlocked body>nav,html.authBlocked body>main,html.authBlocked body>header{visibility:hidden}#authGate{position:fixed;inset:0;z-index:10000;background:#f4f7fb;display:flex;align-items:center;justify-content:center;padding:20px}#authGate.hidden{display:none}.authCard{width:min(420px,100%);background:#fff;border:1px solid #d9e0e8;border-radius:14px;padding:24px;box-shadow:0 18px 50px #0002}.authCard h1{font-size:22px;margin:0 0 6px}.authCard label,.authModalCard label{display:block;margin:14px 0}.authCard input,.authModalCard input,.authModalCard select{width:100%;box-sizing:border-box;min-height:44px}.authRemember,.checkLine{display:flex!important;gap:8px;align-items:center}.authRemember input,.checkLine input{width:auto!important;min-height:0!important}.authError{color:#b42318;min-height:1.5em}.formError:empty{display:none}.fullButton{width:100%;min-height:46px}.userMenuBtn{margin-left:auto}.adminOnly.authHidden,html[data-role="staff"] .adminOnly{display:none!important}.authModal{position:fixed;inset:0;z-index:11000;background:#0008;display:flex;align-items:center;justify-content:center;padding:16px}.authModal.hidden{display:none}.authModalCard{background:#fff;width:min(980px,100%);max-height:92vh;overflow:auto;border-radius:12px;padding:20px;box-shadow:0 20px 60px #0004}.modalHeader{display:flex;align-items:center;gap:12px;margin-bottom:12px}.modalHeader h2{margin:0}.modalHeader .modalClose{margin-left:auto}.modalActions{display:flex;justify-content:flex-end;gap:8px}.passwordWrap{display:flex;gap:6px}.passwordWrap input{flex:1}.passwordToggle{white-space:nowrap}.tableScroll{overflow:auto}.userTable{width:100%;border-collapse:collapse}.userTable td,.userTable th{vertical-align:top;padding:9px;border-bottom:1px solid #e4e7ec;text-align:left}.roleBadge,.currentBadge,.warningBadge{font-size:12px;padding:2px 7px;border-radius:999px;background:#eef2ff}.roleBadge.admin{background:#fee4e2}.currentBadge{background:#dcfae6}.warningBadge{background:#fef0c7}.historyList{display:grid;gap:8px}.historyItem{border-left:3px solid #98a2b3;padding:8px 10px;background:#f8fafc}.warningBox{padding:10px;border-radius:8px;background:#fff4e5;border:1px solid #ffd7a3}.dangerButton{border-color:#fda29b!important;color:#b42318!important}.menuStack{display:grid;gap:8px}.menuStack button{min-height:44px;text-align:left}.userCreatePanel{margin:12px 0;padding:10px;border:1px solid #d0d5dd;border-radius:8px}.authFormGrid{margin-top:10px}.flagHistoryPopover{position:fixed;display:none;z-index:12000;min-width:240px;max-width:340px;background:#111827;color:#fff;border-radius:8px;padding:10px;box-shadow:0 12px 30px #0005;font-size:12px;pointer-events:none}.flagHistoryPopover.show{display:grid;gap:7px}.flagHistoryPopover div+div{border-top:1px solid #ffffff33;padding-top:7px}.flagPill[data-doc-id]{cursor:help}.fieldNote{font-size:12px;color:#667085}@media(max-width:700px){.authModal{padding:0;align-items:flex-end}.authModalCard{width:100%;max-height:94vh;border-radius:14px 14px 0 0;padding:16px}.userTable{min-width:720px}.authFormGrid{grid-template-columns:1fr!important}.modalActions button{flex:1}.flagHistoryPopover{display:none!important}}

/* v5.13.16 従業員追加・招待 */
.successBox{padding:10px;border-radius:8px;background:#ecfdf3;border:1px solid #abefc6}
.infoBox{padding:10px;border-radius:8px;background:#f0f9ff;border:1px solid #b9e6fe;color:#344054}
.successBadge,.neutralBadge{font-size:12px;padding:2px 7px;border-radius:999px;background:#dcfae6;white-space:nowrap}
.neutralBadge{background:#f2f4f7}
.formWide{grid-column:1/-1}
#issuedPassword{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:18px;font-weight:700;letter-spacing:.04em;background:#f8fafc}
@media(max-width:700px){.formWide{grid-column:auto}}

/* v5.13.16 secure invitations */
.successBox,.warningBox,.infoBox{line-height:1.65}
