/* Navigation shell */
body { padding-inline-start: var(--rail-width); }
body[data-focus] { --rail-width: 0px; }
body[data-focus] .dashboard-rail, body[data-focus] .dashboard-dock { display: none; }
.page-width { width: min(calc(100% - 72px), var(--page-width)); }

.dashboard-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: var(--rail-width);
  padding: 1.3rem 1rem .85rem;
  border-right: 1px solid var(--border);
  background: var(--page);
}
.dashboard-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: .34rem;
  color: var(--text);
  line-height: 1;
  text-decoration: none;
}
.dashboard-brand:hover { color: var(--text); }
.dashboard-brand strong { font-size: 1.67rem; font-weight: 850; letter-spacing: -.075em; }
.brand-emblem { display: grid; place-items: center; color: var(--orange-ink); font-size: 1.25rem; transform: rotate(-8deg); }
.dashboard-rail > .dashboard-brand { margin: .23rem .4rem 2rem; }

.sticker {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #0a0f0d;
  border-radius: 11px;
  color: #122922;
  background: var(--mint);
  box-shadow: 1px 2px 0 #0a0f0d;
  font-size: .92rem;
}
.sticker-paper { background: #f7f7f2; }
.sticker-lime { background: var(--lime); }
.sticker-peach { background: var(--peach); }
.sticker-lavender { background: var(--lavender); }
.sticker-sky { background: var(--sky); }
.sticker-mint { background: var(--mint); }

.rail-search {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 46px;
  padding: .3rem .62rem .3rem .37rem;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 700;
  text-decoration: none;
}
.rail-search:hover { border-color: var(--focus); color: var(--text); background: var(--surface); }
.rail-search kbd {
  margin-inline-start: auto;
  padding: .09rem .25rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--page);
  color: var(--muted);
  font-size: .64rem;
}
.rail-groups { min-height: 0; margin-top: .6rem; padding-bottom: .5rem; overflow-y: auto; scrollbar-width: thin; }
.rail-group + .rail-group { margin-top: .62rem; }
.rail-group > p { margin: .36rem .37rem .24rem; color: var(--muted); font-size: .74rem; font-weight: 750; }
.rail-link {
  display: flex;
  align-items: center;
  gap: .72rem;
  min-height: 43px;
  margin-bottom: .08rem;
  padding: .28rem .4rem;
  border-radius: 11px;
  color: var(--text);
  font-size: .84rem;
  font-weight: 720;
  line-height: 1.15;
  text-decoration: none;
}
.rail-link:hover { background: var(--soft); color: var(--text); }
.rail-link[aria-current="page"] { background: #122922; color: #fff; }
.rail-link[aria-current="page"] .sticker { background: var(--lime); }
.rail-link .sticker-sky { background: #a9e7fa; }
.rail-link .sticker-peach { background: #ffad83; }
.rail-link .sticker-lavender { background: #e7c1fb; }
.rail-link .sticker-mint { background: #baf3d5; }

.rail-account { position: relative; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--border); }
.rail-account summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .6rem;
  align-items: center;
  min-height: 53px;
  padding: .3rem .35rem;
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
}
.rail-account summary::-webkit-details-marker { display: none; }
.rail-account summary:hover { background: var(--soft); }
.rail-account summary strong, .rail-account summary small { display: block; line-height: 1.3; }
.rail-account summary strong { font-size: .82rem; font-weight: 760; }
.rail-account summary small { margin-top: .15rem; color: var(--muted); font-size: .7rem; }
.rail-account summary > .icon { color: var(--muted); font-size: .7rem; transform: rotate(90deg); }
.rail-account[open] summary > .icon { transform: rotate(-90deg); }
.rail-account-menu { position: absolute; inset: auto 0 calc(100% + 6px); z-index: 1; display: grid; padding: .45rem; }
.rail-account-menu a, .theme-control {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  padding: .3rem .45rem;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--text);
  font-size: .79rem;
  font-weight: 680;
  text-decoration: none;
}
.rail-account-menu a:hover, .theme-control:hover { background: var(--soft); color: var(--text); }
.staff-avatar {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1.5px dashed currentColor;
  border-radius: 50%;
}
.staff-avatar::before, .staff-avatar::after { position: absolute; border: 1.7px solid currentColor; content: ""; }
.staff-avatar::before { top: 19%; left: 34%; width: 32%; height: 32%; border-radius: 50%; }
.staff-avatar::after { top: 52%; left: 20%; width: 60%; height: 31%; border-radius: 100px 100px 0 0; border-bottom: 0; }
.staff-avatar > .map-pulse { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border: 1.5px solid #0a0f0d; }

.dashboard-dock, .mobile-masthead { display: none; }
.dashboard-bar { position: sticky; z-index: 15; top: 0; }
.bar-notice {
  color: #f1f7ee;
  border-bottom: 2px solid #0a0f0d;
  background: radial-gradient(circle, #355245 1px, transparent 1.5px) 0 0 / 16px 16px, #122c22;
}
.dashboard-bar-inner {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 48px;
  padding: .26rem 1.4rem;
}
.bar-badge {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .2rem .62rem;
  border: 1px solid #80a348;
  border-radius: 99px;
  color: var(--lime);
  font-size: .7rem;
  font-weight: 760;
  white-space: nowrap;
}
.bar-location {
  overflow: hidden;
  font-size: .8rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-location > span { font-weight: 560; color: #d0dfd1; }
.bar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .8rem; margin-inline-start: auto; }
.bar-actions .button { flex-direction: row; gap: .55rem; min-height: 35px; padding: .32rem .9rem; background: var(--lime); border-color: #0a0f0d; box-shadow: 2px 3px 0 #0a0f0d; font-size: .8rem; }
.bar-guide, .bar-dismiss { display: inline-flex; align-items: center; gap: .5rem; color: #edf4eb; font-size: .8rem; font-weight: 690; text-decoration: none; }
.bar-guide:hover, .bar-dismiss:hover { color: var(--lime); }
.bar-guide .icon { font-size: .65rem; transform: rotate(-90deg); }
.bar-dismiss { justify-content: center; width: 29px; height: 35px; border: 0; background: none; }
body:has(.bar-notice[hidden]) { --bar-height: 0px; }
.main-content { padding-block: 1.8rem 2.6rem; }
.dashboard-main { padding-top: clamp(2.3rem, 5.2vw, 4.5rem); }
.site-footer .footer-line { padding-top: .9rem; border-top: 1px solid var(--border); }
.site-footer a, .back-link { color: var(--text); }
.skip-link { z-index: 40; }

/* Dashboard and shared cards */
.dashboard-heading { margin: 0 0 1.55rem; }
.dashboard-heading .dashboard-location {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .52rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 720;
}
.dashboard-heading h1 {
  margin: 0 0 .66rem;
  font-size: clamp(2.15rem, 4.12vw, 3.5rem);
  font-weight: 835;
  line-height: 1.08;
  letter-spacing: -.067em;
}
.dashboard-heading mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 .11em .025em;
  background: none;
  color: #0a0f0d;
}
.dashboard-heading mark::before {
  position: absolute;
  inset: .02em -.025em -.01em;
  z-index: -1;
  border-radius: .16em;
  background: var(--lime);
  box-shadow: 2px 3px 0 #15291f59;
  content: "";
  transform: skew(-3deg);
}
.dashboard-heading > p:last-child { margin: 0; color: var(--muted); font-size: .92rem; font-weight: 570; }
.dashboard-controls { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.2rem; }
.page-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: .24rem;
  padding: 3px;
  border: 2px solid var(--paper-border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 2px 3px 0 var(--paper-shadow);
}
.page-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 32px;
  padding: .25rem .65rem;
  border-radius: 999px;
  color: var(--text);
  font-size: .77rem;
  font-weight: 750;
  text-decoration: none;
}
.page-switch a:hover { background: var(--soft); color: var(--text); }
.page-switch a[aria-current="page"] { background: #0a0f0d; color: var(--lime); }

.paper-card {
  min-width: 0;
  border: 2px solid var(--paper-border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 4px 5px 0 var(--paper-shadow);
}
.dot-paper { background: radial-gradient(circle, var(--dot) .9px, transparent 1.3px) 0 0 / 14px 14px, var(--grid-paper); }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(238px, 2.93fr);
  gap: clamp(1.2rem, 2.5vw, 2.15rem);
  align-items: start;
  margin-bottom: 1.9rem;
}
.dashboard-primary { min-width: 0; }
.home-heading { margin-bottom: 0; }
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  margin: 0 0 .68rem;
  padding: .28rem .76rem;
  border-radius: 999px;
  background: #0a0f0d;
  color: var(--lime);
  box-shadow: 2px 3px 0 #24402c42;
  font-size: .76rem;
  font-weight: 730;
  transform: rotate(-1.5deg);
}
.home-title-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem .8rem; margin-bottom: .38rem; }
.home-title-line h1 { margin: 0; }
.home-heading-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .65rem; }
.home-focus {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--paper-border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: 2px 3px 0 var(--paper-shadow);
  font-size: 1.04rem;
}
.home-focus:hover, .home-focus[aria-pressed="true"] { background: var(--lime); color: #0a0f0d; }
.dashboard-continue { position: relative; margin-top: 1.8rem; }
.guide-replay {
  position: absolute;
  z-index: 1;
  right: clamp(.6rem, 4.7vw, 4.5rem);
  bottom: 100%;
  display: flex;
  align-items: flex-end;
  gap: .38rem;
  height: 67px;
  padding: 0;
  border: 0;
  background: none;
  color: #122922;
}
.guide-caption {
  align-self: center;
  padding: .35rem .63rem;
  border: 2px solid #0a0f0d;
  border-radius: 13px 13px 4px 13px;
  background: #fffdf3;
  box-shadow: 2px 3px 0 #0a0f0d;
  font-size: .72rem;
  font-weight: 720;
  line-height: 1.27;
  text-align: start;
}
.guide-caption strong { text-decoration: underline #a3c221 2px; text-underline-offset: 2px; }
.guide-replay img { display: block; width: 83px; height: 66px; object-fit: contain; object-position: center bottom; }
.guide-question {
  position: absolute;
  right: 1px;
  top: 2px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #0a0f0d;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 2px 2px 0 #0a0f0d;
  font-weight: 820;
}
.guide-replay:hover .guide-question { transform: rotate(8deg); }

.dashboard-start { overflow: hidden; border-radius: 24px; box-shadow: 6px 8px 0 var(--paper-shadow); }
.start-art {
  position: relative;
  display: grid;
  min-height: 141px;
  place-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--paper-border);
}
.paper-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .35rem;
  padding: .23rem .55rem;
  border: 2px solid #0a0f0d;
  border-radius: 8px;
  background: #fffdf5;
  color: #0a0f0d;
  box-shadow: 2px 2px 0 #0a0f0d;
  font-size: .72rem;
  font-weight: 770;
  white-space: nowrap;
}
.start-art .paper-tag { position: absolute; top: 14px; left: 14px; transform: rotate(-6deg); }
.start-counter {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border: 2px solid #0a0f0d;
  border-radius: 50%;
  background: #fff;
  color: #0a0f0d;
  box-shadow: 3px 4px 0 #0a0f0d;
}
.start-counter-ring {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 60px;
  height: 60px;
  border: 6px solid #e5e9e5;
  border-radius: 50%;
  line-height: 1.1;
}
.start-counter-ring strong { font-size: 1.3rem; font-weight: 840; letter-spacing: -.045em; }
.start-counter-ring small { color: #485c51; font-size: .58rem; font-weight: 740; }
.start-counter-ring .map-pulse { position: absolute; top: -6px; left: calc(50% - 4px); width: 8px; height: 8px; background: #237351; }
.map-pulse { position: relative; display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.map-pulse::after, .journey-pin::after, .stage-stop > span::after {
  position: absolute;
  inset: -4px;
  border: 1px solid #a4d236;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: map-pulse 2.3s cubic-bezier(.15,.6,.4,1) infinite;
}
@keyframes map-pulse { 0% { transform: scale(.84); opacity: .95; } 75%, 100% { transform: scale(1.6); opacity: 0; } }

.start-content { padding: clamp(1rem, 2.15vw, 1.75rem); }
.card-eyebrow { margin: 0 0 .48rem; color: var(--green-ink); font-size: .82rem; font-weight: 790; }
.start-content h2 { margin: 0 0 .48rem; font-size: clamp(1.65rem, 3vw, 2.42rem); font-weight: 820; letter-spacing: -.062em; line-height: 1.11; }
.start-description, .start-footnote { color: var(--muted); font-size: .84rem; font-weight: 550; }
.start-description { margin: 0 0 1.1rem; }
.start-footnote { margin: .75rem 0 0; }
.quick-links { display: grid; gap: .26rem; margin: 0 0 1.16rem; padding: 0; list-style: none; }
.quick-links a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .54rem;
  align-items: center;
  min-height: 45px;
  padding: .33rem .48rem;
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background .18s, transform .18s;
}
.quick-links li:first-child a { border-color: var(--paper-border); background: var(--lime-soft); }
.quick-links a:hover { background: var(--soft); transform: translateX(2px); }
.quick-links a:active { transform: scale(.987); }
.quick-links strong { font-size: .84rem; font-weight: 735; line-height: 1.3; }
.quick-links small { color: var(--muted); font-size: .73rem; font-weight: 700; }
.quick-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: .79rem;
  font-weight: 800;
}
.quick-links li:first-child .quick-number { background: #d3f139; color: #0a0f0d; border-color: #0a0f0d; box-shadow: 2px 2px 0 #0a0f0d; transform: rotate(-6deg); }
.start-report {
  min-width: min(17.8rem, 100%);
  min-height: 53px;
  gap: .78rem;
  border-color: #0a0f0d;
  background: #d4f234;
  box-shadow: 3px 4px 0 #0a0f0d;
  font-size: .96rem;
  font-weight: 805;
}
.start-report:hover { background: var(--lime); }
.start-report:active { transform: translate(2px, 2px); box-shadow: 1px 2px 0 #0a0f0d; }

.dashboard-aside {
  display: grid;
  align-content: start;
  gap: 1.05rem;
  max-height: 700px;
  margin-top: 1.2rem;
  padding: .12rem .58rem .65rem 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #8d9990 transparent;
}
.dashboard-aside .paper-card {
  border-radius: 20px;
  background: var(--aside-paper);
  box-shadow: 4px 5px 0 var(--aside-shadow);
}
.dashboard-counts, .dashboard-journey-summary { padding: 1.05rem; }
.activity-heading { display: flex; align-items: center; gap: .75rem; }
.activity-heading .sticker { width: 57px; height: 57px; border-radius: 17px; transform: rotate(-6deg); font-size: 1.46rem; }
.activity-heading h2 { margin: 0 0 .15rem; color: var(--orange-ink); font-size: .83rem; font-weight: 800; }
.activity-heading p { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.activity-heading strong { color: var(--text); font-size: 2.65rem; font-weight: 840; line-height: 1; letter-spacing: -.075em; }
.activity-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .24rem; margin: .95rem 0 .74rem; padding: 0; list-style: none; }
.activity-days li { display: grid; justify-items: center; gap: .25rem; min-width: 0; color: var(--muted); font-size: .68rem; font-weight: 710; }
.activity-dot { color: var(--muted); opacity: .54; font-size: .92rem; line-height: 1; }
.activity-dot.has-activity { color: var(--green-ink); opacity: 1; }
.activity-today time { padding: 0 .12rem; border-radius: 3px; background: var(--lime); color: #0a0f0d; }
.activity-caption { margin: 0; padding: .18rem 0 .7rem; color: var(--green-ink); font-size: .79rem; font-weight: 640; font-style: italic; line-height: 1.44; }
.count-links { display: grid; gap: .3rem; padding-top: .5rem; border-top: 2px dashed var(--border); }
.count-links a { display: flex; align-items: center; justify-content: space-between; gap: .35rem; min-height: 34px; color: var(--text); font-size: .77rem; font-weight: 720; text-decoration: none; }
.count-links a:hover { color: var(--green-ink); text-decoration: underline; }
.count-links strong { min-width: 30px; padding: .05rem .45rem; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); text-align: center; }
.journey-mini-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .72rem; }
.journey-mini-heading h2 { margin: 0; color: var(--green-ink); font-size: .84rem; font-weight: 770; }
.journey-mini-heading strong { font-size: 1.54rem; font-weight: 820; line-height: 1; white-space: nowrap; }
.journey-mini-heading small { color: var(--muted); font-size: .66rem; }
.journey-mini-steps { display: grid; gap: .5rem; margin: 0 0 .95rem; padding: 0; list-style: none; }
.journey-mini-steps a { display: flex; align-items: center; gap: .58rem; color: var(--text); line-height: 1.22; text-decoration: none; }
.journey-mini-steps a:hover strong { text-decoration: underline; }
.mini-step-number {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 3px solid var(--border);
  border-radius: 50%;
  color: #122922;
  font-size: .67rem;
  font-weight: 790;
}
.journey-mini-steps strong, .journey-mini-steps small { display: block; }
.journey-mini-steps strong { font-size: .81rem; }
.journey-mini-steps small { margin-top: .12rem; color: var(--muted); font-size: .72rem; }
.dashboard-journey-summary .button { min-height: 38px; padding: .35rem .8rem; }
.dashboard-shortcut { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem .62rem; align-items: center; padding: .95rem; }
.dashboard-shortcut h2 { margin: 0 0 .18rem; font-size: .93rem; }
.dashboard-shortcut p { margin: 0; color: var(--muted); font-size: .77rem; }
.dashboard-shortcut .button { grid-column: 2; justify-self: start; min-height: 38px; padding: .3rem .64rem; }
.dashboard-aside .shortcut-claim { background: color-mix(in srgb, var(--aside-paper) 76%, var(--lavender)); }
.dashboard-aside .shortcut-history { background: color-mix(in srgb, var(--aside-paper) 75%, var(--mint)); }

.surface { border: 2px solid var(--paper-border); box-shadow: 3px 4px 0 var(--paper-shadow); }
.list-panel { scroll-margin-top: calc(var(--bar-height) + 1rem); }
.section-heading h2 { font-weight: 800; }
.filter-chip[aria-current="true"], .view-options button[aria-pressed="true"] { color: var(--text); background: var(--lime-soft); }
.item-row { border-radius: 12px; }

/* Scrolling route */
.journey-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  padding: 1rem;
  background: var(--masthead);
  color: #f2f8ef;
}
.journey-banner h2 { color: inherit; margin: 0 0 .15rem; font-size: 1.08rem; }
.journey-banner p { color: #c3d7c7; margin: 0; font-size: .8rem; }
.journey-banner .button { border-color: #98bb51; box-shadow: 0 3px 0 #5d793b; }
.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  gap: clamp(1.3rem, 3.8vw, 3.6rem);
  margin: 2.6rem 0 1.8rem;
  align-items: start;
}
.journey-sticky { position: sticky; top: calc(var(--bar-height) + 1.3rem); grid-area: 1 / 2; z-index: 3; }
.journey-board { padding: clamp(.68rem, 1.85vw, 1.22rem); }
.board-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1.08rem; font-weight: 750; font-size: .81rem; }
.board-heading > span:first-child { display: flex; align-items: center; gap: .35rem; }
.board-heading > span:last-child {
  min-width: 3.25rem;
  padding: .18rem .47rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: .68rem;
}
.stage-progress { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 1rem; }
.stage-progress::before {
  position: absolute;
  top: 17px;
  inset-inline: 10%;
  border-top: 2px dashed var(--dot);
  content: "";
}
.stage-stop { position: relative; display: grid; justify-items: center; align-content: start; gap: .45rem; color: var(--muted); text-align: center; text-decoration: none; }
.stage-stop > span {
  position: relative;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 2px solid var(--paper-border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: .72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: color .22s, background .22s, transform .22s;
}
.stage-stop[data-passed] > span { background: #284b3b; color: #fff; }
.stage-stop[aria-current] > span { background: var(--lime); color: var(--lime-ink); border-color: #172d24; box-shadow: 0 2px 0 #172d24; }
.stage-stop > span::after, .journey-pin::after { display: none; }
.stage-stop[aria-current] > span::after, .journey-step[aria-current] .journey-pin::after { display: block; }
.stage-stop small { font-size: .65rem; font-weight: 690; line-height: 1.15; }
.stage-stop:hover, .stage-stop[aria-current] { color: var(--text); }
.stage-stop:hover > span { transform: translateY(-2px); }
.board-scenes { min-height: 176px; }
.board-scene {
  min-height: 176px;
  padding: .8rem;
  border: 2px solid var(--paper-border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 2px 3px 0 var(--paper-shadow);
  animation: scene-in .34s cubic-bezier(.17,.67,.32,1) both;
}
@keyframes scene-in { from { opacity: 0; transform: translateY(8px) scale(.987); } to { opacity: 1; transform: none; } }
.board-scene .paper-tag { padding: .16rem .43rem; transform: rotate(-4deg); }
.scene-heading { display: flex; align-items: center; gap: .6rem; margin: .62rem 0 .6rem; }
.scene-heading strong { display: block; font-size: .96rem; line-height: 1.16; font-weight: 770; }
.scene-heading small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.28; }
.board-scene ul { display: flex; flex-wrap: wrap; gap: .33rem; margin: 0; padding: 0; list-style: none; }
.board-scene li { padding: .23rem .4rem; border-radius: 5px; background: var(--soft); font-size: .67rem; font-weight: 610; }
.scene-peach li { background: var(--orange-soft); }
.scene-lime li { background: var(--lime-soft); }
.board-meter { height: 6px; margin-top: .95rem; border-radius: 999px; background: var(--border); }
.board-meter > span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--focus); transform-origin: left; transform: scaleX(0); }
.journey-steps { position: relative; grid-area: 1 / 1; display: grid; gap: 1.2rem; margin: 0; padding: 0 0 8vh 2.55rem; list-style: none; }
.journey-steps::before { position: absolute; inset: 1.1rem auto 9vh 15px; border-left: 2px dashed var(--dot); content: ""; }
.journey-step { position: relative; min-height: clamp(300px, 62vh, 530px); scroll-margin-top: calc(var(--bar-height) + 1.7rem); }
.journey-step:last-child { min-height: clamp(290px, 54vh, 500px); }
.journey-pin {
  position: absolute;
  top: 1.45rem;
  left: -2.55rem;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 2px solid var(--paper-border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: .86rem;
  transition: background .22s, box-shadow .22s;
}
.journey-step[data-passed] .journey-pin { background: #284b3b; color: #fff; }
.journey-step[aria-current] .journey-pin { background: var(--lime); color: var(--lime-ink); border-color: #172d24; box-shadow: 0 2px 0 #172d24; }
.journey-note { padding: clamp(.95rem, 2.4vw, 1.55rem); transition: opacity .25s, transform .25s, box-shadow .25s; }
.journey-note .paper-tag { margin-bottom: .76rem; transform: rotate(-5deg); }
.note-mint .paper-tag { background: var(--mint); }
.note-peach .paper-tag { background: var(--peach); }
.note-lavender .paper-tag { background: var(--lavender); }
.note-sky .paper-tag { background: var(--sky); }
.note-lime .paper-tag { background: var(--lime); }
.journey-note h2 { margin: 0 0 .48rem; font-size: clamp(1.35rem, 2.5vw, 2.1rem); font-weight: 830; line-height: 1.08; letter-spacing: -.06em; }
.journey-note p { margin-bottom: .75rem; color: var(--muted); font-size: .91rem; }
.journey-note .step-detail { padding: .55rem .68rem; border-inline-start: 3px solid var(--dot); border-radius: 3px; background: var(--soft); font-size: .8rem; }
[data-journey-ready] .journey-step:not([aria-current]) .journey-note { opacity: .71; box-shadow: 2px 3px 0 var(--paper-shadow); }
[data-journey-ready] .journey-step:not([aria-current]):hover .journey-note,
[data-journey-ready] .journey-step:not([aria-current]):focus-within .journey-note { opacity: 1; }
.journey-step[aria-current] .step-detail { background: var(--lime-soft); border-color: var(--focus); }

/* Spotlight guide and search */
.dashboard-tour {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 0;
  background: transparent;
  color: var(--text);
}
.dashboard-tour::backdrop { background: transparent; }
.tour-mask {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: #142a23b5;
}
.tour-mask[data-spotlight] {
  right: auto;
  bottom: auto;
  border: 3px solid #c9fa52;
  border-radius: 15px;
  background: transparent;
  box-shadow: 0 0 0 3px #c9fa5270, 0 0 0 200vmax #142a23b5;
}
.tour-mask[data-spotlight]::after {
  position: absolute;
  inset: -7px;
  border: 2px solid #d5ff68;
  border-radius: inherit;
  content: "";
  animation: spotlight 2s ease-out infinite;
}
@keyframes spotlight { 0% { opacity: .85; } 75%, 100% { inset: -13px; opacity: 0; } }
.tour-card {
  position: fixed;
  width: min(326px, calc(100% - 32px));
  padding: .88rem 1rem .95rem;
  border: 2px solid #172d24;
  border-radius: 15px;
  background: #fff9eb;
  color: #172d24;
  box-shadow: 5px 6px 0 #172d24;
}
.tour-card::after {
  position: absolute;
  z-index: -1;
  inset: auto -10px 24px auto;
  width: 17px;
  height: 17px;
  border: solid #172d24;
  border-width: 2px 2px 0 0;
  background: #fff9eb;
  transform: rotate(45deg);
  content: "";
}
.tour-card[data-placement="above"]::after { inset: auto auto -9px 27px; transform: rotate(135deg); }
.tour-card[data-placement="below"]::after { inset: -9px auto auto 27px; transform: rotate(-45deg); }
.tour-card[data-placement="overlay"]::after { display: none; }
.tour-counter { margin: 0 2rem .32rem 0; color: #405c4c; font-size: .67rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.tour-card h2 { margin: 0 1.35rem .34rem 0; color: inherit; font-size: 1.16rem; font-weight: 810; letter-spacing: -.04em; }
.tour-card h2 + p { margin: 0 0 .72rem; color: #3e5648; font-size: .79rem; line-height: 1.43; }
.tour-close {
  position: absolute;
  top: .45rem;
  right: .45rem;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: .8rem;
}
.tour-close:hover { background: #758e702b; }
.tour-dots { display: flex; gap: .27rem; margin: .15rem 0 .57rem; align-items: center; }
.tour-dots span { width: 7px; height: 7px; border-radius: 999px; background: #cbd5c5; }
.tour-dots span[data-passed] { background: #365445; }
.tour-dots span[data-active] { width: 22px; border: 1px solid #365445; background: var(--lime); }
.tour-actions { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; }
.tour-actions .button { min-height: 42px; border-color: #172d24; box-shadow: 0 3px 0 #172d24; }
.tour-previous {
  min-height: 42px;
  padding: .25rem .56rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #365445;
  font-size: .77rem;
  font-weight: 700;
}
.tour-previous:hover { background: #eaf0df; }
.tour-mascot {
  position: absolute;
  right: -91px;
  bottom: -2px;
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(2px 3px 0 #172d24);
}
.tour-card[data-placement]:not([data-placement="welcome"]) .tour-mascot { display: none; }
.search-dialog { position: fixed; width: min(460px, calc(100% - 32px)); padding: 1rem; }
.search-dialog::backdrop { background: #142a239e; }
.search-dialog-title h2 { margin: 0 2rem .7rem 0; font-weight: 800; }

.site-footer .theme-control { display: none; }

@media (max-width: 1100px) {
  :root { --rail-width: 224px; }
  .page-width { width: calc(100% - 48px); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(224px, .46fr); }
  .home-title-line { gap: .55rem; }
  .guide-replay { right: 1.25rem; }
  .guide-caption { display: none; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .list-columns, .item-row { grid-template-columns: minmax(128px, 1.35fr) minmax(105px, 1fr) minmax(95px, .55fr) 75px; gap: .58rem; }
}
@media (max-width: 900px) {
  :root {
    --rail-width: 0px;
    --mobile-header-height: calc(68px + env(safe-area-inset-top));
    --bar-height: calc(var(--mobile-header-height) + 46px);
  }
  body:has(.bar-notice[hidden]) { --bar-height: var(--mobile-header-height); }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  body[data-focus] { padding-bottom: 0; }
  .page-width { width: calc(100% - 48px); }
  .dashboard-rail { display: none; }
  .mobile-masthead {
    position: relative;
    display: grid;
    min-height: var(--mobile-header-height);
    place-items: center;
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid var(--border);
    background: var(--page);
  }
  .mobile-masthead .dashboard-brand strong { font-size: 1.9rem; }
  .mobile-masthead .brand-emblem { font-size: 1.32rem; }
  .bar-search {
    position: absolute;
    right: .85rem;
    bottom: 11px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 9px;
    color: var(--text);
    font-size: 1.1rem;
    text-decoration: none;
  }
  .bar-search:hover { background: var(--soft); color: var(--text); }
  .dashboard-bar-inner { min-height: 44px; gap: .44rem; padding: .23rem .7rem; }
  .bar-badge { padding: 0; border: 0; }
  .bar-badge > span:last-child, .bar-location > span { display: none; }
  .bar-actions { gap: .62rem; }
  .bar-actions .button { min-height: 34px; padding: .2rem .72rem; }
  .bar-dismiss { width: 24px; padding: 0; }
  .dashboard-dock {
    position: fixed;
    inset: auto 12px max(12px, calc(env(safe-area-inset-bottom) + 7px));
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: .14rem;
    padding: 4px;
    border: 2px solid var(--paper-border);
    border-radius: 22px;
    background: var(--aside-paper);
    box-shadow: 3px 4px 0 var(--paper-shadow);
  }
  .dock-link {
    position: relative;
    display: flex;
    min-width: 0;
    height: 49px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: .24rem;
    padding: .25rem .07rem .4rem;
    border-radius: 16px;
    color: var(--text);
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.08;
    text-decoration: none;
  }
  .dock-link:hover { background: var(--soft); color: var(--text); }
  .dock-link[aria-current="page"] { background: var(--lime); color: #0a0f0d; }
  .dock-link > .icon { display: grid; height: 23px; place-items: center; font-size: 1.28rem; }
  .dock-link .staff-avatar { width: 25px; height: 25px; }
  .dock-link .staff-avatar .map-pulse { width: 8px; height: 8px; }
  .dock-report[aria-current="page"] { background: transparent; color: var(--text); }
  .dock-report-icon {
    position: absolute;
    bottom: 23px;
    display: grid;
    width: min(47px, calc(100% - 4px));
    height: 42px;
    place-items: center;
    border: 2px solid #0a0f0d;
    border-radius: 15px;
    background: var(--lime);
    box-shadow: 2px 3px 0 #0a0f0d;
    transition: transform .16s, box-shadow .16s;
  }
  .dock-report-icon::before, .dock-report-icon::after {
    position: absolute;
    width: 21px;
    height: 4px;
    border-radius: 3px;
    background: #0a0f0d;
    content: "";
  }
  .dock-report-icon::after { transform: rotate(90deg); }
  .dock-report:hover .dock-report-icon { transform: translateY(-2px); }
  .dock-report:active .dock-report-icon { transform: translate(1px, 2px); box-shadow: 1px 1px 0 #0a0f0d; }
  .site-footer .theme-control { display: inline-flex; }
}
@media (max-width: 720px) {
  .dashboard-main { padding-top: 1.6rem; }
  .dashboard-heading { margin-bottom: 1rem; }
  .dashboard-heading h1 { font-size: clamp(1.92rem, 7.1vw, 3.15rem); line-height: 1.12; }
  .dashboard-heading > p:last-child { font-size: .86rem; }
  .dashboard-controls { margin-bottom: .95rem; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-bottom: 1.6rem; }
  .home-heading { margin-bottom: 0; }
  .home-eyebrow, .home-heading .page-switch { display: none; }
  .home-title-line { flex-wrap: nowrap; }
  .home-focus { width: 43px; height: 43px; }
  .dashboard-continue { margin-top: 3.15rem; }
  .guide-replay { right: 1.2rem; height: 53px; }
  .guide-replay img { width: 65px; height: 53px; }
  .guide-question { width: 23px; height: 23px; font-size: .78rem; }
  .dashboard-start { border-radius: 22px; box-shadow: 5px 6px 0 var(--paper-shadow); }
  .start-art { min-height: 124px; }
  .start-counter { width: 65px; height: 65px; }
  .start-counter-ring { width: 49px; height: 49px; border-width: 5px; }
  .start-counter-ring strong { font-size: 1.11rem; }
  .start-report { width: 100%; min-width: 0; }
  .dashboard-aside { max-height: none; margin-top: 0; padding: 0 .31rem .34rem 0; overflow: visible; }
  .journey-banner { grid-template-columns: auto minmax(0, 1fr); padding: .85rem; }
  .journey-banner .button { grid-column: 2; justify-self: start; }
  .journey-layout { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; margin-top: 1.55rem; }
  .journey-sticky { grid-area: auto; top: calc(var(--bar-height) + .42rem); }
  .journey-board { padding: .57rem .62rem; }
  .board-heading { margin-bottom: .57rem; }
  .stage-progress { margin-bottom: .55rem; }
  .stage-progress::before { top: 15px; }
  .stage-stop { gap: .24rem; }
  .stage-stop > span { width: 31px; height: 31px; }
  .board-scenes, .board-scene { min-height: 62px; }
  .board-scene { padding: .43rem .58rem; }
  .board-scene .paper-tag, .board-scene ul { display: none; }
  .scene-heading { margin: .16rem 0; }
  .scene-heading strong { font-size: .83rem; }
  .scene-heading small { font-size: .67rem; }
  .board-meter { margin-top: .53rem; }
  .journey-steps { grid-area: auto; padding-left: 2.1rem; }
  .journey-steps::before { left: 13px; }
  .journey-pin { left: -2.1rem; width: 28px; height: 28px; font-size: .7rem; }
  .journey-step { min-height: 315px; }
  .journey-step:last-child { min-height: max(315px, 54vh); }
  .journey-step, .journey-step:last-child { scroll-margin-top: calc(var(--bar-height) + 188px); }
  .tour-mascot { right: 16px; bottom: calc(100% + 10px); width: 61px; height: 61px; }
  .tour-card::after { inset: -9px 33px auto auto; transform: rotate(-45deg); }
}
@media (max-width: 400px) {
  .page-width { width: calc(100% - 38px); }
  .bar-actions { gap: .43rem; }
  .bar-guide { font-size: .73rem; }
  .bar-guide > .icon { display: none; }
  .bar-actions .button { min-height: 32px; padding: .18rem .54rem; font-size: .73rem; }
  .quick-links small { display: none; }
  .quick-links a { grid-template-columns: auto minmax(0, 1fr); }
}
@media (max-width: 340px) {
  .page-width { width: calc(100% - 30px); }
  .dashboard-dock { inset-inline: 8px; }
  .dock-link { font-size: .63rem; }
  .home-focus { width: 36px; height: 36px; }
}
@media (max-height: 510px) and (max-width: 900px) {
  .journey-sticky { position: static; }
  .journey-sticky .board-scenes { display: none; }
  .journey-step, .journey-step:last-child { scroll-margin-top: calc(var(--bar-height) + 14px); }
}
@media (max-height: 440px) {
  .tour-card { max-height: calc(100dvh - 30px); overflow-y: auto; }
  .tour-mascot, .tour-card::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pulse::after, .tour-mask::after, .journey-pin::after,
  .stage-stop > span::after, .board-scene { animation: none !important; }
  .quick-links a, .stage-stop > span, .dock-report-icon { transform: none !important; }
}
