/* Instant Event Staffing — app design system.
   Tokens are copied verbatim from the marketing site's src/styles.css (Lovable build);
   that file is the source of truth. Component classes below are the app's own
   vocabulary (kept from the previous sheets) redrawn on these tokens.
   NO universal margin/padding reset: it beats dialog{margin:auto} and pins <dialog> top-left. */

/* ---------- 1. Tokens (site) ---------- */
:root {
  --radius: 0.375rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.255 0.012 260); /* #20242B */
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.255 0.012 260);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.255 0.012 260);
  --primary: oklch(0.53 0.22 266); /* #284CE8 */
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.96 0.02 272); /* #EEF2FF */
  --secondary-foreground: oklch(0.255 0.012 260);
  --muted: oklch(0.965 0.006 265);
  --muted-foreground: oklch(0.47 0.015 260);
  --accent: oklch(0.96 0.02 272);
  --accent-foreground: oklch(0.45 0.2 266);
  --destructive: oklch(0.55 0.22 27);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.915 0.01 265);
  --input: oklch(0.86 0.012 265);
  --ring: oklch(0.53 0.22 266);
  --ink: oklch(0.255 0.012 260);
  --ink-foreground: oklch(0.98 0.004 265);
  --pale: oklch(0.96 0.02 272);
  --go: oklch(0.53 0.14 150); /* #15803D */
  --go-foreground: oklch(1 0 0);
  /* App additions, derived */
  --warn: oklch(0.75 0.15 75);
  --warn-foreground: oklch(0.35 0.08 70);
  --warn-soft: oklch(0.97 0.04 85);
  --go-soft: oklch(0.96 0.05 150);
  --danger-soft: oklch(0.96 0.03 27);
  --app-bg: oklch(0.985 0.004 265);
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --shadow-card: 0 1px 2px oklch(0 0 0 / .04);
  --shadow-pop: 0 8px 24px oklch(0 0 0 / .10);
}

/* ---------- 2. Base (site) ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--app-bg); color: var(--foreground); font-family: var(--font-sans); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding-left: 1.25rem; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 3. Type ---------- */
.display { font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--primary); }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 700; }
.muted { color: var(--muted-foreground); }
.page-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--foreground); margin: 0; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }

/* ---------- 4. Buttons (site base: rounded-md px-5 py-3 text-sm font-semibold, hover lift) ---------- */
.btn-sp-primary, .btn-sp-outline, .btn-sp-ghost, .btn-sp-danger, .btn-go, .sp-book-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: var(--radius);
  padding: .625rem 1.125rem; font-size: .875rem; font-weight: 600; line-height: 1.25; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: all .2s;
}
.btn-sp-primary:hover, .btn-sp-outline:hover, .btn-sp-ghost:hover, .btn-sp-danger:hover, .btn-go:hover, .sp-book-btn:hover { transform: translateY(-2px); }
.btn-sp-primary { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.btn-sp-primary:hover { background: color-mix(in oklab, var(--primary) 90%, black); color: var(--primary-foreground); }
.btn-go { background: var(--go); color: var(--go-foreground); border-color: var(--go); }
.btn-go:hover { background: color-mix(in oklab, var(--go) 90%, black); color: var(--go-foreground); }
.btn-sp-outline, .sp-book-btn { background: var(--background); color: var(--primary); border-color: var(--primary); }
.btn-sp-outline:hover, .sp-book-btn:hover { background: var(--pale); color: var(--primary); }
.btn-sp-ghost { background: var(--background); color: var(--foreground); border-color: color-mix(in oklab, var(--foreground) 20%, transparent); font-weight: 600; }
.btn-sp-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--background); }
.btn-sp-danger { background: var(--destructive); color: var(--destructive-foreground); border-color: var(--destructive); }
.btn-sp-danger:hover { background: color-mix(in oklab, var(--destructive) 90%, black); color: var(--destructive-foreground); }
.btn-sp-primary:disabled, .btn-sp-ghost:disabled, .btn-sp-outline:disabled, .btn-go:disabled, .btn-sp-danger:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sp-primary:disabled:hover { background: var(--primary); transform: none; }
.btn-sp-ghost:disabled:hover { border-color: color-mix(in oklab, var(--foreground) 20%, transparent); color: var(--foreground); transform: none; }
.btn-go:disabled:hover { background: var(--go); transform: none; }
/* Small action buttons (candidate cards, hiring) */
.btn-action { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: var(--radius); font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all .15s; white-space: nowrap; }
.btn-a-primary { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.btn-a-primary:hover { background: color-mix(in oklab, var(--primary) 90%, black); }
.btn-a-green { background: var(--go); color: var(--go-foreground); border-color: var(--go); }
.btn-a-green:hover { background: color-mix(in oklab, var(--go) 90%, black); }
.btn-a-outline { background: var(--background); color: var(--foreground); border-color: var(--border); }
.btn-a-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-a-red { background: var(--background); color: var(--destructive); border-color: color-mix(in oklab, var(--destructive) 40%, transparent); }
.btn-a-red:hover { background: var(--danger-soft); }

/* ---------- 5. Fields ---------- */
.sp-input, .sp-select, .sp-field input, .sp-field textarea, .sp-field select {
  width: 100%; border: 1px solid var(--input); border-radius: var(--radius); padding: 10px 12px; font-size: 14px;
  color: var(--foreground); background: var(--background); outline: none; transition: border-color .15s, box-shadow .15s;
}
.sp-select, .sp-field select { cursor: pointer; appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.sp-select { width: auto; }
.sp-input:focus, .sp-select:focus, .sp-field input:focus, .sp-field textarea:focus, .sp-field select:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 18%, transparent); }
.sp-input[aria-invalid="true"], .sp-field input[aria-invalid="true"] { border-color: var(--destructive); }
.sp-field { margin-bottom: 14px; }
.sp-field label { font-size: 12px; font-weight: 700; color: var(--muted-foreground); display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.sp-field textarea { min-height: 80px; resize: vertical; }
.pin-digit { width: 52px; height: 60px; border: 2px solid var(--input); border-radius: var(--radius); text-align: center; font-size: 24px; font-weight: 700; color: var(--foreground); transition: border-color .15s; }
.pin-digit:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 18%, transparent); }

