:root {
  --bg: #0f171c;
  --panel: #172229;
  --panel-2: #1d2d36;
  --text: #d9e6ec;
  --muted: #8ea2ad;
  --accent: #f3a712;
  --ok: #53c14b;
  --warn: #ef6f3d;
  --info: #00a6fb;
  --danger: #d7263d;
  --card: rgba(16, 28, 36, 0.92);
  --left-nav-width: 320px;
  --feed-width: 440px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(1300px 500px at 70% -10%, rgba(243, 167, 18, 0.08), transparent 60%), var(--bg);
  color: var(--text);
}

body.is-resizing-dashboard,
body.is-resizing-dashboard * {
  cursor: row-resize !important;
}

.operator-deemphasized {
  display: none !important;
}

#app-shell {
  display: grid;
  grid-template-columns: var(--left-nav-width) 10px 1fr;
  width: 100%;
  height: 100%;
  transition: filter 0.25s ease, transform 0.25s ease;
}

body.startup-loading #app-shell {
  filter: blur(8px);
  transform: scale(0.996);
  pointer-events: none;
  user-select: none;
}

#left-nav {
  background: linear-gradient(180deg, #102028 0%, #0d171e 100%);
  border-right: 1px solid #243a47;
  padding: 14px 12px;
  overflow-y: auto;
}

#sidebar-resizer {
  position: relative;
  background: linear-gradient(180deg, rgba(34, 58, 72, 0.9), rgba(18, 31, 40, 0.95));
  border-right: 1px solid #203644;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
}

#sidebar-resizer:hover,
#sidebar-resizer.is-dragging,
#sidebar-resizer:focus-visible {
  background: linear-gradient(180deg, rgba(62, 103, 126, 0.96), rgba(28, 48, 62, 0.98));
  outline: none;
}

.sidebar-resizer-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 84px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242, 249, 252, 0.2), rgba(242, 249, 252, 0.95), rgba(242, 249, 252, 0.2));
  box-shadow: 0 0 12px rgba(126, 195, 235, 0.25);
}

.brand-block {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.brand-mark {
  background: linear-gradient(140deg, var(--accent), #ffd166);
  color: #121212;
  border-radius: 12px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand-block h1 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.brand-block p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.module-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.module-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #15242e;
  border: 1px solid #27404f;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.module-btn.active,
.module-btn:hover {
  background: #1b3240;
  border-color: #3f6479;
}

.module-btn.is-premium {
  border-color: rgba(243, 167, 18, 0.35);
}

.module-btn.is-operator {
  border-color: rgba(255, 140, 66, 0.4);
}

.module-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.module-tier-free {
  background: rgba(83, 193, 75, 0.14);
  color: #bfe8ba;
}

.module-tier-premium {
  background: rgba(243, 167, 18, 0.16);
  color: #ffd88a;
}

.module-tier-lens {
  background: rgba(0, 166, 251, 0.14);
  color: #9edfff;
}

.module-tier-operator {
  background: rgba(255, 140, 66, 0.16);
  color: #ffd0b0;
}

.module-btn.locked {
  opacity: 0.75;
}

.lock-icon {
  float: right;
}

.panel {
  background: var(--panel);
  border: 1px solid #29414f;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #f2f8fb;
}

#freshness-panel {
  background: linear-gradient(180deg, rgba(16, 27, 35, 0.92), rgba(14, 24, 31, 0.9));
}

.sidebar-trust-summary {
  display: grid;
  gap: 10px;
}

.sidebar-trust-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sidebar-trust-title {
  font-size: 12px;
  font-weight: 700;
  color: #eff6fa;
}

.sidebar-trust-time {
  font-size: 11px;
  color: #8fa6b2;
}

.sidebar-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sidebar-trust-chip {
  border: 1px solid rgba(52, 77, 92, 0.75);
  border-radius: 10px;
  background: rgba(11, 20, 26, 0.5);
  padding: 8px 9px;
}

.sidebar-trust-chip-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa6b2;
}

.sidebar-trust-chip-value {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #f1f6f9;
  line-height: 1.35;
}

.sidebar-trust-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-trust-note {
  font-size: 12px;
  line-height: 1.45;
  color: #c9d9e2;
}

.sidebar-trust-details {
  border: 1px solid rgba(47, 70, 83, 0.68);
  border-radius: 10px;
  background: rgba(10, 18, 24, 0.4);
  overflow: hidden;
}

.sidebar-trust-details summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 11px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4d7e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-trust-details summary::-webkit-details-marker {
  display: none;
}

.sidebar-trust-details summary::after {
  content: "+";
  font-size: 16px;
  color: #8fc8ea;
}

.sidebar-trust-details[open] summary::after {
  content: "-";
}

.sidebar-trust-operator-list {
  display: grid;
  gap: 8px;
  padding: 0 11px 11px;
}

.sidebar-trust-operator-item {
  border-top: 1px solid rgba(42, 63, 75, 0.55);
  padding-top: 8px;
}

.sidebar-trust-operator-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.sidebar-trust-operator-head {
  display: grid;
  gap: 5px;
}

.sidebar-trust-operator-time {
  font-size: 11px;
  color: #8fa6b2;
}

.sidebar-trust-operator-note {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: #ffcf99;
}

.sidebar-trust-footnote {
  font-size: 11px;
  line-height: 1.45;
  color: #8fa6b2;
}

.rerun-panel button {
  width: 100%;
  margin-bottom: 6px;
  border: 1px solid #345263;
  border-radius: 6px;
  background: #223743;
  color: var(--text);
  cursor: pointer;
  padding: 8px 10px;
}

.rerun-panel button:hover {
  background: #2c4958;
}

#job-list {
  max-height: 220px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.35;
  color: #d2dee6;
}

#main-stage {
  display: grid;
  grid-template-rows: 64px auto 1fr;
  min-height: 0;
}

#content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px minmax(320px, var(--feed-width));
  min-height: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}

#primary-column {
  display: grid;
  grid-template-rows: minmax(180px, 1fr) auto var(--bottom-panels-height, 240px);
  min-height: 0;
  height: 100%;
}

#main-content-grid {
  display: grid;
  min-height: 0;
  height: 100%;
}

#top-search {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.95fr);
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #263844;
  background: rgba(13, 23, 30, 0.75);
  align-items: center;
}

#top-search-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 8px;
  min-width: 0;
}

#top-search-controls {
  display: grid;
  grid-template-columns: 96px 110px auto minmax(210px, 1fr) 120px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

#product-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(38, 56, 68, 0.85);
  background: rgba(12, 22, 29, 0.9);
}

.product-brief-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(56, 80, 95, 0.75);
  background: rgba(18, 32, 42, 0.92);
}

.product-brief-card h3 {
  margin: 10px 0 6px;
  font-size: 15px;
}

.product-brief-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

#search-wrap {
  position: relative;
  min-width: 0;
}

#top-search input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #38505f;
  background: #10202a;
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
}

#top-search select,
#top-search label {
  border-radius: 10px;
  border: 1px solid #38505f;
  background: #10202a;
  color: var(--text);
  padding: 10px 10px;
  font-size: 13px;
}

#top-search label {
  display: flex;
  align-items: center;
  gap: 6px;
}

#top-search button {
  border-radius: 10px;
  border: 1px solid #425f70;
  background: #203645;
  color: var(--text);
  cursor: pointer;
}

#top-search button:hover {
  background: #2a485a;
}

#scenario-mode-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #38505f;
  background: #10202a;
}

#scenario-mode-toggle button {
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(32, 54, 69, 0.18);
  color: var(--text);
  min-height: 38px;
}

#scenario-mode-toggle button.is-active {
  background: #2a485a;
  border-color: #4f7288;
}

#scenario-mode-toggle button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.scenario-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(53, 76, 91, 0.75);
  background: linear-gradient(90deg, rgba(20, 37, 48, 0.96), rgba(26, 44, 56, 0.92));
  color: #dcebf3;
  font-size: 13px;
}

.scenario-banner.is-active {
  background: linear-gradient(90deg, rgba(67, 37, 10, 0.95), rgba(42, 32, 15, 0.92));
  border-bottom-color: rgba(243, 167, 18, 0.35);
}

