:root {
  --ink: #352416;
  --ink-soft: #765d42;
  --paper: #e7ca8d;
  --paper-light: #fff0c7;
  --paper-pale: #fff7df;
  --paper-deep: #d8aa5a;
  --sea: #087f9a;
  --sea-bright: #10a3b7;
  --sea-dark: #06364d;
  --sea-deep: #02283b;
  --red: #c84135;
  --gold: #e5ae37;
  --green: #3f795c;
  --purple: #765584;
  --line: rgba(83, 53, 24, 0.28);
  --line-soft: rgba(83, 53, 24, 0.13);
  --shadow: 0 22px 58px rgba(72, 45, 18, 0.2);
  --label-width: 180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 11% 8%, rgba(255, 247, 207, 0.66), transparent 31rem),
    radial-gradient(circle at 88% 38%, rgba(11, 127, 154, 0.12), transparent 34rem),
    repeating-linear-gradient(4deg, rgba(87, 52, 20, 0.025) 0 1px, transparent 1px 6px),
    var(--paper);
  font-family:
    Inter, "Hiragino Sans", "Yu Gothic", YuGothic, system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(75, 45, 19, 0.08) 0 1px, transparent 1.6px),
    radial-gradient(circle at 76% 64%, rgba(255, 250, 219, 0.22) 0 1px, transparent 1.6px);
  background-size: 19px 23px, 31px 37px;
  content: "";
  opacity: 0.55;
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

.app-shell {
  min-height: 100vh;
  overflow-x: clip;
  overflow-y: visible;
}

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: #fff5d3;
  background:
    linear-gradient(180deg, rgba(1, 28, 43, 0.04), rgba(1, 38, 55, 0.54)),
    repeating-linear-gradient(122deg, transparent 0 72px, rgba(255, 255, 255, 0.028) 72px 74px),
    linear-gradient(124deg, #079bb0 0%, #087a98 45%, #064d6d 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  border: 2px dashed rgba(255, 240, 192, 0.18);
  border-radius: 50%;
  content: "";
}

.hero::before {
  width: 520px;
  height: 520px;
  top: -330px;
  right: -70px;
}

.hero::after {
  width: 690px;
  height: 690px;
  right: -230px;
  bottom: -610px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-inline: auto;
  padding: 28px clamp(18px, 2vw, 34px) 90px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 3px double #f5cf6b;
  border-radius: 50%;
  background: #f2dc9e;
  box-shadow: 0 4px 0 rgba(3, 39, 54, 0.4);
}

.brand-mark::before {
  width: 7px;
  height: 29px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(to bottom, var(--red) 0 50%, var(--sea-dark) 50%);
  content: "";
  transform: rotate(38deg);
}

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

.brand small {
  color: rgba(255, 245, 209, 0.64);
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.brand strong {
  margin-top: 1px;
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: 17px;
  letter-spacing: 0.14em;
}

.edition-stamp {
  padding: 8px 13px;
  border: 2px dashed rgba(255, 238, 183, 0.66);
  color: #ffefbd;
  background: rgba(3, 48, 68, 0.24);
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transform: rotate(-1.4deg);
}

.hero-copy {
  max-width: 920px;
  margin-top: 54px;
}

.eyebrow,
.section-kicker,
.detail-kicker {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.eyebrow {
  display: inline-block;
  padding: 7px 14px 7px 11px;
  color: #fff7db;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  box-shadow: 5px 5px 0 rgba(2, 36, 52, 0.28);
}

.hero h1 {
  margin: 18px 0 0;
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  text-shadow:
    2px 3px 0 rgba(4, 42, 58, 0.72),
    5px 7px 0 rgba(4, 42, 58, 0.2);
}

.hero h1 span {
  color: #ffd15d;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 6px;
  text-underline-offset: 9px;
}

.hero-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 247, 219, 0.86);
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 600;
  line-height: 1.9;
  text-shadow: 1px 2px 0 rgba(2, 33, 49, 0.34);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 34px 0 0;
}

.hero-stats div {
  min-width: 145px;
  padding: 0 24px;
  border-left: 1px solid rgba(255, 239, 190, 0.28);
}

