html, body { overflow-x: hidden; }
/* ============================================================
   Agency Panel — Mobile CSS
   Completely separate from desktop style.css
   Pattern mirrors HRMS2 mobile.css exactly
   ============================================================ */

:root {
  --primary:   #3b5bdb;
  --primary-dk:#2f4ac0;
  --accent2:   #7048e8;
  --green:     #0ca678;
  --green-lt:  #e6f7f2;
  --yellow:    #e67700;
  --yellow-lt: #fff3cd;
  --red:       #e03131;
  --red-lt:    #ffeaea;
  --teal:      #0891b2;
  --purple:    #7048e8;
  --bg:        #f5f6fa;
  --surface:   #ffffff;
  --surface2:  #f0f2f8;
  --border:    #e2e6f0;
  --text:      #1a1d2e;
  --text2:     #3d4263;
  --muted:     #8892b0;
  --muted2:    #b0bac8;
  --radius:    10px;
  --shadow:    0 1px 3px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --tab-h:     64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 14px; overflow-x: hidden; height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.5; overflow-x: hidden;
  /* prevent bounce scroll revealing white on iOS */
  overscroll-behavior: none;
  min-height: 100vh; min-height: 100dvh;
}
a { color: var(--primary); text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
img { max-width: 100%; height: auto; }

/* ── Layout shell ──────────────────────────────────────────── */
.mob-layout {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
  position: relative;
  /* NO overflow here — it breaks position:sticky on mob-topbar */
}

/* ── Top bar ───────────────────────────────────────────────── */
.mob-topbar {
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  height: 52px;
  flex-shrink: 0;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.mob-topbar-brand { font-size: 15px; font-weight: 800; letter-spacing: .2px; }
.mob-topbar-sub   { font-size: 10px; opacity: .75; margin-top: 1px; }
.mob-topbar-right { display: flex; align-items: center; gap: 8px; }
.mob-topbar-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 6px;
  padding: 4px 10px; font-size: 11px;
  cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.mob-topbar-btn:hover { background: rgba(255,255,255,.22); }
.mob-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0;
}

/* ── Scrollable content area ───────────────────────────────── */
.mob-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: clip;
  /* Bottom padding clears fixed tab bar. No top padding needed — topbar is in flex flow */
  padding: 0 0 calc(var(--tab-h) + env(safe-area-inset-bottom, 8px)) 0;
  -webkit-overflow-scrolling: touch;
}

/* ── Hero strip (like HRMS2 screenshot) ────────────────────── */
.mob-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 100%);
  margin: 12px 14px;
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  box-shadow: 0 6px 20px rgba(59,91,219,.3);
}
.mob-hero-date { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.mob-hero-sub  { font-size: 11px; opacity: .75; }
.mob-hero-stats { display: flex; gap: 20px; }
.mob-hero-stat  { text-align: center; }
.mob-hero-stat-val { font-size: 26px; font-weight: 800; line-height: 1.1; font-family: 'JetBrains Mono', monospace; }
.mob-hero-stat-lbl { font-size: 9px; opacity: .8; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* ── Quick-action grid (2×2) ───────────────────────────────── */
.mob-qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px 4px;
  margin-bottom: 4px;
}
.mob-qa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px 14px;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 10px;
  text-decoration: none; color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
  position: relative; overflow: hidden;
  min-height: 110px;
}
.mob-qa-card:active { transform: scale(.97); box-shadow: none; }
.mob-qa-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  border-radius: 14px 14px 0 0;
}
.mob-qa-card.qa-blue::after   { background: var(--primary); }
.mob-qa-card.qa-purple::after { background: var(--purple); }
.mob-qa-card.qa-green::after  { background: var(--green); }
.mob-qa-card.qa-yellow::after { background: var(--yellow); }
.mob-qa-card.qa-red::after    { background: var(--red); }
.mob-qa-card.qa-teal::after   { background: var(--teal); }
.mob-qa-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mob-qa-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
.mob-qa-label { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.2; }
.mob-qa-sub   { font-size: 11px; color: var(--muted); margin-top: -4px; }

/* ── Badge on QA card ──────────────────────────────────────── */
.mob-qa-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
}

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

/* ── Stat row (month stats) ────────────────────────────────── */
.mob-stat-row {
  display: flex; gap: 10px;
  padding: 0 14px; margin-bottom: 4px;
}
.mob-stat {
  flex: 1; background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  box-shadow: var(--shadow);
}
.mob-stat-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-bottom: 4px; }
.mob-stat-val { font-size: 28px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.c-orange { color: var(--yellow); }
.c-purple { color: var(--purple); }
.c-green  { color: var(--green);  }
.c-red    { color: var(--red);    }
.c-blue   { color: var(--primary);}

/* ── Card ──────────────────────────────────────────────────── */
.mob-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 14px 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mob-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .5px;
}

