.brand-logo {
  display: block;
  width: 218px;
  max-height: 45px;
  object-fit: contain;
  object-position: left center;
  filter: invert(1) brightness(1.45);
}
.left-panel .operation-title { padding-bottom: 0; }
.tour-btn {
  border: 1px solid #3e615e;
  background: transparent;
  color: #90abaa;
  font: 9px 'DM Mono', monospace;
  padding: 8px 10px;
}
.tour-btn.active { background: #17312f; color: var(--cyan); }
.timeline-panel { position: relative; }
.timeline-collapse-btn {
  position: absolute;
  top: -11px;
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 54px;
  height: 22px;
  padding: 0;
  border: 1px solid #456366;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: #0b151a;
  color: var(--cyan);
}
.timeline-collapse-btn:hover { background: #193334; }
.timeline-collapse-btn .chevron {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.app-shell.timeline-collapsed .timeline-panel { display: block; height: 24px; min-height: 24px; padding: 0; }
.app-shell.timeline-collapsed .timeline-panel > :not(.timeline-collapse-btn) { display: none; }
.app-shell.timeline-collapsed .timeline-collapse-btn .chevron { margin-top: 4px; transform: rotate(225deg); }
@media(min-width:901px) {
  .app-shell.timeline-collapsed { grid-template-rows: 69px minmax(0,1fr) 24px; }
}
@media(min-width:1201px) {
  .timeline-panel { grid-template-columns: 240px minmax(250px,1fr) 330px; }
}
.settings-trigger {
  width: 30px;
  height: 30px;
  border: 1px solid #355658;
  background: #10272a;
  color: #8adbd0;
  font-size: 18px;
  line-height: 1;
}
.settings-trigger:hover { background: #1a3a3d; }
.metric:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
.refresh-line {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  color: #719498;
  font: 9px 'DM Mono', monospace;
  letter-spacing: .07em;
}
.odor-factor {
  margin-top: 10px;
  color: var(--cyan);
  font: 10px 'DM Mono', monospace;
  letter-spacing: .08em;
}
.gradient-key { color: #829d97; margin-left: 5px; }
.analysis-time { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid #47716f; border-left: 2px solid var(--cyan); background: #15302f; box-shadow: 0 0 14px rgba(77, 195, 185, .12); letter-spacing: .03em; white-space: nowrap; }
.analysis-time span { color: #a2c6c1; font-size: 8px; }
.analysis-time strong { color: #9eefe1; font: 600 20px/1 'Barlow Condensed', sans-serif; letter-spacing: .04em; }
.analysis-time.prediction { border-color: #78583c; border-left-color: var(--amber); background: #2d251d; box-shadow: 0 0 15px rgba(246, 180, 91, .13); }
.analysis-time.prediction span { color: #e1b881; }
.analysis-time.prediction strong { color: #ffd18e; }
.map-label { gap: 6px; }
.map-label .pin {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 4px #000, 0 0 9px currentColor;
}
.map-label .label-text {
  display: flex;
  border: 0;
  background: none;
  padding: 0;
  gap: 0;
}
.map-label .label-text strong {
  font-size: 13px;
  text-shadow: 0 1px 4px #000, 0 0 9px #000;
}
.map-label.target .pin { order: 0; }
.maplibregl-ctrl-attrib {
  background: rgba(7, 18, 21, .9) !important;
  border: 1px solid #315052;
  color: #a9c5c1 !important;
  font: 9px 'DM Mono', monospace;
}
.maplibregl-ctrl-attrib a { color: #c6deda !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }
.maplibregl-control-container { position: static; }
.maplibregl-ctrl-bottom-right { display: block; }
.maplibregl-canvas { filter: contrast(.78) brightness(1.18) saturate(.9); }
.map-vignette { box-shadow: inset 0 0 70px rgba(2, 10, 13, .14); background: linear-gradient(180deg, rgba(5, 13, 16, .14), transparent 22%, transparent 78%, rgba(4, 12, 15, .17)); }
.raster-mode .leaflet-tile-pane { filter: grayscale(1) invert(.77) contrast(.62) sepia(.3) saturate(1.5) hue-rotate(155deg) brightness(.78); }
.raster-mode .leaflet-container { background: #273b46; }
.raster-mode .leaflet-control-attribution { background: rgba(8, 20, 24, .88); color: #acc2bf; font: 9px 'DM Mono', monospace; }
.raster-mode .leaflet-control-attribution a { color: #c6deda; }
.raster-mode .leaflet-div-icon { background: transparent; border: 0; }
.fallback-particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 550; pointer-events: none; }
.map-controls button:disabled { opacity: .58; cursor: default; }
.map-bottom-right { display: none; }
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 15px;
  background: rgba(1, 7, 9, .78);
  backdrop-filter: blur(6px);
}
.settings-overlay[hidden] { display: none; }
.settings-dialog {
  width: min(100%, 510px);
  max-height: min(95vh, 780px);
  overflow: auto;
  border: 1px solid #4b7476;
  background: #0c1b20;
  box-shadow: 0 18px 80px #000a, inset 0 0 0 4px #0a161a;
  padding: 24px;
}
.settings-head { display: flex; justify-content: space-between; align-items: flex-start; }
.settings-head h2 {
  font: 700 38px/.95 'Barlow Condensed', sans-serif;
  letter-spacing: .06em;
  margin: 10px 0 0;
}
.settings-head button {
  color: var(--cyan);
  border: 1px solid #31575a;
  background: #142b2e;
  width: 34px;
  height: 34px;
  font-size: 24px;
}
.settings-intro { color: #91aaa9; font-size: 12px; line-height: 1.55; margin: 18px 0 20px; }
.setting-row { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid #294045; }
.setting-row>span { display: flex; justify-content: space-between; color: #c7d9d7; font: 11px 'DM Mono', monospace; letter-spacing: .08em; }
.setting-row output { color: var(--cyan); }
.setting-row input { width: 100%; accent-color: var(--cyan); cursor: pointer; }
.setting-row small { color: #789496; font-size: 10px; line-height: 1.4; }
.token-label { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid #294045; padding-top: 16px; color: #a1b8b7; font: 10px 'DM Mono', monospace; letter-spacing: .07em; }
.token-label input { background: #09151a; border: 1px solid #36575c; color: #e2eeec; height: 37px; padding: 0 10px; font: 13px Inter,sans-serif; }
.settings-message { min-height: 26px; padding-top: 10px; color: #92b6b3; font: 10px 'DM Mono',monospace; line-height: 1.4; }
.settings-message.error { color: var(--orange); }
.settings-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 15px; }
.settings-actions button { border: 1px solid #426367; background: #10242a; color: #a8c7c5; padding: 10px 12px; font: 10px 'DM Mono',monospace; letter-spacing: .06em; }
.settings-actions #settings-save { background: #1c5550; border-color: #5ca39a; color: #dcf5ef; }
.settings-actions button:hover { filter: brightness(1.2); }
@media(min-width:1800px) {
  .dashboard { grid-template-columns: 340px minmax(0,1fr) 370px; }
  .left-panel,.right-panel { padding-left: 24px; padding-right: 24px; }
  .operation-title h1 { font-size: 59px; }
  .section-title { font-size: 11px; }
  .site-block strong { font-size: 20px; }
  .site-kicker,.site-block small { font-size: 10px; }
  .metric strong { font-size: 33px; }
  .metric span,.metric small,.data-foot strong { font-size: 10px; }
  .risk-description { font-size: 12px; }
  .forecast-row { font-size: 10px; height: 43px; }
  .alert-item p,.method-note p { font-size: 10px; }
}
@media(min-width:1800px) and (max-height:1100px) {
  .operation-title { padding-top: 20px; padding-bottom: 17px; }
  .site-block { min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
  .left-panel .panel-separator { margin: 16px 0 14px; }
  .metric-grid { margin-top: 11px; }
  .metric { min-height: 72px; padding-top: 9px; padding-bottom: 8px; }
  .data-foot { margin-top: 10px; }
  .ghost-button { margin-top: 10px; }
}
@media(max-width:590px) {
  .brand-logo { width: 174px; }
  .gradient-key { display: none; }
  .map-label .pin { width: 18px; height: 18px; font-size: 19px; }
  .map-label .label-text strong { font-size: 11px; }
  .settings-dialog { padding: 18px; }
  .topbar-right { gap: 8px; }
  .settings-trigger { width: 28px; height: 28px; }
}
