@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --accent:      #E8A838;
  --accent-dim:  rgba(232,168,56,.12);
  --accent-glow: rgba(232,168,56,.35);
  --navy:        #0A1628;
  --navy-2:      #111F38;
  --navy-3:      #1A2E4A;
  --navy-4:      #243752;
  --surface:     #FFFFFF;
  --bg:          #F2F5FB;
  --bg-2:        #E8EDF7;
  --border:      #DDE3EF;
  --text:        #0D1B2E;
  --text-2:      #3D526B;
  --muted:       #7A8BA0;
  --green:       #10B981;
  --green-l:     #D1FAE5;
  --red:         #EF4444;
  --red-l:       #FEE2E2;
  --amber:       #F59E0B;
  --amber-l:     #FEF3C7;
  --blue:        #3B82F6;
  --blue-l:      #EFF6FF;
  --purple:      #7C3AED;
  --sidebar-w:   268px;
  --r:           12px;
  --r-sm:        8px;
  --shadow:      0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  --shadow-lg:   0 16px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.07);
}

/* ORG THEME OVERRIDES */
body.org-CES {
  --accent:      #10B981;
  --accent-dim:  rgba(16,185,129,.12);
  --accent-glow: rgba(16,185,129,.35);
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); height: 100vh; overflow: hidden; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── LOGIN ───────────────────────────────────────── */
.login-screen {
  position: fixed; inset: 0;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.login-bg-art { position: absolute; inset: 0; pointer-events: none; }
.bg-circle {
  position: absolute; border-radius: 50%;
  opacity: .07;
  animation: float 8s ease-in-out infinite;
}
.bg-circle.c1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -100px; animation-delay: 0s; }
.bg-circle.c2 { width: 400px; height: 400px; background: var(--blue); bottom: -100px; left: -80px; animation-delay: -3s; }
.bg-circle.c3 { width: 300px; height: 300px; background: var(--purple); top: 40%; left: 30%; animation-delay: -5s; }
@keyframes float { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-20px) scale(1.05)} }

.login-panel {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  width: 100%; max-width: 420px; padding: 0 20px;
}

