/* ============================================================
   KIJC v2 — Mobile Stylesheet
   File: public_html/kijc2/mobile/assets/mob.css
   Purpose-built for phone. NOT a responsive version of app.css.
   Uses same CSS variables as app.css (loaded from ../assets/app.css)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=DM+Mono:ital,wght@0,400;0,500&display=swap');

/* ── CSS Variables (same as desktop, carried over) ─────────── */
:root {
  --bg:        #F0F4F8;
  --surface:   #FFFFFF;
  --surface2:  #E8EDF5;
  --surface3:  #DDE4F0;
  --border:    #D0D8E8;
  --border2:   #B8C4D8;
  --text:      #1E2535;
  --muted:     #64748B;
  --muted2:    #94A3B8;
  --accent:    #2563EB;
  --accent-h:  #1D4ED8;
  --accent-s:  rgba(37,99,235,.12);
  --accent2:   #7C3AED;
  --accent2-s: rgba(124,58,237,.10);
  --green:     #059669;
  --green-s:   rgba(5,150,105,.10);
  --red:       #DC2626;
  --red-s:     rgba(220,38,38,.10);
  --yellow:    #D97706;
  --yellow-s:  rgba(217,119,6,.12);
  --orange:    #EA580C;
  --orange-s:  rgba(234,88,12,.10);
  --sky:       #0284C7;
  --sky-s:     rgba(2,132,199,.10);
  --pink:      #DB2777;
  --pink-s:    rgba(219,39,119,.10);
  --font:      'Sora', sans-serif;
  --mono:      'DM Mono', monospace;
  --r-sm:      6px;
  --r:         10px;
  --r-lg:      14px;
  --r-xl:      18px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --t:         .16s ease;

  /* Mobile-specific */
  --topbar-h:  56px;
  --tabbar-h:  64px;
  --mob-pad:   16px;
}

/* ── Dark mode ─────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0D1117;
    --surface:   #161B27;
    --surface2:  #1E2535;
    --surface3:  #252D40;
    --border:    #2A3248;
    --border2:   #374060;
    --text:      #E8EDF8;
    --muted:     #6B7A99;
    --muted2:    #4A5570;
    --accent:    #4F8EF7;
    --accent-h:  #6FA0F9;
    --accent-s:  rgba(79,142,247,.12);
    --accent2:   #9D6EF5;
    --accent2-s: rgba(157,110,245,.12);
    --green:     #3ECF8E;
    --green-s:   rgba(62,207,142,.10);
    --red:       #F75E5E;
    --red-s:     rgba(247,94,94,.10);
    --yellow:    #F5C342;
    --yellow-s:  rgba(245,195,66,.12);
    --orange:    #F59A42;
    --orange-s:  rgba(245,154,66,.10);
    --pink:      #F472B6;
    --pink-s:    rgba(244,114,182,.10);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
    --shadow:    0 4px 12px rgba(0,0,0,.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.5);
  }
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Push content between topbar and tabbar */
  padding-top: var(--topbar-h);
  padding-bottom: var(--tabbar-h);
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
img, svg { display: block; }

/* ── Top bar ───────────────────────────────────────────────── */
.mob-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--mob-pad);
  gap: 10px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.mob-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.mob-topbar-logo {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; font-weight: 800;
  font-family: var(--mono);
  flex-shrink: 0;
}

.mob-topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-topbar-subtitle {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.mob-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mob-icon-btn {
  width: 36px; height: 36px;
  border: none;
  background: var(--surface2);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  transition: background var(--t), color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.mob-icon-btn:active { background: var(--surface3); color: var(--accent); }

.mob-avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

/* Desktop link in topbar */
.mob-desktop-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--t);
}
.mob-desktop-link:hover { color: var(--accent); border-color: var(--accent); }

/* ── Flash messages ────────────────────────────────────────── */
.mob-flash {
  position: fixed;
  top: calc(var(--topbar-h) + 8px);
  left: 12px; right: 12px;
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
  animation: flashIn .25s ease;
  box-shadow: var(--shadow);
}
.mob-flash.success { background: var(--green-s); color: var(--green); border: 1px solid rgba(5,150,105,.2); }
.mob-flash.error   { background: var(--red-s);   color: var(--red);   border: 1px solid rgba(220,38,38,.2); }
@keyframes flashIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }

/* ── Bottom tab bar ────────────────────────────────────────── */
.mob-tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--tabbar-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}

.mob-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted2);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  transition: color var(--t);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mob-tab .icon { font-size: 22px; line-height: 1; }
.mob-tab.active { color: var(--accent); }
.mob-tab.active .icon { transform: scale(1.1); }

