@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600&family=Noto+Serif+SC:wght@500;600;700&display=swap");

:root {
  --theme-color: #f4f1fa;
  --page: #f5f2fa;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #fffefe;
  --ink: #29243e;
  --ink-soft: #615a75;
  --muted: #888198;
  --line: rgba(88, 72, 126, 0.17);
  --line-strong: rgba(88, 72, 126, 0.28);
  --accent: #6f5cc6;
  --accent-strong: #5846ad;
  --accent-soft: #eee9ff;
  --warm: #c68d53;
  --danger: #b83f5a;
  --shadow-soft: 0 18px 50px rgba(54, 42, 89, 0.1);
  --shadow-float: 0 24px 70px rgba(54, 42, 89, 0.16);
  --sans: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  transition: background-color 220ms ease, color 220ms ease;
}

body[data-skin="map"] {
  --theme-color: #f2f1fb;
  --page: #f1f0f8;
  --surface: rgba(255, 255, 255, 0.82);
  --accent: #755fce;
  --accent-strong: #5e49b7;
}

body[data-skin="journal"] {
  --theme-color: #f6f2eb;
  --page: #f6f2eb;
  --surface: rgba(255, 253, 248, 0.9);
  --surface-solid: #fffdf8;
  --ink: #302c42;
  --ink-soft: #625d70;
  --muted: #8b8490;
  --line: rgba(80, 66, 103, 0.16);
  --accent: #7763b5;
  --accent-strong: #5f4c9c;
  --accent-soft: #eee8f8;
}

button,
input,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(22px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 88%, white);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface);
}

.brand-mark i {
  font-size: 21px;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
}

