.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(100%,470px);padding:36px}.auth-card .brand{margin-bottom:32px}.auth-card h1{font-size:26px;line-height:1.2;margin-bottom:12px}.auth-card>p{font-size:14px;line-height:1.6;color:var(--muted);margin-bottom:24px}.auth-card .field{margin:22px 0}.auth-card .button{width:100%}.auth-card .auth-error{color:#a12b2b;font-size:14px;line-height:1.5}.auth-card .microcopy{margin-top:24px;margin-bottom:0}.upload-state{font-size:12px;color:var(--muted);margin:8px 0}.upload-state.failed,.service-error{color:#a12b2b}.upload-state.stored{color:var(--accent-ink)}.remote-photo{padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--accent-wash);font-size:13px;overflow-wrap:anywhere}.request-details .text-button{margin-top:8px}.service-link{color:var(--accent);font-weight:600;text-decoration:underline}.import-result{padding:12px 0;font-size:14px;line-height:1.6}.header-tools .demo-label{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.form-actions .button:disabled{opacity:.5;cursor:wait}.pending-label{background:#fcf2d9;color:#795c23}.submitted-label{background:var(--accent);color:white}.inactive-label{background:#edf0f4;color:#69717c}.import-actions{display:flex;gap:12px;justify-content:flex-end}.photo-tile .upload-state{padding:0 10px}.review-progress{padding:12px;background:var(--accent-wash);border-radius:8px;font-size:14px;line-height:1.5;margin-top:12px}.storage-note .offline-note{line-height:1.5}
.context-message{white-space:pre-line;max-height:55vh;overflow:auto;overflow-wrap:anywhere}
@media(max-width:680px){.auth-card{padding:24px}.auth-card h1{font-size:24px}.header-tools .demo-label{display:block;font-size:10px;max-width:160px}}

/* Keep the sidebar footer in document flow, including short viewports. */
.login-page{min-height:100svh;background-color:var(--ink);background-image:linear-gradient(120deg,rgba(15,19,25,.48),rgba(15,19,25,.28)),url('./login-background.jpg');background-position:center;background-size:cover;background-repeat:no-repeat}
.login-page .auth-card{background:rgba(255,255,255,.97);border:1px solid rgba(255,255,255,.8);box-shadow:0 20px 70px #0005;backdrop-filter:blur(8px)}
.sidebar{overflow-y:auto;overflow-x:hidden}
.brand-mark.brand-dollar{display:block;padding:0;object-fit:contain;flex-shrink:0}
.sidebar>.brand,.sidebar>.nav-label,.sidebar>.navigation,.sidebar>.sidebar-note{flex-shrink:0}
.sidebar-footer{display:flex;flex-direction:column;flex-shrink:0;gap:14px;margin-top:22px}
.sidebar-footer .sidebar-bottom{padding:0 3px;min-width:0}
.admin-entry{position:static;display:block;padding:12px 3px 0;border-top:1px solid var(--line);font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.admin-entry:hover{color:var(--ink);text-decoration:underline}
@media(max-width:680px){.sidebar{overflow:visible}.sidebar-footer{margin-top:14px;gap:0}.admin-entry{padding:12px 0;border-top:1px solid var(--line);text-align:left}}
