:root {
  --navy-950: #081321;
  --navy-900: #0b172a;
  --navy-800: #12233a;
  --navy-700: #1b3552;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --orange-50: #fff7ed;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --purple-600: #7c3aed;
  --purple-100: #ede9fe;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 5px rgba(15, 23, 42, .04);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, .08);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy-900);
  background: #f4f7fa;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #f4f7fa; color: var(--navy-900); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
.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; }

/* Shell */
.topbar {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: 76px;
  background: rgba(11, 23, 42, .97);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}
.topbar-inner { position: relative; width: min(1440px, calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--orange-500); background: rgba(249, 115, 22, .14); border: 1px solid rgba(249, 115, 22, .3); border-radius: 13px; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { margin-top: 3px; font-size: 16px; letter-spacing: -.02em; }
.brand-eyebrow { color: var(--slate-400); font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.topbar-nav { display: flex; align-self: stretch; gap: 4px; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--slate-400); font-size: 13px; font-weight: 650; text-decoration: none; transition: color .2s ease; }
.nav-link svg { width: 19px; height: 19px; }
.nav-link:hover, .nav-link.is-active { color: var(--white); }
.nav-link.is-active::after { position: absolute; right: 14px; bottom: 0; left: 14px; height: 3px; content: ""; background: var(--orange-500); border-radius: 3px 3px 0 0; }
.mobile-menu-button { display: none; width: 36px; height: 36px; padding: 0; place-items: center; color: var(--slate-300); background: transparent; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; }
.mobile-menu-button svg { width: 20px; height: 20px; }
.mobile-menu-button.is-open { color: var(--white); background: rgba(255, 255, 255, .08); }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.topbar-actions form { margin: 0; }
.system-indicator { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: var(--slate-300); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; font-size: 11px; font-weight: 650; }
.system-dot { width: 7px; height: 7px; background: var(--slate-400); border-radius: 50%; box-shadow: 0 0 0 4px rgba(148, 163, 184, .1); }
.system-indicator.is-ready .system-dot { background: var(--emerald-500); box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); }
.system-indicator.is-warning .system-dot { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, .12); }
.admin-chip { display: flex; align-items: center; gap: 8px; padding-right: 4px; color: var(--slate-300); font-size: 12px; font-weight: 650; }
.avatar { display: grid; width: 32px; height: 32px; place-items: center; color: var(--navy-900); background: #fbbf24; border-radius: 10px; font-size: 12px; font-weight: 800; }
.icon-button { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; color: var(--slate-400); background: transparent; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; cursor: pointer; transition: .2s ease; }
.icon-button:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.icon-button svg { width: 18px; height: 18px; }
.page-container { width: min(1320px, calc(100% - 48px)); min-height: calc(100vh - 76px); margin: 0 auto; padding: 38px 0 64px; }
.site-footer { display: flex; width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 20px 0 28px; justify-content: space-between; color: var(--slate-500); border-top: 1px solid var(--slate-200); font-size: 11px; }

/* Shared typography & controls */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; }
.section-kicker { display: block; margin-bottom: 7px; color: var(--orange-600); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.primary-button, .secondary-button, .text-button, .page-button, .copy-button { border: 0; cursor: pointer; }
.primary-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 11px 17px; color: var(--white); background: var(--navy-900); border-radius: 11px; font-size: 13px; font-weight: 750; text-decoration: none; box-shadow: 0 8px 18px rgba(11, 23, 42, .14); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.primary-button:hover { background: var(--navy-800); box-shadow: 0 10px 24px rgba(11, 23, 42, .2); transform: translateY(-1px); }
.primary-button svg, .secondary-button svg { width: 18px; height: 18px; }
.secondary-button { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 9px 13px; color: var(--slate-700); background: var(--white); border: 1px solid var(--slate-200); border-radius: 10px; font-size: 12px; font-weight: 700; transition: .2s ease; }
.secondary-button:hover { color: var(--navy-900); border-color: var(--slate-300); background: var(--slate-50); }
.text-button { padding: 9px 10px; color: var(--slate-600); background: transparent; font-size: 12px; font-weight: 700; }
.text-button:hover { color: var(--orange-600); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(37, 99, 235, .25); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .4; }
.field { display: grid; gap: 7px; }
.field-label { color: var(--slate-700); font-size: 11px; font-weight: 750; }
input, select { width: 100%; min-height: 43px; padding: 10px 12px; color: var(--navy-900); background: var(--white); border: 1px solid var(--slate-200); border-radius: 10px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
input::placeholder { color: var(--slate-400); }
input:hover, select:hover { border-color: var(--slate-300); }
input:focus, select:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(59, 130, 246, .1); }
.content-card { margin-top: 20px; padding: 24px; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.card-header.compact { align-items: center; margin-bottom: 18px; }
.card-header h2 { margin-bottom: 5px; font-size: 19px; }
.card-header p, .card-description { margin-bottom: 0; color: var(--slate-500); font-size: 12px; line-height: 1.6; }
.count-badge { display: grid; min-width: 28px; height: 28px; padding: 0 8px; place-items: center; color: var(--slate-600); background: var(--slate-100); border-radius: 9px; font-size: 11px; font-weight: 800; }
.toast { position: fixed; z-index: 3000; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px)); padding: 12px 16px; color: var(--white); background: var(--navy-900); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; box-shadow: var(--shadow-md); font-size: 12px; font-weight: 650; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--slate-200); border-top-color: var(--orange-500); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Login */
.login-page { overflow-x: hidden; background: var(--white); }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.12fr) minmax(440px, .88fr); }
.login-visual { position: relative; min-height: 680px; overflow: hidden; color: var(--white); background: radial-gradient(circle at 70% 30%, #173b5e 0, var(--navy-900) 42%, #07111e 100%); }
.login-visual::after { position: absolute; right: -120px; bottom: -130px; width: 420px; height: 420px; content: ""; background: radial-gradient(circle, rgba(249, 115, 22, .22), transparent 68%); }
.login-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom right, black, transparent 75%); }
.radar { position: absolute; border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%; }
.radar::before, .radar::after { position: absolute; inset: 16%; content: ""; border: 1px solid rgba(255, 255, 255, .1); border-radius: inherit; }
.radar::after { inset: 34%; }
.radar-one { top: 18%; right: -14%; width: 420px; height: 420px; }
.radar-two { bottom: -12%; left: -10%; width: 300px; height: 300px; opacity: .6; }
.login-visual-content { position: relative; z-index: 1; display: flex; width: min(620px, calc(100% - 96px)); height: 100%; min-height: 100vh; margin: 0 auto; padding: 48px 0; flex-direction: column; }
.brand-light .brand-mark { color: #fb923c; }
.login-message { max-width: 570px; margin: auto 0 44px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 11px; color: #fed7aa; background: rgba(249, 115, 22, .12); border: 1px solid rgba(249, 115, 22, .28); border-radius: 999px; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow-pill span { width: 6px; height: 6px; background: var(--orange-500); border-radius: 50%; box-shadow: 0 0 0 4px rgba(249, 115, 22, .12); }
.login-message h1 { max-width: 560px; margin-bottom: 20px; font-size: clamp(40px, 5.1vw, 68px); line-height: .98; }
.login-message h1:last-child { margin-bottom: 0; }
.login-message p { max-width: 520px; margin-bottom: 0; color: var(--slate-300); font-size: 15px; line-height: 1.75; }
.login-features { display: grid; padding-top: 24px; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .1); }
.login-features div { display: grid; gap: 5px; padding-right: 20px; }
.login-features strong { font-size: 14px; }
.login-features span { color: var(--slate-400); font-size: 10px; }
.login-panel { display: grid; padding: 48px; place-items: center; background: var(--white); }
.login-form-wrap { width: min(390px, 100%); }
.mobile-brand { display: none; }
.login-heading { margin-bottom: 28px; }
.login-heading h2 { margin-bottom: 10px; font-size: 30px; }
.login-heading p { margin-bottom: 0; color: var(--slate-500); font-size: 13px; line-height: 1.6; }
.login-form { display: grid; gap: 18px; }
.input-shell { position: relative; display: flex; align-items: center; }
.input-shell > svg { position: absolute; z-index: 1; left: 13px; width: 18px; height: 18px; color: var(--slate-400); pointer-events: none; }
.input-shell input { min-height: 48px; padding-right: 44px; padding-left: 42px; }
.password-toggle { position: absolute; right: 7px; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; color: var(--slate-400); background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.password-toggle:hover { color: var(--slate-700); background: var(--slate-100); }
.password-toggle svg { width: 18px; height: 18px; }
.login-submit { min-height: 50px; margin-top: 4px; }
.login-submit svg { width: 19px; height: 19px; }
.login-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 22px 0 0; color: var(--slate-500); font-size: 10px; }
.login-note svg { width: 16px; height: 16px; color: var(--emerald-600); }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; border-radius: 10px; font-size: 12px; line-height: 1.5; }
.alert svg { width: 18px; height: 18px; flex: 0 0 auto; }
.alert-error { margin-bottom: 18px; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.alert-warning { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }

/* Dashboard */
.dashboard-hero { position: relative; display: flex; min-height: 230px; padding: 38px 42px; align-items: center; justify-content: space-between; gap: 40px; overflow: hidden; color: var(--white); background: linear-gradient(118deg, var(--navy-900), #132e4b 68%, #183c5e); border-radius: var(--radius-xl); box-shadow: 0 18px 42px rgba(11, 23, 42, .15); }
.dashboard-hero::before { position: absolute; top: -180px; right: 12%; width: 420px; height: 420px; content: ""; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.018); }
.dashboard-hero::after { position: absolute; right: -60px; bottom: -100px; width: 260px; height: 260px; content: ""; background: radial-gradient(circle, rgba(249, 115, 22, .25), transparent 68%); }
.hero-copy, .hero-action { position: relative; z-index: 1; }
.hero-copy h1 { margin-bottom: 14px; font-size: clamp(32px, 4vw, 48px); line-height: 1.04; }
.hero-copy h1 span { color: #fdba74; }
.hero-copy p { max-width: 650px; margin-bottom: 0; color: var(--slate-300); font-size: 13px; line-height: 1.7; }
.create-job-button { min-width: 245px; min-height: 67px; justify-content: flex-start; padding: 12px 15px; background: var(--orange-500); box-shadow: 0 14px 30px rgba(234, 88, 12, .25); }
.create-job-button:hover { background: var(--orange-600); }
.button-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; background: rgba(255, 255, 255, .17); border-radius: 10px; }
.button-icon svg { width: 20px; height: 20px; }
.create-job-button > span:last-child { display: grid; gap: 3px; text-align: left; }
.create-job-button strong { font-size: 13px; }
.create-job-button small { color: #ffedd5; font-size: 9px; font-weight: 550; }
.metric-grid { display: grid; margin-top: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { display: flex; min-height: 122px; padding: 20px; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.metric-icon { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 13px; }
.metric-icon svg { width: 22px; height: 22px; }
.metric-card > div { display: grid; min-width: 0; }
.metric-label { margin-bottom: 4px; color: var(--slate-500); font-size: 10px; font-weight: 700; }
.metric-card strong { font-size: 26px; letter-spacing: -.04em; }
.metric-card small { margin-top: 3px; overflow: hidden; color: var(--slate-400); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.metric-neutral .metric-icon { color: var(--slate-700); background: var(--slate-100); }
.metric-info .metric-icon { color: var(--blue-600); background: var(--blue-100); }
.metric-success .metric-icon { color: var(--emerald-600); background: var(--emerald-100); }
.metric-warning .metric-icon { color: var(--amber-600); background: var(--amber-100); }
.metric-danger .metric-icon { color: var(--red-600); background: var(--red-100); }
.table-tools { display: flex; align-items: center; gap: 10px; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--slate-400); }
.search-box input { width: 220px; min-height: 40px; padding-left: 38px; font-size: 11px; }
.table-wrap { max-width: 100%; overflow-x: auto; }
.jobs-card { min-width: 0; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 14px; color: var(--slate-500); background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table th:first-child { border-left: 1px solid var(--slate-200); border-radius: 10px 0 0 10px; }
.data-table th:last-child { border-right: 1px solid var(--slate-200); border-radius: 0 10px 10px 0; }
.data-table td { padding: 15px 14px; color: var(--slate-700); border-bottom: 1px solid var(--slate-100); font-size: 11px; vertical-align: middle; white-space: nowrap; }
.data-table tbody tr { transition: background .18s ease; }
.data-table tbody tr:hover { background: #fbfcfe; }
.request-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.request-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--orange-600); background: var(--orange-50); border-radius: 10px; }
.request-icon svg { width: 21px; height: 21px; }
.request-link > span:last-child { display: grid; gap: 3px; }
.request-link strong { color: var(--navy-900); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; letter-spacing: .06em; }
.request-link small { color: var(--slate-400); font-size: 9px; }
.status-badge { display: inline-flex; max-width: 220px; min-height: 26px; align-items: center; gap: 7px; padding: 5px 9px; color: var(--slate-600); background: var(--slate-100); border: 1px solid transparent; border-radius: 999px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.status-badge-dot { width: 6px; height: 6px; flex: 0 0 auto; background: currentColor; border-radius: 50%; }
.status-large { min-height: 34px; padding: 7px 12px; font-size: 10px; }
.status-queued { color: var(--slate-600); background: var(--slate-100); }
.status-fetching-index, .status-fetching-details { color: var(--blue-600); background: var(--blue-100); }
.status-spatial-matching { color: var(--purple-600); background: var(--purple-100); }
.status-saving, .status-generating-exports { color: var(--amber-600); background: var(--amber-100); }
.status-completed { color: var(--emerald-600); background: var(--emerald-100); }
.status-completed-with-warnings { color: var(--amber-600); background: var(--amber-100); }
.status-failed { color: var(--red-600); background: var(--red-100); }
.status-expired { color: var(--slate-500); background: var(--slate-100); }
.status-fetching-index .status-badge-dot, .status-fetching-details .status-badge-dot, .status-spatial-matching .status-badge-dot, .status-saving .status-badge-dot, .status-generating-exports .status-badge-dot { animation: pulse 1.6s ease infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.78); } }
.table-progress { width: 150px; }
.progress-meta { display: flex; margin-bottom: 6px; justify-content: space-between; color: var(--slate-500); font-size: 9px; }
.progress-meta strong { color: var(--slate-700); }
.progress-track { width: 100%; height: 5px; overflow: hidden; background: var(--slate-100); border-radius: 99px; }
.progress-track > span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange-500), #fb923c); border-radius: inherit; transition: width .45s ease; }
.reconcile { display: grid; gap: 5px; color: var(--slate-500); font-size: 9px; }
.reconcile span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-success { background: var(--emerald-500); }
.dot-muted { background: var(--slate-300); }
.date-stack { display: grid; gap: 3px; font-style: normal; }
.date-stack strong { color: var(--slate-700); font-size: 10px; font-weight: 650; }
.date-stack small { color: var(--slate-400); font-size: 9px; }
.row-action { display: grid; width: 30px; height: 30px; place-items: center; color: var(--slate-400); border: 1px solid var(--slate-200); border-radius: 9px; text-decoration: none; transition: .2s ease; }
.row-action:hover { color: var(--orange-600); border-color: #fed7aa; background: var(--orange-50); }
.row-action svg { width: 17px; height: 17px; }
.empty-state, .no-search-results { padding: 58px 20px; color: var(--slate-500); text-align: center; }
.empty-illustration { display: block; width: 74px; margin: 0 auto 18px; color: var(--slate-300); }
.empty-illustration svg { width: 100%; }
.empty-state h3 { margin-bottom: 7px; color: var(--navy-900); font-size: 17px; }
.empty-state p { margin-bottom: 0; font-size: 12px; }

/* Job detail */
.breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 22px; color: var(--slate-500); font-size: 11px; }
.breadcrumb a { color: var(--slate-600); font-weight: 650; text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-600); }
.breadcrumb svg { width: 15px; height: 15px; }
.job-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.job-title-group h1 { margin-bottom: 5px; font-size: 36px; }
.job-title-group h1 code { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; }
.job-title-group p { margin-bottom: 0; color: var(--slate-500); font-size: 12px; }
.job-id-row { display: flex; align-items: center; gap: 10px; }
.copy-button { display: grid; width: 33px; height: 33px; padding: 0; place-items: center; color: var(--slate-500); background: var(--white); border: 1px solid var(--slate-200); border-radius: 9px; }
.copy-button:hover { color: var(--orange-600); border-color: #fed7aa; }
.copy-button svg { width: 16px; height: 16px; }
.job-hero-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.job-metrics { margin-top: 24px; }
.pipeline-card { padding-bottom: 21px; }
.progress-percentage { color: var(--orange-600); font-size: 22px; }
.progress-track-large { height: 9px; }
.progress-caption { display: flex; margin-top: 9px; justify-content: space-between; color: var(--slate-500); font-size: 9px; }
.pipeline-steps { position: relative; display: grid; margin: 24px 0 0; padding: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); list-style: none; }
.pipeline-steps::before { position: absolute; z-index: 0; top: 13px; right: 7%; left: 7%; height: 2px; content: ""; background: var(--slate-200); }
.pipeline-steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; color: var(--slate-400); font-size: 9px; font-weight: 700; text-align: center; }
.step-marker { display: grid; width: 28px; height: 28px; place-items: center; color: transparent; background: var(--white); border: 2px solid var(--slate-200); border-radius: 50%; }
.step-marker svg { width: 13px; height: 13px; }
.pipeline-steps li.is-complete { color: var(--emerald-600); }
.pipeline-steps li.is-complete .step-marker { color: var(--white); background: var(--emerald-500); border-color: var(--emerald-500); }
.pipeline-steps li.is-active { color: var(--orange-600); }
.pipeline-steps li.is-active .step-marker { color: transparent; background: var(--orange-500); border-color: var(--orange-500); box-shadow: 0 0 0 5px rgba(249, 115, 22, .13); }
.pipeline-steps li.is-active .step-marker::after { width: 7px; height: 7px; content: ""; background: var(--white); border-radius: 50%; }
.pipeline-steps li.is-failed { color: var(--red-600); }
.pipeline-steps li.is-failed .step-marker { color: var(--white); background: var(--red-600); border-color: var(--red-600); }
.job-message { margin-top: 20px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); gap: 20px; }
.detail-layout > .content-card { min-width: 0; }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--slate-500); font-size: 9px; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.matched { background: var(--emerald-500); }
.legend-dot.unmatched { background: var(--orange-500); }
.legend-dot.failed { background: var(--red-600); }
.legend-dot.total { background: var(--slate-400); }
.legend-dot.low { background: var(--emerald-500); }
.legend-dot.medium { background: var(--amber-500); }
.legend-dot.high { background: var(--red-600); }
#map { position: relative; height: 430px; overflow: hidden; background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: 13px; }
.map-loading { position: absolute; z-index: 400; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--slate-500); background: var(--slate-100); font-size: 11px; }
.leaflet-container { font-family: inherit; }
.leaflet-popup-content-wrapper { border-radius: 11px; box-shadow: var(--shadow-md); }
.leaflet-popup-content { margin: 14px 16px; font-size: 11px; line-height: 1.55; }
.export-card { align-self: stretch; }
.export-list { display: grid; gap: 9px; margin-top: 18px; }
.button-count { display: inline-grid; min-width: 20px; height: 20px; padding: 0 6px; place-items: center; color: var(--slate-600); background: var(--slate-100); border-radius: 7px; font-size: 9px; font-weight: 800; }
.app-modal { width: min(680px, calc(100% - 32px)); max-height: min(720px, calc(100vh - 40px)); padding: 0; color: var(--navy-900); background: var(--white); border: 0; border-radius: 18px; box-shadow: 0 28px 70px rgba(8, 19, 33, .25); }
.app-modal::backdrop { background: rgba(8, 19, 33, .62); backdrop-filter: blur(3px); }
.modal-header { display: flex; padding: 22px 24px 18px; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--slate-200); }
.modal-header h2 { margin-bottom: 5px; font-size: 20px; }
.modal-title-count { color: var(--slate-500); font-size: 13px; font-weight: 650; letter-spacing: 0; white-space: nowrap; }
.modal-header p { margin-bottom: 0; color: var(--slate-500); font-size: 11px; }
.modal-close { display: grid; width: 34px; height: 34px; padding: 0; flex: 0 0 auto; place-items: center; color: var(--slate-500); background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 9px; cursor: pointer; }
.modal-close:hover { color: var(--navy-900); background: var(--slate-100); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { max-height: calc(100vh - 190px); padding: 6px 24px 24px; overflow-y: auto; }
.exports-modal .export-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.export-item { display: grid; padding: 11px; align-items: center; grid-template-columns: 36px minmax(0, 1fr) 19px; gap: 10px; color: var(--slate-700); background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 11px; text-decoration: none; transition: .2s ease; }
.export-item:hover { border-color: #fed7aa; background: var(--orange-50); transform: translateY(-1px); }
.export-icon { display: grid; width: 36px; height: 36px; place-items: center; color: var(--emerald-600); background: var(--emerald-100); border-radius: 9px; }
.export-icon svg { width: 19px; height: 19px; }
.export-item > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.export-item strong { overflow: hidden; color: var(--navy-900); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.export-item small { overflow: hidden; color: var(--slate-400); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.download-icon { width: 18px; height: 18px; color: var(--slate-400); }
.mini-empty { display: grid; min-height: 150px; padding: 24px; place-items: center; align-content: center; gap: 12px; color: var(--slate-400); background: var(--slate-50); border: 1px dashed var(--slate-300); border-radius: 11px; text-align: center; }
.mini-empty p { max-width: 180px; margin: 0; font-size: 10px; line-height: 1.5; }
.filter-toggle { display: none; }
.filters { display: grid; margin-bottom: 18px; padding: 16px; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 11px; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 13px; }
.filters input, .filters select { min-height: 40px; font-size: 10px; }
.filter-actions { display: flex; align-items: flex-end; gap: 4px; }
.filter-actions .primary-button { min-height: 40px; font-size: 10px; white-space: nowrap; }
.filter-information { grid-column: 1 / -1; padding: 10px 12px; color: var(--slate-600); background: var(--white); border: 1px solid var(--slate-200); border-radius: 10px; font-size: 9px; line-height: 1.55; }
.filter-information summary { color: var(--slate-700); font-weight: 750; cursor: pointer; }
.filter-information div { display: grid; margin-top: 9px; gap: 4px; }
.filter-information p { margin: 0; }
.hotspot-table td { font-size: 10px; }
.loading-row td { height: 100px; color: var(--slate-400); text-align: center; }
.match-pill { display: inline-flex; min-height: 23px; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 8px; font-weight: 750; text-transform: capitalize; }
.match-matched, .match-boundary { color: var(--emerald-600); background: var(--emerald-100); }
.match-unmatched, .match-ambiguous-boundary, .match-invalid-admin-feature { color: var(--amber-600); background: var(--amber-100); }
.match-detail-fetch-failed { color: var(--red-600); background: var(--red-100); }
.confidence-pill { display: inline-flex; min-height: 26px; padding: 4px 7px; align-items: center; gap: 6px; border-radius: 8px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.confidence-pill strong { font-size: 8px; }
.confidence-pill small { display: inline-grid; width: 18px; height: 18px; place-items: center; color: currentColor; background: rgba(255, 255, 255, .55); border-radius: 6px; font-size: 8px; }
.confidence-7 { color: var(--blue-600); background: var(--blue-100); }
.confidence-8 { color: var(--amber-600); background: var(--amber-100); }
.confidence-9 { color: var(--red-600); background: var(--red-100); }
.pagination { display: flex; margin-top: 17px; align-items: center; justify-content: space-between; color: var(--slate-500); font-size: 10px; }
.pagination > div { display: flex; align-items: center; gap: 10px; }
.page-button { display: grid; width: 31px; height: 31px; padding: 0; place-items: center; color: var(--slate-600); background: var(--white); border: 1px solid var(--slate-200); border-radius: 9px; }
.page-button:hover:not(:disabled) { color: var(--orange-600); border-color: #fed7aa; }
.page-button svg { width: 17px; height: 17px; }
.event-timeline { position: relative; display: grid; margin: 0; padding: 0 0 0 6px; gap: 0; list-style: none; }
.event-timeline::before { position: absolute; top: 11px; bottom: 18px; left: 12px; width: 1px; content: ""; background: var(--slate-200); }
.event-timeline li { position: relative; display: grid; padding: 0 0 20px 32px; grid-template-columns: 1fr; }
.event-timeline li:last-child { padding-bottom: 0; }
.event-marker { position: absolute; z-index: 1; top: 5px; left: 2px; width: 9px; height: 9px; background: var(--white); border: 2px solid var(--orange-500); border-radius: 50%; box-shadow: 0 0 0 4px var(--orange-50); }
.event-timeline strong { color: var(--navy-900); font-size: 11px; }
.event-timeline p { margin: 4px 0; color: var(--slate-600); font-size: 10px; line-height: 1.5; }
.event-timeline time { color: var(--slate-400); font-size: 8px; }

/* Dedicated map */
.map-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.map-page-heading h1 { margin-bottom: 8px; font-size: 34px; }
.map-page-heading p { margin-bottom: 0; color: var(--slate-500); font-size: 12px; }
.map-code-form { width: min(440px, 100%); }
.map-code-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.map-code-input input { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.map-page-alert { margin-top: 20px; }
.dedicated-map-card { padding: 20px; }
.map-card-header { padding: 2px 4px 0; }
.map-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.map-summary > span { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; color: var(--slate-500); background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 9px; font-size: 9px; }
.map-summary strong { color: var(--navy-900); font-size: 11px; }
#dedicated-map { position: relative; height: min(650px, calc(100vh - 250px)); min-height: 480px; overflow: hidden; background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: 14px; }
.map-footer { display: flex; padding: 14px 4px 0; align-items: center; justify-content: space-between; gap: 20px; }
.text-link { color: var(--orange-600); font-size: 11px; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.map-welcome { display: grid; min-height: 430px; margin-top: 20px; padding: 40px; place-items: center; align-content: center; color: var(--slate-500); background: var(--white); border: 1px dashed var(--slate-300); border-radius: var(--radius-lg); text-align: center; }
.map-welcome-icon { width: 88px; margin-bottom: 18px; color: var(--orange-500); }
.map-welcome-icon svg { width: 100%; }
.map-welcome h2 { margin-bottom: 8px; color: var(--navy-900); font-size: 20px; }
.map-welcome p { max-width: 460px; margin-bottom: 0; font-size: 12px; line-height: 1.65; }
.map-error-state { display: grid; height: 100%; place-items: center; align-content: center; gap: 7px; color: var(--red-600); text-align: center; }
.map-error-state span { color: var(--slate-500); font-size: 11px; }
.hotspot-confirmation { font-family: Inter, "Segoe UI", sans-serif; border-radius: 18px; }

/* Public full-screen map */
.public-map-page { height: 100vh; overflow: hidden; background: var(--slate-100); }
#public-map { position: fixed; z-index: 0; inset: 0; background: var(--slate-100); }
.public-map-toolbar { position: fixed; z-index: 1000; top: 18px; right: 18px; left: 18px; display: grid; min-height: 72px; padding: 10px 12px; align-items: center; grid-template-columns: auto minmax(300px, 440px) auto; gap: 18px; color: var(--white); background: rgba(11, 23, 42, .96); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; box-shadow: 0 18px 45px rgba(8, 19, 33, .24); backdrop-filter: blur(14px); }
.public-map-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.public-map-brand .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
.public-map-brand > span:last-child { display: grid; gap: 2px; }
.public-map-brand small { color: var(--slate-400); font-size: 8px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.public-map-brand strong { font-size: 14px; }
.public-map-search { display: grid; gap: 4px; }
.public-map-search label { color: var(--slate-400); font-size: 8px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.public-map-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.public-map-search input { min-height: 40px; font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; border: 0; border-radius: 9px 0 0 9px; }
.public-map-search button { padding: 0 16px; color: var(--white); background: var(--orange-500); border: 0; border-radius: 0 9px 9px 0; font-size: 11px; font-weight: 800; cursor: pointer; }
.public-map-search button:hover { background: var(--orange-600); }
.public-map-stats { display: grid; justify-self: end; grid-template-columns: repeat(4, max-content); gap: 7px; }
.public-map-stats span { display: inline-flex; min-height: 38px; padding: 7px 9px; align-items: center; gap: 5px; color: var(--slate-300); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 9px; font-size: 8px; }
.public-map-stats strong { color: var(--white); font-size: 11px; }
.map-confidence-7 { color: #0f7a4f; background: #dcf8eb; }
.map-confidence-8 { color: #9a6508; background: #fff2c8; }
.map-confidence-9 { color: var(--red-600); background: var(--red-100); }
.public-map-page .hotspot-detail-popup .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border: 1px solid rgba(148, 163, 184, .24); border-radius: 16px; box-shadow: 0 20px 48px rgba(8, 19, 33, .2); }
.public-map-page .hotspot-detail-popup .leaflet-popup-content { width: auto !important; margin: 0; }
.public-map-page .hotspot-detail-popup .leaflet-popup-close-button { top: 8px; right: 8px; display: grid; width: 27px; height: 27px; padding: 0; place-items: center; color: var(--slate-400); background: rgba(255, 255, 255, .1); border-radius: 8px; font-size: 18px; }
.public-map-page .hotspot-detail-popup .leaflet-popup-close-button:hover { color: var(--white); background: rgba(255, 255, 255, .18); }
.hotspot-popup-card { width: 100%; color: var(--slate-600); background: var(--white); }
.hotspot-popup-header { display: flex; min-height: 68px; padding: 14px 44px 14px 16px; align-items: center; justify-content: space-between; gap: 12px; color: var(--white); background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.hotspot-popup-header > span:first-child { display: grid; gap: 2px; min-width: 0; }
.hotspot-popup-header small, .hotspot-popup-location small { color: var(--slate-400); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hotspot-popup-header > span:first-child strong { overflow: hidden; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.hotspot-confidence { display: inline-flex; padding: 5px 7px; align-items: center; gap: 6px; border-radius: 9px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.hotspot-confidence b { display: grid; width: 20px; height: 20px; place-items: center; background: rgba(255, 255, 255, .65); border-radius: 6px; font-size: 9px; }
.hotspot-confidence.is-7 { color: #0f7a4f; background: #dcf8eb; }
.hotspot-confidence.is-8 { color: #9a6508; background: #fff2c8; }
.hotspot-confidence.is-9 { color: var(--red-600); background: var(--red-100); }
.hotspot-confidence.is-unknown { color: var(--slate-600); background: var(--slate-100); }
.hotspot-popup-location { display: grid; padding: 14px 16px 12px; gap: 3px; border-bottom: 1px solid var(--slate-100); }
.hotspot-popup-location small { color: var(--slate-400); }
.hotspot-popup-location strong { color: var(--navy-900); font-size: 13px; line-height: 1.35; }
.hotspot-popup-location span { color: var(--slate-500); font-size: 9px; line-height: 1.45; }
.hotspot-popup-details { display: grid; margin: 0; padding: 12px 16px; grid-template-columns: 1.4fr 1fr; gap: 10px 14px; }
.hotspot-popup-details div { display: grid; min-width: 0; gap: 2px; }
.hotspot-popup-details .is-wide { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid var(--slate-100); }
.hotspot-popup-details dt { color: var(--slate-400); font-size: 8px; font-weight: 750; }
.hotspot-popup-details dd { margin: 0; overflow-wrap: anywhere; color: var(--navy-900); font-size: 9px; font-weight: 700; line-height: 1.4; }
.hotspot-popup-footer { display: flex; min-height: 42px; padding: 9px 16px; align-items: center; justify-content: space-between; gap: 10px; background: var(--slate-50); border-top: 1px solid var(--slate-100); }
.hotspot-popup-footer code { color: var(--slate-500); font-size: 8px; white-space: nowrap; }
.popup-match-status { display: inline-flex; align-items: center; gap: 5px; color: var(--slate-600); font-size: 8px; font-weight: 750; }
.popup-match-status i { width: 6px; height: 6px; flex: 0 0 auto; background: var(--slate-400); border-radius: 50%; }
.popup-match-status.match-matched i, .popup-match-status.match-boundary i { background: var(--emerald-500); }
.popup-match-status.match-detail-fetch-failed i { background: var(--red-600); }
.popup-match-status.match-unmatched i, .popup-match-status.match-ambiguous-boundary i, .popup-match-status.match-invalid-admin-feature i { background: var(--amber-500); }
.public-map-message { position: fixed; z-index: 900; top: 50%; left: 50%; display: grid; width: min(390px, calc(100% - 32px)); padding: 25px; place-items: center; gap: 8px; color: var(--slate-500); background: rgba(255, 255, 255, .96); border: 1px solid var(--slate-200); border-radius: 16px; box-shadow: var(--shadow-md); text-align: center; transform: translate(-50%, -42%); backdrop-filter: blur(8px); }
.public-map-message strong { color: var(--navy-900); font-size: 16px; }
.public-map-message span:last-child { font-size: 11px; line-height: 1.55; }
.public-map-message.is-error strong { color: var(--red-600); }
.public-map-message code { padding: 2px 5px; color: var(--navy-900); background: var(--slate-100); border-radius: 5px; }
.map-message-icon { width: 54px; margin-bottom: 4px; color: var(--orange-500); }
.map-message-icon svg { width: 100%; }
.public-map-legend { position: fixed; z-index: 900; right: 20px; bottom: 24px; display: flex; padding: 10px 12px; gap: 12px; color: var(--slate-600); background: rgba(255, 255, 255, .94); border: 1px solid var(--slate-200); border-radius: 10px; box-shadow: var(--shadow-sm); font-size: 9px; backdrop-filter: blur(8px); }
.public-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.public-map-page .leaflet-top.leaflet-left { top: 106px; }
.public-map-page .leaflet-control-attribution { font-size: 8px; }

/* Responsive */
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .export-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-name { display: none; }
}

@media (max-width: 820px) {
  .topbar { height: 68px; }
  .topbar-inner, .page-container, .site-footer { width: min(100% - 28px, 1320px); }
  .mobile-menu-button { display: grid; margin-left: auto; }
  .topbar-actions { margin-left: 0; }
  .topbar-nav { position: absolute; top: calc(100% + 10px); right: 0; left: 0; display: none; padding: 8px; align-self: auto; flex-direction: column; gap: 3px; background: var(--navy-900); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; box-shadow: 0 18px 36px rgba(8, 19, 33, .3); }
  .topbar-nav.is-open { display: flex; }
  .nav-link { min-height: 46px; padding: 0 13px; border-radius: 9px; }
  .nav-link:hover, .nav-link.is-active { background: rgba(255, 255, 255, .07); }
  .nav-link.is-active::after { top: 10px; right: auto; bottom: 10px; left: 0; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .page-container { padding-top: 24px; }
  .dashboard-hero { padding: 30px; align-items: flex-start; flex-direction: column; }
  .hero-action, .create-job-button { width: 100%; }
  .card-header { align-items: stretch; flex-direction: column; }
  .table-tools, .search-box, .search-box input { width: 100%; }
  .job-hero { align-items: flex-start; flex-direction: column; }
  .job-hero-actions { width: 100%; justify-content: space-between; }
  .pipeline-steps { overflow-x: auto; grid-template-columns: repeat(7, 105px); justify-content: start; padding: 5px; }
  .pipeline-steps::before { display: none; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-shell { display: block; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 30px 22px; }
  .mobile-brand { display: flex; margin-bottom: 60px; align-items: center; gap: 10px; }
  .mobile-brand .brand-mark { width: 38px; height: 38px; }
  .map-page-heading { align-items: stretch; flex-direction: column; }
  .map-code-form { width: 100%; }
  .public-map-toolbar { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .public-map-search { grid-column: 1 / -1; grid-row: 2; }
  .public-map-stats { grid-column: 1 / -1; grid-row: 3; width: 100%; justify-self: stretch; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .public-map-stats span { justify-content: center; }
  .public-map-page .leaflet-top.leaflet-left { top: 198px; }
}

@media (max-width: 560px) {
  .brand-copy { display: none; }
  .topbar-actions { gap: 8px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 112px; padding: 15px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .metric-icon { width: 34px; height: 34px; border-radius: 10px; }
  .metric-icon svg { width: 18px; height: 18px; }
  .metric-card strong { font-size: 22px; }
  .dashboard-hero { padding: 26px 22px; border-radius: 18px; }
  .dashboard-hero h1 { font-size: 30px; }
  .content-card { padding: 18px; border-radius: 15px; }
  .card-header h2 { font-size: 17px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .job-title-group h1 { font-size: 28px; }
  .job-hero-actions { align-items: stretch; flex-direction: column; }
  .status-large, .job-hero-actions .secondary-button { justify-content: center; }
  .filters { display: none; grid-template-columns: 1fr; }
  .filters.is-open { display: grid; }
  .filter-toggle { display: inline-flex; align-self: flex-start; }
  .filter-actions { align-items: stretch; flex-direction: column; }
  .export-list { grid-template-columns: 1fr; }
  .exports-modal .export-list { grid-template-columns: 1fr; }
  .modal-header { padding: 19px 18px 16px; }
  .modal-body { padding: 3px 18px 18px; }
  #map { height: 350px; }
  .map-legend { display: none; }
  .pagination { align-items: flex-start; flex-direction: column; gap: 12px; }
  .pagination > div { width: 100%; justify-content: space-between; }
  .admin-chip { display: none; }
  .map-code-input { grid-template-columns: 1fr; }
  .map-code-input .primary-button { width: 100%; }
  .map-card-header, .map-footer { align-items: flex-start; flex-direction: column; }
  #dedicated-map { height: 500px; min-height: 0; }
  .public-map-toolbar { top: 10px; right: 10px; left: 10px; padding: 9px; border-radius: 13px; }
  .public-map-brand .brand-mark { width: 36px; height: 36px; }
  .public-map-brand small { display: none; }
  .public-map-brand strong { font-size: 12px; }
  .public-map-stats { gap: 4px; }
  .public-map-stats span { min-height: 34px; padding: 5px 4px; flex-wrap: wrap; gap: 3px; font-size: 7px; }
  .public-map-stats strong { font-size: 10px; }
  .public-map-search > div { grid-template-columns: minmax(0, 1fr) 92px; }
  .public-map-search button { padding: 0 10px; }
  .public-map-page .leaflet-top.leaflet-left { top: 184px; }
  .public-map-message { transform: translate(-50%, -32%); }
  .public-map-legend { right: 10px; bottom: 20px; left: 10px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