.primary-nav a,
.header-action,
.skin-trigger {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.primary-nav a {
  padding: 10px 2px;
}

.primary-nav a::after {
  position: absolute;
  right: 2px;
  bottom: 3px;
  left: 2px;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.header-action:hover,
.skin-trigger:hover {
  color: var(--ink);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-action,
.skin-trigger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.header-action:hover,
.skin-trigger:hover,
.header-action:focus-visible,
.skin-trigger:focus-visible {
  border-color: var(--line);
  background: var(--surface);
}

.auth-trigger {
  border-color: var(--line);
  background: var(--surface);
}

.skin-picker {
  position: relative;
}

.skin-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 214px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-float);
}

.skin-option {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.skin-option:hover,
.skin-option:focus-visible {
  background: var(--accent-soft);
}

.skin-option i {
  font-size: 20px;
  color: var(--accent);
}

.skin-option span {
  font-weight: 600;
}

.skin-option small {
  color: var(--muted);
  opacity: 0;
}

.skin-option[aria-checked="true"] small {
  opacity: 1;
}

.site-main {
  min-height: calc(100vh - 76px);
}

.skin-view {
  min-height: calc(100vh - 76px);
  animation: view-in 360ms ease both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The island's ambient life layer: time, weather, growth, and presence. */

.island-now {
  width: min(1180px, calc(100% - 48px));
  margin: 36px auto 0;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(111, 120, 154, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 12%, rgba(189, 220, 214, 0.34), transparent 30%),
    radial-gradient(circle at 9% 90%, rgba(239, 218, 181, 0.28), transparent 28%),
    rgba(253, 252, 249, 0.82);
  box-shadow: var(--shadow-soft);
}

.island-now-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.island-now-heading .eyebrow { margin-bottom: 8px; }

.island-now-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.island-now-heading p:last-child {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.island-now-date {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

.island-now-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.island-now-card {
  position: relative;
  min-width: 0;
  min-height: 188px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.island-now-card::after {
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  content: "";
  background: var(--card-glow, rgba(199, 209, 232, 0.25));
  filter: blur(3px);
  pointer-events: none;
}

.island-now-card[data-island-life-card="garden"] { --card-glow: rgba(181, 211, 156, 0.34); }
.island-now-card[data-island-life-card="resident"] { --card-glow: rgba(216, 195, 226, 0.3); }
.island-now-card[data-island-life-card="cloud"] { --card-glow: rgba(180, 214, 230, 0.34); }

.island-now-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 21px;
}

.island-now-card div {
  position: relative;
  z-index: 1;
  align-self: end;
}

.island-now-card small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.island-now-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
}

.island-now-card p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.island-now-card > a {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 17px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.island-now-card > a:hover,
.island-now-card > a:focus-visible {
  color: var(--accent-strong);
  border-color: var(--accent);
  outline: none;
}

/* One quiet timeline for everything that happened on the island today. */

.island-today {
  width: min(1180px, calc(100% - 48px));
  margin: 36px auto 72px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 32%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.island-today-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.island-today-head .eyebrow {
  margin-bottom: 8px;
}

.island-today-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.island-today-head p:last-child {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.island-today-book {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 13px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.island-today-book:hover,
.island-today-book:focus-visible {
  color: var(--accent-strong);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.island-today-summary {
  min-width: min(340px, 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.today-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  font-size: 12px;
  white-space: nowrap;
}

.today-summary-chip[data-kind="all"] {
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  background: var(--accent-soft);
  font-weight: 600;
}

.today-summary-chip.is-muted {
  color: var(--muted);
  border-style: dashed;
}

.island-today-feed {
  position: relative;
  display: grid;
  gap: 11px;
}

.today-event {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 15px;
  padding: 17px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 19px;
  background: color-mix(in srgb, var(--surface-solid) 80%, transparent);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.today-event:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 8%, transparent);
}

.today-event-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 22px;
}

.today-event[data-kind="note"] .today-event-icon {
  color: #5d7794;
  background: #edf4f8;
}

.today-event[data-kind="plaza"] .today-event-icon {
  color: #3f7b82;
  background: #e8f5f4;
}

.today-event[data-kind="task"] .today-event-icon {
  color: #9b6d35;
  background: #fbf1df;
}

.today-event[data-status="failed"] .today-event-icon {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 11%, white);
}

.today-event-copy {
  min-width: 0;
}

.today-event-meta {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.today-event-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.today-event-copy p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.today-event > time {
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  white-space: nowrap;
}

.today-empty {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 19px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-solid) 58%, transparent);
}

.today-empty > i {
  color: var(--accent);
  font-size: 29px;
}

.today-empty strong,
.today-empty span {
  display: block;
}

.today-empty strong {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
}

.today-empty span {
  margin-top: 2px;
  font-size: 13px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent);
}

.display-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 68px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

[data-agent-title] {
  white-space: pre-line;
}

.display-date {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  letter-spacing: 0.06em;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.primary-button {
  color: white;
  background: var(--accent);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 26%, transparent);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 32%, transparent);
}

.secondary-button {
  color: var(--accent-strong);
  border-color: var(--line-strong);
  background: var(--surface);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
}

.text-button {
  min-height: 40px;
  padding: 0;
  color: var(--accent);
  background: transparent;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Lighthouse skin */

.lighthouse-view {
  display: grid;
  grid-template-columns: minmax(460px, 1.02fr) minmax(520px, 0.98fr);
  background: #f8f6fb;
}

.lighthouse-visual {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: #d7d4e8;
}

.lighthouse-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.visual-caption {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 16px;
  color: white;
  background: rgba(33, 29, 55, 0.5);
  backdrop-filter: blur(14px);
  font-size: 13px;
}

.visual-caption strong {
  font-family: var(--serif);
  font-weight: 600;
}

.lighthouse-content {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px clamp(38px, 5.6vw, 92px);
  background: #fffefe;
}

.resident-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.resident-avatar {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--accent-soft);
}

.resident-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% 48%;
  transform: scale(2.15);
}

.resident-line strong,
.resident-line span {
  display: block;
}

.resident-line strong {
  font-family: var(--serif);
}

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

.lighthouse-story {
  margin-top: 40px;
}

.thought-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thought-list li {
  position: relative;
  padding-left: 19px;
  color: var(--ink-soft);
}

.thought-list li::before {
  position: absolute;
  top: 0.72em;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c6b8ef;
  content: "";
}

.island-wish-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent-soft) 58%, white);
}

