:root {
  color-scheme: dark;
  --ink: #edf7f8;
  --muted: #9fb2b9;
  --line: #25414a;
  --panel: #10262f;
  --panel-soft: #0d2028;
  --paper: #07151b;
  --blue: #21a7bd;
  --blue-dark: #062833;
  --green: #66d5aa;
  --amber: #e3a84b;
  --red: #ff8f8f;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(18px, env(safe-area-inset-left)) 12px max(18px, env(safe-area-inset-right));
  background: rgba(7, 21, 27, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand > div {
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.title-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  min-width: 0;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.icon-button:hover {
  border-color: #426671;
  background: #16323d;
}

.icon-button span:first-child {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.install-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #b7b7b7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

#newFormButton {
  width: 40px;
  padding: 0;
}

#installButton,
#exportButton,
#resetButton {
  width: 40px;
  padding: 0;
}

.icon-button.danger {
  color: var(--red);
}

.icon-button.primary {
  border-color: rgba(33, 167, 189, 0.46);
  color: #b9f5ff;
}

.recent-button {
  max-width: 260px;
}

.recent-button span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-hidden {
  display: none;
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 16px 16px 34px;
}

.overview-panel {
  display: block;
}

.hero-panel {
  position: relative;
  display: grid;
  --hotspot-size: 34px;
  --hotspot-dot-inset: 4px;
  --hotspot-dot-border: 3px;
  --hotspot-ring: 4px;
  --hotspot-glow: 18px;
  --hotspot-line: 78px;
  --hotspot-line-height: 3px;
  min-height: 230px;
  overflow: visible;
  border-radius: 8px;
  background: var(--blue-dark);
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  border-radius: 8px;
}

.hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--hotspot-size);
  height: var(--hotspot-size);
  margin: calc(var(--hotspot-size) / -2) 0 0 calc(var(--hotspot-size) / -2);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}

.hotspot-dot {
  position: absolute;
  z-index: 2;
  inset: var(--hotspot-dot-inset);
  border: var(--hotspot-dot-border) solid #fff;
  border-radius: 50%;
  background: rgba(33, 167, 189, 0.8);
  box-shadow: 0 0 0 var(--hotspot-ring) rgba(7, 21, 27, 0.56), 0 0 var(--hotspot-glow) rgba(118, 209, 181, 0.85);
  transition: transform 160ms ease, background 160ms ease;
}

.hotspot::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: var(--hotspot-line);
  height: var(--hotspot-line-height);
  background: rgba(255, 255, 255, 0.9);
  transform-origin: left center;
  transform: translateY(-50%) rotate(180deg) scaleX(0);
  transition: transform 160ms ease;
}

.hotspot.right::after {
  transform: translateY(-50%) scaleX(0);
}

.hotspot-card {
  position: absolute;
  z-index: 3;
  left: var(--hotspot-card-left, calc(100% + var(--hotspot-line)));
  right: auto;
  top: 50%;
  display: none;
  width: var(--hotspot-card-width, auto);
  min-width: min(190px, calc(100vw - 40px));
  max-width: min(290px, 70vw);
  padding: 12px 14px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.15;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(-50%) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
}

.hotspot.right .hotspot-card {
  left: var(--hotspot-card-left, calc(100% + var(--hotspot-line)));
}

.hotspot.below .hotspot-card {
  top: auto;
  bottom: calc(100% + 52px);
  transform: scale(0.96);
}

.hotspot.card-below .hotspot-card,
.hotspot.right.card-below .hotspot-card {
  left: var(--hotspot-card-left, 0);
  right: auto;
  top: calc(100% + var(--hotspot-line));
  bottom: auto;
  transform: scale(0.96);
}

.hotspot.card-below::after,
.hotspot.right.card-below::after {
  left: 50%;
  top: 100%;
  width: var(--hotspot-line-height);
  height: var(--hotspot-line);
  transform-origin: top center;
  transform: translateX(-50%) scaleY(0);
}

.hotspot:hover,
.hotspot:focus-visible,
.hotspot.active {
  z-index: 5;
}

.hotspot:hover .hotspot-dot,
.hotspot:focus-visible .hotspot-dot,
.hotspot.active .hotspot-dot {
  background: var(--green);
  transform: scale(1.12);
}