.hero-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats dt {
  color: rgba(255, 243, 207, 0.58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: #fff1bd;
  font-size: 12px;
  font-weight: 700;
}

.hero-stats b {
  margin-right: 3px;
  font-family: Georgia, serif;
  font-size: 23px;
}

.hero-map {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  margin-inline: auto;
  pointer-events: none;
}

.hero-compass {
  position: absolute;
  top: 124px;
  right: clamp(36px, 9vw, 150px);
  display: grid;
  width: 178px;
  height: 178px;
  place-items: center;
  border: 8px solid rgba(255, 239, 188, 0.72);
  border-radius: 50%;
  background: #f6c74c;
  box-shadow: 0 0 0 13px rgba(247, 201, 79, 0.14), 0 15px 0 rgba(4, 54, 74, 0.22);
  transform: rotate(6deg);
}

.hero-compass::before,
.hero-compass::after {
  position: absolute;
  width: 212px;
  border-top: 2px dashed rgba(255, 239, 188, 0.5);
  content: "";
}

.hero-compass::after {
  transform: rotate(90deg);
}

.hero-compass i {
  width: 28px;
  height: 98px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--sea-dark) 50%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.hero-route {
  position: absolute;
  border-top: 3px dashed rgba(255, 240, 192, 0.5);
}

.hero-route::before,
.hero-route::after {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -7px;
  border: 2px solid #fff0bd;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.hero-route::before { left: 0; }
.hero-route::after { right: 0; }

.hero-route-a {
  width: 280px;
  right: 21%;
  bottom: 84px;
  transform: rotate(-8deg);
}

.hero-route-b {
  width: 155px;
  right: 8%;
  bottom: 116px;
  transform: rotate(14deg);
}

.hero-coordinate {
  position: absolute;
  right: clamp(20px, 6vw, 100px);
  bottom: 36px;
  color: rgba(255, 239, 190, 0.58);
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.wave-edge {
  position: absolute;
  z-index: 3;
  height: 42px;
  right: 0;
  bottom: -1px;
  left: 0;
  background:
    radial-gradient(circle at 26px -5px, transparent 28px, var(--paper) 29px 32px, transparent 33px)
    0 0 / 52px 42px repeat-x;
}

.main-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: none;
  margin: -54px auto 0;
  padding: 0 clamp(8px, 1vw, 16px) 64px;
}

.control-deck {
  position: relative;
  z-index: 10;
  padding: 20px 22px 18px;
  border: 6px solid transparent;
  background:
    linear-gradient(rgba(249, 230, 183, 0.985), rgba(242, 215, 157, 0.985)) padding-box,
    repeating-linear-gradient(45deg, #633d21 0 5px, #d69a34 5px 10px) border-box;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(104, 64, 28, 0.16);
}

.scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 2px dashed rgba(87, 55, 25, 0.22);
}

.scope-tabs button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(82, 52, 24, 0.34);
  background: rgba(255, 242, 205, 0.55);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.scope-tabs button[aria-selected="true"] {
  color: #fff4cc;
  border-color: var(--sea-dark);
  background: var(--sea-dark);
  box-shadow: 3px 3px 0 rgba(80, 50, 22, 0.22);
}

.control-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.breadcrumb button {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px dashed currentColor;
  background: transparent;
  cursor: pointer;
}

.breadcrumb span {
  opacity: 0.55;
}

.control-heading h2 {
  margin: 5px 0 0;
  color: #50331e;
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-shadow: 1px 1px 0 rgba(255, 248, 220, 0.8);
}

.control-heading p {
  margin: 7px 0 0;
  color: #765a3a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
}

.depth-stamp {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 2px solid var(--red);
  color: var(--red);
  background: rgba(255, 239, 194, 0.58);
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: rotate(1.4deg);
}

.search-area {
  position: relative;
  margin-top: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  min-height: 50px;
  border: 2px solid rgba(87, 57, 28, 0.38);
  background:
    repeating-linear-gradient(0deg, rgba(99, 64, 28, 0.035) 0 1px, transparent 1px 5px),
    #fff1ca;
  box-shadow: inset 3px 3px 0 rgba(93, 59, 27, 0.07);
}

.search-box > span {
  padding-left: 15px;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.search-box input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.search-box kbd {
  margin-right: 12px;
  padding: 3px 7px;
  border: 1px solid rgba(83, 53, 24, 0.24);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.36);
  font-size: 10px;
}

.search-results {
  position: absolute;
  z-index: 30;
  width: 100%;
  max-height: min(520px, 62vh);
  top: calc(100% + 6px);
  overflow-y: auto;
  border: 2px solid #5d3a20;
  background: #fff3cf;
  box-shadow: 0 24px 60px rgba(44, 27, 13, 0.3);
}

.search-result,
.search-empty {
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-top: 1px dashed rgba(83, 53, 24, 0.22);
  text-align: left;
  background: transparent;
}

.search-result:first-child {
  border-top: 0;
}

.search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  cursor: pointer;
}

.search-result:hover,
.search-result:focus-visible {
  background: rgba(8, 127, 154, 0.1);
}

.search-result strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.search-result small {
  color: var(--ink-soft);
  font-size: 10px;
}

.search-result-summary {
  display: -webkit-box;
  grid-column: 1 / -1;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 14px;
  margin-top: 14px;
}

.compact-field {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.compact-field > span {
  color: #6c4b2f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.compact-field select,
.compact-field input {
  min-height: 40px;
  border: 1px solid rgba(82, 52, 24, 0.34);
  border-radius: 0;
  color: var(--ink);
  background: #fff1cc;
  font-size: 12px;
}

.compact-field select {
  min-width: 170px;
  padding: 0 30px 0 10px;
}

.spoiler-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: auto;
  padding: 6px 9px;
  border: 1px solid rgba(82, 52, 24, 0.34);
  background: rgba(255, 241, 204, 0.58);
}

.spoiler-field input {
  width: 76px;
  min-height: 28px;
  padding: 0 7px;
  text-align: right;
  background: #fff7df;
}

.spoiler-field small {
  color: var(--ink-soft);
  font-size: 10px;
}

.reset-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px dashed rgba(82, 52, 24, 0.48);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.timeline-card {
  margin-top: 18px;
  overflow: visible;
  border: 3px solid #604127;
  background: #f5dfaa;
  box-shadow: 0 18px 48px rgba(75, 46, 20, 0.22), inset 0 0 0 3px #d4a356;
}

.timeline-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 24px 18px;
  border-bottom: 2px solid #76502e;
  background:
    linear-gradient(90deg, rgba(199, 62, 49, 0.09), transparent 34%),
    repeating-linear-gradient(4deg, rgba(91, 54, 23, 0.035) 0 1px, transparent 1px 7px),
    #f7e4b7;
}

.section-kicker {
  color: var(--red);
}

.timeline-intro h3 {
  margin: 5px 0 0;
  color: #56341d;
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: 22px;
}

.timeline-intro h3::before {
  margin-right: 8px;
  color: var(--red);
  content: "✦";
}

.timeline-intro p:not(.section-kicker) {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: #765b3c;
  font-size: 10px;
  font-weight: 700;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  display: inline-block;
}

.legend-event {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--red);
}