.scenario-banner.is-warning {
  background: linear-gradient(90deg, rgba(57, 24, 19, 0.95), rgba(42, 23, 20, 0.92));
  border-bottom-color: rgba(239, 111, 61, 0.35);
}

.scenario-banner-title {
  font-weight: 700;
  color: #f6fbfd;
}

.scenario-banner-meta {
  color: #a9c1cf;
  font-size: 12px;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 2500;
  border-radius: 14px;
  border: 1px solid rgba(66, 95, 112, 0.88);
  background: rgba(16, 32, 42, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.search-suggestions.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.search-suggestion {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(66, 95, 112, 0.35);
  background: transparent;
  color: #e8f0f4;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
}

.search-suggestion:last-child {
  border-bottom: 0;
}

.search-suggestion:hover {
  background: rgba(45, 81, 103, 0.38);
}

.search-suggestion-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.search-suggestion-meta {
  font-size: 12px;
  color: #b7d0df;
}

#map-wrap {
  position: relative;
  min-height: 0;
  height: 100%;
  min-height: 160px;
  overflow: hidden;
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#right-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  gap: 6px;
  z-index: 1000;
}

#right-toolbar button {
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  border: 1px solid #3e5c6d;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
}

#right-toolbar button:hover {
  border-color: #7fa7bd;
}

.map-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1000;
}

#vacancy-controls.hidden,
#classe-controls.hidden,
#building-dossier-controls.hidden,
#zone-controls.hidden {
  display: none;
}

.vacancy-controls-card {
  width: 280px;
  background: rgba(10, 19, 25, 0.92);
  border: 1px solid #3a5869;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.vacancy-controls-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.vacancy-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.vacancy-mode-btn,
.vacancy-controls-actions button {
  border-radius: 8px;
  border: 1px solid #3f6275;
  background: #19303c;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
}

.vacancy-mode-btn.active {
  background: #2b4a5b;
  border-color: #7fa7bd;
}

.vacancy-controls-help,
.vacancy-controls-status {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.vacancy-controls-help {
  margin-bottom: 10px;
}

.vacancy-borough-label {
  display: block;
  font-size: 11px;
  margin-bottom: 4px;
  color: #e8f1f5;
}

#vacancy-borough-select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #35505f;
  background: #10202a;
  color: var(--text);
  padding: 6px;
  font-size: 12px;
}

.vacancy-borough-list {
  max-height: 220px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid #35505f;
  background: #10202a;
  padding: 6px;
}

.vacancy-borough-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  font-size: 12px;
}

.vacancy-borough-item input[type="checkbox"] {
  accent-color: #7fa7bd;
}

.vacancy-borough-item.disabled {
  opacity: 0.55;
}

.vacancy-borough-item.heavy span::after {
  content: " heavy";
  font-size: 10px;
  color: #ffb089;
  margin-left: 4px;
}

.vacancy-controls-actions {
  margin-top: 8px;
}

.vacancy-controls-status {
  margin-top: 8px;
}

.building-dossier-log {
  margin-top: 10px;
  max-height: 220px;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #35505f;
  background: #0d1820;
  color: #d7e7ef;
  padding: 8px;
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
}

#coords-box {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 1000;
  background: rgba(8, 15, 20, 0.85);
  border: 1px solid #365160;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
}

#map-legend {
  position: absolute;
  bottom: 10px;
  right: 160px;
  z-index: 1000;
  background: rgba(8, 15, 20, 0.88);
  border: 1px solid #365160;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  max-width: 340px;
}

#map-legend .legend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

#map-legend .legend-info-btn {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #5d7a8a;
  background: rgba(16, 30, 38, 0.92);
  color: #dceaf1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

#map-legend .legend-info-copy {
  margin: 0 0 8px 0;
  color: #b8cad4;
  line-height: 1.4;
}

#map-legend .legend-info-copy.hidden {
  display: none;
}

.map-info-control {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1100;
}

.map-info-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(74, 117, 145, 0.9);
  background: rgba(8, 15, 20, 0.92);
  color: #e5f0f6;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.map-info-panel {
  margin-top: 8px;
  width: min(280px, calc(100vw - 48px));
  max-width: calc(100% - 20px);
  background: rgba(8, 15, 20, 0.95);
  border: 1px solid rgba(74, 117, 145, 0.82);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.map-info-panel.hidden {
  display: none;
}

.map-info-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.map-info-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f6f9;
}

.map-info-close {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(93, 122, 138, 0.88);
  background: rgba(16, 30, 38, 0.96);
  color: #dceaf1;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.map-info-body {
  color: #c9d9e2;
  font-size: 12px;
  line-height: 1.45;
}

.map-info-body .map-info-card {
  display: grid;
  gap: 6px;
}

.map-info-body .map-info-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(95, 130, 152, 0.56);
  background: rgba(19, 37, 48, 0.74);
  color: #dceaf1;
  font-size: 11px;
  font-weight: 600;
}

.map-info-body .map-info-note {
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(54, 86, 106, 0.88);
  background: rgba(17, 35, 45, 0.72);
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 1800;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  background: rgba(7, 15, 21, 0.28);
  pointer-events: none;
}

.map-loading.visible {
  opacity: 1;
}

body.startup-loading .map-loading {
  position: fixed;
  z-index: 4000;
  opacity: 1;
  pointer-events: auto;
}

.map-loading-card {
  min-width: 320px;
  max-width: min(420px, calc(100vw - 48px));
  background: rgba(9, 19, 26, 0.97);
  border: 1px solid rgba(255, 196, 74, 0.28);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.map-loading-label {
  font-size: 13px;
  font-weight: 600;
  color: #dceaf1;
  margin-bottom: 10px;
}

.map-loading-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(103, 153, 187, 0.16);
  overflow: hidden;
}

.map-loading-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb347 0%, #53c14b 100%);
  transition: width 0.28s ease;
}

#map-legend.story-hidden {
  display: none;
}

#bottom-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid #243640;
  background: #0f1a22;
  min-height: 0;
}

#module-summary {
  margin: 10px 10px 0;
  padding: 12px 14px;
  border: 1px solid #243640;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 31, 40, 0.98), rgba(13, 24, 32, 0.96));
  color: #d9e6ed;
  min-height: 68px;
  max-height: 160px;
  overflow: auto;
}

.module-summary-card {
  overflow: auto;
}

body.module-price #primary-column {
  grid-template-rows: minmax(360px, 1fr) var(--bottom-panels-height, 240px);
}

body.module-price #bottom-panels {
  overflow: auto;
}

body.module-borough_strategy #primary-column {
  grid-template-rows: minmax(220px, 0.8fr) minmax(360px, 1.2fr) var(--bottom-panels-height, 240px);
}

body.module-borough_strategy #module-summary {
  max-height: none;
}

body.module-planning #main-stage {
  grid-template-rows: 64px 1fr;
}

body.module-planning #primary-column {
  grid-template-rows: minmax(0, 1fr) var(--bottom-panels-height, 240px);
}

body.module-planning #module-summary {
  display: none !important;
}

body.module-campo #primary-column {
  grid-template-rows: minmax(0, 1fr) var(--bottom-panels-height, 240px);
}

body.module-campo #module-summary {
  display: none !important;
}

body.module-energy #primary-column {
  grid-template-rows: minmax(280px, 0.92fr) minmax(280px, 0.78fr) var(--bottom-panels-height, 240px);
}

body.module-energy #module-summary {
  max-height: none;
}

body.module-building-dossier #content-shell,
body.module-building_dossier #content-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.module-building-dossier #main-stage,
body.module-building_dossier #main-stage {
  grid-template-rows: 64px 1fr;
}

body.module-building-dossier #primary-column,
body.module-building_dossier #primary-column {
  grid-template-rows: minmax(0, 1fr) minmax(140px, var(--bottom-panels-height, 240px));
}

body.module-building-dossier #map-wrap,
body.module-building_dossier #map-wrap {
  min-height: 180px;
  height: 100%;
}

body.module-building-dossier #feed-rail,
body.module-building_dossier #feed-rail,
body.module-building-dossier #feed-resizer,
body.module-building_dossier #feed-resizer {
  display: none;
}

body.module-building-dossier #bottom-panels,
body.module-building_dossier #bottom-panels {
  display: none;
}

body.module-building-dossier #module-summary,
body.module-building_dossier #module-summary {
  margin: 10px;
  max-height: none;
  min-height: 0;
  height: var(--bottom-panels-height, 240px);
}

