/* 星原旅誌 — 詳情內容與工具模組 */

/* ───── 共用：分頁標籤、表格、摺疊 ───── */

.cp-tabs,
.ae-tabs {
  position: sticky;
  top: var(--hud);
  z-index: 9;
  display: flex;
  gap: 4px;
  padding: 10px 6px 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(color-mix(in srgb, var(--paper) 92%, transparent) 70%, transparent);
  border-bottom: 2px solid var(--ink);
}

.cp-tabs button,
.ae-tab {
  flex: none;
  padding: 9px 16px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--ink) 6%, var(--card));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  transform: translateY(4px);
  transition:
    transform 0.2s cubic-bezier(0.3, 1.5, 0.5, 1),
    background 0.15s,
    color 0.15s;
}

.cp-tabs button:hover,
.ae-tab:hover {
  transform: translateY(1px);
  color: var(--ink);
}

.cp-tabs button[aria-pressed="true"],
.ae-tab[aria-pressed="true"] {
  transform: translateY(0);
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  font-weight: 700;
}

.cp-content,
.ae-content {
  padding: clamp(18px, 3vw, 34px);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shade);
  animation: page-in 0.3s both;
}

.ae-record > .ae-content:first-child {
  border-top: 1px solid var(--line);
  border-radius: var(--leaf);
}

.cp-section + .cp-section,
.ae-section + .ae-section,
.ae-levels + .ae-section,
.ae-lead + .ae-section,
.ae-reader + .ae-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
}

.cp-section > h3,
.ae-section > h3,
.ae-level-head h3,
.ae-read-head h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  margin-bottom: 14px;
}

.cp-section > h3::before,
.ae-section > h3::before,
.ae-level-head h3::before,
.ae-read-head h3::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin: 0 3px;
  background: var(--sun);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px var(--ink);
}

.cp-section h4,
.ae-content h4 {
  font-size: 17px;
  margin: 16px 0 6px;
}

.cp-scroll,
.ae-table-wrap,
.mb-scroll {
  overflow-x: auto;
  margin: 8px 0;
  scrollbar-width: thin;
}

.cp-scroll table,
.ae-table,
.mb-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cp-scroll th,
.cp-scroll td,
.ae-table th,
.ae-table td,
.mb-scroll th,
.mb-scroll td {
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px dashed var(--line);
}

.cp-scroll thead th,
.ae-table thead th,
.mb-scroll thead th {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  white-space: nowrap;
  border-bottom: 1.5px solid var(--ink);
}

.cp-scroll tbody th,
.mb-scroll tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.cp-scroll tbody tr:hover,
.ae-table tbody tr:hover,
.mb-scroll tbody tr:hover {
  background: var(--marker);
}

.cp-scroll td,
.ae-table td {
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.cp-scroll a,
.ae-link,
.ae-table a,
.cp-effect a,
.ft-related a,
.hb-related a {
  color: var(--azure-deep);
  font-weight: 500;
  background: linear-gradient(var(--marker), var(--marker)) 0 92% / 100% 30% no-repeat;
}

.cp-scroll a:hover,
.ae-link:hover,
.ae-table a:hover,
.ft-related a:hover,
.hb-related a:hover {
  background-size: 100% 90%;
}

.cp-fold,
.ae-fold,
.atlas-lab-credit {
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: var(--leaf-s);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}

.cp-fold > summary,
.ae-fold > summary,
.atlas-lab-credit > summary,
.hb-tiers summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-radius: var(--leaf-s);
}

.cp-fold > summary::-webkit-details-marker,
.ae-fold > summary::-webkit-details-marker,
.atlas-lab-credit > summary::-webkit-details-marker,
.hb-tiers summary::-webkit-details-marker,
.ev-summary::-webkit-details-marker {
  display: none;
}

.cp-fold > summary::before,
.ae-fold > summary::before,
.atlas-lab-credit > summary::before,
.hb-tiers summary::before {
  content: "＋";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 13px;
  border-radius: 50%;
  background: var(--sun);
  color: #1c2743;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}

details[open] > summary::before {
  transform: rotate(135deg);
}

.cp-fold > summary:hover,
.ae-fold > summary:hover {
  background: var(--marker);
}

.cp-fold > div,
.ae-fold-body {
  padding: 4px 14px 14px;
}

.cp-empty,
.ae-loading,
.ft-empty,
.ft-hint,
.hb-empty,
.mb-status,
.ev-empty,
.ev-caption,
.cp-caption {
  font: 400 14px/1.7 var(--f-hand);
  color: var(--ink-3);
}

.cp-caption {
  margin: 10px 0;
}

.cp-link,
.under-link,
.mb-status button,
.ft-retry {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--azure-deep);
  background: linear-gradient(var(--marker), var(--marker)) 0 90% / 100% 36% no-repeat;
  padding: 2px 3px;
}

