@layer pfa-app {


@media screen {
  .tm-panel {
    min-width: 0;
  }

  .tm-ranked {
    grid-area: ranked;
    min-width: 0;
  }
  .tm-ranked h4 {
    margin: 0 0 var(--s2);
  }
  .tm-map {
    grid-area: map;
    min-width: 0;
  }
  .tm-map .tm-wrap {
    max-height: 520px;
    margin: 0;
  }

  .tm-wrap {
    position: relative;
    width: 100%;
    overflow: visible;
    margin: var(--s3) 0 var(--s2);
    border-radius: 10px;
    aspect-ratio: 1000 / 560;
    max-height: 520px;
  }


  @media (max-width: 639px) {
    .tm-map .tm-wrap {
      display: block;
      aspect-ratio: 1.4;
      max-height: 240px;
      margin: 0;
    }
  }

  .tm-svg {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    width: 100%;
    height: 100%;
  }


  .tm-rect {
    stroke: none;
    shape-rendering: geometricPrecision;
  }


  .tm-sub {
    fill: none;
    stroke: none;
    pointer-events: none;
  }


  .tm-sheen {
    pointer-events: none;
  }

  [data-theme='light'] .tm-sheen {
    display: none;
  }

  @media (prefers-color-scheme: light) {
    [data-theme='auto'] .tm-sheen {
      display: none;
    }
  }

  .tm-tile {
    transform-box: fill-box;
    transform-origin: center;
    transition:
      opacity 180ms ease,
      filter 180ms ease;
  }

  .tm-tile.is-interactive {
    touch-action: manipulation;
  }


  .tm-svg:hover .tm-tile:not(:hover) {
    opacity: 0.55;
  }


  .tm-tile.is-interactive:hover {
    filter: brightness(1.14) saturate(1.06);
  }


  .tm-tile.is-interactive:focus-visible {
    outline: none;
  }

  .tm-tile.is-interactive:focus-visible .tm-rect {
    stroke: var(--accent);
    stroke-opacity: 1;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
  }

  .tm-label,
  .tm-value,
  .tm-share {
    user-select: none;
    font-family: inherit;
    pointer-events: none;
  }


  .tm-label {
    font-weight: 650;
  }


  .tm-value {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    opacity: 0.92;
  }



  .tm-share {
    font-variant-numeric: tabular-nums;
    opacity: 0.84;
  }

  .tm-share.tone-watch,
  .tm-share.tone-good {
    opacity: 0.95;
    font-weight: 600;
  }

  .tm-category-list {
    display: grid;
    gap: var(--s1);
    margin-top: var(--s2);
  }
  .tm-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(4ch, auto) auto;
    align-items: center;
    gap: var(--s2);
    min-height: var(--tap-lg);
    padding: var(--s2) var(--s3);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    color: var(--fg);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .tm-category-row:hover { background: var(--soft-hover); }
  .tm-category-row:focus-visible { outline: 2px solid var(--accent); }
  .tm-category-name { display: flex; align-items: center; gap: var(--s2); min-width: 0; overflow-wrap: anywhere; }
  .tm-category-share { white-space: nowrap; text-align: right; }
  .tm-category-track {
    grid-column: 1 / -1;
    height: 6px;
    margin-top: var(--s1);
    background: var(--hairline);
  }
}
}