.island-wish-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 12%, transparent);
}

.island-wish-icon i {
  font-size: 20px;
}

.island-wish-card .section-kicker {
  margin-bottom: 5px;
}

.island-wish-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.island-wish-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.letter-preview {
  margin: 22px 0 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdfd;
}

.letter-preview p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  line-height: 1.9;
}

.mailbox-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.5;
}

.mailbox-meta::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 68%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-soft) 62%, transparent);
  content: "";
}

/* Map skin */

.map-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  padding: 14px clamp(24px, 4vw, 54px);
  background: #f1f0f8;
}

.map-stage {
  position: relative;
  width: 100%;
  max-width: 980px;
  height: calc(100vh - 104px);
  min-height: 760px;
  justify-self: center;
  overflow: hidden;
}

.map-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 30px 35px rgba(52, 46, 86, 0.12));
}

.map-hotspot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(90, 72, 129, 0.2);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255, 254, 252, 0.9);
  box-shadow: 0 8px 20px rgba(53, 42, 88, 0.11);
  font-family: var(--serif);
  font-size: clamp(12px, 1.25vw, 15px);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.map-hotspot:hover,
.map-hotspot:focus-visible {
  z-index: 2;
  transform: translate(-50%, -54%);
  box-shadow: 0 14px 28px rgba(53, 42, 88, 0.18);
}

.map-hotspot i {
  color: var(--accent);
}

.hotspot-lighthouse {
  top: 22%;
  left: 28%;
}

.hotspot-study {
  top: 31%;
  left: 68%;
}

.hotspot-diary {
  top: 71%;
  left: 29%;
}

.hotspot-memory {
  top: 70%;
  left: 70%;
}

.hotspot-clock {
  top: 51%;
  left: 49%;
}

.resident-map-marker {
  --resident-map-left: 68%;
  --resident-map-top: 31%;
  position: absolute;
  z-index: 4;
  left: var(--resident-map-left);
  top: var(--resident-map-top);
  display: block;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 15px));
  transition: left 720ms cubic-bezier(0.22, 1, 0.36, 1),
    top 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.resident-map-marker[hidden] {
  display: none;
}