.cp-link:hover,
.under-link:hover {
  background-size: 100% 92%;
}

.cp-play,
.btn-outline,
.ae-reader-btn,
.ft-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 15px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--leaf-s);
  border: 1.5px solid var(--ink);
  background: var(--card);
  transition:
    transform 0.15s,
    background 0.15s,
    color 0.15s;
}

.cp-play:hover,
.btn-outline:hover,
.ae-reader-btn:hover:not(:disabled),
.ft-more:hover {
  background: var(--sun);
  color: #1c2743;
  transform: translateY(-2px);
}

.ae-reader-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ───── 同行者／奇波養成 ───── */

.cp-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.cp-controls > span {
  font-size: 13px;
  color: var(--ink-2);
  padding-bottom: 9px;
}

.cp-select {
  display: inline-grid;
  gap: 3px;
  margin: 0 12px 12px 0;
  vertical-align: bottom;
}

.cp-controls .cp-select {
  margin: 0;
}

.cp-select span {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.cp-level {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 8px 22px;
  padding: 16px 20px;
  margin-bottom: 18px;
  border-radius: var(--leaf);
  background: color-mix(in srgb, var(--sun) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--sun) 50%, transparent);
}

.cp-level > div:first-child {
  display: grid;
}

.cp-level > div:first-child label {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.cp-level strong {
  font: 700 34px/1 var(--f-num);
  font-variant-numeric: tabular-nums;
  min-width: 96px;
}

.cp-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cp-stepper button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--card);
  font-size: 17px;
  line-height: 1;
  transition:
    background 0.15s,
    transform 0.15s;
}

.cp-stepper button:hover:not(:disabled) {
  background: var(--sun);
  color: #1c2743;
  transform: scale(1.1);
}

.cp-stepper button:disabled {
  opacity: 0.3;
}

.cp-stepper label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
}

.cp-stepper input,
.ft-picker-bar input,
.hb-filter input,
.mb-find input,
.ft-map-filter input[type="search"] {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--card);
  outline: 0;
}

.cp-stepper input {
  width: 62px;
  font: 600 17px/1 var(--f-num);
  text-align: center;
}

.cp-stepper input:focus,
.ft-picker-bar input:focus,
.hb-filter input:focus,
.mb-find input:focus,
.ft-map-filter input[type="search"]:focus {
  border-color: var(--azure);
}

.cp-metrics,
.ae-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.cp-metrics > div,
.ae-stat {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 11px 14px 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border-left: 3px solid var(--tt, var(--azure));
}

.cp-metrics span,
.ae-stat span {
  font-size: 12px;
  color: var(--ink-3);
}

.cp-metrics b,
.ae-stat strong {
  font: 600 26px/1.1 var(--f-num);
  font-variant-numeric: tabular-nums;
}

.cp-skill {
  padding: 18px 20px;
  margin-top: 6px;
  border-radius: var(--leaf);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border: 1px solid var(--line);
}

.cp-skill-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.cp-skill-head img {
  width: 60px;
  height: 60px;
  padding: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--tt, var(--azure)) 80%, #fff), color-mix(in srgb, var(--tt, var(--azure)) 80%, #101638));
  box-shadow:
    0 0 0 2px var(--card),
    0 0 0 4px color-mix(in srgb, var(--tt, var(--azure)) 60%, transparent);
}

.cp-skill-head small {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--tt, var(--azure));
  font-weight: 700;
}

.cp-skill-head h4 {
  margin: 0;
  font-size: 22px;
}

.cp-effect {
  line-height: 1.95;
  margin: 8px 0;
  max-width: 78ch;
}

.cp-tuning {
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 10px;
}

.cp-tuning img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shade);
  background: var(--card-2);
}

.cp-kit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.cp-plan-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 4px;
}

.cp-plan-action small {
  color: var(--ink-3);
}

.cp-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* 信件 */
.cp-letter {
  position: relative;
  max-width: 660px;
  margin: 16px 0;
  padding: 22px 26px 20px;
  color: #2a2f4a;
  background:
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(36, 112, 194, 0.16) 33px 34px),
    #fff;
  border-radius: 12px;
  box-shadow: 0 16px 26px -18px rgba(20, 28, 70, 0.6);
}