body.module-building-dossier #building-dossier-controls,
body.module-building_dossier #building-dossier-controls {
  top: 12px;
  left: 12px;
  width: min(420px, calc(100% - 24px));
  max-width: 420px;
}

body.module-building-dossier #building-dossier-controls .vacancy-controls-card,
body.module-building_dossier #building-dossier-controls .vacancy-controls-card {
  max-height: min(640px, calc(100vh - 140px));
  overflow: auto;
}

.building-dossier-controls-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.building-dossier-cache-purge-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(243, 166, 46, 0.55);
  background: rgba(76, 36, 9, 0.9);
  color: #ffe8b0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.building-dossier-cache-purge-btn:hover:not(:disabled) {
  background: rgba(104, 46, 8, 0.96);
  border-color: rgba(243, 166, 46, 0.82);
}

.building-dossier-cache-purge-btn:disabled {
  opacity: 0.58;
  cursor: wait;
}

body.module-building-dossier #building-dossier-log,
body.module-building_dossier #building-dossier-log {
  max-height: 180px;
  overflow: auto;
}

body.module-building-dossier #building-dossier-job-meta,
body.module-building_dossier #building-dossier-job-meta,
body.module-building-dossier #building-dossier-log,
body.module-building_dossier #building-dossier-log {
  display: none;
}

.dossier-workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  height: 100%;
}

.dossier-workspace-summary {
  color: #dce6eb;
}

.dossier-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.dossier-score-card {
  padding: 12px;
  border: 1px solid rgba(48, 72, 86, 0.85);
  border-radius: 12px;
  background: rgba(11, 22, 29, 0.74);
}

.dossier-policy-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(48, 72, 86, 0.85);
  border-radius: 12px;
  background: rgba(11, 22, 29, 0.74);
}

.dossier-policy-card h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f1f6f9;
}

.dossier-policy-copy {
  display: grid;
  gap: 8px;
  color: #dce6eb;
}

.dossier-policy-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dossier-policy-pill {
  min-width: 148px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(67, 95, 111, 0.85);
  background: rgba(18, 32, 40, 0.92);
}

.dossier-policy-pill span {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9fb4bf;
}

.dossier-policy-pill strong {
  font-size: 13px;
  color: #eef6fa;
}

.dossier-policy-pill-ok {
  border-color: rgba(83, 193, 75, 0.55);
  background: rgba(24, 49, 30, 0.72);
}

.dossier-policy-pill-warn {
  border-color: rgba(239, 111, 61, 0.55);
  background: rgba(52, 26, 18, 0.74);
}

.dossier-policy-pill-info {
  border-color: rgba(0, 166, 251, 0.55);
  background: rgba(17, 35, 47, 0.78);
}

.dossier-policy-headline {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(16, 30, 38, 0.9);
  border: 1px solid rgba(54, 79, 94, 0.72);
}

.dossier-policy-headline strong {
  font-size: 12px;
  color: #f4f8fa;
}

.dossier-policy-headline span {
  font-size: 13px;
  line-height: 1.5;
  color: #dce8ed;
}

.dossier-policy-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.dossier-policy-column {
  display: grid;
  gap: 8px;
}

.dossier-policy-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.dossier-policy-takeaways {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(48, 72, 86, 0.6);
}

.dossier-policy-takeaways-title {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f1f6f9;
}

.dossier-policy-takeaways ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.dossier-policy-takeaways li {
  font-size: 12px;
  line-height: 1.45;
  color: #dce8ed;
}

.dossier-score-card h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f1f6f9;
}

.dossier-metric {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}

.dossier-metric:last-child {
  margin-bottom: 0;
}

.dossier-metric span {
  font-size: 11px;
  color: #9fb3bf;
}

.dossier-metric strong {
  font-size: 13px;
  color: #e9f3f8;
  word-break: break-word;
}

.dossier-workspace-job {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(53, 80, 95, 0.9);
  border-radius: 12px;
  background: rgba(11, 22, 29, 0.78);
}

.dossier-workspace-job-head {
  display: grid;
  gap: 4px;
}

.dossier-workspace-actions {
  margin-top: 4px;
}

.dossier-workspace-job-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f1f6f9;
}

.dossier-workspace-job-meta {
  font-size: 11px;
  color: #9fb3bf;
  word-break: break-word;
}

.dossier-workspace-log {
  margin: 0;
  min-height: 0;
  overflow: auto;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(48, 72, 86, 0.85);
  background: #0b151c;
  color: #dceaf1;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.dossier-massing-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(48, 72, 86, 0.85);
  border-radius: 12px;
  background: rgba(11, 22, 29, 0.74);
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 1fr);
  gap: 14px;
}

.dossier-massing-stage {
  position: relative;
  min-height: 180px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(53, 80, 95, 0.9);
  background: linear-gradient(180deg, rgba(15, 33, 45, 0.94), rgba(11, 21, 28, 0.98));
}

.dossier-massing-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 121, 140, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 121, 140, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
}

.dossier-massing-footprint {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 128px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.dossier-massing-block {
  position: relative;
  min-width: 50px;
  border-radius: 8px 8px 0 0;
  border: 1px solid rgba(12, 20, 24, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.dossier-massing-block-front {
  background: linear-gradient(180deg, #7ca4b6, #45606d);
}

.dossier-massing-block-rear {
  background: linear-gradient(180deg, #f3c969, #a7741e);
}

.dossier-massing-meta {
  display: grid;
  gap: 8px;
}

@media (max-width: 900px) {
  .dossier-massing-card {
    grid-template-columns: 1fr;
  }
}

#feed-rail {
  border-left: 1px solid #243640;
  background: linear-gradient(180deg, rgba(16, 29, 37, 0.98), rgba(13, 23, 30, 0.96));
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: hidden;
}

#feed-resizer {
  background: linear-gradient(180deg, rgba(34, 58, 72, 0.92), rgba(18, 31, 40, 0.96));
  border-left: 1px solid #203644;
  border-right: 1px solid #203644;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
  position: relative;
}

#feed-resizer:hover,
#feed-resizer.is-dragging,
#feed-resizer:focus-visible {
  background: linear-gradient(180deg, rgba(62, 103, 126, 0.96), rgba(28, 48, 62, 0.98));
  outline: none;
}

.feed-resizer-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 84px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242, 249, 252, 0.2), rgba(242, 249, 252, 0.95), rgba(242, 249, 252, 0.2));
  box-shadow: 0 0 12px rgba(126, 195, 235, 0.25);
}

.feed-rail-head {
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(56, 82, 98, 0.75);
}

.feed-rail-head h3 {
  margin: 0;
  font-size: 14px;
  color: #f1f6f9;
}

.feed-rail-head p {
  margin: 4px 0 0;
  color: #97aeb9;
  font-size: 11px;
  line-height: 1.45;
}

.toolbar-premium-lock {
  margin-left: 6px;
  color: #ffd88a;
  font-size: 11px;
  font-weight: 700;
}

.feed-rail-content {
  overflow-y: auto;
  padding: 12px 14px 18px;
  display: grid;
  gap: 10px;
}