.resident-map-marker-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #55517f, #8178ab);
  box-shadow: 0 8px 20px rgba(47, 39, 83, 0.27), 0 0 0 5px rgba(255, 255, 255, 0.42);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.map-panel {
  align-self: center;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.map-panel .display-title {
  font-size: clamp(31px, 3vw, 46px);
}

.trail {
  position: relative;
  display: grid;
  gap: 19px;
  margin: 32px 0 28px;
  padding-left: 22px;
}

.trail::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 5px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.trail-item {
  position: relative;
}

.trail-item::before {
  position: absolute;
  top: 7px;
  left: -21px;
  width: 9px;
  height: 9px;
  border: 2px solid #f8f7fc;
  border-radius: 50%;
  background: #b3a6dc;
  box-shadow: 0 0 0 1px #b3a6dc;
  content: "";
}

.trail-item.is-current::before {
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px color-mix(in srgb, var(--accent) 12%, transparent);
}

.trail-item time,
.trail-item span {
  display: block;
}

.trail-item time {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
}

.trail-item span {
  color: var(--ink-soft);
}

.map-murmur {
  margin: 0 0 26px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.map-murmur p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
}

.map-murmur [data-agent-wish] {
  line-height: 1.8;
}

.map-panel .button-row {
  display: grid;
}

/* Journal skin */

.journal-view {
  display: grid;
  grid-template-columns: minmax(128px, 0.15fr) minmax(620px, 1fr) minmax(170px, 0.18fr);
  max-width: 1500px;
  margin: 0 auto;
  background: #fffdf8;
}

.date-rail,
.room-rail {
  min-height: calc(100vh - 76px);
  padding: 76px clamp(20px, 3vw, 48px);
}

.date-rail {
  border-right: 1px solid var(--line);
}

.rail-date {
  color: var(--accent);
  font-family: var(--serif);
}

.rail-date strong {
  display: block;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.1;
}

.rail-date span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.tide-times {
  margin-top: 62vh;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.9;
}

.journal-main {
  padding: 34px clamp(34px, 5vw, 82px) 32px;
}

.journal-main .display-title {
  font-size: clamp(34px, 3.2vw, 48px);
}

.journal-main > .eyebrow {
  display: none;
}

.journal-main .display-date {
  margin-top: 8px;
}

.journal-live {
  margin-left: 14px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
}

.journal-entry {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.entry-time {
  position: relative;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
}

.entry-time::after {
  position: absolute;
  top: 9px;
  right: -26px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #beb1dc;
  content: "";
}

.entry-body h2 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.entry-body p {
  margin: 0;
  color: var(--ink-soft);
}

.journal-image {
  width: 100%;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 4px;
  background: #e6e1e3;
}

.journal-image img {
  width: 100%;
  aspect-ratio: 16 / 6.1;
  object-fit: cover;
}

.journal-letter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding-top: 22px;
}

.journal-letter p {
  max-width: 44ch;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  line-height: 1.9;
}

.journal-entry.is-rest .entry-body h2 {
  color: var(--muted);
}

.journal-entry.is-rest .entry-time::after {
  background: var(--surface-solid);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.room-rail {
  border-left: 1px solid var(--line);
}

.room-rail h2 {
  margin: 0 0 28px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.room-links {
  display: grid;
  gap: 8px;
}

.autonomy-note {
  display: flex;
  gap: 8px;
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.autonomy-note i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--accent);
  font-size: 15px;
}

.room-links a,
.room-links button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.room-links a:hover,
.room-links button:hover,
.room-links a:focus-visible,
.room-links button:focus-visible {
  color: var(--accent);
}

.room-links i {
  width: 22px;
  color: var(--accent);
  font-size: 19px;
}

.room-links .control-link {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* Dialogs and utility surfaces */

dialog {
  width: min(calc(100vw - 32px), 540px);
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: var(--surface-solid);
  box-shadow: var(--shadow-float);
}

dialog::backdrop {
  background: rgba(34, 29, 54, 0.38);
  backdrop-filter: blur(8px);
}

.control-dialog {
  width: min(calc(100vw - 32px), 760px);
}

.places-dialog {
  width: min(calc(100vw - 32px), 820px);
}

.places-dialog .dialog-header {
  position: sticky;
  z-index: 4;
  top: 0;
  margin: -28px -28px 18px;
  padding: 28px 28px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
  backdrop-filter: blur(14px);
}

.dialog-inner {
  padding: 28px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dialog-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
}

.dialog-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.letter-mailbox-summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: -6px 0 18px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent-soft) 54%, #fff);
}

.letter-mailbox-summary > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent-soft) 72%, #fff);
  font-size: 19px;
}

.letter-mailbox-summary span {
  display: grid;
  gap: 3px;
}

.letter-mailbox-summary strong {
  font-family: var(--serif);
  font-size: 15px;
}

.letter-mailbox-summary small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.legacy-letter-notice {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px dashed color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent-soft) 42%, #fff);
}

.legacy-letter-notice[hidden] {
  display: none;
}

.legacy-letter-notice strong {
  font-family: var(--serif);
  font-size: 14px;
}

.legacy-letter-notice p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.legacy-letter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.legacy-letter-actions .primary-button,
.legacy-letter-actions .secondary-button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
}

.letter-history {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.letter-history-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.letter-history-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
}

.letter-history-heading span {
  color: var(--muted);
  font-size: 10px;
}

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

.letter-history-empty {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  color: var(--muted);
  background: color-mix(in srgb, var(--accent-soft) 54%, #fff);
  font-size: 12px;
  line-height: 1.65;
}

.letter-history-card {
  padding: 14px 15px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-solid) 96%, var(--accent-soft));
}

.letter-history-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.letter-history-card strong {
  font-family: var(--serif);
  font-size: 14px;
}

