:root {
    --ink: #172033;
    --navy: #22324a;
    --navy-2: #18263b;
    --sage: #2d7a6a;
    --sage-light: #dff2eb;
    --coral: #ed725d;
    --amber: #d99b3d;
    --paper: #f5f6f2;
    --white: #fff;
    --line: #dfe3df;
    --muted: #6e7784;
    --shadow: 0 12px 40px rgba(31, 45, 57, .08);
    --font-heading: "Manrope", sans-serif;
    --font-body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { height: 100%; }
body { margin: 0; min-height: 100%; color: var(--ink); background: var(--paper); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.hidden { display: none !important; }

.demo-access-banner { margin: 0 0 20px; padding: 12px 18px; border: 1px solid #edb75a; border-radius: 12px; background: #fff7e7; color: #704b09; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.demo-access-banner strong { color: #9b5700; text-transform: uppercase; letter-spacing: .08em; }
.demo-access-banner span { flex: 1; min-width: 260px; }
.demo-repository-grid, .commercial-requirement-list { display: grid; gap: 18px; margin-top: 20px; }
.demo-repository-card, .commercial-requirement-card { display: grid; gap: 16px; }
.demo-metrics, .commercial-estimate-metrics { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 10px; }
.demo-metrics span, .commercial-estimate-metrics span { padding: 12px; border-radius: 10px; background: #f3f6f3; color: #647067; }
.demo-metrics b, .commercial-estimate-metrics b { display: block; color: #14253d; font-size: 1.15rem; }
.demo-import-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid #e1e6e1; }
.demo-import-form label { flex: 1; min-width: 260px; }
.commercial-estimate-result { margin-top: 20px; }
.estimate-breakdown { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 8px; margin: 16px 0; }
.estimate-breakdown span { padding: 10px 12px; border: 1px solid #dfe5df; border-radius: 9px; }
.estimate-breakdown b { display: inline-block; min-width: 68px; color: #237a68; }

@media (max-width: 760px) {
  .demo-metrics, .commercial-estimate-metrics, .estimate-breakdown { grid-template-columns: 1fr 1fr; }
}

.brand { display: flex; align-items: center; gap: 11px; font: 800 19px var(--font-heading); letter-spacing: 0; }
.brand-light { color: #fff; position: relative; z-index: 2; }
.brand-mark { width: 31px; height: 31px; position: relative; display: inline-block; }
.brand-mark i { position: absolute; width: 21px; height: 8px; left: 5px; border: 2px solid var(--sage); border-radius: 50%; transform: rotate(-20deg); }
.brand-mark i:nth-child(1) { top: 3px; }
.brand-mark i:nth-child(2) { top: 10px; transform: rotate(20deg); }
.brand-mark i:nth-child(3) { top: 17px; transform: rotate(-20deg); }
.brand-light .brand-mark i { border-color: #8fd1bd; }
.logo-mark { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; overflow: visible; flex: 0 0 auto; }
.logo-mark img { display: block; width: 46px; height: 46px; object-fit: contain; }
.brand-light .logo-mark { filter: drop-shadow(0 5px 14px rgba(0,0,0,.28)); }
.eyebrow { display: block; color: var(--sage); text-transform: uppercase; letter-spacing: 1.7px; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.eyebrow.light { color: #a8dacb; }

/* Login */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.2fr) minmax(430px, .8fr); }
.login-story { position: relative; overflow: hidden; padding: 42px 56px; background: var(--navy-2); color: white; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.login-story::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 18%, rgba(55, 140, 119, .28), transparent 35%), linear-gradient(135deg, transparent 55%, rgba(255,255,255,.025)); z-index: -2; }
.story-grid { position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom right, transparent, black, transparent); z-index: -1; }
.story-copy { max-width: 660px; position: relative; z-index: 2; padding: 80px 0 70px; }
.story-copy h1 { margin: 0 0 26px; font: 700 clamp(44px, 5vw, 74px)/1.05 var(--font-heading); letter-spacing: -3.4px; }
.story-copy h1 em { font-style: normal; color: #8fd1bd; }
.story-copy > p { font-size: 19px; line-height: 1.65; color: #cad1d8; max-width: 580px; }
.story-metrics { display: flex; gap: 42px; margin-top: 54px; }
.story-metrics div { display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.2); padding-left: 17px; }
.story-metrics strong { font: 700 22px var(--font-heading); }
.story-metrics span { color: #aeb7c1; font-size: 12px; margin-top: 4px; }
.orbital-rings { position: absolute; width: 480px; height: 480px; border-radius: 50%; right: -220px; bottom: -160px; opacity: .7; }
.orbital-rings span { position: absolute; inset: 0; border: 1px solid rgba(143,209,189,.25); border-radius: 50%; }
.orbital-rings span:nth-child(2) { inset: 60px; }
.orbital-rings span:nth-child(3) { inset: 130px; }
.orbital-rings b { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--coral); left: 25px; top: 130px; box-shadow: 0 0 0 8px rgba(237,114,93,.13); }
.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; background: #fbfcf9; position: relative; min-height: 100vh; overflow-y: auto; }
.login-card { width: 100%; max-width: 430px; margin: auto 0; }
.login-card h2 { font: 800 38px var(--font-heading); letter-spacing: -1.6px; margin: 0 0 8px; }
.login-card > p { color: var(--muted); margin: 0 0 32px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
input, select { width: 100%; height: 48px; border: 1px solid #d7dcd8; border-radius: 9px; background: #fff; padding: 0 14px; color: var(--ink); outline: none; transition: .2s; }
input:focus, select:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(45,122,106,.12); }
label > input, label > select { margin-top: 7px; }
.field-help { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 5px; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin: -1px 0 22px; font-size: 13px; }
.check-label { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 500; }
.check-label input { width: 16px; height: 16px; accent-color: var(--sage); }
.muted-link, .text-link { color: var(--sage); text-decoration: none; font-weight: 700; font-size: 13px; }
button.muted-link { border: 0; padding: 0; background: transparent; cursor: pointer; font-family: inherit; }
.btn { min-height: 44px; border-radius: 8px; padding: 0 17px; border: 1px solid transparent; font-weight: 700; font-size: 13px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(27,43,54,.12); }
.btn-primary { background: var(--coral); color: white; }
.btn-primary:hover { background: #de634f; }
.btn-secondary { border-color: #ccd4cf; color: var(--ink); background: white; }
.btn-light { background: white; color: var(--navy); }
.btn-block { width: 100%; }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 12px; }
.form-message { min-height: 18px; margin: 12px 0 0 !important; color: #bd4434 !important; font-size: 13px; }
.demo-note { background: #eef4ef; border-radius: 9px; padding: 14px 16px; margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.demo-note strong { font-size: 12px; color: var(--sage); }
.demo-note span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.login-foot { position: static; font-size: 11px; color: #8c9399; margin: 24px 0 0; text-align: center; }
.mobile-brand { display: none; }
.language-control { margin: 0; display: inline-flex; align-items: center; }
.language-control select { width: 92px; height: 36px; border-radius: 8px; padding: 0 25px 0 10px; background-color: white; font-size: 11px; font-weight: 700; cursor: pointer; }
.login-language { position: absolute; top: 26px; right: 28px; z-index: 3; }

/* Application shell */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; background: #fbfcf9; border-right: 1px solid var(--line); padding: 26px 20px 18px; display: flex; flex-direction: column; z-index: 30; overflow: hidden; }
.workspace-pill { margin: 26px 0 24px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 10px; }
.workspace-logo, .avatar { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: white; font-weight: 700; flex: 0 0 auto; }
.workspace-pill div { min-width: 0; }
.workspace-pill strong, .workspace-pill span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-pill strong { font-size: 12px; }
.workspace-pill div span { color: var(--muted); font-size: 10px; margin-top: 3px; text-transform: capitalize; }
.side-nav { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #cdd5d0 transparent; }
.nav-label { color: #9aa09f; font-size: 9px; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 700; margin: 13px 10px 6px; }
.nav-item { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; border-radius: 8px; padding: 0 11px; cursor: pointer; color: #657080; font-size: 13px; font-weight: 600; text-align: left; }
.nav-item:hover { background: #f0f3ef; color: var(--ink); }
.nav-item.active { background: var(--navy); color: white; box-shadow: 0 7px 16px rgba(34,50,74,.16); }
.nav-count { margin-left: auto; font-size: 10px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: var(--coral); color: white; }
.sidebar-foot { margin-top: 10px; flex: 0 0 auto; }
.status-line { display: flex; gap: 8px; align-items: center; padding: 13px 10px; color: var(--muted); font-size: 10px; border-bottom: 1px solid var(--line); }
.status-line i, .live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #49a882; box-shadow: 0 0 0 4px rgba(73,168,130,.12); }
.user-chip { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; background: transparent; border: 0; padding: 13px 5px 0; text-align: left; cursor: pointer; }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { font-size: 12px; }
.user-chip small { color: var(--muted); margin-top: 2px; text-transform: capitalize; }
.main { margin-left: 248px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 68px; position: sticky; top: 0; z-index: 20; background: rgba(245,246,242,.88); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(214,220,216,.8); display: flex; align-items: center; justify-content: space-between; padding: 0 34px; }
.search-box { position: relative; width: min(420px, 45vw); }
.search-box .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; color: #90999f; }
.search-box input { height: 39px; border: 0; background: #eaece8; padding-left: 40px; font-size: 12px; }
.search-box.compact { width: 100%; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-button, .language-button, .profile-button { border: 0; background: transparent; cursor: pointer; min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.icon-button:hover, .language-button:hover, .profile-button:hover { background: #e9ece7; }
.language-button { gap: 4px; font-size: 11px; font-weight: 700; }
.profile-button { gap: 8px; padding: 0 8px; }
.profile-button .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--sage); font-size: 11px; }
.profile-name { font-size: 12px; font-weight: 700; }
.notification-button { position: relative; }
.notification-button i { position: absolute; width: 7px; height: 7px; background: var(--coral); border-radius: 50%; right: 8px; top: 7px; border: 2px solid var(--paper); }
.mobile-menu { display: none; }
.content { padding: 34px 34px 54px; max-width: 1600px; width: 100%; margin: 0 auto; flex: 1 0 auto; }
.page { display: none; animation: fadeUp .32s ease; }
.page.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-heading h1 { font: 800 clamp(26px, 3vw, 36px)/1.1 var(--font-heading); letter-spacing: -1.5px; margin: 0; }
.page-heading p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.heading-actions { display: flex; gap: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat-card, .panel { background: white; border: 1px solid #e1e5e1; border-radius: 11px; box-shadow: 0 3px 15px rgba(32,47,55,.025); }
.stat-card { min-height: 150px; padding: 20px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.stat-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--sage-light); color: var(--sage); margin-bottom: 16px; }
.stat-icon.coral { background: #fbe7e2; color: var(--coral); }
.stat-icon.amber { background: #fff1d7; color: var(--amber); }
.stat-icon .icon { width: 18px; }
.stat-card > span { color: var(--muted); font-size: 11px; font-weight: 600; }
.stat-card > strong { font: 800 31px var(--font-heading); margin: 4px 0; }
.stat-card > small { color: #9aa09f; font-size: 10px; }
.stat-card > small b { color: var(--sage); }
.primary-stat { background: var(--navy); color: white; border-color: var(--navy); }
.primary-stat .stat-icon { background: rgba(143,209,189,.13); color: #8fd1bd; }
.primary-stat > span, .primary-stat > small { color: #b9c2cc; }
.scan-card { background: #eef3ee; }
.scan-card > strong { font-size: 20px; margin-top: 13px; }
.scan-lines { position: absolute; right: 15px; bottom: 18px; display: flex; align-items: end; gap: 4px; height: 48px; opacity: .55; }
.scan-lines i { width: 5px; height: 15px; background: var(--sage); border-radius: 3px; }
.scan-lines i:nth-child(2) { height: 34px; }.scan-lines i:nth-child(3) { height: 23px; }.scan-lines i:nth-child(4) { height: 42px; }.scan-lines i:nth-child(5) { height: 29px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .8fr); gap: 14px; }
.panel { padding: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.panel-head h2, .list-head h2 { font: 700 17px var(--font-heading); letter-spacing: -.5px; margin: 0; }
.panel-head .eyebrow, .list-head .eyebrow { margin-bottom: 4px; }
.map-view { background: #e7ebe4; border-radius: 8px; height: 360px; overflow: hidden; }
.map-view.leaflet-container { font-family: var(--font-body); }
.leaflet-tile-pane { filter: saturate(.65) contrast(.95) brightness(1.03); }
.leaflet-control-attribution { font-size: 8px !important; }
.custom-marker { width: 22px !important; height: 22px !important; border-radius: 50%; background: var(--sage); border: 4px solid white; box-shadow: 0 0 0 4px rgba(45,122,106,.18), 0 3px 10px rgba(0,0,0,.25); }
.custom-marker.alert { background: var(--coral); box-shadow: 0 0 0 6px rgba(237,114,93,.2), 0 3px 10px rgba(0,0,0,.25); }
.map-legend { display: flex; gap: 18px; font-size: 10px; color: var(--muted); margin-top: 12px; }
.map-legend span { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend-safe { background: var(--sage); }.legend-watch { background: var(--amber); }.legend-alert { background: var(--coral); }
.alert-list { display: flex; flex-direction: column; }
.alert-row { padding: 13px 0; display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: start; border-bottom: 1px solid #edf0ec; }
.alert-row:last-child { border-bottom: 0; }
.alert-indicator { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #f9e9e5; color: var(--coral); font-size: 15px; }
.alert-row h3 { margin: 0 0 3px; font-size: 12px; }
.alert-row p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.alert-row time { font-size: 9px; color: #9aa09f; white-space: nowrap; }
.activity-panel { margin-top: 14px; }
.live-pill, .role-badge { border: 1px solid #cfe4da; color: var(--sage); border-radius: 14px; font-size: 10px; padding: 5px 9px; display: inline-flex; align-items: center; gap: 7px; background: #f3faf7; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.timeline-item { position: relative; border-left: 1px solid var(--line); padding: 2px 22px; min-height: 62px; }
.timeline-item:first-child { border-left: 0; padding-left: 0; }
.timeline-item strong { display: block; font-size: 12px; margin-bottom: 5px; }
.timeline-item span { color: var(--muted); font-size: 10px; line-height: 1.4; }

/* Monitoring */
.monitor-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .65fr); gap: 14px; align-items: start; }
.monitor-map-panel { padding: 0; overflow: hidden; }
.map-toolbar { padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.map-toolbar strong, .map-toolbar span { display: block; }
.map-toolbar strong { font-size: 13px; }
.map-toolbar span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.map-toolbar .capture-mode-badge { display: inline-flex; width: fit-content; margin-top: 7px; padding: 4px 8px; border-radius: 12px; background: var(--sage-light); color: var(--sage); font-weight: 700; }
.gps-permission-button { position: relative; font-size: 18px; }
.gps-permission-button::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 7px; height: 7px; border-radius: 50%; background: #d2a94f; border: 1px solid white; }
.gps-permission-button.granted::after { background: #3e9b78; }
.gps-permission-button.denied::after, .gps-permission-button.unavailable::after { background: #d66755; }
.toolbar-actions { display: flex; gap: 7px; }
.large-map { height: min(66vh, 640px); border-radius: 0; }
.large-map.curve-tracing { touch-action: none !important; user-select: none; }
.draw-progress { padding: 12px 16px; background: var(--navy); color: white; display: flex; align-items: center; gap: 18px; font-size: 11px; }
.draw-progress span:nth-child(2) { color: #bac3cd; flex: 1; }
.draw-progress .live-area { color: #8fd1bd; font-weight: 700; white-space: nowrap; }
.selected-area-review { border-top: 1px solid var(--line); padding: 18px; background: #f8faf8; }
.selected-area-review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 13px; }
.selected-area-review-head h2 { margin: 3px 0 4px; font: 700 18px var(--font-heading); }
.selected-area-review-head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.selected-area-image-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 14px; }
.selected-imagery-map { min-height: 390px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #e5ebe6; }
.selected-imagery-map .leaflet-tile-pane { filter: none; }
.image-review-note { margin: 7px 2px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.selected-area-review-details { display: flex; flex-direction: column; gap: 10px; }
.area-review-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.area-review-facts span { border: 1px solid var(--line); border-radius: 7px; padding: 9px; background: white; min-width: 0; }
.area-review-facts small { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.area-review-facts strong { display: block; margin-top: 3px; font-size: 10px; overflow-wrap: anywhere; }
.area-alert-summary, .area-provider-picker { border-radius: 8px; padding: 12px; background: white; border: 1px solid var(--line); }
.area-alert-summary h3 { margin: 4px 0 6px; font: 700 12px var(--font-heading); }
.area-alert-summary p, .area-provider-picker p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.area-alert-summary strong { color: var(--ink); }
.area-provider-picker label { margin: 0; }
.area-provider-picker select { margin-top: 5px; }
.area-provider-picker > div { display: flex; gap: 7px; margin-top: 10px; }
.area-provider-picker > div .btn { flex: 1; }
.area-list-panel { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 18px; max-height: calc(66vh + 78px); overflow: auto; }
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.count-pill { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #edf2ee; color: var(--sage); font-size: 11px; font-weight: 700; }
.property-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.property-card { border: 1px solid var(--line); border-radius: 9px; padding: 13px; cursor: pointer; transition: .2s; }
.property-card:hover, .property-card.active { border-color: #87b5a7; box-shadow: 0 6px 16px rgba(44,89,75,.08); }
.property-card.active { background: #f4faf6; }
.property-card-head { display: flex; justify-content: space-between; gap: 10px; }
.property-card h3 { font-size: 12px; margin: 0 0 4px; }
.property-card p { margin: 0; color: var(--muted); font-size: 10px; }
.status-dot { width: 8px; height: 8px; background: var(--sage); border-radius: 50%; margin-top: 3px; }
.property-meta { display: flex; gap: 7px 11px; flex-wrap: wrap; margin-top: 11px; color: #858e96; font-size: 9px; }
.property-actions { display: flex; gap: 6px; margin-top: 11px; }
.property-actions button { flex: 1; border: 1px solid #dce2dd; border-radius: 6px; background: white; height: 29px; font-size: 9px; font-weight: 700; cursor: pointer; }

/* Alerts, reports, tables */
.filter-bar { display: grid; grid-template-columns: 1fr 190px 190px; gap: 10px; margin-bottom: 14px; padding: 14px; }
.filter-bar select { height: 39px; font-size: 12px; }
.alert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.alert-card { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 18px; position: relative; }
.alert-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.severity-badge, .status-badge { display: inline-flex; border-radius: 12px; padding: 4px 8px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.severity-high, .severity-critical { background: #fbe5e1; color: #b94f3e; }
.severity-medium { background: #fff0d7; color: #9e6c20; }
.severity-low { background: #e5f3ed; color: var(--sage); }
.status-badge { margin-left: auto; background: #edf0ed; color: #707983; }
.alert-card h2 { font: 700 15px var(--font-heading); margin: 0 0 7px; }
.alert-card p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0; }
.alert-property-name { display: block; margin-bottom: 5px; color: var(--sage); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.plain-alert-explanation { display: grid; gap: 7px; margin-top: 13px; }
.plain-alert-explanation p { padding: 10px; border-radius: 7px; background: #f5f7f4; font-size: 10px; }
.plain-alert-explanation p:first-child { background: #fff3e9; }
.plain-alert-explanation strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 9px; }
.alert-evidence-note { margin-top: -6px !important; font-size: 9px !important; }
.alert-data { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 15px 0; padding: 12px 0; }
.alert-data span { display: flex; flex-direction: column; color: var(--muted); font-size: 9px; }
.alert-data strong { color: var(--ink); font-size: 11px; margin-top: 3px; }
.alert-actions { display: flex; justify-content: flex-end; gap: 7px; }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.property-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.property-report-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 19px; }
.property-report-head { display: flex; justify-content: space-between; gap: 14px; }
.property-report-head h2 { margin: 3px 0 4px; font: 700 16px var(--font-heading); }
.property-report-head p, .report-detail { color: var(--muted); font-size: 10px; margin: 0; }
.property-report-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0 12px; }
.property-report-metrics span { border: 1px solid #e4e8e4; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.property-report-metrics small, .dashboard-report-row small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .6px; }
.property-report-metrics strong { font-size: 11px; }
.metric-alert { color: var(--coral) !important; }
.property-report-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 15px; }
.dashboard-report-list { display: flex; flex-direction: column; }
.dashboard-report-row { display: grid; grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(100px, .7fr)) auto; gap: 13px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf0ec; }
.dashboard-report-row:last-child { border-bottom: 0; }
.dashboard-report-row > div, .dashboard-report-row > span { display: flex; flex-direction: column; min-width: 0; }
.dashboard-report-row strong { font-size: 11px; }
.dashboard-report-row div span { color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-report-row b { margin-top: 3px; font-size: 9px; font-weight: 700; }
.report-card { min-height: 260px; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.report-card.featured { background: var(--navy); color: white; border-color: var(--navy); }
.report-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #eef3ee; color: var(--sage); font-size: 20px; }
.featured .report-icon { background: rgba(255,255,255,.11); color: #9ed3c4; }
.report-card h2 { font: 700 18px var(--font-heading); margin: 12px 0 8px; }
.report-card p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.featured p { color: #bec7d0; }
.table-panel { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { background: #f0f2ee; color: #7e868e; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; text-align: left; padding: 13px 16px; position: sticky; top: 0; }
td { padding: 14px 16px; border-top: 1px solid #edf0ec; color: #56606b; }
td strong { display: block; color: var(--ink); }
td small { color: #8b9299; }
.table-action { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 5px 8px; font-size: 10px; cursor: pointer; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.intelligence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.insight-list { display: flex; flex-direction: column; gap: 4px; }
.insight-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: start; padding: 13px 0; border-bottom: 1px solid #edf0ec; }
.insight-item:last-child { border-bottom: 0; }
.insight-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--sage-light); color: var(--sage); display: grid; place-items: center; font-size: 17px; }
.insight-item h3 { margin: 0 0 3px; font-size: 11px; text-transform: capitalize; }
.insight-item strong { font: 700 15px var(--font-heading); }
.insight-item p { color: var(--muted); margin: 4px 0 0; font-size: 9px; line-height: 1.45; }
.insight-item time { color: #929aa1; font-size: 9px; white-space: nowrap; }
.raci-table th:not(:first-child), .raci-table td:not(:first-child) { text-align: center; min-width: 95px; }
.raci-table td:first-child { min-width: 210px; }
.raci-table td small { display: block; margin-top: 3px; }
.raci-select { width: 62px; height: 34px; padding: 0 8px; font-weight: 700; text-align: center; }
.access-toolbar { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 16px; align-items: end; margin-bottom: 14px; }
.access-toolbar label { margin: 0; }
.access-toolbar strong { display: block; font: 700 15px var(--font-heading); }
.access-toolbar span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.access-table td:not(:first-child), .access-table th:not(:first-child) { text-align: center; min-width: 78px; }
.access-table td:first-child { min-width: 255px; }
.access-check { width: 100%; display: grid; place-items: center; margin: 0; }
.access-check input { width: 17px; height: 17px; accent-color: var(--sage); }
.user-exception-form { margin-top: 14px; }
.override-list { display: grid; gap: 8px; }
.override-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.override-item:last-child { border-bottom: 0; }
.override-item strong, .override-item span, .override-item small { display: block; }
.override-item span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.override-item small { color: #8b9299; font-size: 9px; margin-top: 3px; }
.polygon-select-check { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 5px; color: var(--sage); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.polygon-select-check input { width: 14px; height: 14px; accent-color: var(--sage); }
.feature-card { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.feature-card .stat-icon { margin: 0; }
.feature-card div:nth-child(2) { flex: 1; }
.feature-card h2 { font-size: 14px; margin: 0 0 4px; }
.feature-card p { font-size: 10px; color: var(--muted); margin: 0; }
.switch { position: relative; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #ccd1ce; border-radius: 12px; cursor: pointer; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: .2s; box-shadow: 0 1px 5px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--sage); }
.switch input:checked + span::after { transform: translateX(18px); }
.security-note { margin-top: 14px; display: flex; gap: 15px; align-items: center; }
.runner-note { margin-bottom: 14px; display: flex; gap: 15px; align-items: center; }
.runner-note .stat-icon { margin: 0; flex: 0 0 auto; }
.runner-note > div:nth-child(2) { flex: 1; }
.runner-note h2 { margin: 0 0 5px; font: 700 15px var(--font-heading); }
.runner-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.runner-note code { color: var(--sage); background: #edf3ef; padding: 2px 4px; border-radius: 4px; }
.security-note .stat-icon { margin: 0; flex: 0 0 auto; }
.security-note h2 { margin: 0 0 5px; font: 700 15px var(--font-heading); }
.security-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.live-imagery-runner { margin-bottom: 14px; }
.live-imagery-controls { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto; gap: 12px; align-items: end; }
.live-imagery-controls label { margin: 0; }
.auto-provider-comment, .selection-help { margin: 9px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.auto-provider-comment { padding: 9px 11px; border-left: 3px solid var(--sage); background: #eef4ef; border-radius: 0 7px 7px 0; color: var(--ink); }
.provider-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.live-provider-option { margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: 8px; display: flex; gap: 9px; align-items: flex-start; background: #fbfcfa; }
.live-provider-option:has(input:checked) { border-color: var(--sage); background: #eef4ef; box-shadow: inset 0 0 0 1px var(--sage); }
.live-provider-option input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--sage); flex: 0 0 auto; }
.live-provider-option span { display: flex; flex-direction: column; gap: 3px; }
.live-provider-option strong { font: 700 11px var(--font-heading); }
.live-provider-option small { color: var(--sage); font-size: 8px; }
.live-provider-option em { color: var(--muted); font-size: 8px; font-style: normal; line-height: 1.45; }
.live-imagery-result { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.live-comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.live-scene-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.live-scene-card.recommended { border-color: var(--sage); box-shadow: 0 8px 22px rgba(45,122,106,.13); }
.scene-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fit-score { white-space: nowrap; padding: 5px 8px; border-radius: 999px; background: #edf3ef; color: var(--sage); font-size: 9px; font-weight: 800; }
.live-imagery-visual { display: grid; grid-template-columns: 1fr 110px; gap: 8px; min-width: 0; margin: 10px 0; }
.live-scene-map { min-height: 300px; border-radius: 9px; overflow: hidden; background: #e8eeea; }
.live-imagery-visual > img { width: 150px; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.live-imagery-visual > img.live-scene-preview { width: 100%; height: 300px; grid-column: 1 / -1; }
.live-imagery-result h3 { margin: 4px 0 6px; font: 800 18px var(--font-heading); }
.live-imagery-result p { margin: 0 0 12px; overflow-wrap: anywhere; color: var(--sage); font-size: 10px; }
.live-imagery-result dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 12px; }
.live-imagery-result dl div { padding: 9px; background: #f3f5f2; border-radius: 7px; }
.live-imagery-result dt { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.live-imagery-result dd { margin: 3px 0 0; color: var(--ink); font: 700 11px var(--font-heading); }
.live-imagery-result small { color: var(--muted); font-size: 9px; line-height: 1.55; }
.provider-suggestion { margin: 0 0 10px; padding: 9px; background: #fff7e3; border-radius: 7px; display: grid; gap: 3px; font-size: 9px; line-height: 1.45; }
.provider-suggestion strong { color: #8b6716; }
.provider-error-list { display: grid; gap: 5px; margin-top: 10px; color: #a94435; font-size: 9px; }
.analytics-map-runner { margin-bottom: 14px; }

/* Satellite service administration */
.satellite-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.satellite-summary article, .usage-grid article { background: var(--navy); color: white; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.satellite-summary small, .usage-grid small { color: #aab8c9; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.satellite-summary strong, .usage-grid strong { font: 700 13px var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.satellite-policy-form { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.form-grid small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.labeled-switch { width: auto; min-width: 42px; padding-left: 52px; display: inline-flex; align-items: center; white-space: nowrap; }
.labeled-switch > span { width: 42px; right: auto; }
.labeled-switch b { font-size: 10px; color: var(--muted); }
.entitlement-toggle-grid, .feature-checkbox-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 4px 0 18px; }
.entitlement-toggle-grid label, .feature-checkbox-grid label { padding: 10px 11px; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfa; display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 10px; line-height: 1.35; }
.entitlement-toggle-grid input, .feature-checkbox-grid input { width: 15px; height: 15px; margin: 0; flex: 0 0 auto; accent-color: var(--sage); }
.entitlement-toggle-grid input:disabled, .feature-checkbox-grid input:disabled { opacity: .35; }
.form-section-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.satellite-admin-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-bottom: 14px; }
.area-quota-note { margin-top: 7px !important; color: #2d7a6a !important; font-size: 13px; font-weight: 700; }
.area-quota-note.limit-reached { color: #b5483b !important; }
.area-limit-panel { margin-bottom: 14px; }
.area-limit-controls { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.area-limit-controls > label { min-width: 210px; }
.area-limit-controls > div > span { display: block; color: var(--muted); margin-top: 4px; }
.area-limit-summary { display: flex !important; gap: 22px; margin-left: auto; }
.area-limit-summary span { display: grid !important; gap: 3px; }
.area-limit-summary small { color: var(--muted); }
.area-limit-summary strong { font-size: 20px; }
.area-allocation-editor { display: grid; grid-template-columns: minmax(70px, 100px) auto; align-items: center; gap: 4px 8px; }
.area-allocation-editor input { min-width: 70px; }
.area-allocation-editor small { color: var(--muted); }
.area-allocation-editor .table-action { grid-column: 1 / -1; justify-self: start; }
.muted-value { color: var(--muted); font-size: 13px; }
.update-manager-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr); gap:14px; margin-bottom:14px; }
.update-side-stack { display:grid; gap:14px; }
.update-release-card code { padding:2px 6px; border-radius:6px; background:#edf3f0; color:#285e51; }
.update-release-card > label:not(.check-label) { display:grid; gap:7px; margin-top:18px; }
.update-release-card input[type="file"] { width:100%; padding:14px; border:1px dashed #b9cec6; border-radius:12px; background:#f8fbfa; }
.update-history-panel { margin-bottom:14px; }
.danger-action { color:#b5483b !important; }
.provider-grid, .package-grid { display: grid; gap: 9px; }
.provider-card, .package-card { border: 1px solid var(--line); border-radius: 9px; padding: 13px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; background: #fff; }
.provider-card h3, .package-card h3 { margin: 4px 0 3px; font: 700 13px var(--font-heading); }
.provider-card p, .package-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.provider-card .provider-advice { margin-top: 7px; padding: 7px 8px; border-radius: 6px; background: #eef4ef; color: var(--ink); }
.cost-pill { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #edf2ee; color: var(--sage); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.cost-pill.paid { background: #fff0e9; color: #b55740; }
.cost-pill.hybrid { background: #fff6dc; color: #8b6716; }
.provider-capabilities { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.provider-capabilities span, .provider-capabilities label { background: #f3f5f2; border-radius: 5px; padding: 5px 7px; margin: 0; color: var(--muted); font-size: 8px; display: flex; gap: 5px; align-items: center; }
.provider-capabilities input { width: 13px; height: 13px; margin: 0; accent-color: var(--sage); }
.provider-config { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; display: grid; grid-template-columns: .8fr 1.5fr .55fr auto; gap: 8px; align-items: end; }
.provider-config label { margin: 0; font-size: 8px; }
.provider-config input, .provider-config select { min-height: 34px; padding: 7px 8px; margin-top: 4px; font-size: 9px; }
.package-metrics { display: flex; gap: 8px; grid-column: 1 / -1; }
.package-metrics span { flex: 1; border-top: 1px solid var(--line); padding-top: 8px; color: var(--muted); font-size: 8px; }
.package-metrics b { display: block; color: var(--ink); font-size: 11px; }
.usage-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.usage-grid article { background: #eef4ef; color: var(--ink); }
.usage-grid article small { color: var(--sage); }
.usage-grid article span { color: var(--muted); font-size: 9px; }

/* Modal and toast */
.modal { width: min(540px, calc(100vw - 28px)); border: 0; border-radius: 13px; padding: 0; color: var(--ink); box-shadow: 0 30px 80px rgba(21,33,43,.3); }
.modal.wide-modal { width: min(960px, calc(100vw - 28px)); }
.modal[open] { max-height: min(90vh, 820px); overflow-y: auto; }
.modal::backdrop { background: rgba(18,29,41,.58); backdrop-filter: blur(3px); }
.modal form { padding: 24px; }
.modal-head { display: flex; justify-content: space-between; margin-bottom: 22px; }
.modal-head h2 { font: 800 22px var(--font-heading); margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.range-value { float: right; color: var(--sage); }
input[type="range"] { padding: 0; box-shadow: none; accent-color: var(--sage); }
.boundary-summary { padding: 13px 15px; background: #eef4ef; border-radius: 8px; display: grid; grid-template-columns: 1fr auto; margin-bottom: 20px; }
.boundary-summary span, .boundary-summary small { color: var(--muted); font-size: 10px; }
.boundary-summary strong { font: 700 16px var(--font-heading); color: var(--sage); grid-row: span 2; }
.csv-preview-grid { display: grid; grid-template-columns: 280px 1fr; gap: 12px; align-items: stretch; margin: 12px 0 16px; }
.csv-preview-grid .boundary-summary { margin: 0; min-height: 150px; align-content: center; }
.csv-preview-map { height: 300px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.csv-coordinate-list { max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; }
.csv-coordinate-list:empty { display: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.modal-help { background: #f2f4f1; padding: 12px; border-radius: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.capture-mode-grid { display: grid; gap: 10px; margin-bottom: 16px; }
.capture-mode-card { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 15px; display: flex; flex-direction: column; gap: 5px; text-align: left; cursor: pointer; transition: .2s; }
.capture-mode-card:hover { border-color: var(--sage); background: #f4faf6; transform: translateY(-1px); }
.capture-mode-card.featured { border-color: #94b8a9; background: #eef7f2; }
.capture-mode-card strong { font: 700 14px var(--font-heading); }
.capture-mode-card span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.development-otp { background: #fff4d9; color: #845c18; padding: 10px 12px; border-radius: 8px; font-size: 12px; }
.temporary-password { display: flex; gap: 10px; align-items: center; background: #eef4ef; border: 1px dashed #94b8a9; border-radius: 9px; padding: 14px; margin: 16px 0 22px; }
.temporary-password code { flex: 1; font: 700 18px monospace; letter-spacing: 1px; color: var(--navy); }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; flex-direction: column; gap: 9px; }
.toast { min-width: 280px; max-width: 390px; padding: 13px 16px; border-radius: 9px; background: var(--navy); color: white; box-shadow: 0 15px 40px rgba(0,0,0,.22); display: flex; gap: 10px; align-items: center; animation: toastIn .25s ease; font-size: 12px; }
.toast.success::before { content: "✓"; color: #8fd1bd; font-weight: 800; }
.toast.error::before { content: "!"; color: #ff9d8b; font-weight: 800; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 12px; }
.bottom-nav, .mobile-overlay { display: none; }
.app-footer { border-top: 1px solid var(--line); background: #fbfcf9; padding: 22px 34px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; color: var(--muted); font-size: 10px; flex: 0 0 auto; }
.app-footer > div { display: flex; flex-direction: column; gap: 3px; }
.app-footer strong { color: var(--ink); font: 700 13px var(--font-heading); }
.app-footer nav { display: flex; gap: 5px; }
.app-footer button { border: 0; background: transparent; color: var(--sage); font-size: 10px; font-weight: 700; cursor: pointer; padding: 7px 8px; border-radius: 6px; }
.app-footer button:hover { background: #edf2ee; }

@media (max-width: 1100px) {
    .update-manager-grid { grid-template-columns:1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid, .monitor-layout { grid-template-columns: 1fr; }
    .csv-preview-grid { grid-template-columns: 1fr; }
    .area-list-panel { max-height: none; }
    .report-grid, .property-report-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-report-row { grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(95px, .7fr)) auto; }
    .dashboard-report-row > span:nth-of-type(3) { display: none; }
    .satellite-summary { grid-template-columns: repeat(3, 1fr); }
    .form-grid, .feature-checkbox-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .satellite-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .login-shell { display: block; min-height: 100vh; }
    .login-story { display: none; }
    .login-panel { min-height: 100vh; padding: 78px 22px 28px; justify-content: flex-start; }
    .mobile-brand { display: flex; position: absolute; top: 26px; left: 24px; }
    .login-foot { width: 100%; text-align: center; }
    .login-language { top: 24px; right: 20px; }
    .login-card h2 { font-size: 32px; }
    .sidebar { transform: translateX(-102%); transition: transform .25s ease; box-shadow: 12px 0 40px rgba(0,0,0,.16); }
    .sidebar.open { transform: translateX(0); }
    .mobile-overlay { position: fixed; inset: 0; z-index: 25; background: rgba(15,24,33,.4); }
    .mobile-overlay.visible { display: block; }
    .main { margin-left: 0; padding-bottom: 68px; }
    .topbar { height: 60px; padding: 0 14px; }
    .mobile-menu { display: inline-flex; }
    .topbar > .search-box { display: none; }
    .profile-name, #logoutButton { display: none; }
    .language-control select { width: 78px; height: 34px; padding-left: 7px; }
    .content { padding: 22px 14px; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
    .page-heading .btn { width: 100%; }
    .page-heading h1 { font-size: 27px; }
    .stats-grid { gap: 10px; }
    .stat-card { min-height: 138px; padding: 16px; }
    .stat-card > strong { font-size: 27px; }
    .dashboard-grid { gap: 10px; }
    .panel { padding: 16px; }
    .map-view { height: 310px; }
    .large-map { height: 54vh; }
    .map-legend { flex-wrap: wrap; }
    .timeline { grid-template-columns: 1fr; gap: 14px; }
    .timeline-item, .timeline-item:first-child { border-left: 2px solid #dce6e0; padding-left: 16px; }
    .alert-grid, .report-grid, .property-report-grid, .feature-grid { grid-template-columns: 1fr; }
    .dashboard-report-row { grid-template-columns: 1fr auto; }
    .dashboard-report-row > span { display: none; }
    .intelligence-grid { grid-template-columns: 1fr; }
    .heading-actions { width: 100%; flex-direction: column; }
    .filter-bar { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 0; }
    .satellite-summary, .form-grid, .entitlement-toggle-grid, .feature-checkbox-grid, .usage-grid { grid-template-columns: 1fr; }
    .satellite-policy-form .panel-head { align-items: flex-start; flex-direction: column; gap: 12px; }
    .provider-config { grid-template-columns: 1fr; }
    .live-imagery-controls, .live-comparison-grid, .live-imagery-visual, .provider-choice-grid { grid-template-columns: 1fr; }
    .selected-area-image-layout { grid-template-columns: 1fr; }
    .selected-imagery-map { min-height: 310px; }
    .live-imagery-visual > img { width: 100%; height: 150px; }
    .live-scene-map { min-height: 300px; }
    .map-toolbar { align-items: flex-start; flex-direction: column; }
    .toolbar-actions { width: 100%; overflow-x: auto; }
    .draw-progress { align-items: flex-start; flex-wrap: wrap; }
    .draw-progress span:nth-child(2) { flex: 1 1 60%; }
    .draw-progress .live-area { margin-left: auto; }
    .draw-progress button { flex: 1 1 42%; }
    .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 64px; background: rgba(255,255,255,.96); backdrop-filter: blur(13px); z-index: 22; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); }
    .bottom-nav button { border: 0; background: transparent; display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; font-size: 9px; color: #7f8790; }
    .bottom-nav button.active { color: var(--sage); font-weight: 700; }
    .bottom-nav .icon { width: 19px; height: 19px; }
    .app-footer { grid-template-columns: 1fr; gap: 12px; padding: 22px 16px 86px; text-align: center; }
    .app-footer > div { align-items: center; }
    .app-footer nav { justify-content: center; flex-wrap: wrap; }
    .toast-region { left: 14px; right: 14px; bottom: 76px; }
    .toast { min-width: 0; max-width: none; width: 100%; }
    .alert-data { grid-template-columns: repeat(3,1fr); }
}