/* ── Employee / item row ───────────────────────────────────── */
.mob-emp-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: background .1s;
  cursor: pointer;
}
.mob-emp-row:last-child { border-bottom: none; }
.mob-emp-row:active { background: var(--surface2); }
/* Non-clickable row variant */
.mob-emp-row.no-tap { cursor: default; }
.mob-emp-row.no-tap:active { background: transparent; }
.mob-emp-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0;
}
.mob-emp-name  { font-size: 13.5px; font-weight: 600; }
.mob-emp-meta  { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.mob-emp-right { margin-left: auto; display: flex; align-items: center; }
.mob-emp-badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.badge-late    { background: var(--red-lt); color: var(--red); }
.badge-green   { background: var(--green-lt); color: var(--green); }
.badge-blue    { background: #eef1fd; color: var(--primary); }
.badge-yellow  { background: var(--yellow-lt); color: var(--yellow); }
.badge-purple  { background: #f0ebff; color: var(--purple); }
.badge-gray    { background: var(--surface2); color: var(--muted); }

/* ── Work item row ─────────────────────────────────────────── */
.mob-work-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: background .1s;
  cursor: pointer;
}
.mob-work-row:last-child { border-bottom: none; }
.mob-work-row:active { background: var(--surface2); }
.mob-work-row.no-tap { cursor: default; }
.mob-work-row.no-tap:active { background: transparent; }
.mob-work-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.mob-work-title { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.mob-work-meta  { font-size: 11.5px; color: var(--muted); }
.mob-work-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mob-work-ago   { font-size: 11px; color: var(--muted2); }

/* ── Review card ───────────────────────────────────────────── */
.mob-review-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  margin: 0 14px 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.mob-review-head {
  padding: 13px 14px 10px;
  background: var(--surface);
}
.mob-review-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.mob-review-meta  { font-size: 11.5px; color: var(--muted); }
.mob-review-body  { padding: 13px 14px 14px; background: var(--surface); border-top: 1px solid var(--border); }
.mob-review-note  { font-size: 12.5px; color: var(--text2); margin-bottom: 10px; line-height: 1.5; }
.mob-review-imgs  { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mob-review-img   { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in; }
.mob-review-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mob-review-actions .mob-btn { flex: 1; justify-content: center; min-height: 44px; }

/* ── Change request notice ─────────────────────────────────── */
.mob-change-notice {
  background: var(--yellow-lt);
  border: 1px solid rgba(230,119,0,.2);
  border-radius: 9px; padding: 11px 13px;
  font-size: 12.5px; color: var(--yellow);
  margin: 0 14px 10px; font-weight: 500;
}
.mob-change-notice strong { display: block; margin-bottom: 4px; }

/* ── Forms ─────────────────────────────────────────────────── */
.mob-form { padding: 0 14px 14px; }
.mob-field { margin-bottom: 14px; }
.mob-field label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text2); text-transform: uppercase;
  letter-spacing: .4px; margin-bottom: 6px;
}
.mob-field input,
.mob-field select,
.mob-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px; /* prevent iOS zoom */
  font-family: 'Inter', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.mob-field input:focus,
.mob-field select:focus,
.mob-field textarea:focus { border-color: var(--primary); background: var(--surface); }
.mob-field textarea { resize: none; min-height: 90px; line-height: 1.5; }
.mob-field-hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

/* ── Upload area ───────────────────────────────────────────── */
.mob-upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px; padding: 24px 16px;
  text-align: center; cursor: pointer;
  background: var(--surface2);
  margin-bottom: 4px;
}
.mob-upload-area:active { border-color: var(--primary); background: #eef1fd; }
.mob-upload-icon { font-size: 32px; margin-bottom: 8px; }
.mob-upload-text { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.mob-upload-sub  { font-size: 12px; color: var(--muted); }

/* ── Attach previews ───────────────────────────────────────── */
.mob-attach-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0 0; }
.mob-attach-item { position: relative; }
.mob-attach-thumb { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.mob-attach-icon  { width: 68px; height: 68px; background: var(--surface2); border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.mob-attach-name  { font-size: 10px; color: var(--muted); margin-top: 3px; max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.mob-attach-rm    { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; background: var(--red); color: #fff; border: none; border-radius: 50%; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ── Buttons ───────────────────────────────────────────────── */
.mob-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 18px; border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .12s; white-space: nowrap;
  text-decoration: none; min-height: 48px;
}
.mob-btn:active { transform: scale(.97); }
.mob-btn svg { width: 16px; height: 16px; }
.mob-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(59,91,219,.28); }
.mob-btn-primary:active { background: var(--primary-dk); }
.mob-btn-success { background: var(--green-lt); color: var(--green); border: 1.5px solid rgba(12,166,120,.2); }
.mob-btn-warning { background: var(--yellow-lt); color: var(--yellow); border: 1.5px solid rgba(230,119,0,.2); }
.mob-btn-ghost   { background: var(--surface2); color: var(--text2); border: 1.5px solid var(--border); }
.mob-btn-danger  { background: var(--red-lt); color: var(--red); border: 1.5px solid rgba(224,49,49,.2); }
.mob-btn-full    { width: 100%; justify-content: center; }
.mob-btn-lg      { font-size: 15px; min-height: 54px; border-radius: 12px; }

/* ── Fixed submit CTA ──────────────────────────────────────── */
.mob-fixed-cta {
  position: fixed;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 10px);
  left: 14px; right: 14px;
  z-index: 100;
}
.mob-fixed-cta .mob-btn {
  box-shadow: 0 8px 28px rgba(59,91,219,.35);
  font-size: 15px; min-height: 54px;
  border-radius: 14px;
}

/* ── Flash ─────────────────────────────────────────────────── */
.mob-flash {
  padding: 10px 14px; border-radius: 9px;
  font-size: 13px; font-weight: 500; margin: 8px 14px 0;
}
.mob-flash-success { background: var(--green-lt); color: var(--green); border: 1px solid rgba(12,166,120,.2); }
.mob-flash-error   { background: var(--red-lt);   color: var(--red);   border: 1px solid rgba(224,49,49,.2); }

/* ── Bottom tab bar ────────────────────────────────────────── */
.mob-tabs {
  display: flex;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--surface);
  border-top: 1.5px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  height: var(--tab-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  /* Height grows with safe area */
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}
.mob-tab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; color: var(--muted);
  font-size: 9.5px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  border: none; background: none;
  transition: color .15s;
  position: relative;
  min-width: 0; /* allow shrinking */
  padding: 0 2px;
}
.mob-tab svg { width: 19px; height: 19px; flex-shrink: 0; }
.mob-tab.active       { color: var(--primary); }
.mob-tab.active svg   { stroke: var(--primary); }
/* Submit tab — same size as others, but primary color accent when active
   User preference: normal tab size, NOT raised pill */
.mob-tab-hero {
  /* no special size/bg — behaves like a normal tab */
}
/* Submit tab gets primary color treatment when active (not raised) */
.mob-tab-hero.active {
  color: var(--primary);
}
.mob-tab-hero.active svg { stroke: var(--primary); }
/* Small top indicator line on submit tab to distinguish it */
.mob-tab-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2.5px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity .15s;
}
.mob-tab-hero.active::before { opacity: 1; }
/* Badge on tab */
.mob-tab-num {
  position: absolute; top: 4px; right: calc(50% - 16px);
  background: var(--red); color: #fff;
  font-size: 8.5px; font-weight: 700;
  padding: 1px 4px; border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  min-width: 14px; text-align: center;
  line-height: 1.3;
}

/* ── Drawer overlay ────────────────────────────────────────── */
.mob-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 400;
  backdrop-filter: blur(2px);
}
.mob-overlay.open { display: block; }

