/* =========================================================================
   MP MSME Integrated Portal — Prototype Design System
   5 switchable themes: heritage | navy | emerald | midnight | ivory
   ========================================================================= */

:root, [data-theme="heritage"] {
  --font: 'Poppins', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-head: 'Playfair Display', 'Noto Sans Devanagari', Georgia, serif;
  --bg: #FFF9F2; --bg-alt: #FDF1E3; --surface: #FFFFFF; --surface-2: #FFF6EC;
  --text: #2A1A12; --text-muted: #7A6355; --border: #F0DCC6;
  --primary: #C2410C; --primary-600: #9A3412; --primary-50: #FFEDD5; --on-primary: #fff;
  --secondary: #7C1D3F; --accent: #E0A526; --accent-2: #0E7490;
  --grad: linear-gradient(135deg, #7C1D3F 0%, #C2410C 55%, #E0A526 100%);
  --grad-soft: linear-gradient(135deg, #FFF1E2 0%, #FDE7E7 100%);
  --hero-overlay: linear-gradient(100deg, rgba(60,10,25,.92) 0%, rgba(124,29,63,.72) 40%, rgba(194,65,12,.25) 75%, rgba(0,0,0,.05) 100%);
  --topbar-bg: #4A0F25; --topbar-text: #FBE7D3;
  --header-bg: rgba(255,249,242,.92); --header-text: #2A1A12;
  --footer-bg: #2A0B17; --footer-text: #F5DFCB;
  --radius: 14px; --radius-lg: 22px; --radius-sm: 9px;
  --shadow: 0 6px 22px -8px rgba(124,29,63,.18), 0 2px 6px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 60px -18px rgba(124,29,63,.35);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23C2410C' stroke-opacity='.08'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3Ccircle cx='30' cy='30' r='9'/%3E%3C/g%3E%3C/svg%3E");
  --success: #15803D; --warning: #D97706; --danger: #DC2626; --info: #0369A1;
  color-scheme: light;
}
[data-theme="navy"] {
  --font: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-head: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  --bg: #F4F7FC; --bg-alt: #E9EFF9; --surface: #FFFFFF; --surface-2: #F6F9FE;
  --text: #0E1B33; --text-muted: #5B6B86; --border: #DCE4F2;
  --primary: #0B3D91; --primary-600: #082C6B; --primary-50: #E3ECFB; --on-primary: #fff;
  --secondary: #13254C; --accent: #F4B400; --accent-2: #138808;
  --grad: linear-gradient(135deg, #0A1F4D 0%, #0B3D91 60%, #1D63D8 100%);
  --grad-soft: linear-gradient(135deg, #EAF1FD 0%, #FFF8E1 100%);
  --hero-overlay: linear-gradient(100deg, rgba(6,20,52,.94) 0%, rgba(11,61,145,.75) 45%, rgba(11,61,145,.15) 80%, rgba(0,0,0,0) 100%);
  --topbar-bg: #061434; --topbar-text: #D7E3FA;
  --header-bg: rgba(255,255,255,.95); --header-text: #0E1B33;
  --footer-bg: #061434; --footer-text: #C9D6F2;
  --radius: 10px; --radius-lg: 16px; --radius-sm: 7px;
  --shadow: 0 6px 20px -8px rgba(11,61,145,.20), 0 2px 5px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 24px 60px -20px rgba(11,61,145,.38);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='%230B3D91' fill-opacity='.06'%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
[data-theme="emerald"] {
  --font: 'Outfit', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-head: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  --bg: #F2FAF6; --bg-alt: #E3F4EC; --surface: #FFFFFF; --surface-2: #F4FBF8;
  --text: #0B2A22; --text-muted: #4E6E64; --border: #CFE8DD;
  --primary: #047857; --primary-600: #065F46; --primary-50: #D1FAE5; --on-primary: #fff;
  --secondary: #0F766E; --accent: #84CC16; --accent-2: #0EA5E9;
  --grad: linear-gradient(135deg, #064E3B 0%, #047857 50%, #0D9488 80%, #84CC16 120%);
  --grad-soft: linear-gradient(135deg, #E7F8EF 0%, #E6F6FB 100%);
  --hero-overlay: linear-gradient(100deg, rgba(2,44,34,.93) 0%, rgba(4,120,87,.70) 45%, rgba(13,148,136,.15) 80%, rgba(0,0,0,0) 100%);
  --topbar-bg: #022C22; --topbar-text: #CFF5E5;
  --header-bg: rgba(255,255,255,.93); --header-text: #0B2A22;
  --footer-bg: #022C22; --footer-text: #C6EEDD;
  --radius: 18px; --radius-lg: 28px; --radius-sm: 12px;
  --shadow: 0 8px 24px -10px rgba(4,120,87,.25), 0 2px 6px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 26px 60px -20px rgba(4,120,87,.40);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 40 Q20 20 40 40 T80 40' fill='none' stroke='%23047857' stroke-opacity='.08' stroke-width='2'/%3E%3C/svg%3E");
}
[data-theme="midnight"] {
  --font: 'Space Grotesk', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Noto Sans Devanagari', sans-serif;
  --bg: #060914; --bg-alt: #0B1022; --surface: rgba(255,255,255,.055); --surface-2: rgba(255,255,255,.08);
  --text: #E8ECF8; --text-muted: #96A0BE; --border: rgba(255,255,255,.11);
  --primary: #8B5CF6; --primary-600: #7C3AED; --primary-50: rgba(139,92,246,.16); --on-primary: #fff;
  --secondary: #06B6D4; --accent: #F472B6; --accent-2: #22D3EE;
  --grad: linear-gradient(135deg, #7C3AED 0%, #2563EB 50%, #06B6D4 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,.18) 0%, rgba(6,182,212,.12) 100%);
  --hero-overlay: linear-gradient(100deg, rgba(6,9,20,.96) 0%, rgba(30,16,70,.78) 45%, rgba(6,9,20,.25) 85%);
  --topbar-bg: #03050C; --topbar-text: #A9B4D6;
  --header-bg: rgba(8,12,28,.78); --header-text: #E8ECF8;
  --footer-bg: #03050C; --footer-text: #A9B4D6;
  --radius: 16px; --radius-lg: 24px; --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04);
  --shadow-lg: 0 30px 80px -20px rgba(124,58,237,.45);
  --pattern: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0) 0 0/26px 26px;
  --success: #22C55E; --warning: #F59E0B; --danger: #F43F5E; --info: #38BDF8;
  color-scheme: dark;
}
[data-theme="ivory"] {
  --font: 'Manrope', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-head: 'Manrope', 'Noto Sans Devanagari', sans-serif;
  --bg: #FFFFFF; --bg-alt: #F7F7F8; --surface: #FFFFFF; --surface-2: #FAFAFB;
  --text: #0A0A0B; --text-muted: #6B6B76; --border: #ECECEF;
  --primary: #4F46E5; --primary-600: #4338CA; --primary-50: #EEF0FF; --on-primary: #fff;
  --secondary: #0A0A0B; --accent: #F97316; --accent-2: #10B981;
  --grad: linear-gradient(135deg, #111827 0%, #312E81 60%, #4F46E5 100%);
  --grad-soft: linear-gradient(135deg, #F5F5FF 0%, #FFF7F0 100%);
  --hero-overlay: linear-gradient(180deg, rgba(10,10,11,.15) 0%, rgba(10,10,11,.55) 55%, rgba(10,10,11,.88) 100%);
  --topbar-bg: #0A0A0B; --topbar-text: #D4D4D8;
  --header-bg: rgba(255,255,255,.85); --header-text: #0A0A0B;
  --footer-bg: #0A0A0B; --footer-text: #C4C4CC;
  --radius: 20px; --radius-lg: 30px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.12);
  --shadow-lg: 0 30px 70px -25px rgba(0,0,0,.25);
  --pattern: none;
}

/* status palette (shared) */
:root { --st-vacant:#16A34A; --st-eoi:#F59E0B; --st-booked:#2563EB; --st-allotted:#DC2626; --st-reserved:#9333EA; --st-nfs:#64748B; --st-production:#0F766E; }

/* ---------- base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.fs-sm { font-size: 14px; } html.fs-lg { font-size: 17.5px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 1rem; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .35s, color .35s; }
[data-theme="midnight"] body { background: radial-gradient(1200px 600px at 80% -10%, rgba(124,58,237,.22), transparent 60%), radial-gradient(900px 500px at -10% 20%, rgba(6,182,212,.14), transparent 60%), var(--bg); background-attachment: fixed; }
html.hc body { filter: contrast(1.25) saturate(1.1); }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 8px 14px; z-index: 9999; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary); color: #fff; }
.container { width: min(1280px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--text-muted); }
.small { font-size: .85rem; } .xs { font-size: .75rem; }
.flex { display: flex; gap: 12px; } .items-center { align-items: center; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .col { flex-direction: column; } .grow { flex: 1; } .center { text-align: center; } .gap-sm { gap: 6px; } .gap-lg { gap: 24px; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .g-5 { grid-template-columns: repeat(5, minmax(0,1fr)); } .g-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:40px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.hide { display: none !important; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fw-6 { font-weight: 600; } .fw-7 { font-weight: 700; }

/* ---------- buttons, chips, badges ---------- */
.btn { --b: var(--primary); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .68em 1.25em; border-radius: calc(var(--radius) - 4px); border: 1.5px solid transparent; font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .2s ease; white-space: nowrap; text-decoration: none; line-height: 1.2; }
.btn i { font-size: 1.1em; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px -6px var(--primary); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); box-shadow: 0 10px 22px -8px var(--primary); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px var(--primary); }
.btn-grad:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #1b1300; }
.btn-accent:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-50); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--primary); color: var(--primary); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.26); }
.btn-white { background: #fff; color: #111; }
.btn-danger { background: var(--danger); color: #fff; } .btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: .45em .85em; font-size: .8rem; } .btn-lg { padding: .9em 1.6em; font-size: 1rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; cursor: pointer; transition: .2s; color: var(--text); white-space: nowrap; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 600; background: var(--primary-50); color: var(--primary); white-space: nowrap; }
.badge.dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-success { background: rgba(22,163,74,.12); color: var(--success); } .b-warning { background: rgba(217,119,6,.13); color: var(--warning); } .b-danger { background: rgba(220,38,38,.11); color: var(--danger); } .b-info { background: rgba(3,105,161,.11); color: var(--info); } .b-grey { background: rgba(100,116,139,.13); color: #64748B; } .b-purple { background: rgba(147,51,234,.12); color: #9333EA; }
.b-solid { background: var(--primary); color: #fff; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; color: #fff; }
.st-vacant { background: var(--st-vacant);} .st-eoi { background: var(--st-eoi);} .st-booked { background: var(--st-booked);} .st-allotted { background: var(--st-allotted);} .st-reserved { background: var(--st-reserved);} .st-nfs { background: var(--st-nfs);} .st-production { background: var(--st-production);}

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; }
[data-theme="midnight"] .card, [data-theme="midnight"] .panel { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.card.flat { box-shadow: none; }
.card .card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--primary-50); color: var(--primary); margin-bottom: 14px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.panel-head h3 { margin: 0; font-size: 1rem; font-family: var(--font); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel-head h3 i { color: var(--primary); }
.panel-body { padding: 18px; }
.panel-body.p0 { padding: 0; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.field label .req { color: var(--danger); }
.input, .select, textarea.input { width: 100%; padding: .7em .9em; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .92rem; transition: .2s; }
[data-theme="midnight"] .input, [data-theme="midnight"] .select { background: rgba(255,255,255,.04); }
[data-theme="midnight"] .select option { background: #0B1022; }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.input-group { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.input-group i { padding: 0 10px; color: var(--text-muted); }
.input-group input { border: 0; outline: 0; padding: .7em .4em; flex: 1; background: transparent; color: var(--text); font: inherit; min-width: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: .86rem; cursor: pointer; padding: 3px 0; }
.check input { accent-color: var(--primary); width: 16px; height: 16px; }
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(18px); }
.range { width: 100%; accent-color: var(--primary); }
.otp { display: flex; gap: 8px; justify-content: center; }
.otp input { width: 46px; height: 54px; text-align: center; font-size: 1.4rem; font-weight: 700; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; font-weight: 600; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 16px; border: 0; background: none; color: var(--text-muted); font-weight: 600; font-size: .88rem; cursor: pointer; border-bottom: 2.5px solid transparent; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.seg { display: inline-flex; background: var(--bg-alt); padding: 4px; border-radius: 99px; gap: 2px; border: 1px solid var(--border); }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 99px; font-weight: 600; font-size: .84rem; color: var(--text-muted); cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }

/* ---------- top utility bar & header ---------- */
.topbar { background: var(--topbar-bg); color: var(--topbar-text); font-size: .78rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.topbar a, .topbar button { color: var(--topbar-text); background: none; border: 0; cursor: pointer; font-size: .78rem; padding: 4px 6px; border-radius: 6px; }
.topbar a:hover, .topbar button:hover { background: rgba(255,255,255,.12); }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topbar .sep { opacity: .35; }
.topbar .lang button.active { background: rgba(255,255,255,.2); font-weight: 700; }
.tricolor { height: 4px; background: linear-gradient(90deg, #FF9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%); }
.header { position: sticky; top: 0; z-index: 900; background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 8px 30px -14px rgba(0,0,0,.25); }
.header .container { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--header-text); text-decoration: none; min-width: 0; flex: none; max-width: 340px; }
.brand .logo { width: 52px; height: 52px; flex: none; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand .bt b { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; color: var(--header-text); white-space: nowrap; }
.brand .bt span { font-size: .72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .bt .hi { font-size: .78rem; color: var(--primary); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > .ni { position: relative; }
.nav > .ni > a { display: flex; align-items: center; gap: 4px; padding: 10px 12px; color: var(--header-text); font-weight: 500; font-size: .9rem; border-radius: 10px; white-space: nowrap; }
.nav > .ni > a:hover, .nav > .ni > a.active { color: var(--primary); background: var(--primary-50); }
.nav .mega { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 8px); min-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; opacity: 0; visibility: hidden; transition: .22s; z-index: 50; }
[data-theme="midnight"] .nav .mega { background: #0D1328; }
.nav > .ni:hover .mega, .nav > .ni:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); align-items: flex-start; }
.mega a:hover { background: var(--primary-50); }
.mega a i { font-size: 20px; color: var(--primary); width: 38px; height: 38px; display: grid; place-items: center; background: var(--primary-50); border-radius: 10px; flex: none; }
.mega a b { display: block; font-size: .88rem; } .mega a small { color: var(--text-muted); font-size: .76rem; line-height: 1.3; display: block; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--header-text); display: grid; place-items: center; cursor: pointer; font-size: 19px; transition: .2s; position: relative; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.hamburger { display: none; }
.gov-logos { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--border); }
.gov-logos img { height: 46px; width: 46px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--accent); }

/* ticker */
.ticker { background: var(--surface); border-bottom: 1px solid var(--border); font-size: .85rem; }
.ticker .container { display: flex; align-items: center; gap: 0; height: 40px; overflow: hidden; }
.ticker .lbl { background: var(--primary); color: #fff; font-weight: 700; padding: 0 14px; height: 100%; display: flex; align-items: center; gap: 6px; flex: none; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 22px; }
.ticker .track { overflow: hidden; flex: 1; position: relative; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker .move { display: inline-flex; gap: 48px; white-space: nowrap; animation: tick 60s linear infinite; padding-left: 20px; }
.ticker:hover .move { animation-play-state: paused; }
.ticker .move a { color: var(--text); } .ticker .move a:hover { color: var(--primary); }
.ticker .move .new { background: var(--danger); color: #fff; font-size: .62rem; padding: 1px 6px; border-radius: 4px; margin-right: 6px; font-weight: 700; animation: blink 1.4s infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .45; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); color: #fff; overflow: hidden; isolation: isolate; display: grid; }
.hero .slide { position: relative; grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; display: flex; align-items: center; min-height: inherit; }
.hero .slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero .slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); transition: transform 8s ease; z-index: -2; }
.hero .slide.active .bg { transform: scale(1); }
.hero .slide::after { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); z-index: -1; }
.hero .slide .container { position: relative; padding: 70px 0 120px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); font-size: .8rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 18px; }
.hero h1 { max-width: 760px; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.hero h1 em { font-style: normal; color: var(--accent); }
[data-theme="ivory"] .hero h1 em { color: #FDBA74; }
.hero p.lead { font-size: clamp(1rem, 1.6vw, 1.22rem); max-width: 620px; opacity: .92; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-dots { position: absolute; bottom: 104px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; padding: 0; }
.hero-dots button.active { width: 34px; background: var(--accent); }
.hero-arrows { position: absolute; right: max(16px, calc((100vw - 1280px)/2)); bottom: 96px; z-index: 5; display: flex; gap: 8px; }
.hero-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer; backdrop-filter: blur(8px); }
.hero-arrows button:hover { background: rgba(255,255,255,.28); }
.gis-leaders { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.gis-leaders .ld { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); padding: 8px 16px 8px 8px; border-radius: 99px; backdrop-filter: blur(10px); }
.gis-leaders img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--accent); }
.gis-leaders b { display: block; font-size: .92rem; } .gis-leaders small { font-size: .74rem; opacity: .85; }
.countdown { display: flex; gap: 10px; margin-top: 22px; }
.countdown .cd { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); border-radius: 14px; padding: 10px 14px; min-width: 72px; text-align: center; }
.countdown .cd b { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .cd small { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.hero-side { position: absolute; right: max(16px, calc((100vw - 1280px)/2)); top: 50%; transform: translateY(-58%); width: 340px; z-index: 3; }
.glass-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--radius-lg); padding: 20px; color: #fff; }
.hero-search { position: relative; z-index: 6; margin-top: -78px; }
.hero-search .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: end; }
[data-theme="midnight"] .hero-search .box { background: #0D1328; }
.hero-search .box .field { margin: 0; }

/* ---------- sections ---------- */
.section { padding: 84px 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section.pattern { background-image: var(--pattern); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head .kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.section-head .kicker::before { content: ''; width: 26px; height: 2px; background: var(--primary); }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--text-muted); max-width: 640px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .kicker::after { content: ''; width: 26px; height: 2px; background: var(--primary); }

/* quick tiles */
.quick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.qt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 10px; text-align: center; color: var(--text); transition: .25s; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; line-height: 1.25; box-shadow: var(--shadow); }
.qt i { width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px; border-radius: 16px; background: var(--grad); color: #fff; box-shadow: 0 10px 20px -10px var(--primary); transition: .3s; }
.qt:hover { transform: translateY(-5px); border-color: var(--primary); color: var(--primary); }
.qt:hover i { transform: rotate(-8deg) scale(1.06); }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; background: var(--grad); border-radius: var(--radius-lg); color: #fff; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.stats::before { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .5; mix-blend-mode: overlay; }
.stat { padding: 28px 18px; text-align: center; position: relative; border-right: 1px solid rgba(255,255,255,.14); }
.stat:last-child { border-right: 0; }
.stat b { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 800; display: block; line-height: 1.1; font-family: var(--font-head); }
.stat span { font-size: .8rem; opacity: .9; }

/* journey (snake) */
.journey { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 46px 18px; padding: 10px 0; }
.journey .jstep { position: relative; background: var(--surface); border: 1.5px dashed color-mix(in srgb, var(--primary) 45%, transparent); border-radius: var(--radius); padding: 18px 14px 16px; text-align: center; transition: .3s; cursor: pointer; z-index: 1; }
.journey .jstep:hover, .journey .jstep.on { border-style: solid; border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.journey .jstep .num { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-weight: 800; font-size: .72rem; padding: 3px 10px; border-radius: 99px; }
.journey .jstep i { font-size: 30px; color: var(--primary); width: 62px; height: 62px; display: grid; place-items: center; margin: 4px auto 10px; border-radius: 50%; background: var(--primary-50); }
.journey .jstep b { display: block; font-size: .9rem; line-height: 1.25; margin-bottom: 4px; }
.journey .jstep small { color: var(--text-muted); font-size: .76rem; line-height: 1.35; display: block; }
.journey .jstep::after { content: '\ea6c'; font-family: 'remixicon'; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 18px; z-index: 2; }
.journey .jstep:nth-child(6)::after { content: '\ea4c'; right: 50%; top: auto; bottom: -38px; transform: translateX(50%); }
.journey .jstep:nth-child(n+7)::after { content: '\ea60'; right: auto; left: -17px; }
.journey .jstep:nth-child(12)::after { display: none; }
.journey .jstep:nth-child(7) { grid-column: 6; grid-row: 2; } .journey .jstep:nth-child(8) { grid-column: 5; grid-row: 2; } .journey .jstep:nth-child(9) { grid-column: 4; grid-row: 2; } .journey .jstep:nth-child(10) { grid-column: 3; grid-row: 2; } .journey .jstep:nth-child(11) { grid-column: 2; grid-row: 2; } .journey .jstep:nth-child(12) { grid-column: 1; grid-row: 2; }
.journey-detail { margin-top: 26px; }

/* scheme cards */
.scheme { display: flex; flex-direction: column; height: 100%; }
.scheme .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.scheme h3 { font-size: 1.04rem; font-family: var(--font); font-weight: 700; margin-bottom: 6px; }
.scheme p { font-size: .86rem; color: var(--text-muted); flex: 1; }
.scheme .benefit { background: var(--grad-soft); border-radius: 10px; padding: 10px 12px; font-size: .82rem; font-weight: 600; margin-bottom: 14px; color: var(--text); border: 1px solid var(--border); }
.scheme .benefit i { color: var(--primary); }
.scheme .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--border); padding-top: 12px; }

/* why MP / feature tiles with image */
.img-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 260px; color: #fff; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.img-card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s; }
.img-card:hover .bg { transform: scale(1.06); }
.img-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.82)); }
.img-card .ct { position: relative; z-index: 1; padding: 22px; }
.img-card h3 { color: #fff; margin-bottom: 4px; }
.adv { display: flex; gap: 14px; align-items: flex-start; }
.adv i { font-size: 24px; color: var(--primary); background: var(--primary-50); width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.adv b { display: block; margin-bottom: 2px; } .adv p { font-size: .84rem; color: var(--text-muted); margin: 0; }

/* land teaser */
.land-teaser { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); }
.land-teaser .map-mini { min-height: 440px; }
.land-teaser .info { padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.eoi-box { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 18px; }
.eoi-box .countdown .cd { background: rgba(255,255,255,.15); min-width: 60px; padding: 8px 10px; }
.eoi-box .countdown .cd b { font-size: 1.35rem; }

/* odop carousel */
.hscroll { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.odop-card { width: 250px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); cursor: pointer; transition: .3s; }
.odop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.odop-card .art { height: 150px; display: grid; place-items: center; font-size: 64px; position: relative; overflow: hidden; }
.odop-card .art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.4), transparent 60%); }
.odop-card .art .gi { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.9); color: #92400E; font-size: .65rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.odop-card .art .dept { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: .62rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.odop-card .meta { padding: 14px 16px; }
.odop-card .meta b { display: block; font-size: .98rem; } .odop-card .meta small { color: var(--text-muted); }

/* leaders */
.leader { text-align: center; padding: 26px 18px; }
.leader .ph { width: 118px; height: 118px; border-radius: 50%; margin: 0 auto 14px; padding: 4px; background: var(--grad); }
.leader .ph img, .leader .ph .ini { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--surface); background: var(--primary-50); display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: var(--primary); }
.leader b { display: block; font-size: 1rem; } .leader small { color: var(--text-muted); font-size: .8rem; }
.leader blockquote { font-size: .85rem; color: var(--text-muted); font-style: italic; margin: 12px 0 0; }

/* news & events */
.news-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.news-item:last-child { border-bottom: 0; }
.date-chip { flex: none; width: 58px; text-align: center; border-radius: 12px; background: var(--primary-50); color: var(--primary); padding: 8px 0; line-height: 1.05; }
.date-chip b { display: block; font-size: 1.35rem; } .date-chip small { font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.news-item h4 { font-size: .92rem; margin: 0 0 4px; font-family: var(--font); font-weight: 600; }
.story { overflow: hidden; padding: 0; }
.story .ph { height: 180px; background-size: cover; background-position: center; position: relative; }
.story .ph .tag { position: absolute; left: 14px; bottom: 14px; }
.story .bd { padding: 18px; }
.story .q { font-size: .9rem; color: var(--text-muted); font-style: italic; }
.partners { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.partner { padding: 12px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: .85rem; display: flex; align-items: center; gap: 8px; color: var(--text); transition: .2s; }
.partner:hover { border-color: var(--primary); color: var(--primary); }
.partner i { color: var(--primary); font-size: 18px; }

/* GIS banner block */
.gis-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff; padding: 46px; background: var(--grad); box-shadow: var(--shadow-lg); isolation: isolate; }
.gis-banner::before { content: ''; position: absolute; inset: 0; background: url('../img/upperlake.jpg') center/cover; opacity: .18; z-index: -1; mix-blend-mode: luminosity; }
.gis-banner .rings { position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); z-index: -1; }

/* footer */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 64px 0 0; margin-top: 0; position: relative; }
.footer::before { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .25; pointer-events: none; }
.footer .container { position: relative; }
.footer h4 { color: #fff; font-family: var(--font); font-size: .95rem; margin-bottom: 14px; }
.footer a { color: var(--footer-text); opacity: .85; font-size: .86rem; display: block; padding: 4px 0; }
.footer a:hover { opacity: 1; color: var(--accent); }
.footer .fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 30px; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding: 18px 0 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; opacity: .85; }
.visitor { display: inline-flex; gap: 3px; }
.visitor span { background: rgba(255,255,255,.12); padding: 3px 6px; border-radius: 4px; font-weight: 700; font-variant-numeric: tabular-nums; font-family: monospace; font-size: .9rem; color: #fff; }
.social { display: flex; gap: 8px; margin-top: 12px; }
.social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid !important; place-items: center; font-size: 17px; padding: 0 !important; }

/* page header (inner) */
.page-hero { background: var(--grad); color: #fff; padding: 46px 0 70px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .6; mix-blend-mode: overlay; z-index: -1; }
.page-hero::after { content: ''; position: absolute; right: -80px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(255,255,255,.07); z-index: -1; }
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 8px; }
.page-hero p { opacity: .9; max-width: 700px; margin: 0; }
.crumbs { font-size: .8rem; opacity: .85; margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.crumbs a { color: #fff; }
.page-body { margin-top: -40px; position: relative; z-index: 2; padding-bottom: 70px; }

/* ---------- modal / drawer / sheet / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8,10,20,.55); backdrop-filter: blur(4px); z-index: 3000; display: grid; place-items: center; padding: 16px; animation: fadeIn .2s; }
.modal { background: var(--surface); border-radius: var(--radius-lg); width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 40px 100px -20px rgba(0,0,0,.5); animation: pop .28s cubic-bezier(.2,.9,.3,1.2); border: 1px solid var(--border); }
[data-theme="midnight"] .modal { background: #0D1328; }
.modal.lg { width: min(940px, 100%); } .modal.xl { width: min(1180px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: inherit; z-index: 2; }
.modal-head h3 { margin: 0; font-family: var(--font); font-size: 1.08rem; display: flex; gap: 8px; align-items: center; }
.modal-body { padding: 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: inherit; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
@keyframes slideUp { from { transform: translateY(100%); } }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--surface); z-index: 3001; box-shadow: -20px 0 60px -10px rgba(0,0,0,.35); animation: slideIn .3s ease; display: flex; flex-direction: column; }
[data-theme="midnight"] .drawer { background: #0D1328; }
.drawer .modal-body { overflow: auto; flex: 1; }
.toasts { position: fixed; top: 86px; right: 16px; z-index: 5000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; min-width: 280px; max-width: 380px; background: var(--surface); color: var(--text); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 12px 16px; display: flex; gap: 12px; align-items: flex-start; animation: slideIn .35s cubic-bezier(.2,.9,.3,1.2); border-left: 4px solid var(--primary); }
[data-theme="midnight"] .toast { background: #121a35; }
.toast i { font-size: 20px; color: var(--primary); }
.toast.success { border-left-color: var(--success); } .toast.success i { color: var(--success); }
.toast.warn { border-left-color: var(--warning); } .toast.warn i { color: var(--warning); }
.toast.error { border-left-color: var(--danger); } .toast.error i { color: var(--danger); }
.toast b { display: block; font-size: .88rem; } .toast span { font-size: .8rem; color: var(--text-muted); }

/* stepper & timeline */
.stepper { display: flex; gap: 0; margin-bottom: 22px; overflow-x: auto; }
.stepper .sp { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: .74rem; font-weight: 600; color: var(--text-muted); text-align: center; min-width: 74px; }
.stepper .sp::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--border); z-index: 0; }
.stepper .sp:first-child::before { display: none; }
.stepper .sp .c { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border); font-weight: 700; position: relative; z-index: 1; }
.stepper .sp.done .c { background: var(--success); border-color: var(--success); color: #fff; }
.stepper .sp.done::before, .stepper .sp.cur::before { background: var(--success); }
.stepper .sp.cur .c { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 5px var(--primary-50); }
.stepper .sp.cur { color: var(--primary); }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.tl { position: relative; padding-bottom: 18px; }
.tl::before { content: ''; position: absolute; left: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); }
.tl.done::before { border-color: var(--success); background: var(--success); }
.tl.cur::before { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-50); animation: pulse 1.6s infinite; }
.tl b { font-size: .88rem; display: block; } .tl small { color: var(--text-muted); font-size: .78rem; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.progress { height: 8px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width 1s ease; }

/* KPI */
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi .ic { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--primary-50); color: var(--primary); }
.kpi small { color: var(--text-muted); font-size: .78rem; font-weight: 600; display: block; padding-right: 52px; }
.kpi b { font-size: 1.75rem; font-weight: 800; display: block; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: .75rem; font-weight: 600; }
.kpi .delta.up { color: var(--success); } .kpi .delta.down { color: var(--danger); }
.kpi.grad { background: var(--grad); color: #fff; border: 0; }
.kpi.grad small, .kpi.grad .delta { color: rgba(255,255,255,.85); }
.kpi.grad .ic { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- map shells ---------- */
.map-shell { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - 116px); min-height: 560px; position: relative; background: var(--bg); }
.map-shell.three { grid-template-columns: 340px 1fr auto; }
.map-shell.three > .map-side.right { width: 400px; }
.map-side { background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; display: flex; flex-direction: column; z-index: 2; }
[data-theme="midnight"] .map-side { background: #0A0F22; }
.map-side .ms-head { padding: 16px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: inherit; z-index: 3; }
.map-side .ms-body { padding: 14px 18px; flex: 1; }
.map-side.right { border-right: 0; border-left: 1px solid var(--border); }
.map-wrap { position: relative; min-height: 0; }
.map { position: absolute; inset: 0; background: #dfe7ef; }
.map-float { position: absolute; z-index: 800; }
.map-tools { top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; }
.map-tools button { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 19px; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; }
[data-theme="midnight"] .map-tools button { background: #0D1328; }
.map-tools button:hover, .map-tools button.on { color: #fff; background: var(--primary); border-color: var(--primary); }
.float-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px; width: 290px; max-height: calc(100% - 24px); overflow: auto; }
[data-theme="midnight"] .float-panel { background: #0D1328; }
.layer-tree details { border-bottom: 1px solid var(--border); padding: 6px 0; }
.layer-tree summary { cursor: pointer; font-weight: 600; font-size: .86rem; padding: 4px 0; display: flex; align-items: center; gap: 8px; list-style: none; }
.layer-tree summary::-webkit-details-marker { display: none; }
.layer-tree summary::after { content: '\ea4c'; font-family: remixicon; margin-left: auto; transition: .2s; color: var(--text-muted); }
.layer-tree details[open] summary::after { transform: rotate(180deg); }
.layer-tree .check { padding-left: 4px; font-size: .82rem; }
.lg-sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; flex: none; border: 1px solid rgba(0,0,0,.15); }
.lg-ln { width: 18px; height: 0; border-top: 3px solid; display: inline-block; flex: none; }
.lg-pt { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.legend { bottom: 24px; left: 12px; }
.legend .float-panel { width: auto; padding: 10px 14px; }
.legend .float-panel > b { cursor: pointer; display: flex; align-items: center; gap: 6px; }
.legend .float-panel > b::after { content: "▾"; opacity: .6; }
.legend .float-panel.collapsed > b::after { content: "▸"; }
.legend .float-panel.collapsed .legend-row { display: none; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: .76rem; padding: 2px 0; }
.basemaps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.basemaps button { border: 2px solid var(--border); border-radius: 10px; padding: 0; overflow: hidden; background: var(--surface); cursor: pointer; font-size: .7rem; font-weight: 600; color: var(--text); }
.basemaps button .th { height: 48px; background-size: cover; background-position: center; }
.basemaps button.active { border-color: var(--primary); color: var(--primary); }
.map-stats { top: 12px; left: 12px; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 80px); }
.map-stats .ms { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 7px 12px; box-shadow: var(--shadow); font-size: .75rem; display: flex; align-items: center; gap: 8px; }
[data-theme="midnight"] .map-stats .ms { background: #0D1328; }
.map-stats .ms b { font-size: 1rem; }
.ia-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; cursor: pointer; transition: .2s; background: var(--surface); }
.ia-card:hover, .ia-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.ia-card b { font-size: .9rem; display: block; }
.ia-card .bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; margin: 8px 0 6px; background: var(--bg-alt); }
.ia-card .bar span { display: block; height: 100%; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: .82rem; }
.kv > div { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.kv > div:nth-child(odd) { color: var(--text-muted); background: var(--surface-2); font-weight: 500; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.kv > div.tot { font-weight: 700; color: var(--primary); }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 12px 14px; font-size: .82rem; }
.leaflet-tooltip.dist-label { background: var(--primary); color: #fff; border: 0; border-radius: 99px; font-weight: 700; padding: 3px 10px; box-shadow: var(--shadow); }
.leaflet-tooltip.dist-label::before { display: none; }
.leaflet-tooltip.plot-label { background: transparent; border: 0; box-shadow: none; color: #fff; font-weight: 700; font-size: 10px; text-shadow: 0 0 3px rgba(0,0,0,.9); padding: 0; }
.leaflet-tooltip.plot-label::before { display: none; }
.leaflet-tooltip.dist-name { background: rgba(255,255,255,.85); border: 0; box-shadow: none; font-size: 10px; font-weight: 700; color: #1f2937; padding: 1px 5px; border-radius: 4px; }
.leaflet-tooltip.dist-name::before { display: none; }
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 6px 14px -4px rgba(0,0,0,.45); }
.pin i { transform: rotate(45deg); color: #fff; font-size: 16px; }
.poi-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; border: 2px solid #fff; box-shadow: 0 3px 8px -2px rgba(0,0,0,.5); }
.ia-marker { display: grid; place-items: center; }
.ia-marker .ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 16px -4px rgba(0,0,0,.5); }
.ia-marker .ring span { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: .76rem; color: #111; }
.pulse-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 0 var(--primary); animation: pdot 1.8s infinite; }
@keyframes pdot { 70% { box-shadow: 0 0 0 16px transparent; } }
.basket { position: absolute; z-index: 801; right: 12px; bottom: 24px; }

/* ODOP specific */
.odop-hero-card { border-radius: var(--radius-lg); overflow: hidden; color: #fff; position: relative; padding: 22px; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; }
.odop-hero-card .emo { position: absolute; right: 14px; top: 8px; font-size: 92px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); }
.odop-hero-card h2 { color: #fff; font-size: 1.6rem; margin: 0; }
.dlist .di { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: .85rem; }
.dlist .di:hover, .dlist .di.active { background: var(--primary-50); }
.dlist .di .e { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; flex: none; }
.dlist .di b { display: block; font-size: .85rem; } .dlist .di small { color: var(--text-muted); font-size: .74rem; }

/* ---------- dashboard app shell ---------- */
.app-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.sidebar { background: var(--secondary); color: #fff; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; z-index: 50; }
[data-theme="ivory"] .sidebar { background: #0A0A0B; }
[data-theme="midnight"] .sidebar { background: rgba(10,14,32,.85); border-right: 1px solid var(--border); backdrop-filter: blur(18px); }
.sidebar .sb-brand { display: flex; align-items: center; gap: 10px; padding: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar .sb-brand .logo { width: 40px; height: 40px; }
.sidebar .sb-brand b { font-size: .95rem; display: block; line-height: 1.1; } .sidebar .sb-brand small { font-size: .7rem; opacity: .7; }
.sidebar .sb-role { margin: 14px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.08); display: flex; gap: 10px; align-items: center; }
.sidebar .sb-role .av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #111; font-weight: 800; flex: none; }
.sidebar .sb-role b { font-size: .84rem; display: block; line-height: 1.2; } .sidebar .sb-role small { font-size: .7rem; opacity: .75; }
.sidebar nav { padding: 6px 10px 20px; flex: 1; }
.sidebar .sb-h { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .5; padding: 14px 12px 6px; font-weight: 700; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.82); font-size: .87rem; font-weight: 500; margin-bottom: 2px; transition: .15s; }
.sidebar nav a i { font-size: 18px; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar nav a.active { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
[data-theme="ivory"] .sidebar nav a.active { background: #fff; color: #0A0A0B; }
.sidebar nav a .cnt { margin-left: auto; background: var(--accent); color: #111; font-size: .68rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 10px 24px; min-height: 64px; }
.app-top .search { flex: 1; max-width: 460px; }
.app-content { padding: 24px; flex: 1; }
.app-content .page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.app-content .page-title h1 { font-size: 1.6rem; margin: 0; font-family: var(--font-head); }
.app-content .page-title p { margin: 4px 0 0; color: var(--text-muted); font-size: .9rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.queue-item { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--border); transition: .15s; }
.queue-item:hover { background: var(--surface-2); }
.queue-item:last-child { border-bottom: 0; }
.queue-item .qi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; background: var(--primary-50); color: var(--primary); }
.queue-item b { font-size: .88rem; display: block; } .queue-item small { color: var(--text-muted); font-size: .76rem; }
.sla { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.sla.ok { background: rgba(22,163,74,.12); color: var(--success); } .sla.warn { background: rgba(217,119,6,.14); color: var(--warning); } .sla.bad { background: rgba(220,38,38,.12); color: var(--danger); }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.kcol { background: var(--bg-alt); border-radius: var(--radius); padding: 12px; min-height: 300px; }
.kcol h4 { font-size: .8rem; font-family: var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); display: flex; justify-content: space-between; margin-bottom: 10px; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; font-size: .82rem; box-shadow: var(--shadow); cursor: grab; }
.kcard b { display: block; font-size: .85rem; }
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 200px; }
.sig-block { border: 2px solid var(--success); border-radius: 12px; padding: 12px 14px; background: rgba(22,163,74,.06); font-size: .78rem; display: flex; gap: 12px; align-items: center; }
.sig-block i { font-size: 34px; color: var(--success); }
.doc-paper { background: #fff; color: #1a1a1a; border-radius: 6px; padding: 34px 38px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.3); font-family: 'Noto Serif', Georgia, serif; font-size: .86rem; position: relative; border: 1px solid #e5e5e5; }
.doc-paper h4 { text-align: center; font-family: inherit; letter-spacing: .04em; }
.doc-paper .wm { position: absolute; inset: 0; display: grid; place-items: center; font-size: 70px; font-weight: 800; color: rgba(0,0,0,.04); transform: rotate(-24deg); pointer-events: none; }
.token-anim { width: 90px; height: 90px; margin: 10px auto; border-radius: 22px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 42px; animation: tok 1.2s infinite ease-in-out; box-shadow: var(--shadow-lg); }
@keyframes tok { 50% { transform: translateY(-6px) rotate(-4deg); } }
.hash { font-family: monospace; font-size: .72rem; word-break: break-all; background: var(--bg-alt); padding: 8px 10px; border-radius: 8px; color: var(--text-muted); }
.role-card { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: .2s; background: var(--surface); display: flex; gap: 12px; align-items: flex-start; }
.role-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.role-card .ri { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; flex: none; }
.role-card b { font-size: .92rem; display: block; } .role-card small { color: var(--text-muted); font-size: .76rem; line-height: 1.35; display: block; }
.role-card .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }

/* chatbot */
.fab { position: fixed; z-index: 1500; width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 26px; cursor: pointer; color: #fff; background: var(--grad); box-shadow: 0 14px 30px -10px var(--primary); transition: .25s; }
.fab:hover { transform: scale(1.07); }
.fab.chat { right: 20px; bottom: 22px; }
.fab.theme { left: 20px; bottom: 22px; width: 50px; height: 50px; font-size: 22px; background: var(--surface); color: var(--primary); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.fab .ping { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #22C55E; border: 2px solid #fff; }
.chatbox { position: fixed; right: 20px; bottom: 92px; width: 370px; height: 540px; max-height: calc(100vh - 120px); background: var(--surface); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); z-index: 1501; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); animation: pop .3s; }
[data-theme="midnight"] .chatbox { background: #0D1328; }
.chatbox .ch-head { background: var(--grad); color: #fff; padding: 16px; display: flex; gap: 12px; align-items: center; }
.chatbox .ch-head .av { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 22px; }
.chatbox .ch-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: .84rem; line-height: 1.45; animation: pop .25s; }
.msg.bot { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-replies button { font-size: .74rem; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--primary); background: var(--surface); color: var(--primary); cursor: pointer; }
.chatbox .ch-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--text-muted); animation: typ 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 50% { transform: translateY(-4px); opacity: .4; } }

/* theme panel */
.theme-panel { position: fixed; left: 20px; bottom: 84px; width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); z-index: 1501; padding: 18px; animation: pop .25s; }
[data-theme="midnight"] .theme-panel { background: #0D1328; }
.theme-opt { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 2px solid var(--border); cursor: pointer; margin-bottom: 8px; transition: .2s; }
.theme-opt:hover { border-color: var(--primary); }
.theme-opt.active { border-color: var(--primary); background: var(--primary-50); }
.theme-opt .sw { width: 54px; height: 40px; border-radius: 10px; flex: none; position: relative; overflow: hidden; }
.theme-opt b { display: block; font-size: .88rem; } .theme-opt small { font-size: .72rem; color: var(--text-muted); }

/* bottom nav (mobile app) */
.bottom-nav { display: none; }
.page-enter { animation: pageIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.skeleton { background: linear-gradient(90deg, var(--bg-alt) 25%, var(--surface-2) 50%, var(--bg-alt) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty i { font-size: 46px; opacity: .4; }
.demo-ribbon { position: fixed; top: 10px; right: -42px; transform: rotate(45deg); background: var(--accent); color: #111; font-size: .62rem; font-weight: 800; padding: 3px 50px; z-index: 6000; letter-spacing: .1em; pointer-events: none; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.mobile-only { display: none; }
.cert { border: 8px double var(--accent); padding: 30px; text-align: center; background: #fffdf7; color: #222; border-radius: 6px; }
.qr { width: 92px; height: 92px; background: conic-gradient(#000 0 25%, #fff 0 50%, #000 0 75%, #fff 0) 0 0/12px 12px; border: 6px solid #fff; outline: 1px solid #ddd; }

/* ---------- responsive ---------- */
@media (max-width: 1440px) { .gov-logos { display: none; } .nav > .ni > a { padding: 10px 9px; font-size: .86rem; } .header .btn .hide-m { display: none; } }
@media (max-width: 1240px) { .nav { display: none; } .hamburger { display: grid; } .header .hide-m { display: none; } }
@media (max-width: 1200px) {
  .quick { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .hero-side { display: none; }
  .nav > .ni > a { padding: 10px 8px; font-size: .84rem; }
  .gov-logos { display: none; }
  .map-shell.three { grid-template-columns: 320px 1fr; }
  .map-shell.three > .map-side.right { width: 380px; z-index: 900; }
  .map-shell.three > .map-side.right { position: absolute; right: 0; top: 0; bottom: 0; width: 380px; box-shadow: var(--shadow-lg); }
  .footer .fgrid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav, .header .hide-m { display: none; }
  .hamburger { display: grid; }
  .header .container { min-height: 62px; gap: 10px; }
  .brand .logo { width: 42px; height: 42px; }
  .brand .bt b { font-size: .98rem; }
  .brand .bt span.en-sub { display: none; }
  .g-3, .g-4, .g-5, .g-6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .journey { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .journey .jstep:nth-child(n) { grid-column: auto; grid-row: auto; }
  .journey .jstep::after { display: none; }
  .land-teaser { grid-template-columns: 1fr; }
  .land-teaser .map-mini { min-height: 300px; }
  .hero-search .box { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .3s; box-shadow: 20px 0 60px rgba(0,0,0,.35); }
  .sidebar.open { transform: none; }
  .app-top { padding: 10px 14px; }
  .app-content { padding: 16px 14px 90px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dash-grid { grid-template-columns: 1fr; }
  .map-shell, .map-shell.three { grid-template-columns: 1fr; height: calc(100vh - 104px - 64px); height: calc(100dvh - 104px - 64px - env(safe-area-inset-bottom)); min-height: 420px; }
  .map-stats .ms:nth-child(n+3) { display: none; }
  .map-stats .ms { padding: 5px 9px; font-size: .7rem; }
  .map-tools button { width: 38px; height: 38px; font-size: 17px; }
  .map-tools { gap: 6px; }
  .map-side { position: absolute; left: 0; right: 0; bottom: 0; top: auto; max-height: 62%; border-radius: 22px 22px 0 0; border: 0; box-shadow: 0 -20px 50px -10px rgba(0,0,0,.35); transform: translateY(calc(100% - 64px)); transition: transform .35s cubic-bezier(.2,.8,.2,1); z-index: 900; }
  .map-side.open { transform: none; }
  .map-side .ms-head { cursor: pointer; border-radius: 22px 22px 0 0; }
  .map-side .ms-head::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--border); margin: -6px auto 10px; }
  .map-shell.three > .map-side.right { position: absolute; width: auto; left: 0; right: 0; top: auto; z-index: 901; }
  .map-shell.three > .map-side.right.hide-m2 { display: none; }
  .mobile-only { display: initial; }
  .desk-only { display: none !important; }
  .footer .fgrid { grid-template-columns: 1fr 1fr; }
  .fab.theme { bottom: 86px; left: 14px; width: 44px; height: 44px; }
  .fab.chat { bottom: 82px; right: 14px; width: 52px; height: 52px; }
  .chatbox { right: 8px; left: 8px; width: auto; bottom: 146px; height: calc(100vh - 230px); }
  .theme-panel { left: 8px; right: 8px; width: auto; bottom: 140px; }
  body.has-bnav { padding-bottom: 66px; }
  .map-page .fab.theme { display: none; }
  .map-page .fab.chat { bottom: 150px; width: 46px; height: 46px; font-size: 21px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--header-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--border); z-index: 1400; box-shadow: 0 -10px 30px -12px rgba(0,0,0,.18); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .66rem; font-weight: 600; color: var(--text-muted); position: relative; }
  .bottom-nav a i { font-size: 22px; transition: .2s; }
  .bottom-nav a.active { color: var(--primary); }
  .bottom-nav a.active i { transform: translateY(-2px); }
  .bottom-nav a.active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--primary); }
  .bottom-nav a.center i { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-top: -26px; box-shadow: 0 10px 22px -8px var(--primary); }
  .toasts { top: 70px; left: 10px; right: 10px; }
  .toast { min-width: 0; max-width: none; }
}
@media (max-width: 640px) {
  .topbar .tb-left .hide-xs, .topbar .tb-right .hide-xs { display: none; }
  .section { padding: 54px 0; }
  .g-2, .g-3, .g-4, .g-5, .g-6 { grid-template-columns: 1fr; }
  .g-2.keep-m, .g-3.keep-m, .g-4.keep-m { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quick { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .qt { padding: 12px 4px; font-size: .68rem; border-radius: 16px; gap: 6px; box-shadow: none; }
  .qt i { width: 44px; height: 44px; font-size: 21px; border-radius: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 18px 10px; }
  .hero { min-height: 560px; }
  .hero .slide .container { padding: 40px 0 110px; }
  .hero h1 { font-size: 1.95rem; }
  .countdown .cd { min-width: 60px; padding: 8px 8px; } .countdown .cd b { font-size: 1.3rem; }
  .gis-leaders .ld { padding: 6px 12px 6px 6px; } .gis-leaders img { width: 42px; height: 42px; }
  .hero-arrows { display: none; }
  .hero-search .box { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr 1fr; }
  .land-teaser .info { padding: 20px; }
  .gis-banner { padding: 28px 20px; }
  .footer .fgrid { grid-template-columns: 1fr; }
  .kpi b { font-size: 1.35rem; }
  .modal { border-radius: 22px 22px 0 0; align-self: end; max-height: 92vh; animation: slideUp .3s ease; }
  .overlay { padding: 0; place-items: end stretch; }
  .modal-body { padding: 16px; }
  .page-hero { padding: 30px 0 60px; }
  .kanban { grid-template-columns: repeat(5, 260px); }
  .brand .bt span { display: none; }
  .brand { flex: 1 1 auto; min-width: 0; max-width: none; gap: 8px; }
  .brand .bt b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { gap: 6px; flex: none; }
  .header .icon-btn { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
  .header [data-logout] { display: none; }
  .topbar [data-fs] { display: none; }
  .hero .slide .container { padding: 34px 0 150px; }
  .hero-dots { bottom: 92px; }
  .hero .cta .btn-lg { padding: .75em 1.1em; font-size: .9rem; }
  .hero-search { margin-top: -56px; }
  .gis-leaders { gap: 10px; margin-top: 18px; }
  .hero .eyebrow { font-size: .7rem; }
}
@media print { .header, .topbar, .footer, .bottom-nav, .fab, .ticker { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
