:root{color-scheme:dark;--navy:#081226;--panel:#14243e;--panel2:#1b3051;--gold:#dfb96d;--cream:#fff5df;--muted:#c2cad5}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 78% -10%,#344b70,var(--navy) 46%);color:var(--cream);font:16px/1.6 system-ui,-apple-system,Segoe UI,sans-serif;min-height:100vh}a{color:#f1d393;text-underline-offset:3px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px clamp(18px,5vw,70px);border-bottom:1px solid #d6b16b44;background:#09162cb8}header .brand{color:#f6d895;text-decoration:none;font:22px Georgia,serif;letter-spacing:.035em}nav{display:flex;flex-wrap:wrap;gap:18px;font-size:14px}main{width:min(1080px,calc(100% - 36px));margin:42px auto 100px}h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.18;margin:0}h1{font-size:clamp(38px,6vw,62px)}h2{font-size:31px}h3{font-size:23px}p{margin:10px 0 0}.eyebrow{color:var(--gold);font-size:12px;letter-spacing:.16em;text-transform:uppercase;margin:0 0 10px}.muted{color:var(--muted)}.lede{font:20px/1.55 Georgia,serif;color:#e9dfc9;max-width:740px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:16px;margin-top:25px}.panel{background:linear-gradient(145deg,var(--panel2),var(--panel));border:1px solid #d3b47555;border-radius:19px;padding:23px;min-width:0}.panel h2,.panel h3{color:#ffe7b4}.panel p{color:#d7deeb}.stat{font:44px Georgia,serif;color:#fff;margin:12px 0 0}.row{display:flex;align-items:center;flex-wrap:wrap;gap:11px}.button,button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 17px;border:1px solid #d4b47191;border-radius:12px;background:#263d5c;color:#fff5df;text-decoration:none}.button.primary,button.primary{background:var(--gold);color:#152137;border-color:var(--gold);font-weight:700}.button:hover,button:hover{background:#375477}.button.primary:hover,button.primary:hover{background:#f1d292}form{display:grid;gap:14px}label{display:grid;gap:6px;color:#f0e4ca}input,select{width:100%;padding:11px 13px;min-height:44px;border:1px solid #d5b8758c;border-radius:11px;background:#0e1b31;color:#fff}input[type=checkbox]{width:auto;min-height:auto;accent-color:#dfb96d}.check{display:flex;align-items:center;gap:11px}small{color:var(--muted)}.notice{padding:15px 18px;border-left:3px solid var(--gold);background:#dfb96d18;border-radius:8px;color:#ffe9bb}.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:23px 0}.leaderboard{padding-left:24px}.leaderboard li{padding:6px 0;border-bottom:1px solid #ffffff1a;display:flex;justify-content:space-between;gap:15px}.leaderboard strong{color:#f8dca6}table{border-collapse:collapse;width:100%;margin-top:15px}th,td{text-align:left;padding:11px 8px;border-bottom:1px solid #ffffff25}th{color:#e6c889;font-weight:600}#message:not(:empty),.message:not(:empty){margin:16px 0;color:#ffe29c}.wide{grid-column:1/-1}.hidden,[hidden]{display:none!important}.admin-mode{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.admin-mode label{padding:14px;border:1px solid #d0af6e77;border-radius:12px;background:#101f38;cursor:pointer}.admin-mode label:has(input:checked){background:#d9b6632b;border-color:var(--gold)}.admin-mode input{margin-right:8px}.auth-card{max-width:510px;margin:55px auto}.auth-card h1{margin-bottom:14px}.auth-card .panel{padding:30px}.status-screen{display:grid;place-items:center;min-height:75vh;text-align:center}.status-screen .panel{max-width:650px}.status-screen h1{margin-bottom:12px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px}.invoice-history{overflow-x:auto}.invoice-history table{min-width:610px}.invoice-history td:last-child{text-align:right}.invoice-history a{white-space:nowrap}@media(max-width:640px){header{align-items:flex-start;flex-direction:column}.admin-mode{grid-template-columns:1fr}main{margin-top:28px}.auth-card{margin:20px auto}}
:root{scroll-behavior:smooth}
.admin-jump{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}
.admin-jump a{display:inline-flex;align-items:center;min-height:42px;padding:8px 15px;border:1px solid #d4b47191;border-radius:999px;background:#172945;color:#ffe7b4;text-decoration:none}
.admin-jump a:hover{background:#2c4567}
.admin-section{margin-top:52px;scroll-margin-top:30px}
.admin-section>h2{margin-bottom:12px}
.admin-section .invoice-history{overflow-x:auto}
.admin-section .invoice-history table{min-width:680px}
/* Shared Kindred shield and cross */
header .brand{display:inline-flex;align-items:center;gap:12px}
header .brand::before{content:"";display:inline-block;flex:none;width:36px;height:42px;background:url('/assets/kindred-shield-cross.svg') center/contain no-repeat}
@media(max-width:640px){header .brand::before{width:31px;height:37px}}
/* Profile photo upload */
.avatar-drop{display:flex;align-items:center;gap:20px;margin:20px 0 12px;padding:20px;border:2px dashed #d5b8758c;border-radius:18px;background:#ffffff0a;cursor:pointer;transition:border-color .2s,background .2s}
.avatar-drop:hover,.avatar-drop:focus-visible,.avatar-drop.drag-over{border-color:#f2d18a;background:#e1ba7230;outline:none}
.avatar-drop strong{font:24px Georgia,serif;color:#ffe7b4}.avatar-drop p{margin-top:5px;color:#d7deeb}
.avatar-preview{display:grid;place-items:center;flex:none;width:110px;height:110px;border:2px solid #efcf89;border-radius:50%;overflow:hidden;background:#172a42}
.avatar-preview img{width:100%;height:100%;object-fit:cover}.avatar-preview span{width:63px;height:73px;background:url('/assets/kindred-shield-cross.svg') center/contain no-repeat}
#remove-avatar{margin-bottom:18px}
@media(max-width:640px){.avatar-drop{align-items:flex-start;flex-direction:column}.avatar-preview{width:90px;height:90px}}
/* Keep account navigation links level with its action button. */
header nav{align-items:center;justify-content:flex-end;gap:8px 20px}
header nav a{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
header nav button{flex:none;min-height:44px}
@media(max-width:640px){header nav{justify-content:flex-start}}
/* The landing-page shield, wordmark, and subtitle on account pages. */
header .brand.has-mark::before{display:none}
header .brand.has-mark{display:inline-flex;align-items:center;gap:12px;color:#f6e6c8;font:normal 32px/1 Georgia,serif;letter-spacing:0;white-space:nowrap}
header .brand-mark{display:grid;place-items:center;flex:none;width:42px;height:48px;border:1px solid #d7ad6370;border-radius:24px 24px 3px 3px;color:#d7ad63}
header .brand-mark svg{width:34px;height:34px;stroke:currentColor;fill:none;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}
header .brand-copy{display:flex;flex-direction:column;align-items:flex-start}
header .brand-sub{display:block;margin-top:7px;color:#d7ad63;font:700 10px/1.2 system-ui,sans-serif;letter-spacing:2.5px}
@media(max-width:640px){header .brand.has-mark{font-size:27px}header .brand-mark{width:34px;height:42px}header .brand-mark svg{width:29px;height:29px}header .brand-sub{font-size:9px;letter-spacing:1.7px}}
