/* Original SINDY neon-dark direction, selectively adapted to the production app shell. */
:root {
  --bg:#050505; --surface:#0e0f0d; --surface-2:#141612; --raised:#1a1c18;
  --line:#1d201b; --line-2:#2a2e26; --fg:#f3f6ee; --fg-2:#a4ab9b; --fg-3:#6e7567;
  --accent:#b4ef3a; --accent-2:#d6ff72; --accent-3:#5fb82a; --accent-fg:#0b1400;
  --accent-soft:#18220d; --glow:rgba(180,239,58,.32); --r:20px;
  --side:#070807; --side-fg:#a4ab9b; --side-hi:#f3f6ee; --side-act:#131a0c;
  --font: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme:dark;
}
html { scroll-padding-top:78px; }
body { background:radial-gradient(900px 450px at 85% -10%,rgba(70,105,24,.12),transparent 70%),#050505; color:var(--fg); font-family:var(--font); -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font-family:var(--font); }
h1 { font-size:clamp(1.8rem,3vw,2.55rem); font-weight:650; letter-spacing:-.035em; }
h2 { font-weight:650; letter-spacing:-.01em; }
a { text-underline-offset:3px; }
.app-shell { display:grid; grid-template-columns:250px minmax(0,1fr); min-height:100vh; }
.sidebar { height:100vh; position:sticky; top:0; display:flex; flex-direction:column; overflow-y:auto; padding:22px 14px 16px; background:rgba(7,8,7,.94); border-right:1px solid var(--line); }
.side-brand { min-height:76px; display:flex; align-items:center; gap:12px; padding:4px 10px 20px; color:var(--fg); text-decoration:none; }
.brand-mark { flex:none; display:grid; place-items:center; width:42px; height:42px; border-radius:13px; font-weight:800; font-size:1.25rem; color:var(--accent-fg); background:radial-gradient(circle at 30% 25%,var(--accent-2),var(--accent)); box-shadow:0 0 24px var(--glow); }
.brand-copy { display:grid; gap:4px; }
.brand-copy b { font-size:1.2rem; line-height:1; letter-spacing:.24em; }
.brand-copy small { color:var(--accent); font-size:.59rem; font-weight:800; letter-spacing:.26em; }
.side-nav { display:grid; gap:5px; padding-top:6px; }
.nav-link { min-height:46px; display:flex; align-items:center; gap:12px; padding:9px 12px; border:1px solid transparent; border-radius:13px; color:var(--side-fg); text-decoration:none; font-weight:600; transition:background .16s ease,border-color .16s ease,color .16s ease; }
.nav-link:hover { background:#10120e; color:var(--fg); }
.nav-link[aria-current="page"] { background:linear-gradient(90deg,#1d290f,#11150d); color:var(--fg); border-color:#2a3819; box-shadow:inset 0 0 0 1px rgba(180,239,58,.05); }
.nav-link[aria-current="page"] .nav-icon { color:var(--accent); filter:drop-shadow(0 0 5px var(--glow)); }
.nav-icon { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; color:var(--fg-3); }
.sidebar-foot { margin-top:auto; padding:14px 10px 2px; display:flex; align-items:center; gap:9px; color:var(--fg-3); font-size:.78rem; border-top:1px solid var(--line); }
.sidebar-foot i { width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 10px var(--glow); }
.sidebar-foot b { color:var(--accent); }
.main-column { min-width:0; display:flex; flex-direction:column; }
.top { min-height:72px; position:sticky; top:0; display:flex; flex-wrap:nowrap; align-items:center; gap:14px; padding:10px 24px; background:rgba(5,5,5,.82); border-bottom:1px solid var(--line); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.mobile-brand { display:none; font-weight:800; letter-spacing:.28em; }
.top .status { flex:0 1 auto; max-width:min(560px,58vw); background:rgba(16,18,14,.86); border-color:var(--line-2); color:var(--fg-2); font-size:.76rem; }
.status .dot { box-shadow:0 0 8px currentColor; }
.who { gap:12px; color:var(--fg-2); }
.who .linkbtn { color:var(--accent); font-weight:700; text-decoration:none; padding:8px; border-radius:9px; }
.who .linkbtn:hover { background:var(--accent-soft); }
.who .btn { border-radius:12px; }
main#view { width:100%; max-width:1540px; padding:26px clamp(18px,3vw,42px) 48px; }
.btn { border-radius:13px; background:linear-gradient(160deg,#171a14,#10110f); border-color:var(--line-2); box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
.btn:hover { border-color:#536b2e; box-shadow:0 0 0 1px rgba(180,239,58,.08); }
.btn.primary { background:linear-gradient(180deg,var(--accent-2),var(--accent)); border-color:transparent; color:var(--accent-fg); box-shadow:0 6px 22px -8px var(--glow); }
.btn.primary:hover { filter:brightness(1.07); }
input,select,textarea { background:#0b0c0a; border-color:var(--line-2); border-radius:13px; }
input:focus,select:focus,textarea:focus { border-color:var(--accent); outline:3px solid rgba(180,239,58,.12); }
.card,.kpi,.result,.login-card { background:linear-gradient(155deg,#141612 0%,#0b0c0a 66%); border-color:var(--line); box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 16px 36px rgba(0,0,0,.24); }
.card { border-radius:22px; padding:20px; }
.kpi { border-radius:18px; transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.kpi:hover { border-color:#3d5220; box-shadow:0 0 0 1px #263817,0 10px 26px rgba(0,0,0,.2); transform:translateY(-2px); }
.kpi .kv { font-size:clamp(1.45rem,3vw,2.2rem); font-weight:700; }
.bar .b { background:linear-gradient(180deg,var(--accent-2),var(--accent-3)); box-shadow:0 0 15px -4px var(--glow); }
.badge.ok { background:#142410; color:#b4ef3a; }
.pill { border-radius:999px; }
.note { border-radius:12px; }
.modal { background:#0d0f0c; border-color:var(--line-2); border-radius:20px; box-shadow:0 28px 80px rgba(0,0,0,.65); }
.toast { background:#12160e; border-color:#33441c; box-shadow:0 14px 36px rgba(0,0,0,.42); }
.login { background:radial-gradient(750px 420px at 50% 0%,#18220d,transparent 70%),var(--bg); }
.login-card { border-radius:22px; }
.eyebrow { margin:0 0 8px; color:var(--accent); font-size:.74rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.dash-hero { position:relative; display:flex; align-items:center; min-height:300px; margin:0 0 18px; padding:30px clamp(22px,3vw,40px); overflow:hidden; border:1px solid #22261f; border-radius:28px; background:radial-gradient(620px 320px at 88% 45%,rgba(95,184,42,.15),transparent 65%),linear-gradient(145deg,#141612,#090a08 72%); box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 18px 42px rgba(0,0,0,.35); }
.hero-copy { position:relative; z-index:2; width:min(680px,72%); }
.hero-copy h1 { display:flex; align-items:center; gap:13px; margin:8px 0 12px; }
.hero-sub { max-width:42ch; color:var(--fg-2); }
.pulse-chip { width:44px; height:44px; display:inline-grid; place-items:center; flex:none; border:1px solid #33441c; border-radius:14px; color:var(--accent); background:#18220d; box-shadow:0 0 22px -5px var(--glow); }
.pulse-chip .nav-icon { color:inherit; width:22px; height:22px; }
.hero-stats { display:grid; grid-template-columns:repeat(3,minmax(100px,1fr)); max-width:500px; margin-top:24px; overflow:hidden; border:1px solid var(--line-2); border-radius:17px; background:rgba(8,9,8,.7); backdrop-filter:blur(8px); }
.hero-stat { display:grid; gap:4px; padding:14px 16px; color:var(--fg); text-decoration:none; border-left:1px solid var(--line-2); }
.hero-stat:first-child { border-left:0; }
.hero-stat:hover { background:rgba(180,239,58,.055); }
.hero-stat small { color:var(--fg-2); font-weight:600; font-size:.78rem; }
.hero-stat b { font-size:1.55rem; font-variant-numeric:tabular-nums; }
.hero-orbit { position:absolute; right:1%; top:50%; width:min(42vw,390px); aspect-ratio:1; transform:translateY(-50%); border:1px dashed rgba(180,239,58,.18); border-radius:50%; opacity:.8; }
.hero-orbit::before,.hero-orbit::after,.hero-orbit i { content:""; position:absolute; inset:11%; border:1px dashed rgba(180,239,58,.24); border-radius:50%; }
.hero-orbit::after { inset:24%; border-style:solid; border-color:rgba(95,184,42,.55); border-left-color:transparent; border-bottom-color:transparent; transform:rotate(18deg); }
.hero-orbit i:nth-child(1) { inset:4%; border:0; border-top:11px solid var(--accent); border-right:11px solid transparent; filter:drop-shadow(0 0 10px var(--glow)); transform:rotate(26deg); }
.hero-orbit i:nth-child(2) { inset:20%; border-top:7px solid #76c62b; border-left:7px solid transparent; border-bottom:7px solid transparent; border-right:7px solid transparent; transform:rotate(138deg); }
.hero-orbit i:nth-child(3) { inset:36%; border:1px solid rgba(180,239,58,.2); }
.hero-orbit b { position:absolute; inset:47%; border-radius:50%; background:radial-gradient(circle,var(--accent),rgba(95,184,42,.22) 45%,transparent 72%); filter:blur(4px); }
.reception { border-radius:18px; }
.checkin-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; margin:0 0 18px; padding:4px 2px 16px; border-bottom:1px solid var(--line); }
.checkin-heading h1 { margin:0 0 8px; }
.checkin-heading p:last-child { margin-bottom:0; }
.checkin-heading .pulse-chip { width:54px; height:54px; border-radius:17px; }
.checkin { margin:0 0 16px; padding:20px; border:1px solid var(--line); border-radius:22px; background:radial-gradient(700px 220px at 10% 0%,rgba(95,184,42,.07),transparent 70%),linear-gradient(150deg,#11130f,#090a08); box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
.searchbar { margin:0; }
.searchbar input { min-height:58px; border-radius:15px; }
.result { border-radius:14px; transition:border-color .15s ease,background .15s ease; }
.result:hover { background:#151a10; border-color:#536b2e; }
.member-card { border-radius:20px; }
.mobile-tabs,.mobile-more { display:none; }
@media (max-width:1000px) {
  .app-shell { grid-template-columns:214px minmax(0,1fr); }
  .sidebar { padding-inline:10px; }
  .nav-link { gap:9px; padding-inline:10px; font-size:.9rem; }
  main#view { padding-inline:20px; }
  .top { padding-inline:18px; }
}
@media (max-width:760px) {
  body { padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
  .app-shell { display:block; min-height:100vh; }
  .sidebar { display:none; }
  .main-column { min-height:100vh; }
  .top { min-height:62px; display:flex; flex-wrap:wrap; gap:7px 10px; padding:8px 12px; }
  .mobile-brand { display:block; font-size:1.14rem; }
  .top .status { order:3; flex:1 0 100%; width:100%; max-width:none; padding:7px 9px; border-radius:12px; font-size:.7rem; }
  .who { gap:5px; }
  .who span { display:none; }
  .who .linkbtn { padding:7px 5px; font-size:.84rem; }
  .who .btn { min-height:36px; padding:5px 9px; font-size:.8rem; }
  main#view { padding:18px 13px calc(96px + env(safe-area-inset-bottom)); }
  .dash-hero { min-height:340px; align-items:flex-start; padding:24px 18px; border-radius:23px; }
  .hero-copy { width:100%; }
  .hero-copy h1 { font-size:1.9rem; max-width:85%; }
  .hero-orbit { width:210px; right:-66px; top:35%; opacity:.62; }
  .hero-sub { max-width:34ch; font-size:.9rem; }
  .hero-stats { position:relative; z-index:2; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; margin-top:18px; }
  .hero-stat { padding:11px 9px; }
  .hero-stat small { font-size:.7rem; }
  .hero-stat b { font-size:1.3rem; }
  .kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .kpi { padding:12px; min-height:102px; }
  .kpi .kl,.kpi .ks { font-size:.74rem; }
  .kpi .kv { font-size:1.4rem; }
  .card { padding:15px; border-radius:18px; }
  .checkin-heading { align-items:flex-start; margin-bottom:12px; padding-bottom:12px; }
  .checkin-heading h1 { font-size:1.8rem; }
  .checkin-heading .pulse-chip { width:44px; height:44px; }
  .checkin { padding:13px; border-radius:18px; }
  .searchbar { flex-wrap:wrap; }
  .searchbar input { flex:1 1 100%; }
  .searchbar .btn { width:100%; }
  .mobile-tabs { position:fixed; z-index:40; inset:auto 0 0; display:grid; grid-auto-columns:minmax(0,1fr); grid-auto-flow:column; gap:4px; padding:5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); border-top:1px solid var(--line); background:rgba(10,11,9,.96); backdrop-filter:blur(15px); box-shadow:0 -10px 30px rgba(0,0,0,.22); }
  .mobile-link { min-width:0; min-height:54px; display:grid; place-content:center; justify-items:center; gap:3px; padding:4px 2px; border:0; border-radius:11px; background:transparent; color:var(--fg-2); text-decoration:none; font:600 .68rem/1.15 var(--font); cursor:pointer; }
  .mobile-link .nav-icon { width:20px; height:20px; }
  .mobile-link[aria-current="page"] { background:var(--accent-soft); color:var(--accent-2); }
  .mobile-link[aria-current="page"] .nav-icon { color:var(--accent); }
  .mobile-more { position:fixed; z-index:39; left:10px; right:10px; bottom:calc(70px + env(safe-area-inset-bottom)); display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; padding:9px; border:1px solid var(--line-2); border-radius:18px; background:rgba(13,15,12,.98); box-shadow:0 18px 55px rgba(0,0,0,.65); }
  .mobile-more[hidden] { display:none; }
  .more-link { min-height:48px; }
  #toasts { bottom:calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width:390px) {
  .mobile-link { font-size:.61rem; }
  .hero-copy h1 { font-size:1.68rem; }
  .hero-stat { padding-inline:7px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