.hotspot:hover::after,
.hotspot:focus-visible::after,
.hotspot.active::after {
  transform: translateY(-50%) rotate(180deg) scaleX(1);
}

.hotspot.right:hover::after,
.hotspot.right:focus-visible::after,
.hotspot.right.active::after {
  transform: translateY(-50%) scaleX(1);
}

.hotspot.card-below:hover::after,
.hotspot.card-below:focus-visible::after,
.hotspot.card-below.active::after,
.hotspot.right.card-below:hover::after,
.hotspot.right.card-below:focus-visible::after,
.hotspot.right.card-below.active::after {
  transform: translateX(-50%) scaleY(1);
}

.hotspot:hover .hotspot-card,
.hotspot:focus-visible .hotspot-card,
.hotspot.active .hotspot-card {
  display: block;
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.hotspot.below:hover .hotspot-card,
.hotspot.below:focus-visible .hotspot-card,
.hotspot.below.active .hotspot-card,
.hotspot.card-below:hover .hotspot-card,
.hotspot.card-below:focus-visible .hotspot-card,
.hotspot.card-below.active .hotspot-card {
  transform: scale(1);
}

.hotspot:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.hero-copy {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 20px;
  border-radius: 0 0 8px 8px;
  color: #fff;
  background: linear-gradient(0deg, rgba(3, 35, 45, 0.78), rgba(3, 35, 45, 0));
  overflow: visible;
}

.status-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-readout {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.progress-readout strong {
  font-size: 2.4rem;
  line-height: 1;
}

.progress-readout span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.progress-track {
  position: relative;
  height: 13px;
  margin-top: 14px;
  overflow: visible;
  border-radius: 8px;
  background: rgba(3, 17, 22, 0.72);
}

.progress-track > span {
  display: block;
  height: 100%;
}

.segmented-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 18px rgba(102, 213, 170, 0.26);
  isolation: isolate;
}

.progress-segment {
  position: relative;
  overflow: visible;
  border-radius: 6px;
  background: rgba(237, 247, 248, 0.22);
  box-shadow: inset 0 0 0 1px rgba(3, 17, 22, 0.62);
  cursor: pointer;
}

.progress-segment-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7af0c7, #2fd99b);
  box-shadow: 0 0 12px rgba(102, 213, 170, 0.72);
  transition: width 180ms ease;
  max-width: 100%;
}

.progress-segment.complete .progress-segment-fill {
  background: var(--green);
}

.progress-segment-detail {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  display: none;
  gap: 3px;
  min-width: 190px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
}

.progress-segment:first-child .progress-segment-detail {
  left: 0;
  transform: translateY(4px) scale(0.96);
}

.progress-segment:last-child .progress-segment-detail {
  left: auto;
  right: 0;
  transform: translateY(4px) scale(0.96);
}

.progress-segment-detail strong {
  color: #b9f5ff;
}

.progress-segment:hover,
.progress-segment:focus-visible,
.progress-segment.active {
  z-index: 30;
  outline: none;
}

.progress-segment:hover .progress-segment-detail,
.progress-segment:focus-visible .progress-segment-detail,
.progress-segment.active .progress-segment-detail {
  display: grid;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.progress-segment:first-child:hover .progress-segment-detail,
.progress-segment:first-child:focus-visible .progress-segment-detail,
.progress-segment:first-child.active .progress-segment-detail,
.progress-segment:last-child:hover .progress-segment-detail,
.progress-segment:last-child:focus-visible .progress-segment-detail,
.progress-segment:last-child.active .progress-segment-detail {
  transform: translateY(0) scale(1);
}

.trip-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.trip-details label {
  display: grid;
  gap: 7px;
}

.trip-details span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.trip-details input {
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.trip-details input::placeholder {
  color: #708992;
}

.active-submission {
  margin: -4px 0 16px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 800;
}

.tabs {
  position: sticky;
  top: 67px;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 18px 0 12px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 21, 27, 0.92);
  backdrop-filter: blur(14px);
}

.tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tab.active {
  background: var(--blue);
  color: #031116;
}

.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
}

#checklist {
  display: grid;
  gap: 12px;
}