.feed-card {
  border: 1px solid #2d4352;
  border-radius: 12px;
  background: rgba(20, 35, 45, 0.92);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.feed-card.feed-card-highlight {
  background: linear-gradient(180deg, rgba(15, 29, 37, 0.98), rgba(18, 33, 43, 0.96));
  border-color: rgba(81, 118, 139, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.feed-card.feed-card-premium-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 181, 71, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(16, 29, 38, 0.98), rgba(18, 33, 43, 0.97));
  border-color: rgba(198, 155, 79, 0.5);
}

.feed-card.feed-card-accent-energy {
  background:
    radial-gradient(circle at top left, rgba(255, 166, 0, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(22, 28, 34, 0.98), rgba(16, 27, 35, 0.96));
}

.feed-card.feed-card-accent-health {
  background:
    radial-gradient(circle at top left, rgba(29, 161, 242, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(16, 27, 36, 0.98), rgba(16, 28, 37, 0.96));
}

.feed-card.feed-card-accent-planning {
  background:
    radial-gradient(circle at top left, rgba(0, 212, 170, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(16, 27, 36, 0.98), rgba(16, 28, 37, 0.96));
}

.feed-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.feed-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #eff6fa;
}

.feed-card-kicker {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #91afbf;
}

.feed-card-copy {
  color: #d8e5ec;
  font-size: 13px;
  line-height: 1.5;
}

.feed-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.feed-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feed-card-related {
  margin-top: 8px;
  color: #9fc8df;
  font-size: 11px;
}

.feed-card-publication {
  gap: 8px;
  padding: 12px;
  border-color: rgba(72, 105, 124, 0.92);
  background: linear-gradient(180deg, rgba(18, 34, 44, 0.98), rgba(17, 31, 40, 0.96));
}

.feed-card-publication .feed-card-title {
  font-size: 18px;
  line-height: 1.25;
}

.feed-card-publication .feed-card-meta {
  gap: 10px;
  color: #a9bfca;
}

.feed-card-publication .feed-card-related {
  margin-top: 0;
}

.feed-card button,
.feed-card a {
  border-radius: 8px;
  border: 1px solid #3f6275;
  background: #19303c;
  color: var(--text);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dashboard-stat {
  border: 1px solid #28414f;
  border-radius: 10px;
  background: rgba(10, 19, 25, 0.45);
  padding: 8px;
}

.dashboard-stat-label {
  color: #9db4bf;
  font-size: 11px;
}

.dashboard-stat-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  color: #f4fafc;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: center;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: start;
}

.dashboard-hero-copy {
  display: grid;
  gap: 10px;
}

.dashboard-hero-kicker-row,
.dashboard-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-hero-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fc8ea;
  font-weight: 700;
}

.dashboard-hero-date,
.dashboard-hero-scope {
  color: #9fb3bf;
  font-size: 12px;
}

.dashboard-hero-title-row h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  color: #f4fafc;
}

.dashboard-hero-summary {
  font-size: 15px;
  line-height: 1.55;
  color: #d7e5ec;
  max-width: 68ch;
}

.dashboard-hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-key-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-key-point {
  border: 1px solid rgba(64, 98, 115, 0.44);
  border-radius: 12px;
  background: rgba(11, 22, 29, 0.54);
  padding: 11px 12px;
}

.dashboard-key-point-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa6b2;
}

.dashboard-key-point-value {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #eff6fa;
}

.dashboard-detail-panel {
  margin-top: 14px;
  border: 1px solid rgba(60, 92, 108, 0.52);
  border-radius: 14px;
  background: rgba(10, 22, 30, 0.36);
  overflow: hidden;
}

.dashboard-detail-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 15px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9dbe4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-detail-panel summary::-webkit-details-marker {
  display: none;
}

.dashboard-detail-panel summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  color: #8fc8ea;
}

.dashboard-detail-panel[open] summary::after {
  content: "-";
}

.dashboard-detail-body {
  padding: 0 15px 15px;
}

.dashboard-ai-note {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #36566a;
  border-radius: 12px;
  background: rgba(19, 40, 52, 0.5);
}

.dashboard-ai-note-headline {
  margin-top: 6px;
  color: #eff6fa;
}

.dashboard-ai-note-copy {
  margin-top: 6px;
  color: #dce6eb;
  line-height: 1.5;
}

.dashboard-ai-note-meta {
  margin-top: 8px;
  color: #8fa8b7;
  font-size: 12px;
}

.score-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at center, rgba(13, 22, 29, 0.96) 0 54%, transparent 55%),
    conic-gradient(var(--ring-color, #4ea1ff) calc(var(--ring-score, 50) * 1%), rgba(62, 87, 103, 0.28) 0);
  box-shadow:
    inset 0 0 0 1px rgba(85, 114, 130, 0.35),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(104, 135, 151, 0.2);
}

.score-ring-center {
  position: relative;
  z-index: 1;
  text-align: center;
}

.score-ring-value {
  font-size: 46px;
  line-height: 1;
  font-weight: 700;
  color: #ffb347;
}

.score-ring-label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9eb3bf;
}

.risk-bar-list {
  display: grid;
  gap: 10px;
}

.risk-bar-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: center;
}

.risk-bar-label,
.risk-bar-value {
  font-size: 12px;
  color: #d7e5ec;
}

.risk-bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(74, 97, 111, 0.28);
  border: 1px solid rgba(72, 101, 117, 0.3);
}

.risk-bar-fill {
  height: 100%;
  width: max(4%, calc(var(--bar-score, 0) * 1%));
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bar-color, #4ea1ff), color-mix(in srgb, var(--bar-color, #4ea1ff) 58%, white));
  box-shadow: 0 0 12px color-mix(in srgb, var(--bar-color, #4ea1ff) 35%, transparent);
}

.metric-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-chip {
  min-width: 108px;
  border-radius: 12px;
  border: 1px solid rgba(77, 112, 131, 0.45);
  background: rgba(12, 22, 29, 0.52);
  padding: 10px;
  position: relative;
}

.metric-chip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fa6b2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-chip-value {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 700;
  color: #f4fafc;
}

.metric-chip-info-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(78, 161, 255, 0.45);
  background: rgba(14, 31, 42, 0.92);
  color: #8ed3ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.metric-chip-info-popover {
  position: absolute;
  top: 34px;
  left: 10px;
  right: 10px;
  z-index: 6;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(78, 161, 255, 0.24);
  background: rgba(10, 22, 30, 0.97);
  color: #d7e8f2;
  font-size: 11px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.metric-chip-info-popover.hidden {
  display: none;
}

.dashboard-subsection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa6b2;
}

.dashboard-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-section-title h4 {
  margin: 0;
  font-size: 13px;
  color: #f1f6f9;
}

.dashboard-section-copy {
  font-size: 12px;
  line-height: 1.5;
  color: #b5c8d1;
}

.dashboard-momentum {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #9fb3bf;
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-momentum-ticker {
  align-items: stretch;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(80, 111, 126, 0.38);
  background: rgba(10, 22, 30, 0.6);
}

.dashboard-momentum-delta {
  min-width: 210px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dashboard-momentum-meta {
  display: grid;
  gap: 2px;
  color: #b8ccd6;
}

.dashboard-momentum-ok .dashboard-momentum-delta {
  color: #7ed98f;
}

.dashboard-momentum-warn .dashboard-momentum-delta {
  color: #ffb27a;
}

.dashboard-momentum-info .dashboard-momentum-delta {
  color: #9ed4f5;
}

.loading-card {
  position: relative;
  overflow: hidden;
}

.inline-loading-bar {
  width: 100%;
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(62, 92, 109, 0.35);
  overflow: hidden;
}

.inline-loading-bar span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4ea1ff, #7ed1bf);
  animation: inline-loading-slide 1.2s ease-in-out infinite;
}

.data-fresh-job-card {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #2a4656;
  border-radius: 8px;
  background: rgba(10, 22, 30, 0.82);
  min-width: 0;
}

.data-fresh-job-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #b7c9d4;
}

.data-fresh-job-bar {
  margin-top: 6px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(92, 132, 156, 0.18);
}

.data-fresh-job-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3a712 0%, #53c14b 100%);
  transition: width 0.25s ease;
}

.data-fresh-job-copy {
  margin-top: 6px;
  font-size: 11px;
  color: #9fb3bf;
}

.data-fresh-job-logs {
  margin-top: 6px;
  display: grid;
  gap: 4px;
  font-size: 10px;
  color: #d7e4eb;
}

@keyframes inline-loading-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(320%); }
}

#dashboard-resizer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  height: 18px;
  cursor: row-resize;
  background: linear-gradient(180deg, rgba(48, 73, 87, 0.45) 0%, rgba(106, 151, 176, 0.92) 50%, rgba(48, 73, 87, 0.45) 100%);
  border-top: 1px solid rgba(83, 114, 130, 0.45);
  user-select: none;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#dashboard-resizer:hover,
#dashboard-resizer.is-dragging,
#dashboard-resizer:focus-visible {
  background: linear-gradient(180deg, rgba(67, 104, 124, 0.45) 0%, rgba(136, 189, 219, 0.95) 50%, rgba(67, 104, 124, 0.45) 100%);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(201, 226, 240, 0.18);
}

.dashboard-resizer-grip {
  width: 88px;
  height: 5px;
  border-radius: 999px;
  background: rgba(244, 250, 253, 0.9);
  box-shadow: 0 0 10px rgba(155, 211, 240, 0.35);
}