.legend-route {
  width: 24px;
  border-top: 3px solid var(--sea);
}

.legend-draft {
  width: 18px;
  height: 8px;
  border: 1px dashed var(--ink-soft);
}

.timeline-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #82572f #ead199;
  scrollbar-width: thin;
}

.timeline-scroll:focus-visible {
  outline: 4px solid rgba(8, 127, 154, 0.45);
  outline-offset: -4px;
}

.timeline-stage {
  position: relative;
}

.timeline-sticky-axis {
  position: sticky;
  z-index: 24;
  top: 0;
  display: grid;
  grid-template-columns: var(--label-width) minmax(0, 1fr);
  min-height: 62px;
  border-bottom: 1px solid rgba(247, 209, 130, 0.24);
  background: #442d1c;
  box-shadow: 0 9px 18px rgba(54, 34, 18, 0.24);
  isolation: isolate;
}

.timeline-sticky-axis[hidden] {
  display: none !important;
}

.axis-viewport {
  min-width: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(3deg, rgba(255, 224, 160, 0.04) 0 2px, transparent 2px 8px),
    linear-gradient(#654326, #442d1c);
}

.timeline-board {
  position: relative;
  width: 1500px;
  min-width: 100%;
  isolation: isolate;
}

.timeline-lane {
  display: grid;
  grid-template-columns: var(--label-width) 1fr;
}

.axis-label,
.axis-marks {
  min-height: 62px;
  color: #f8dda0;
  background:
    repeating-linear-gradient(3deg, rgba(255, 224, 160, 0.04) 0 2px, transparent 2px 8px),
    linear-gradient(#654326, #442d1c);
}

.axis-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 19px;
  border-right: 1px solid rgba(247, 209, 130, 0.34);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-shadow: 1px 2px 0 rgba(20, 12, 6, 0.45);
}

.axis-marks {
  display: grid;
  height: 100%;
  will-change: transform;
}

.axis-marks.is-positioned-axis {
  position: relative;
  display: block;
}

.axis-marks.is-positioned-axis .axis-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: max-content;
  max-width: 170px;
}

.axis-marks.is-positioned-axis .axis-mark[data-kind="break"],
.axis-marks.is-positioned-axis .axis-mark[data-kind="scale-break"] {
  border-left: 2px dashed rgba(255, 221, 148, 0.72);
  color: #ffe7a4;
}

.axis-mark {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 10px;
  border-left: 1px solid rgba(247, 209, 130, 0.2);
  font-size: 10px;
  font-weight: 700;
}