.letter-history-card time,
.letter-history-card small {
  color: var(--muted);
  font-size: 10px;
}

.letter-history-card p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.letter-history-reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--accent-soft) 48%, #fff);
}

.letter-history-reply span {
  display: block;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 750;
}

.dialog-eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.places-note {
  margin: 0 0 10px;
  padding: 15px 17px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 44%, transparent);
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--accent-soft) 54%, #fff);
  line-height: 1.75;
}

.place-list {
  display: grid;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.place-section-label {
  margin: 0;
  padding: 18px 4px 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.place-section-label.is-outdoor {
  margin-top: 4px;
}

.place-cluster {
  padding: 10px 4px 22px;
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
  scroll-margin-top: 150px;
  outline: none;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.place-cluster-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(104px, auto);
  gap: 14px;
  align-items: start;
}

.place-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(104px, auto);
  gap: 14px;
  align-items: start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
  scroll-margin-top: 150px;
  outline: none;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.place-row.is-highlighted,
.place-cluster.is-highlighted {
  background: color-mix(in srgb, var(--accent-soft) 74%, #fff);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent-soft) 46%, transparent);
}

.place-row:focus-visible,
.place-cluster:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}

.home-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0 56px;
}

.room-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-solid) 92%, var(--accent-soft));
}

.room-card > i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent-soft) 78%, #fff);
  font-size: 16px;
}

.room-card h4 {
  margin: 1px 0 0;
  font-family: var(--serif);
  font-size: 15px;
}

.room-card p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.room-card > span {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
}

.room-card.is-private {
  background: color-mix(in srgb, #f5ebf1 56%, var(--surface-solid));
}

.room-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.room-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.room-link:hover,
.room-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.place-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: #fff;
  font-size: 18px;
}

.place-copy {
  min-width: 0;
}

.place-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.place-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
}

.place-copy p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.place-access,
.place-status {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.place-access {
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 58%, #fff);
}

.place-access.is-open {
  color: #49725e;
  border-color: rgba(73, 114, 94, 0.18);
  background: rgba(229, 241, 233, 0.72);
}

.place-access.is-mixed {
  color: #8a643c;
  border-color: rgba(138, 100, 60, 0.18);
  background: rgba(246, 237, 223, 0.72);
}

.place-status,
.place-actions {
  align-self: center;
  justify-self: end;
  text-align: right;
}

.place-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 12px;
}

.place-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.place-link:hover,
.place-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.icon-button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.field label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.field textarea {
  min-height: 150px;
}

.field input:focus,
.field textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.form-feedback {
  min-height: 23px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.form-feedback.is-error {
  color: var(--danger);
}

.form-feedback.is-success {
  color: var(--accent-strong);
}

.member-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--accent-soft);
}

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