.cp-letter > span {
  position: absolute;
  right: 16px;
  top: -11px;
  padding: 2px 12px;
  font-size: 12px;
  color: #fff;
  background: var(--seal);
  border-radius: 99px;
}

.cp-letter-reply {
  margin-left: auto;
  background:
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(15, 159, 143, 0.18) 33px 34px),
    #f3fbf6;
}

.cp-letter-reply > span {
  background: var(--teal);
}

.cp-letter h4 {
  margin: 0 0 4px;
  font: 400 18px/34px var(--f-hand);
  color: inherit;
}

.cp-prose {
  font: 400 16px/34px var(--f-hand);
}

.cp-story .cp-prose {
  line-height: 2.1;
  max-width: 70ch;
}

.cp-sign {
  text-align: right;
  font: 400 17px/34px var(--f-hand);
}

.cp-replies {
  max-width: 660px;
  margin: 16px 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.cp-replies legend,
.ae-choices small {
  font: 400 14px/1 var(--f-hand);
  color: var(--ink-3);
  margin-bottom: 8px;
}

.cp-replies button,
.ae-choices .ae-reader-btn {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 8px 18px;
  text-align: left;
  font-weight: 500;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--card);
  transition:
    transform 0.18s,
    background 0.18s;
}

.cp-replies button::before,
.ae-choices .ae-reader-btn::before {
  content: "▸";
  margin-right: 10px;
  color: var(--sun-deep);
}

.cp-replies button:hover,
.ae-choices .ae-reader-btn:hover:not(:disabled) {
  transform: translateX(8px);
  background: var(--sun);
  color: #1c2743;
}

.cp-replies button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.cp-intro {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: var(--leaf-s);
  background: var(--marker);
}

.cp-story h5 {
  font-size: 14px;
  color: var(--ink-3);
  margin: 18px 0 6px;
}

.cp-video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cp-video-links a {
  padding: 7px 14px;
  border-radius: var(--leaf-s);
  border: 1px solid var(--line);
  background: var(--card);
}

.cp-video-links a::before {
  content: "▶ ";
  color: var(--coral);
}

.cp-video-links a:hover {
  background: var(--marker);
}

.cp-player {
  position: sticky;
  top: calc(var(--hud) + 54px);
  z-index: 5;
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  margin: 12px 0;
  color: #f4f1e4;
  background: #1c2743;
  border-radius: var(--leaf);
  box-shadow: var(--shade);
}

.cp-player > span {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #ffd669;
}

.cp-player audio {
  width: 100%;
  height: 34px;
}

.cp-now-text {
  font: 400 15px/1.7 var(--f-hand);
}

