.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.type-btn-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.type-btn-text {
  font-size: clamp(0.65rem, 2.6vw, 0.75rem);
  line-height: 1.15;
}

.chip-icon {
  margin-right: 0.2rem;
}

html.mesa-dark .card-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 6, 14, 0.45) 0%,
    rgba(8, 6, 14, 0.62) 40%,
    rgba(8, 6, 14, 0.94) 100%
  );
}

html.contrast-high .chip {
  border-width: 2px;
}

html.contrast-high .chip.is-active {
  outline: 2px solid #000;
  outline-offset: 1px;
}

html.contrast-high .jornada-tab {
  border-width: 2px;
}

html.contrast-high .type-btn.is-active {
  outline: 3px solid #000;
  outline-offset: 2px;
}

html.text-large .daily-mini-q {
  line-height: 1.35;
}

html.text-large .turn-chip-name {
  max-width: clamp(6rem, 24vw, 12rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.mesa-dark .card-stage {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.pool-warning {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--type-experience-bg);
  border: 1px solid #ffcc80;
  font-size: 0.88rem;
  color: var(--brand-dark);
  line-height: 1.35;
}

.mesa-draw-compact .type-grid {
  display: none;
}

.mesa-draw-compact .draw-actions {
  margin-top: 0;
}

.mesa-more-toggle {
  width: 100%;
  margin-bottom: 0.25rem;
}

.glossary-list {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.glossary-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.glossary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.glossary-swatch {
  width: 3.5rem;
  aspect-ratio: var(--card-ratio);
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}

.glossary-item h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.glossary-item p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.glossary-example {
  font-size: 0.85rem;
  color: var(--ink);
  font-style: italic;
}

.history-item.is-clickable {
  cursor: pointer;
}

.history-item.is-clickable:active {
  transform: scale(0.99);
}

.history-view-btn {
  margin-top: 0.45rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.install-banner {
  flex-direction: column;
  align-items: stretch;
}

.install-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.install-banner-actions .btn {
  flex: 1;
  min-width: 6.5rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
}

.install-banner-actions .btn-ghost {
  border: 1px solid var(--border);
}

.mode-suggestion {
  margin-bottom: 1rem;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.4;
}

.mode-suggestion p {
  margin: 0;
}

.mode-card--suggested {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand-soft);
}

html.contrast-high .trail-hex {
  fill-opacity: 1;
  stroke: #000;
  stroke-width: 2.5;
}

html.contrast-high .trail-hex.is-current {
  stroke: #000;
  stroke-width: 3.5;
}

html.contrast-high .trail-current-ring {
  stroke: #000;
}

html.contrast-high .trail-label-plate {
  fill: #fff;
  stroke: #000;
}

html.contrast-high .trail-label {
  fill: #000;
  font-weight: 700;
}

html.mesa-dark .trail-label {
  fill: var(--ink);
}

html.mesa-dark .trail-hex.is-current {
  stroke: #fff;
}

html.mesa-dark .trail-current-ring {
  stroke: #fff;
}

html.mesa-dark .trail-map {
  border-color: rgba(255, 255, 255, 0.16);
}

.mode-suggest-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  vertical-align: middle;
  margin-left: 0.25rem;
}