.dashboard-resizer-label {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(239, 247, 251, 0.88);
  text-shadow: 0 1px 0 rgba(5, 11, 16, 0.3);
}

.bottom-card {
  background:
    linear-gradient(180deg, rgba(19, 34, 43, 0.98), rgba(16, 29, 38, 0.98));
  border: 1px solid rgba(50, 73, 86, 0.9);
  border-radius: 14px;
  padding: 12px;
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(180, 213, 230, 0.03);
}

.bottom-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #f1f6f9;
}

.bottom-card.energy-card {
  border-color: rgba(163, 104, 24, 0.55);
  background:
    radial-gradient(circle at top left, rgba(255, 161, 0, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(24, 31, 37, 0.98), rgba(18, 28, 36, 0.98));
}

.bottom-card.health-card {
  border-color: rgba(46, 105, 141, 0.55);
  background:
    radial-gradient(circle at top left, rgba(0, 166, 251, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(18, 31, 40, 0.98), rgba(17, 29, 38, 0.98));
}

.dashboard-split {
  display: grid;
  gap: 12px;
}

@media (max-width: 1100px) {
  #app-shell {
    grid-template-columns: 1fr;
  }

  #sidebar-resizer {
    display: none;
  }

  #content-shell {
    grid-template-columns: 1fr;
  }

  #feed-resizer {
    display: none;
  }

  .dashboard-overview {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-key-points {
    grid-template-columns: 1fr;
  }

  #bottom-panels {
    grid-template-columns: 1fr;
  }

  .sidebar-trust-grid {
    grid-template-columns: 1fr;
  }
}

.small-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.small-table th,
.small-table td {
  border-bottom: 1px solid #264151;
  padding: 5px 4px;
  text-align: left;
}

.module-summary-table-wrap {
  max-height: 260px;
  overflow: auto;
  border: 1px solid #264151;
  border-radius: 10px;
  background: rgba(12, 22, 29, 0.72);
}

.module-summary-table-wrap .small-table th {
  position: sticky;
  top: 0;
  background: rgba(16, 28, 36, 0.96);
  z-index: 1;
}

.campo-feed-wrap {
  display: grid;
  gap: 10px;
}

.campo-feed-head {
  display: grid;
  gap: 4px;
}

.campo-feed-sub {
  font-size: 11px;
  color: var(--muted);
}

.campo-feed-list {
  display: grid;
  gap: 8px;
}

.campo-card {
  width: 100%;
  text-align: left;
  border: 1px solid #2d4352;
  border-radius: 10px;
  background: #10202a;
  color: var(--text);
  padding: 10px;
  cursor: pointer;
}

.campo-card:hover {
  border-color: #4b6b7e;
  background: #142734;
}

.campo-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.campo-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.campo-card-summary,
.campo-card-why {
  font-size: 12px;
  line-height: 1.45;
  color: #d5e2e8;
}

.campo-card-why {
  margin-top: 8px;
  color: #a8bbc6;
}

.campo-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.campo-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.campo-mini-action {
  border: 1px solid rgba(103, 153, 187, 0.26);
  background: #18303f;
  color: #e8f0f4;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
}

.access-modal-content.publication-report-modal-content {
  width: min(1380px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  min-width: min(680px, calc(100vw - 24px));
  height: min(88vh, 1080px);
  min-height: 520px;
  max-height: calc(100vh - 24px);
  resize: both;
  overflow: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.publication-report-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.publication-report-modal-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.publication-report-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(103, 153, 187, 0.28);
  background: rgba(15, 32, 43, 0.92);
  border-radius: 12px;
}

.publication-report-zoom-controls button {
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.publication-report-zoom-controls span {
  min-width: 52px;
  text-align: center;
  font-size: 13px;
  color: #d7e8f2;
}

.publication-report-frame-wrap {
  margin-top: 14px;
  flex: 1 1 auto;
  min-height: 420px;
  border-radius: 16px;
  overflow: auto;
  border: 1px solid rgba(78, 161, 255, 0.16);
  background: rgba(10, 20, 27, 0.82);
}

.publication-report-frame-stage {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: visible;
}

.publication-report-frame-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  background: #ffffff;
  transform-origin: top left;
}

.publication-report-preview {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  flex: 0 0 auto;
}

.publication-report-resize-handle {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 54px;
  height: 54px;
  border-right: 3px solid rgba(126, 209, 191, 0.72);
  border-bottom: 3px solid rgba(126, 209, 191, 0.72);
  border-radius: 0 0 8px 0;
  cursor: nwse-resize;
  opacity: 0.9;
  z-index: 8;
  touch-action: none;
}

.publication-report-resize-handle::before,
.publication-report-resize-handle::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 20px;
  height: 2px;
  background: rgba(126, 209, 191, 0.55);
  transform: rotate(-45deg);
  transform-origin: right center;
}

.publication-report-resize-handle::after {
  right: 6px;
  bottom: 18px;
}

.publication-report-preview-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #89abc0;
}

.publication-report-preview-body {
  max-height: min(24vh, 260px);
  overflow: auto;
  background: rgba(10, 24, 33, 0.92);
  border: 1px solid rgba(103, 153, 187, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  color: #d7e8f2;
  line-height: 1.6;
  white-space: pre-wrap;
}

.pill {
  display: inline-block;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 10px;
  background: #2a4555;
}

.planning-cat-pill {
  color: #111111 !important;
  font-weight: 700;
}

.pill.ok { background: rgba(83, 193, 75, 0.22); border: 1px solid rgba(83, 193, 75, 0.5); }
.pill.warn { background: rgba(239, 111, 61, 0.22); border: 1px solid rgba(239, 111, 61, 0.5); }
.pill.info { background: rgba(0, 166, 251, 0.22); border: 1px solid rgba(0, 166, 251, 0.5); }

.planning-detail-loadmore-wrap {
  margin-top: 10px;
}

.planning-detail-loadmore-btn {
  border-radius: 8px;
  border: 1px solid #406275;
  background: #19303c;
  color: #e9f3f7;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.planning-detail-loadmore-btn:hover {
  background: #244150;
}

.planning-detail-loadmore-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.planning-detail-progress {
  margin-top: 8px;
}

.planning-detail-progress-label {
  font-size: 11px;
  color: #9fb3bf;
  margin-bottom: 4px;
}

.planning-detail-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(103, 153, 187, 0.16);
  overflow: hidden;
}

.planning-detail-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4ea1ff 0%, #53c14b 100%);
  transition: width 0.25s ease;
}

.planning-story-anchor {
  background: transparent;
  border: 0;
  transform: translate(-200px, calc(-100% - 18px));
}

.planning-story-card {
  position: relative;
  width: 400px;
  max-width: min(400px, calc(100vw - 48px));
  max-height: 60vh;
  overflow-y: auto;
  background: rgba(250, 252, 253, 0.98);
  color: #14222b;
  border: 1px solid rgba(33, 50, 61, 0.18);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  padding: 18px 18px 16px;
}

.planning-story-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 22px;
  height: 22px;
  background: rgba(250, 252, 253, 0.98);
  border-right: 1px solid rgba(33, 50, 61, 0.14);
  border-bottom: 1px solid rgba(33, 50, 61, 0.14);
  transform: translateX(-50%) rotate(45deg);
}

.planning-story-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #152733;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.planning-story-headline {
  padding-right: 38px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 12px;
}

.planning-story-summary,
.planning-story-body,
.planning-story-why {
  font-size: 14px;
  line-height: 1.55;
  color: #233744;
}

.planning-story-summary {
  background: #eef4f7;
  border: 1px solid rgba(58, 89, 107, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.planning-story-section-title {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #587183;
}

.planning-story-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.planning-story-fact {
  background: #f4f8fa;
  border: 1px solid rgba(58, 89, 107, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
}

.planning-story-fact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #6a8392;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.planning-story-fact-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #12212a;
}

.planning-story-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.planning-story-ref {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #224153;
  background: #edf4f7;
  border: 1px solid rgba(58, 89, 107, 0.14);
  border-radius: 999px;
  padding: 5px 9px;
}

.planning-story-date {
  margin-top: 16px;
  font-size: 12px;
  color: #6f8795;
}

@media (max-width: 1080px) {
  .planning-story-anchor {
    transform: translate(-190px, calc(-100% - 18px));
  }

  .planning-story-card {
    width: 360px;
    max-width: min(360px, calc(100vw - 36px));
    max-height: 52vh;
  }
}

#access-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 16, 0.65);
  display: grid;
  place-items: center;
  z-index: 5000;
}

#data-fresh-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 16, 0.65);
  display: grid;
  place-items: center;
  z-index: 5000;
}