.cp-voices {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.cp-voices li {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: start;
  padding: 12px 6px;
  border-bottom: 1px dashed var(--line);
}

.cp-voice-title small {
  color: var(--ink-3);
  font-size: 12px;
}

.cp-voices li > span {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.cp-transcript {
  grid-column: 2;
  grid-row: 1;
  font: 400 15px/1.8 var(--f-hand);
  color: var(--ink-2);
}

.cp-transcript small {
  display: block;
  font: 400 12px/1.6 var(--f-sans);
  color: var(--ink-3);
}

.cp-voices .cp-play {
  min-height: 30px;
  padding: 0 11px;
  font-size: 12.5px;
}

/* ───── 一般條目詳情 ───── */

.ae-lead {
  font: 400 17px/1.9 var(--f-hand);
  color: var(--ink-2);
  white-space: pre-line;
  max-width: 76ch;
}

.ae-values {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0 26px;
  margin: 6px 0 10px;
}

.ae-values dt {
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 9px;
}

.ae-values dd {
  margin: 0;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
  font-weight: 500;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.ae-small-row {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.ae-small-row strong {
  flex: none;
  min-width: 96px;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-3);
}

.ae-stack {
  display: grid;
  gap: 6px;
}

.ae-array {
  line-height: 1.9;
}

.ae-object > .ae-link {
  display: inline-block;
  margin-bottom: 6px;
}

.ae-level-head,
.ae-read-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ae-level-head h3,
.ae-read-head h3 {
  margin: 0;
}

.ae-level-choice {
  font-size: 13px;
  color: var(--ink-3);
}

.ae-level-slider {
  margin: 12px 0 16px;
}

/* 閱讀器 */
.ae-read-body {
  margin-top: 18px;
}

.ae-book-title {
  text-align: center;
  font-size: 26px;
  margin: 10px 0 4px;
}

.ae-byline {
  text-align: center;
  font: 400 14px/1.6 var(--f-hand);
  color: var(--ink-3);
  margin-bottom: 18px;
}

.ae-book-para {
  max-width: 68ch;
  margin: 0 auto 1.1em;
  font: 400 16.5px/2.15 var(--f-hand);
  text-indent: 2em;
  white-space: pre-line;
}

.ae-illustration {
  display: block;
  max-width: min(100%, 560px);
  margin: 22px auto;
  border-radius: 12px;
  box-shadow: var(--shade);
}

.ae-synopsis {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: var(--leaf-s);
  background: var(--marker);
  line-height: 1.8;
}

.ae-read-modes {
  display: inline-flex;
  padding: 3px;
  margin-bottom: 16px;
  border-radius: 99px;
  border: 1.5px solid var(--ink);
}

.ae-read-modes button {
  padding: 6px 16px;
  font-size: 13.5px;
  border-radius: 99px;
}

.ae-read-modes button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.ae-speech {
  max-width: 760px;
}

.ae-lines {
  display: grid;
  gap: 14px;
}

.ae-utterance {
  position: relative;
  padding: 20px 20px 14px;
  margin-top: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 4px 18px 18px 18px;
  background: var(--card);
  box-shadow: 4px 5px 0 color-mix(in srgb, var(--tt, var(--azure)) 55%, transparent);
  animation: drop-in 0.28s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.ae-utterance > strong {
  position: absolute;
  left: 14px;
  top: -13px;
  padding: 2px 14px;
  font: 900 14px/1.5 var(--f-serif);
  color: var(--paper);
  background: var(--ink);
  border-radius: 10px;
}

.ae-utterance > p {
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-line;
}

.ae-voices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ae-voice {
  padding: 4px 12px;
  font: 600 13px/1.5 var(--f-num);
  letter-spacing: 0.04em;
  color: var(--azure-deep);
  border: 1px solid color-mix(in srgb, var(--azure) 50%, transparent);
  border-radius: 99px;
  transition: background 0.15s;
}

.ae-voice:hover {
  background: var(--marker);
}

.ae-voice[aria-pressed="true"] {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

.ae-choices {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.ae-read-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.ae-read-actions .ae-reader-btn:first-child {
  background: var(--ink);
  color: var(--paper);
}

.ae-read-actions .ae-reader-btn:first-child:hover {
  background: var(--sun);
  color: #1c2743;
}

.ae-ending {
  margin-top: 20px;
  text-align: center;
  font: 400 15px/1 var(--f-hand);
  color: var(--ink-3);
}

.ae-ending::before,
.ae-ending::after {
  content: " ✦ ";
  color: var(--sun);
}

.ae-trans-choices {
  margin: 10px 0 18px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-left: 3px solid var(--sun);
  background: var(--marker);
}

.ae-speech > .ae-utterance {
  margin-bottom: 20px;
}

.ae-voice-supplement {
  margin-top: 30px;
}

/* ───── 工具共用 ───── */

.ft,
.mb-board,
.ev-calendar,
.hb-shell,
.hb-player {
  padding: clamp(16px, 2.6vw, 28px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--leaf);
  box-shadow: var(--shade);
}

.ft-topline,
.hb-filter,
.mb-filters,
.ft-reset-filters,
.ev-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
  margin-bottom: 16px;
}

.ft-topline label,
.hb-filter label,
.mb-filters label,
.ft-reset-filters label,
.ft-map-filter > label,
.ev-month-label {
  display: grid;
  gap: 3px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

.ft-topline > span,
.hb-filter > span,
.mb-count {
  margin-left: auto;
  font: 400 14px/1.4 var(--f-hand);
  color: var(--ink-2);
}

.ft-topline > strong {
  font: 900 19px/1 var(--f-sans);
}

.ft-check {
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px !important;
  font-size: 13.5px !important;
  color: var(--ink) !important;
  cursor: pointer;
  padding-bottom: 8px;
}

.ft-hint {
  margin-top: 14px;
}

/* ───── 互動地圖 ───── */

.ft-atlas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.ft-map-view {
  position: relative;
  height: min(74vh, 720px);
  min-height: 420px;
  border: 3px solid var(--bar);
  border-radius: 14px;
  box-shadow: var(--shade);
  background: #cfe0e2;
  overflow: hidden;
}

.ft-map-view canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  outline-offset: -4px;
}

.ft-map-view canvas:active {
  cursor: grabbing;
}

.ft-north {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 50px;
  height: 50px;
  display: grid;
  place-content: center;
  text-align: center;
  font: 700 12px/1.05 var(--f-num);
  color: #1c2743;
  background: rgba(255, 253, 245, 0.88);
  border: 1.5px solid #1c2743;
  border-radius: 50%;
  pointer-events: none;
}

.ft-map-buttons {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 6px;
}

.ft-map-buttons button {
  width: 40px;
  height: 40px;
  font-size: 18px;
  color: #1c2743;
  background: #fff;
  border: 1.5px solid #1c2743;
  border-radius: 12px;
  box-shadow: 2px 3px 0 #1c2743;
  transition: transform 0.12s;
}

.ft-map-buttons button:hover {
  background: var(--sun);
}

.ft-map-buttons button:active {
  transform: translate(2px, 3px);
  box-shadow: none;
}

.ft-point {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: min(420px, calc(100% - 84px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  color: #1c2743;
  background: #fff;
  border: 1.5px solid #1c2743;
  border-radius: 14px;
  box-shadow: 4px 5px 0 var(--sun);
  animation: drop-in 0.25s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.ft-point[hidden] {
  display: none;
}

.ft-point > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.ft-point small {
  font-size: 12px;
  color: #6c7391;
}

.ft-point strong {
  font: 900 18px/1.4 var(--f-serif);
}

.ft-related {
  margin-top: 4px;
  font-size: 13px;
}

.ft-point button {
  flex: none;
  min-height: 32px;
  padding: 0 11px;
  font-size: 12.5px;
  border: 1.5px solid #1c2743;
  border-radius: 99px;
  white-space: nowrap;
}

.ft-point button[aria-pressed="true"] {
  background: var(--meadow);
  border-color: var(--meadow);
  color: #fff;
}

.ft-point button[data-dismiss] {
  width: 32px;
  padding: 0;
  font-size: 17px;
}

.ft-map-filter {
  display: grid;
  gap: 12px;
}

.ft-map-filter select,
.ft-map-filter input[type="search"] {
  width: 100%;
}

.ft-found {
  font: 400 14px/1.4 var(--f-hand);
  color: var(--ink-2);
}

.ft-results {
  display: grid;
  gap: 3px;
  max-height: 46vh;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}

.ft-result {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  text-align: left;
  font-size: 13.5px;
  border-radius: 10px;
}

.ft-result:hover {
  background: var(--marker);
}

.ft-result i {
  width: 13px;
  height: 13px;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
  background: var(--pin, var(--azure));
  border: 1.5px solid var(--ink);
}

.ft-result span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-result b {
  color: var(--meadow);
}

.ft-more {
  justify-content: center;
  margin-top: 6px;
}

/* ───── 隊伍編成 ───── */

.ft-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ft-team-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--leaf);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}

.ft-team-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ft-team-card header strong {
  font: 900 19px/1 var(--f-serif);
}

.ft-team-card header button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 17px;
}

.ft-team-card header button:hover:not(:disabled) {
  background: var(--sun);
  color: #1c2743;
}

.ft-team-card header button:disabled {
  opacity: 0.3;
}

.ft-slot {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px;
  text-align: left;
  border-radius: 14px;
  border: 1.5px dashed var(--ink-3);
  background: var(--card);
  transition:
    transform 0.2s cubic-bezier(0.3, 1.5, 0.5, 1),
    border-color 0.2s;
}

.ft-slot:hover {
  transform: translateY(-3px) rotate(-0.6deg);
  border-color: var(--ink);
}

.ft-slot.ft-filled {
  border-style: solid;
  border-color: var(--ink);
  box-shadow: 3px 4px 0 var(--sun);
}

.ft-slot-image {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  font-size: 26px;
  color: var(--ink-3);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.ft-slot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ft-slot > span:last-child {
  display: grid;
  min-width: 0;
}

.ft-slot small {
  font-size: 12px;
  color: var(--ink-3);
}

.ft-slot strong {
  font: 900 18px/1.3 var(--f-serif);
}

.ft-slot em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-2);
}

.ft-picker {
  margin-top: 20px;
  padding: 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--leaf);
  background: var(--paper);
  animation: drop-in 0.28s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.ft-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ft-picker-head small {
  font-size: 12px;
  color: var(--ink-3);
}

.ft-picker-head h3 {
  font-size: 22px;
}

.ft-picker-head button {
  width: 34px;
  height: 34px;
  font-size: 20px;
  border-radius: 50%;
}

.ft-picker-head button:hover {
  background: var(--marker);
}

.ft-picker-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.ft-picker-bar input {
  flex: 1;
  min-width: 0;
}

.ft-picker-bar button {
  padding: 0 14px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--leaf-s);
  background: var(--card);
}

.ft-picker-bar button:disabled {
  opacity: 0.35;
}

.ft-choice-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
}

.ft-choice {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
  font-size: 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.18s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.ft-choice img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.ft-choice:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: var(--ink);
}

.ft-choice[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--sun);
  color: #1c2743;
}

.ft-choice:disabled {
  opacity: 0.4;
}

.ft-choice small {
  font-size: 11px;
  color: var(--ink-3);
}

/* ───── 限購刷新 ───── */

.ft-reset-tabs,
.mb-tabs,
.ev-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.ft-reset-tabs button,
.mb-tabs button,
.ev-filter {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--leaf-s);
  background: var(--card);
  transition:
    transform 0.15s,
    background 0.15s;
}