/* ---------- 6. Surfaces ---------- */
.card, .sp-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; box-shadow: var(--shadow-card); }
.sp-card-sm { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.sp-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 700; color: var(--foreground); display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.sp-card-body { padding: 20px; }
.shift-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 12px; transition: box-shadow .15s, border-color .15s; }
.shift-card:hover { box-shadow: var(--shadow-pop); border-color: color-mix(in oklab, var(--primary) 40%, var(--border)); }
.shift-card-title { font-size: 15px; font-weight: 700; color: var(--foreground); margin-bottom: 4px; }
.shift-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted-foreground); margin-bottom: 12px; }
.shift-card-meta span { display: flex; align-items: center; gap: 4px; }
.shift-fill-bar { height: 5px; background: var(--muted); border-radius: 3px; margin: 8px 0; }
.shift-fill-inner { height: 100%; background: var(--go); border-radius: 3px; transition: width .3s; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: var(--pale); color: var(--primary); }
.stat-icon.green { background: var(--go-soft); color: var(--go); }
.stat-icon.blue { background: var(--pale); color: var(--primary); }
.stat-icon.amber { background: var(--warn-soft); color: var(--warn-foreground); }
.stat-icon.purple { background: var(--secondary); color: var(--accent-foreground); }
.stat-num { font-size: 24px; font-weight: 800; color: var(--foreground); line-height: 1; letter-spacing: -.02em; }
.stat-label { font-size: 12px; color: var(--muted-foreground); margin-top: 3px; }
.dash-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.dash-stat { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.dash-stat-val { font-size: 21px; font-weight: 800; color: var(--foreground); line-height: 1.1; letter-spacing: -.02em; }
.dash-stat-label { font-size: 12px; color: var(--muted-foreground); font-weight: 500; margin-top: 3px; }
.dash-stat.warn .dash-stat-val { color: var(--destructive); }
.today-ops-card { margin-bottom: 22px; }
.today-ops-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.today-ops-row:last-child { border-bottom: none; }
.today-ops-main { flex: 1; min-width: 200px; }
.today-ops-title { font-size: 14px; font-weight: 700; color: var(--foreground); }
.today-ops-meta { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.today-ops-counts { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }
.today-ops-count { text-align: center; min-width: 56px; }
.today-ops-count .n { font-size: 15px; font-weight: 800; color: var(--foreground); }
.today-ops-count .l { font-size: 10px; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .04em; }
.today-ops-count.na .n { color: var(--destructive); }
/* Shift detail */
.sd-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-foreground); font-size: 13px; margin-bottom: 18px; font-weight: 500; }
.sd-back:hover { color: var(--primary); }
.sd-hero { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sd-hero-left h1 { font-size: 22px; font-weight: 800; color: var(--foreground); margin: 0 0 6px; }
.sd-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.sd-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted-foreground); }
.sd-meta span { display: flex; align-items: center; gap: 5px; }
.sd-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.sd-stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.sd-stat .label { font-size: 11px; font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.sd-stat .value { font-size: 20px; font-weight: 800; color: var(--foreground); letter-spacing: -.02em; }
.sd-stat .sub { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }
.sd-cols { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.sd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sd-side { width: 290px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.sd-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
.sd-card-title { font-size: 14px; font-weight: 700; color: var(--foreground); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.sd-card-title i { color: var(--primary); width: 16px; text-align: center; }
.sd-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sd-row:last-child { border-bottom: none; }
.sd-row .k { color: var(--muted-foreground); }
.sd-row .v { font-weight: 600; color: var(--foreground); }
.pin-box { flex: 1; background: var(--muted); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.pin-box .pin-label { font-size: 10px; font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.pin-box .pin-val { font-size: 28px; font-weight: 900; color: var(--foreground); letter-spacing: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pro-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); position: relative; }
.pro-row:last-child { border-bottom: none; }
.pro-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--primary-foreground); flex-shrink: 0; object-fit: cover; }
.pro-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: var(--pale); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.pro-mini-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.pro-mini-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--pale); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.pro-mini-name { font-size: 12.5px; font-weight: 600; color: var(--foreground); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-mini-meta { font-size: 11px; color: var(--muted-foreground); flex-shrink: 0; }
.pro-actions { flex-shrink: 0; margin-left: 8px; position: relative; }
.pro-actions-btn { background: none; border: none; color: var(--muted-foreground); cursor: pointer; padding: 6px 8px; font-size: 13px; }
.pro-actions-menu { display: none; position: absolute; right: 0; top: 32px; background: var(--popover); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-pop); min-width: 190px; z-index: 20; padding: 6px 0; }
.pro-actions-menu.show { display: block; }
.pro-actions-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; color: var(--foreground); cursor: pointer; }
.pro-actions-menu a:hover { background: var(--muted); }
.pro-actions-menu a.danger { color: var(--destructive); }
.pro-note { font-size: 12px; color: var(--muted-foreground); background: var(--muted); border-radius: var(--radius); padding: 6px 10px; margin-top: 6px; display: flex; align-items: flex-start; gap: 6px; }
.pro-adjust-banner { margin-top: 8px; background: var(--warn-soft); border: 1px solid color-mix(in oklab, var(--warn) 50%, transparent); border-radius: var(--radius); padding: 8px 12px; font-size: 12px; color: var(--warn-foreground); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pro-adjust-banner .btns { display: flex; gap: 6px; }
.pro-adjust-banner button { border: none; border-radius: var(--radius); padding: 4px 10px; font-size: 11px; font-weight: 700; cursor: pointer; }
.fill-track { height: 6px; background: var(--muted); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.fill-bar { height: 100%; border-radius: 4px; transition: width .4s; background: var(--primary); }
.date-chip { display: inline-flex; align-items: center; font-size: 12px; background: var(--muted); padding: 4px 12px; border-radius: 999px; color: var(--foreground); margin: 3px; }
.date-chip.today-chip { background: var(--pale); color: var(--primary); font-weight: 600; }
.roster-tag { display: inline-flex; align-items: center; background: var(--muted); color: var(--foreground); font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--border); }
/* Info modal ("What is this page?") */
.info-trigger { width: 26px; height: 26px; border-radius: 50%; background: var(--pale); color: var(--primary); border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; flex-shrink: 0; transition: .15s; padding: 0; }
.info-trigger:hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); transform: scale(1.08); }
.info-modal-header { color: var(--primary-foreground); background: var(--ink); padding: 24px 28px; border-radius: 10px 10px 0 0; display: flex; align-items: center; gap: 14px; }
.info-modal-header .info-modal-icon { width: 44px; height: 44px; border-radius: 11px; background: color-mix(in oklab, var(--ink-foreground) 18%, transparent); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.info-modal-header h5 { font-size: 18px; font-weight: 800; margin: 0; }
.info-modal-header p { font-size: 12.5px; opacity: .92; margin-top: 4px; }
.info-modal-body { padding: 22px 24px; }
.info-section-card { border-radius: 10px; padding: 14px 15px; margin-bottom: 12px; display: flex; gap: 12px; align-items: flex-start; background: var(--muted); }
.info-section-card:last-child { margin-bottom: 0; }
.info-section-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; background: var(--pale); color: var(--primary); }
.info-section-title { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; color: var(--foreground); }
.info-section-text { font-size: 12.5px; color: var(--muted-foreground); line-height: 1.55; }
.info-section-text strong { color: var(--foreground); }
.info-section-card.blue { background: var(--pale); } .info-section-card.blue .info-section-icon { background: var(--secondary); color: var(--primary); }
.info-section-card.green { background: var(--go-soft); } .info-section-card.green .info-section-icon { background: color-mix(in oklab, var(--go) 18%, white); color: var(--go); }
.info-section-card.amber { background: var(--warn-soft); } .info-section-card.amber .info-section-icon { background: color-mix(in oklab, var(--warn) 30%, white); color: var(--warn-foreground); }
.info-section-card.red { background: var(--danger-soft); } .info-section-card.red .info-section-icon { background: color-mix(in oklab, var(--destructive) 15%, white); color: var(--destructive); }
.info-section-card.purple { background: var(--secondary); } .info-section-card.purple .info-section-icon { background: var(--pale); color: var(--accent-foreground); }
/* Hiring / professionals (placeholder screens keep their classes) */
.hiring-stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; flex: 1; min-width: 130px; text-align: center; }
.hiring-stat-val { font-size: 28px; font-weight: 900; line-height: 1; }
.hiring-stat-label { font-size: 12px; color: var(--muted-foreground); margin-top: 4px; font-weight: 500; }
.hiring-layout { display: flex; gap: 20px; align-items: flex-start; margin-top: 20px; }
.hiring-jobs { width: 320px; flex-shrink: 0; }
.hiring-pipeline { flex: 1; min-width: 0; }
.job-card { background: var(--card); border: 2px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 10px; cursor: pointer; transition: all .15s; display: block; }
.job-card:hover, .job-card.active { border-color: var(--primary); }
.job-card.active { background: var(--pale); }
.job-card.active .job-card-title { color: var(--primary); }
.job-card-title { font-size: 14px; font-weight: 700; color: var(--foreground); margin-bottom: 3px; }
.job-card-sub { font-size: 12px; color: var(--muted-foreground); }
.job-progress { margin-top: 10px; display: flex; gap: 4px; }
.jp-col { flex: 1; display: flex; flex-direction: column; gap: 2px; align-items: center; }
.jp-bar { width: 100%; border-radius: 2px; transition: height .3s; background: var(--primary); }
.jp-num { font-size: 10px; font-weight: 700; color: var(--muted-foreground); }
.jp-label { font-size: 9px; color: var(--muted-foreground); text-align: center; }
.pipeline-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.stage-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-tab { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); transition: all .15s; background: var(--card); }
.stage-tab.active { background: var(--pale); color: var(--primary); border-color: var(--primary); }
.cand-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 10px; transition: box-shadow .15s; }
.cand-card:hover { box-shadow: var(--shadow-pop); }
.cand-avatar-wrap { position: relative; flex-shrink: 0; }
.cand-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cand-avatar-placeholder { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: var(--primary-foreground); flex-shrink: 0; }
.match-ring { position: absolute; bottom: -4px; right: -4px; background: var(--primary); color: var(--primary-foreground); font-size: 9px; font-weight: 800; border-radius: 10px; padding: 1px 5px; border: 2px solid var(--background); }
.cand-name { font-size: 15px; font-weight: 700; color: var(--foreground); }
.cand-meta { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 8px; }
.cand-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tier-badge { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px; margin-left: 4px; background: var(--pale); color: var(--primary); }
.notes-box { background: var(--warn-soft); border-radius: var(--radius); padding: 8px 10px; font-size: 12px; color: var(--warn-foreground); margin-top: 8px; display: flex; gap: 6px; align-items: flex-start; }
.empty-pipeline { text-align: center; padding: 50px 20px; color: var(--muted-foreground); }
.hire-toast { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 99999; padding: 11px 20px; border-radius: 10px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-pop); display: none; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink-foreground); background: var(--ink); }
.salary-display { font-size: 13px; font-weight: 700; color: var(--foreground); }
.pros-layout { display: flex; gap: 20px; align-items: flex-start; }
.pros-sidebar { width: 240px; flex-shrink: 0; }
.pros-main { flex: 1; min-width: 0; }
.sidebar-menu-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: var(--radius); cursor: pointer; font-size: 14px; color: var(--foreground); font-weight: 500; transition: background .12s; }
.sidebar-menu-item:hover { background: var(--muted); }
.sidebar-menu-item.active { background: var(--pale); color: var(--primary); font-weight: 600; }
.sidebar-count { font-size: 13px; color: var(--muted-foreground); font-weight: 400; }
.sidebar-menu-item.active .sidebar-count { color: var(--primary); }
.sidebar-section-title { font-size: 11px; font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .08em; padding: 14px 14px 6px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-new-btn { font-size: 12px; color: var(--primary); font-weight: 600; cursor: pointer; }

/* ---------- 7. Chips and status ---------- */
.chip, .status-pill, .sd-badge, .badge-paid, .badge-pending, .badge-overdue, .badge-active, .badge-open, .badge-cancelled, .badge-applied, .badge-clocked_in, .badge-clocked_out, .badge-booked, .badge-requested, .badge-awaiting_payment, .badge-confirmed, .badge-completed, .badge-waitlisted, .badge-waitlist, .badge-withdrawn, .badge-declined, .badge-no_show, .badge-discarded, .badge-draft, .badge-filled, .badge-released, .badge-not_selected, .badge-within_48h, .badge-muted {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.5;
}
/* Status colour map (plan-binding): go = open/booked/paid/active; warn = requested/awaiting payment/within 48h/pending;
   muted = waitlisted/draft/completed/filled; danger = cancelled/no-show/declined/discarded/overdue; primary = informational. */
.chip-primary { background: var(--pale); color: var(--primary); }
.status-pill.open,
.badge-open,
.status-pill.booked,
.badge-booked,
.status-pill.paid,
.badge-paid,
.status-pill.active,
.badge-active,
.status-pill.confirmed,
.badge-confirmed,
.status-pill.clocked_in,
.badge-clocked_in,
.status-pill.clocked_out,
.badge-clocked_out,
.fs-chip.ok,
.chip-go { background: var(--go-soft); color: var(--go); }
.status-pill.requested,
.badge-requested,
.status-pill.applied,
.badge-applied,
.status-pill.awaiting_payment,
.badge-awaiting_payment,
.status-pill.within_48h,
.badge-within_48h,
.status-pill.pending,
.badge-pending,
.fs-chip.req,
.fs-chip.soon,
.chip-warn { background: var(--warn-soft); color: var(--warn-foreground); }
.status-pill.inactive,
.status-pill.incomplete,
.status-pill.waitlisted,
.badge-waitlisted,
.status-pill.waitlist,
.badge-waitlist,
.status-pill.draft,
.badge-draft,
.status-pill.completed,
.badge-completed,
.status-pill.muted,
.badge-muted,
.status-pill.filled,
.badge-filled,
.status-pill.withdrawn,
.badge-withdrawn,
.status-pill.released,
.badge-released,
.status-pill.not_selected,
.badge-not_selected,
.fs-chip.wait,
.chip-muted { background: var(--muted); color: var(--muted-foreground); }
.status-pill.deactivated,
.status-pill.suspended,
.status-pill.cancelled,
.badge-cancelled,
.status-pill.no_show,
.badge-no_show,
.status-pill.declined,
.badge-declined,
.status-pill.discarded,
.badge-discarded,
.status-pill.overdue,
.badge-overdue,
.fs-chip.no_show,
.chip-danger { background: var(--danger-soft); color: var(--destructive); }
.sp-badge { display: inline-flex; align-items: center; justify-content: center; background: var(--destructive); color: var(--destructive-foreground); font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 5px; min-width: 18px; line-height: 1.4; }
.sp-new-badge { background: var(--go); color: var(--go-foreground); font-size: 10px; font-weight: 700; border-radius: 3px; padding: 1px 5px; text-transform: uppercase; letter-spacing: .05em; }
.tab-red-badge { background: var(--destructive); color: var(--destructive-foreground); font-size: 11px; border-radius: 10px; padding: 1px 6px; font-weight: 700; }
.star-rating { color: var(--warn); font-size: 12px; }

/* ---------- 8. Tables, tabs, filters, empty ---------- */
.sp-table { width: 100%; border-collapse: collapse; }
.sp-table th { font-size: 11.5px; font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .06em; padding: 10px 16px; border-bottom: 1px solid var(--border); text-align: left; background: var(--muted); }
.sp-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--foreground); vertical-align: middle; }
.sp-table tr:last-child td { border-bottom: none; }
.sp-table tbody tr:hover td { background: var(--app-bg); }
.tab-bar { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; gap: 0; }
.tab-item { padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--muted-foreground); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; display: flex; align-items: center; gap: 6px; transition: color .15s; }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-item:hover { color: var(--foreground); }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-search { position: relative; flex: 1; min-width: 180px; }
.filter-search input { padding-left: 36px; }
.filter-search .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); font-size: 14px; }
.empty-state { text-align: center; padding: 56px 24px; color: var(--muted-foreground); }
.empty-state-icon { font-size: 44px; margin-bottom: 14px; color: color-mix(in oklab, var(--muted-foreground) 45%, transparent); }
.empty-state h3 { font-size: 15px; font-weight: 700; color: var(--foreground); margin-bottom: 5px; }
.empty-state p { font-size: 13px; color: var(--muted-foreground); max-width: 360px; margin: 0 auto; }
.alert { border-radius: var(--radius); padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; border: 1px solid var(--border); background: var(--muted); }
.alert-error { background: var(--danger-soft); border-color: color-mix(in oklab, var(--destructive) 35%, transparent); color: var(--destructive); }
.alert-success { background: color-mix(in oklab, var(--go) 12%, var(--card)); border-color: color-mix(in oklab, var(--go) 40%, transparent); color: var(--go); }
/* Email confirmation (spec 2026-10-06 §5.7): informational blue; urgent when a money action was refused. */
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid color-mix(in oklab, var(--primary) 35%, transparent); background: var(--pale); color: var(--foreground); font-size: 14px; }
.verify-banner--urgent { border-color: var(--destructive); border-left-width: 4px; }
.verify-banner-sent { color: var(--go); font-weight: 600; }

