#app:has(.auth-page) { display: block; }
.auth-page { min-height: 100dvh; width: 100vw; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 7vw; background: #f5f3ef; }
.auth-brand { display: grid; gap: 24px; max-width: 520px; }
.auth-logo { display: flex; align-items: center; gap: 12px; }
.auth-logo svg { width: 64px; height: 40px; }
.auth-logo strong { font-size: 21px; letter-spacing: .02em; }
.auth-brand h1 { font-size: clamp(32px, 4vw, 58px); letter-spacing: -.045em; }
.auth-brand p { color: #4e5e67; font-size: 18px; }
.auth-colours { display: flex; gap: 10px; }
.auth-colours span { height: 8px; width: 50px; border-radius: 20px; background: #17468f; }
.auth-colours span:nth-child(2) { background: #904008; }.auth-colours span:nth-child(3) { background: #075a60; }.auth-colours span:nth-child(4) { background: #592f98; }
.auth-card { padding: 32px; background: #fff; border: 1px solid #e1e4e6; border-top: 5px solid #b89a6c; border-radius: 16px; max-width: 500px; width: 100%; box-shadow: 0 18px 60px #0b19240d; }
.auth-card .input { min-height: 48px; }.auth-card .primary { width: 100%; min-height: 48px; }
.password-input { display:flex; align-items:center; padding-right:4px; border:1px solid #99aaad; border-radius:11px; background:#fff; }
.password-input:focus-within { outline:2px solid #147579; outline-offset:1px; }
.password-input .input { flex:1 1 auto; min-width:0; border:0; box-shadow:none; background:transparent; }
.password-input .input:focus-visible { outline:0; }
.password-input button { flex:none; padding:0 11px; min-height:44px; border:0; border-radius:8px; background:#edf5f4; color:#135f62; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.password-input button:hover { background:#dcece9; }
.auth-setup { background: #e6efff; color: #17468f; padding: 16px; border-radius: 8px; font-size: 13px; }
.auth-setup strong { display: block; margin-bottom: 8px; }
.accounts-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.account-filter-grid { display: grid; grid-template-columns: minmax(0,2fr) repeat(2,minmax(0,1fr)); gap: 16px; align-items: end; }
.account-filters .field { min-width: 0; }
.account-filters .input { min-height: 48px; }
.account-role-help { padding: 14px 16px; border-left: 4px solid var(--stage-accent); border-radius: 8px; background: var(--stage-fill); color: var(--stage-ink); overflow-wrap: anywhere; }
.account-card { border-top: 4px solid var(--stage-accent); }
.account-card .badge { background: var(--stage-fill); color: var(--stage-ink); }
.account-card h2 { font-size: 19px; overflow-wrap: anywhere; }.account-login { overflow-wrap: anywhere; color: var(--muted); }
.topbar .logout { font-size: 12px; min-height: 36px; }
.nav button[data-action^="auth:"] { --nav-role: var(--workspace); --nav-soft: var(--workspace-soft); }
.invite-link { font-size: 12px; }
.mfa-secret { display:block; overflow-wrap:anywhere; padding:12px; background:#f1f5f9; }
.mfa-code { font-variant-numeric:tabular-nums; letter-spacing:.08em; }
.mfa-time { font-variant-numeric:tabular-nums; }
.mfa-count { font-size:.85rem; font-weight:400; color:#4d6069; }
.mfa-steps { padding-left:24px; }
.mfa-recovery { display:grid; gap:8px; padding:12px; background:#f1f5f9; border-radius:8px; overflow-wrap:anywhere; }
.mfa-recovery code { font-size:12px; }
.mfa-ack { display:flex; gap:10px; align-items:flex-start; }.mfa-ack input { margin-top:5px; }
.device-choice { align-items:center; min-height:44px; cursor:pointer; }
.device-choice input { inline-size:20px; block-size:20px; flex:none; margin:0; }
@media(max-width:760px) { .auth-page { grid-template-columns: minmax(0,1fr); gap:24px; padding:24px 16px; align-content:start; }.auth-brand{gap:12px}.auth-brand h1{font-size:28px}.auth-brand>p{display:none}.auth-logo svg{width:52px;height:34px}.auth-logo strong{font-size:19px}.auth-card{padding:24px;max-width:none}.accounts-grid{grid-template-columns:minmax(0,1fr)}.nav:has([data-action^="auth:"]){grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:380px) { .auth-card{padding:18px}.auth-page{padding:16px 12px}.auth-card h2{font-size:21px}.auth-brand h1{font-size:24px} }
@media(max-width:900px) { .account-filter-grid { grid-template-columns: minmax(0,1fr); } }
@media(max-width:760px) { .nav:not(:has([data-action="auth:accounts"])) { grid-template-columns: minmax(0,1fr); } }

.auth-page.owner-login {
  display:grid; grid-template-columns:minmax(0,410px); justify-content:center; align-content:center;
  min-height:100dvh; width:100%; padding:24px 16px;
  background:radial-gradient(ellipse at 9% 8%,#315465 0,transparent 52%),linear-gradient(138deg,#152f40,#0b1b29 75%);
}
.owner-login .auth-card { padding:clamp(24px,5vw,36px); border-color:#fff7; border-top:4px solid #c6a26a; border-radius:20px; background:#fcfbf8; box-shadow:0 22px 60px #07131d54; }
.owner-login .auth-logo { margin-bottom:12px; }
.owner-login h1 { font-size:clamp(30px,5vw,40px); }
.owner-login .hint { margin:0 0 6px; }
.owner-login .button.primary { background:#123341; color:#fff; border-color:#123341; }
.staff-work-list { display: grid; gap: 14px; }
.staff-work-list[hidden] { display: none; }
.staff-work-list h3 { font-size: 1rem; margin: 0 0 6px; }
.staff-work-list ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.staff-work-list li + li { border-top: 1px solid var(--line); }
.staff-work-row { width: 100%; min-height: 48px; padding: 10px 12px; text-align: start; display: grid; gap: 3px; background: transparent; border: 0; color: var(--ink); font: inherit; overflow-wrap: anywhere; cursor: pointer; }
.staff-work-row span { font-size: .87rem; color: var(--muted); }
.staff-work-person { display:block; font-size:.87rem; font-weight:400; line-height:1.4; color:var(--muted); overflow-wrap:anywhere; }
.staff-work-row[data-returned-work] { background:var(--workspace-soft); box-shadow:inset 3px 0 var(--workspace); }
.staff-work-row:focus-visible { outline: 2px solid var(--workspace,var(--ink)); outline-offset: -2px; }