/* Hero tab (Events — centre) */
.mob-tab.hero {
  flex: 0 0 72px;
}
.mob-tab.hero .icon-wrap {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 1px;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  transition: transform var(--t), box-shadow var(--t);
}
.mob-tab.hero.active .icon-wrap,
.mob-tab.hero:active .icon-wrap {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(37,99,235,.45);
}
.mob-tab.hero .icon { font-size: 24px; }
.mob-tab.hero .label { color: var(--accent); font-weight: 700; font-size: 10px; }

/* notification dot */
.mob-tab-dot {
  position: absolute;
  top: 6px; right: calc(50% - 14px);
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

/* ── Page content wrapper ──────────────────────────────────── */
.mob-page {
  padding: var(--mob-pad);
  min-height: calc(100vh - var(--topbar-h) - var(--tabbar-h));
}

/* ── Cards ─────────────────────────────────────────────────── */
.mob-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 12px;
}

.mob-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  padding: 12px 14px 0;
}

.mob-card-body { padding: 12px 14px; }

/* ── Section label ─────────────────────────────────────────── */
.mob-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  margin: 16px 0 8px;
}

/* ── Hero strip (dashboard) ────────────────────────────────── */
.mob-hero {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: var(--r-lg);
  padding: 20px var(--mob-pad);
  color: white;
  margin-bottom: 14px;
}
.mob-hero-date { font-size: 12px; opacity: .8; margin-bottom: 4px; }
.mob-hero-name { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.mob-hero-stats { display: flex; gap: 8px; }
.mob-hero-stat {
  flex: 1;
  background: rgba(255,255,255,.15);
  border-radius: var(--r);
  padding: 10px;
  text-align: center;
}
.mob-hero-stat-num  { font-size: 22px; font-weight: 800; font-family: var(--mono); }
.mob-hero-stat-lbl  { font-size: 10px; opacity: .8; margin-top: 2px; }

/* ── Stat row ──────────────────────────────────────────────── */
.mob-stat-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.mob-stat {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 10px;
  text-align: center;
}
.mob-stat-num { font-size: 20px; font-weight: 800; color: var(--accent); font-family: var(--mono); }
.mob-stat-lbl { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ── Event card ────────────────────────────────────────────── */
.mob-event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow var(--t), transform var(--t);
  -webkit-tap-highlight-color: transparent;
  border-left: 4px solid var(--accent);
}
.mob-event-card:active { transform: scale(.99); box-shadow: var(--shadow); }
.mob-event-card.participation { border-left-color: var(--accent2); }
.mob-event-card.past { opacity: .7; border-left-color: var(--border2); }

.mob-event-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.mob-event-date-block {
  background: var(--accent-s);
  border-radius: var(--r);
  padding: 6px 10px;
  text-align: center;
  min-width: 44px;
  flex-shrink: 0;
}
.mob-event-date-block.participation { background: var(--accent2-s); }
.mob-event-date-day   { font-size: 20px; font-weight: 800; font-family: var(--mono); color: var(--accent); line-height: 1; }
.mob-event-date-month { font-size: 10px; font-weight: 700; color: var(--accent); text-transform: uppercase; margin-top: 2px; }
.mob-event-date-block.participation .mob-event-date-day,
.mob-event-date-block.participation .mob-event-date-month { color: var(--accent2); }

.mob-event-info { flex: 1; min-width: 0; }
.mob-event-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.mob-event-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* RSVP buttons */
.mob-rsvp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}
.mob-rsvp-btn {
  padding: 10px 6px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: all var(--t);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.mob-rsvp-btn.going   { border-color: var(--green); color: var(--green); }
.mob-rsvp-btn.maybe   { border-color: var(--yellow); color: var(--yellow); }
.mob-rsvp-btn.no      { border-color: var(--red); color: var(--red); }
.mob-rsvp-btn.going.sel   { background: var(--green-s); }
.mob-rsvp-btn.maybe.sel   { background: var(--yellow-s); }
.mob-rsvp-btn.no.sel      { background: var(--red-s); }
.mob-rsvp-btn:active { transform: scale(.97); }

/* Enroll button */
.mob-enroll-btn {
  width: 100%;
  padding: 9px;
  margin-top: 10px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--accent2);
  background: var(--accent2-s);
  color: var(--accent2);
  transition: all var(--t);
}
.mob-enroll-btn.enrolled {
  background: var(--green-s); border-color: var(--green); color: var(--green);
}

/* ── Celebration card ──────────────────────────────────────── */
.mob-celeb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mob-celeb-card:active { background: var(--surface2); }