/* Admin shell (spec 2026-10-07 §4.1): left menu + content. Phone width: the menu collapses behind the hamburger. */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.admin-menu { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--border); background: var(--card); }
.admin-menu a { display: block; padding: 9px 12px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.admin-menu a:hover { color: var(--primary); background: var(--pale); }
.admin-menu a.active { color: var(--primary); background: var(--pale); font-weight: 600; }
.admin-main { min-width: 0; }
.admin-table th, .admin-table td { padding: 9px 12px; font-size: 13.5px; }
.admin-table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.filter-row .sp-select { max-width: 100%; min-width: 0; }
@media (max-width: 760px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-menu { display: none; border-right: 0; border-bottom: 1px solid var(--border); }
  .admin-menu.show { display: flex; }
}

/* ---------- 9. Dialogs ---------- */
.dialog { border: none; border-radius: 14px; padding: 0; margin: auto; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 50px oklch(0 0 0 / .25); background: var(--card); color: var(--foreground); }
.dialog::backdrop { background: color-mix(in oklab, var(--ink) 45%, transparent); }
.dialog-h { padding: 18px 22px 6px; } .dialog-h h2 { margin: 0; font-size: 18px; font-weight: 800; }
.dialog-b { padding: 6px 22px; }
.dialog-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 18px; flex-wrap: wrap; align-items: center; }
@media (max-width: 640px) { .dialog { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 14px 14px 0 0; } }
.modal-overlay { position: fixed; inset: 0; background: color-mix(in oklab, var(--ink) 45%, transparent); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.modal-box { background: var(--card); border-radius: 14px; width: 440px; max-width: 100%; overflow: hidden; box-shadow: 0 20px 50px oklch(0 0 0 / .25); }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- 10. App shell ---------- */
.sp-topnav { background: color-mix(in oklab, var(--background) 95%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 200; }
.sp-topnav-inner { display: flex; align-items: center; height: 64px; padding: 0 24px; gap: 0; max-width: 84rem; margin: 0 auto; }
.sp-logo { display: flex; align-items: center; gap: 10px; margin-right: 28px; flex-shrink: 0; }
.sp-logo img { height: 32px; width: auto; }
.role-badge, .worker-badge { background: var(--pale); color: var(--primary); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .08em; }
.sp-nav-links { display: flex; align-items: center; flex: 1; overflow-x: auto; scrollbar-width: none; gap: 2px; }
.sp-nav-links::-webkit-scrollbar { display: none; }
.sp-nav-link { display: flex; align-items: center; height: 64px; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; border-bottom: 2px solid transparent; gap: 6px; transition: color .15s; }
.sp-nav-link:hover { color: var(--primary); }
.sp-nav-link.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.sp-nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: 8px; }
.sp-bell-trigger { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--background); color: var(--muted-foreground); font-size: 14px; flex-shrink: 0; transition: border-color .15s, color .15s; }
.sp-bell-trigger:hover { border-color: var(--primary); color: var(--primary); }
.sp-bell-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--destructive); color: var(--destructive-foreground); font-size: 10.5px; font-weight: 700; border-radius: 9px; display: grid; place-items: center; border: 2px solid var(--background); line-height: 1; }
.sp-book-btn { padding: .5rem 1rem; font-size: 13px; }
/* Details-based menu (no Bootstrap) */
.sp-menu { position: relative; }
.sp-menu > summary { list-style: none; }
.sp-menu > summary::-webkit-details-marker { display: none; }
.sp-company-trigger, .sp-user-trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 5px 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--background); transition: border-color .15s; }
.sp-company-trigger:hover, .sp-user-trigger:hover { border-color: var(--primary); }
.sp-company-icon, .sp-user-avatar { width: 28px; height: 28px; background: var(--primary); color: var(--primary-foreground); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.sp-company-name, .sp-user-name { font-size: 13px; font-weight: 600; color: var(--foreground); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--popover); border: 1px solid var(--border); box-shadow: var(--shadow-pop); border-radius: 10px; padding: 6px 0; z-index: 300; list-style: none; margin: 0; }
.sp-dropdown-menu .dropdown-item { font-size: 13.5px; padding: 9px 16px; color: var(--foreground); display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; text-align: left; }
.sp-dropdown-menu .dropdown-item:hover { background: var(--muted); color: var(--primary); }
.sp-dropdown-menu .dropdown-item.text-danger { color: var(--destructive); }
.sp-dropdown-menu .dropdown-item.text-danger:hover { background: var(--danger-soft); color: var(--destructive); }
.sp-dropdown-divider { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.sp-dropdown-label { font-size: 12px; color: var(--muted-foreground); padding: 6px 16px; font-weight: 500; }
.sp-main { min-height: calc(100vh - 64px); }
.sp-content, .app-content { padding: 28px 40px; max-width: 84rem; margin: 0 auto; }
code, pre { overflow-wrap: anywhere; }   /* long paths in the placeholder card must wrap on a phone */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--background); border-top: 1px solid var(--border); z-index: 100; padding: 6px 0 env(safe-area-inset-bottom); }
.mobile-bottom-nav .nav-items { display: flex; justify-content: space-around; }
.mobile-bottom-nav .nav-item { display: flex; flex-direction: column; align-items: center; padding: 6px 12px; font-size: 10px; color: var(--muted-foreground); font-weight: 600; gap: 3px; min-width: 56px; }
.mobile-bottom-nav .nav-item.active { color: var(--primary); }
.mobile-bottom-nav .nav-item i { font-size: 18px; }
.sp-nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); width: 36px; height: 36px; color: var(--muted-foreground); }