.axis-mark::after {
  position: absolute;
  width: 7px;
  height: 7px;
  bottom: 6px;
  left: -4px;
  border: 1px solid #5a351b;
  border-radius: 50%;
  background: #f2be49;
  box-shadow: 0 0 0 2px rgba(245, 218, 151, 0.2);
  content: "";
}

.timeline-lane {
  min-height: 116px;
  border-top: 1px solid rgba(91, 61, 30, 0.27);
}

.lane-label {
  position: sticky;
  z-index: 8;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  border-right: 2px solid rgba(91, 61, 30, 0.27);
  background:
    linear-gradient(90deg, rgba(202, 64, 49, 0.07), transparent),
    repeating-linear-gradient(4deg, rgba(91, 54, 23, 0.035) 0 1px, transparent 1px 6px),
    #f6e1ad;
}

.lane-label strong {
  color: #52341f;
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: 13px;
  line-height: 1.35;
}

.lane-label strong::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border: 2px solid var(--red);
  border-radius: 50%;
  content: "";
}

.lane-label span {
  margin-top: 4px;
  color: #856a49;
  font-size: 9px;
}

.lane-track {
  position: relative;
  min-height: inherit;
  background-color: #efd7a4;
  background-image:
    linear-gradient(to right, rgba(88, 58, 27, 0.2) 1px, transparent 1px),
    radial-gradient(ellipse at 23% 44%, transparent 0 28px, rgba(8, 126, 155, 0.07) 29px 30px, transparent 31px),
    radial-gradient(ellipse at 76% 65%, transparent 0 37px, rgba(8, 126, 155, 0.06) 38px 39px, transparent 40px);
  background-size: calc(100% / var(--marker-count, 8)) 100%, 190px 120px, 260px 150px;
}

.lane-track::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 2px dashed rgba(89, 57, 27, 0.11);
  content: "";
}

.route-canvas {
  position: absolute;
  z-index: 3;
  top: 0;
  left: var(--label-width);
  width: calc(100% - var(--label-width));
  height: 100%;
  pointer-events: none;
}

.event-card {
  --accent: var(--red);
  position: absolute;
  z-index: 5;
  width: 176px;
  min-height: 66px;
  left: var(--x);
  top: var(--y);
  padding: 11px 12px 10px;
  border: 1px solid #725033;
  border-radius: 0;
  text-align: left;
  background:
    repeating-linear-gradient(0deg, rgba(92, 59, 27, 0.028) 0 1px, transparent 1px 5px),
    #fff1c8;
  box-shadow: 4px 5px 0 rgba(94, 60, 27, 0.18), 0 9px 19px rgba(72, 45, 20, 0.09);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.event-card::after {
  position: absolute;
  width: 30px;
  height: 6px;
  top: 3px;
  right: 6px;
  background: rgba(203, 155, 78, 0.28);
  content: "";
  transform: rotate(1.5deg);
}

.event-card:hover,
.event-card:focus-visible {
  z-index: 7;
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 5px 7px 0 rgba(94, 60, 27, 0.23), 0 13px 26px rgba(72, 45, 20, 0.16);
  transform: translate(-50%, calc(-50% - 3px));
}

.event-card[aria-pressed="true"] {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.event-accent {
  position: absolute;
  width: 9px;
  height: 9px;
  top: 10px;
  left: 10px;
  background: var(--accent);
  transform: rotate(45deg);
}

.event-time,
.event-title,
.event-extra {
  display: block;
}

.event-time {
  padding-left: 16px;
  color: #7a5937;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.event-title {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: #422a18;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-extra {
  margin-top: 5px;
  color: #8a6b4a;
  font-size: 8px;
}

.event-card.is-spoiler .event-title {
  color: #7c6447;
}

.event-card.is-draft {
  border-style: dashed;
}

.mobile-event-list {
  display: none;
}

.timeline-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 22px;
  border-top: 2px solid #76502e;
  color: #725638;
  background: rgba(244, 226, 180, 0.82);
  font-size: 10px;
  line-height: 1.55;
}

.timeline-footer span:first-child {
  color: var(--red);
  font-weight: 900;
}

.undated-action {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px dashed #725033;
  border-radius: 0;
  color: #5b3a24;
  background: #f6dfaa;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.undated-action:hover,
.undated-action:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 2px;
  background: #fff0c4;
}

.undated-action[hidden] {
  display: none !important;
}

.swipe-hint {
  display: none;
}

.empty-board {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 30px;
  color: var(--ink-soft);
  text-align: center;
}

.data-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
  padding: 17px 19px;
  border-top: 2px solid rgba(84, 53, 24, 0.32);
  border-bottom: 2px solid rgba(84, 53, 24, 0.32);
  background: rgba(250, 228, 177, 0.56);
}

