:root {
  --ink: #173b3c;
  --ink-deep: #0c2b2c;
  --teal: #0b6967;
  --teal-bright: #168783;
  --sea: #eaf3f0;
  --paper: #f7f5ee;
  --white: #fffef9;
  --line: #cbdad5;
  --muted: #617674;
  --accent: #e8a94a;
  --shadow: 0 18px 60px rgba(18, 58, 57, 0.1);
  --sans: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink-deep);
  background:
    radial-gradient(circle at 85% 8%, rgba(22, 135, 131, 0.08), transparent 25rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}

body.map-scroll-locked {
  overflow: hidden;
  height: 100svh;
  overscroll-behavior: none;
}

button,
select,
input {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 14px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 59, 60, 0.12);
  background: rgba(247, 245, 238, 0.9);
  backdrop-filter: blur(14px);
}

.header-controls {
  min-width: min(560px, 52vw);
  margin-left: auto;
}

.header-controls[hidden] {
  display: none;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
}

.brand-mark svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.brand strong,
.brand small,
.brand-description {
  display: block;
}

.brand strong {
  font-size: 24px;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.brand-description {
  margin-top: 3px;
  max-width: min(48vw, 560px);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

#app:focus {
  outline: none;
}

.detail-page,
.not-found {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.detail-page {
  padding-bottom: 148px;
}

.map-page {
  width: 100%;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 70px 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
}

.page-intro h1,
.detail-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.summary-strip {
  display: flex;
  min-width: 300px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.summary-strip div {
  flex: 1;
  padding: 16px 20px;
}

.summary-strip div + div {
  border-left: 1px solid var(--line);
}

.summary-strip span,
.summary-strip strong {
  display: block;
}

.summary-strip span {
  color: var(--muted);
  font-size: 11px;
}

.summary-strip strong {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
}

.filter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(108px, 0.8fr) auto;
  gap: 8px;
  align-items: end;
}

.filter-result-count {
  margin: 7px 2px 0;
  color: var(--muted);
  font-size: 11px;
}

.filter-fields label span {
  display: block;
  margin: 0 0 3px 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.filter-fields select,
.filter-fields input {
  width: 100%;
  height: 36px;
  padding: 0 34px 0 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  background: rgba(255, 254, 249, 0.75);
}

.filter-fields input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.filter-fields select:focus,
.filter-fields input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11, 105, 103, 0.12);
}

.reset-button {
  align-self: end;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.map-toggle-button {
  align-self: end;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 254, 249, 0.75);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.map-toggle-button span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
}

.map-toggle-button.is-active {
  color: var(--white);
  background: var(--ink);
}

.map-toggle-button.is-active span {
  color: rgba(255, 254, 249, 0.76);
}

.map-toggle-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.map-toggle-note {
  margin: 4px 2px 0;
  color: var(--muted);
  font-size: 10px;
}

.reset-button:hover {
  color: var(--white);
  background: var(--ink);
}

.map-shell {
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
}

.map-legend-overlay {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 24px;
}

.heat-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.color-legend {
  display: grid;
  gap: 6px;
  min-width: 210px;
  padding: 10px 14px;
  border: 1px solid rgba(23, 59, 60, 0.12);
  border-radius: 4px;
  background: #fafaf5;
}

.legend-title {
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.legend-scale {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(23, 59, 60, 0.12);
}

.legend-swatch.level-1 {
  background: #2c7bb6;
}

.legend-swatch.level-2 {
  background: #00a6ca;
}

.legend-swatch.level-3 {
  background: #f9d057;
}

.legend-swatch.level-4 {
  background: #f28e2b;
}

.legend-swatch.level-5 {
  background: #d62828;
}

.map-canvas {
  position: relative;
  overflow: hidden;
  height: calc(100svh - 84px);
  min-height: 680px;
  background: var(--sea);
}

.catch-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #dce8e5;
  touch-action: none;
}

.maplibregl-canvas {
  outline: none;
}

.map-attribution {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: min(72vw, 560px);
  color: rgba(12, 43, 44, 0.78);
  font-size: 9px;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(255, 254, 249, 0.9);
}

.map-attribution a,
.map-attribution span {
  color: inherit;
}

.map-attribution a {
  text-decoration: none;
}

.spot-bottom-sheet {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.spot-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 43, 44, 0.16);
  pointer-events: auto;
}