#publication-report-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 16, 0.72);
  display: grid;
  place-items: center;
  z-index: 5100;
  padding: 24px;
}

.pill.muted { background: rgba(123, 135, 148, 0.22); border: 1px solid rgba(123, 135, 148, 0.5); }

.campo-page-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #08131b 0%, #10202b 100%);
  color: #e8f0f4;
  font-family: "Space Grotesk", sans-serif;
}

.campo-page-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px;
}

.campo-page-head,
.campo-filter-bar,
.campo-toolbar,
.campo-list-panel,
.campo-detail-panel {
  background: rgba(17, 34, 46, 0.88);
  border: 1px solid rgba(103, 153, 187, 0.22);
  border-radius: 18px;
}

.campo-page-head,
.campo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}

.campo-page-head h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.campo-page-head p,
.campo-toolbar,
.campo-detail-panel p,
.campo-review-summary,
.campo-review-meta,
.campo-empty {
  color: #b7d0df;
}

.campo-link-btn,
.campo-page-actions button,
.campo-toolbar-actions button,
.campo-filter-grid select,
.campo-filter-grid input,
.campo-detail-wrap input,
.campo-detail-wrap select,
.campo-detail-wrap textarea {
  border-radius: 12px;
  border: 1px solid rgba(103, 153, 187, 0.26);
  background: #193142;
  color: #ecf4f8;
  font: inherit;
}

.campo-link-btn,
.campo-page-actions button,
.campo-toolbar-actions button {
  padding: 12px 16px;
  text-decoration: none;
  cursor: pointer;
}

#left-nav .panel .campo-link-btn {
  display: block;
  width: 100%;
  text-align: center;
}

.campo-page-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.campo-filter-bar {
  margin-top: 18px;
  padding: 18px 20px;
}

.campo-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.campo-tab {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(103, 153, 187, 0.26);
  background: #132733;
  color: #dceaf1;
  cursor: pointer;
  font: inherit;
}

.campo-tab.active {
  background: #2d5167;
  border-color: #6ea6c8;
}

.campo-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.campo-filter-grid select,
.campo-filter-grid input {
  padding: 12px 14px;
}

.campo-detail-wrap input,
.campo-detail-wrap select,
.campo-detail-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
}

.campo-detail-wrap textarea {
  min-height: 96px;
  resize: vertical;
}

.campo-quick-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #b7d0df;
  font-size: 13px;
}

.campo-quick-filters label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.campo-tab-count {
  margin-left: 6px;
  font-size: 11px;
  color: #b7d0df;
}

.tracked-feed {
  display: grid;
  gap: 10px;
}

.tracked-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tracked-update-card {
  border: 1px solid #2d4352;
  border-radius: 10px;
  background: #10202a;
  padding: 10px;
}

.tracked-update-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tracked-update-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.campo-toolbar {
  margin-top: 18px;
}

.campo-job-overlay {
  margin-top: 18px;
  background: rgba(10, 25, 34, 0.62);
  border: 1px solid rgba(103, 153, 187, 0.24);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.campo-job-overlay.hidden {
  display: none;
}

.campo-job-panel {
  padding: 18px 20px;
}

.campo-job-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.campo-job-head h2 {
  margin: 0;
  font-size: 20px;
}

.campo-job-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(103, 153, 187, 0.14);
  overflow: hidden;
  margin-bottom: 14px;
}

.campo-job-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #57a8d4 0%, #7ed1bf 100%);
  transition: width 180ms ease;
}

.campo-job-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  color: #d3e5ee;
  font-size: 14px;
}

.campo-job-message {
  margin-top: 10px;
  color: #b7d0df;
  font-size: 13px;
}

.campo-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.campo-toolbar-actions select {
  min-height: 40px;
  min-width: 150px;
}

.workflow-hero {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(103, 153, 187, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 181, 71, 0.12), transparent 30%),
    rgba(11, 25, 34, 0.78);
  display: grid;
  gap: 14px;
}

.workflow-hero h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.workflow-hero p {
  margin: 0;
  color: #b7d0df;
}

.workflow-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workflow-stat {
  border: 1px solid rgba(78, 161, 255, 0.16);
  border-radius: 14px;
  background: rgba(15, 32, 43, 0.82);
  padding: 12px;
}

.workflow-stat-label {
  color: #9fb3bf;
  font-size: 11px;
}

.workflow-stat-value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  color: #f1f7fa;
}

.campo-library-panel {
  background: #132735;
  border: 1px solid rgba(78, 161, 255, 0.18);
  border-radius: 18px;
  padding: 18px 20px;
  margin-top: 18px;
}

.campo-library-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.campo-library-head h2 {
  margin: 0 0 6px 0;
  font-size: 24px;
}

.campo-library-head p {
  margin: 0;
  color: #9fb3bf;
}

.campo-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.campo-library-actions select,
.campo-library-actions button {
  min-height: 40px;
}

.campo-library-actions input[type="text"] {
  min-height: 40px;
}

.campo-scenario-filter-bar {
  margin-bottom: 14px;
}

.campo-library-status {
  color: #9fb3bf;
  margin-bottom: 12px;
}

.campo-scenario-ai-console {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(78, 161, 255, 0.16);
  background: rgba(15, 32, 43, 0.78);
}

.campo-scenario-ai-console-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.campo-scenario-ai-console-head h3 {
  margin: 0 0 6px;
}

.campo-scenario-ai-console-head p {
  margin: 0;
  color: #9fb3bf;
}

.campo-scenario-ai-job-log {
  margin-top: 10px;
  max-height: 260px;
}

.campo-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.campo-library-footer {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.campo-library-card {
  background: #0f202b;
  border: 1px solid rgba(78, 161, 255, 0.14);
  border-radius: 16px;
  padding: 14px;
}

.campo-library-card.selected {
  border-color: rgba(83, 193, 75, 0.9);
  box-shadow: 0 0 0 1px rgba(83, 193, 75, 0.35);
}

.campo-library-card label {
  display: block;
  cursor: pointer;
}

.campo-library-card input[type="checkbox"] {
  margin-right: 8px;
}

.campo-library-title {
  font-size: 15px;
  font-weight: 700;
  color: #f1f7fa;
}

.campo-library-meta {
  margin-top: 6px;
  color: #9fb3bf;
  font-size: 12px;
}

.campo-library-desc {
  margin-top: 8px;
  color: #c7d7df;
  font-size: 13px;
  line-height: 1.4;
}

.campo-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.campo-publication-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.campo-publication-location-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(78, 161, 255, 0.14);
  background: rgba(15, 32, 43, 0.72);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.campo-publication-map-modal-dialog {
  width: min(960px, calc(100vw - 40px));
}

#campo-publication-map-modal {
  z-index: 1300;
}

.campo-publication-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}

.campo-publication-map-stage {
  min-height: 440px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(78, 161, 255, 0.14);
  background: #102331;
}

.campo-publication-map-sidebar {
  display: grid;
  gap: 12px;
}

.campo-publication-map-confirm {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(126, 209, 191, 0.24);
  background: rgba(15, 32, 43, 0.78);
}

@media (max-width: 860px) {
  .campo-publication-location-card,
  .campo-publication-map-shell {
    grid-template-columns: 1fr;
    display: grid;
  }
}

.campo-list-panel,
.campo-detail-panel {
  padding: 18px;
  min-height: 620px;
}

.campo-review-popout {
  position: sticky;
  top: 18px;
  align-self: start;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  max-height: calc(100vh - 36px);
  overflow: hidden;
}

.campo-review-popout .campo-detail-wrap {
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.campo-review-list {
  display: grid;
  gap: 12px;
}

.campo-review-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  border: 1px solid rgba(103, 153, 187, 0.18);
  border-radius: 14px;
  background: rgba(11, 25, 34, 0.7);
  padding: 12px;
}

.campo-review-card.selected {
  border-color: rgba(110, 166, 200, 0.72);
  box-shadow: 0 0 0 1px rgba(110, 166, 200, 0.18);
}

.campo-review-card.is-selected {
  border-color: rgba(126, 209, 191, 0.82);
  box-shadow: 0 0 0 1px rgba(126, 209, 191, 0.22);
}

.campo-review-check {
  display: flex;
  align-items: flex-start;
  padding-top: 10px;
}

.campo-review-main {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.campo-review-top,
.campo-detail-meta,
.campo-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.campo-review-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #f2f8fb;
}

.campo-review-summary {
  line-height: 1.45;
}

.campo-node-photo,
.feed-card-image {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(126, 209, 191, 0.16);
}

.campo-node-photo-detail {
  max-width: 420px;
  max-height: 300px;
}

.campo-review-meta {
  margin-top: 10px;
  font-size: 12px;
}

.campo-detail-wrap h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.campo-detail-section {
  margin-top: 18px;
}

.campo-detail-section input[type="text"],
.campo-detail-section input[type="number"],
.campo-detail-section select,
.campo-detail-section textarea,
.campo-library-card input[type="text"],
.campo-library-card input[type="number"],
.campo-library-card select,
.campo-library-card textarea {
  width: 100%;
  margin-top: 8px;
}

.campo-portfolio-summary-card {
  margin-bottom: 14px;
}

.campo-portfolio-board {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.campo-portfolio-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 32, 43, 0.88);
  border: 1px solid rgba(78, 161, 255, 0.14);
  font-size: 12px;
  color: #c7d7df;
}

.campo-portfolio-pill.is-selected {
  border-color: rgba(126, 209, 191, 0.8);
  box-shadow: 0 0 0 1px rgba(126, 209, 191, 0.25);
}

.campo-detail-section ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.campo-parse-note-list {
  margin-top: 14px;
  max-height: 460px;
  overflow: auto;
  display: grid;
  gap: 14px;
}

.campo-parse-note-week {
  border-radius: 16px;
  border: 1px solid rgba(78, 161, 255, 0.14);
  background: rgba(15, 32, 43, 0.72);
  padding: 14px;
}

.campo-parse-note-week-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #c7d7df;
}

.campo-parse-note-thread {
  display: grid;
  gap: 10px;
}

.campo-parse-note-card {
  border-left: 3px solid rgba(126, 209, 191, 0.55);
  padding: 12px 12px 12px 14px;
  border-radius: 12px;
  background: rgba(8, 19, 27, 0.82);
}

.campo-parse-note-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.campo-empty {
  padding: 28px;
  border-radius: 14px;
  background: rgba(11, 25, 34, 0.7);
}

.campo-evidence-drawer {
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(126, 209, 191, 0.22);
  background:
    radial-gradient(circle at top right, rgba(126, 209, 191, 0.12), transparent 28%),
    rgba(11, 25, 34, 0.78);
}

.campo-evidence-drawer.hidden {
  display: none;
}

.campo-evidence-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.campo-evidence-drawer-head h3,
.campo-evidence-audit-panel h4,
.campo-modal-head h3,
.campo-upload-progress h4 {
  margin: 0 0 6px;
}

.campo-evidence-drawer-head p,
.campo-modal-head p {
  margin: 0;
  color: #9fb3bf;
}

.campo-evidence-drawer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  margin-top: 12px;
}

.campo-evidence-audit-panel {
  border-radius: 16px;
  border: 1px solid rgba(78, 161, 255, 0.14);
  background: rgba(15, 32, 43, 0.88);
  padding: 14px;
}

.campo-evidence-audit-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(103, 153, 187, 0.18);
}

.campo-evidence-audit-block:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.campo-evidence-audit-pre {
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(7, 17, 24, 0.82);
  border: 1px solid rgba(103, 153, 187, 0.14);
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
  color: #c7d7df;
}

.campo-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.campo-modal.hidden {
  display: none;
}

.campo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 16, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.campo-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 96vw);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(78, 161, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(19, 39, 53, 0.98), rgba(11, 25, 34, 0.98));
  padding: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.campo-publication-modal-dialog {
  width: min(1240px, 96vw);
}

.campo-dossier-3d-modal-dialog {
  width: min(1220px, 96vw);
}

.campo-publication-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.campo-dossier-3d-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.campo-dossier-3d-stage-wrap {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(78, 161, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(12, 27, 37, 0.98), rgba(8, 18, 24, 0.98));
  overflow: hidden;
  min-height: 420px;
}

.campo-dossier-3d-canvas {
  display: block;
  width: 100%;
  min-height: 420px;
  height: min(68vh, 640px);
  cursor: grab;
}

.campo-dossier-3d-canvas.is-dragging {
  cursor: grabbing;
}

.campo-dossier-3d-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(78, 161, 255, 0.24);
  background: rgba(10, 22, 30, 0.8);
  color: #b8cdd8;
  font-size: 12px;
}

.campo-dossier-3d-sidebar {
  border-radius: 18px;
  border: 1px solid rgba(126, 209, 191, 0.18);
  background: rgba(12, 27, 37, 0.86);
  padding: 16px;
  overflow: auto;
}

.campo-dossier-3d-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.campo-dossier-3d-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(8, 18, 24, 0.72);
  border: 1px solid rgba(103, 153, 187, 0.14);
}

.campo-dossier-3d-metric span {
  color: #97adba;
}

.campo-dossier-3d-metric strong {
  color: #eef5f7;
  text-align: right;
}

.campo-dossier-3d-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.campo-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.campo-modal-close {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(103, 153, 187, 0.28);
  background: rgba(15, 32, 43, 0.92);
  color: #e9f4f8;
  cursor: pointer;
  padding: 8px 12px;
}

.campo-dropzone {
  margin-top: 16px;
  border-radius: 18px;
  border: 1.5px dashed rgba(126, 209, 191, 0.42);
  background:
    radial-gradient(circle at top right, rgba(126, 209, 191, 0.12), transparent 36%),
    rgba(10, 25, 34, 0.82);
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.campo-dropzone:hover,
.campo-dropzone.is-dragover,
.campo-dropzone:focus {
  border-color: rgba(126, 209, 191, 0.8);
  transform: translateY(-1px);
  background:
    radial-gradient(circle at top right, rgba(126, 209, 191, 0.18), transparent 36%),
    rgba(10, 25, 34, 0.92);
}

.campo-dropzone-title {
  font-size: 20px;
  font-weight: 700;
  color: #f2f8fb;
}

.campo-dropzone-copy {
  margin-top: 6px;
  color: #bad0dc;
}

.campo-upload-progress {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(78, 161, 255, 0.18);
  background: rgba(15, 32, 43, 0.88);
}

.campo-upload-progress.hidden {
  display: none;
}

.campo-evidence-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.campo-evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 1080px) {
  .campo-filter-grid,
  .campo-main-grid,
  .campo-publication-grid,
  .campo-publication-modal-grid,
  .campo-dossier-3d-grid {
    grid-template-columns: 1fr;
  }

  .campo-job-meta {
    grid-template-columns: 1fr;
  }

  .campo-evidence-drawer-grid {
    grid-template-columns: 1fr;
  }

  .campo-page-head,
  .campo-toolbar,
  .campo-evidence-drawer-head,
  .campo-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .access-modal-content.publication-report-modal-content {
    min-width: auto;
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    resize: none;
  }

  .publication-report-modal-head,
  .publication-report-modal-head-actions {
    align-items: stretch;
  }
}

#access-modal.hidden {
  display: none;
}

#data-fresh-modal.hidden {
  display: none;
}

#publication-report-modal.hidden {
  display: none;
}

.access-modal-content {
  width: min(360px, 92vw);
  background: #13232d;
  border: 1px solid #335163;
  border-radius: 10px;
  padding: 14px;
}

.access-modal-content h3 {
  margin: 0 0 8px;
}

.access-modal-content p {
  margin: 0 0 12px;
  color: #bad0dc;
}

.access-modal-points {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  color: #dce7ed;
  font-size: 13px;
}

.access-modal-points div {
  padding: 8px 10px;
  border: 1px solid rgba(83, 113, 128, 0.5);
  border-radius: 10px;
  background: rgba(15, 28, 36, 0.75);
}