.check-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
  min-height: 58px;
  padding: 14px 16px;
  border: 0;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.section-name {
  font-weight: 900;
}

.check-section.complete .section-name {
  color: var(--green);
}

.section-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.section-progress {
  min-width: 58px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(102, 213, 170, 0.13);
  color: var(--green);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 900;
}

.section-check-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(33, 167, 189, 0.48);
  border-radius: 6px;
  color: #b9f5ff;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 900;
}

.section-check-all-tick {
  opacity: 0;
}

.section-check-all.checked {
  background: var(--green);
  border-color: var(--green);
  color: #031116;
}

.section-check-all.checked .section-check-all-tick {
  opacity: 1;
}

.section-check-all:hover,
.section-check-all:focus-visible {
  background: rgba(33, 167, 189, 0.18);
  outline: none;
}

.section-check-all.checked:hover,
.section-check-all.checked:focus-visible {
  background: #7af0c7;
}

.check-section.complete .section-check-all {
  border-color: rgba(102, 213, 170, 0.44);
}

.section-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.check-section.collapsed .section-items {
  display: none;
}

.check-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 64px;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: var(--panel-soft);
}

.check-item:hover {
  background: #142f39;
}

.check-item:nth-child(3n) {
  border-right: 0;
}

.check-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  width: 24px;
  height: 24px;
  border: 2px solid #7c98a1;
  border-radius: 5px;
  background: #07151b;
  pointer-events: none;
}

.check-text {
  overflow-wrap: anywhere;
  font-weight: 800;
  line-height: 1.2;
}

.check-item input:checked + .check-box {
  border-color: var(--green);
  background: var(--green);
}

.check-item:has(input:checked) {
  background: rgba(102, 213, 170, 0.12);
}

.check-item:has(input:checked) .check-text {
  color: #b8f4dd;
  text-decoration: line-through;
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.summary-block {
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.summary-block.complete {
  border-color: rgba(102, 213, 170, 0.62);
  background: rgba(102, 213, 170, 0.1);
}

.summary-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.summary-block h2 {
  margin: 0;
  color: #9be8f2;
  font-size: 1rem;
}

.summary-block.complete h2 {
  color: var(--green);
}

.summary-remaining {
  flex-shrink: 0;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(33, 167, 189, 0.14);
  color: #b9f5ff;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.summary-block.complete .summary-remaining {
  background: rgba(102, 213, 170, 0.16);
  color: var(--green);
}

.summary-progress {
  height: 9px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(159, 178, 185, 0.22);
}

.summary-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.summary-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.history-header h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.08rem;
}

.history-header p,
.history-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.history-item.active {
  border-color: rgba(102, 213, 170, 0.68);
  background: rgba(102, 213, 170, 0.1);
}

.history-summary {
  min-width: 0;
}

.history-summary h3 {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1rem;
}

.history-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.history-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
    overflow-x: visible;
  }

  .icon-button {
    flex: 0 0 44px;
    min-height: 40px;
    padding: 0;
  }

  #newFormButton {
    flex-basis: 44px;
  }

  #exportButton,
  #resetButton,
  #installButton {
    flex-basis: 44px;
  }

  .recent-button {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 0 10px;
  }

  .trip-details,
  .section-items,
  .summary-list {
    grid-template-columns: 1fr;
  }

  .history-header,
  .history-item {
    align-items: stretch;
    flex-direction: column;
  }

  .history-actions {
    width: 100%;
  }

  .check-item,
  .check-item:nth-child(3n) {
    border-right: 0;
  }

  .tabs {
    top: 115px;
  }
}