.spot-sheet {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 820px;
  max-height: min(68svh, calc(100% - 24px));
  margin-left: auto;
  padding: 14px 20px 20px;
  border-radius: 16px 16px 10px 10px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(18, 58, 57, 0.24);
  overflow-y: auto;
  pointer-events: auto;
}

.spot-sheet-card {
  width: 100%;
}

.spot-sheet-handle {
  width: 44px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(23, 59, 60, 0.18);
}

.spot-sheet-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 59, 60, 0.08);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.spot-popup-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.spot-popup-header p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
}

.spot-popup-header h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.25;
}

.spot-popup-header strong {
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
}

.spot-popup-heatmap {
  overflow-x: auto;
}

.mini-heatmap-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.mini-heatmap-table thead th {
  padding: 7px 3px 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.mini-heatmap-table thead th:first-child {
  width: 164px;
  text-align: left;
}

.mini-heatmap-table tbody th {
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid rgba(203, 218, 213, 0.5);
  text-align: left;
}

.mini-heat-fish,
.mini-heat-total {
  display: block;
}

.mini-heat-fish {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.15;
}

.mini-heat-total {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mini-heat-cell {
  height: 38px;
  padding: 0;
  border-right: 1px solid rgba(255, 254, 249, 0.8);
  border-bottom: 1px solid rgba(203, 218, 213, 0.5);
  background: rgba(185, 28, 28, 0.06);
  color: var(--ink-deep);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  box-shadow: inset 0 0 0 999px rgba(185, 28, 28, var(--mini-intensity, 0));
}

.mini-heat-cell.is-strong {
  color: var(--white);
}

.spot-popup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 16px;
  padding: 0 22px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(22, 135, 131, 0.08);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.spot-popup-link:hover {
  background: rgba(22, 135, 131, 0.14);
}

.spot-popup-next-6h {
  padding: 16px;
  border: 1px solid rgba(203, 218, 213, 0.72);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.72);
}

.spot-popup-next-6h h4 {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.35;
}

.spot-popup-next-6h-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

.spot-popup-next-6h-heading h4 {
  margin: 0;
}

.popup-mini-graph-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.popup-mini-graph-legend span {
  display: inline-block;
  width: 16px;
  height: 0;
  border-top: 2px dashed rgba(185, 28, 28, 0.58);
}

.next-6h-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-6h-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 42px;
}

.next-6h-list-unranked li {
  grid-template-columns: minmax(0, 1fr);
}

.next-6h-list-unranked {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.next-6h-list-unranked li {
  display: inline-flex;
  min-height: 0;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(22, 135, 131, 0.1);
}

.next-6h-list span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(22, 135, 131, 0.12);
  color: var(--teal);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
}

.next-6h-list strong {
  min-width: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
}

.next-6h-list-compact {
  gap: 8px;
}

.next-6h-list-compact li {
  min-height: 34px;
}

.next-6h-list-compact span {
  width: 26px;
  height: 26px;
  font-size: 15px;
}

.next-6h-list-compact strong {
  font-size: 18px;
}

.next-6h-list-unranked strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-6h-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.popup-mini-graph-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.popup-mini-graph-list li {
  display: grid;
  grid-template-columns: minmax(5.5em, 1fr) 169px;
  gap: 10px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(22, 135, 131, 0.08);
}