.mob-celeb-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.mob-celeb-avatar.birthday    { background: linear-gradient(135deg, var(--pink), var(--accent2)); }
.mob-celeb-avatar.anniversary { background: linear-gradient(135deg, var(--orange), var(--yellow)); }

.mob-celeb-info { flex: 1; min-width: 0; }
.mob-celeb-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.mob-celeb-detail { font-size: 12px; color: var(--muted); }

.mob-celeb-days {
  text-align: right;
  flex-shrink: 0;
}
.mob-celeb-days-num { font-size: 20px; font-weight: 800; font-family: var(--mono); color: var(--accent); }
.mob-celeb-days-lbl { font-size: 10px; color: var(--muted); }
.mob-celeb-days.today .mob-celeb-days-num { color: var(--pink); }
.mob-celeb-days.today .mob-celeb-days-lbl { color: var(--pink); }

/* ── Member / directory row ────────────────────────────────── */
.mob-member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 8px;
}
.mob-member-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.mob-member-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 17px; font-weight: 700;
  flex-shrink: 0;
}
.mob-member-name  { font-size: 14px; font-weight: 700; }
.mob-member-meta  { font-size: 11px; color: var(--muted); margin-top: 2px; }

.mob-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.mob-contact-label { font-size: 11px; color: var(--muted); min-width: 32px; }
.mob-contact-name  { font-size: 13px; flex: 1; font-weight: 600; }
.mob-call-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  background: var(--green-s);
  color: var(--green);
  border: 1px solid rgba(5,150,105,.2);
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  transition: all var(--t);
  -webkit-tap-highlight-color: transparent;
}
.mob-call-btn:active { background: var(--green); color: white; }

/* ── Notice card ───────────────────────────────────────────── */
.mob-notice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 8px;
}
.mob-notice-event { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.mob-notice-body  { font-size: 13px; line-height: 1.6; color: var(--text); }
.mob-notice-meta  { font-size: 11px; color: var(--muted); margin-top: 8px; }
.mob-notice-link  {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 10px 12px;
  background: var(--surface2); border-radius: var(--r-sm);
  font-size: 12px; color: var(--accent); font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
}

/* ── Profile ───────────────────────────────────────────────── */
.mob-profile-hero {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: var(--r-lg);
  padding: 20px var(--mob-pad);
  text-align: center;
  color: white;
  margin-bottom: 14px;
}
.mob-profile-avatar {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: white;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,.3);
}
.mob-profile-name { font-size: 20px; font-weight: 700; }
.mob-profile-role { font-size: 12px; opacity: .8; margin-top: 4px; }
.mob-profile-area { font-size: 12px; opacity: .7; margin-top: 2px; }

/* Info rows */
.mob-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.mob-info-row:last-child { border-bottom: none; }
.mob-info-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); min-width: 80px; padding-top: 1px; }
.mob-info-value { font-size: 13px; color: var(--text); flex: 1; }

/* Toggle switch */
.mob-toggle-row {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.mob-toggle-row:last-child { border-bottom: none; }
.mob-toggle-label { flex: 1; font-size: 13px; font-weight: 600; }
.mob-toggle-sub   { font-size: 11px; color: var(--muted); margin-top: 2px; }
.mob-toggle {
  width: 44px; height: 24px;
  border-radius: 12px;
  background: var(--border2);
  position: relative;
  cursor: pointer;
  transition: background var(--t);
  flex-shrink: 0;
  border: none;
}
.mob-toggle::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform var(--t);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.mob-toggle.on { background: var(--green); }
.mob-toggle.on::after { transform: translateX(20px); }

/* ── Form fields ───────────────────────────────────────────── */
.mob-field { margin-bottom: 14px; }
.mob-field label {
  display: block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); margin-bottom: 6px;
}
.mob-field input,
.mob-field select,
.mob-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font); font-size: 14px;
  outline: none;
  transition: border var(--t), box-shadow var(--t);
}
.mob-field input:focus,
.mob-field select:focus,
.mob-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-s);
}

/* ── Buttons ───────────────────────────────────────────────── */
.mob-btn {
  display: block;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: var(--r);
  font-family: var(--font); font-size: 14px; font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all var(--t);
  -webkit-tap-highlight-color: transparent;
}
.mob-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  box-shadow: 0 4px 14px var(--accent-s);
}
.mob-btn-primary:active { transform: scale(.98); }
.mob-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
}
.mob-btn-ghost:active { background: var(--surface2); }
.mob-btn-sm {
  padding: 9px 16px;
  font-size: 13px;
  width: auto;
  display: inline-block;
  border-radius: var(--r-sm);
}
.mob-btn-danger {
  background: var(--red-s); color: var(--red);
  border: 1.5px solid rgba(220,38,38,.2);
}