/* ── Bottom drawer (More menu) ─────────────────────────────── */
.mob-drawer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 14px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: 80dvh; overflow-y: auto;
  box-shadow: 0 -12px 40px rgba(0,0,0,.15);
}
.mob-drawer.open { transform: translateY(0); }
.mob-drawer-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 18px; }
.mob-drawer-section {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
  padding: 0 20px 8px;
}
.mob-drawer-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; color: var(--text); text-decoration: none;
  font-size: 14.5px; font-weight: 500; transition: background .1s;
  border: none; background: none; cursor: pointer;
  width: 100%; text-align: left;
}
.mob-drawer-link:active { background: var(--surface2); }
.mob-drawer-link svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; flex-shrink: 0; }
.mob-drawer-hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.mob-drawer-link.danger { color: var(--red); }
.mob-drawer-link.danger svg { stroke: var(--red); }

/* ── Lightbox ──────────────────────────────────────────────── */
#lbOverlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92); z-index: 9999;
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
#lbOverlay.open { display: flex; }
#lbOverlay img { max-width: 94vw; max-height: 88dvh; border-radius: 10px; }

/* ── Page header (mobile pages) ────────────────────────────── */
.mob-page-header {
  padding: 12px 14px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  /* Not sticky — sticky headers cause content to render behind them */
}
.mob-page-title { font-size: 17px; font-weight: 800; letter-spacing: -.4px; }
.mob-page-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Live link badge ───────────────────────────────────────── */
.live-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--green-lt); color: var(--green);
  font-size: 11.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
  text-decoration: none;
}
.live-badge::before { content: '●'; font-size: 7px; }

