/* Account and access pages use the same visual language as the monitor. */
.auth-page { --ink:#183438; --muted:#617477; --line:#dde5e3; --mint:#b9f6d8; --paper:#f3f6f4; --green:#087e69; color-scheme:light; margin:0; background:var(--paper); color:var(--ink); font:14px Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
.auth-page * { box-sizing:border-box; }
.auth-page main { margin:0 auto; }
.auth-page h1 { font-size:34px; font-weight:650; letter-spacing:-1px; line-height:1.2; margin:0 0 8px; }
.auth-page .eyebrow { font-size:10px; letter-spacing:1.7px; font-weight:700; margin:0 0 8px; color:var(--green); }
.auth-page button,.auth-page a { -webkit-tap-highlight-color:transparent; }
.auth-page button:focus-visible,.auth-page a:focus-visible { outline:3px solid #4ea99a; outline-offset:4px; }
[hidden] { display:none !important; }
.auth-page { min-height:100vh; padding:0 0 env(safe-area-inset-bottom); }
.auth-brand { background:#132e31; color:#fff; padding:28px 24px; text-align:center; }
.auth-brand a { color:inherit; text-decoration:none; font-size:25px; font-weight:650; letter-spacing:-.8px; }
.auth-brand span { color:var(--mint); font-weight:500; }
.auth-brand p { margin:6px 0 0; color:#c1d4d2; font-size:12px; }
.auth-main { width:100%; max-width:1000px; padding:36px 24px 64px; }
.auth-main-narrow { max-width:500px; padding-top:46px; }
.auth-card { border:1px solid var(--line); border-radius:14px; padding:28px; background:#fff; margin-bottom:20px; box-shadow:0 2px 8px #17343804; }
.auth-card h1 { font-size:30px; }
.auth-card h2 { margin:0; font-size:20px; letter-spacing:-.4px; }
.auth-intro { color:var(--muted); line-height:1.6; margin:10px 0 22px; }
.auth-form fieldset { display:grid; gap:18px; padding:0; margin:0; min-width:0; border:0; }
.auth-form label,.auth-label { display:grid; gap:8px; font-weight:600; font-size:13px; min-width:0; }
.auth-form input,.auth-form select,.auth-label input { width:100%; min-width:0; min-height:46px; padding:11px 12px; border:1px solid #b9ceca; border-radius:7px; background:#fff; color:var(--ink); font:inherit; font-size:16px; font-weight:400; }
.auth-form input:focus-visible,.auth-form select:focus-visible,.auth-label input:focus-visible { outline:3px solid #90d3c5; outline-offset:2px; }
.auth-form input[readonly] { background:#f3f6f4; }
.auth-primary,.auth-secondary { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border:1px solid transparent; border-radius:7px; padding:10px 16px; font:inherit; font-weight:650; font-size:13px; cursor:pointer; text-align:center; text-decoration:none; line-height:1.35; }
.auth-primary { background:#087e69; color:#fff; }
.auth-primary:hover { background:#066c5a; }
.auth-secondary { color:#18594e; border-color:#cbdcd7; background:#f5f9f7; }
.auth-secondary:hover { background:#eaf3ef; }
.auth-primary:disabled,.auth-secondary:disabled { opacity:.5; cursor:default; }
.auth-form[aria-busy="true"] { opacity:.8; }
.auth-message { min-height:22px; margin:16px 0 0; font-size:13px; color:#17624e; line-height:1.55; overflow-wrap:anywhere; }
.auth-message:empty { display:none; }
.auth-message.is-error { color:#a13f32; }
.auth-help,.auth-field-help { font-size:12px; line-height:1.65; color:var(--muted); }
.auth-help { border-top:1px solid var(--line); padding-top:18px; margin:24px 0 0; }
.auth-field-help { margin:0; }
.auth-form .auth-field-help { margin-top:-10px; }
.auth-text-link { color:#096f5d; font-weight:650; line-height:1.5; text-underline-offset:3px; }
.auth-card>.auth-text-link { display:inline-block; margin-top:16px; }
.auth-page-heading,.auth-list-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.auth-page-heading { margin-bottom:26px; }
.auth-page-heading .auth-intro { margin-bottom:0; }
.auth-list-heading { align-items:flex-start; }
.auth-form .auth-add-fields { display:grid; grid-template-columns:minmax(180px,1fr) 170px; align-items:end; }
.auth-add-notifications,.auth-add-fields>button { grid-column:1/-1; }
.auth-add-fields>button { justify-self:start; }
.auth-form .auth-checkbox { display:flex; align-items:center; gap:10px; min-height:44px; cursor:pointer; }
.auth-form .auth-checkbox input { width:21px; min-width:21px; min-height:21px; height:21px; margin:0; accent-color:#087e69; }
.auth-form .auth-add-notifications .auth-field-help { margin:3px 0 0 31px; }
#add-user-form+.auth-field-help { margin-top:15px; }
#users-message { margin:-8px 0 22px; }
.auth-link-result { border-color:#88bfae; background:#f3fbf7; }
.auth-link-result .auth-actions { margin:14px 0; }
.auth-actions { display:flex; gap:10px; flex-wrap:wrap; }
.auth-user { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:22px; border-top:1px solid var(--line); padding:20px 0; }
.auth-user:last-child { padding-bottom:0; }
.auth-user h3 { font-size:14px; margin:0 0 8px; line-height:1.5; overflow-wrap:anywhere; }
.auth-user-you { font-size:10px; margin-left:8px; color:#627a74; border:1px solid #cddbd6; border-radius:4px; padding:2px 5px; white-space:nowrap; }
.auth-user-role { display:inline-block; margin:0 10px 0 0; font-size:12px; color:var(--muted); }
.auth-user-date { margin:8px 0 0; color:var(--muted); font-size:11px; }
.auth-user-status { display:inline-block; border-radius:4px; padding:3px 6px; font-size:11px; font-weight:600; }
.auth-user-active { color:#17624e; background:#e5f3eb; }
.auth-user-disabled { color:#7e4a44; background:#f8eae6; }
.auth-user-invited { color:#7c591b; background:#faf1da; }
.auth-user-actions { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:7px; max-width:310px; }
.auth-user-actions button { font-size:11px; min-height:38px; padding:8px 11px; }
.auth-noscript { margin:20px; text-align:center; }
.account-bar { background:#eaf1ee; border-bottom:1px solid #d8e3df; }
.account-inner { max-width:1296px; padding:10px 48px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.account-identity { display:flex; gap:10px; align-items:center; min-width:0; }
.account-label { font-size:9px; letter-spacing:1px; color:#627b73; font-weight:650; white-space:nowrap; }
#account-email { overflow-wrap:anywhere; font-size:12px; }
.account-actions { display:flex; flex-wrap:wrap; align-items:center; gap:18px; flex-shrink:0; font-size:12px; }
.account-actions>.auth-secondary { min-height:36px; padding:7px 11px; font-size:12px; }
.account-details { position:relative; }
.account-details summary { cursor:pointer; color:#18594e; padding:10px 0; font-weight:650; }
.account-details summary:focus-visible { outline:3px solid #4ea99a; outline-offset:3px; }
.account-panel { position:absolute; z-index:40; right:0; top:calc(100% + 7px); width:340px; padding:24px; background:#fff; border:1px solid #bed0c8; border-radius:10px; box-shadow:0 10px 30px #132e3125; }
.account-panel h2 { margin:0 0 20px; font-size:19px; }
.account-panel .auth-form fieldset { gap:16px; }
.auth-session-guard { width:min(420px,calc(100% - 32px)); position:fixed; z-index:150; top:140px; left:50%; transform:translateX(-50%); padding:24px; background:#fff; border:1px solid var(--line); border-radius:12px; text-align:center; box-shadow:0 8px 30px #17343813; }
.auth-session-guard p { margin:0; line-height:1.6; }
.auth-session-guard button { margin-top:15px; }
.auth-verifying main,.auth-verifying #account-bar,.auth-verifying .mobile-nav { visibility:hidden; }
.auth-expired main,.auth-expired #account-bar,.auth-expired .mobile-nav { display:none !important; }
@media(max-width:760px) {
  .account-inner { padding:10px 20px; flex-wrap:wrap; gap:4px 12px; }
  .account-identity { width:100%; }
  .account-actions { width:100%; justify-content:flex-end; gap:20px; }
  .account-panel { right:-83px; width:min(340px,calc(100vw - 40px)); }
  .auth-user { grid-template-columns:1fr; gap:14px; }
  .auth-user-actions { justify-content:flex-start; max-width:none; }
  .auth-user-actions button { min-height:44px; font-size:12px; }
  .auth-form .auth-add-fields { grid-template-columns:1fr 160px; }
  .auth-add-fields button { grid-column:1/-1; }
}
@media(max-width:480px) {
  .auth-brand { padding:24px 20px; }
  .auth-main,.auth-main-narrow { padding:26px 16px 40px; }
  .auth-card { padding:23px 20px; border-radius:11px; }
  .auth-page-heading { display:block; }
  .auth-page-heading>.auth-secondary { margin-top:16px; }
  .auth-page-heading h1 { font-size:29px; }
  .auth-card h1 { font-size:28px; }
  .auth-form .auth-add-fields { grid-template-columns:1fr; }
  .auth-list-heading { flex-wrap:wrap; gap:0; margin-bottom:14px; }
  .auth-list-heading .auth-intro { margin-bottom:12px; }
  .auth-user-actions { gap:8px; }
  .account-inner { padding-left:16px; padding-right:16px; }
  .account-actions { gap:16px; }
  .account-panel { width:min(340px,calc(100vw - 32px)); }
}