@media (min-width: 901px) {
  main {
    width: min(1560px, 100%);
    padding: 12px 18px 26px;
  }

  .topbar {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  h1 {
    font-size: 0.98rem;
  }

  .title-meta {
    font-size: 0.7rem;
  }

  .icon-button {
    min-height: 34px;
    padding: 0 10px;
  }

  .recent-button {
    max-width: 320px;
  }

  .hero-panel {
    width: 100%;
    min-width: 240px;
    max-width: 390px;
    min-height: 150px;
    margin-bottom: 0;
  }

  .overview-panel {
    float: left;
    width: 25%;
    min-width: 300px;
    max-width: 390px;
    margin: 0 12px 8px 0;
  }

  .trip-panel {
    min-width: 0;
  }

  .hero-panel img {
    min-height: 150px;
  }

  .hotspot-card {
    left: var(--hotspot-card-left, calc(100% + var(--hotspot-line)));
    right: auto;
    min-width: 160px;
    max-width: 230px;
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  .hotspot.right .hotspot-card {
    left: var(--hotspot-card-left, calc(100% + var(--hotspot-line)));
    right: auto;
  }

  .hotspot.below .hotspot-card {
    bottom: calc(100% + 34px);
  }

  .hero-copy {
    padding: 10px 12px;
  }

  .status-label {
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  .progress-readout {
    gap: 8px;
  }

  .progress-readout strong {
    font-size: 1.6rem;
  }

  .progress-readout span {
    font-size: 0.82rem;
  }

  .progress-track {
    height: 10px;
    margin-top: 7px;
  }

  .trip-details {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 8px 0 6px;
  }

  .trip-details span {
    font-size: 0.74rem;
  }

  .trip-details input {
    height: 36px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .active-submission {
    margin: 2px 0 8px;
    font-size: 0.78rem;
  }

  .tabs {
    top: 51px;
    margin: 8px 0;
    padding: 4px;
  }

  .tab {
    min-height: 34px;
    font-size: 0.86rem;
  }

  #checklist {
    gap: 8px;
  }

  .section-title {
    min-height: 42px;
    padding: 9px 12px;
  }

  .section-name {
    font-size: 0.9rem;
  }

  .section-progress {
    min-width: 48px;
    padding: 3px 7px;
    font-size: 0.76rem;
  }

  .section-check-all {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 0.76rem;
  }

  .section-items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .check-item {
    grid-template-columns: 22px 1fr;
    gap: 7px;
    min-height: 42px;
    padding: 8px;
  }

  .check-item:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .check-item:nth-child(4n) {
    border-right: 0;
  }

  .check-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
  }

  .check-text {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .summary-list {
    gap: 10px;
  }
}

@media (min-width: 1280px) {
  .section-items {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .check-item:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .check-item:nth-child(5n) {
    border-right: 0;
  }
}

@media (max-width: 560px) {
  main {
    padding: 10px 10px 26px;
  }

  h1 {
    font-size: 0.98rem;
  }

  .title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .title-meta {
    white-space: normal;
  }

  .hero-panel,
  .hero-panel img {
    min-height: 190px;
  }

  .hero-copy {
    padding: 16px;
  }

  .hotspot-card,
  .hotspot.right .hotspot-card {
    left: var(--hotspot-card-left, 0);
    right: auto;
    top: calc(100% + var(--hotspot-line));
    bottom: auto;
    min-width: 160px;
    max-width: min(220px, calc(100vw - 40px));
    font-size: 0.82rem;
    transform: scale(0.96);
  }

  .hotspot.right .hotspot-card {
    left: var(--hotspot-card-left, 0);
    right: auto;
  }

  .hotspot::after,
  .hotspot.right::after {
    left: 50%;
    top: 100%;
    width: var(--hotspot-line-height);
    height: var(--hotspot-line);
    transform-origin: top center;
    transform: translateX(-50%) scaleY(0);
  }

  .hotspot:hover::after,
  .hotspot:focus-visible::after,
  .hotspot.active::after,
  .hotspot.right:hover::after,
  .hotspot.right:focus-visible::after,
  .hotspot.right.active::after {
    transform: translateX(-50%) scaleY(1);
  }

  .hotspot:hover .hotspot-card,
  .hotspot:focus-visible .hotspot-card,
  .hotspot.active .hotspot-card,
  .hotspot.below:hover .hotspot-card,
  .hotspot.below:focus-visible .hotspot-card,
  .hotspot.below.active .hotspot-card {
    transform: scale(1);
  }

  .progress-readout {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .progress-readout strong {
    font-size: 2rem;
  }

  .tabs {
    top: 119px;
  }

  .tab {
    min-height: 40px;
    font-size: 0.9rem;
  }

  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-progress {
    min-width: 0;
  }
}
