/* P1: factual report header and a scoped account-header fit.  This file is
   intentionally loaded after the historical visual layers instead of changing
   their shared rules. */

body.has-map-shell .ig-truth-hero {
  position: relative !important;
  display: grid !important;
  grid-template: clamp(180px, 50vw, 218px) auto / minmax(0, 1fr) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #f5fff1;
  background: transparent !important;
  box-shadow: none !important;
}

body.has-map-shell .ig-truth-hero .parcel-hero-canvas {
  position: relative !important;
  inset: auto !important;
  grid-area: 1 / 1 !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(22, 193, 114, .34) !important;
  border-radius: 12px !important;
  background: #122018 !important;
  box-shadow: 0 8px 18px rgba(6, 29, 17, .14) !important;
}

body.has-map-shell .ig-truth-hero__caption {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  grid-area: 1 / 1 !important;
  align-self: end !important;
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 52px 14px 12px !important;
  border-radius: 0 0 12px 12px !important;
  background: linear-gradient(to top, rgba(4, 20, 12, .94) 0%, rgba(4, 20, 12, .72) 48%, rgba(4, 20, 12, 0) 100%) !important;
  pointer-events: none !important;
}

body.has-map-shell .ig-truth-hero__caption .ig-truth-hero__parcel-number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
  min-width: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 10px rgba(0, 0, 0, .58);
}

