:root {
  --paper: #f5f3ed;
  --surface: #ffffff;
  --ink: #17231f;
  --ink-2: #46534e;
  --ink-3: #75807c;
  --forest: #123d34;
  --forest-deep: #0c2d27;
  --forest-soft: #e7efeb;
  --gold: #bd8143;
  --gold-soft: #f4e9db;
  --red: #a64f43;
  --red-soft: #faeae7;
  --blue: #416d7d;
  --blue-soft: #e7f0f3;
  --line: #dedfd9;
  --line-dark: #cdd1ca;
  --shadow: 0 16px 45px rgba(24, 43, 36, .13);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }

.app-shell { height: 100vh; min-height: 650px; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 30px;
  background: #fbfcfa;
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 290px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--forest);
  border-radius: 11px;
}
.brand-mark svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: Manrope, sans-serif; font-size: 14px; letter-spacing: .08em; }
.brand small { margin-top: 3px; color: var(--ink-3); font-size: 10px; letter-spacing: .025em; }
.topnav { align-self: stretch; display: flex; align-items: center; gap: 26px; }
.topnav a, .link-button {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  position: relative;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
}
.topnav a:hover, .link-button:hover { color: var(--ink); }
.topnav .active { color: var(--ink); font-weight: 600; }
.topnav .active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--forest); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: white; box-shadow: 0 4px 12px rgba(18, 61, 52, .15); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-secondary { background: white; border-color: var(--line-dark); color: var(--ink-2); }
.btn-secondary:hover { background: #f7f8f5; border-color: #aeb6af; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-icon { font-size: 17px; }

.trust-strip {
  height: 34px;
  padding: 0 29px;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--forest-deep);
  color: rgba(255,255,255,.72);
  font-size: 11px;
  letter-spacing: .015em;
  z-index: 999;
}
.trust-strip span { display: flex; align-items: center; }
.trust-strip span + span::before { content: "·"; margin: 0 14px; color: rgba(255,255,255,.35); }
.status-dot { width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #8ecea6; box-shadow: 0 0 0 3px rgba(142, 206, 166, .12); }
.trust-strip button { margin-left: auto; border: 0; background: none; color: white; font-size: 11px; font-weight: 600; cursor: pointer; }

.workspace { flex: 1; height: calc(100vh - 106px); min-height: 0; display: grid; grid-template-columns: minmax(420px, 40%) 1fr; grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.analysis-panel { position: relative; z-index: 10; min-width: 0; background: var(--paper); border-right: 1px solid var(--line-dark); }
.analysis-scroll { height: 100%; padding: 22px clamp(26px, 3vw, 48px) 30px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c8ccc6 transparent; }
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 10px; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: clamp(31px, 2.6vw, 43px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
h1 em { color: var(--forest); font-style: normal; font-weight: 500; }
.lede { max-width: 510px; margin: 0 0 15px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.brief-card {
  width: 100%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.brief-card:hover { background: white; border-color: #bec5bd; }
.brief-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: var(--forest); background: var(--forest-soft); border-radius: 8px; }
.brief-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.brief-copy { display: flex; flex-direction: column; min-width: 0; }
.brief-copy small { color: var(--ink-3); font-size: 10px; }
.brief-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.brief-edit { margin-left: auto; color: var(--forest); font-size: 11px; font-weight: 700; }

.ai-verdict { margin: 14px 0 17px; padding: 15px 17px 14px; color: white; background: var(--forest); border-radius: 13px; box-shadow: 0 12px 25px rgba(18, 61, 52, .13); }
.ai-label { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #cfe4da; font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.ai-label span:last-child { margin-left: auto; color: rgba(255,255,255,.5); letter-spacing: .02em; text-transform: none; font-weight: 500; }
.spark { color: #e8ba79; font-size: 13px; }
.ai-verdict h2 { margin-bottom: 7px; font-family: Manrope, sans-serif; font-size: 17px; line-height: 1.3; letter-spacing: -.015em; }
.ai-verdict p { margin: 0; color: rgba(255,255,255,.79); font-size: 12px; line-height: 1.6; }
.ai-verdict p strong { color: white; }
.memo-actions { margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 12px; }
.text-action { padding: 0; border: 0; background: none; color: white; font-size: 10px; font-weight: 700; cursor: pointer; }
.text-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.updated { margin-left: auto; color: rgba(255,255,255,.45); font-size: 9px; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.section-heading h2 { margin: 0 0 2px; font-family: Manrope, sans-serif; font-size: 16px; letter-spacing: -.02em; }
.section-heading p { margin: 0; color: var(--ink-3); font-size: 10px; }
.info-button { width: 23px; height: 23px; border: 1px solid var(--line-dark); border-radius: 50%; background: transparent; color: var(--ink-3); font-family: Georgia, serif; font-size: 12px; font-style: italic; cursor: pointer; }
.info-button:hover { color: var(--forest); border-color: var(--forest); }
.lens-tabs { padding: 3px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: #e8e7e1; border-radius: 9px; }
.lens-tab { height: 31px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-3); font-size: 10px; font-weight: 600; cursor: pointer; }
.lens-tab.active { background: white; color: var(--ink); box-shadow: 0 2px 7px rgba(27, 39, 34, .07); }
.project-list { margin-top: 11px; display: grid; gap: 8px; }
.project-card {
  width: 100%;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  position: relative;
  overflow: hidden;
  text-align: left;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.project-card:hover { background: white; border-color: #b8c1b9; }
.project-card.selected { background: white; border-color: var(--forest); box-shadow: 0 5px 15px rgba(20, 50, 41, .08); }
.project-card.selected::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--forest); }
.rank { width: 23px; height: 23px; margin-top: 2px; display: grid; place-items: center; color: var(--ink-3); background: #eff0eb; border-radius: 50%; font-size: 10px; font-weight: 700; }
.selected .rank { color: white; background: var(--forest); }
.project-copy { min-width: 0; }
.project-kicker { margin-bottom: 2px; display: flex; align-items: center; gap: 6px; color: var(--forest); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.project-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Manrope, sans-serif; font-size: 12px; }
.project-location { margin: 1px 0 7px; overflow: hidden; color: var(--ink-3); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mini-metrics { display: flex; gap: 9px; flex-wrap: wrap; color: var(--ink-2); font-size: 9px; }
.mini-metrics span { display: inline-flex; align-items: center; gap: 3px; }
.mini-metrics i { width: 4px; height: 4px; border-radius: 50%; background: #b6bcb6; }
.card-score { min-width: 55px; text-align: right; }
.card-score small { display: block; color: var(--ink-3); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.card-score strong { font-family: Manrope, sans-serif; font-size: 19px; line-height: 1.2; }
.card-score strong span { color: var(--ink-3); font-size: 9px; font-weight: 500; }
.risk-label { margin-top: 4px; display: inline-block; padding: 2px 5px; border-radius: 4px; font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.risk-low { color: #2c6650; background: #e7f2ec; }
.risk-medium { color: #876222; background: #f8efdc; }
.risk-high { color: #99483e; background: #faeae7; }
.unknown-score { color: var(--ink-3); font-size: 18px !important; }
.missing-note { margin-top: 14px; padding: 10px 12px; display: flex; gap: 9px; align-items: flex-start; background: #eeede8; border-radius: 9px; }
.missing-note > span { width: 17px; height: 17px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #b9bcb6; border-radius: 50%; color: var(--ink-3); font-size: 9px; }
.missing-note p { margin: 0; color: var(--ink-3); font-size: 9px; line-height: 1.45; }
.missing-note strong { color: var(--ink-2); }

.map-panel { min-width: 0; height: 100%; position: relative; display: grid; grid-template-rows: 54px minmax(0, 1fr) auto; background: #e8ebe4; }
.map-toolbar { min-width: 0; padding: 0 18px; display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); z-index: 500; }
.map-title { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.map-title strong { font-size: 12px; }
.map-title span { margin-top: 3px; color: var(--ink-3); font-size: 8px; }
.destination-pills { margin: 0 auto; display: flex; gap: 5px; min-width: 0; }
.destination { height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 16px; background: white; color: var(--ink-2); font-size: 9px; font-weight: 600; cursor: pointer; }
.destination:hover { border-color: #adb7af; }
.destination.active { color: white; background: var(--forest); border-color: var(--forest); }
.destination.add { width: 30px; padding: 0; justify-content: center; font-size: 16px; }
.destination-icon { font-size: 13px; }
.map-view-actions { display: flex; gap: 5px; }
.square-button, .icon-button { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: white; cursor: pointer; }
.square-button:hover, .icon-button:hover { border-color: #a9b4ab; }
.square-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.map-wrap { min-height: 0; position: relative; overflow: hidden; }
#map { width: 100%; height: 100%; min-height: 380px; background: #dfe4db; }
.map-loading { position: absolute; inset: 0; z-index: 450; display: flex; align-items: center; justify-content: center; gap: 9px; background: #e7ebe2; color: var(--ink-3); font-size: 11px; }
.map-loading span { width: 16px; height: 16px; border: 2px solid #bdc5bd; border-top-color: var(--forest); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.leaflet-container { font-family: "DM Sans", sans-serif; }
.leaflet-control-attribution { font-size: 8px !important; color: var(--ink-3); }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 4px 14px rgba(27,43,36,.12) !important; }
.leaflet-control-zoom a { width: 30px !important; height: 30px !important; line-height: 30px !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-overlay-pane { filter: none; }
.project-marker { position: relative; width: 34px; height: 34px; }
.marker-pin {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  position: relative;
  color: white;
  background: var(--forest);
  border: 3px solid white;
  border-radius: 50% 50% 50% 3px;
  box-shadow: 0 3px 10px rgba(14, 43, 35, .35);
  transform: rotate(-45deg);
  transition: transform .15s ease, background .15s ease;
}
.marker-pin b { font-size: 8px; transform: rotate(45deg); }
.project-marker.muted .marker-pin { background: #85918a; transform: rotate(-45deg) scale(.83); }
.project-marker.active .marker-pin { background: var(--gold); transform: rotate(-45deg) scale(1.16); box-shadow: 0 4px 15px rgba(130, 86, 38, .38); }
.marker-label { position: absolute; left: 31px; top: 2px; width: max-content; max-width: 155px; padding: 4px 7px; overflow: hidden; color: var(--ink); background: rgba(255,255,255,.94); border: 1px solid rgba(191,198,190,.9); border-radius: 5px; box-shadow: 0 2px 8px rgba(32,46,40,.08); font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.project-marker.muted .marker-label { display: none; }
.destination-marker { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: #263e54; border: 3px solid white; border-radius: 50%; box-shadow: 0 3px 11px rgba(23,44,62,.3); font-size: 13px; }
.destination-label { width: max-content; margin: -28px 0 0 34px; padding: 4px 7px; color: white; background: #263e54; border-radius: 4px; font-size: 8px; font-weight: 700; }
.route-legend { position: absolute; left: 13px; bottom: 13px; z-index: 400; padding: 7px 9px; display: flex; gap: 11px; background: rgba(255,255,255,.92); border: 1px solid rgba(204,210,202,.9); border-radius: 6px; box-shadow: 0 3px 10px rgba(36,50,43,.08); color: var(--ink-3); font-size: 8px; }
.route-legend span { display: flex; align-items: center; gap: 5px; }
.line { width: 17px; border-top: 2px solid var(--forest); }
.line.dotted { border-top-style: dotted; border-top-color: var(--gold); }
.dossier { min-height: 154px; padding: 16px 20px; background: rgba(255,255,255,.98); border-top: 1px solid var(--line-dark); z-index: 500; }
.dossier-head { display: flex; align-items: flex-start; gap: 15px; }
.dossier-identity { min-width: 0; flex: 1; }
.dossier-kicker { margin-bottom: 2px; display: flex; align-items: center; gap: 7px; color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dossier-name { margin: 0; overflow: hidden; font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.dossier-location { margin: 1px 0 0; color: var(--ink-3); font-size: 9px; }
.dossier-price { padding-left: 15px; text-align: right; border-left: 1px solid var(--line); white-space: nowrap; }
.dossier-price small { display: block; color: var(--ink-3); font-size: 8px; }
.dossier-price strong { display: block; font-family: Manrope, sans-serif; font-size: 19px; }
.dossier-price span { color: var(--ink-3); font-size: 8px; }
.dossier-body { margin-top: 13px; display: grid; grid-template-columns: minmax(235px, 1.25fr) minmax(220px, 1fr) auto; gap: 19px; align-items: start; }
.dossier-summary { margin: 0; color: var(--ink-2); font-size: 9px; line-height: 1.5; }
.dossier-summary strong { color: var(--ink); }
.dossier-facts { display: grid; grid-template-columns: repeat(3, minmax(55px, 1fr)); gap: 12px; }
.dossier-facts span { display: flex; flex-direction: column; min-width: 0; }
.dossier-facts small { color: var(--ink-3); font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.dossier-facts strong { margin-top: 2px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dossier-action { height: 32px; padding: 0 12px; border: 1px solid var(--forest); border-radius: 7px; background: transparent; color: var(--forest); font-size: 9px; font-weight: 700; cursor: pointer; }
.dossier-action:hover { background: var(--forest); color: white; }

.mobile-only, .mobile-view-switcher { display: none; }

.modal { width: min(580px, calc(100vw - 28px)); max-height: calc(100vh - 34px); padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: white; box-shadow: var(--shadow); }
.modal-wide { width: min(760px, calc(100vw - 28px)); }
.modal::backdrop { background: rgba(9, 26, 22, .62); backdrop-filter: blur(3px); }
.modal-shell { max-height: calc(100vh - 34px); padding: 25px 27px 24px; overflow-y: auto; }
.modal-header { display: flex; align-items: flex-start; gap: 20px; }
.modal-header > div { flex: 1; }
.modal-header h2 { margin: 0 0 5px; font-family: Manrope, sans-serif; font-size: 24px; line-height: 1.2; letter-spacing: -.035em; }
.modal-header p:not(.eyebrow) { margin: 0; color: var(--ink-3); font-size: 12px; }
.modal-close { width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink-3); font-size: 21px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--ink); background: #f5f6f2; }
.prototype-banner { margin-top: 18px; padding: 9px 11px; border: 1px solid #d9e1da; border-radius: 8px; background: #f0f5f1; color: var(--ink-2); font-size: 10px; }
.prototype-banner span { margin-right: 6px; padding: 2px 5px; border-radius: 3px; background: var(--forest); color: white; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.drop-zone { margin-top: 17px; min-height: 190px; padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fafaf7; border: 1.5px dashed #bec7bf; border-radius: 12px; cursor: pointer; }
.drop-zone:hover { border-color: var(--forest); background: #f6f9f6; }
.drop-zone.dragging { border-color: var(--gold); background: var(--gold-soft); }
.upload-illustration { width: 47px; height: 47px; margin-bottom: 10px; display: grid; place-items: center; color: var(--forest); background: var(--forest-soft); border-radius: 12px; }
.upload-illustration svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone strong { font-size: 13px; }
.drop-zone > span:nth-of-type(2) { margin-top: 3px; color: var(--ink-3); font-size: 10px; }
.fake-button { margin-top: 12px; padding: 7px 11px; background: white; border: 1px solid var(--line-dark); border-radius: 6px; font-size: 10px; font-weight: 700; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.or-divider { margin: 15px 0; display: flex; align-items: center; color: var(--ink-3); font-size: 9px; }
.or-divider::before, .or-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.or-divider span { padding: 0 9px; }
.link-field { height: 41px; padding: 0 9px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-dark); border-radius: 8px; }
.link-field:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(18,61,52,.08); }
.link-field svg { width: 17px; fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; }
.link-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 11px; }
.link-field button { border: 0; background: transparent; color: var(--forest); font-size: 10px; font-weight: 700; cursor: pointer; }
.selected-files { margin-top: 12px; display: grid; gap: 5px; }
.file-row { padding: 8px 10px; display: flex; align-items: center; gap: 8px; background: #f5f6f2; border-radius: 7px; font-size: 10px; }
.file-row .file-kind { width: 25px; height: 25px; display: grid; place-items: center; background: white; border: 1px solid var(--line); border-radius: 5px; color: var(--red); font-size: 7px; font-weight: 700; }
.file-row strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row small { color: var(--ink-3); }
.modal-actions { margin-top: 21px; padding-top: 17px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }
.modal-actions p { margin: 0 auto 0 0; color: var(--ink-3); font-size: 10px; }
.extraction-head { margin-top: 22px; display: flex; align-items: center; gap: 13px; }
.extraction-check { width: 39px; height: 39px; display: grid; place-items: center; color: white; background: var(--forest); border-radius: 50%; font-size: 17px; }
.extraction-head h3 { margin: 0 0 2px; font-family: Manrope, sans-serif; font-size: 17px; }
.extraction-head p { margin: 0; color: var(--ink-3); font-size: 10px; }
.extraction-head .eyebrow { margin-bottom: 3px; }
.extracted-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.extracted-grid > div { min-width: 0; padding: 13px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.extracted-grid > div:last-child { border-right: 0; }
.extracted-grid span { color: var(--ink-3); font-size: 8px; }
.extracted-grid strong { margin: 3px 0 8px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.fact { width: max-content; padding: 2px 5px; border-radius: 3px; font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.documented { color: #245f48; background: #e3f1ea; }
.verified { color: #2e6073; background: #e4f0f4; }
.stated { color: #6b5a2b; background: #f5efd9; }
.estimated { color: #6f5d49; background: #f1e9e1; }
.conflict { color: #96483e; background: #f9e8e5; }
.conflict-card { margin-top: 13px; padding: 11px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid #efd0cb; border-radius: 8px; background: #fff9f8; }
.conflict-card > span { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: var(--red); border-radius: 50%; font-size: 10px; font-weight: 700; }
.conflict-card p { margin: 0; color: var(--ink-2); font-size: 10px; line-height: 1.5; }
.form-section { margin-top: 22px; }
.form-section > label, .range-label { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.form-section label small { color: var(--ink-3); font-weight: 400; }
.range-label strong { color: var(--forest); font-size: 18px; }
input[type="range"] { width: 100%; accent-color: var(--forest); }
.range-scale { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 8px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.choice { min-height: 40px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink-2); font-size: 10px; cursor: pointer; }
.choice.active { color: var(--forest); background: var(--forest-soft); border-color: #91a99d; font-weight: 700; }
textarea { width: 100%; padding: 11px; resize: vertical; border: 1px solid var(--line-dark); border-radius: 8px; outline: 0; color: var(--ink); font-size: 11px; line-height: 1.5; }
textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(18,61,52,.08); }
.method-grid { margin-top: 23px; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.method-grid article { min-height: 135px; padding: 17px; position: relative; }
.method-grid article:nth-child(odd) { border-right: 1px solid var(--line); }
.method-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.method-number { color: var(--gold); font-family: Manrope, sans-serif; font-size: 9px; font-weight: 700; }
.method-grid h3 { margin: 5px 0 5px; font-family: Manrope, sans-serif; font-size: 13px; }
.method-grid p { margin: 0; color: var(--ink-3); font-size: 10px; line-height: 1.55; }
.formula-card { margin-top: 12px; padding: 13px 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--forest-soft); border-radius: 9px; }
.formula-card div { display: flex; flex-direction: column; }
.formula-card span { color: var(--ink-3); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.formula-card strong { margin-top: 3px; color: var(--forest); font-size: 11px; }
.formula-card p { margin: 0; color: var(--ink-2); font-size: 9px; }
.evidence-list { margin-top: 21px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.evidence-list > div { padding: 11px 13px; display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.evidence-list > div:last-child { border-bottom: 0; }
.evidence-list p { margin: 0; color: var(--ink-2); font-size: 10px; }
.promise-card { margin-top: 13px; padding: 13px; color: white; background: var(--forest); border-radius: 9px; }
.promise-card strong { font-size: 11px; }
.promise-card p { margin: 3px 0 0; color: rgba(255,255,255,.72); font-size: 9px; }

@media (max-width: 1180px) {
  .topnav { display: none; }
  .workspace { grid-template-columns: minmax(390px, 43%) 1fr; }
  .destination:nth-child(3) { display: none; }
  .dossier-body { grid-template-columns: 1fr auto; }
  .dossier-facts { display: none; }
}

@media (max-width: 800px) {
  body { overflow: hidden; }
  .topbar { height: 62px; padding: 0 15px; gap: 12px; }
  .brand { min-width: 0; }
  .brand-mark { width: 35px; height: 35px; }
  .brand > span:last-child small { display: none; }
  .brand strong { font-size: 12px; letter-spacing: .04em; }
  .top-actions { gap: 6px; }
  .top-actions .btn-primary { width: 39px; min-height: 39px; padding: 0; font-size: 0; }
  .top-actions .btn-primary svg { width: 19px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: grid; }
  .trust-strip { height: 30px; padding: 0 15px; white-space: nowrap; overflow: hidden; }
  .trust-strip span:not(:first-child), .trust-strip button { display: none; }
  .workspace { height: calc(100vh - 92px); min-height: 0; display: block; overflow: hidden; position: relative; }
  .map-panel { position: absolute; inset: 0; height: 100%; display: grid; grid-template-rows: 48px minmax(0, 1fr) auto; }
  .map-panel.list-mode { visibility: hidden; }
  .analysis-panel { position: absolute; inset: 0 0 52px; z-index: 1100; border: 0; transform: translateX(100%); transition: transform .2s ease; }
  .analysis-panel.show { transform: translateX(0); }
  .analysis-scroll { padding: 23px 20px 35px; }
  .brief-edit { display: none; }
  h1 { font-size: 34px; }
  .map-toolbar { padding: 0 12px; }
  .map-title { display: none; }
  .destination-pills { margin: 0; }
  .map-view-actions { margin-left: auto; }
  .destination { height: 29px; }
  #map { min-height: 300px; }
  .route-legend { bottom: 10px; }
  .dossier { min-height: 170px; padding: 13px 15px 64px; }
  .dossier-body { grid-template-columns: 1fr auto; gap: 12px; }
  .dossier-summary { font-size: 9px; }
  .dossier-price strong { font-size: 16px; }
  .dossier-action { align-self: end; }
  .mobile-view-switcher { position: fixed; left: 50%; bottom: 12px; z-index: 1200; width: 196px; height: 39px; padding: 3px; display: grid; grid-template-columns: 1fr 1fr; background: var(--forest-deep); border-radius: 21px; box-shadow: 0 7px 24px rgba(12,45,39,.27); transform: translateX(-50%); }
  .mobile-view-switcher button { border: 0; border-radius: 18px; background: transparent; color: rgba(255,255,255,.66); font-size: 11px; font-weight: 700; }
  .mobile-view-switcher button.active { background: white; color: var(--forest); }
  .modal-shell { padding: 22px 19px; }
  .modal-header h2 { font-size: 21px; }
  .extracted-grid { grid-template-columns: 1fr 1fr; }
  .extracted-grid > div:nth-child(2) { border-right: 0; }
  .extracted-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: 0; border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .method-grid article:last-child { border-bottom: 0; }
  .formula-card { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand-mark { display: none; }
  .brand strong { max-width: 176px; font-size: 11px; }
  .trust-strip { font-size: 10px; }
  .destination:nth-child(2) { display: none; }
  .dossier-kicker { max-width: 220px; }
  .dossier-name { font-size: 15px; }
  .dossier-price { padding-left: 10px; }
  .dossier-body { display: flex; }
  .dossier-summary { flex: 1; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .evidence-list > div { grid-template-columns: 1fr; gap: 6px; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions p { width: 100%; }
}

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