.login-brand { display: flex; align-items: center; gap: 14px; }
.login-logo-ring {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-dim); border: 1.5px solid var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.login-brand-name { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 900; color: #fff; letter-spacing: .5px; }
.login-brand-sub  { font-size: .72rem; color: rgba(255,255,255,.45); font-weight: 500; margin-top: 2px; }

.login-card {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  padding: 28px;
}

.login-tab-row { display: flex; background: rgba(0,0,0,.2); border-radius: 8px; padding: 3px; gap: 2px; margin-bottom: 22px; }
.login-tab { flex: 1; padding: 8px; border-radius: 6px; font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.5); transition: all .2s; }
.login-tab:hover { color: rgba(255,255,255,.8); }
.login-tab.active { background: rgba(255,255,255,.12); color: #fff; }

.lf { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.lf label { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .5px; }
.li { padding: 10px 14px; border: 1.5px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.06); font-size: .875rem; color: #fff; outline: none; transition: border-color .2s; }
.li:focus { border-color: var(--accent); background: rgba(255,255,255,.1); }
.li option { background: var(--navy); color: #fff; }

.login-hint { font-size: .72rem; color: rgba(255,255,255,.35); text-align: center; margin-bottom: 16px; }
.login-submit {
  width: 100%; padding: 12px; border-radius: 9px;
  background: var(--accent); color: var(--navy);
  font-size: .9rem; font-weight: 800;
  transition: all .2s; letter-spacing: .3px;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.login-submit:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 24px var(--accent-glow); }
.officer-submit { background: var(--green); box-shadow: 0 4px 20px rgba(16,185,129,.4); }

.login-orgs { display: flex; align-items: center; gap: 14px; }
.login-org-badge {
  padding: 5px 18px; border-radius: 999px;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .9rem;
  letter-spacing: .5px;
}
.login-org-badge.icso { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-glow); }
.login-org-badge.ces  { background: rgba(16,185,129,.12); color: #34D399; border: 1px solid rgba(16,185,129,.3); }
.login-org-sep { color: rgba(255,255,255,.3); font-size: 1.2rem; font-weight: 300; }

/* ── SHELL ───────────────────────────────────────── */
.shell { display: flex; height: 100vh; }

/* ── SIDEBAR ─────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  display: flex; flex-direction: column;
  flex-shrink: 0; position: relative; z-index: 20;
  border-right: 1px solid rgba(255,255,255,.05);
}

.sb-header { padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }

.sb-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sb-logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--navy-3); border: 1px solid var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.sb-logo-text { display: flex; flex-direction: column; line-height: 1; }
.sb-logo-main { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: .95rem; color: #fff; letter-spacing: .3px; transition: color .3s; }
.sb-logo-sub  { font-size: .62rem; color: rgba(255,255,255,.35); margin-top: 2px; font-weight: 500; }

.org-switcher { display: flex; background: rgba(0,0,0,.25); border-radius: 7px; padding: 3px; gap: 2px; }
.org-tab { flex: 1; padding: 6px 8px; border-radius: 5px; font-family: 'Outfit', sans-serif; font-size: .75rem; font-weight: 800; color: rgba(255,255,255,.4); transition: all .2s; letter-spacing: .3px; }
.org-tab:hover { color: rgba(255,255,255,.7); }
.org-tab.active { color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent-glow); }

/* nav */
.sb-nav { flex: 1; padding: 10px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.nav-group-label { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,.25); padding: 8px 10px 4px; }

.nb {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.45);
  transition: all .18s; position: relative;
}
.nb:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); }
.nb.active { background: var(--accent-dim); color: var(--accent); }
.nb.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.nb-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: .6; }
.nb.active .nb-icon, .nb:hover .nb-icon { opacity: 1; }
.nb-icon svg { width: 100%; height: 100%; }
.nb-badge { background: var(--red); color: #fff; font-size: .6rem; font-weight: 800; padding: 1px 5px; border-radius: 999px; margin-left: auto; }

/* sidebar footer */
.sb-footer { padding: 12px 12px 14px; border-top: 1px solid rgba(255,255,255,.06); }
.sb-user-card { display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: rgba(255,255,255,.04); border-radius: 9px; border: 1px solid rgba(255,255,255,.07); margin-bottom: 12px; }
.sb-user-av { width: 30px; height: 30px; border-radius: 7px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .82rem; color: var(--navy); flex-shrink: 0; }
.sb-user-info { flex: 1; min-width: 0; }
.sb-user-name { font-size: .78rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-role { font-size: .65rem; color: rgba(255,255,255,.4); margin-top: 1px; }
.sb-logout { color: rgba(255,255,255,.3); padding: 4px; border-radius: 5px; transition: all .2s; flex-shrink: 0; }
.sb-logout:hover { color: var(--red); background: rgba(239,68,68,.1); }

.sb-clock { text-align: center; }
.sb-clock-time { font-family: 'Outfit', sans-serif; font-size: 1.45rem; font-weight: 700; color: var(--accent); letter-spacing: 1px; line-height: 1; transition: color .3s; }
.sb-clock-date { font-size: .65rem; color: rgba(255,255,255,.3); margin-top: 3px; font-weight: 500; }

/* ── MAIN ────────────────────────────────────────── */
.main { flex: 1; overflow-y: auto; background: var(--bg); }
.page { display: none; max-width: 1300px; margin: 0 auto; animation: fadeUp .3s ease; }
.page.active { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ── DASHBOARD ───────────────────────────────────── */
.dash-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 60%, var(--navy-4) 100%);
  padding: 40px 48px 36px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.dash-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.dash-hero-eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 6px; }
.dash-hero-title { font-family: 'Outfit', sans-serif; font-size: 2.4rem; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -.5px; }
.dash-hero-sub { font-size: .82rem; color: rgba(255,255,255,.45); margin-top: 6px; font-weight: 500; }
.dash-hero-date { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: 10px; font-weight: 600; letter-spacing: .3px; }

.dash-hero-right { display: flex; align-items: center; gap: 0; z-index: 1; }
.dash-hero-stat { text-align: center; padding: 0 28px; }
.dhs-val { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 900; color: #fff; line-height: 1; }
.dhs-label { font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; }
.dash-hero-divider { width: 1px; height: 48px; background: rgba(255,255,255,.12); }

.dash-hero-live { position: absolute; top: 20px; right: 24px; display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; color: var(--green); letter-spacing: .5px; text-transform: uppercase; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulseDot 1.8s ease-in-out infinite; }
@keyframes pulseDot { 0%,100%{ box-shadow:0 0 0 0 rgba(16,185,129,.5); } 50%{ box-shadow:0 0 0 6px rgba(16,185,129,0); } }

.dash-hero-bg-text {
  position: absolute; right: -20px; bottom: -30px;
  font-family: 'Outfit', sans-serif; font-size: 9rem; font-weight: 900;
  color: rgba(255,255,255,.03); letter-spacing: -4px;
  pointer-events: none; user-select: none; line-height: 1;
  transition: color .3s;
}

.meet-reminder-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--amber-l); color: #92400E;
  border-bottom: 1px solid #FCD34D;
  padding: 10px 48px; font-size: .82rem; font-weight: 700;
}

