/*
 * LocaliPet — Arquivo de Pistas: prévia dentro do aplicativo.
 *
 * A aparência impressa e o PDF premium são deliberadamente independentes.
 * Não modificar o gerador, a captura de mapa, os dados, as datas nem
 * os cálculos a partir desta folha. Todos os estilos abaixo são screen-only.
 *
 * A arte transparente faz parte da cena do cabeçalho; não é um sticker/card.
 */
@media screen {
  .shell[data-locali-route="pistas"] {
    --clue-ui-deep: #073e43;
    --clue-ui-muted: #496661;
    --clue-ui-border: rgba(255,255,255,.83);
    --clue-ui-glass: linear-gradient(140deg,rgba(255,255,255,.71),rgba(255,255,255,.32) 64%,rgba(255,235,224,.28));
    --clue-ui-shadow: 0 9px 30px rgba(7,62,67,.075), inset 0 1px 0 rgba(255,255,255,.86);
  }

  /* The menu keeps Painel selected, but its dedicated route stops inheriting
     the Diário hero. Clue PWA content scrolls normally, unlike full-screen map. */
  .shell[data-locali-route="pistas"] .clue-report {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--clue-ui-deep);
    font-family: var(--font-ui);
  }
  .shell[data-locali-route="pistas"] .clue-report::after,
  .shell[data-locali-route="pistas"] .clue-brand-strip {
    display: none;
  }

  /* One continuous storybook scene: meadow + character, without a rectangle
     around the picture. Text has its own quiet area above the artwork. */
  .shell[data-locali-route="pistas"] .clue-masthead {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 286px;
    margin: 0;
    padding: 22px 24px 190px;
    overflow: hidden;
    text-align: left;
    border: 0;
    border-radius: 29px;
    background: linear-gradient(150deg,rgba(232,251,243,.93),rgba(237,248,237,.68) 62%,rgba(255,240,228,.77));
  }
  .shell[data-locali-route="pistas"] .clue-masthead::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
      radial-gradient(ellipse 52% 55% at 7% 79%,rgba(147,205,170,.35),transparent 97%),
      radial-gradient(ellipse 60% 43% at 88% 90%,rgba(246,209,176,.28),transparent 100%);
    pointer-events: none;
  }
  .shell[data-locali-route="pistas"] .clue-masthead::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 -21px;
    width: auto;
    height: 234px;
    display: block;
    pointer-events: none;
    background: url('/pet-scene-explore.webp') center bottom / auto 256px no-repeat;
    opacity: .98;
    -webkit-mask-image: linear-gradient(to bottom,transparent 0%,#000 15%,#000 84%,transparent 100%);
    mask-image: linear-gradient(to bottom,transparent 0%,#000 15%,#000 84%,transparent 100%);
  }
  .shell[data-locali-route="pistas"] .clue-kicker {
    position: relative;
    z-index: 1;
    padding: 0;
    border: 0;
    border-radius: 0;
    transform: none;
    color: #4e8078;
    background: none;
    font: 900 10px/1.45 var(--font-ui);
    letter-spacing: .13em;
    text-transform: uppercase;
  }
  .shell[data-locali-route="pistas"] .clue-headline {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 470px !important;
    margin: 11px 0 6px !important;
    font: 900 clamp(29px,6.4vw,45px)/1.04 var(--font-ui) !important;
    color: var(--clue-ui-deep) !important;
    letter-spacing: -.047em;
    text-align: left;
    text-wrap: balance;
  }
  .shell[data-locali-route="pistas"] .clue-subhead {
    position: relative;
    z-index: 1;
    max-width: 310px;
    margin: 0;
    color: var(--clue-ui-muted);
    text-align: left;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
  }

  /* Only actual controls: selected period and PDF download. The removed theme
     selector only recolored this HTML and did not affect the generated PDF. */
  .shell[data-locali-route="pistas"] .clue-toolbar {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(140px,1fr);
    gap: 10px;
    align-items: end;
    justify-content: stretch;
    margin: 0;
    padding: 2px 0 0;
  }
  .shell[data-locali-route="pistas"] .clue-day-controls {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .shell[data-locali-route="pistas"] .clue-day-controls > button[aria-pressed="true"] {
    background: #d9eee6;
    border-color: #82b9a9;
  }
  .shell[data-locali-route="pistas"] .clue-date-filter {min-width: 0}
  .shell[data-locali-route="pistas"] .clue-date-filter summary {cursor: pointer;font-weight: 800;padding: 10px}
  .shell[data-locali-route="pistas"] .clue-date-form {display: flex;flex-wrap: wrap;gap: 8px;margin-top: 8px}
  .shell[data-locali-route="pistas"] .clue-date-form input {min-height: 44px;max-width: 150px;min-width: 0}
  .shell[data-locali-route="pistas"] .clue-date-form .error {flex-basis: 100%}
  .shell[data-locali-route="pistas"] .clue-control {
    display: grid;
    min-width: 0;
    gap: 7px;
    color: #4d7167;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.3;
  }
  .shell[data-locali-route="pistas"] .clue-period {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 45px;
    padding: 10px 35px 10px 14px;
    border: 1px solid rgba(7,62,67,.13);
    border-radius: 17px;
    color: var(--clue-ui-deep);
    background: rgba(255,255,255,.74);
    font: 850 13px/1.25 var(--font-ui);
    box-shadow: 0 2px 9px rgba(7,62,67,.035);
  }
  .shell[data-locali-route="pistas"] .clue-toolbar .clue-print {
    width: 100%;
    min-height: 45px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 999px;
    font: 900 13px/1.2 var(--font-ui);
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
  }
  .clue-print svg{flex:none}
  .shell[data-locali-route="pistas"] .clue-control select:focus-visible,
  .shell[data-locali-route="pistas"] .clue-toolbar .clue-print:focus-visible {
    outline: 3px solid #168c86;
    outline-offset: 2px;
  }

  /* Glass data surfaces belong to the new LocaliPet identity, not to a
     newspaper/wanted-poster theme. Keep dynamic data and photo intact. */
  .shell[data-locali-route="pistas"] .clue-top-grid {
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
    align-items: stretch;
    gap: 13px;
  }
  .shell[data-locali-route="pistas"] .clue-top-story,
  .shell[data-locali-route="pistas"] .clue-paper {
    min-width: 0;
    border: 1px solid var(--clue-ui-border);
    border-radius: 25px;
    background: var(--clue-ui-glass);
    box-shadow: var(--clue-ui-shadow);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
  }
  .shell[data-locali-route="pistas"] .clue-top-story {
    grid-template-columns: 106px minmax(0,1fr);
    gap: 14px;
    padding: 17px;
    align-items: center;
  }
  .shell[data-locali-route="pistas"] .clue-portrait {
    width: 104px;
    height: 104px;
    aspect-ratio: 1;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transform: none;
    border: 1px solid rgba(255,255,255,.9);
    outline: none;
    border-radius: 22px;
    background: #e6f3e9;
    box-shadow: none;
  }
  .shell[data-locali-route="pistas"] .clue-portrait img {width:100%;height:100%;object-fit:cover;border-radius:20px}
  .shell[data-locali-route="pistas"] .clue-wanted-name {display:none}
  .shell[data-locali-route="pistas"] .clue-stamp {
    padding: 0;
    border: 0;
    background: none;
    color: #618e82;
    border-radius: 0;
    transform: none;
    font: 900 9px/1.4 var(--font-ui);
    letter-spacing: .09em;
  }
  .shell[data-locali-route="pistas"] .clue-top-story .clue-pet-name {
    margin: 6px 0 7px;
    color: var(--clue-ui-deep);
    font: 900 clamp(19px,4.9vw,27px)/1.07 var(--font-ui) !important;
    text-transform: none;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
  }
  .shell[data-locali-route="pistas"] .clue-hero-description {
    margin: 0;
    color: var(--clue-ui-muted);
    font: 650 12px/1.55 var(--font-ui);
  }
  .shell[data-locali-route="pistas"] .clue-paper {padding:17px}
  .shell[data-locali-route="pistas"] .clue-paper h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 13px;
    color: var(--clue-ui-deep);
    font: 900 clamp(17px,4.2vw,22px)/1.2 var(--font-ui);
    letter-spacing: -.025em;
  }
  .shell[data-locali-route="pistas"] .clue-profile-name {display:none}
  .shell[data-locali-route="pistas"] .clue-metrics {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .shell[data-locali-route="pistas"] .clue-metric {
    gap: 8px;
    padding: 12px;
    min-height: 78px;
    border: 1px solid rgba(255,255,255,.76);
    border-radius: 17px;
    background: rgba(228,248,237,.46);
  }
  .shell[data-locali-route="pistas"] .clue-metric:nth-child(2n) {
    background: rgba(255,237,218,.42);
  }
  .shell[data-locali-route="pistas"] .clue-metric small {
    color: #55746d;
    opacity: 1;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.36;
  }
  .shell[data-locali-route="pistas"] .clue-metric strong {
    color: var(--clue-ui-deep);
    font-size: clamp(13px,2vw,18px);
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  /* Real MapLibre map is the evidence: no illustration inside map tiles,
     fake trajectories, substituted map graphics, or overlapping hero. */
  .shell[data-locali-route="pistas"] .clue-dossier-grid {
    display: grid;
    grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
    gap: 13px;
    margin: 0;
    align-items: start;
  }
  .shell[data-locali-route="pistas"] .clue-map-section,
  .shell[data-locali-route="pistas"] .clue-timeline {
    min-width: 0;
    overflow: hidden;
  }
  .shell[data-locali-route="pistas"] .clue-map {
    width: 100%;
    height: clamp(315px,41vw,455px);
    min-height: 315px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(188,212,199,.8);
    border-radius: 19px;
    background: #e4efe9;
    box-shadow: inset 0 1px 5px rgba(7,62,67,.035);
    overflow: hidden;
  }
  .shell[data-locali-route="pistas"] .clue-map :is(.maplibregl-map,.maplibregl-canvas-container,.maplibregl-canvas) {
    max-width: 100%;
  }
  .shell[data-locali-route="pistas"] .clue-map-status,
  .shell[data-locali-route="pistas"] .clue-map-caption {
    margin: 9px 1px 0;
    color: #52756e;
    font-size: 11px;
    line-height: 1.5;
  }
  .shell[data-locali-route="pistas"] .clue-map-status:empty {display:none}
  .shell[data-locali-route="pistas"] .clue-timeline {background:var(--clue-ui-glass)}
  .shell[data-locali-route="pistas"] .clue-evidence {
    position: relative;
    min-height: 0;
    margin: 0 0 0 11px;
    padding: 15px 3px 16px 23px;
    border: 0;
    border-left: 2px dashed #a9d5c5;
    border-radius: 0;
    background: transparent;
    animation: none;
    transform: none;
  }
  .shell[data-locali-route="pistas"] .clue-evidence:last-child {padding-bottom:3px}
  .shell[data-locali-route="pistas"] .clue-evidence::before {
    content: "🐾";
    position: absolute;
    left: -16px;
    top: 13px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255,255,255,.89);
    border-radius: 50%;
    background: #d5f3e5;
    font-size: 14px;
    box-shadow: none;
  }
  .shell[data-locali-route="pistas"] .clue-evidence--stop::before {background:#fff0d7}
  .shell[data-locali-route="pistas"] .clue-evidence::after {display:none}
  .shell[data-locali-route="pistas"] .clue-number {display:none}
  .shell[data-locali-route="pistas"] .clue-evidence h3 {
    margin: 0 0 5px;
    font: 900 14px/1.25 var(--font-ui);
    color: var(--clue-ui-deep);
  }
  .shell[data-locali-route="pistas"] .clue-evidence time {
    color: #567c71;
    font-size: 12px;
    font-weight: 800;
  }
  .shell[data-locali-route="pistas"] .clue-evidence p,
  .shell[data-locali-route="pistas"] .clue-evidence small {
    color: #54726c;
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .shell[data-locali-route="pistas"] .clue-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 13px;
    margin: 0;
  }
  .shell[data-locali-route="pistas"] .clue-favorites-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
  }
  .shell[data-locali-route="pistas"] .clue-favorite {
    gap: 5px;
    padding: 12px 7px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 15px;
    background: rgba(235,249,241,.55);
  }
  .shell[data-locali-route="pistas"] .clue-favorite i {font-size:25px}
  .shell[data-locali-route="pistas"] .clue-favorite strong {font-size:12px}
  .shell[data-locali-route="pistas"] .clue-favorite small {font-size:10px}
  .shell[data-locali-route="pistas"] .clue-summary {
    position:relative;
    isolation:isolate;
    overflow: hidden;
    padding-bottom: 119px;
    background: var(--clue-ui-glass);
  }
  .shell[data-locali-route="pistas"] .clue-summary::after {
    content:"";
    position:absolute;
    z-index:-1;
    bottom:-10px;
    right:0;
    left:0;
    height:135px;
    background: url('/pet-scene-history.webp') center bottom / auto 156px no-repeat;
    pointer-events:none;
    -webkit-mask-image: linear-gradient(to bottom,transparent 0%,#000 24%,#000 84%,transparent 100%);
    mask-image: linear-gradient(to bottom,transparent 0%,#000 24%,#000 84%,transparent 100%);
  }
  .shell[data-locali-route="pistas"] .clue-summary p {
    color: var(--clue-ui-muted);
    font-size: 12px;
    line-height: 1.52;
  }
  .shell[data-locali-route="pistas"] .clue-disclaimer {
    border-top: 1px solid rgba(7,62,67,.11);
    padding-top: 10px;
    font-size: 10px !important;
  }
  .shell[data-locali-route="pistas"] .clue-caveat {
    border-left-color: #e89c85;
    border-radius: 11px;
    background: rgba(255,233,219,.63);
  }
  .shell[data-locali-route="pistas"] .clue-print-status {
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 15px;
    background: rgba(255,255,255,.45);
    color: #4f7168;
    font-size: 12px;
    line-height: 1.45;
  }

  /* Mobile: accessible tap targets, two columns only for short metrics;
     section cards stack and never clip labels or map controls. */
  @media (max-width: 899px) {
    .shell[data-locali-route="pistas"] .clue-masthead {
      min-height: 291px;
      padding: 20px 18px 181px;
      margin: 0;
    }
    .shell[data-locali-route="pistas"] .clue-masthead::after {
      height: 227px;
      bottom: -17px;
      background-size: auto 238px;
    }
    .shell[data-locali-route="pistas"] .clue-top-grid,
    .shell[data-locali-route="pistas"] .clue-dossier-grid,
    .shell[data-locali-route="pistas"] .clue-bottom-grid {grid-template-columns: minmax(0,1fr)}
    .shell[data-locali-route="pistas"] .clue-top-story {grid-template-columns: 96px minmax(0,1fr);padding:14px}
    .shell[data-locali-route="pistas"] .clue-portrait {width:94px;height:94px}
    .shell[data-locali-route="pistas"] .clue-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
    .shell[data-locali-route="pistas"] .clue-map {min-height:320px;height:clamp(320px,42dvh,425px)}
    .shell[data-locali-route="pistas"] .clue-report {gap:12px}
  }
  @media (max-width: 389px) {
    .shell[data-locali-route="pistas"] .clue-masthead {min-height:271px;padding:17px 15px 164px}
    .shell[data-locali-route="pistas"] .clue-masthead::after {height:207px;background-size:auto 216px}
    .shell[data-locali-route="pistas"] .clue-headline {font-size:28px!important}
    .shell[data-locali-route="pistas"] .clue-top-story {grid-template-columns:85px minmax(0,1fr);gap:10px}
    .shell[data-locali-route="pistas"] .clue-portrait {width:83px;height:83px}
    .shell[data-locali-route="pistas"] .clue-favorites-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
    .shell[data-locali-route="pistas"] .clue-toolbar {grid-template-columns:minmax(0,1fr)}
  }
  @media (min-width: 900px) {
    .shell[data-locali-route="pistas"] .clue-masthead {
      min-height: 235px;
      padding: 34px 44% 35px 28px;
      justify-content: center;
    }
    .shell[data-locali-route="pistas"] .clue-masthead::after {
      top:0;bottom:0;left:47%;right:0;
      height:auto;
      background-size: auto 285px;
      background-position:right 12px bottom -42px;
    }
    .shell[data-locali-route="pistas"] .clue-metrics {grid-template-columns:repeat(3,minmax(0,1fr))}
    .shell[data-locali-route="pistas"] .clue-map {min-height:400px}
  }
  @media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .shell[data-locali-route="pistas"] .clue-top-story,
    .shell[data-locali-route="pistas"] .clue-paper {
      background: #f8faf5;
      border: 1px solid #9db9ad;
      box-shadow: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .shell[data-locali-route="pistas"] .clue-report * {animation:none!important;transition:none!important}
  }
}


/* PETTYCARE · ARQUIVO DE PISTAS · VERSÃO COMPACTA
 * Conserva o mapa MapLibre e o gerador PDF; somente apresentação da rota.
 * Nunca interfere nas cenas automáticas nem nos estilos de outras abas. */
@media screen {
 .shell[data-locali-route="pistas"]:has(>.clue-report){
   max-width:1180px!important;min-width:0!important;
   padding-bottom:calc(105px + env(safe-area-inset-bottom))!important;
 }
 .shell[data-locali-route="pistas"] .clue-report{
   --clue-ui-deep:#16483d;--clue-ui-muted:#506f67;
   --clue-ui-border:rgba(255,255,255,.87);
   --clue-ui-glass:rgba(255,255,255,.49);
   --clue-ui-shadow:0 5px 18px rgba(19,77,75,.055);
   gap:14px!important;overflow:visible!important;
   color:var(--clue-ui-deep)!important;
 }
 .shell[data-locali-route="pistas"] .clue-brand-strip,
 .shell[data-locali-route="pistas"] .clue-report::after{display:none!important}
 .shell[data-locali-route="pistas"] .clue-masthead{
   min-height:0!important;padding:7px 3px 4px!important;
   margin:0!important;border:0!important;
   border-radius:0!important;background:transparent!important;
   box-shadow:none!important;overflow:visible!important;
 }
 .shell[data-locali-route="pistas"] .clue-masthead::before,
 .shell[data-locali-route="pistas"] .clue-masthead::after{display:none!important}
 .shell[data-locali-route="pistas"] .clue-kicker{
   font-size:10px!important;color:var(--clue-ui-muted)!important;
   letter-spacing:.16em!important;background:none!important;
 }
 .shell[data-locali-route="pistas"] .clue-headline{
   margin:6px 0!important;max-width:100%!important;
   font:850 clamp(27px,4.5vw,42px)/1.12 var(--font-ui)!important;
   letter-spacing:-.045em!important;text-transform:none!important;
   color:var(--clue-ui-deep)!important;
 }
 .shell[data-locali-route="pistas"] .clue-subhead{
   max-width:650px!important;font:500 13px/1.45 var(--font-ui)!important;
   color:var(--clue-ui-muted)!important;
 }
 .shell[data-locali-route="pistas"] .clue-toolbar{
   display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;
   align-items:end!important;gap:9px!important;
   margin:0!important;padding:0!important;
 }
 .shell[data-locali-route="pistas"] .clue-day-controls{grid-column:1/-1!important}
 .shell[data-locali-route="pistas"] .clue-day-controls>*,
 .shell[data-locali-route="pistas"] .clue-date-filter summary{
   border:1px solid rgba(255,255,255,.86)!important;
   border-radius:999px!important;
   background:rgba(255,255,255,.5)!important;
   padding:9px 14px!important;min-height:38px!important;
   color:var(--clue-ui-deep)!important;
   font-size:12px!important;font-weight:700!important;
 }
 .shell[data-locali-route="pistas"] .clue-control select{
   min-height:42px!important;border:1px solid rgba(255,255,255,.88)!important;
   border-radius:14px!important;background:rgba(255,255,255,.66)!important;
   color:#16483d!important;font-size:12px!important;
 }
 .shell[data-locali-route="pistas"] .clue-toolbar .clue-print{
   min-height:42px!important;padding:8px 15px!important;border-radius:14px!important;
   white-space:nowrap!important;
 }
 .shell[data-locali-route="pistas"] .clue-top-grid{
   display:grid!important;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)!important;
   gap:12px!important;align-items:stretch!important;
 }
 .shell[data-locali-route="pistas"] :is(.clue-top-story,.clue-paper){
   min-width:0!important;border:1px solid rgba(255,255,255,.86)!important;
   border-radius:24px!important;background:rgba(255,255,255,.49)!important;
   box-shadow:0 6px 19px rgba(19,77,75,.055)!important;
   -webkit-backdrop-filter:blur(12px) saturate(109%)!important;
   backdrop-filter:blur(12px) saturate(109%)!important;
 }
 .shell[data-locali-route="pistas"] .clue-top-story{
   display:grid!important;grid-template-columns:60px minmax(0,1fr)!important;
   gap:11px!important;align-items:center!important;padding:14px!important;
 }
 .shell[data-locali-route="pistas"] .clue-portrait{
   width:60px!important;height:60px!important;max-width:60px!important;
   border-radius:50%!important;border:3px solid white!important;
   overflow:hidden!important;background:rgba(221,243,233,.86)!important;
 }
 .shell[data-locali-route="pistas"] .clue-portrait img{
   width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;
 }
 .shell[data-locali-route="pistas"] .clue-portrait-empty{
   display:grid!important;place-items:center!important;width:100%!important;height:100%!important;
   font:800 23px/1 var(--font-ui)!important;color:#1b6959!important;
 }
 .shell[data-locali-route="pistas"] .clue-top-story .clue-pet-name{
   font:850 clamp(16px,2.8vw,22px)/1.15 var(--font-ui)!important;
   letter-spacing:-.025em!important;margin:3px 0!important;
 }
 .shell[data-locali-route="pistas"] .clue-stamp{font-size:9px!important;color:var(--clue-ui-muted)!important}
 .shell[data-locali-route="pistas"] .clue-hero-description{
   font:500 11px/1.4 var(--font-ui)!important;
   color:var(--clue-ui-muted)!important;
 }
 .shell[data-locali-route="pistas"] .clue-paper{padding:15px!important}
 .shell[data-locali-route="pistas"] .clue-paper h2{
   font:800 clamp(16px,2.5vw,19px)/1.2 var(--font-ui)!important;
   margin:0 0 12px!important;color:var(--clue-ui-deep)!important;
 }
 .shell[data-locali-route="pistas"] .clue-metrics{
   display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
   gap:7px!important;
 }
 .shell[data-locali-route="pistas"] .clue-metric{
   min-height:61px!important;gap:5px!important;padding:10px!important;
   border-radius:15px!important;border:1px solid rgba(255,255,255,.78)!important;
   background:rgba(255,255,255,.26)!important;
 }
 .shell[data-locali-route="pistas"] .clue-metric:nth-child(2n){background:rgba(255,255,255,.26)!important}
 .shell[data-locali-route="pistas"] .clue-metric small{
   font:650 10px/1.25 var(--font-ui)!important;
   color:var(--clue-ui-muted)!important;
 }
 .shell[data-locali-route="pistas"] .clue-metric strong{
   font:800 clamp(12px,2vw,16px)/1.23 var(--font-ui)!important;
   color:var(--clue-ui-deep)!important;
 }
 .shell[data-locali-route="pistas"] .clue-dossier-grid{
   display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;
   gap:12px!important;align-items:start!important;
 }
 .shell[data-locali-route="pistas"] .clue-map{
   min-height:360px!important;height:clamp(360px,45vw,500px)!important;
   border-radius:19px!important;overflow:hidden!important;
 }
 .shell[data-locali-route="pistas"] .clue-map-section{overflow:hidden!important}
 .shell[data-locali-route="pistas"] .clue-timeline{overflow:visible!important}
 .shell[data-locali-route="pistas"] .clue-location-heading{
   display:flex!important;justify-content:space-between!important;
   align-items:center!important;gap:10px!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-heading h2{margin-bottom:0!important}
 .shell[data-locali-route="pistas"] .clue-location-total{
   font:700 11px/1.2 var(--font-ui)!important;
   border-radius:999px!important;padding:7px 10px!important;
   background:rgba(226,247,237,.55)!important;white-space:nowrap!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-subtitle{
   margin:7px 0 13px!important;font:500 11px/1.45 var(--font-ui)!important;
   color:var(--clue-ui-muted)!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-list{display:grid!important;gap:7px!important}
 .shell[data-locali-route="pistas"] .clue-location[hidden]{display:none!important}
 .shell[data-locali-route="pistas"] .clue-location{
   display:block!important;min-width:0!important;border:1px solid rgba(255,255,255,.87)!important;
   border-radius:17px!important;background:rgba(255,255,255,.3)!important;
   overflow:hidden!important;box-shadow:none!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-summary{
   display:grid!important;grid-template-columns:34px minmax(0,1fr) auto 12px!important;
   gap:9px!important;align-items:center!important;cursor:pointer!important;
   list-style:none!important;min-height:65px!important;padding:9px!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-summary::-webkit-details-marker{display:none!important}
 .shell[data-locali-route="pistas"] .clue-location-summary:focus-visible{
   outline:3px solid #168c86!important;outline-offset:-3px!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-code{
   display:grid!important;place-items:center!important;
   width:34px!important;height:34px!important;min-width:34px!important;
   border-radius:12px!important;background:rgba(211,240,228,.82)!important;
   color:#146951!important;font:800 9px/1.1 var(--font-ui)!important;
   text-align:center!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-copy{
   display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-title{
   color:var(--clue-ui-deep)!important;font:800 12px/1.3 var(--font-ui)!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-address{
   color:var(--clue-ui-muted)!important;font:500 10px/1.3 var(--font-ui)!important;
   max-width:100%!important;overflow-wrap:anywhere!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-metrics{
   display:flex!important;flex-direction:column!important;align-items:flex-end!important;
   gap:2px!important;white-space:nowrap!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-count{
   color:var(--clue-ui-deep)!important;font:800 14px/1.15 var(--font-ui)!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-metrics small{
   color:var(--clue-ui-muted)!important;font:600 9px/1.2 var(--font-ui)!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-chevron{
   color:var(--clue-ui-muted)!important;font-size:18px!important;line-height:1!important;
 }
 .shell[data-locali-route="pistas"] .clue-location[open] .clue-location-chevron{transform:rotate(180deg)!important}
 .shell[data-locali-route="pistas"] .clue-location-detail{
   border-top:1px solid rgba(51,112,91,.12)!important;
   padding:10px!important;margin:0!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-note{
   margin:0 0 7px!important;color:var(--clue-ui-muted)!important;
   font:500 10px/1.35 var(--font-ui)!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-visits{
   display:flex!important;flex-direction:column!important;gap:5px!important;
 }
 .shell[data-locali-route="pistas"] .clue-visit{
   display:flex!important;justify-content:space-between!important;
   align-items:center!important;gap:10px!important;
   font:550 10px/1.4 var(--font-ui)!important;color:var(--clue-ui-muted)!important;
 }
 .shell[data-locali-route="pistas"] .clue-visit strong{
   font-weight:800!important;color:var(--clue-ui-deep)!important;white-space:nowrap!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-focus,
 .shell[data-locali-route="pistas"] .clue-location-more{
   display:inline-flex!important;align-items:center!important;justify-content:center!important;
   min-height:37px!important;margin-top:10px!important;padding:8px 13px!important;
   border:1px solid rgba(255,255,255,.9)!important;border-radius:13px!important;
   background:rgba(225,245,234,.67)!important;
   color:#145f4b!important;font:800 11px/1.2 var(--font-ui)!important;
   cursor:pointer!important;
 }
 .shell[data-locali-route="pistas"] .clue-location-more{width:100%!important;margin-top:11px!important}
 .shell[data-locali-route="pistas"] .clue-bottom-grid{
   display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;
 }
 .shell[data-locali-route="pistas"] .clue-favorites-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .shell[data-locali-route="pistas"] .clue-favorite{
   display:flex!important;flex-direction:column!important;gap:6px!important;
   text-align:left!important;align-items:flex-start!important;
   padding:13px!important;border-radius:17px!important;
   background:rgba(255,255,255,.28)!important;
 }
 .shell[data-locali-route="pistas"] .clue-favorite-pin{
   font:700 9px/1.3 var(--font-ui)!important;color:var(--clue-ui-muted)!important;
 }
 .shell[data-locali-route="pistas"] .clue-favorite strong{
   font:800 15px/1.2 var(--font-ui)!important;color:var(--clue-ui-deep)!important;
 }
 .shell[data-locali-route="pistas"] .clue-favorite small{
   color:var(--clue-ui-muted)!important;font:600 10px/1.3 var(--font-ui)!important;
 }
 .shell[data-locali-route="pistas"] .clue-summary{
   padding-bottom:15px!important;overflow:hidden!important;background:rgba(255,255,255,.49)!important;
 }
 .shell[data-locali-route="pistas"] .clue-summary::after{display:none!important}
 .shell[data-locali-route="pistas"] .clue-summary p{color:var(--clue-ui-muted)!important}
 .shell[data-locali-route="pistas"] .clue-print-status{
   border-radius:15px!important;background:rgba(255,255,255,.41)!important;
   color:var(--clue-ui-muted)!important;
 }
 @media(max-width:899px){
   .shell[data-locali-route="pistas"] .clue-top-grid,
   .shell[data-locali-route="pistas"] .clue-dossier-grid,
   .shell[data-locali-route="pistas"] .clue-bottom-grid{
     grid-template-columns:minmax(0,1fr)!important;
   }
   .shell[data-locali-route="pistas"] .clue-map{min-height:315px!important;height:clamp(315px,45dvh,440px)!important}
   .shell[data-locali-route="pistas"] .clue-top-story{grid-template-columns:60px minmax(0,1fr)!important}
   .shell[data-locali-route="pistas"] .clue-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 }
 @media(max-width:389px){
   .shell[data-locali-route="pistas"] .clue-toolbar{
     grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
   }
   .shell[data-locali-route="pistas"] .clue-toolbar .clue-print{
     grid-column:1/-1!important;
   }
   .shell[data-locali-route="pistas"] .clue-favorites-grid{
     grid-template-columns:repeat(2,minmax(0,1fr))!important;
   }
   .shell[data-locali-route="pistas"] .clue-location-summary{gap:6px!important}
   .shell[data-locali-route="pistas"] .clue-location-total{font-size:9px!important}
 }
 @media(prefers-reduced-transparency:reduce){
   .shell[data-locali-route="pistas"] :is(.clue-top-story,.clue-paper){
     background:#f4f8f5!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
   }
 }
}
/* Same four-day-phase policy as the rest of the app. Never dark ink on a
   nighttime sky: headings OUTSIDE cards go light, panels darken and use white. */
}
}
#app.phase-3 .shell[data-locali-route="pistas"] :is(.clue-top-story,.clue-paper){
  background:rgba(22,47,64,.66)!important;
  border-color:rgba(221,246,238,.26)!important;
}
#app.phase-3 .shell[data-locali-route="pistas"] :is(
  .clue-headline,.clue-kicker,.clue-subhead,.clue-pet-name,.clue-paper h2,
  .clue-metric strong,.clue-metric small,.clue-location-title,.clue-location-address,
  .clue-location-count,.clue-location-metrics small,.clue-location-note,
  .clue-visit,.clue-visit strong,.clue-favorite strong,.clue-favorite small,
  .clue-hero-description,.clue-summary p,.clue-map-caption,.clue-map-status,
  .clue-location-subtitle,.clue-location-total,.clue-favorite-pin
){color:#f4f5e9!important}
#app.phase-3 .shell[data-locali-route="pistas"] :is(
  .clue-location,.clue-metric,.clue-favorite,.clue-location-total
){background:rgba(255,255,255,.1)!important;border-color:rgba(255,255,255,.26)!important}
#app.phase-3 .shell[data-locali-route="pistas"] :is(
  .clue-location-code,.clue-location-focus,.clue-location-more
){background:rgba(223,243,232,.9)!important;color:#114d3d!important}
#app.phase-3 .shell[data-locali-route="pistas"] .clue-print-status{
  background:rgba(22,47,64,.7)!important;color:#f4f5e9!important;
}