.ft-reset-tabs button:hover,
.mb-tabs button:hover,
.ev-filter:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

.ft-reset-tabs button[aria-pressed="true"],
.mb-tabs button[aria-pressed="true"],
.ev-filter[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  font-weight: 700;
}

.ft-reset-status {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  color: #1c2743;
  background: var(--sun);
  border-radius: var(--leaf);
}

.ft-reset-status div {
  display: grid;
}

.ft-reset-status small {
  font-size: 12px;
  opacity: 0.7;
  letter-spacing: 0.08em;
}

.ft-reset-status strong {
  font: 700 30px/1.1 var(--f-num);
}

.ft-reset-status span {
  font: 400 15px/1.4 var(--f-hand);
}

.ft-shops {
  display: grid;
  gap: 22px;
}

.ft-shop h3 {
  font-size: 18px;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1.5px solid var(--ink);
}

.ft-offer,
.ft-daily {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 8px 4px;
  border-bottom: 1px dashed var(--line);
}

.ft-daily {
  grid-template-columns: 1fr auto;
}

.ft-offer img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.ft-offer div {
  display: grid;
  min-width: 0;
}

.ft-offer strong {
  font-weight: 500;
}

.ft-offer small {
  font-size: 12px;
  color: var(--ink-3);
}

.ft-offer > span {
  font: 600 15px/1.3 var(--f-num);
  text-align: right;
  color: var(--ink-2);
}