.popup-mini-graph-list strong {
  overflow: hidden;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popup-mini-graph {
  display: block;
  width: 169px;
  height: 55px;
}

.popup-mini-graph-base {
  stroke: rgba(23, 59, 60, 0.16);
  stroke-width: 1;
}

.popup-mini-graph-y-axis {
  stroke: rgba(23, 59, 60, 0.24);
  stroke-width: 1;
}

.popup-mini-graph-axis-label,
.popup-mini-graph-y-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.popup-mini-graph-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.popup-mini-graph-now {
  stroke: rgba(185, 28, 28, 0.58);
  stroke-width: 1.3;
  stroke-dasharray: 3 3;
}

.next-6h-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 26px;
  align-items: center;
  margin-bottom: 34px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 254, 249, 0.9);
  box-shadow: 0 12px 45px rgba(18, 58, 57, 0.05);
}

.next-6h-section h2 {
  margin: 4px 0 8px;
  font-size: clamp(22px, 3vw, 30px);
}

.next-6h-section p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.aerial-tile-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #173b3c;
}

.aerial-tile-layer[hidden] {
  display: none;
}

.aerial-tile-layer img {
  position: absolute;
  display: block;
  max-width: none;
  user-select: none;
  pointer-events: none;
}

.map-layer-switch {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 16px;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(23, 59, 60, 0.24);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.88);
  box-shadow: 0 8px 26px rgba(18, 58, 57, 0.12);
}

.map-layer-switch button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid rgba(23, 59, 60, 0.16);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.map-layer-switch button:last-child {
  border-right: 0;
}

.map-layer-switch button.is-active {
  color: var(--white);
  background: var(--ink);
}

.japan-map {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  color: rgba(23, 59, 60, 0.1);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.japan-map.is-aerial-mode {
  color: transparent;
}

.japan-map.is-panning {
  cursor: grabbing;
}

.prefecture-map path {
  fill: #f8f8f1;
  fill-rule: evenodd;
  stroke: #9dbab2;
  stroke-linejoin: round;
  stroke-width: 0.72;
  vector-effect: non-scaling-stroke;
}

.prefecture-map path:nth-child(3n) {
  fill: #f4f6ee;
}

.japan-map.is-aerial-mode .sea-grid {
  opacity: 0;
}

.japan-map.is-aerial-mode .prefecture-map path {
  fill: transparent;
  stroke: transparent;
}

.japan-map.is-aerial-mode .inset-guides {
  opacity: 0;
}

.inset-guides rect {
  fill: rgba(255, 255, 255, 0.18);
  stroke: rgba(83, 123, 119, 0.35);
  stroke-dasharray: 3 3;
  stroke-width: 0.7;
}

.inset-guides text {
  fill: #8ba19d;
  font-size: 7px;
  letter-spacing: 0.12em;
}

.spot-marker {
  fill: var(--marker-color, var(--teal));
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3px;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  opacity: 0.92;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.spot-marker:hover,
.spot-marker:focus {
  opacity: 1;
  outline: none;
  transform: scale(1.12);
}

.spot-marker:focus {
  stroke: var(--accent);
  stroke-width: 5px;
}

.spot-label {
  fill: var(--ink);
  stroke: rgba(255, 255, 255, 0.96);
  paint-order: stroke fill;
  pointer-events: none;
  opacity: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 140ms ease;
}

.japan-map.show-spot-labels .spot-label {
  opacity: 1;
}

.map-instruction {
  position: absolute;
  right: 24px;
  bottom: 18px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 2px;
  color: var(--muted);
  background: rgba(255, 254, 249, 0.86);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 4px;
  width: min(330px, 80%);
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 249, 0.94);
  text-align: center;
  transform: translate(-50%, -50%);
}

.empty-state span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(22px, 5vw, 72px);
  border-top: 1px solid rgba(23, 59, 60, 0.12);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 28px 0;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumb a:hover {
  color: var(--teal);
}

.detail-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 0 64px;
}

.detail-hero h1 {
  margin-bottom: 10px;
}