.member-card span {
  margin-top: 5px;
  color: var(--ink-soft);
  word-break: break-all;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.control-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.control-card:hover,
.control-card:focus-visible {
  border-color: var(--line-strong);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.control-card i {
  margin-top: 2px;
  color: var(--accent);
  font-size: 24px;
}

.control-card strong,
.control-card small {
  display: block;
}

.control-card strong {
  margin-bottom: 3px;
}

.control-card small {
  color: var(--muted);
  line-height: 1.5;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-float);
  animation: toast-in 220ms ease both;
}

.toast i {
  color: var(--accent);
  font-size: 20px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .site-header {
    gap: 16px;
  }

  .primary-nav {
    gap: 18px;
  }

  .header-action .button-label,
  .skin-trigger .button-label {
    display: none;
  }

  .lighthouse-view {
    grid-template-columns: minmax(390px, 0.9fr) minmax(460px, 1.1fr);
  }

  .lighthouse-content {
    padding-right: 42px;
    padding-left: 42px;
  }

  .journal-view {
    grid-template-columns: 112px minmax(560px, 1fr) 150px;
  }

  .journal-main {
    padding-right: 40px;
    padding-left: 40px;
  }
}

@media (max-width: 900px) {
  .island-now-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    grid-template-columns: auto 1fr;
  }

  .primary-nav {
    display: none;
  }

  .header-tools {
    grid-column: 2;
  }

  .lighthouse-view,
  .map-view {
    grid-template-columns: 1fr;
  }

  .lighthouse-visual {
    min-height: 58vh;
  }

  .lighthouse-content {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .map-view {
    align-items: start;
  }

  .map-panel {
    width: min(100%, 620px);
    justify-self: center;
  }

  .map-stage {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .map-stage > img {
    object-fit: contain;
  }

  .journal-view {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .room-rail {
    display: none;
  }

  .date-rail {
    padding-right: 18px;
    padding-left: 18px;
  }

  .island-today-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .island-today-summary {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .island-now {
    width: calc(100% - 28px);
    margin-top: 24px;
    padding: 22px 18px;
    border-radius: 23px;
  }

  .island-now-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .island-now-grid {
    grid-template-columns: 1fr;
  }

  .island-now-card {
    min-height: 154px;
  }

  .places-dialog .dialog-inner {
    padding: 22px 18px;
  }

  .places-dialog .dialog-header {
    margin: -22px -18px 16px;
    padding: 22px 18px 16px;
    gap: 12px;
  }

  .place-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 16px 2px;
  }

  .place-cluster {
    padding: 8px 2px 20px;
  }

  .place-cluster-heading {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
  }

  .home-room-grid {
    grid-template-columns: 1fr;
    margin: 16px 0 0;
  }

  .room-card {
    padding: 13px;
  }

  .place-status,
  .place-actions,
  .place-cluster-heading > .place-status {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .place-actions {
    justify-content: flex-start;
  }

  .site-header {
    min-height: 66px;
    padding: 10px 14px;
  }

  .brand {
    font-size: 17px;
  }

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

  .header-tools {
    gap: 2px;
  }

  .header-action,
  .skin-trigger {
    width: 38px;
    min-height: 38px;
    padding: 0;
  }

  .skin-menu {
    position: fixed;
    top: 68px;
    right: 12px;
  }

  .skin-view {
    min-height: calc(100vh - 66px);
  }

  .island-today {
    width: calc(100% - 28px);
    margin: 24px auto 46px;
    padding: 22px 18px;
    border-radius: 23px;
  }

  .island-today-head {
    gap: 18px;
    margin-bottom: 22px;
  }

  .island-today-head h2 {
    font-size: 28px;
  }

  .today-event {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }

  .today-event-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 20px;
  }

  .today-event > time {
    grid-column: 2;
    padding-top: 0;
  }

  .today-empty {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .lighthouse-visual {
    min-height: 54vh;
  }

  .visual-caption {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .lighthouse-content {
    padding: 42px 22px 54px;
  }

  .island-wish-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 16px;
  }

  .island-wish-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .display-title {
    font-size: 38px;
  }

  .button-row {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .map-view {
    padding: 20px 14px 42px;
  }

  .map-stage {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin-top: 12px;
  }

  .map-stage > img {
    object-fit: contain;
  }

  .map-hotspot {
    gap: 0;
    padding: 6px 8px;
    font-size: 11px;
  }

  .map-hotspot i {
    display: none;
  }

  .resident-map-marker {
    transform: translate(-50%, calc(-100% - 9px));
  }

  .resident-map-marker-avatar {
    width: 30px;
    height: 30px;
    border-width: 1px;
    box-shadow: 0 6px 14px rgba(47, 39, 83, 0.24), 0 0 0 3px rgba(255, 255, 255, 0.4);
    font-size: 14px;
  }

  .map-panel {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .journal-view {
    display: block;
  }

  .date-rail {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-date strong {
    display: inline;
    font-size: 28px;
  }

  .rail-date span {
    display: inline;
    margin-left: 8px;
  }

  .tide-times {
    margin: 0;
    text-align: right;
  }

  .journal-main {
    padding: 42px 22px 58px;
  }

  .journal-entry {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  .entry-time::after {
    right: -18px;
  }

  .journal-letter {
    grid-template-columns: 1fr;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .dialog-inner {
    padding: 22px;
  }
}

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