.ft-offer button {
  min-width: 74px;
  min-height: 32px;
  font-size: 12.5px;
  border-radius: 8px;
  border: 1.5px dashed var(--ink-3);
  color: var(--ink-3);
  transform: rotate(-3deg);
  transition: transform 0.15s;
}

.ft-offer button:hover {
  color: var(--seal);
  border-color: var(--seal);
  transform: rotate(0) scale(1.05);
}

.ft-offer button[aria-pressed="true"] {
  color: #fff;
  background: var(--seal);
  border: 0;
  animation: stamp-down 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.ft-offer:has(button[aria-pressed="true"]) > :not(button) {
  opacity: 0.5;
}

/* ───── 家園行情 ───── */

.mb-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 18px;
  color: #1c2743;
  background: var(--sun);
  border-radius: var(--leaf);
}

.mb-date {
  font: 600 14px/1 var(--f-num);
  letter-spacing: 0.14em;
  opacity: 0.75;
}

.mb-theme {
  font-size: clamp(22px, 3vw, 32px);
  margin: 4px 0;
}

.mb-note {
  font: 400 14px/1.6 var(--f-hand);
}

.mb-exhibits {
  display: flex;
  flex: none;
}

.mb-exhibits img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-left: -14px;
  filter: drop-shadow(0 6px 5px rgba(27, 35, 66, 0.35));
}

.mb-exhibits img:nth-child(odd) {
  transform: rotate(-8deg);
}

.mb-exhibits img:nth-child(even) {
  transform: rotate(7deg) translateY(6px);
}

.mb-find input {
  width: 240px;
  max-width: 100%;
}

.mb-scroll th a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mb-scroll th a:hover span {
  background: var(--marker);
}

.mb-scroll td {
  font: 500 16px/1.5 var(--f-num);
  vertical-align: middle;
}

.mb-scroll td:nth-child(2) {
  font: 400 13.5px/1.5 var(--f-sans);
}

.mb-scroll td b {
  font-size: 19px;
  font-weight: 600;
}

