/* Account chrome shared by employee and manager workspaces. */
.employee-access, #manager_access_panel { box-shadow: none; }
body[data-worker-access="active"] .employee-access,
body[data-manager-access="active"] #manager_access_panel {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: transparent; border: 0; padding: 0 0 1rem; margin: 0 0 1.5rem;
  border-bottom: 1px solid #e2e5ec; border-radius: 0;
}
.employee-identity, .manager-identity { margin: 0; font-size: .82rem; line-height: 1.5; font-weight: 600; color: #475569; overflow-wrap: anywhere; }
.account-menu { position: relative; flex-shrink: 0; }
.account-menu summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; padding: .5rem .75rem; border: 1px solid #dce0e9; border-radius: 9px; background: white; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: "⌄"; }
.account-menu[open] summary { border-color: var(--accent); }
.account-actions { position: absolute; right: 0; top: calc(100% + 8px); width: min(250px, 80vw); z-index: 30; padding: .5rem; background: white; border: 1px solid #e2e5ec; border-radius: 12px; box-shadow: 0 12px 32px #0f172a1a; }
.account-actions > a, .account-actions > button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: .65rem .75rem; border-radius: 7px; font-size: .875rem; text-align: left; justify-content: flex-start; box-shadow: none; outline: none; background: transparent; }
.account-actions > :is(a,button):hover { background: #f1f3f9; }
.account-actions p:empty { display: none; }
.account-actions p { font-size: .8rem; line-height: 1.5; padding: 0 .75rem; }
body[data-manager-access="missing"] main > :not(#manager_access_panel) { display: none !important; }
.manager-credential-row { display: none !important; }
body[data-manager-access="missing"] #manager_access_panel,
body[data-worker-access="missing"] #worker_access_panel { margin: 3rem auto; max-width: 32rem; padding: clamp(1.25rem, 5vw, 2.5rem); border: 1px solid #e2e5ec; background: white; border-radius: 18px; }
#manager_access_panel h1, #worker_access_panel h2 { font-size: 1.6rem; letter-spacing: -.035em; margin-bottom: .75rem; }
#manager_access_panel form { display: grid; gap: .75rem; }
#manager_access_panel form p, #worker_access_panel > p { color: #475569; line-height: 1.6; }
#manager_access_panel form p:empty { display: none; }
.access-caption { color: #64748b; font-size: .8rem; line-height: 1.6; }
.login-app { background: #f6f7f9; }
.login-shell { min-height: 100svh; max-width: 66rem; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; padding: 3rem 2rem; }
.login-brand { font-size: 1.15rem; font-weight: 750; letter-spacing: -.04em; color: #17233c; display: inline-flex; align-items: center; gap: .6rem; }
.login-brand::before { content: "S"; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px; background: #4f46e5; color: white; font-size: 1rem; }
.login-intro h2 { font-size: clamp(2.25rem, 5vw, 3.3rem); letter-spacing: -.055em; line-height: 1.08; font-weight: 650; color: #17233c; margin: 2.5rem 0 1rem; }
.login-intro p { color: #526078; max-width: 24rem; line-height: 1.7; }
.login-preview { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.login-preview span { background: white; border: 1px solid #e2e5ec; padding: .5rem .7rem; border-radius: 8px; font-size: .8rem; color: #475569; }
.employee-login { padding: 2rem; border: 1px solid #e2e5ec; box-shadow: 0 16px 48px #17233c08; border-radius: 20px; }
.employee-login .page-title { font-size: 1.65rem; line-height: 1.2; letter-spacing: -.04em; margin-bottom: 1rem; }
.employee-login p { color: #526078; line-height: 1.65; font-size: .9rem; }
.employee-login .btn-primary { width: 100%; }
.login-kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .7rem !important; font-weight: 700; }
.login-help { border-top: 1px solid #e2e5ec; padding-top: 1rem; margin-top: 1.5rem; }
.login-help summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: .85rem; font-weight: 600; }
.login-help p { font-size: .82rem; }
.login-manager { display: inline-flex; min-height: 44px; align-items: center; font-size: .82rem; }
:is(.account-menu summary, .login-help summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) {
  .login-shell { display: block; padding: 2rem 1rem; }
  .login-intro h2 { font-size: 2.1rem; margin: 2rem 0 .75rem; }
  .login-preview { display: none; }
  .employee-login { margin-top: 2rem; padding: 1.5rem; }
}