/* ---------- 11. Site chrome (auth pages): Header.tsx / Footer reproduced ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--background) 95%, transparent); backdrop-filter: blur(8px); }
.site-header-inner { width: 100%; max-width: 84rem; margin: 0 auto; padding: 0 1.25rem; height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header img { height: 2rem; width: auto; }
.site-nav { display: none; align-items: center; gap: 2rem; font-size: .875rem; font-weight: 500; }
.site-nav a:hover { color: var(--primary); }
.site-cta { display: flex; align-items: center; gap: .75rem; }
.site-cta .btn-go, .site-cta .btn-sp-primary { padding: .75rem 1.25rem; }
.site-main { background: var(--background); min-height: 60vh; }
.site-footer { background: var(--ink); color: var(--ink-foreground); margin-top: 48px; }
.site-footer-inner { width: 100%; max-width: 84rem; margin: 0 auto; padding: 3.5rem 1.25rem 2rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.site-footer-brand .logo-box { display: inline-block; border-radius: var(--radius); background: var(--background); padding: .75rem; }
.site-footer-brand .logo-box img { height: 2rem; width: auto; }
.site-footer-brand p { margin-top: 1.5rem; max-width: 20rem; font-size: .875rem; line-height: 1.6; color: color-mix(in oklab, var(--ink-foreground) 70%, transparent); }
.site-footer-col h2 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: color-mix(in oklab, var(--ink-foreground) 50%, transparent); }
.site-footer-col ul { margin-top: 1rem; padding: 0; list-style: none; display: grid; gap: .75rem; font-size: .875rem; }
.site-footer-col a:hover { color: var(--primary-foreground); text-decoration: underline; }
.site-footer-legal { width: 100%; max-width: 84rem; margin: 0 auto; padding: 1.5rem 1.25rem; border-top: 1px solid color-mix(in oklab, var(--ink-foreground) 10%, transparent); font-size: .75rem; color: color-mix(in oklab, var(--ink-foreground) 60%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.site-footer-legal a:hover { color: var(--ink-foreground); text-decoration: underline; }
/* Auth card */
.auth-wrap { width: 100%; max-width: 84rem; margin: 0 auto; padding: 3rem 1.25rem; }
.auth-card { max-width: 480px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 32px; box-shadow: var(--shadow-card); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted-foreground); font-size: 14px; margin-bottom: 20px; }
.auth-tabs { display: flex; gap: 6px; background: var(--muted); padding: 4px; border-radius: var(--radius); margin-bottom: 20px; }
.auth-tab { flex: 1; border: none; background: transparent; padding: 9px 12px; border-radius: calc(var(--radius) - 2px); font-size: 14px; font-weight: 600; color: var(--muted-foreground); cursor: pointer; }
.auth-tab.active, .auth-tab[aria-selected="true"] { background: var(--card); color: var(--primary); box-shadow: var(--shadow-card); }
.auth-card form .sp-input { margin: 8px 0; }
.auth-card form .btn-sp-primary, .auth-card form .btn-go { width: 100%; margin-top: 8px; padding: .75rem 1.25rem; }
.auth-links { margin-top: 18px; font-size: 13.5px; color: var(--muted-foreground); text-align: center; }
.auth-links a { color: var(--primary); font-weight: 600; }
.auth-choice { display: flex; gap: 18px; align-items: center; margin: 4px 0 16px; border: 0; padding: 0; font-size: 14px; }
.auth-choice legend { font-weight: 600; margin-bottom: 6px; }