/* ── Empty state ───────────────────────────────────────────── */
.mob-empty {
  text-align: center; padding: 48px 24px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center;
}
.mob-empty-icon  { font-size: 44px; margin-bottom: 14px; }
.mob-empty-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.mob-empty-sub   { font-size: 13.5px; color: var(--muted); line-height: 1.6; max-width: 280px; margin-bottom: 18px; }

/* ── Bottom safe padding ───────────────────────────────────── */
.mob-safe-bottom { height: calc(env(safe-area-inset-bottom, 0px) + 10px); }

/* ── Login page ────────────────────────────────────────────── */
.mob-login-wrap {
  min-height: 100dvh;
  background: linear-gradient(160deg, #1e3a8a 0%, #3b5bdb 50%, #eef1fd 100%);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 0;
}
.mob-login-card {
  background: #fff;
  border-radius: 0 0 28px 28px;
  padding: 48px 22px 32px;
  width: 100%; max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.mob-login-logo {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  border-radius: 16px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 8px 24px rgba(59,91,219,.25);
}
.mob-login-title { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 3px; }
.mob-login-sub   { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 28px; }
.mob-login-error { background: var(--red-lt); color: var(--red); border-radius: 9px; padding: 10px 14px; font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.mob-login-field { margin-bottom: 14px; }
.mob-login-field label { display: block; font-size: 11px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.mob-login-field input { width: 100%; background: var(--surface2); border: 1.5px solid var(--border); border-radius: 10px; padding: 13px 14px; font-size: 16px; color: var(--text); outline: none; transition: border .15s; -webkit-appearance: none; }
.mob-login-field input:focus { border-color: var(--primary); background: #fff; }
.mob-login-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.mob-login-btn-mobile  { background: var(--primary); color: #fff; border: none; border-radius: 13px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: 'Inter', sans-serif; min-height: 52px; box-shadow: 0 4px 16px rgba(59,91,219,.3); }
.mob-login-btn-desktop { background: var(--surface2); color: var(--text2); border: 1.5px solid var(--border); border-radius: 13px; padding: 12px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: 'Inter', sans-serif; min-height: 48px; }
.mob-login-divider { text-align: center; font-size: 11px; color: var(--muted); }
.mob-login-hint   { text-align: center; font-size: 11px; color: var(--muted); margin-top: 12px; }

/* ═══════════════════════════════════════════════════════════════
   v2 Bug Fixes — Tab bar, hero tab, drawer, search
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero tab — raised pill style (like HRMS2 reference) ──────*/
.mob-tab-hero {
  position: relative;
}
.mob-tab-hero .mob-tab-label {
  /* keep label but hero identity is in the icon container */
}
/* Raised circle background on the icon */
.mob-tab-hero svg {
  background: var(--primary);
  padding: 9px;
  border-radius: 50%;
  width: 42px !important;
  height: 42px !important;
  stroke: #fff !important;
  box-shadow: 0 4px 14px rgba(59,91,219,.35);
  margin-top: -14px; /* lifts above bar */
  transition: transform .12s, box-shadow .12s;
}
.mob-tab-hero:active svg {
  transform: scale(.93);
  box-shadow: 0 2px 8px rgba(59,91,219,.25);
}
/* When active, hero icon gets a deeper shade */
.mob-tab-hero.active svg {
  background: var(--primary-dk);
}
/* Hero tab label colour always primary */
.mob-tab-hero { color: var(--primary); }
.mob-tab-hero .mob-tab-label { color: var(--primary); font-weight: 700; }
/* Remove the top-line indicator since we have the raised pill */
.mob-tab-hero::before { display: none; }

/* ── Tab label span ──────────────────────────────────────────── */
.mob-tab-label {
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}
.mob-tab.active .mob-tab-label { font-weight: 700; }

/* ── Mobile search bar ───────────────────────────────────────── */
.mob-search-wrap {
  padding: 10px 14px 6px;
}
.mob-search {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238892b0' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px;
}
.mob-search:focus { border-color: var(--primary); }

/* ── Filter pill row ─────────────────────────────────────────── */
.mob-filter-row {
  display: flex; gap: 6px;
  padding: 6px 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mob-filter-row::-webkit-scrollbar { display: none; }
.mob-filter-pill {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: all .12s;
}
.mob-filter-pill.active,
.mob-filter-pill:active {
  background: var(--primary-lt);
  color: var(--primary);
  border-color: var(--primary);
}

/* ── Tappable row indicator ──────────────────────────────────── */
/* Ensure all <a> rows look obviously tappable */
a.mob-emp-row::after,
a.mob-work-row::after {
  content: '›';
  color: var(--muted2);
  font-size: 18px;
  margin-left: auto;
  flex-shrink: 0;
}