.data-note strong {
  color: var(--red);
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: 12px;
}

.data-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 5vw, 76px);
  color: rgba(255, 244, 210, 0.62);
  background: var(--sea-deep);
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.detail-dialog {
  width: min(780px, calc(100vw - 28px));
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: visible;
  border: 0;
  color: #fff4d1;
  background: transparent;
}

.detail-dialog::backdrop {
  background: rgba(2, 24, 35, 0.72);
  backdrop-filter: blur(5px) saturate(0.72);
}

.detail-sheet {
  position: relative;
  max-height: min(88vh, 900px);
  overflow-y: auto;
  border: 3px solid #f0c965;
  background:
    repeating-linear-gradient(4deg, rgba(255, 236, 177, 0.025) 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #07516b, #032e46 72%);
  box-shadow: 0 35px 110px rgba(0, 11, 18, 0.55), inset 0 0 0 5px rgba(3, 28, 42, 0.36);
}

.detail-sheet::before {
  position: absolute;
  width: 170px;
  height: 170px;
  right: -76px;
  top: -76px;
  border: 2px dashed rgba(255, 224, 142, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.detail-close {
  position: sticky;
  z-index: 5;
  display: grid;
  width: 44px;
  height: 44px;
  top: 18px;
  float: right;
  margin: 18px 18px 0 0;
  place-items: center;
  border: 2px solid rgba(255, 235, 177, 0.62);
  border-radius: 50%;
  color: #fff0bd;
  background: #052d43;
  font-size: 22px;
  cursor: pointer;
}

.detail-close:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.tag-button:focus-visible,
.relation-button:focus-visible,
.hierarchy-button:focus-visible {
  outline: 3px solid #fff1b8;
  outline-offset: 3px;
}

.detail-header,
.detail-summary,
.spoiler-mask,
.detail-facts,
.detail-section,
.detail-actions {
  margin-inline: clamp(22px, 5vw, 46px);
}

.detail-header {
  padding-top: 38px;
}

.detail-kicker {
  color: var(--gold);
}

.detail-header h2 {
  max-width: calc(100% - 54px);
  margin: 11px 0 0;
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.detail-meta span,
.detail-tags span,
.tag-button {
  padding: 6px 9px;
  border: 1px solid rgba(255, 239, 194, 0.18);
  border-radius: 999px;
  color: rgba(255, 245, 213, 0.78);
  background: rgba(255, 255, 255, 0.055);
  font-size: 10px;
}

.detail-summary,
.spoiler-mask {
  margin-top: 22px;
  color: rgba(255, 247, 220, 0.84);
  font-size: 14px;
  line-height: 1.95;
}

.spoiler-mask {
  padding: 16px;
  border: 1px dashed rgba(255, 225, 144, 0.52);
  color: #ffe6a3;
  background: rgba(200, 65, 53, 0.18);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 23px;
  border: 1px solid rgba(255, 239, 194, 0.12);
  background: rgba(255, 239, 194, 0.12);
}

.detail-fact {
  padding: 13px 14px;
  background: rgba(2, 36, 54, 0.74);
}

.detail-fact dt {
  color: rgba(255, 238, 187, 0.46);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.detail-fact dd {
  margin: 4px 0 0;
  color: #fff1c0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.detail-section {
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 239, 194, 0.13);
}

.detail-section h3 {
  margin: 0 0 12px;
  color: rgba(255, 239, 194, 0.5);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-button {
  cursor: pointer;
}

.tag-button:hover {
  color: #072c42;
  background: #f1c95f;
}

.claim-list,
.relation-list,
.source-list,
.hierarchy-list {
  display: grid;
  gap: 8px;
}

.claim-item,
.source-item,
.relation-button,
.hierarchy-button {
  padding: 12px 13px;
  border: 1px solid rgba(255, 239, 194, 0.13);
  color: rgba(255, 247, 220, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  line-height: 1.65;
}

.claim-item strong,
.source-item strong {
  color: #f3c75c;
}

.relation-button,
.hierarchy-button {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  text-align: left;
  cursor: pointer;
}

.relation-button:hover,
.hierarchy-button:hover {
  background: rgba(255, 226, 145, 0.1);
}

.relation-button b,
.hierarchy-button b {
  color: #f3c75c;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.relation-button span,
.hierarchy-button span {
  min-width: 0;
}

.relation-button small {
  grid-column: 2;
  color: rgba(255, 247, 220, 0.52);
  line-height: 1.5;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(255, 239, 194, 0.13);
}

.primary-action,
.secondary-action {
  min-height: 46px;
  padding: 11px 16px;
  border: 0;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.primary-action {
  color: var(--sea-deep);
  background: var(--gold);
}

.secondary-action {
  border: 1px solid rgba(255, 239, 194, 0.32);
  color: #fff1bf;
  background: transparent;
}

.noscript {
  margin: 0;
  padding: 20px;
  color: white;
  background: var(--red);
  text-align: center;
}

@media (max-width: 1000px) {
  .hero-compass,
  .hero-route,
  .hero-coordinate {
    opacity: 0.38;
  }

  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --label-width: 142px;
  }

  .hero {
    min-height: 390px;
  }

  .hero-inner {
    padding: 21px 18px 80px;
  }

  .edition-stamp {
    max-width: 126px;
    text-align: center;
    line-height: 1.4;
  }

  .brand small {
    display: none;
  }

  .hero-copy {
    margin-top: 46px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .hero-lead {
    max-width: 92%;
  }

  .hero-stats div {
    min-width: 50%;
    padding: 8px 14px;
  }

  .hero-stats div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-compass {
    width: 130px;
    height: 130px;
    top: 120px;
    right: -28px;
  }

  .hero-compass::before,
  .hero-compass::after {
    width: 155px;
  }

  .hero-compass i {
    height: 70px;
  }

  .main-content {
    margin-top: -46px;
    padding-inline: 8px;
  }

  .control-deck {
    padding: 16px 14px;
    border-width: 5px;
  }

  .control-heading {
    flex-direction: column;
    gap: 10px;
  }

  .scope-tabs button {
    flex: 1 1 30%;
    padding-inline: 7px;
    font-size: 10px;
  }

  .search-box kbd {
    display: none;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .compact-field,
  .compact-field select {
    width: 100%;
    min-width: 0;
  }

  .spoiler-field {
    display: flex;
    width: 100%;
  }

  .reset-button {
    width: 100%;
  }

  .timeline-intro {
    flex-direction: column;
    padding: 17px;
  }

  .legend {
    justify-content: flex-start;
  }

  .timeline-scroll {
    display: none;
  }

  .timeline-sticky-axis {
    display: none;
  }

  .mobile-event-list {
    display: grid;
    gap: 0;
  }

  .mobile-lane-title {
    position: sticky;
    z-index: 3;
    top: 0;
    padding: 10px 15px;
    border-top: 2px solid #644325;
    border-bottom: 1px solid rgba(89, 57, 27, 0.3);
    color: #f8dda0;
    background: #50351f;
    font-family: Georgia, "Yu Mincho", YuMincho, serif;
    font-size: 11px;
  }

  .mobile-event {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 7px 11px;
    min-height: 66px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px dashed rgba(83, 53, 24, 0.3);
    text-align: left;
    background: #f6dfaa;
    cursor: pointer;
  }

  .mobile-event::before {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    background: var(--accent, var(--red));
    content: "";
    transform: rotate(45deg);
  }

  .mobile-event time {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-left: 15px;
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 900;
  }

  .mobile-event strong {
    grid-column: 2;
    font-size: 12px;
    line-height: 1.45;
  }

  .mobile-event small {
    grid-column: 2;
    color: var(--ink-soft);
    font-size: 9px;
  }

  .mobile-event b {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--red);
  }

  .mobile-event:focus-visible {
    z-index: 2;
    outline: 3px solid var(--sea);
    outline-offset: -3px;
  }

  .timeline-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 16px;
  }

  .undated-action {
    width: 100%;
    text-align: left;
  }

  .swipe-hint {
    display: none;
  }

  .data-note {
    grid-template-columns: 1fr;
  }

  .detail-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .detail-sheet {
    max-height: calc(100vh - 18px);
  }

  .detail-header,
  .detail-summary,
  .spoiler-mask,
  .detail-facts,
  .detail-section,
  .detail-actions {
    margin-inline: 19px;
  }

  .detail-header h2 {
    font-size: 29px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .hero-stats div {
    min-width: 50%;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .scope-tabs button {
    flex-basis: 100%;
  }

  .search-result {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Clarity pass: start from chronology, then reveal detail only when needed. */
.hero {
  min-height: 270px;
}

.hero-inner {
  padding-top: 22px;
  padding-bottom: 58px;
}

.hero-copy {
  max-width: 1050px;
  margin-top: 28px;
}

.hero h1 {
  margin-top: 13px;
  font-size: clamp(34px, 4.8vw, 60px);
  letter-spacing: -0.045em;
}

.hero h1 span {
  text-decoration-thickness: 4px;
  text-underline-offset: 7px;
}

.hero-lead {
  max-width: 900px;
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.75;
}

.hero-stats {
  display: none;
}

.hero-compass {
  width: 112px;
  height: 112px;
  top: 104px;
  right: clamp(26px, 7vw, 110px);
  border-width: 5px;
  opacity: 0.42;
}

.hero-compass::before,
.hero-compass::after {
  width: 134px;
}

.hero-compass i {
  width: 20px;
  height: 62px;
}

.hero-route,
.hero-coordinate {
  opacity: 0.25;
}

.main-content {
  margin-top: -22px;
}

.control-deck {
  padding: 17px 20px 18px;
  border-width: 4px;
}

.control-heading {
  margin-top: 14px;
}

.control-heading h2 {
  font-size: clamp(25px, 2.6vw, 34px);
}

.depth-stamp {
  display: none;
  transform: none;
}

.reading-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0 0;
  padding: 0;
  border: 1px solid rgba(82, 52, 24, 0.25);
  background: rgba(82, 52, 24, 0.18);
  list-style: none;
}

.reading-guide li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 12px;
  color: #806448;
  background: rgba(255, 242, 205, 0.7);
  font-size: 10px;
  font-weight: 800;
}

.reading-guide b {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
}

.reading-guide li[aria-current="step"] {
  color: #fff2c2;
  background: var(--sea-dark);
}

.view-tools {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.7fr);
  margin-top: 12px;
  border: 1px solid rgba(82, 52, 24, 0.3);
  background:
    repeating-linear-gradient(3deg, rgba(94, 59, 25, 0.025) 0 1px, transparent 1px 6px),
    rgba(255, 240, 199, 0.56);
}

.axis-switcher,
.character-switcher {
  min-width: 0;
  padding: 13px;
}

.axis-switcher {
  border-right: 1px dashed rgba(82, 52, 24, 0.3);
}

.tool-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.tool-heading small,
.tool-heading strong {
  display: block;
}

.tool-heading small {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.tool-heading strong {
  margin-top: 3px;
  color: #56351f;
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: 12px;
}

.character-heading > span:last-child {
  color: #765a3a;
  font-size: 9px;
  font-weight: 800;
}

.axis-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}

.axis-options button {
  min-height: 43px;
  padding: 7px 6px;
  border: 1px solid rgba(82, 52, 24, 0.42);
  border-radius: 0;
  color: #65452d;
  background: #f6dfaa;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.axis-options button[aria-pressed="true"] {
  color: #fff1c5;
  border-color: var(--sea-dark);
  background: var(--sea-dark);
  box-shadow: 3px 3px 0 rgba(80, 50, 22, 0.22);
}

.axis-options button:focus-visible,
.character-cut:focus-visible {
  outline: 3px solid var(--sea-bright);
  outline-offset: 2px;
}

.character-cuts {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  padding: 2px 2px 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #82572f #ead199;
  scrollbar-width: thin;
}

.character-cut {
  position: relative;
  display: grid;
  width: 86px;
  min-width: 86px;
  min-height: 108px;
  align-content: start;
  padding: 7px 7px 8px;
  overflow: hidden;
  border: 1px solid #725033;
  border-radius: 0;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, rgba(92, 59, 27, 0.03) 0 1px, transparent 1px 5px),
    #fff0c5;
  box-shadow: 3px 4px 0 rgba(94, 60, 27, 0.15);
  cursor: pointer;
}

.character-cut::after {
  position: absolute;
  width: 25px;
  height: 5px;
  top: 4px;
  right: 4px;
  background: rgba(203, 155, 78, 0.28);
  content: "";
  transform: rotate(2deg);
}

.character-wanted {
  color: #8b5b31;
  font-family: Georgia, serif;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.character-portrait {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  margin: 4px auto 5px;
  place-items: center;
  border: 2px solid #5a3a24;
  border-radius: 50%;
  color: #fff3ce;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.3), transparent 24%),
    var(--portrait-color);
  box-shadow: inset 0 0 0 3px rgba(255, 232, 176, 0.22);
}

.character-portrait b {
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: 20px;
  text-shadow: 1px 2px 0 rgba(45, 26, 12, 0.36);
}

.character-cut > strong {
  display: block;
  min-height: 27px;
  overflow: hidden;
  color: #4d301d;
  font-size: 9px;
  line-height: 1.35;
}

.character-count {
  margin-top: 2px;
  color: #806143;
  font-size: 8px;
  font-weight: 800;
}

.character-cut.is-active {
  border-color: var(--sea-dark);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    #0a5068;
  box-shadow: 3px 4px 0 rgba(80, 50, 22, 0.24);
}

.character-cut.is-active .character-wanted,
.character-cut.is-active > strong,
.character-cut.is-active .character-count {
  color: #fff0bd;
}

.search-area {
  margin-top: 12px;
}

.filter-panel {
  margin-top: 10px;
  border: 1px solid rgba(82, 52, 24, 0.28);
  background: rgba(255, 241, 204, 0.38);
}

.filter-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 12px;
  color: #65452d;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.filter-panel > summary::-webkit-details-marker {
  display: none;
}

.filter-panel > summary::before {
  margin-right: 8px;
  color: var(--red);
  content: "+";
  font-size: 17px;
}

.filter-panel[open] > summary::before {
  content: "−";
}

.filter-panel > summary span {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 9px;
}

.filter-panel .filter-bar {
  margin: 0;
  padding: 12px;
  border-top: 1px dashed rgba(82, 52, 24, 0.25);
}

.timeline-card {
  margin-top: 13px;
}

.timeline-intro {
  padding: 17px 20px 15px;
}

.legend span:nth-child(2) {
  display: none;
}

body.has-person-filter .legend span:nth-child(2) {
  display: inline-flex;
}

.event-card.is-era {
  width: 196px;
  min-height: 78px;
  border-width: 2px;
  background:
    repeating-linear-gradient(0deg, rgba(92, 59, 27, 0.025) 0 1px, transparent 1px 5px),
    #fff5d7;
}

.event-card.is-era .event-title {
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: 13px;
}

body[data-view="chronology"] .legend,
body[data-view="chronology"] .swipe-hint {
  display: none;
}

body[data-view="chronology"] .lane-track {
  background-color: #f3dda9;
  background-image:
    linear-gradient(
      to right,
      transparent 0,
      transparent 62%,
      rgba(7, 96, 121, 0.1) 62%,
      rgba(7, 96, 121, 0.1) 70%,
      transparent 70%,
      transparent 100%
    ),
    linear-gradient(to right, rgba(88, 58, 27, 0.18) 1px, transparent 1px),
    radial-gradient(ellipse at 23% 44%, transparent 0 28px, rgba(8, 126, 155, 0.07) 29px 30px, transparent 31px),
    radial-gradient(ellipse at 76% 65%, transparent 0 37px, rgba(8, 126, 155, 0.06) 38px 39px, transparent 40px);
  background-size: 100% 100%, calc(100% / var(--marker-count, 16)) 100%, 190px 120px, 260px 150px;
}

body[data-view="chronology"] .lane-track::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 32.5%;
  border-left: 2px dashed rgba(91, 58, 28, 0.34);
  content: "";
  pointer-events: none;
}

body[data-view="chronology"] .timeline-lane[data-lane-id="current-voyage"] .lane-track {
  background-color: #edd7a2;
}

.data-note {
  display: none;
}

@media (max-width: 760px) {
  .hero {
    min-height: 245px;
  }

  .hero-inner {
    padding: 17px 16px 50px;
  }

  .hero-copy {
    margin-top: 27px;
  }

  .hero h1 {
    max-width: 92%;
    font-size: clamp(31px, 9.5vw, 43px);
    line-height: 1.12;
  }

  .hero-lead {
    max-width: 88%;
    font-size: 11px;
    line-height: 1.65;
  }

  .hero-compass {
    width: 92px;
    height: 92px;
    top: 112px;
    right: -28px;
  }

  .main-content {
    margin-top: -18px;
  }

  .reading-guide {
    overflow-x: auto;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .reading-guide li {
    min-height: 38px;
    padding: 7px 10px;
  }

  .view-tools {
    grid-template-columns: 1fr;
  }

  .axis-switcher {
    border-right: 0;
    border-bottom: 1px dashed rgba(82, 52, 24, 0.3);
  }

  .axis-options {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    overflow-x: auto;
  }

  .character-cut {
    width: 80px;
    min-width: 80px;
  }

  .depth-stamp {
    display: none;
  }

  body[data-view="chronology"] .timeline-scroll {
    display: block;
    scroll-snap-type: x proximity;
  }

  body[data-view="chronology"] .timeline-sticky-axis {
    display: grid;
  }

  body[data-view="chronology"] .timeline-board {
    min-width: 1320px;
  }

  body[data-view="chronology"] .event-card {
    scroll-snap-align: center;
  }

  body[data-view="chronology"] .mobile-event-list {
    display: none;
  }

  body[data-view="chronology"] .swipe-hint {
    display: inline;
  }

  .filter-panel .filter-bar {
    grid-template-columns: 1fr;
  }
}