/* ---------- 12. Compat (the only Bootstrap utilities the screens use) ---------- */
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.mt-3 { margin-top: 1rem; } .mb-3 { margin-bottom: 1rem; }
.shifts-loading, .my-shifts-loading { opacity: .55; pointer-events: none; animation: sp-pulse 1s ease-in-out infinite; }
@keyframes sp-pulse { 0%, 100% { opacity: .55; } 50% { opacity: .35; } }

/* ---------- 13. Responsive ---------- */
@media (min-width: 1024px) { .site-nav { display: flex; } }
@media (min-width: 768px) {
  .site-header-inner, .site-footer-legal, .auth-wrap { padding-left: 2.5rem; padding-right: 2.5rem; }
  .site-footer-inner { padding-left: 2.5rem; padding-right: 2.5rem; grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (max-width: 1100px) { .dash-stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .sd-side { width: 100%; } }
@media (max-width: 900px) {
  .sp-nav-links { display: none; }
  .sp-nav-links.show { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--background); border-bottom: 1px solid var(--border); z-index: 199; padding: 8px 0; box-shadow: var(--shadow-pop); }
  .sp-nav-links.show .sp-nav-link { height: 48px; border-bottom: none; border-left: 3px solid transparent; padding: 0 20px; }
  .sp-nav-links.show .sp-nav-link.active { border-left-color: var(--primary); background: var(--pale); }
  .sp-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .sp-book-btn, .sp-company-name, .sp-user-name { display: none; }
  .sp-content, .app-content { padding: 16px; }
  .pros-layout, .hiring-layout { flex-direction: column; }
  .pros-sidebar, .hiring-jobs { width: 100%; }
  .mobile-bottom-nav { display: block; }
  body.has-bottom-nav .sp-content { padding-bottom: 80px; }
}
@media (max-width: 768px) { .sd-stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .today-ops-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .today-ops-counts { width: 100%; justify-content: space-between; }
  .sp-logo { margin-right: 12px; }
}
@media (max-width: 600px) {
  .sp-content, .app-content { padding: 12px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .filter-row { gap: 8px; }
}
@media (max-width: 560px) { .dash-stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .dash-stat { padding: 11px 12px; } .dash-stat-val { font-size: 18px; } }
@media (max-width: 480px) { .site-cta .btn-go { display: none; } }
@media print {
  .sp-topnav, .site-header, .site-footer, .mobile-bottom-nav, .no-print { display: none !important; }
  .sp-main { min-height: 0 !important; }
  .sp-content, .app-content { padding: 0 !important; max-width: none !important; margin: 0 !important; }
  body { background: #fff !important; }
}

/* Pro dashboard stat grid + phone-width rules */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card > div { min-width: 0; }
@media (max-width: 960px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-content [style*="width:280px"] { width: 100% !important; }
}
@media (max-width: 480px) {
  .stat-card { padding: 14px; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; }
  .sp-topnav-inner { padding: 0 12px; }
  .sp-logo { margin-right: 8px; }
  .sp-logo img { height: 24px; }
  .sp-nav-right { gap: 6px; margin-left: auto; }
}
@media (max-width: 360px) { .role-badge { display: none; } }
@media (max-width: 600px) {
  .tab-bar { overflow-x: auto; scrollbar-width: none; border-bottom: 0; box-shadow: inset 0 -2px var(--border); }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-item { flex-shrink: 0; white-space: nowrap; padding: 10px 14px; margin-bottom: 0; }
}

/* Register tab active state, driven by which form is showing */
.auth-card:has(#reg-business:not([hidden])) .auth-tab:first-child,
.auth-card:has(#reg-worker:not([hidden])) .auth-tab:nth-child(2) { background: var(--card); color: var(--primary); box-shadow: var(--shadow-card); }

/* Skip link visible on focus */
.sr-only:focus { position: static; width: auto; height: auto; clip: auto; margin: 0; padding: .75rem; }