.mb-gain {
  color: var(--meadow);
  font-weight: 600 !important;
}

.mb-foot,
.ev-foot {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ───── 活動日曆 ───── */

.ev-toolbar {
  justify-content: space-between;
}

.ev-intro {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ev-version {
  padding: 4px 14px;
  font: 900 15px/1.5 var(--f-serif);
  color: #fff;
  background: var(--seal);
  border-radius: 8px;
  transform: rotate(-3deg);
}

.ev-timezone {
  font: 400 14px/1 var(--f-hand);
  color: var(--ink-3);
}

.ev-heading {
  font-size: 19px;
  margin: 24px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--ink);
}

.ev-day {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.ev-stamp {
  display: grid;
  justify-items: center;
  align-content: start;
  height: 70px;
  color: #1c2743;
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid #1c2743;
  overflow: hidden;
  box-shadow: 3px 4px 0 var(--line);
}

.ev-stamp span {
  order: -1;
  width: 100%;
  text-align: center;
  font: 500 11px/20px var(--f-sans);
  color: #fff;
  background: var(--seal);
}

.ev-stamp strong {
  font: 700 36px/46px var(--f-num);
}

.ev-row {
  border-bottom: 1px dashed var(--line);
}

.ev-items .ev-row:last-child {
  border-bottom: 0;
}

.ev-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
}

.ev-summary:hover {
  background: var(--marker);
}

.ev-kind {
  padding: 2px 10px;
  font-size: 12px;
  color: var(--teal);
  border: 1.5px solid currentColor;
  border-radius: 99px;
  white-space: nowrap;
}

.ev-kind.ev-deadline {
  color: var(--coral);
}

.ev-title {
  font-weight: 700;
}

.ev-meta {
  font: 500 13.5px/1.4 var(--f-num);
  color: var(--ink-3);
  white-space: nowrap;
}

.ev-plus {
  text-align: center;
  color: var(--ink-3);
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.ev-row[open] .ev-plus {
  transform: rotate(135deg);
}

.ev-body {
  padding: 4px 12px 16px 18px;
  margin-left: 12px;
  border-left: 3px solid var(--sun);
  line-height: 1.8;
}

.ev-times {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  margin: 0 0 6px;
}

.ev-times dt {
  font-size: 12.5px;
  color: var(--ink-3);
}

.ev-times dd {
  margin: 0;
  font: 500 14.5px/1.7 var(--f-num);
}

.ev-gifts {
  margin-top: 6px;
  color: var(--sun-deep);
  font-weight: 500;
}

/* ───── 因子、天賦 ───── */

.hb-filter input {
  width: 230px;
  max-width: 100%;
}

.hb-records {
  display: grid;
  gap: 14px;
}

.hb-record {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--tt, var(--azure));
  border-radius: var(--leaf-s);
}

.hb-record > div:first-child small {
  font-size: 12px;
  color: var(--tt, var(--azure));
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hb-record h2 {
  font-size: 19px;
  margin: 2px 0 6px;
}

.hb-pet {
  display: inline-block;
  margin: 2px 6px 2px 0;
  padding: 1px 10px;
  font-size: 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--card);
}

.hb-pet:hover {
  background: var(--sun);
  color: #1c2743;
  border-color: transparent;
}

.hb-tiers {
  display: grid;
  gap: 8px;
}

.hb-tiers > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
}

.hb-tiers p {
  line-height: 1.75;
}

.hb-tiers details {
  grid-column: 2;
}

.hb-tiers summary {
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink-2);
}

.hb-tiers summary::before {
  width: 18px;
  height: 18px;
  font-size: 11px;
}

.hb-pets {
  padding: 4px 0 6px;
}

.hb-tag {
  justify-self: start;
  padding: 2px 9px;
  font: 600 12.5px/1.5 var(--f-num);
  color: var(--ink);
  background: var(--marker);
  border-radius: 6px;
  white-space: nowrap;
}

/* ───── 影片庫：底片格 ───── */

.hb-films {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px 18px;
}

.hb-film {
  display: grid;
  gap: 2px;
  transition: transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.hb-film:hover {
  transform: translateY(-6px) rotate(-0.8deg);
}

.hb-film > div {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  padding: 13px 0;
  background:
    radial-gradient(circle, #fff 2.6px, transparent 3.1px) 4px 1px / 14px 11px repeat-x,
    radial-gradient(circle, #fff 2.6px, transparent 3.1px) 4px calc(100% - 1px) / 14px 11px repeat-x,
    #161a33;
  border-radius: 5px;
  box-shadow: 0 14px 22px -14px rgba(20, 28, 70, 0.7);
  overflow: hidden;
}

.hb-film img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hb-film > div::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  color: #1c2743;
  background: var(--sun);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.3, 1.7, 0.5, 1);
}

.hb-film:hover > div::after {
  transform: scale(1);
}

.hb-film b {
  position: absolute;
  right: 8px;
  bottom: 18px;
  padding: 1px 7px;
  font: 600 13px/1.4 var(--f-num);
  color: #fff;
  background: rgba(15, 18, 40, 0.78);
  border-radius: 4px;
}

.hb-film small {
  font-size: 12px;
  color: var(--ink-3);
}

.hb-film h2 {
  font: 500 15px/1.45 var(--f-sans);
}

.hb-next {
  margin-top: 26px;
  text-align: center;
}

.hb-player h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 12px 0 4px;
}

.hb-player > p {
  font: 500 14px/1.6 var(--f-num);
  color: var(--ink-3);
  margin-bottom: 14px;
}

.hb-player video {
  display: block;
  width: 100%;
  max-height: 74vh;
  background: #0b0e22;
  border-radius: 6px;
  border: 10px solid #161a33;
}

.hb-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 14px;
}

.hb-play-state {
  display: block;
  margin-top: 8px;
  color: var(--coral);
}

/* ───── 實驗室（內嵌工作區） ───── */

.atlas-lab-pane {
  display: grid;
  gap: 12px;
}

.atlas-lab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.atlas-lab-bar p {
  font: 400 15px/1.5 var(--f-hand);
  color: var(--ink-2);
}

.atlas-lab-bar button {
  flex: none;
  min-height: 36px;
  padding: 0 15px;
  font-size: 13.5px;
  border: 1.5px solid var(--ink);
  border-radius: var(--leaf-s);
  background: var(--card);
}

.atlas-lab-bar button:hover {
  background: var(--sun);
  color: #1c2743;
}

.atlas-lab-pane iframe {
  display: block;
  width: 100%;
  height: max(640px, calc(100vh - 250px));
  border: 0;
  border-radius: 14px;
  background: var(--card);
  box-shadow:
    0 0 0 1px var(--line),
    var(--shade);
}

.atlas-lab-expanded {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 12px;
  background: var(--paper);
  grid-template-rows: auto 1fr auto;
}

.atlas-lab-expanded iframe {
  height: 100%;
}

.atlas-lab-credit p {
  padding: 0 16px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
}

.atlas-lab-credit a {
  display: inline-block;
  margin: 6px 16px 14px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .ft-atlas {
    grid-template-columns: 1fr;
  }

  .ft-map-view {
    height: 62vh;
  }

  .ft-groups {
    grid-template-columns: 1fr;
  }

  .cp-level {
    grid-template-columns: 1fr;
  }

  .cp-voices li {
    grid-template-columns: 1fr;
  }

  .cp-voices li > span,
  .cp-transcript {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }

  .cp-tuning,
  .hb-record {
    grid-template-columns: 1fr;
  }

  .ft-offer {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .ft-offer > span {
    grid-column: 2;
    text-align: left;
  }

  .ft-offer button {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .mb-exhibits {
    display: none;
  }

  .ev-day {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .ev-summary {
    grid-template-columns: auto minmax(0, 1fr) 24px;
  }

  .ev-meta {
    grid-column: 2;
  }
}

/* 工具頁首已有說明，內嵌區不再重複 */
.tool-page .atlas-lab-bar p {
  visibility: hidden;
}

[data-sky="night"] .cp-level {
  background: var(--card-2);
}

/* 影片庫：有聲／無聲標示 */
.hb-snd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px 0 6px;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  color: #c9d1e6;
  background: rgba(18, 25, 54, 0.82);
  border-radius: 6px;
  vertical-align: middle;
}

.hb-snd svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hb-snd svg .wave,
.hb-snd svg .cross {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.hb-snd svg .wave,
.hb-snd.on svg .cross {
  display: none;
}

.hb-snd.on svg .wave {
  display: inline;
}

.hb-snd.on {
  color: #1c2743;
  background: #ffcc33;
}

.hb-film > div .hb-snd {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 18px;
}

.hb-mute-note {
  margin: 0 0 12px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--sun) 16%, var(--card));
  border-left: 4px solid var(--sun);
  border-radius: 8px;
}

.ev-refs a {
  color: var(--azure-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