/* ── Badges ────────────────────────────────────────────────── */
.mob-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px; font-weight: 700;
  white-space: nowrap;
}
.mob-badge-jc    { background: var(--accent-s);  color: var(--accent); }
.mob-badge-ljc   { background: var(--pink-s);    color: var(--pink); }
.mob-badge-jjc   { background: var(--green-s);   color: var(--green); }
.mob-badge-lgb   { background: var(--accent2-s); color: var(--accent2); }
.mob-badge-open  { background: var(--sky-s);     color: var(--sky); }
.mob-badge-part  { background: var(--accent2-s); color: var(--accent2); }

/* ── Pills / filter ────────────────────────────────────────── */
.mob-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mob-pills::-webkit-scrollbar { display: none; }
.mob-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: all var(--t);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.mob-pill.active {
  background: var(--accent-s);
  border-color: var(--accent);
  color: var(--accent);
}
.mob-pill:active { transform: scale(.96); }

/* ── Search ────────────────────────────────────────────────── */
.mob-search-wrap {
  position: relative;
  margin-bottom: 12px;
}
.mob-search-wrap svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted2); pointer-events: none;
}
.mob-search {
  width: 100%;
  padding: 11px 14px 11px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font); font-size: 14px;
  color: var(--text); outline: none;
  transition: border var(--t), box-shadow var(--t);
}
.mob-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-s); }

/* ── Empty state ───────────────────────────────────────────── */
.mob-empty {
  text-align: center;
  padding: 48px 24px;
}
.mob-empty-icon { font-size: 48px; margin-bottom: 14px; }
.mob-empty-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.mob-empty-sub   { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Bottom drawer ─────────────────────────────────────────── */
.mob-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 150;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.mob-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.mob-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 0 0 env(safe-area-inset-bottom);
  z-index: 160;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
  max-height: 80vh;
  overflow-y: auto;
}
.mob-drawer.open { transform: translateY(0); }

.mob-drawer-handle {
  width: 40px; height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 12px auto 4px;
}

.mob-drawer-section {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mob-drawer-section:last-child { border-bottom: none; }

.mob-drawer-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted2);
  padding: 8px 20px 4px;
}

.mob-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  font-size: 14px; font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t);
  -webkit-tap-highlight-color: transparent;
}
.mob-drawer-item:active { background: var(--surface2); }
.mob-drawer-item .icon { font-size: 20px; width: 24px; text-align: center; }
.mob-drawer-item.desktop { color: var(--muted); font-size: 13px; }
.mob-drawer-item.desktop .arrow { margin-left: auto; font-size: 12px; color: var(--muted2); }
.mob-drawer-item.danger { color: var(--red); }

/* ── Staff attendance screen ───────────────────────────────── */
.mob-att-family {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  overflow: hidden;
}
.mob-att-family-header {
  padding: 12px 14px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.mob-att-family-code { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.mob-att-family-name { font-size: 14px; font-weight: 700; flex: 1; }
.mob-att-family-area { font-size: 11px; color: var(--muted); }

.mob-att-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.mob-att-member:last-child { border-bottom: none; }
.mob-att-member.disabled { opacity: .45; }

.mob-att-check {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 2px solid var(--border2);
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  transition: all var(--t);
  -webkit-tap-highlight-color: transparent;
}
.mob-att-check.checked { background: var(--accent); border-color: var(--accent); color: white; font-size: 14px; }
.mob-att-check.disabled-cb { cursor: not-allowed; background: var(--surface2); }

.mob-att-member-info { flex: 1; }
.mob-att-member-name { font-size: 13px; font-weight: 700; }
.mob-att-member-role { font-size: 11px; color: var(--muted); margin-top: 1px; }
.mob-att-reason { font-size: 10px; color: var(--muted2); font-style: italic; margin-top: 2px; }

.mob-att-counter {
  position: fixed;
  bottom: calc(var(--tabbar-h) + 12px);
  right: 16px;
  background: var(--accent);
  color: white;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
  z-index: 90;
  transition: transform var(--t);
}

/* ── Utility ───────────────────────────────────────────────── */
.mob-divider { height: 1px; background: var(--border); margin: 8px 0; }
.mob-spacer  { height: 8px; }
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.fw-700      { font-weight: 700; }
.fs-12       { font-size: 12px; }
.fs-13       { font-size: 13px; }

/* ── Loading skeleton ──────────────────────────────────────── */
.mob-skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }
