:root { --auth-ink:#1d1d20; --auth-muted:#6f7078; --auth-line:#e7dfce; --auth-accent:#edb62d; --auth-accent-strong:#9a6500; --auth-surface:#fffdf8; }
body { background:#f8f7f4; color:var(--auth-ink); }
.site-nav { display:flex; align-items:center; justify-content:space-between; padding:22px 0; border-bottom:1px solid var(--auth-line); }
.site-nav .brand { display:flex; align-items:center; gap:8px; color:var(--auth-accent-strong); font-size:1.1rem; font-weight:700; text-decoration:none; }
.site-nav .logo-mark { width:30px; height:30px; border-radius:7px; object-fit:cover; }
.site-nav .nav-links { display:flex; align-items:center; gap:20px; }
.site-nav .nav-links a { color:var(--auth-muted); font-size:.88rem; text-decoration:none; }
.site-nav .nav-links a:hover { color:var(--auth-accent-strong); }
.site-nav .menu-toggle { display:none; }
body:not(.is-admin) [data-admin-link], [data-admin-link][hidden] { display:none !important; }
.account-link { color:var(--accent-strong, var(--auth-accent-strong)) !important; font-weight:650; }
.logout-button { appearance:none; border:0; padding:0; color:var(--muted, var(--auth-muted)); background:transparent; font:inherit; font-size:.88rem; cursor:pointer; }
.logout-button:hover { color:var(--accent-strong, var(--auth-accent-strong)); }
.auth-page { display:grid; min-height:100vh; place-items:center; padding:24px; background:radial-gradient(circle at 20% 15%, #fff3cc 0, transparent 28%), #f8f7f4; }
.auth-card { width:min(100%, 440px); padding:42px; border:1px solid var(--auth-line); border-radius:20px; background:var(--auth-surface); box-shadow:0 24px 64px rgba(44,38,22,.09); }
.auth-brand { display:inline-flex; align-items:center; gap:9px; color:var(--auth-accent-strong); font-size:1.12rem; font-weight:750; text-decoration:none; }
.auth-brand img { width:32px; height:32px; border-radius:8px; object-fit:cover; }
.auth-card h1 { margin:31px 0 9px; font-size:2.35rem; letter-spacing:-.065em; line-height:.98; }
.auth-card > p { margin:0 0 28px; color:var(--auth-muted); line-height:1.5; }
.auth-form { display:grid; gap:16px; }
.auth-field { display:grid; gap:7px; color:#44454c; font-size:.86rem; font-weight:650; }
.auth-field input { width:100%; box-sizing:border-box; padding:12px 13px; border:1px solid #d9d3c8; border-radius:9px; outline:0; background:#fff; color:var(--auth-ink); font:inherit; }
.auth-field input:focus { border-color:var(--auth-accent); box-shadow:0 0 0 3px rgba(237,182,45,.2); }
.auth-submit { margin-top:7px; padding:13px 16px; border:0; border-radius:9px; background:var(--auth-accent); color:#2d2205; font:inherit; font-weight:750; cursor:pointer; }
.auth-submit:disabled { opacity:.6; cursor:wait; }
.auth-message { min-height:1.3em; margin:4px 0 0; color:#bb3838; font-size:.9rem; }
.auth-message.success { color:#29713e; }
.auth-footnote { margin:25px 0 0 !important; font-size:.9rem; }
.auth-footnote a { color:var(--auth-accent-strong); font-weight:650; }
.password-hint { margin:0; color:var(--auth-muted); font-size:.8rem; line-height:1.45; }
.profile-summary { display:grid; gap:1px; margin:0 0 30px; overflow:hidden; border:1px solid var(--auth-line); border-radius:12px; background:var(--auth-line); }
.profile-summary div { display:grid; gap:3px; padding:14px 15px; background:var(--auth-surface); }
.profile-summary span { color:var(--auth-muted); font-size:.74rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.profile-summary strong { font-size:.98rem; font-weight:650; overflow-wrap:anywhere; }
.profile-password { padding-top:2px; }
.profile-admin-tools { margin:0 0 30px; padding-top:2px; }
.profile-admin-tools h2 { margin:0 0 5px; font-size:1.35rem; letter-spacing:-.04em; }
.profile-admin-tools > p { margin:0; color:var(--auth-muted); font-size:.88rem; line-height:1.45; }
.profile-password h2 { margin:0 0 5px; font-size:1.35rem; letter-spacing:-.04em; }
.profile-password > p { margin:0 0 19px; color:var(--auth-muted); font-size:.88rem; line-height:1.45; }
.admin-menu { display:grid; gap:10px; margin-top:28px; }
.admin-menu a { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:14px; padding:17px; border:1px solid var(--auth-line); border-radius:12px; color:var(--auth-ink); background:var(--auth-surface); text-decoration:none; transition:border-color .18s ease,transform .18s ease; }
.admin-menu a:hover { border-color:var(--auth-accent); transform:translateX(2px); }
.admin-menu span { display:grid; gap:4px; }
.admin-menu strong { font-size:1rem; }
.admin-menu small { color:var(--auth-muted); font-size:.82rem; line-height:1.35; }
.admin-menu b { display:grid; min-width:26px; min-height:26px; place-items:center; border-radius:999px; color:#755000; background:#fff0bd; font-size:.8rem; }
.admin-menu i { color:var(--auth-accent-strong); font-size:1.15rem; font-style:normal; }
html.dark-mode .auth-page { background:radial-gradient(circle at 20% 15%, #4c3a12 0, transparent 30%), #161618; }
html.dark-mode .auth-card { border-color:#4b4638; background:#242426; box-shadow:none; }
html.dark-mode .auth-card h1, html.dark-mode .auth-field { color:#f5f0e5; }
html.dark-mode .profile-summary { border-color:#4b4638; background:#4b4638; }
html.dark-mode .profile-summary div { background:#242426; }
html.dark-mode .profile-summary strong, html.dark-mode .profile-password h2 { color:#f5f0e5; }
html.dark-mode .profile-admin-tools h2 { color:#f5f0e5; }
html.dark-mode .admin-menu a { border-color:#4b4638; background:#242426; color:#f5f0e5; }
html.dark-mode .admin-menu a:hover { border-color:var(--auth-accent); }
html.dark-mode .admin-menu b { color:#241a05; background:#f3c85b; }
html.dark-mode .auth-field input { border-color:#504c45; background:#1b1b1d; color:#f5f0e5; }
html.dark-mode .auth-card > p, html.dark-mode .password-hint { color:#b7b3aa; }
.admin-request-card { width:min(100%, 640px); }
.account-request-heading { display:flex; align-items:center; justify-content:space-between; margin:28px 0 10px; color:var(--auth-muted); font-size:.85rem; }
.account-request-heading span { display:grid; min-width:26px; min-height:26px; place-items:center; border-radius:999px; background:#fff0bd; color:#755000; font-weight:750; }
.account-request-list { display:grid; gap:10px; }
.account-request-card { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px; border:1px solid var(--auth-line); border-radius:12px; }
.account-request-card h2 { margin:4px 0 2px; font-size:1.08rem; letter-spacing:-.025em; }
.account-request-card p,.account-request-card small { margin:0; color:var(--auth-muted); font-size:.84rem; }
.account-request-label { color:var(--auth-accent-strong); font-size:.72rem; font-weight:750; text-transform:uppercase; letter-spacing:.06em; }
.account-request-actions { display:flex; gap:7px; }
.account-request-actions button { padding:8px 10px; border-radius:7px; font:inherit; font-size:.8rem; font-weight:700; cursor:pointer; }
.account-request-actions .approve { border:0; background:var(--auth-accent); color:#2d2205; }
.account-request-actions .decline { border:1px solid #d9d3c8; background:transparent; color:var(--auth-muted); }
.reset-password { padding:8px 10px; border:0; border-radius:7px; background:var(--auth-accent); color:#2d2205; font:inherit; font-size:.8rem; font-weight:700; cursor:pointer; }
.current-user { color:var(--auth-muted); font-size:.82rem; font-weight:650; }
.reset-dialog { width:min(calc(100% - 32px), 420px); padding:0; border:1px solid var(--auth-line); border-radius:16px; background:var(--auth-surface); color:var(--auth-ink); box-shadow:0 24px 64px rgba(44,38,22,.24); }
.reset-dialog::backdrop { background:rgba(20,18,12,.45); }
.reset-dialog form { padding:26px; }
.reset-dialog h2 { margin:0 0 8px; font-size:1.45rem; letter-spacing:-.045em; }
.reset-dialog form > p { margin:0 0 18px; color:var(--auth-muted); font-size:.9rem; line-height:1.45; }
.dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:6px; }
.dialog-actions button { padding:9px 12px; border-radius:7px; font:inherit; font-size:.85rem; font-weight:700; cursor:pointer; }
.dialog-actions .approve { border:0; background:var(--auth-accent); color:#2d2205; }
.dialog-actions .decline { border:1px solid #d9d3c8; background:transparent; color:var(--auth-muted); }
html.dark-mode .reset-dialog { border-color:#4b4638; background:#242426; color:#f5f0e5; }
html.dark-mode .dialog-actions .decline { border-color:#504c45; color:#b7b3aa; }
.empty-account-requests { color:var(--auth-muted); font-size:.9rem; }
html.dark-mode .account-request-card { border-color:#4b4638; }
html.dark-mode .account-request-card h2 { color:#f5f0e5; }
html.dark-mode .account-request-actions .decline { border-color:#504c45; color:#b7b3aa; }
@media (max-width:520px) { .account-request-card { align-items:flex-start; flex-direction:column; } }
@media (max-width:520px) { .auth-card { padding:30px 24px; border-radius:16px; } .auth-card h1 { font-size:2rem; } }

/* The profile and admin surfaces use the same soft blur, but a more spacious
   control-panel treatment than the compact sign-in cards. */
body:has(#profile-admin-tools) { align-items:start; padding:clamp(28px, 7vh, 72px) 20px; }
body:has(#profile-admin-tools) .auth-card { width:min(100%, 760px); padding:clamp(28px, 5vw, 56px); border-color:rgba(255,255,255,.72); border-radius:26px; background:rgba(255,253,248,.78); backdrop-filter:blur(22px); box-shadow:0 30px 90px rgba(44,38,22,.13); }
.profile-topline { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.profile-kicker { color:var(--auth-accent-strong); font-size:.74rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
body:has(#profile-admin-tools) .auth-card h1 { max-width:620px; margin-top:48px; font-size:clamp(2.8rem, 7vw, 5.2rem); }
.profile-intro { margin-bottom:34px !important; font-size:1.02rem; }
body:has(#profile-admin-tools) .profile-summary { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:44px; border:0; gap:12px; background:transparent; }
body:has(#profile-admin-tools) .profile-summary div { min-height:104px; justify-content:end; border:1px solid var(--auth-line); border-radius:15px; background:rgba(255,255,255,.54); }
body:has(#profile-admin-tools) .profile-summary strong { font-size:1.15rem; }
body:has(#profile-admin-tools) .profile-admin-tools, body:has(#profile-admin-tools) .profile-password { margin-top:30px; padding:28px; border:1px solid var(--auth-line); border-radius:18px; background:rgba(255,255,255,.38); }
.section-label { display:grid; gap:5px; }
.section-label > span { color:var(--auth-accent-strong); font-size:.72rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.section-label h2 { margin:0; font-size:1.65rem; letter-spacing:-.05em; }
body:has(#profile-admin-tools) .profile-admin-tools > p, body:has(#profile-admin-tools) .profile-password > p { margin-bottom:22px; }
body:has(#profile-admin-tools) .admin-menu { margin-top:0; }
body:has(#account-request-list) .auth-card, body:has(#users-list) .auth-card { width:min(100%, 760px); padding:clamp(28px, 5vw, 52px); border-radius:26px; background:rgba(255,253,248,.78); backdrop-filter:blur(22px); box-shadow:0 30px 90px rgba(44,38,22,.13); }
body:has(#account-request-list) .auth-card h1, body:has(#users-list) .auth-card h1 { margin-top:48px; font-size:clamp(2.6rem, 6vw, 4.4rem); }
body:has(#account-request-list) .account-request-card, body:has(#users-list) .account-request-card { padding:20px; border-radius:15px; background:rgba(255,255,255,.48); }
html.dark-mode body:has(#profile-admin-tools) .auth-card, html.dark-mode body:has(#account-request-list) .auth-card, html.dark-mode body:has(#users-list) .auth-card { border-color:rgba(255,255,255,.1); background:rgba(31,32,37,.8); box-shadow:0 30px 90px rgba(0,0,0,.25); }
html.dark-mode body:has(#profile-admin-tools) .profile-summary div, html.dark-mode body:has(#profile-admin-tools) .profile-admin-tools, html.dark-mode body:has(#profile-admin-tools) .profile-password, html.dark-mode body:has(#account-request-list) .account-request-card, html.dark-mode body:has(#users-list) .account-request-card { border-color:#42434a; background:rgba(20,21,25,.46); }
@media (max-width:600px) { body:has(#profile-admin-tools) .profile-summary { grid-template-columns:1fr; } body:has(#profile-admin-tools) .profile-admin-tools, body:has(#profile-admin-tools) .profile-password { padding:21px 17px; } }

/* Admin sub-pages use the same grounded library treatment as Release Tracker. */
body:has(#account-request-list), body:has(#users-list) { display:block; min-height:100vh; padding:0; background:#fff; }
body:has(#profile-admin-tools) { display:block; min-height:100vh; padding:0; background:#fff; }
body:has(#profile-admin-tools) .site-nav, body:has(#account-request-list) .site-nav, body:has(#users-list) .site-nav { width:min(100% - 48px, 960px); margin:0 auto; }
body:has(#profile-admin-tools) .auth-card, body:has(#account-request-list) .auth-card, body:has(#users-list) .auth-card { min-height:auto; }
body:has(#profile-admin-tools) .auth-card { margin-top:0; }
body:has(#account-request-list) .auth-card, body:has(#users-list) .auth-card { width:min(100% - 48px, 960px); min-height:100vh; margin:0 auto; padding:42px 0 72px; border:0; border-radius:0; background:transparent; box-shadow:none; }
body:has(#account-request-list) .auth-brand, body:has(#users-list) .auth-brand { padding-bottom:22px; border-bottom:1px solid var(--auth-line); }
body:has(#account-request-list) .auth-card h1, body:has(#users-list) .auth-card h1 { margin:66px 0 10px; font-size:clamp(2.8rem,7vw,4.75rem); letter-spacing:-.07em; line-height:.92; }
body:has(#account-request-list) .auth-card > p:not(.auth-footnote), body:has(#users-list) .auth-card > p:not(.auth-footnote) { max-width:580px; margin-bottom:38px; }
body:has(#account-request-list) .account-request-heading, body:has(#users-list) .account-request-heading { margin:0 0 16px; padding-top:26px; border-top:1px solid var(--auth-line); }
body:has(#account-request-list) .account-request-card, body:has(#users-list) .account-request-card { border-color:var(--auth-line); border-radius:10px; background:#fff; box-shadow:none; }
body:has(#account-request-list) .auth-footnote, body:has(#users-list) .auth-footnote { margin-top:38px !important; }
html.dark-mode body:has(#account-request-list), html.dark-mode body:has(#users-list) { background:#0f1118; }
html.dark-mode body:has(#profile-admin-tools) { background:#0f1118; }
html.dark-mode body:has(#account-request-list) .account-request-card, html.dark-mode body:has(#users-list) .account-request-card { background:#1a1d27; border-color:#41485b; }
html.dark-mode body:has(#account-request-list) .auth-card, html.dark-mode body:has(#users-list) .auth-card { background:transparent; box-shadow:none; backdrop-filter:none; }
html.dark-mode body:has(#account-request-list) .auth-brand, html.dark-mode body:has(#users-list) .auth-brand, html.dark-mode body:has(#account-request-list) .account-request-heading, html.dark-mode body:has(#users-list) .account-request-heading { border-color:var(--line); }
@media (max-width:640px) { body:has(#profile-admin-tools) .site-nav, body:has(#account-request-list) .site-nav, body:has(#users-list) .site-nav { width:min(100% - 32px,960px); } body:has(#account-request-list) .auth-card, body:has(#users-list) .auth-card { width:min(100% - 32px,960px); padding-top:22px; } body:has(#account-request-list) .auth-card h1, body:has(#users-list) .auth-card h1 { margin-top:52px; } }
@media (max-width:760px) { .site-nav { position:relative; } .site-nav .menu-toggle { display:block; padding:7px 10px; border:1px solid #f1dcaa; border-radius:6px; color:var(--auth-accent-strong); background:#fff5dd; font:inherit; font-size:.8rem; font-weight:600; } .site-nav .nav-links { position:absolute; top:calc(100% + 8px); right:0; z-index:5; display:none; min-width:190px; padding:7px; flex-direction:column; align-items:stretch; gap:0; border:1px solid #f1dcaa; border-radius:8px; background:#fff; box-shadow:0 8px 24px rgba(32,33,36,.1); } .site-nav .nav-links.open { display:flex; } .site-nav .nav-links a, .site-nav .nav-links button { padding:9px 10px; } .site-nav .nav-links .theme-toggle { width:100%; justify-content:space-between; } }
html.dark-mode .site-nav .nav-links { background:#181a20; border-color:var(--line); }
html.dark-mode .site-nav .menu-toggle { color:var(--accent-strong); background:var(--accent-soft); border-color:#65552d; }
