/* Roots & Branches: the sign-in, account and admin pages (served by roots serve).
   The family web's look: black page, white cards, Inter-like type. Phones first:
   a 16px side gutter, inputs at 16px so iOS doesn't zoom, nothing wider than the
   screen, tap targets of 40px or more. */
:root{--sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--card:#f7f7f7;--card-ink:#151515;--card-rule:#d4d4d4;--muted:#595959}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:#000}
body{margin:0;min-height:100vh;min-height:100dvh;background:#000;color:#eee;font:15px/1.5 var(--sans);overflow-x:hidden}
a{color:inherit}
[hidden]{display:none!important}
input,select,textarea,button{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.shell{width:100%;max-width:448px;margin:0 auto;padding:max(28px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(40px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.shell.wide{max-width:880px}
.wordmark{display:inline-flex;align-items:center;min-height:40px;margin:0 0 14px;font-size:17px;line-height:1;font-weight:700;letter-spacing:.4px;text-decoration:none;color:#fff}
.card{background:var(--card);color:var(--card-ink);border:1px solid var(--card-rule);border-radius:13px;box-shadow:0 3px 9px #0008;padding:22px 20px;margin:0 0 14px;overflow-wrap:anywhere}
.card p{margin:0 0 10px}
.card p:last-child{margin-bottom:0}
h1{margin:0 0 6px;font-size:21px;line-height:1.25;font-weight:650}
h2{margin:0 0 12px;font-size:16px;line-height:1.3;font-weight:650}
.lede{color:var(--muted);font-size:14px}
label{display:block;margin:14px 0 6px;font-size:13px;font-weight:600;color:#2b2b2b}
.optional{font-weight:400;color:var(--muted)}
input[type=email],input[type=password],input[type=text],textarea,select{display:block;width:100%;max-width:100%;min-height:44px;padding:10px 12px;font-size:16px;line-height:1.3;color:#151515;background:#fff;border:1px solid #bcbcbc;border-radius:8px;-webkit-appearance:none;appearance:none}
select{padding-right:34px;background-image:linear-gradient(45deg,transparent 50%,#555 50%),linear-gradient(135deg,#555 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
textarea{min-height:92px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:2px solid #151515;outline-offset:1px;border-color:#151515}
.hint{margin:6px 0 0!important;font-size:13px;color:var(--muted)}
.primary{display:block;width:100%;min-height:46px;margin-top:20px;padding:12px 16px;border:1px solid #151515;border-radius:8px;background:#151515;color:#fff;font-size:16px;font-weight:600}
.primary:hover{background:#000}
.error,.notice{margin:12px 0;padding:10px 12px;border-radius:8px;font-size:14px}
.error{background:#fdeeee;border:1px solid #e0adad;color:#7a1b1b}
.notice{background:#edf5ed;border:1px solid #b2d1b2;color:#1b4a1b}
.below{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;margin:2px 2px 0;font-size:14px;color:#aaa}
.below a{display:inline-flex;align-items:center;min-height:40px;color:#eee}
.inline{display:inline-flex;margin:0}
.link{min-height:40px;padding:0;border:0;background:none;color:#eee;font-size:14px;text-decoration:underline}
.link:hover,.below a:hover{color:#fff}
.facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 16px;margin:14px 0 0;font-size:14px}
.facts dt{color:var(--muted)}
.facts dd{margin:0;min-width:0}
/* The admin page */
.count{font-weight:400;color:var(--muted)}
.empty{color:var(--muted);font-size:14px}
.people{list-style:none;margin:0;padding:0}
.person{padding:16px 0;border-top:1px solid #e1e1e1}
.person:first-child{padding-top:2px;border-top:0}
.person:last-child{padding-bottom:0}
.person-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:15px}
.tag{display:inline-block;padding:2px 8px;border-radius:20px;background:#e6e6e6;color:#3a3a3a;font-size:11px;font-weight:600;letter-spacing:.3px;text-transform:uppercase}
.email{font-size:14px;color:#333}
.note{margin:8px 0 0!important;padding:8px 10px;border:1px solid #e0e0e0;border-radius:8px;background:#fff;font-size:14px;white-space:pre-line}
.meta{margin:6px 0 0!important;font-size:13px;color:var(--muted)}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.actions select{display:inline-block;width:auto;max-width:100%;flex:1 1 200px}
.actions button{flex:0 0 auto;min-height:44px;padding:9px 14px;border:1px solid #151515;border-radius:8px;background:#151515;color:#fff;font-size:15px;font-weight:600}
.actions button.secondary{background:#fff;color:#151515;border-color:#bcbcbc}
.actions button.danger{background:#fff;color:#8a1c1c;border-color:#d6a1a1}
.actions button:hover{filter:brightness(.95)}
.temp{margin:14px 0 0;padding:12px 14px;border:1px solid #b2d1b2;border-radius:8px;background:#edf5ed;color:#1b4a1b}
.temp code{display:inline-block;max-width:100%;padding:8px 12px;border:1px solid #bcbcbc;border-radius:8px;background:#fff;color:#151515;font:600 18px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.5px;user-select:all;-webkit-user-select:all;word-break:break-all}
@media (max-width:380px){.card{padding:18px 16px}.actions button{flex:1 1 auto}}