body.has-map-shell .ig-truth-hero__parcel-label {
  color: #dcf6e4;
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

body.has-map-shell .ig-truth-hero__parcel-value {
  color: inherit;
  font: inherit;
  overflow-wrap: anywhere;
}

body.has-map-shell .ig-truth-hero__address {
  color: #f3f8f4;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 9px rgba(0, 0, 0, .5);
}

body.has-map-shell .ig-truth-hero__admin {
  min-width: 0;
  color: #cbeed7;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .92), 0 0 8px rgba(0, 0, 0, .48);
}

body.has-map-shell .ig-geom-meta .ig-geom-id {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #66716b;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

body.has-map-shell .ig-geom-meta .ig-geom-id code {
  min-width: 0;
  color: #34483c;
  font-size: 9px;
  font-weight: 650;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.has-map-shell .ig-truth-hero__meta {
  position: relative !important;
  inset: auto !important;
  grid-area: 2 / 1 !important;
  display: flex !important;
  align-items: start !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 6px 10px 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #526b5a;
  font-size: 11px;
  line-height: 1.35;
}

body.has-map-shell .ig-truth-hero__outline-source,
body.has-map-shell .ig-truth-hero__status {
  min-width: 0;
}

body.has-map-shell .ig-truth-hero__status {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #526b5a !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body.has-map-shell .ig-truth-hero__fallback {
  position: relative !important;
  inset: auto !important;
  grid-area: 1 / 1 !important;
  display: none;
  min-height: 158px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: #193425;
  border-radius: 12px;
  background: #f3f7f1;
}

body.has-map-shell .ig-truth-hero__fallback div {
  display: grid;
  gap: 4px;
}

body.has-map-shell .ig-truth-hero__fallback strong { font-size: 14px; line-height: 1.3; }
body.has-map-shell .ig-truth-hero__fallback span { color: #526b5a; font-size: 12px; line-height: 1.45; }
/* The retry can appear either in the compact fallback card or in the
   satellite-status pill. Both are one recovery action and must keep the same
   touch target and interaction states. */
body.has-map-shell :is(.ig-truth-hero__fallback button, .ig-hero__tile-status [data-hero-retry], .ig-truth-hero__status [data-hero-retry]) {
  appearance: none;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #176f45;
  border-radius: 9px;
  color: #fff;
  background: #176f45;
  box-shadow: 0 2px 5px rgba(14, 67, 40, .18);
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

body.has-map-shell :is(.ig-truth-hero__fallback button, .ig-hero__tile-status [data-hero-retry], .ig-truth-hero__status [data-hero-retry]):hover { background: #0f5f3e; }
body.has-map-shell :is(.ig-truth-hero__fallback button, .ig-hero__tile-status [data-hero-retry], .ig-truth-hero__status [data-hero-retry]):active { transform: translateY(1px); }
body.has-map-shell :is(.ig-truth-hero__fallback button, .ig-hero__tile-status [data-hero-retry], .ig-truth-hero__status [data-hero-retry]):focus-visible {
  outline: 3px solid #103221;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(167, 255, 69, .72);
}
body.has-map-shell :is(.ig-truth-hero__fallback button, .ig-hero__tile-status [data-hero-retry], .ig-truth-hero__status [data-hero-retry]).is-loading,
body.has-map-shell :is(.ig-truth-hero__fallback button, .ig-hero__tile-status [data-hero-retry], .ig-truth-hero__status [data-hero-retry]):disabled {
  cursor: progress;
  opacity: .7;
  transform: none;
}
body.has-map-shell :is(.ig-truth-hero__fallback button, .ig-hero__tile-status [data-hero-retry], .ig-truth-hero__status [data-hero-retry]).is-loading::after {
  content: '';
  display: inline-block;
  width: .7em;
  height: .7em;
  margin-left: .45em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -.06em;
  animation: ig-hero-retry-spin .65s linear infinite;
}
@keyframes ig-hero-retry-spin { to { transform: rotate(360deg); } }

body.has-map-shell .ig-truth-hero--tile-failed .parcel-hero-canvas,
body.has-map-shell .ig-truth-hero--tile-failed .ig-truth-hero__caption,
body.has-map-shell .ig-truth-hero--tile-failed .ig-truth-hero__meta,
body.has-map-shell .ig-truth-hero--tile-failed .ig-truth-hero__status,
body.has-map-shell .ig-hero--tile-failed .parcel-hero-canvas,
body.has-map-shell .ig-hero--tile-failed .ig-truth-hero__caption,
body.has-map-shell .ig-hero--tile-failed .ig-truth-hero__meta,
body.has-map-shell .ig-hero--tile-failed .ig-truth-hero__status { display: none !important; }
body.has-map-shell .ig-truth-hero--tile-failed .ig-truth-hero__fallback:not([hidden]),
body.has-map-shell .ig-hero--tile-failed .ig-truth-hero__fallback:not([hidden]) { display: grid !important; }

@media (max-width: 420px) {
  body.has-map-shell .ig-truth-hero__caption {
    padding: 48px 12px 11px !important;
  }

  body.has-map-shell .ig-truth-hero__caption .ig-truth-hero__parcel-number {
    font-size: 21px;
  }

  body.has-map-shell .ig-truth-hero__parcel-label,
  body.has-map-shell .ig-truth-hero__admin {
    font-size: 10.5px;
  }

  body.has-map-shell .ig-truth-hero__address {
    font-size: 12.5px;
  }

  body.has-map-shell .ig-truth-hero__meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: clamp(8.5px, 2.35vw, 9px);
  }
  body.has-map-shell .ig-truth-hero__outline-source,
  body.has-map-shell .ig-truth-hero__status { white-space: nowrap !important; }
}

/* Truth-v1 keeps the owner-approved report language: colourful category
   emoji, one full-width tile per category and details on demand.  Only the
   presentation lives here; source status and facts still come from the
   fail-closed report contract. */
body.has-map-shell .ig-truth-intro {
  margin: 12px 0 10px;
  padding: 0 2px;
}

body.has-map-shell .ig-truth-intro h2 {
  margin: 0 0 4px;
  color: #143725;
  font-size: clamp(20px, 5vw, 25px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

body.has-map-shell .ig-truth-intro p {
  margin: 0;
  color: #526b5a;
  font-size: 12px;
  line-height: 1.45;
}

body.has-map-shell .ig-truth-sources {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

/* Full truth-v1 category coverage mounted inside the owner-approved compact
   report shell. The outer drawer, hero, issue box and bottom actions stay as-is. */
body.has-map-shell .ig-restored-category-list {
  gap: 8px;
  margin: 0 0 10px;
}

body.has-map-shell .ig-restored-category-list details.ig-truth-card {
  border-left-width: 1px;
  border-radius: 12px;
  box-shadow: none;
}

body.has-map-shell .ig-restored-category-list details.ig-truth-card--ok {
  background: #f1f8ef;
}

body.has-map-shell .ig-restored-category-list details.ig-truth-card--warn {
  background: #fff8e6;
}

body.has-map-shell .ig-restored-category-list .ig-truth-card__summary {
  min-height: 64px;
  padding: 9px 11px;
}

body.has-map-shell details.ig-truth-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d8e4d9;
  border-left: 4px solid #7d9685;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(14, 48, 29, .07);
}

body.has-map-shell details.ig-truth-card--ok { border-left-color: #1b9a56; }
body.has-map-shell details.ig-truth-card--warn { border-left-color: #e4a128; }

body.has-map-shell .ig-truth-card__summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 26px;
  gap: 11px;
  align-items: center;
  min-height: 76px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

body.has-map-shell .ig-truth-card__summary::-webkit-details-marker { display: none; }

body.has-map-shell .ig-truth-card__icon {
  display: grid !important;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  margin: 0 !important;
  border-radius: 13px;
  background: #edf6ec;
  font-family: system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 24px !important;
  line-height: 1 !important;
}

body.has-map-shell .ig-truth-card--warn .ig-truth-card__icon { background: #fff4dc; }
body.has-map-shell .ig-truth-card--neutral .ig-truth-card__icon { background: #f0f3f0; }
body.has-map-shell .ig-truth-card__icon svg {
  width: 24px;
  height: 24px;
  color: #176f45;
}

body.has-map-shell .ig-truth-card__spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(23, 111, 69, .18);
  border-top-color: #176f45;
  border-radius: 50%;
  box-sizing: border-box;
  animation: ig-truth-card-spin .8s linear infinite;
}

@keyframes ig-truth-card-spin { to { transform: rotate(360deg); } }

body.has-map-shell .ig-truth-card__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.has-map-shell .ig-truth-card__label {
  color: #50675a;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.has-map-shell .ig-truth-card__value {
  color: #102b1c;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

body.has-map-shell .ig-truth-card__caret {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #176f45;
  background: #edf6ec;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  transition: transform .18s ease;
}

body.has-map-shell details.ig-truth-card[open] .ig-truth-card__caret { transform: rotate(180deg); }

body.has-map-shell .ig-truth-card__details {
  padding: 0 14px 14px 67px;
  color: #314d3b;
  font-size: 13px;
  line-height: 1.5;
}

body.has-map-shell .ig-truth-card__details :is(p, ul) { margin: 7px 0; }
body.has-map-shell .ig-truth-card__details ul { padding-left: 18px; }
body.has-map-shell .ig-truth-card__details h4 { margin: 14px 0 5px; color: #183d29; font-size: 13px; }

body.has-map-shell .ig-truth-source {
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #dfe8df;
  border-radius: 11px;
  background: #f7faf7;
}

body.has-map-shell .ig-truth-source > summary {
  min-height: 44px;
  padding: 10px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

body.has-map-shell .ig-truth-source > :not(summary) { margin: 0; padding: 0 10px 9px; }

@media (max-width: 360px) {
  body.has-map-shell .ig-truth-card__summary {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 9px;
    padding-inline: 10px;
  }
  body.has-map-shell .ig-truth-card__icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    font-size: 22px !important;
  }
  body.has-map-shell .ig-truth-card__details { padding: 0 11px 12px; }
}

/* A source outage must not reserve the satellite canvas' large visual slot.
   The fallback remains a complete, readable action card at phone widths. */
@media (max-width: 860px) {
  body.has-map-shell .ig-truth-hero--tile-failed,
  body.has-map-shell .ig-hero--tile-failed {
    grid-template-rows: auto !important;
    min-height: 0 !important;
    margin-bottom: 14px !important;
    background: #f3f7f1 !important;
    box-shadow: none !important;
  }
  body.has-map-shell .ig-truth-hero--tile-failed .ig-truth-hero__fallback:not([hidden]),
  body.has-map-shell .ig-hero--tile-failed .ig-truth-hero__fallback:not([hidden]) {
    min-height: 112px;
  }
}

/* `/konto` has the account CTA, account icon, language selector and menu in
   the same historical row.  Below 420 px the first two duplicate the current
   page, so hiding only them preserves locale switching and a labelled menu. */
@media (max-width: 420px) {
  .konto-page .topbar.ig-topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    min-height: 64px;
    padding: 8px 10px !important;
  }

  .konto-page .topbar.ig-topbar .brand {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
  }

  .konto-page .topbar.ig-topbar .brand-text { display: block !important; min-width: 0; }
  .konto-page .topbar.ig-topbar .brand-text strong {
    overflow: hidden;
    font-size: 17px !important;
    text-overflow: ellipsis;
  }

  .konto-page .topbar.ig-topbar .ig-header-cta,
  .konto-page .topbar.ig-topbar .account-toggle { display: none !important; }
  .konto-page .topbar.ig-topbar .topbar-right { gap: 6px !important; margin-left: 0 !important; }
  .konto-page .topbar.ig-topbar .topbar-right .lang-toggle {
    display: inline-grid !important;
    flex: 0 0 40px;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
  }
  .konto-page .topbar.ig-topbar .topbar-right .menu-toggle {
    flex: 0 0 40px;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 360px) {
  .konto-page .topbar.ig-topbar .brand .logo {
    flex-basis: 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }
  .konto-page .topbar.ig-topbar .brand-text { display: block !important; }
  .konto-page .topbar.ig-topbar .brand-text strong { font-size: 16px !important; }
}

@media (max-width: 320px) {
  .konto-page .topbar.ig-topbar { gap: 6px !important; padding-inline: 8px !important; }
  .konto-page .topbar.ig-topbar .brand { gap: 7px !important; }
  .konto-page .topbar.ig-topbar .brand .logo {
    flex-basis: 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
  }
  .konto-page .topbar.ig-topbar .brand-text strong { font-size: 15px !important; }
  .konto-page .topbar.ig-topbar .topbar-right { gap: 4px !important; }
  .konto-page .topbar.ig-topbar .topbar-right :is(.lang-toggle, .menu-toggle) {
    flex-basis: 38px;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }
}

/* The account shell keeps only language and menu on a narrow screen.  Both
   stay at the documented 44px touch minimum; the brand column is allowed to
   shrink instead of making either action a smaller target.  This comes after
   the historical <=320px compaction rule deliberately. */
@media (max-width: 420px) {
  .konto-page .topbar.ig-topbar .topbar-right :is(.lang-toggle, .menu-toggle) {
    flex-basis: 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }
}

@media (max-width: 360px) {
  body.has-map-shell .ig-truth-hero__fallback { grid-template-columns: 1fr; }
  body.has-map-shell .ig-truth-hero__fallback button { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  body.has-map-shell .ig-truth-hero,
  body.has-map-shell .ig-truth-hero * { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.has-map-shell .ig-truth-card__spinner { animation: none; }
}

/* Kafelek 1: przyjazny nagłówek i techniczny szkic bez dominującej metryki źródła. */
body.has-map-shell details.ig-truth-card[data-truth-section="identity_and_geometry"]{
  border-left-width:1px;
  border-color:#d4ddd6;
  box-shadow:none;
}
body.has-map-shell details.ig-truth-card[data-truth-section="identity_and_geometry"][open]{border-color:#aebbb1}
body.has-map-shell details.ig-truth-card[data-truth-section="identity_and_geometry"] .ig-truth-card__icon{
  color:#202a23;
  background:#f1f3f1;
}
body.has-map-shell details.ig-truth-card[data-truth-section="identity_and_geometry"] .ig-truth-card__label{
  display:flex;
  align-items:center;
  gap:7px;
  color:#17251c;
  font-size:15px;
  font-weight:850;
  letter-spacing:-.01em;
  line-height:1.2;
  text-transform:none;
}
body.has-map-shell details.ig-truth-card[data-truth-section="egib"] .ig-truth-card__label::after{
  content:"×";
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  color:#fff;
  background:#c63d3d;
  font-size:12px;
  font-weight:900;
  line-height:1;
}
body.has-map-shell details.ig-truth-card[data-truth-section="identity_and_geometry"] .ig-truth-card__value{
  color:#102b1c;
  font-size:17px;
  line-height:1.2;
}
body.has-map-shell details.ig-truth-card[data-truth-section="identity_and_geometry"] .ig-truth-card__details{
  padding:0 14px 15px;
  color:#28372e;
}
@media(max-width:360px){
  body.has-map-shell details.ig-truth-card[data-truth-section="identity_and_geometry"] .ig-truth-card__details{padding:0 10px 12px}
  body.has-map-shell details.ig-truth-card[data-truth-section="identity_and_geometry"] .ig-truth-card__label{font-size:14px}
}

/* Kafelki 2 i 4: dojazd oraz EGiB w tym samym spokojnym rytmie co kafelek 1. */
body.has-map-shell details.ig-truth-card[data-truth-section="road_context"],
body.has-map-shell details.ig-truth-card[data-truth-section="egib"]{
  border-left-width:1px;
  border-color:#d4ddd6;
  box-shadow:none;
}
body.has-map-shell details.ig-truth-card[data-truth-section="road_context"][open],
body.has-map-shell details.ig-truth-card[data-truth-section="egib"][open]{border-color:#aebbb1}
body.has-map-shell details.ig-truth-card[data-truth-section="road_context"] .ig-truth-card__icon,
body.has-map-shell details.ig-truth-card[data-truth-section="egib"] .ig-truth-card__icon{
  color:#176f45;
  background:#f1f3f1;
}
body.has-map-shell details.ig-truth-card[data-truth-section="road_context"] .ig-truth-card__label,
body.has-map-shell details.ig-truth-card[data-truth-section="egib"] .ig-truth-card__label{
  display:flex;
  align-items:center;
  gap:7px;
  color:#17251c;
  font-size:15px;
  font-weight:850;
  letter-spacing:-.01em;
  line-height:1.2;
  text-transform:none;
}
body.has-map-shell details.ig-truth-card[data-truth-section="road_context"] .ig-truth-card__label::after{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  color:#fff;
  background:#7a857d;
  font-size:12px;
  font-weight:900;
  line-height:1;
  content:"?";
}
body.has-map-shell details.ig-truth-card[data-truth-section="road_context"][data-road-access-status="confirmed"] .ig-truth-card__label::after{
  content:none;
  display:none;
}
body.has-map-shell details.ig-truth-card[data-truth-section="road_context"][data-road-access-status="review"] .ig-truth-card__label::after{
  content:"!";
  color:#4b3400;
  background:#f0b429;
}
body.has-map-shell details.ig-truth-card[data-truth-section="egib"][data-egib-available="1"] .ig-truth-card__label::after{
  content:none;
  display:none;
}
body.has-map-shell details.ig-truth-card[data-truth-section="egib"] .ig-truth-card__value:empty{
  display:none;
}
body.has-map-shell details.ig-truth-card[data-truth-section="road_context"] .ig-truth-card__value:empty{
  display:none;
}
body.has-map-shell details.ig-truth-card[data-truth-section="road_context"] .ig-truth-card__details,
body.has-map-shell details.ig-truth-card[data-truth-section="egib"] .ig-truth-card__details{
  padding:0 14px 15px;
  color:#28372e;
}
@media(max-width:360px){
  body.has-map-shell details.ig-truth-card[data-truth-section="road_context"] .ig-truth-card__details,
  body.has-map-shell details.ig-truth-card[data-truth-section="egib"] .ig-truth-card__details{padding:0 10px 12px}
  body.has-map-shell details.ig-truth-card[data-truth-section="road_context"] .ig-truth-card__label,
  body.has-map-shell details.ig-truth-card[data-truth-section="egib"] .ig-truth-card__label{font-size:14px}
}

/* Punkt 3: adaptacyjne planowanie zabudowy — MPZP albo WZ, nigdy pusta duplikacja. */
body.has-map-shell details.ig-truth-card[data-truth-section="planning"]{
  border-left-width:1px;
  border-color:#d4ddd6;
  box-shadow:none;
}
body.has-map-shell details.ig-truth-card[data-truth-section="planning"][open]{border-color:#aebbb1}
body.has-map-shell details.ig-truth-card[data-truth-section="planning"] .ig-truth-card__icon{
  color:#176f45;
  background:#f1f3f1;
}
body.has-map-shell details.ig-truth-card[data-truth-section="planning"] .ig-truth-card__label{
  display:flex;
  align-items:center;
  gap:7px;
  color:#17251c;
  font-size:15px;
  font-weight:850;
  letter-spacing:-.01em;
  line-height:1.2;
  text-transform:none;
}
body.has-map-shell details.ig-truth-card[data-truth-section="planning"] .ig-truth-card__label::after{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  font-size:12px;
  font-weight:900;
  line-height:1;
}
body.has-map-shell details.ig-truth-card[data-truth-section="planning"][data-planning-evidence="mpzp"] .ig-truth-card__label::after{
  content:none;
  display:none;
}
body.has-map-shell details.ig-truth-card[data-truth-section="planning"][data-planning-evidence="none"] .ig-truth-card__label::after{
  content:"×";
  color:#fff;
  background:#d53c3c;
}
body.has-map-shell details.ig-truth-card[data-truth-section="planning"][data-planning-evidence="unknown"] .ig-truth-card__label::after{
  content:"?";
  color:#fff;
  background:#768179;
}
body.has-map-shell details.ig-truth-card[data-truth-section="planning"] .ig-truth-card__value{
  color:#102b1c;
  font-size:16px;
  line-height:1.25;
}
body.has-map-shell details.ig-truth-card[data-truth-section="planning"] .ig-truth-card__details{
  padding:0 14px 16px;
  color:#28372e;
}
body.has-map-shell .ig-planning-wz{
  margin:2px 0 12px;
  padding:10px 12px;
  border:1px solid #d4ddd6;
  border-radius:11px;
  background:#f6f8f6;
}
body.has-map-shell .ig-planning-wz p{margin:0}
body.has-map-shell .ig-planning-wz p+p{margin-top:7px}
body.has-map-shell .ig-mpzp-plan{
  margin:2px 0 15px;
  border:1px solid #cbd7cd;
  border-radius:13px;
  overflow:hidden;
  background:#edf2ee;
}
body.has-map-shell .ig-mpzp-plan__viewport{
  position:relative;
  height:clamp(180px,57vw,520px);
  overflow:hidden;
}
body.has-map-shell .ig-mpzp-plan__viewport img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
}
body.has-map-shell .ig-mpzp-plan__viewport>svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:0;
}
body.has-map-shell .ig-mpzp-plan.is-ready .ig-mpzp-plan__viewport :is(img,svg){opacity:1}
body.has-map-shell .ig-mpzp-plan__loading{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#526259;
  font-size:12px;
  font-weight:750;
}
body.has-map-shell .ig-mpzp-plan.is-ready .ig-mpzp-plan__loading,
body.has-map-shell .ig-mpzp-plan.is-failed .ig-mpzp-plan__loading{display:none}
body.has-map-shell .ig-mpzp-plan__symbol{
  position:absolute;
  top:10px;
  right:10px;
  padding:5px 8px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:7px;
  color:#fff;
  background:rgba(17,54,33,.88);
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
  box-shadow:0 2px 8px rgba(15,38,24,.22);
}
body.has-map-shell .ig-mpzp-plan__fallback{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:20px;
  text-align:center;
  background:#f2f5f2;
}
body.has-map-shell .ig-mpzp-plan__fallback[hidden]{display:none}
body.has-map-shell .ig-mpzp-plan__fallback a{color:#176f45;font-weight:800}
body.has-map-shell .ig-mpzp-plan figcaption{
  padding:8px 10px;
  color:#56665d;
  background:#f7f9f7;
  font-size:11px;
  line-height:1.4;
}
body.has-map-shell .ig-mpzp-lead{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:11px;
  align-items:start;
  margin:0 0 15px;
  padding:12px 0 13px;
  border-bottom:1px solid #dbe3dc;
}
body.has-map-shell .ig-mpzp-lead>span{
  min-width:74px;
  padding:7px 9px;
  border-radius:8px;
  color:#fff;
  background:#176f45;
  text-align:center;
  font-size:14px;
  font-weight:900;
}
body.has-map-shell .ig-mpzp-lead h3,
body.has-map-shell .ig-mpzp-section h3{
  margin:0 0 5px;
  color:#17291e;
  font-size:14px;
  line-height:1.3;
}
body.has-map-shell .ig-mpzp-lead p{margin:0;font-size:12px;line-height:1.5;color:#526159}
body.has-map-shell .ig-mpzp-identity{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) repeat(2,minmax(0,.7fr));
  margin:0 0 18px;
  border:1px solid #d8e0d9;
  border-radius:10px;
  overflow:hidden;
}
body.has-map-shell .ig-mpzp-identity>div{padding:9px 10px;background:#fafbfa}
body.has-map-shell .ig-mpzp-identity>div+div{border-left:1px solid #d8e0d9}
body.has-map-shell .ig-mpzp-identity dt,
body.has-map-shell .ig-mpzp-rule dt{
  color:#66746c;
  font-size:10px;
  font-weight:850;
  letter-spacing:.055em;
  line-height:1.3;
  text-transform:uppercase;
}
body.has-map-shell .ig-mpzp-identity dd{margin:3px 0 0;color:#1e3025;font-size:12px;font-weight:760;line-height:1.35}
body.has-map-shell .ig-mpzp-section{margin-top:19px}
body.has-map-shell .ig-mpzp-rules{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 14px;
  margin:0;
  border-top:1px solid #dce4dd;
}
body.has-map-shell .ig-mpzp-rule{
  display:grid;
  grid-template-columns:minmax(92px,.8fr) minmax(0,1.2fr);
  gap:8px;
  padding:9px 0;
  border-bottom:1px solid #e3e9e4;
}
body.has-map-shell .ig-mpzp-rule dd{margin:0;color:#26372d;font-size:12px;line-height:1.42}
body.has-map-shell .ig-mpzp-rule dd small{display:block;margin-top:3px;color:#718078;font-size:10px;font-weight:750}
body.has-map-shell .ig-mpzp-parcel-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 12px}
body.has-map-shell .ig-mpzp-parcel-context>div{padding:10px;border:1px solid #d9e2da;border-radius:9px;background:#f8faf8}
body.has-map-shell .ig-mpzp-parcel-context span{display:block;color:#69776f;font-size:10px;font-weight:800;line-height:1.35;text-transform:uppercase;letter-spacing:.035em}
body.has-map-shell .ig-mpzp-parcel-context strong{display:block;margin-top:4px;color:#173b27;font-size:15px;line-height:1.25}
body.has-map-shell .ig-mpzp-table-wrap{max-width:100%;overflow-x:auto}
body.has-map-shell .ig-mpzp-table-wrap table{width:100%;border-collapse:collapse;font-size:11px;line-height:1.35}
body.has-map-shell .ig-mpzp-table-wrap caption{padding:0 0 6px;text-align:left;color:#56665d;font-size:11px;font-weight:700}
body.has-map-shell .ig-mpzp-table-wrap :is(th,td){padding:7px 6px;border-bottom:1px solid #e0e6e1;text-align:left;vertical-align:top}
body.has-map-shell .ig-mpzp-table-wrap thead th{color:#647169;background:#f5f7f5;font-size:10px;text-transform:uppercase;letter-spacing:.035em}
body.has-map-shell .ig-mpzp-table-wrap tbody th{color:#27382e;font-weight:750}
body.has-map-shell .ig-mpzp-caveat{margin:8px 0 0!important;color:#68766e;font-size:11px;line-height:1.45}
body.has-map-shell .ig-mpzp-impacts{display:grid;gap:0;margin:6px 0 0!important;padding:0!important;list-style:none}
body.has-map-shell .ig-mpzp-impacts li{display:grid;grid-template-columns:84px 1fr;gap:9px;padding:8px 0;border-bottom:1px solid #e1e7e2;font-size:12px;line-height:1.42}
body.has-map-shell .ig-mpzp-impacts strong{color:#176f45}
body.has-map-shell .ig-mpzp-fee{display:flex;flex-direction:column;gap:3px;margin:17px 0 0;padding:10px 12px;border-left:3px solid #176f45;background:#f2f7f3;color:#27382e;font-size:11px;line-height:1.4}
body.has-map-shell .ig-mpzp-fee strong{color:#173b27;font-size:12px}
body.has-map-shell .ig-mpzp-limits ul{margin:5px 0 0!important;color:#5c6b62;font-size:11px;line-height:1.45}
body.has-map-shell .ig-mpzp-sources{display:grid;gap:7px;margin-top:18px;padding-top:12px;border-top:1px solid #cad5cc}
body.has-map-shell .ig-mpzp-sources>strong{color:#26372d;font-size:12px}
body.has-map-shell .ig-mpzp-sources nav{display:flex;flex-wrap:wrap;gap:6px 12px}
body.has-map-shell .ig-mpzp-sources a{color:#176f45;font-size:11px;font-weight:800}
body.has-map-shell .ig-mpzp-sources small{color:#65736b;font-size:10px;line-height:1.4}
@media(max-width:600px){
  body.has-map-shell .ig-mpzp-identity{grid-template-columns:1fr}
  body.has-map-shell .ig-mpzp-identity>div+div{border-left:0;border-top:1px solid #d8e0d9}
  body.has-map-shell .ig-mpzp-rules{grid-template-columns:1fr}
}
@media(max-width:360px){
  body.has-map-shell details.ig-truth-card[data-truth-section="mpzp"] .ig-truth-card__details{padding:0 10px 12px}
  body.has-map-shell details.ig-truth-card[data-truth-section="mpzp"] .ig-truth-card__label{font-size:14px}
  body.has-map-shell details.ig-truth-card[data-truth-section="mpzp"] .ig-truth-card__value{font-size:14px}
  body.has-map-shell .ig-mpzp-plan__viewport{min-height:154px}
  body.has-map-shell .ig-mpzp-lead{grid-template-columns:1fr}
  body.has-map-shell .ig-mpzp-lead>span{justify-self:start;min-width:0}
  body.has-map-shell .ig-mpzp-parcel-context{grid-template-columns:1fr}
  body.has-map-shell .ig-mpzp-rule{grid-template-columns:minmax(82px,.75fr) minmax(0,1.25fr);gap:6px}
  body.has-map-shell .ig-mpzp-impacts li{grid-template-columns:68px 1fr;gap:7px}
  body.has-map-shell .ig-mpzp-table-wrap table{table-layout:fixed;font-size:10px}
  body.has-map-shell .ig-mpzp-table-wrap :is(th,td):nth-child(1){width:52%}
  body.has-map-shell .ig-mpzp-table-wrap :is(th,td):nth-child(2){width:29%}
  body.has-map-shell .ig-mpzp-table-wrap :is(th,td):nth-child(3){width:19%}
  body.has-map-shell .ig-mpzp-table-wrap thead th{padding-inline:4px;font-size:8px;letter-spacing:0;overflow-wrap:normal;word-break:normal;hyphens:none}
}

/* Teren i blok środowiskowy: osobne punkty w spokojnym rytmie kafelka 1.
   Status źródła nie jest oceną działki ani oceną prawną. */
body.has-map-shell details.ig-truth-card[data-truth-section="terrain"],
body.has-map-shell details.ig-truth-card[data-truth-section="air_quality"],
body.has-map-shell details.ig-truth-card[data-truth-section="antysmog"],
body.has-map-shell details.ig-truth-card[data-truth-section="water"]{
  border-left-width:1px;
  border-color:#d4ddd6;
  box-shadow:none;
}
body.has-map-shell details.ig-truth-card[data-truth-section="terrain"][open],
body.has-map-shell details.ig-truth-card[data-truth-section="air_quality"][open],
body.has-map-shell details.ig-truth-card[data-truth-section="antysmog"][open],
body.has-map-shell details.ig-truth-card[data-truth-section="water"][open]{border-color:#aebbb1}
body.has-map-shell details.ig-truth-card[data-truth-section="terrain"] .ig-truth-card__icon,
body.has-map-shell details.ig-truth-card[data-truth-section="air_quality"] .ig-truth-card__icon,
body.has-map-shell details.ig-truth-card[data-truth-section="antysmog"] .ig-truth-card__icon,
body.has-map-shell details.ig-truth-card[data-truth-section="water"] .ig-truth-card__icon{
  color:#176f45;
  background:#f1f3f1;
}
body.has-map-shell details.ig-truth-card[data-truth-section="terrain"] .ig-truth-card__label,
body.has-map-shell details.ig-truth-card[data-truth-section="air_quality"] .ig-truth-card__label,
body.has-map-shell details.ig-truth-card[data-truth-section="antysmog"] .ig-truth-card__label,
body.has-map-shell details.ig-truth-card[data-truth-section="water"] .ig-truth-card__label{
  color:#17251c;
  font-size:15px;
  font-weight:850;
  letter-spacing:-.01em;
  line-height:1.2;
  text-transform:none;
}
body.has-map-shell details.ig-truth-card[data-truth-section="terrain"] .ig-truth-card__value,
body.has-map-shell details.ig-truth-card[data-truth-section="air_quality"] .ig-truth-card__value,
body.has-map-shell details.ig-truth-card[data-truth-section="antysmog"] .ig-truth-card__value,
body.has-map-shell details.ig-truth-card[data-truth-section="water"] .ig-truth-card__value{
  color:#102b1c;
  font-size:16px;
  line-height:1.25;
}
body.has-map-shell details.ig-truth-card[data-truth-section="terrain"] .ig-truth-card__details,
body.has-map-shell details.ig-truth-card[data-truth-section="air_quality"] .ig-truth-card__details,
body.has-map-shell details.ig-truth-card[data-truth-section="antysmog"] .ig-truth-card__details,
body.has-map-shell details.ig-truth-card[data-truth-section="water"] .ig-truth-card__details{
  padding:0 14px 15px;
  color:#28372e;
}
body.has-map-shell .ig-air-quality__facts{
  display:grid;
  margin:0;
  border:1px solid #d8e0d9;
  border-radius:10px;
  overflow:hidden;
}
body.has-map-shell .ig-air-quality__facts>div{
  display:grid;
  grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr);
  gap:12px;
  padding:10px 11px;
  background:#fafbfa;
}
body.has-map-shell .ig-air-quality__facts>div+div{border-top:1px solid #e0e6e1}
body.has-map-shell .ig-air-quality__facts dt{
  color:#66746c;
  font-size:10px;
  font-weight:850;
  letter-spacing:.045em;
  line-height:1.35;
  text-transform:uppercase;
}
body.has-map-shell .ig-air-quality__facts dd{
  display:grid;
  gap:2px;
  margin:0;
  color:#1e3025;
  font-size:12px;
  line-height:1.4;
}
body.has-map-shell .ig-air-quality__facts dd span{color:#617068;font-size:11px}
body.has-map-shell .ig-air-quality__caveat,
body.has-map-shell .ig-antysmog__monitor{
  margin:10px 0 0!important;
  padding:9px 10px;
  border:1px solid #d8e0d9;
  border-radius:8px;
  color:#526159;
  background:#f5f8f5;
  line-height:1.5;
}
body.has-map-shell .ig-antysmog .ig-truth-objects{margin-top:0}
body.has-map-shell .ig-antysmog__rule{margin:11px 0 0!important;color:#26372d;line-height:1.5}
body.has-map-shell .ig-antysmog__verified{margin:8px 0 0!important;color:#5b6b61}
body.has-map-shell .ig-antysmog__source{margin:10px 0 0!important}
body.has-map-shell .ig-antysmog__source a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:#176f45;
  font-weight:800;
}
@media(max-width:520px){
  body.has-map-shell .ig-air-quality__facts>div{grid-template-columns:1fr;gap:3px}
}
@media(max-width:360px){
  body.has-map-shell details.ig-truth-card[data-truth-section="planning"] .ig-truth-card__label{font-size:14px}
  body.has-map-shell details.ig-truth-card[data-truth-section="terrain"] .ig-truth-card__details,
  body.has-map-shell details.ig-truth-card[data-truth-section="air_quality"] .ig-truth-card__details,
  body.has-map-shell details.ig-truth-card[data-truth-section="antysmog"] .ig-truth-card__details,
  body.has-map-shell details.ig-truth-card[data-truth-section="water"] .ig-truth-card__details{padding:0 10px 12px}
  body.has-map-shell details.ig-truth-card[data-truth-section="terrain"] .ig-truth-card__label,
  body.has-map-shell details.ig-truth-card[data-truth-section="air_quality"] .ig-truth-card__label,
  body.has-map-shell details.ig-truth-card[data-truth-section="antysmog"] .ig-truth-card__label,
  body.has-map-shell details.ig-truth-card[data-truth-section="water"] .ig-truth-card__label{font-size:14px}
  body.has-map-shell details.ig-truth-card[data-truth-section="terrain"] .ig-truth-card__value,
  body.has-map-shell details.ig-truth-card[data-truth-section="air_quality"] .ig-truth-card__value,
  body.has-map-shell details.ig-truth-card[data-truth-section="antysmog"] .ig-truth-card__value,
  body.has-map-shell details.ig-truth-card[data-truth-section="water"] .ig-truth-card__value{font-size:14px}
}

/* 2026-09-16: air card matching the approved mobile mockup. */
body.has-map-shell details.ig-truth-card[data-truth-section="air_quality"] .ig-truth-card__label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.has-map-shell details.ig-truth-card[data-truth-section="air_quality"] .ig-truth-card__label>span:last-child{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
body.has-map-shell .ig-air-card-status{display:inline-flex;align-items:center}
body.has-map-shell .ig-air-quality--mockup{display:grid;gap:9px}
body.has-map-shell .ig-air-live-list{display:grid;gap:8px}
body.has-map-shell .ig-air-live-card{padding:10px 11px 0;border:1px solid #d9e0db;border-radius:9px;background:#fbfcfb;overflow:hidden}
body.has-map-shell .ig-air-live-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}
body.has-map-shell .ig-air-live-card__top>div:first-child{display:grid;min-width:0;gap:1px}
body.has-map-shell .ig-air-live-card__eyebrow{font-size:10px;line-height:1.2;font-weight:850;letter-spacing:.055em;color:#66736b;text-transform:uppercase}
body.has-map-shell .ig-air-live-card__name{font-size:13px;line-height:1.25;color:#183025;overflow-wrap:anywhere}
body.has-map-shell .ig-air-distance{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;margin-top:4px;padding:2px 7px;border-radius:999px;background:#eef6ef;color:#315846;font-size:11px;line-height:1.35;font-weight:700}
body.has-map-shell .ig-air-distance__pin{font-size:8px;color:#2c8e4d}
body.has-map-shell .ig-air-status-pill{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;padding:2px 7px;border-radius:999px;background:#eff6ef;color:#315846;font-size:11px;line-height:1.4;white-space:nowrap}
body.has-map-shell .ig-air-status-pill__dot,body.has-map-shell .ig-air-legend i{width:10px;height:10px;display:inline-block;flex:0 0 10px;border-radius:50%;background:#a7aeaa}
body.has-map-shell [data-air-level="0"],body.has-map-shell [data-air-level="1"]{background:#36a54d}
body.has-map-shell [data-air-level="2"]{background:#efb52c}
body.has-map-shell [data-air-level="3"]{background:#e67f34}
body.has-map-shell [data-air-level="4"],body.has-map-shell [data-air-level="5"]{background:#d94b58}
body.has-map-shell [data-air-level="unknown"]{background:#a7aeaa}
body.has-map-shell .ig-air-metrics{display:grid;grid-template-columns:1fr 1fr 1.08fr;margin-top:9px;border-top:1px solid #e2e7e3}
body.has-map-shell .ig-air-metrics>div{display:grid;gap:1px;padding:8px 8px 9px 0;min-width:0}
body.has-map-shell .ig-air-metrics>div+div{padding-left:9px;border-left:1px solid #e2e7e3}
body.has-map-shell .ig-air-metrics span{font-size:10px;color:#77827b}
body.has-map-shell .ig-air-metrics strong{font-size:13px;color:#182e24;white-space:nowrap}
body.has-map-shell .ig-air-archive{padding:10px 11px;border:1px solid #d9e0db;border-radius:9px;background:#f7f8f7}
body.has-map-shell .ig-air-archive__title{display:block;margin-bottom:5px;font-size:10px;line-height:1.2;letter-spacing:.04em;color:#68736d}
body.has-map-shell .ig-air-archive__lines{display:grid;gap:2px;font-size:11px;line-height:1.35;color:#4f5d55}
body.has-map-shell .ig-air-archive__lines strong{color:#31423a}
body.has-map-shell .ig-air-archive__note{display:flex;gap:7px;margin:8px 0 0!important;padding-top:7px;border-top:1px solid #e0e5e1;color:#7a847e;font-size:10px;line-height:1.35}
body.has-map-shell .ig-air-archive__note>span{display:inline-grid;place-items:center;width:14px;height:14px;flex:0 0 14px;border:1px solid #8d9891;border-radius:50%;font-size:9px;font-weight:800}
body.has-map-shell .ig-air-legend{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:3px 3px 0;font-size:9px;color:#59665f}
body.has-map-shell .ig-air-legend span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
body.has-map-shell .ig-air-legend i{width:9px;height:9px;flex-basis:9px}
body.has-map-shell .ig-air-empty{margin:0!important;padding:10px;border:1px dashed #cfd8d2;border-radius:9px;color:#66736b;font-size:12px;background:#fafbfa}
@media(max-width:520px){body.has-map-shell .ig-air-live-card{padding:9px 10px 0}body.has-map-shell .ig-air-metrics strong{font-size:12px}body.has-map-shell .ig-air-legend{gap:8px}}