/* dashboard body */
.dash-body { display: grid; grid-template-columns: 1fr 320px; gap: 0; min-height: calc(100vh - 280px); }
.dash-col-main { padding: 28px 32px; border-right: 1px solid var(--border); }
.dash-col-side { padding: 28px 24px; background: var(--surface); }

.section-title { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 14px; }

/* status tabs */
.status-tabs { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; margin-bottom: 16px; }
.stab { flex: 1; padding: 9px 8px; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface); border-right: 1px solid var(--border); transition: all .2s; }
.stab:last-child { border-right: none; }
.stab:hover { background: var(--bg); color: var(--text); }
.stab.active { background: var(--navy); color: #fff; }
.stab-count { display: inline-block; background: rgba(255,255,255,.2); border-radius: 999px; padding: 0 6px; font-size: .65rem; margin-left: 5px; }
.stab:not(.active) .stab-count { background: var(--bg-2); color: var(--muted); }

.status-panel { display: flex; flex-direction: column; gap: 7px; }

/* officer status item */
.osi {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; transition: all .18s;
}
.osi:hover { border-color: var(--accent); transform: translateX(2px); box-shadow: var(--shadow); }
.osi-av { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .82rem; color: #fff; flex-shrink: 0; overflow: hidden; }
.osi-av img { width: 100%; height: 100%; object-fit: cover; }
.osi-name { font-size: .82rem; font-weight: 700; color: var(--text); }
.osi-meta { font-size: .7rem; color: var(--muted); margin-top: 1px; }
.osi-status { margin-left: auto; }

/* dashboard side col */
.dash-ann-list { display: flex; flex-direction: column; gap: 10px; }
.dash-ann-chip {
  padding: 12px 14px; border-radius: 9px;
  background: var(--bg); border-left: 3px solid var(--accent);
  border: 1px solid var(--border); border-left-width: 3px;
}
.dac-title { font-size: .82rem; font-weight: 700; color: var(--text); }
.dac-body  { font-size: .73rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.dash-meet-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.dash-meet-item:last-child { border-bottom: none; }
.dmi-date { width: 36px; height: 36px; border-radius: 8px; background: var(--accent-dim); border: 1px solid var(--accent-glow); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.dmi-day { font-family: 'Outfit', sans-serif; font-size: .8rem; font-weight: 900; color: var(--accent); line-height: 1; }
.dmi-mon { font-size: .55rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.dmi-title { font-size: .82rem; font-weight: 700; color: var(--text); }
.dmi-time  { font-size: .7rem; color: var(--muted); margin-top: 1px; }

/* ── PAGE HEADER ─────────────────────────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 36px 20px; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); background: var(--surface); }
.ph-eyebrow { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); margin-bottom: 3px; transition: color .3s; }
.ph-title { font-family: 'Outfit', sans-serif; font-size: 1.55rem; font-weight: 800; color: var(--text); line-height: 1; }
.ph-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* page content wrapper for non-dashboard */
.page > *:not(.page-header):not(.page-tabs) { padding: 24px 36px; }
.page > .page-tabs { padding: 0 36px; border-bottom: 1px solid var(--border); background: var(--surface); }

/* ── TABS ────────────────────────────────────────── */
.page-tabs { display: flex; gap: 0; }
.ptab { padding: 13px 18px; font-size: .82rem; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; transition: all .2s; position: relative; }
.ptab:hover { color: var(--text); }
.ptab.active { color: var(--accent); border-bottom-color: var(--accent); }
.ptab-badge { background: var(--red); color: #fff; font-size: .6rem; font-weight: 800; padding: 1px 5px; border-radius: 999px; margin-left: 4px; }

/* ── CONTROLS ────────────────────────────────────── */
.ctrl-sel { padding: 8px 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); font-size: .82rem; color: var(--text); outline: none; transition: border-color .2s; }
.ctrl-sel:focus { border-color: var(--accent); }
.search-wrap { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 7px; padding: 0 12px; background: var(--surface); transition: border-color .2s; }
.search-wrap:focus-within { border-color: var(--accent); }
.search-wrap svg { color: var(--muted); flex-shrink: 0; }
.ctrl-search { border: none; outline: none; font-size: .82rem; padding: 8px 0; width: 180px; background: transparent; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-accent { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: var(--navy); padding: 9px 18px; border-radius: 8px; font-size: .82rem; font-weight: 800; transition: all .2s; letter-spacing: .2px; }
.btn-accent:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 4px 14px var(--accent-glow); }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--text-2); border: 1.5px solid var(--border); padding: 8px 14px; border-radius: 8px; font-size: .82rem; font-weight: 700; transition: all .2s; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; padding: 9px 18px; border-radius: 8px; font-size: .82rem; font-weight: 700; transition: all .2s; }
.btn-danger:hover { opacity: .88; }
.btn-gcal { display: inline-flex; align-items: center; gap: 8px; background: #4285F4; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: .82rem; font-weight: 700; transition: all .2s; }
.btn-gcal:hover { opacity: .88; }
.link-btn { font-size: .75rem; font-weight: 700; color: var(--accent); background: var(--accent-dim); border: 1px solid var(--accent-glow); padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: all .18s; }
.link-btn:hover { opacity: .8; }

/* ── FORMS ───────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.fi { padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 7px; background: var(--bg); font-size: .855rem; color: var(--text); outline: none; transition: all .2s; width: 100%; }
.fi:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-dim); }

/* ── CARDS ───────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-family: 'Outfit', sans-serif; font-size: .9rem; font-weight: 700; color: var(--text); }
.card-body { padding: 16px 18px; }

/* ── OFFICER GRID ────────────────────────────────── */
.officer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.officer-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px;
  cursor: pointer; transition: all .22s; overflow: hidden;
  position: relative;
}
.officer-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.officer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border); }
.officer-card:hover::after { transform: scaleX(1); }

.oc-av-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.oc-av { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.1rem; color: #fff; flex-shrink: 0; overflow: hidden; }
.oc-av img { width: 100%; height: 100%; object-fit: cover; }
.oc-name { font-family: 'Outfit', sans-serif; font-size: .88rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.oc-role { font-size: .7rem; color: var(--muted); margin-top: 1px; font-weight: 600; }
.oc-rate-row { margin-bottom: 10px; }
.oc-rate-bar { height: 4px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin-bottom: 4px; }
.oc-rate-fill { height: 100%; border-radius: 999px; transition: width .6s ease; }
.oc-rate-label { font-size: .68rem; font-weight: 700; text-align: right; }
.oc-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); }
.oc-section-badge { font-size: .67rem; font-weight: 700; background: var(--bg); border: 1px solid var(--border); padding: 3px 7px; border-radius: 4px; color: var(--text-2); }
.oc-year-label { font-size: .68rem; font-weight: 700; color: var(--muted); }
.streak-pill { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; background: var(--amber-l); color: #92400E; padding: 2px 7px; border-radius: 999px; }

/* ── CALENDAR ────────────────────────────────────── */
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 20px 36px 0; }
.cal-nav-btn { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: all .2s; }
.cal-nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.cal-month-title { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--text); min-width: 150px; text-align: center; }
.semester-notice { font-size: .72rem; font-weight: 700; color: var(--amber); background: var(--amber-l); border: 1px solid #FCD34D; padding: 5px 10px; border-radius: 6px; }

.cal-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin: 16px 36px 0; box-shadow: var(--shadow); }
.cal-head { display: grid; grid-template-columns: repeat(7,1fr); background: var(--navy); }
.ch { padding: 12px; text-align: center; font-size: .62rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.45); }
.ch.sun, .ch.sat { color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-cell { min-height: 96px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px; display: flex; flex-direction: column; position: relative; transition: background .15s; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: var(--bg); }
.cal-cell.empty { background: var(--bg); pointer-events: none; }
.cal-cell.today { background: var(--accent-dim); border-top: 2px solid var(--accent); }
.cal-cell.past-semester { background: repeating-linear-gradient(45deg,var(--bg),var(--bg) 4px,var(--bg-2) 4px,var(--bg-2) 8px); }
.cal-cell.blackout { background: repeating-linear-gradient(45deg,#FFF5F5,#FFF5F5 4px,#FFE4E4 4px,#FFE4E4 8px); }
.c-num { font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.cal-cell.today .c-num { color: var(--accent); font-weight: 900; }
.c-dots { display: flex; flex-wrap: wrap; gap: 2px; margin-top: auto; }
.c-dot { width: 17px; height: 17px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: .58rem; font-weight: 800; color: #fff; cursor: pointer; transition: transform .15s; }
.c-dot:hover { transform: scale(1.25); }
.cal-rc-dot { position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); border: 1.5px solid #fff; }
.blackout-label { font-size: .55rem; color: var(--red); font-weight: 700; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.past-sem-label { font-size: .58rem; color: var(--muted); margin-top: auto; opacity: .6; }

.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 36px; border-top: 1px solid var(--border); }
.leg { display: flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 700; color: var(--muted); }
.leg-dot { width: 9px; height: 9px; border-radius: 3px; }

/* ── MEETINGS ────────────────────────────────────── */
.two-col-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.sched-results-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; min-height: 200px; box-shadow: var(--shadow); }
.sched-result-head { padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg); }
.slot-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); transition: background .15s; }
.slot-row:last-child { border-bottom: none; }
.slot-row:hover { background: var(--bg); }
.slot-rank { width: 24px; height: 24px; border-radius: 6px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .72rem; flex-shrink: 0; }
.slot-time { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .88rem; color: var(--text); }
.slot-conflict { font-size: .7rem; color: var(--red); margin-top: 2px; }
.slot-bar { height: 4px; width: 80px; background: var(--border); border-radius: 999px; overflow: hidden; }
.slot-fill { height: 100%; border-radius: 999px; transition: width .8s ease; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 160px; color: var(--muted); font-size: .875rem; text-align: center; padding: 24px; }

.meetings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 14px; }
.meet-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; cursor: pointer; transition: all .2s; border-left: 4px solid var(--accent); }
.meet-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.meet-card-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .92rem; color: var(--text); margin-bottom: 5px; }
.meet-card-meta { font-size: .73rem; color: var(--muted); line-height: 1.6; }
.meet-card-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }

/* ── ANNOUNCEMENTS ───────────────────────────────── */
.ann-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; border-left: 4px solid var(--accent); margin-bottom: 12px; transition: box-shadow .2s; }
.ann-card:hover { box-shadow: var(--shadow-md); }
.ann-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.ann-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .95rem; color: var(--text); }
.ann-body { font-size: .855rem; color: var(--text-2); line-height: 1.6; }
.ann-meta { font-size: .7rem; color: var(--muted); margin-top: 10px; display: flex; gap: 14px; }

/* ── ATTENDANCE ──────────────────────────────────── */
.rc-banner { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 22px; margin-bottom: 16px; flex-wrap: wrap; gap: 14px; box-shadow: var(--shadow); }
.rc-banner-title { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 800; color: var(--text); }
.rc-banner-sub { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.rc-progress-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.rc-prog-bar-bg { height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; }
.rc-prog-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), #34D399); border-radius: 999px; transition: width .5s ease; }
.rc-prog-label { font-size: .68rem; font-weight: 700; color: var(--muted); text-align: right; }

.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.rc-card { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 14px; transition: border-color .2s; }
.rc-card.rc-present { border-color: var(--green); background: #F0FDF9; }
.rc-card.rc-late    { border-color: var(--amber); background: #FFFBEB; }
.rc-card.rc-absent  { border-color: var(--red);   background: #FFF5F5; }
.rc-av { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .85rem; color: #fff; flex-shrink: 0; overflow: hidden; }
.rc-av img { width: 100%; height: 100%; object-fit: cover; }
.rc-info { flex: 1; min-width: 0; }
.rc-name { font-size: .82rem; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-role-text { font-size: .68rem; color: var(--muted); margin-top: 1px; }
.rc-in-class-tag { font-size: .62rem; font-weight: 700; color: var(--red); background: var(--red-l); padding: 2px 6px; border-radius: 999px; flex-shrink: 0; }
.rc-action-btns { display: flex; gap: 3px; flex-shrink: 0; }
.rc-btn { padding: 5px 9px; border-radius: 5px; font-size: .7rem; font-weight: 700; border: 1.5px solid var(--border); background: var(--bg); color: var(--muted); transition: all .15s; }
.rc-btn.sel-p { background: var(--green-l); border-color: var(--green); color: var(--green); }
.rc-btn.sel-l { background: var(--amber-l); border-color: var(--amber); color: var(--amber); }
.rc-btn.sel-a { background: var(--red-l);   border-color: var(--red);   color: var(--red); }

/* per officer stats */
.officer-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.ostat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); transition: border-color .2s; }
.ostat-card.below-threshold { border-color: var(--red); background: #FFF8F8; }
.ostat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ostat-rate { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 900; margin-left: auto; }
.ostat-bar-bg { height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.ostat-bar-fill { height: 100%; border-radius: 999px; transition: width .7s ease; }
.ostat-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: .72rem; color: var(--muted); }
.ostat-stats strong { color: var(--text); }

/* attendance summary row */
.att-stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.att-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; border-bottom-width: 3px; cursor: pointer; transition: transform .18s; }
.att-stat:hover { transform: translateY(-2px); }
.att-stat-val { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; }
.att-stat-label { font-size: .65rem; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-top: 2px; }

/* filter pills */
.filter-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.fp { padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; border: 1.5px solid var(--border); background: var(--bg); color: var(--muted); cursor: pointer; transition: all .15s; }
.fp.active   { background: var(--navy);    border-color: var(--navy);   color: #fff; }
.fp.active.p { background: var(--green);   border-color: var(--green);  color: #fff; }
.fp.active.l { background: var(--amber);   border-color: var(--amber);  color: #fff; }
.fp.active.v { background: #B7791F;        border-color: #B7791F;       color: #fff; }
.fp.active.a { background: var(--red);     border-color: var(--red);    color: #fff; }
.fp.active.e { background: var(--blue);    border-color: var(--blue);   color: #fff; }
.rec-count { font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* excuses */
.excuse-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; box-shadow: var(--shadow); }
.exc-av { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .9rem; color: #fff; flex-shrink: 0; overflow: hidden; }
.exc-av img { width: 100%; height: 100%; object-fit: cover; }
.exc-body { flex: 1; }
.exc-name { font-weight: 700; font-size: .875rem; color: var(--text); }
.exc-reason { font-size: .8rem; color: var(--text-2); margin-top: 3px; line-height: 1.5; }
.exc-meta { font-size: .68rem; color: var(--muted); margin-top: 6px; display: flex; gap: 10px; align-items: center; }
.exc-actions { display: flex; gap: 7px; margin-top: 10px; }

/* ── REPORTS ─────────────────────────────────────── */
.reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wide { grid-column: 1 / -1; }

.rr { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.rr:last-child { border-bottom: none; }
.rr.clickable { cursor: pointer; border-radius: 7px; padding-left: 8px; padding-right: 8px; margin: 0 -8px; transition: background .15s; }
.rr.clickable:hover { background: var(--bg); }
.rr-label { font-size: .8rem; font-weight: 600; color: var(--text-2); min-width: 110px; }
.rr-bar-bg { flex: 1; height: 5px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.rr-bar { height: 100%; border-radius: 999px; transition: width .6s ease; }
.rr-val { font-size: .78rem; font-weight: 700; color: var(--text); min-width: 24px; text-align: right; }
.drill-arrow { font-size: .7rem; color: var(--muted); opacity: 0; transition: opacity .15s, transform .15s; margin-left: 3px; }
.rr.clickable:hover .drill-arrow { opacity: 1; transform: translateX(3px); }
.att-report-footer { padding: 10px 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.att-rate-text { font-size: .78rem; font-weight: 700; color: var(--muted); }
.att-rate-text strong { color: var(--green); font-size: .92rem; }
.last-updated { font-size: .67rem; color: var(--muted); font-style: italic; }

.trend-wrap { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.trend-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.trend-bar { width: 100%; border-radius: 3px 3px 0 0; min-height: 3px; transition: height .5s ease; }
.trend-lbl { font-size: .48rem; color: var(--muted); font-weight: 600; }

/* ── SETTINGS ────────────────────────────────────── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.setting-rows { display: flex; flex-direction: column; }
.sr { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.sr:last-child { border-bottom: none; }
.sr span { color: var(--muted); }
.sr strong { color: var(--text); }
.setting-desc { font-size: .82rem; color: var(--muted); line-height: 1.5; }

.toggle { position: relative; display: inline-block; width: 38px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.track { position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: .3s; }
.track::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .3s; }
input:checked + .track { background: var(--accent); }
input:checked + .track::before { transform: translateX(16px); }

/* ── TABLE ───────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.dt { width: 100%; border-collapse: collapse; }
.dt th { padding: 11px 18px; text-align: left; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--border); }
.dt td { padding: 11px 18px; font-size: .82rem; color: var(--text-2); border-bottom: 1px solid var(--border); font-weight: 500; }
.dt tr:last-child td { border-bottom: none; }
.dt tr:hover td { background: var(--bg); }

/* ── BADGES ──────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.badge.present { background: var(--green-l); color: var(--green); }
.badge.late    { background: var(--amber-l); color: var(--amber); }
.badge.absent  { background: var(--red-l);   color: var(--red); }
.badge.excused { background: var(--blue-l);  color: var(--blue); }
.badge.valid   { background: #FDF3DC; color: #B7791F; }
.badge.pending { background: #F5F3FF; color: var(--purple); }
.badge.up      { background: var(--green-l); color: var(--green); }
.badge.past    { background: var(--bg-2); color: var(--muted); }

/* ── MODAL ───────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(8,16,32,.7); z-index: 100; align-items: center; justify-content: center; backdrop-filter: blur(8px); animation: fadeIn .2s ease; }
.modal-overlay.active { display: flex; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal { background: var(--surface); width: 92%; max-width: 720px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; animation: slideUp .25s ease; }
@keyframes slideUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--text); }
.modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-x { width: 32px; height: 32px; border-radius: 7px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .2s; }
.modal-x:hover { background: var(--red-l); color: var(--red); }

/* profile modal */
.modal-profile-header {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  position: relative; overflow: hidden;
}
.modal-profile-header::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 90% 50%, var(--accent-glow) 0%, transparent 60%); pointer-events: none; }
.mph-av-wrap { position: relative; z-index: 1; flex-shrink: 0; }
.mph-av { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.3rem; color: #fff; overflow: hidden; border: 2px solid rgba(255,255,255,.2); }
.mph-av img { width: 100%; height: 100%; object-fit: cover; }
.mph-photo-btn { position: absolute; bottom: -3px; right: -3px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-3); border: 2px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,.7); z-index: 2; }
.mph-info { flex: 1; z-index: 1; }
.mph-name { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 800; color: #fff; }
.mph-role { font-size: .72rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.mph-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mph-pill { font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.modal-section-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 13px 22px 6px; }
.modal-section-row { border-bottom: 1px solid var(--border); }

/* contact view */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact-item { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-2); font-weight: 500; }
.ci-icon { width: 26px; height: 26px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 800; color: var(--muted); flex-shrink: 0; }
.contact-empty { font-size: .78rem; color: var(--muted); font-style: italic; }

/* profile att summary */
.profile-att-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pa-stat { text-align: center; padding: 8px 14px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); flex: 1; }
.pa-val { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 900; }
.pa-label { font-size: .65rem; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-top: 1px; }

/* attendee grid */
.attendee-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.att-chip { display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg); font-size: .75rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .18s; }
.att-chip.selected { border-color: var(--navy); background: var(--navy); color: #fff; }
.att-chip-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.conflict-box { background: var(--red-l); border: 1px solid #FECACA; border-radius: 7px; padding: 10px 14px; font-size: .78rem; color: var(--red); line-height: 1.6; }

/* misc */
.day-picker { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.dp { display: flex; align-items: center; gap: 4px; padding: 5px 10px; border: 1.5px solid var(--border); border-radius: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .15s; background: var(--bg); }
.dp:hover { border-color: var(--navy); color: var(--navy); }
.dp input { width: 12px; height: 12px; accent-color: var(--navy); }

.blackout-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--red-l); border: 1px solid #FECACA; border-radius: 7px; margin-bottom: 6px; font-size: .8rem; font-weight: 600; color: var(--red); }

.cswatch { width: 28px; height: 28px; border-radius: 7px; border: 2px solid transparent; transition: transform .15s; }
.cswatch:hover { transform: scale(1.15); }
.active-cs { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,22,40,.2); }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: .855rem; font-weight: 600; color: var(--text); cursor: pointer; }
.checkbox-row input { width: 15px; height: 15px; accent-color: var(--navy); }

.live-pill { display: flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 700; color: var(--green); background: var(--green-l); padding: 4px 10px; border-radius: 999px; }

/* today status rows */
.today-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.today-row:last-child { border-bottom: none; }

/* ── TOAST ───────────────────────────────────────── */
.toast-stack { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px; min-width: 260px; max-width: 340px; box-shadow: var(--shadow-lg); animation: toastIn .3s ease; pointer-events: all; border-left: 3px solid var(--accent); }
.toast.tg { border-left-color: var(--green); }
.toast.tr { border-left-color: var(--red); }
.toast.ta { border-left-color: var(--amber); }
.toast.tb { border-left-color: var(--blue); }
@keyframes toastIn  { from{transform:translateX(110%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes toastOut { from{transform:translateX(0);opacity:1} to{transform:translateX(110%);opacity:0} }
.toast-out { animation: toastOut .3s ease forwards; }
.toast-icon { font-size: .9rem; margin-top: 2px; flex-shrink: 0; color: var(--accent); }
.toast.tg .toast-icon { color: var(--green); }
.toast.tr .toast-icon { color: var(--red); }
.toast.ta .toast-icon { color: var(--amber); }
.toast-title { font-weight: 700; font-size: .84rem; margin-bottom: 1px; }
.toast-msg { font-size: .74rem; color: rgba(255,255,255,.6); }

/* ── ROLE VISIBILITY ─────────────────────────────── */
.officer-only { display: none !important; }
body.is-officer .admin-only  { display: none !important; }
body.is-officer .officer-only { display: inline-flex !important; }

/* ── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1100px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-col-side { border-top: 1px solid var(--border); }
  .reports-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .two-col-layout { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  :root { --sidebar-w: 220px; }
  .dash-hero { flex-direction: column; gap: 20px; padding: 28px 24px; }
  .dash-hero-right { gap: 0; }
  .page > *:not(.page-header):not(.page-tabs) { padding: 16px 20px; }
  .page-header { padding: 20px 20px 16px; }
  .page > .page-tabs { padding: 0 20px; }
  .att-stat-row { grid-template-columns: repeat(3, 1fr); }
  .cal-wrap, .cal-legend { margin-left: 20px; margin-right: 20px; }
  .cal-nav { padding: 16px 20px 0; }
}