.access-modal-content button {
  border-radius: 8px;
  border: 1px solid #456376;
  background: #1f3542;
  color: var(--text);
  cursor: pointer;
  padding: 8px 10px;
}

.data-fresh-modal-content {
  width: min(1100px, 96vw);
  max-height: min(88vh, 960px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-tools-modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-tools-modal-actions .campo-link-btn {
  width: 100%;
  text-align: center;
}

.data-fresh-modal-content #data-fresh-modal-status {
  margin-top: 12px;
}

.data-fresh-table-wrap {
  margin-top: 14px;
  overflow: auto;
  border: 1px solid rgba(83, 113, 128, 0.38);
  border-radius: 12px;
  background: rgba(15, 28, 36, 0.65);
}

.data-fresh-table {
  width: 100%;
  border-collapse: collapse;
}

.data-fresh-table th,
.data-fresh-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(83, 113, 128, 0.25);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.data-fresh-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #13232d;
  color: #9fb3bf;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-fresh-row-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.data-fresh-muted {
  color: #9fb3bf;
  font-size: 11px;
  margin-top: 4px;
}

.data-fresh-links {
  display: grid;
  gap: 6px;
}

.data-fresh-actions {
  display: grid;
  gap: 6px;
}

.data-fresh-actions .campo-link-btn,
.data-fresh-actions button {
  width: 100%;
}

.data-fresh-log-wrap {
  margin-top: 16px;
}

.data-fresh-log-console {
  margin-top: 10px;
  min-height: 120px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid rgba(83, 113, 128, 0.32);
  border-radius: 12px;
  background: rgba(8, 18, 24, 0.82);
  padding: 12px;
  color: #d8e4eb;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.data-fresh-log-line {
  margin-bottom: 6px;
}

.data-fresh-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(83, 113, 128, 0.2);
  overflow: hidden;
  margin-top: 8px;
}

.data-fresh-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #57a8d4 0%, #7ed1bf 100%);
  animation: data-fresh-progress 1.1s linear infinite;
  transform-origin: left center;
}

@keyframes data-fresh-progress {
  0% { transform: translateX(-65%) scaleX(0.35); }
  50% { transform: translateX(5%) scaleX(0.72); }
  100% { transform: translateX(120%) scaleX(0.4); }
}

@media (max-width: 1180px) {
  #app-shell { grid-template-columns: 260px 10px 1fr; }
  #content-shell { grid-template-columns: minmax(0, 1fr) 10px minmax(280px, 360px); }
  #bottom-panels { grid-template-columns: 1fr; }
  #product-brief { grid-template-columns: 1fr; }
  #top-search { grid-template-columns: 1fr; }
  #top-search-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  #app-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  #left-nav { max-height: 320px; }
  #main-stage { grid-template-rows: 64px auto 1fr; }
  #content-shell { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  #primary-column { grid-template-rows: minmax(320px, 1fr) auto auto; }
  #feed-rail { border-left: 0; border-top: 1px solid #243640; max-height: 420px; }
}

.tracker-page-body {
  margin: 0;
  min-height: 100vh;
  background: #07141f;
  color: #f2f7fb;
  font-family: "Space Grotesk", sans-serif;
}

.tracker-shell {
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

.tracker-head,
.tracker-card {
  background: #0b1d2a;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 18px 20px;
}

.tracker-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.tracker-head h1,
.tracker-card h2 {
  margin: 0 0 8px;
}

.tracker-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
}

.tracker-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tracker-layer-list,
.tracker-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tracker-layer-list label,
.tracker-feed-chip {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 30, 42, 0.9);
  border: 1px solid rgba(94, 194, 196, 0.12);
}

.tracker-note {
  color: #99aebf;
  font-size: 0.9rem;
}

.tracker-map-wrap {
  position: relative;
  min-height: 760px;
}

#tracker-map {
  width: 100%;
  min-height: 760px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.tracker-feed-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100% - 36px));
  max-height: 48%;
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(7, 20, 31, 0.93);
  border: 1px solid rgba(94, 194, 196, 0.22);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.tracker-feed-panel-head,
.tracker-head-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.tracker-updates {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.tracker-overlay-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(94, 194, 196, 0.12);
}

.tracker-overlay-card {
  border-color: rgba(94, 194, 196, 0.28);
  background: rgba(11, 30, 45, 0.88);
}

.tracker-popup-title {
  font-weight: 700;
  margin-bottom: 6px;
}

@media (max-width: 1100px) {
  .tracker-layout {
    grid-template-columns: 1fr;
  }

  .tracker-map-wrap,
  #tracker-map {
    min-height: 620px;
  }
}

.module-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.module-freshness-badge {
  margin-left: auto;
  font-size: 10px;
  white-space: nowrap;
}

.freshness-note,
.source-health-muted {
  color: #9fb3bf;
  font-size: 12px;
  line-height: 1.45;
}

.source-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.source-health-table {
  width: 100%;
  border-collapse: collapse;
}

.source-health-table th,
.source-health-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(94, 194, 196, 0.12);
  text-align: left;
  vertical-align: top;
}

.source-health-table th {
  color: #9fb3bf;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-job-card {
  padding: 12px 0;
  border-bottom: 1px solid rgba(94, 194, 196, 0.12);
}

.watchlist-row {
  width: 100%;
  text-align: left;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid rgba(94, 194, 196, 0.12);
  background: rgba(13, 33, 46, 0.72);
  color: #f1f7fb;
}

.watchlist-row.active {
  border-color: rgba(94, 194, 196, 0.36);
  background: rgba(20, 48, 66, 0.82);
}

.watchlist-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

@media (max-width: 960px) {
  .source-health-grid {
    grid-template-columns: 1fr;
  }

  .watchlist-form-grid {
    grid-template-columns: 1fr;
  }

  .workflow-summary-grid {
    grid-template-columns: 1fr;
  }
}

.parse-notes-floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 6000;
  border: 1px solid rgba(255, 196, 74, 0.45);
  background: rgba(255, 196, 74, 0.95);
  color: #0b1620;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.parse-notes-floating.hidden {
  display: none;
}

#parse-notes-btn.active,
.parse-notes-floating.active {
  background: #ffde8a;
  color: #0b1620;
}

#footnote-helper {
  position: fixed;
  right: 18px;
  bottom: 64px;
  z-index: 6000;
  max-width: 320px;
  background: rgba(12, 23, 33, 0.96);
  color: #f2f6f8;
  border: 1px solid rgba(255, 196, 74, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

#footnote-helper.hidden {
  display: none;
}

body.footnote-mode-active {
  cursor: crosshair;
}

#footnote-overlay {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  min-height: 100%;
  pointer-events: none;
  z-index: 5500;
}

.footnote-box {
  position: absolute;
  min-width: 180px;
  min-height: 140px;
  background: rgba(255, 251, 220, 0.98);
  border: 2px solid rgba(189, 126, 0, 0.85);
  border-radius: 14px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
  resize: both;
}

.footnote-box-head {
  padding: 8px 12px;
  background: rgba(255, 204, 85, 0.92);
  color: #332100;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: move;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.footnote-box-body {
  flex: 1;
  padding: 10px 10px 0;
}

.footnote-box-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footnote-box-head-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footnote-box-delete {
  border: 1px solid rgba(71, 52, 2, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: #543f00;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.footnote-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(71, 52, 2, 0.14);
  color: #543f00;
}

.footnote-box-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.footnote-meta-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footnote-meta-field label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6b5514;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footnote-meta-field select,
.footnote-meta-field input {
  width: 100%;
  border: 1px solid rgba(124, 92, 0, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #1b2025;
  padding: 8px 10px;
  font: inherit;
}

.footnote-textarea {
  width: 100%;
  height: 100%;
  min-height: 72px;
  resize: none;
  border: 1px solid rgba(124, 92, 0, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #1b2025;
  padding: 10px;
  font: inherit;
}

.footnote-box-actions {
  display: flex;
  gap: 8px;
  padding: 10px;
}

.footnote-box-actions button {
  border: 1px solid rgba(124, 92, 0, 0.25);
  background: rgba(255, 255, 255, 0.94);
  color: #2b2f33;
  border-radius: 9px;
  padding: 7px 10px;
  font-weight: 600;
}

.footnote-box-status {
  padding: 0 10px 10px;
  font-size: 0.76rem;
  color: #5e4b11;
}
