:root {
  --ink: #082b4a;
  --ink-soft: #597482;
  --forest: #082b4a;
  --forest-2: #087c80;
  --sage: #8bcfc3;
  --lime: #55bd57;
  --paper: #eef6f6;
  --card: #ffffff;
  --line: #d8e5e7;
  --rust: #c54f39;
  --amber: #e5a72f;
  --blue: #1678ad;
  --shadow: 0 24px 70px rgba(8, 43, 74, .12);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 7% 0%, rgba(42, 174, 111, .12), transparent 30rem),
    radial-gradient(circle at 95% 15%, rgba(13, 106, 156, .09), transparent 34rem),
    linear-gradient(145deg, #f7fbfb 0%, #edf5f5 100%);
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.grain {
  position: fixed; inset: 0; pointer-events: none; opacity: .22; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.topbar {
  min-height: clamp(86px, 7vw, 118px);
  padding: 0 clamp(18px, 2.2vw, 42px);
  display: flex; align-items: center; justify-content: flex-start;
  gap: clamp(16px, 1.7vw, 32px);
  color: #fff;
  background:
    radial-gradient(circle at 12% -80%, rgba(85,189,87,.5), transparent 18rem),
    linear-gradient(110deg, #082b4a 0%, #075d72 56%, #098c7c 100%);
  border-bottom: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 12px 34px rgba(8,43,74,.14);
  position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.topbar-logo-crop {
  position: relative; display: block;
  width: clamp(210px, 16.5vw, 290px);
  height: clamp(64px, 5.2vw, 86px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: clamp(12px, 1vw, 17px);
  box-shadow: 0 8px 24px rgba(3,34,43,.16);
}
.topbar-logo-crop img {
  position: absolute;
  width: clamp(210px, 16.5vw, 290px);
  max-width: none; left: 0;
  top: clamp(-53px, -3vw, -38px);
}
.brand small {
  align-self: flex-end; margin-bottom: clamp(16px, 1.4vw, 23px); color: #a8dfcf;
  letter-spacing: .16em; text-transform: uppercase;
  font-size: clamp(8px, .62vw, 11px); font-weight: 900;
}
.topbar-nav {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: clamp(62px, 5.1vw, 82px);
  margin: 0 auto 0 clamp(4px, .7vw, 14px);
  padding: clamp(7px, .6vw, 10px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: clamp(15px, 1.2vw, 20px);
  background: rgba(4,43,65,.2);
}
.topbar-nav a {
  position: relative;
  min-width: clamp(72px, 5.8vw, 102px);
  min-height: clamp(46px, 3.7vw, 62px);
  padding: clamp(13px, 1.15vw, 20px) clamp(11px, 1.05vw, 19px);
  display: flex; align-items: center; justify-content: center;
  border-radius: clamp(11px, .9vw, 15px);
  color: #c7e1dc; text-decoration: none; text-transform: uppercase;
  font-size: clamp(9px, .72vw, 13px); font-weight: 900;
  letter-spacing: .075em; text-align: center; transition: .18s;
}
.topbar-nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.topbar-nav a.active {
  color: #082b4a; background: linear-gradient(110deg, #dff389, #70d276);
  box-shadow: 0 8px 18px rgba(3,34,43,.2);
}
.topbar-actions {
  display: flex; align-items: center; gap: clamp(8px, .8vw, 14px);
  margin-left: auto;
}
.account-chip {
  display: grid; gap: 2px;
  padding: clamp(7px, .65vw, 11px) clamp(10px, .9vw, 16px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: clamp(11px, .85vw, 15px);
  text-align: right; background: rgba(255,255,255,.06);
}
.account-chip span { color: #fff; font-size: clamp(10px, .72vw, 13px); font-weight: 800; }
.account-chip small { color: #a8dfcf; font-size: clamp(8px, .55vw, 10px); text-transform: uppercase; letter-spacing: .08em; }
.topbar-logout {
  padding: clamp(9px, .75vw, 13px) clamp(12px, 1vw, 18px); color: #fff;
  background: linear-gradient(110deg, #13a27d, #55bd57);
  box-shadow: 0 8px 20px rgba(5,45,64,.22);
  font-size: clamp(9px, .65vw, 12px); font-weight: 900;
}
.live-indicator {
  padding: 9px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  color: #dbe9e2; font-size: 12px; letter-spacing: .03em;
}
.live-indicator span {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px;
  background: var(--lime); box-shadow: 0 0 0 5px rgba(217,230,134,.1);
}

.login-page {
  display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(circle at 10% 12%, rgba(42, 174, 111, .13), transparent 28rem),
    radial-gradient(circle at 92% 86%, rgba(13, 106, 156, .12), transparent 32rem),
    linear-gradient(145deg, #f8fbfa, #edf5f5);
}
.module-shell {
  min-height: calc(100vh - 96px); padding: 54px clamp(24px, 6vw, 90px);
}
.module-hero {
  position: relative; max-width: 1160px; min-height: 470px; margin: 0 auto;
  padding: clamp(32px, 6vw, 72px); overflow: hidden;
  border: 1px solid rgba(8,43,74,.1); border-radius: 28px;
  background:
    radial-gradient(circle at 92% 15%, rgba(85,189,87,.2), transparent 24rem),
    linear-gradient(145deg, rgba(255,255,255,.97), rgba(235,246,245,.94));
  box-shadow: var(--shadow);
}
.module-hero::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -150px; bottom: -180px;
  border: 1px solid rgba(8,124,128,.18); border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(8,124,128,.035), 0 0 0 124px rgba(8,124,128,.025);
}
.module-kicker {
  margin: 0 0 12px; color: #087c80; font-size: 11px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .15em;
}
.module-hero h1 {
  position: relative; z-index: 1; max-width: 720px; margin: 0;
  color: #082b4a; font: 900 clamp(40px, 6vw, 72px)/.98 "Trebuchet MS", sans-serif;
  letter-spacing: -.055em;
}
.module-hero > p:not(.module-kicker) {
  position: relative; z-index: 1; max-width: 620px; margin: 24px 0 0;
  color: var(--ink-soft); font-size: 17px; line-height: 1.65;
}
.module-state {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px;
  margin-top: 34px; padding: 11px 14px; border-radius: 999px;
  color: #075d72; background: #dff1ee; font-size: 11px; font-weight: 900;
}
.module-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #55bd57; }

.home-dashboard {
  width: min(1540px, calc(100% - clamp(32px, 5vw, 88px)));
  margin: 0 auto; padding: clamp(38px, 4vw, 68px) 0 80px;
}
.home-intro {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 34px;
  margin-bottom: 28px;
}
.home-intro > div:first-child { max-width: 880px; }
.home-intro h1 {
  margin: 0; color: #082b4a;
  font: 900 clamp(38px, 4.2vw, 68px)/.98 "Trebuchet MS", sans-serif;
  letter-spacing: -.055em;
}
.home-intro > div:first-child > p:last-child {
  max-width: 760px; margin: 20px 0 0; color: var(--ink-soft);
  font-size: clamp(14px, 1.1vw, 18px); line-height: 1.65;
}
.home-periods {
  flex: 0 0 auto; display: flex; gap: 4px; padding: 6px;
  border: 1px solid #c9dcdd; border-radius: 15px; background: rgba(255,255,255,.76);
  box-shadow: 0 12px 30px rgba(8,43,74,.07);
}
.home-periods button {
  padding: 11px 15px; border: 0; border-radius: 10px; color: #4c6c79;
  background: transparent; cursor: pointer; font-size: 11px; font-weight: 900;
}
.home-periods button.active { color: #fff; background: linear-gradient(110deg, #087c80, #20a768); }
.home-metrics {
  display: grid; grid-template-columns: 1.35fr repeat(5, minmax(125px, 1fr)); gap: 12px;
}
.home-metric {
  position: relative; min-height: 150px; padding: 22px; overflow: hidden;
  border: 1px solid #d5e3e4; border-top: 4px solid var(--metric-color, #2384c6);
  border-radius: 20px; background: rgba(255,255,255,.9);
  box-shadow: 0 16px 40px rgba(8,43,74,.07);
}
.home-metric::after {
  content: ""; position: absolute; width: 90px; height: 90px; right: -42px; bottom: -45px;
  border-radius: 50%; background: color-mix(in srgb, var(--metric-color, #2384c6) 10%, transparent);
}
.home-metric span, .home-metric small { position: relative; z-index: 1; display: block; }
.home-metric span { color: #486b79; font-size: 10px; font-weight: 900; }
.home-metric strong {
  position: relative; z-index: 1; display: block; margin: 15px 0 8px;
  color: #082b4a; font-size: clamp(30px, 2.5vw, 45px); line-height: 1;
}
.home-metric strong b { font: inherit; }
.home-metric small { color: #82918d; font-size: 10px; line-height: 1.35; }
.home-metric-main {
  --metric-color: #55bd57; color: #fff; border: 0;
  background: linear-gradient(135deg, #082b4a, #075d72 56%, #087c80);
}
.home-metric-main span, .home-metric-main small { color: #c6e2dd; }
.home-metric-main strong { color: #fff; font-size: clamp(40px, 3.2vw, 58px); }
.home-metric-blue { --metric-color: #2384c6; }
.home-metric-cyan { --metric-color: #62c6d3; }
.home-metric-green { --metric-color: #37a95d; }
.home-metric-red { --metric-color: #d2543d; }
.home-metric-conversion { --metric-color: #e5a72f; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .8fr); gap: 16px; margin-top: 16px; }
.home-card {
  padding: clamp(22px, 2vw, 30px); border: 1px solid #d5e3e4; border-radius: 22px;
  background: rgba(255,255,255,.91); box-shadow: 0 18px 50px rgba(8,43,74,.08);
}
.home-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.home-card-head h2 {
  margin: 0; color: #082b4a; font: 900 clamp(21px, 1.8vw, 29px) "Trebuchet MS", sans-serif;
  letter-spacing: -.035em;
}
.home-card-head > span, .home-card-head > a {
  flex: 0 0 auto; padding: 8px 10px; border-radius: 999px;
  color: #087c80; background: #e5f3f1; font-size: 9px; font-weight: 900; text-decoration: none;
}
.home-chart { min-height: 300px; margin-top: 18px; }
.home-chart svg { display: block; width: 100%; height: 300px; overflow: visible; }
.home-chart-grid line { stroke: #dce9e8; stroke-width: 1; }
.home-chart-area { fill: url(#homeChartFill); }
.home-chart-line { fill: none; stroke: #087c80; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.home-chart-point circle { fill: #55bd57; stroke: #fff; stroke-width: 3; }
.home-chart text { fill: #78909a; font-size: 10px; font-weight: 800; }
.home-loading { min-height: 280px; display: grid; place-items: center; color: var(--ink-soft); }
.home-compact-list { display: grid; gap: 9px; margin-top: 18px; }
.home-compact-item {
  display: grid; gap: 4px; padding: 13px; border: 1px solid #dce8e8; border-radius: 13px;
  color: inherit; background: #f8fbfb; text-decoration: none; transition: .18s;
}
.home-compact-item:hover { transform: translateX(4px); border-color: #91c9c3; background: #edf8f5; }
.home-compact-item time { color: #d28d1b; font-size: 9px; font-weight: 900; }
.home-compact-item strong { font-size: 11px; }
.home-compact-item small { color: var(--ink-soft); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-latest-card { margin-top: 16px; }
.home-latest-list { display: grid; margin-top: 17px; }
.home-latest-item {
  display: grid; grid-template-columns: 9px 1.1fr 1fr 1.3fr .55fr auto; gap: 16px;
  align-items: center; padding: 15px 8px; border-top: 1px solid #e0eaea;
  color: inherit; text-decoration: none; transition: .16s;
}
.home-latest-item:hover { padding-left: 14px; background: #f0f8f6; }
.home-latest-item small { display: block; margin-bottom: 4px; color: #899894; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.home-latest-item strong { display: block; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-latest-status { width: 9px; height: 38px; border-radius: 999px; background: #2384c6; }
.home-latest-status.status-new { background: #62c6d3; }
.home-latest-status.status-deal { background: #37a95d; }
.home-latest-status.status-rejected { background: #d2543d; }
.home-latest-item > b { color: #087c80; font-size: 18px; }
.home-empty { padding: 35px 18px; color: var(--ink-soft); text-align: center; }
.home-project {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 80px);
  margin-top: 28px; padding: clamp(34px, 4.5vw, 68px); overflow: hidden;
  border-radius: 28px; color: #fff;
  background:
    radial-gradient(circle at 85% 0%, rgba(85,189,87,.28), transparent 24rem),
    linear-gradient(135deg, #082b4a, #075d72 55%, #087c80);
  box-shadow: 0 28px 70px rgba(8,43,74,.18);
}
.home-project::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -210px; bottom: -250px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}
.home-project-copy, .home-flow { position: relative; z-index: 1; }
.home-project .module-kicker { color: #8ce08a; }
.home-project h2 {
  margin: 0; font: 900 clamp(30px, 3.2vw, 51px)/1.03 "Trebuchet MS", sans-serif;
  letter-spacing: -.05em;
}
.home-project-copy > p:not(.module-kicker) { margin: 20px 0 0; color: #c9dfda; font-size: 13px; line-height: 1.7; }
.home-project-actions { display: flex; gap: 9px; margin-top: 26px; }
.home-project-actions .button { color: #082b4a; background: linear-gradient(110deg, #dff389, #70d276); text-decoration: none; }
.home-project-actions .button-light { color: #fff; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.home-flow { display: grid; gap: 10px; }
.home-flow > div {
  display: grid; grid-template-columns: 46px 1fr; gap: 13px; align-items: center;
  padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px;
  background: rgba(255,255,255,.06); backdrop-filter: blur(10px);
}
.home-flow b {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  color: #082b4a; background: #8ce08a; font-size: 11px;
}
.home-flow span, .home-flow strong, .home-flow small { display: block; }
.home-flow strong { font-size: 12px; }
.home-flow small { margin-top: 4px; color: #bed6d1; font-size: 10px; line-height: 1.45; }
.home-capabilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 16px; }
.home-capabilities article {
  min-height: 210px; padding: 24px; border: 1px solid #d5e3e4; border-radius: 20px;
  background: rgba(255,255,255,.88); box-shadow: 0 14px 38px rgba(8,43,74,.06);
}
.home-capabilities span { color: #087c80; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.home-capabilities h3 { margin: 28px 0 10px; font: 900 20px/1.1 "Trebuchet MS", sans-serif; }
.home-capabilities p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }

.map-page { overflow: hidden; }
.map-workspace {
  height: calc(100vh - clamp(86px, 7vw, 118px));
  display: grid; grid-template-columns: clamp(270px, 20vw, 350px) minmax(0, 1fr);
  background: #dbe9e9;
}
.map-panel {
  position: relative; z-index: 3; padding: clamp(24px, 2.2vw, 38px);
  overflow-y: auto; border-right: 1px solid #c5d7d8;
  background:
    radial-gradient(circle at 0 0, rgba(85,189,87,.13), transparent 18rem),
    rgba(248,252,251,.97);
  box-shadow: 14px 0 42px rgba(8,43,74,.12);
}
.map-panel-heading h1 {
  margin: 0; color: #082b4a;
  font: 900 clamp(30px, 2.5vw, 43px)/1 "Trebuchet MS", sans-serif;
  letter-spacing: -.045em;
}
.map-panel-heading > p:last-child {
  margin: 14px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55;
}
.map-stat {
  margin-top: 25px; padding: 18px; color: #fff; border-radius: 17px;
  background: linear-gradient(135deg, #082b4a, #087c80);
  box-shadow: 0 16px 30px rgba(8,43,74,.17);
}
.map-stat span, .map-stat small { display: block; color: #c8e5df; font-size: 10px; }
.map-stat strong { display: block; margin: 5px 0; font-size: 36px; line-height: 1; }
.map-filters { display: grid; gap: 12px; margin-top: 22px; }
.map-filters label { display: grid; gap: 6px; }
.map-filters label > span {
  color: #416878; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em;
}
.map-filters input, .map-filters select {
  width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #c8dbdc;
  border-radius: 11px; outline: none; color: #082b4a; background: #fff;
}
.map-filters input:focus, .map-filters select:focus {
  border-color: #087c80; box-shadow: 0 0 0 4px rgba(8,124,128,.09);
}
.map-legend {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px;
  margin-top: 20px; padding: 15px; border: 1px solid #d8e5e7; border-radius: 13px; background: #fff;
}
.map-legend span { display: flex; align-items: center; gap: 7px; color: #486774; font-size: 10px; font-weight: 800; }
.map-legend i {
  width: 10px; height: 10px; border-radius: 3px; background: var(--legend);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--legend) 17%, white);
}
.map-reset-button {
  width: 100%; margin-top: 18px; justify-content: center; color: #fff;
  background: linear-gradient(110deg, #087c80, #20a768);
}
.map-message { min-height: 17px; margin: 12px 0 0; color: var(--ink-soft); font-size: 10px; text-align: center; }
.map-canvas-wrap { position: relative; min-width: 0; min-height: 0; }
.parcel-map { position: absolute; inset: 0; }
.map-floating-note {
  position: absolute; z-index: 2; left: 20px; bottom: 22px; padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.36); border-radius: 999px;
  color: #fff; background: rgba(8,43,74,.8); font-size: 10px; font-weight: 900;
  box-shadow: 0 10px 24px rgba(8,43,74,.24); backdrop-filter: blur(12px);
}
.map-marker {
  width: 40px; height: 52px; padding: 0; border: 0; outline: 0;
  background: transparent; cursor: pointer;
}
.map-pin {
  position: absolute; left: 3px; top: 3px; width: 34px; height: 43px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px; background: #2384c6; cursor: pointer;
  box-shadow: 0 4px 10px rgba(8,43,74,.45);
  transform: rotate(-45deg);
  transition: filter .16s, scale .16s;
}
.map-marker:hover .map-pin { scale: 1.16; filter: brightness(1.08); }
.map-pin i {
  position: absolute; width: 10px; height: 10px; left: 9px; top: 9px;
  border-radius: 50%; background: #fff;
}
.map-pin-new { background: #62c6d3; }
.map-pin-in_progress { background: #2384c6; }
.map-pin-deal { background: #37a95d; }
.map-pin-rejected { background: #d2543d; }
.maplibregl-ctrl-group { border-radius: 11px; overflow: hidden; }
.maplibregl-popup-content {
  padding: 0; overflow: hidden; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(8,43,74,.28);
}
.maplibregl-popup-close-button {
  z-index: 2; width: 30px; height: 30px; color: #fff; font-size: 20px;
}
.map-popup-card { min-width: 285px; padding: 20px; color: #082b4a; background: #fff; }
.map-popup-card > small {
  display: block; margin: 15px 0 4px; color: #799099; font-size: 8px;
  text-transform: uppercase; letter-spacing: .1em;
}
.map-popup-card > strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.map-popup-card h3 { margin: 14px 0 6px; font-size: 14px; line-height: 1.35; }
.map-popup-card p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.map-popup-status {
  display: inline-flex; padding: 6px 9px; border-radius: 999px; color: #fff;
  background: #2384c6; font-size: 9px; font-weight: 900;
}
.map-popup-status.status-new { background: #45aaba; }
.map-popup-status.status-deal { background: #37a95d; }
.map-popup-status.status-rejected { background: #d2543d; }
.map-popup-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.map-popup-meta span { padding: 10px; border-radius: 10px; background: #eef6f6; }
.map-popup-meta small { display: block; margin-bottom: 3px; color: #789099; font-size: 8px; text-transform: uppercase; }
.map-popup-meta b { font-size: 10px; overflow-wrap: anywhere; }
.map-popup-risk { margin-top: 10px; padding: 8px 10px; border-radius: 9px; color: #873927; background: #fae9e3; font-size: 10px; font-weight: 900; }
.map-popup-card > a {
  display: block; margin-top: 14px; padding: 10px; border-radius: 10px;
  color: #fff; background: linear-gradient(110deg, #082b4a, #087c80);
  text-align: center; text-decoration: none; font-size: 10px; font-weight: 900;
}
.login-shell {
  width: min(1120px, 100%); height: min(720px, calc(100vh - 48px)); min-height: 560px;
  display: grid; grid-template-columns: 1.02fr .98fr;
  overflow: hidden; border: 1px solid rgba(8,43,74,.1); border-radius: 30px;
  background: rgba(255,255,255,.96); box-shadow: 0 34px 90px rgba(8,43,74,.15);
}
.login-card {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 56px) clamp(34px, 5vw, 64px);
  transform: translateY(-14px);
}
.login-brand {
  width: 220px; height: 102px; margin-bottom: 10px; overflow: hidden;
}
.login-logo-crop {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
}
.login-logo-crop img {
  position: absolute; width: 220px; max-width: none; left: 0; top: -54px;
}
.login-card .eyebrow { color: #078c7d; }
.login-card h1 {
  max-width: 520px; margin: 0 0 28px;
  color: #082b4a; font: 800 clamp(31px, 3.3vw, 46px)/1.04 "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: -.045em;
}
.login-card form { display: grid; gap: 11px; max-width: 500px; }
.login-card label {
  color: #335b6d; font-size: 12px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .08em;
}
.login-card input {
  width: 100%; padding: 16px 17px; border: 1px solid #c8d9dd; border-radius: 13px;
  outline: 0; color: #082b4a; background: #f9fcfc;
}
.login-card input::placeholder { color: #91a8b0; }
.login-card input:focus { border-color: #078c7d; box-shadow: 0 0 0 4px rgba(7,140,125,.11); }
.login-card .button {
  min-height: 50px; margin-top: 5px; font-weight: 900;
  color: #fff; background: linear-gradient(110deg, #082b4a, #087c80 70%, #1aa45f);
  box-shadow: 0 12px 28px rgba(8,83,103,.2);
}
.login-error { min-height: 18px; margin: 4px 0 0; color: var(--rust); font-size: 12px; }
.login-scene {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: 34px 34px 36px; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 82% 14%, rgba(91,190,72,.32), transparent 16rem),
    linear-gradient(145deg, #0b927c 0%, #075d72 46%, #082b4a 100%);
}
.login-scene::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -190px; bottom: -210px;
  border: 1px solid rgba(255,255,255,.15); border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}
.map-visual {
  position: relative; z-index: 1; width: 100%; max-height: 330px; margin: 0;
  filter: drop-shadow(0 24px 30px rgba(4,34,52,.24));
}
.map-visual img {
  display: block; width: 100%; max-height: 330px; object-fit: contain;
  border-radius: 22px; mix-blend-mode: screen;
}
.scene-bottom {
  position: relative; z-index: 2; display: flex; align-items: end; justify-content: space-between;
  gap: 24px;
}
.scene-copy { min-width: 0; }
.login-scene p {
  margin: 0 0 9px; color: #a8dfcf; font-size: 11px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .16em;
}
.login-scene strong {
  display: block; max-width: 410px; font: 800 clamp(26px, 2.7vw, 36px)/1.12 "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: -.025em;
}
.scene-qr {
  flex: 0 0 auto; width: 168px; height: 168px; padding: 9px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 18px;
  background: #fff; box-shadow: 0 16px 34px rgba(4,34,52,.28);
}
.scene-qr img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }

@media (max-height: 700px) and (min-width: 861px) {
  .login-page { padding: 14px; }
  .login-shell { height: calc(100vh - 28px); min-height: 520px; }
  .login-card { padding-top: 24px; padding-bottom: 24px; }
  .login-brand { width: 190px; height: 88px; margin-bottom: 6px; }
  .login-logo-crop img { width: 190px; left: 0; top: -47px; }
  .login-card h1 { margin-bottom: 20px; font-size: 34px; }
  .login-card form { gap: 8px; }
  .login-card input { padding: 13px 15px; }
  .login-card .button { min-height: 45px; }
  .login-scene { padding: 24px 28px 26px; }
  .map-visual, .map-visual img { max-height: 270px; }
  .login-scene strong { font-size: 27px; }
  .scene-qr { width: 132px; height: 132px; }
}

.shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: calc(100vh - 96px); }
.sidebar {
  padding: 34px 24px; background: rgba(255,255,255,.78); border-right: 1px solid var(--line);
  backdrop-filter: blur(22px); box-shadow: 12px 0 34px rgba(8,43,74,.035);
}
[hidden] { display: none !important; }
.sidebar-head { padding: 0 7px 26px; }
.eyebrow {
  margin: 0 0 8px; color: var(--forest-2); text-transform: uppercase; letter-spacing: .14em;
  font-size: 10px; font-weight: 900;
}
.sidebar h1, .workspace h2, .drawer h2 {
  margin: 0; font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-weight: 900;
}
.sidebar h1 { color: #082b4a; font-size: 27px; line-height: 1.05; letter-spacing: -.035em; }
.sidebar-head > p:last-child { margin: 12px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.field-label { display: block; margin: 0 7px 7px; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.control, .form-control {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  background: rgba(255,255,255,.92); outline: 0; transition: .2s border, .2s box-shadow;
}
.control { padding: 11px 12px; margin-bottom: 24px; }
.control:focus, .form-control:focus { border-color: var(--forest-2); box-shadow: 0 0 0 4px rgba(37,92,75,.1); }
.manager-section { margin: -8px 0 24px; }
.sidebar-section-title {
  display: flex; align-items: center; justify-content: space-between; padding: 0 7px 8px;
  color: var(--ink-soft); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em;
}
.sidebar-section-title small {
  min-width: 22px; padding: 3px 6px; border-radius: 999px; text-align: center;
  color: #fff; background: linear-gradient(110deg, #087c80, #55bd57); font-size: 9px;
}
.manager-nav {
  display: grid; gap: 5px; max-height: 290px; padding-right: 3px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #b9c3b9 transparent;
}
.manager-button {
  width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px;
  align-items: center; padding: 8px; border: 1px solid transparent; border-radius: 12px;
  color: var(--ink); background: transparent; cursor: pointer; text-align: left; transition: .18s;
}
.manager-button:hover { border-color: #c9dfe1; background: #eff7f6; }
.manager-button.active {
  color: #fff; border-color: #075d72;
  background: linear-gradient(110deg, #082b4a, #087c80);
  box-shadow: 0 12px 28px rgba(8,43,74,.18);
}
.manager-avatar {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px;
  color: #075d72; background: #dff1ee; font: 800 11px "Trebuchet MS", sans-serif;
}
.manager-button.active .manager-avatar { color: #082b4a; background: #76d371; }
.manager-copy { min-width: 0; }
.manager-copy strong, .manager-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-copy strong { font-size: 11px; }
.manager-copy small { margin-top: 3px; color: #89938d; font-size: 9px; }
.manager-button.active .manager-copy small { color: #bcd0c7; }
.manager-total {
  min-width: 25px; padding: 4px 6px; border-radius: 999px; text-align: center;
  color: var(--ink-soft); background: rgba(128,140,132,.12); font-size: 9px; font-weight: 900;
}
.manager-button.active .manager-total { color: #fff; background: rgba(255,255,255,.13); }
.status-nav { display: grid; gap: 5px; }
.status-button {
  width: 100%; border: 0; padding: 11px 12px; border-radius: 11px; background: transparent;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
  color: var(--ink-soft); text-align: left; transition: .18s;
}
.status-button:hover { background: #edf6f5; color: var(--ink); }
.status-button.active {
  color: #fff; background: linear-gradient(110deg, #087c80, #17a47d);
  box-shadow: 0 12px 25px rgba(7,124,128,.18);
}
.status-button b { font-size: 11px; padding: 3px 7px; border-radius: 999px; background: rgba(128,140,132,.12); }
.status-button.active b { background: rgba(255,255,255,.14); }
.sidebar-note {
  display: flex; gap: 10px; margin-top: 28px; padding: 14px; border: 1px dashed #a9cfd0;
  border-radius: 13px; color: var(--ink-soft); font-size: 11px; line-height: 1.45;
}
.sidebar-note p { margin: 0; }
.sidebar-note-icon {
  flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 50%; background: #dff1ee; color: #087c80; font: bold 12px "Trebuchet MS", sans-serif;
}

.workspace { min-width: 0; padding: 38px clamp(22px, 4vw, 58px) 60px; }
.workspace-head { display: flex; gap: 24px; align-items: end; justify-content: space-between; }
.workspace h2 { color: #082b4a; font-size: clamp(27px, 3vw, 43px); letter-spacing: -.045em; }
.search-wrap {
  width: min(460px, 46%); height: 48px; display: flex; align-items: center; gap: 10px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(8,43,74,.06);
}
.search-wrap svg, .button svg, .icon-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-wrap svg { width: 19px; color: var(--ink-soft); }
.search-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-wrap kbd { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: #78909b; font-size: 9px; background: #eef6f6; }

.metrics {
  display: grid; grid-template-columns: 1.25fr repeat(5, 1fr); gap: 12px;
  margin: 30px 0 34px;
}
.metric {
  min-height: 126px; padding: 19px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255,255,255,.9); box-shadow: 0 16px 40px rgba(8,43,74,.055);
  animation: rise .45s both; cursor: pointer;
  transition: .18s transform, .18s border-color, .18s box-shadow;
}
.metric:hover { transform: translateY(-3px); border-color: #9fcfd0; box-shadow: var(--shadow); }
.metric:focus-visible { outline: 3px solid rgba(8,124,128,.25); outline-offset: 3px; }
.metric.selected { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(8,124,128,.12), var(--shadow); }
.metric:nth-child(2) { animation-delay: .05s; }
.metric:nth-child(3) { animation-delay: .1s; }
.metric:nth-child(4) { animation-delay: .15s; }
.metric:nth-child(5) { animation-delay: .2s; }
.metric:nth-child(6) { animation-delay: .25s; }
.metric span { display: block; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.metric strong { display: block; margin: 10px 0 5px; font: 900 34px "Trebuchet MS", sans-serif; letter-spacing: -.04em; }
.metric small { color: #8a948e; }
.metric-main {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #082b4a, #075d72 62%, #087c80);
  box-shadow: 0 18px 42px rgba(8,43,74,.18);
}
.metric-main span, .metric-main small { color: #b7dfd8; }
.metric-new { border-top: 4px solid #62b8c4; }
.metric-active { border-top: 4px solid #277db5; }
.metric-alert { border-top: 4px solid var(--amber); }
.metric-risk { border-top: 4px solid var(--rust); }
.metric-deal { border-top: 4px solid #36a85b; }
.metric-rejected { border-top: 4px solid #c54f39; }

.list-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.list-toolbar h3 { margin: 0 0 4px; font: 900 20px "Trebuchet MS", sans-serif; color: #082b4a; }
.list-toolbar span { color: var(--ink-soft); font-size: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0;
  padding: 10px 14px; border-radius: 11px; cursor: pointer; transition: .18s transform, .18s background;
  text-decoration: none;
}
.button:hover { transform: translateY(-1px); }
.button svg { width: 17px; }
.button-primary { color: #fff; background: linear-gradient(110deg, #082b4a, #087c80); }
.button-secondary { color: #fff; background: linear-gradient(110deg, #087c80, #55bd57); }
.button-ghost { color: var(--ink); background: #e2efef; }
.button-danger { color: #fff; background: var(--rust); }
.button-small { padding: 7px 10px; font-size: 11px; }

.parcel-list { display: grid; gap: 9px; }
.parcel-list.tile-view {
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 14px;
}
.parcel-card {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr .7fr .7fr auto;
  gap: 18px; align-items: center; min-height: 91px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.92);
  cursor: pointer; transition: .18s transform, .18s border, .18s box-shadow;
  animation: rise .35s both;
}
.parcel-card:hover { transform: translateY(-2px); border-color: #9fcfd0; box-shadow: var(--shadow); }
.parcel-card::before {
  content: ""; position: absolute; left: 0; top: 15px; bottom: 15px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--status-color, var(--sage));
}
.parcel-main strong { display: block; font: 900 15px "Trebuchet MS", sans-serif; letter-spacing: .005em; color: #082b4a; }
.parcel-main span, .parcel-cell span { display: block; margin-bottom: 5px; color: #8a948e; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.parcel-main small { display: block; margin-top: 6px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.parcel-cell strong { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-pill {
  display: inline-flex; padding: 6px 9px; border-radius: 999px; color: var(--status-color);
  background: color-mix(in srgb, var(--status-color) 13%, white); font-size: 10px; font-weight: 900;
}
.risk-flags { display: flex; justify-content: flex-end; gap: 5px; }
.risk-flag { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.risk-red { color: #fff; background: var(--rust); }
.risk-green { color: var(--forest); background: var(--lime); }
.parcel-arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e7f2f2; color: #087c80; font-size: 18px; }
.parcel-tile {
  position: relative; min-width: 0; min-height: 286px; padding: 17px;
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.68), transparent 45%),
    #fff;
  cursor: pointer; overflow: hidden;
  box-shadow: 0 10px 30px rgba(8,43,74,.06);
  transition: .2s transform, .2s border-color, .2s box-shadow;
  animation: rise .35s both;
}
.parcel-tile::after {
  content: ""; position: absolute; inset: auto -30px -45px auto; width: 120px; height: 120px;
  border-radius: 50%; background: color-mix(in srgb, var(--status-color) 11%, transparent);
}
.parcel-tile:hover {
  transform: translateY(-4px); border-color: #aebdaf; box-shadow: 0 24px 50px rgba(30,54,43,.12);
}
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tile-document {
  position: relative; width: 50px; height: 59px; padding-top: 19px; display: grid; place-items: center;
  color: #fff; border-radius: 7px 7px 10px 10px; background: linear-gradient(145deg, #082b4a, #087c80);
  box-shadow: 0 8px 18px rgba(8,43,74,.2);
}
.tile-document::before {
  content: ""; position: absolute; right: 0; top: 0; width: 17px; height: 17px;
  border-radius: 0 6px 0 6px; background: #55bd57;
}
.tile-document span { font: 900 11px "Trebuchet MS", sans-serif; letter-spacing: .08em; }
.tile-geometry {
  width: 66px; height: 66px; display: grid; place-items: center; padding: 7px;
  border: 1px solid #b9d9d3; border-radius: 13px;
  background: linear-gradient(145deg, #f5fbf8, #e0f1ed);
  box-shadow: 0 8px 18px rgba(8,43,74,.1);
}
.tile-geometry svg { width: 100%; height: 100%; overflow: visible; }
.tile-geometry polygon {
  fill: rgba(32,159,109,.23); stroke: #087c80; stroke-width: 5;
  stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.tile-content { min-width: 0; margin-top: 17px; }
.tile-label {
  display: block; margin-bottom: 5px; color: #8a948e; font-size: 8px;
  text-transform: uppercase; letter-spacing: .11em;
}
.tile-cad { display: block; font: 900 13px "Trebuchet MS", sans-serif; color: #082b4a; overflow-wrap: anywhere; }
.tile-content h4 {
  height: 35px; margin: 14px 0 6px; font-size: 13px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-content p {
  min-height: 16px; margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reminder-timer {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 9px 10px; border: 1px solid #e7c66a; border-radius: 10px;
  color: #7a5510; background: #fff7d9; font-size: 10px; font-weight: 900;
}
.reminder-timer.overdue { color: #8b2d1d; border-color: #e8aa9d; background: #fff0ec; }
.reminder-clock { font-size: 15px; line-height: 1; }
.list-reminder-timer {
  width: auto; min-width: max-content; padding: 7px 9px; border-radius: 9px;
  color: #7a5510; background: #fff1bd; font-size: 10px; font-weight: 900;
}
.list-reminder-timer.overdue { color: #fff; background: var(--rust); }
.status-context-menu {
  position: fixed; z-index: 120; width: 230px; padding: 7px;
  border: 1px solid #c8d9d6; border-radius: 14px;
  background: rgba(255,255,255,.98); box-shadow: 0 22px 55px rgba(8,43,74,.24);
  backdrop-filter: blur(18px); animation: rise .14s both;
}
.status-context-head { padding: 8px 10px 9px; border-bottom: 1px solid var(--line); }
.status-context-head small {
  display: block; margin-bottom: 4px; color: var(--ink-soft); font-size: 9px;
  font-weight: 900; text-transform: uppercase; letter-spacing: .1em;
}
.status-context-head strong {
  display: block; color: #082b4a; font-size: 11px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.status-context-menu button {
  width: 100%; display: grid; grid-template-columns: 12px 1fr auto; gap: 9px;
  align-items: center; margin-top: 3px; padding: 10px; border: 0; border-radius: 9px;
  color: var(--ink); background: transparent; cursor: pointer; text-align: left;
}
.status-context-menu button:hover { background: #edf7f5; }
.status-context-menu button.current { background: #e1f1ee; }
.status-context-menu button b { color: #087c80; font-size: 8px; text-transform: uppercase; }
.context-status-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--dot-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot-color) 16%, white);
}
.tile-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 15px; padding-top: 12px;
  border-top: 1px solid var(--line); font-size: 11px; font-weight: 800;
}
.tile-meta small { display: block; margin-bottom: 4px; color: #8a948e; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.tile-footer {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  min-height: 30px; margin-top: auto; padding-top: 12px; color: var(--forest-2); font-size: 10px; font-weight: 900;
}
.tile-footer .risk-flags { justify-content: flex-start; }
.tile-footer .risk-flag { width: 25px; height: 25px; border-radius: 7px; }
.empty-state { padding: 60px 24px; text-align: center; border: 1px dashed #bcb8ac; border-radius: 18px; color: var(--ink-soft); }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); font: 900 21px "Trebuchet MS", sans-serif; }
.loading-card { height: 91px; border-radius: 16px; background: linear-gradient(90deg, #dfebec, #f7fbfb, #dfebec); background-size: 220% 100%; animation: shimmer 1.3s infinite; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 20px; }
.page-button { min-width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); cursor: pointer; }
.page-button.active { color: #fff; background: #087c80; border-color: #087c80; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(5,31,52,.42); opacity: 0; pointer-events: none; transition: .25s; backdrop-filter: blur(3px); }
.drawer {
  position: fixed; z-index: 51; top: 0; right: 0; bottom: 0; width: min(680px, 100%);
  display: flex; flex-direction: column; background: var(--paper); box-shadow: -30px 0 90px rgba(21,39,32,.22);
  transform: translateX(102%); transition: .3s cubic-bezier(.22,.8,.35,1);
}
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head {
  flex: 0 0 auto; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center;
  color: #fff; background: linear-gradient(110deg, #082b4a, #075d72, #087c80);
}
.drawer-head .eyebrow { color: #8ce08a; }
.drawer-head h2 { font-size: clamp(20px, 4vw, 29px); }
.icon-button {
  width: 39px; height: 39px; padding: 9px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; background: rgba(255,255,255,.08); cursor: pointer; color: inherit;
}
.icon-button svg { width: 100%; }
.drawer-body { flex: 1; overflow-y: auto; padding: 25px 28px 60px; }
.detail-hero {
  padding: 21px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #087c80, #075d72 48%, #082b4a);
}
.detail-hero-row { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.detail-hero h3 { margin: 0 0 8px; font: 900 24px "Trebuchet MS", sans-serif; }
.detail-hero p { margin: 0; color: #c5d8d0; line-height: 1.5; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.detail-actions .button { background: rgba(255,255,255,.12); color: #fff; }
.detail-section { margin-top: 25px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.section-title h3 { margin: 0; font: 900 18px "Trebuchet MS", sans-serif; color: #082b4a; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.detail-field { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.detail-field.wide { grid-column: 1 / -1; }
.detail-field span { display: block; margin-bottom: 5px; color: #849089; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.detail-field strong { font-size: 12px; line-height: 1.5; white-space: pre-line; }
.documents-section {
  margin-top: 12px; padding: 16px; border: 1px solid #cbdede; border-radius: 15px;
  background: linear-gradient(135deg, #f5fbfa, #e8f4f2);
}
.documents-section .section-title { margin-bottom: 10px; }
.document-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.document-actions .button {
  justify-content: center; color: #073650; background: #fff;
  border: 1px solid #b9d5d4; box-shadow: 0 7px 18px rgba(8,43,74,.07);
}
.document-actions .button:hover { color: #fff; border-color: #087c80; background: #087c80; }
.risk-panel { padding: 16px; border-radius: 14px; background: #fae9e3; border: 1px solid #efc2b5; color: #773322; }
.risk-panel h4 { margin: 0 0 7px; font: 900 16px "Trebuchet MS", sans-serif; }
.risk-panel p { margin: 0; white-space: pre-line; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form-field { display: grid; gap: 5px; }
.form-field.wide { grid-column: 1 / -1; }
.form-field label { color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.form-control { min-height: 40px; padding: 9px 11px; }
textarea.form-control { min-height: 80px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.timeline { display: grid; gap: 8px; }
.timeline-item { position: relative; padding: 12px 13px 12px 36px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.timeline-item::before { content: ""; position: absolute; left: 14px; top: 16px; width: 8px; height: 8px; border: 3px solid var(--paper); border-radius: 50%; background: var(--forest-2); box-shadow: 0 0 0 1px var(--sage); }
.timeline-item strong { display: block; font-size: 11px; }
.timeline-item p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.timeline-item time { color: #929a96; font-size: 9px; }
.reminder-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.reminder-item.done { opacity: .55; }
.reminder-item strong, .reminder-item small { display: block; }
.reminder-item small { color: var(--ink-soft); margin-top: 3px; }
.toast-stack { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 12px 15px; border-radius: 12px; color: #fff; background: linear-gradient(110deg, #082b4a, #087c80); box-shadow: var(--shadow); animation: rise .25s both; }
.toast.error { background: var(--rust); }
.mobile-filter-button { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -120% 0; } }

@media (max-width: 1180px) {
  .topbar { gap: 12px; }
  .topbar-nav { gap: 3px; margin-left: 0; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metric-main { grid-row: span 2; }
  .parcel-card { grid-template-columns: 1.35fr 1fr .7fr auto; }
  .parcel-card .parcel-cell:nth-of-type(3) { display: none; }
  .home-metrics { grid-template-columns: repeat(3, 1fr); }
  .home-metric-main { grid-row: span 2; }
  .home-capabilities { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; height: auto; min-height: 96px; padding-bottom: 8px; }
  .topbar-nav {
    order: 3; width: 100%; justify-content: flex-start; overflow-x: auto;
    scrollbar-width: none;
  }
  .topbar-nav::-webkit-scrollbar { display: none; }
  .topbar-nav a { flex: 0 0 auto; }
  .module-shell { min-height: calc(100vh - 142px); padding: 28px 18px; }
  .login-shell { grid-template-columns: 1fr; height: auto; min-height: auto; }
  .login-card { transform: translateY(-8px); }
  .login-scene { min-height: 370px; }
  .map-visual { width: 76%; max-width: 520px; margin: 0 auto 24px; }
  .mobile-filter-button { display: block; }
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 42; top: 96px; left: 0; bottom: 0; width: min(310px, 88vw);
    transform: translateX(-102%); transition: .25s; box-shadow: var(--shadow);
  }
  body.filters-open .sidebar { transform: translateX(0); }
  .workspace { padding: 28px 18px 50px; }
  .workspace-head { align-items: stretch; flex-direction: column; }
  .search-wrap { width: 100%; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric-main { grid-row: auto; grid-column: span 2; }
  .parcel-card { grid-template-columns: 1fr auto; gap: 10px; }
  .parcel-card .parcel-cell { display: none; }
  .parcel-main small { max-width: 68vw; }
  .drawer-body { padding: 20px 16px 50px; }
  .home-dashboard { width: min(100% - 32px, 720px); padding-top: 32px; }
  .home-intro { align-items: stretch; flex-direction: column; }
  .home-periods { align-self: flex-start; max-width: 100%; overflow-x: auto; }
  .home-grid, .home-project { grid-template-columns: 1fr; }
  .home-latest-item { grid-template-columns: 9px 1fr auto; }
  .home-latest-item span:nth-of-type(n+3) { display: none; }
  .map-page { overflow: auto; }
  .map-workspace {
    height: auto; min-height: calc(100vh - 142px); grid-template-columns: 1fr;
  }
  .map-panel { padding: 24px 18px; border-right: 0; border-bottom: 1px solid #c5d7d8; }
  .map-panel-heading > p:last-child { max-width: 520px; }
  .map-stat { display: flex; align-items: baseline; gap: 8px; }
  .map-stat strong { font-size: 28px; }
  .map-stat small { margin-left: auto; }
  .map-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-filters label:first-child { grid-column: 1 / -1; }
  .map-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map-canvas-wrap { min-height: 65vh; }
}
@media (max-width: 520px) {
  .topbar { height: 66px; padding: 0 14px; }
  .topbar-logo-crop { width: 160px; height: 52px; border-radius: 10px; }
  .topbar-logo-crop img { width: 160px; top: -29px; }
  .brand small, .live-indicator, .account-chip small { display: none; }
  .account-chip { padding: 7px 9px; }
  .topbar-logout { padding: 8px 9px; }
  .login-page { padding: 10px; }
  .login-card { padding: 32px 24px; }
  .login-brand { width: 190px; height: 88px; margin-bottom: 8px; }
  .login-logo-crop img { width: 190px; left: 0; top: -47px; }
  .login-card h1 { margin-bottom: 30px; font-size: 35px; }
  .login-scene { min-height: 320px; padding: 28px; }
  .map-visual { width: 100%; margin: 0 0 22px; }
  .scene-bottom { gap: 14px; }
  .scene-qr { width: 96px; height: 96px; padding: 6px; border-radius: 14px; }
  .login-scene strong { font-size: 22px; }
  .sidebar { top: 116px; }
  .module-shell { min-height: calc(100vh - 116px); }
  .module-hero { min-height: 390px; padding: 30px 24px; border-radius: 22px; }
  .module-hero h1 { font-size: 42px; }
  .metrics { gap: 8px; }
  .metric { min-height: 105px; padding: 15px; }
  .metric strong { font-size: 27px; }
  .metric span { font-size: 9px; }
  .metric small { font-size: 9px; }
  .search-wrap kbd { display: none; }
  .detail-grid, .form-grid { grid-template-columns: 1fr; }
  .document-actions { grid-template-columns: 1fr; }
  .detail-field.wide, .form-field.wide { grid-column: auto; }
  .drawer-head { padding: 18px 16px; }
  .parcel-list.tile-view { grid-template-columns: 1fr; }
  .parcel-tile { min-height: 260px; }
  .map-filters, .map-legend { grid-template-columns: 1fr; }
  .map-filters label:first-child { grid-column: auto; }
  .map-stat { display: block; }
  .map-stat small { margin-left: 0; }
  .map-canvas-wrap { min-height: 68vh; }
  .map-floating-note { right: 12px; left: 12px; bottom: 12px; text-align: center; }
  .map-popup-card { min-width: 245px; }
  .home-dashboard { width: min(100% - 22px, 500px); padding-top: 25px; }
  .home-intro h1 { font-size: 38px; }
  .home-periods { width: 100%; }
  .home-periods button { flex: 1; min-width: max-content; padding: 10px; }
  .home-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .home-metric { min-height: 120px; padding: 16px; }
  .home-metric-main { grid-column: 1 / -1; grid-row: auto; }
  .home-chart { min-height: 240px; overflow-x: auto; }
  .home-chart svg { width: 760px; height: 250px; }
  .home-project { padding: 30px 22px; }
  .home-project-actions { flex-direction: column; }
  .home-capabilities { grid-template-columns: 1fr; }
}