.detail-hero > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.total-card {
  min-width: 245px;
  padding: 22px 26px;
  border-left: 4px solid var(--accent);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.total-card span,
.total-card strong {
  display: block;
}

.total-card span {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.total-card strong {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
}

.total-card small {
  margin-left: 5px;
  font-family: var(--sans);
  font-size: 12px;
}

.data-section {
  margin-bottom: 52px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 12px 45px rgba(18, 58, 57, 0.06);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading > div:first-child {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.section-number {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(21px, 3vw, 30px);
}

.section-heading > p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
}

.ranking-table thead th,
.heatmap-table thead th,
.monthly-grid thead th {
  padding: 10px 14px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.ranking-table td,
.ranking-table tbody th {
  padding: 17px 14px;
  border-bottom: 1px solid var(--line);
}

.ranking-table tbody th {
  font-family: var(--serif);
  font-size: 17px;
}

.rank-cell {
  width: 80px;
  color: var(--teal);
  font-family: var(--serif);
  font-size: 18px;
}

.number-cell {
  width: 150px;
  font-size: 18px;
  font-weight: 600;
}

.number-cell small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.percentage-cell {
  width: 210px;
}

.percentage-cell span {
  display: inline-block;
  width: 42px;
  font-size: 12px;
}

.percentage-cell i {
  display: inline-block;
  width: min(var(--percentage), 130px);
  height: 5px;
  background: var(--teal);
  vertical-align: middle;
}

.heat-legend i {
  width: 16px;
  height: 16px;
  background: rgba(185, 28, 28, 0.08);
}

.heat-legend i:nth-of-type(2) {
  background: rgba(185, 28, 28, 0.18);
}

.heat-legend i:nth-of-type(3) {
  background: rgba(185, 28, 28, 0.32);
}

.heat-legend i:nth-of-type(4) {
  background: rgba(185, 28, 28, 0.5);
}

.heat-legend i:nth-of-type(5) {
  background: rgba(185, 28, 28, 0.68);
}

.heat-legend i:nth-of-type(6) {
  background: rgba(185, 28, 28, 0.84);
}

.heat-legend i:nth-of-type(7) {
  background: rgba(185, 28, 28, 1);
}

.heatmap-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.heatmap-table thead th {
  padding: 7px 2px;
  text-align: center;
}

.heatmap-table thead th:first-child {
  width: 96px;
  text-align: left;
}

.heatmap-month {
  padding-bottom: 0;
  font-size: 9px;
}

.heatmap-table tbody th {
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255, 254, 249, 0.55);
  font-family: var(--serif);
  font-size: 12px;
}

.heatmap-fish-name,
.heatmap-fish-total {
  display: block;
}

.heatmap-fish-name {
  font-size: 12px;
  line-height: 1.2;
}

.heatmap-fish-total {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
}

.heat-cell {
  position: relative;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(185, 28, 28, 0.04);
  color: var(--ink-deep);
  overflow: hidden;
  text-align: center;
  vertical-align: middle;
}

.heat-cell-fill {
  position: absolute;
  inset: 0;
  background: rgba(185, 28, 28, var(--intensity));
  pointer-events: none;
}

.heat-cell-value {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  line-height: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.heat-cell[style*="--intensity:0.00"] {
  background: #f1f3ed;
}

.heat-cell[style*="--intensity:0.00"] .heat-cell-fill {
  background: transparent;
}

.heat-cell-strong {
  color: white;
}

.table-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.current-target-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.current-target-list li {
  display: grid;
  grid-template-columns: 34px 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(227, 240, 239, 0.45);
}

.current-target-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
}

.current-target-illustration {
  display: block;
  width: 52px;
  height: 39px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: transparent;
}

.current-target-fish {
  min-width: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.25;
  word-break: keep-all;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.current-target-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.current-target-empty {
  grid-column: 1 / -1;
  display: block;
  padding: 18px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.detail-loading {
  min-height: 240px;
  padding-top: 56px;
}

.time-histogram-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.time-histogram-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 254, 249, 0.94);
}

.time-histogram-card-compact {
  grid-template-columns: minmax(0, 1fr);
}

.time-histogram-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

.time-histogram-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.time-histogram-title {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.time-histogram-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.time-histogram-illustration {
  display: block;
  width: 72px;
  height: 54px;
  object-fit: contain;
}

.time-histogram-title strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
}

.time-histogram-svg {
  display: block;
  width: 100%;
  height: auto;
}

.histogram-panel {
  fill: rgba(255, 254, 249, 0.76);
  stroke: rgba(23, 59, 60, 0.08);
  stroke-width: 1;
}

.histogram-grid-line {
  stroke: rgba(23, 59, 60, 0.1);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.histogram-grid-line-vertical {
  stroke: rgba(22, 135, 131, 0.32);
}

.histogram-grid-line-major {
  stroke: rgba(22, 135, 131, 0.46);
}

.histogram-axis-line {
  stroke: rgba(23, 59, 60, 0.2);
  stroke-width: 1.2;
}

.histogram-now-line {
  stroke: rgba(185, 28, 28, 0.82);
  stroke-width: 1.6;
  stroke-dasharray: 5 4;
}

.histogram-now-label {
  fill: #b91c1c;
  font-size: 12px;
  font-weight: 800;
}

.histogram-line-shadow {
  fill: none;
  stroke: rgba(22, 135, 131, 0.26);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.histogram-line {
  fill: none;
  stroke: #168783;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.histogram-area {
  fill: rgba(22, 135, 131, 0.12);
}

.histogram-axis-label {
  fill: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.histogram-y-axis-label {
  fill: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.time-histogram-side {
  display: flex;
  align-items: flex-end;
  transform: none;
}

.histogram-affiliate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.histogram-affiliate-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 200px minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
  width: 100%;
  height: 280px;
  padding: 6px;
  border: 1px solid rgba(23, 59, 60, 0.12);
  border-radius: 10px;
  background: rgba(255, 254, 249, 0.98);
  color: inherit;
  text-decoration: none;
}

.histogram-affiliate-card-empty {
  pointer-events: none;
}

.histogram-affiliate-image-wrap {
  overflow: hidden;
  border: 1px solid rgba(23, 59, 60, 0.08);
  border-radius: 8px;
  background: #fff;
}

.histogram-affiliate-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.histogram-affiliate-name {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
}

.affiliate-section {
  margin-top: 22px;
}

.section-heading.is-subsection {
  margin-bottom: 18px;
}

.section-heading.is-subsection h2,
.section-heading.is-overlay h2 {
  font-size: clamp(17px, 2.2vw, 22px);
}

.affiliate-marquee {
  overflow: hidden;
}

.affiliate-grid {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-bottom: 8px;
  animation: affiliate-marquee var(--affiliate-marquee-duration, 52s) linear infinite;
  animation-play-state: running;
  will-change: transform;
}

@media (min-width: 561px) {
  .affiliate-grid {
    animation-duration: calc(var(--affiliate-marquee-duration, 52s) * 1.5);
  }
}

.affiliate-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.affiliate-grid-detail {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  padding-bottom: 0;
  animation: none;
}

  .affiliate-grid-inline,
  .affiliate-grid-detail-fixed {
    display: flex;
    width: max-content;
    padding-bottom: 0;
  }

.affiliate-card-detail {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.fish-affiliate-groups {
  display: grid;
  gap: 18px;
}

.fish-affiliate-group {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(203, 218, 213, 0.62);
}

.fish-affiliate-group:last-child {
  border-bottom: 0;
}

.fish-affiliate-group h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.25;
}

.fish-affiliate-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fish-affiliate-cards .affiliate-card-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(23, 59, 60, 0.12);
  border-radius: 10px;
  background: rgba(255, 254, 249, 0.96);
}

.fish-affiliate-cards .affiliate-card-detail .affiliate-card-image-link {
  justify-self: center;
  width: min(100%, 108px);
}

.fish-affiliate-cards .affiliate-card-title {
  margin-left: 0;
  text-align: left;
}

.affiliate-card-inline,
.affiliate-card-detail-fixed {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  width: min(320px, calc(100vw - 72px));
  gap: 8px;
  align-items: center;
  min-height: 92px;
  padding: 6px 8px;
  border: 1px solid rgba(23, 59, 60, 0.12);
  border-radius: 10px;
  background: rgba(255, 254, 249, 0.96);
}

.affiliate-card-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.affiliate-card-detail .affiliate-card-image-link {
  width: 108px;
}

.affiliate-card-inline .affiliate-card-image-link,
.affiliate-card-detail-fixed .affiliate-card-image-link {
  width: 92px;
}

.affiliate-card-image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(23, 59, 60, 0.08);
  border-radius: 8px;
  background: #fff;
}

.affiliate-card-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.affiliate-noimage {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  text-align: center;
  letter-spacing: 0.04em;
}

.affiliate-noimage-histogram {
  font-size: 16px;
}

.affiliate-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.affiliate-card-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.affiliate-card-image-link:hover .affiliate-card-image-wrap {
  border-color: rgba(11, 105, 103, 0.38);
  box-shadow: 0 0 0 2px rgba(11, 105, 103, 0.12);
}

.affiliate-empty {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.map-affiliate-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 4;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.affiliate-section {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(1180px, calc(100% - 40px));
  margin-top: 0;
  padding: 12px 0 12px;
  transform: translateX(-50%);
  background: linear-gradient(to top, rgba(247, 245, 238, 0.985), rgba(247, 245, 238, 0.94) 76%, rgba(247, 245, 238, 0));
}

.affiliate-section .section-heading {
  display: none;
}

@keyframes affiliate-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

.monthly-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.monthly-grid th,
.monthly-grid td {
  border-bottom: 1px solid var(--line);
}

.monthly-grid tbody th {
  width: 70px;
  padding: 12px 14px;
}

.monthly-grid tbody th strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.monthly-grid tbody th span {
  margin-left: 2px;
  color: var(--muted);
  font-size: 10px;
}

.monthly-grid tbody td {
  padding: 12px 14px;
}

.monthly-grid tbody td span {
  display: inline-block;
  margin: 2px 5px 2px 0;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--sea);
  font-size: 11px;
}

.back-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 80px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.back-link:hover {
  color: var(--white);
  background: var(--ink);
}

.not-found {
  min-height: 65vh;
  padding-top: 120px;
  text-align: center;
}

.not-found h1 {
  margin-bottom: 35px;
  font-size: 40px;
}

@media (max-width: 1100px) {
  .site-header {
    align-items: flex-start;
    gap: 18px;
  }

  .header-controls {
    min-width: min(480px, 50vw);
  }

  .map-legend-overlay {
    left: 200px;
  }
}

@media (max-width: 800px) {
  .site-header {
    min-height: 72px;
    padding: 10px 14px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand-description {
    max-width: calc(100vw - 82px);
    font-size: 11px;
    line-height: 1.3;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-mark svg {
    width: 25px;
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .header-controls {
    width: 100%;
    min-width: 0;
  }

  .page-intro,
  .detail-hero {
    display: block;
    padding-top: 48px;
  }

  .summary-strip,
  .total-card {
    margin-top: 30px;
  }

  .next-6h-section {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px;
  }

  .next-6h-section h2 {
    font-size: 22px;
  }

  .filter-fields {
    grid-template-columns: minmax(0, 1.55fr) minmax(94px, 0.85fr) auto;
    gap: 6px;
  }

  .reset-button {
    grid-column: auto;
  }

  .japan-map {
    width: 100%;
    margin-left: 0;
  }

  .monthly-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .current-target-list {
    grid-template-columns: 1fr;
  }

  .time-histogram-card {
    grid-template-columns: 1fr;
  }

  .time-histogram-side {
    align-items: flex-end;
  }

  .affiliate-grid {
    gap: 12px;
  }

  .map-affiliate-panel {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 0;
  }
}

@media (max-width: 560px) {
  .detail-page,
  .not-found {
    width: min(100% - 4px, 1180px);
  }

  .header-controls {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  .detail-page {
    padding-bottom: 124px;
  }

  .data-section {
    padding: 14px 6px;
  }


  .map-page {
    width: 100%;
  }

  .page-intro h1,
  .detail-hero h1 {
    font-size: 37px;
  }

  .map-canvas {
    height: calc(100svh - 118px);
    min-height: 520px;
  }

  .filter-fields {
    grid-template-columns: minmax(0, 1.45fr) minmax(72px, 0.72fr) auto;
    align-items: end;
  }

  .filter-fields label span {
    margin-bottom: 1px;
    font-size: 9px;
  }

  .filter-fields select,
  .filter-fields input {
    height: 30px;
    padding: 0 18px 0 6px;
    font-size: 16px;
  }

  .reset-button {
    grid-column: auto;
    height: 30px;
    padding: 0 8px;
    white-space: nowrap;
    font-size: 10px;
  }

  .map-toggle-button {
    height: 30px;
    padding: 0 8px;
    font-size: 10px;
  }

  .map-toggle-button span {
    margin-left: 3px;
    font-size: 9px;
  }

  .map-attribution {
    right: 8px;
    bottom: 8px;
    max-width: min(86vw, 420px);
    font-size: 8px;
  }

  .filter-result-count {
    display: none;
  }

  .color-legend {
    min-width: 0;
    gap: 4px;
    padding: 6px 8px;
  }

  .map-layer-switch {
    top: 10px;
    left: 10px;
  }

  .map-layer-switch button {
    height: 28px;
    padding: 0 10px;
    font-size: 10px;
  }

  .map-legend-overlay {
    top: 10px;
    bottom: auto;
    left: 10px;
  }

  .legend-title {
    font-size: 8px;
  }

  .map-affiliate-panel {
    right: 12px;
    bottom: 92px;
    left: 12px;
    padding: 0;
  }

  .affiliate-card {
    padding: 0;
  }

  .affiliate-grid {
    gap: 5px;
  }

  .affiliate-grid {
    animation-duration: calc(var(--affiliate-marquee-duration, 52s) * 1.5);
  }

  .affiliate-card-detail {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
  }

  .fish-affiliate-groups {
    gap: 12px;
  }

  .fish-affiliate-group {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 0;
  }

  .fish-affiliate-group h3 {
    font-size: 16px;
  }

  .fish-affiliate-cards {
    gap: 8px;
  }

  .fish-affiliate-cards .affiliate-card-detail {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 5px;
  }

  .fish-affiliate-cards .affiliate-card-detail .affiliate-card-image-link {
    width: min(100%, 68px);
  }

  .fish-affiliate-cards .affiliate-card-title {
    margin-left: 0;
    font-size: 10px;
    line-height: 1.3;
  }

  .affiliate-card-inline,
  .affiliate-card-detail-fixed {
    grid-template-columns: 72px minmax(0, 1fr);
    width: calc((100vw - 32px) / 2);
    gap: 3px;
    min-height: 72px;
    padding: 4px 6px;
  }

  .affiliate-card-detail .affiliate-card-image-link {
    width: 86px;
  }

  .affiliate-card-inline .affiliate-card-image-link,
  .affiliate-card-detail-fixed .affiliate-card-image-link {
    width: 54px;
  }

  .affiliate-card-title {
    font-size: 11px;
    line-height: 1.35;
    margin-left: -20px;
  }

  .affiliate-section {
    width: min(100% - 24px, 1180px);
    padding: 10px 0 10px;
  }

  .legend-scale {
    gap: 3px;
    font-size: 8px;
  }

  .legend-swatch {
    width: 7px;
    height: 7px;
    border-width: 1px;
  }

  .japan-map {
    width: 100%;
    height: 100%;
    margin-left: 0;
  }

  .map-instruction {
    display: none;
  }

  .data-section {
    padding: 22px 16px;
  }

  .time-histogram-card {
    gap: 10px;
    padding: 10px 4px;
  }

  .time-histogram-header {
    display: block;
  }

  .time-histogram-axis-note {
    margin-top: 8px;
    white-space: normal;
  }

  .time-histogram-title {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 6px;
  }

  .time-histogram-illustration {
    width: 54px;
    height: 40px;
  }

  .time-histogram-title strong {
    font-size: 18px;
  }

  .time-histogram-svg {
    width: 100%;
    max-width: 100%;
  }

  .histogram-affiliate-card {
    grid-template-columns: 1fr;
    grid-template-rows: 120px minmax(0, 1fr);
    width: min(100%, 220px);
    height: 188px;
    padding: 6px;
  }

  .histogram-affiliate-name {
    font-size: 11px;
  }

  .histogram-axis-label {
    font-size: 18px;
  }

  .histogram-now-label {
    font-size: 18px;
  }

  .histogram-y-axis-label {
    font-size: 18px;
  }

  .time-histogram-side {
    justify-content: flex-end;
  }

  .histogram-affiliate-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p,
  .heat-legend {
    margin-top: 10px;
  }

  .percentage-cell {
    min-width: 135px;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 4px;
  }

  .spot-popup-header {
    gap: 8px;
  }

  .spot-popup-header h3 {
    font-size: 16px;
  }

  .spot-popup-header strong {
    font-size: 17px;
  }

  .mini-heatmap-table {
    min-width: 0;
  }

  .mini-heatmap-table thead th:first-child {
    width: 72px;
  }

  .mini-heatmap-table thead th {
    padding: 2px 0 4px;
    font-size: 7px;
  }

  .mini-heatmap-table tbody th {
    padding: 4px 3px 4px 0;
  }

  .mini-heat-fish {
    font-size: 9px;
    line-height: 1.05;
  }

  .mini-heat-total {
    font-size: 7px;
  }

  .mini-heat-cell {
    height: 18px;
    font-size: 7px;
  }

  .spot-popup-link {
    position: sticky;
    bottom: 0;
    min-height: 40px;
    width: 100%;
    margin-top: 8px;
    font-size: 12px;
    background: rgba(255, 254, 249, 0.98);
    box-shadow: 0 -8px 18px rgba(255, 254, 249, 0.92);
  }

  .spot-popup-next-6h {
    padding: 10px;
  }

  .spot-popup-next-6h h4 {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .spot-popup-next-6h-heading {
    margin-bottom: 8px;
  }

  .spot-popup-next-6h-heading h4 {
    margin: 0;
  }

  .popup-mini-graph-legend {
    font-size: 10px;
  }

  .next-6h-list-compact {
    gap: 5px;
  }

  .next-6h-list-compact li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    min-height: 26px;
  }

  .next-6h-list-compact.next-6h-list-unranked li {
    display: inline-flex;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: 5px 8px;
  }

  .next-6h-list-compact span {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .next-6h-list-compact strong {
    font-size: 13px;
  }

  .next-6h-list-compact.next-6h-list-unranked strong {
    max-width: 8em;
  }

  .popup-mini-graph-list {
    gap: 6px;
  }

  .popup-mini-graph-list li {
    grid-template-columns: minmax(4.5em, 1fr) 125px;
    gap: 7px;
    padding: 6px 7px;
  }

  .popup-mini-graph-list strong {
    font-size: 12px;
  }

  .popup-mini-graph {
    width: 125px;
    height: 44px;
  }

  .popup-mini-graph-axis-label,
  .popup-mini-graph-y-label {
    font-size: 10.5px;
  }

  .next-6h-empty-compact {
    font-size: 11px;
  }

  .spot-sheet {
    right: 8px;
    bottom: 108px;
    left: 8px;
    max-width: none;
    max-height: min(60svh, calc(100% - 12px));
    padding: 8px 10px 6px;
  }

  .spot-sheet-close {
    top: 6px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
