:root {
  --warm-white: #fffaf0;
  --ivory: #fffdf8;
  --paper: #fff7e4;
  --flax-gold: #f3d889;
  --champagne: #ead2a2;
  --caramel: #c98d2e;
  --amber: #d9a441;
  --glow-primary: rgba(243, 216, 137, 0.42);
  --glow-secondary: rgba(255, 250, 240, 0.96);
  --glow-wash: #fff5dc;
  --glow-line: rgba(201, 141, 46, 0.055);
  --ambient-haze: 0.11;
  --ambient-blue-haze: 0.05;
  --ambient-particle-opacity: 0.88;
  --ambient-cursor-alpha: 0.45;
  --ambient-canvas-filter: saturate(1.06);
  --scroll-progress: 0;
  --scroll-drift: 0px;
  --scroll-glow: 0.28;
  --scene-bloom: rgba(255, 245, 214, 0.24);
  --scene-haze: rgba(243, 216, 137, 0.12);
  --scene-blue: rgba(125, 152, 199, 0.055);
  --scene-line: rgba(201, 141, 46, 0.055);
  --uniform-navy: #2f344f;
  --ribbon-red: #c94b5d;
  --birthstone-blue: #7d98c7;
  --soft-brown: #8b6846;
  --ink: #34291d;
  --muted: #756653;
  --line: rgba(201, 141, 46, 0.24);
  --glass: rgba(255, 253, 248, 0.78);
  --glass-strong: rgba(255, 253, 248, 0.92);
  --shadow: 0 24px 70px rgba(80, 55, 28, 0.18);
  --shadow-soft: 0 14px 40px rgba(80, 55, 28, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max: 1180px;
  --font-display: "Noto Serif SC", "Noto Serif JP", "Songti SC", serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --font-accent: "Ma Shan Zheng", "KaiTi", cursive;
  --font-mono: "Courier New", monospace;
}

html[data-glow="morning"] {
  --warm-white: #fffdf8;
  --paper: #fff9ed;
  --flax-gold: #f1dd9d;
  --champagne: #efe1bd;
  --caramel: #b98a3a;
  --glow-primary: rgba(241, 221, 157, 0.32);
  --glow-secondary: rgba(247, 252, 255, 0.94);
  --glow-wash: #f7fbff;
  --glow-line: rgba(185, 138, 58, 0.045);
}

html[data-glow="amber"] {
  --warm-white: #fff6e8;
  --paper: #ffedd2;
  --flax-gold: #f5c974;
  --champagne: #e7bf82;
  --caramel: #bd7624;
  --amber: #d48a32;
  --glow-primary: rgba(245, 201, 116, 0.46);
  --glow-secondary: rgba(255, 234, 204, 0.9);
  --glow-wash: #ffe4bd;
  --glow-line: rgba(189, 118, 36, 0.06);
}

html[data-glow="blue"] {
  --warm-white: #f5f8ff;
  --paper: #eef4ff;
  --flax-gold: #ead28a;
  --champagne: #d9d6b9;
  --caramel: #aa8844;
  --birthstone-blue: #6684bd;
  --glow-primary: rgba(125, 152, 199, 0.28);
  --glow-secondary: rgba(255, 253, 248, 0.78);
  --glow-wash: #eaf1ff;
  --glow-line: rgba(102, 132, 189, 0.055);
}

html[data-ambient="soft"] {
  --ambient-haze: 0.05;
  --ambient-blue-haze: 0.025;
  --ambient-particle-opacity: 0.46;
  --ambient-cursor-alpha: 0.3;
  --ambient-canvas-filter: saturate(1.02);
}

html[data-ambient="rich"] {
  --ambient-haze: 0.18;
  --ambient-blue-haze: 0.08;
  --ambient-particle-opacity: 1;
  --ambient-cursor-alpha: 0.62;
  --ambient-canvas-filter: saturate(1.14) contrast(1.02);
}

html[data-scene="morning"] {
  --scene-bloom: rgba(255, 252, 238, 0.42);
  --scene-haze: rgba(243, 216, 137, 0.14);
  --scene-blue: rgba(210, 231, 255, 0.12);
  --scene-line: rgba(241, 221, 157, 0.065);
}

html[data-scene="after-school"] {
  --scene-bloom: rgba(255, 222, 166, 0.28);
  --scene-haze: rgba(217, 164, 65, 0.17);
  --scene-blue: rgba(47, 52, 79, 0.075);
  --scene-line: rgba(201, 141, 46, 0.075);
}

html[data-scene="night"] {
  --scene-bloom: rgba(255, 203, 124, 0.18);
  --scene-haze: rgba(201, 141, 46, 0.12);
  --scene-blue: rgba(47, 52, 79, 0.16);
  --scene-line: rgba(125, 152, 199, 0.06);
}

html[data-scene="winter"] {
  --scene-bloom: rgba(255, 255, 255, 0.36);
  --scene-haze: rgba(234, 210, 162, 0.1);
  --scene-blue: rgba(125, 152, 199, 0.14);
  --scene-line: rgba(125, 152, 199, 0.055);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  background:
    radial-gradient(circle at 50% -4%, var(--scene-bloom), transparent 30%),
    radial-gradient(circle at 16% 8%, var(--glow-primary), transparent 30%),
    radial-gradient(circle at 82% 14%, var(--glow-secondary), transparent 26%),
    linear-gradient(135deg, var(--warm-white), var(--glow-wash) 52%, var(--ivory));
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(var(--scene-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--scene-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.22));
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 0%, var(--scene-bloom), transparent 30%),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, var(--ambient-haze)), transparent 32%),
    radial-gradient(circle at 74% 32%, rgba(243, 216, 137, var(--ambient-haze)), transparent 34%),
    radial-gradient(circle at 72% 70%, var(--scene-haze), transparent 34%),
    radial-gradient(circle at 48% 86%, rgba(125, 152, 199, var(--ambient-blue-haze)), transparent 36%),
    radial-gradient(circle at 8% 76%, var(--scene-blue), transparent 38%);
}

body.is-transitioning {
  overflow: hidden;
}

body.is-drawer-open {
  overflow: hidden;
}

body.is-command-open {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 120;
  transform: translateY(-140%);
  border: 1px solid rgba(201, 141, 46, 0.42);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  padding: 10px 16px;
  color: var(--uniform-navy);
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid rgba(125, 152, 199, 0.42);
  outline-offset: 3px;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid rgba(125, 152, 199, 0.48);
  outline-offset: 3px;
}

main:focus-visible {
  outline: 0;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 9vw, 7rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

h3 {
  font-size: 1.22rem;
}

p {
  margin: 0 0 16px;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: var(--ambient-particle-opacity);
  filter: var(--ambient-canvas-filter);
  pointer-events: none;
  transform: translateZ(0);
  transition: opacity 220ms ease, filter 220ms ease;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  pointer-events: none;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--caramel);
  box-shadow: 0 0 20px rgba(201, 141, 46, var(--ambient-cursor-alpha));
}

.cursor-ring {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 141, 46, 0.52);
  background: rgba(255, 250, 240, 0.14);
  backdrop-filter: blur(8px);
  transition: width 180ms ease, height 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cursor-ring.is-hovering {
  width: 70px;
  height: 70px;
  border-color: rgba(47, 52, 79, 0.5);
  background: rgba(243, 216, 137, 0.18);
}

.cursor-ripple,
.heart-burst,
.confetti-piece,
.motion-spark {
  position: fixed;
  z-index: 999;
  pointer-events: none;
}

.site-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: clip;
  contain: layout paint size;
  pointer-events: none;
  opacity: calc(0.52 + var(--scroll-glow) * 0.36);
  mix-blend-mode: screen;
  transform: translate3d(0, var(--scroll-drift), 0);
  transition: opacity 260ms ease;
}

.site-atmosphere__beam,
.site-atmosphere__thread {
  position: absolute;
  pointer-events: none;
  content: "";
}

.site-atmosphere__beam {
  width: min(76vw, 780px);
  height: 28vh;
  opacity: 0.44;
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(255, 253, 248, 0.18) 38%, rgba(243, 216, 137, 0.18) 49%, rgba(255, 253, 248, 0.13) 62%, transparent 84%),
    repeating-linear-gradient(105deg, transparent 0 18px, rgba(255, 255, 255, 0.08) 19px 20px, transparent 21px 52px);
  filter: blur(1px);
  transform: rotate(-14deg);
  animation: atmosphere-beam 13s ease-in-out infinite alternate;
}

.site-atmosphere__beam--one {
  top: 8vh;
  left: -12vw;
}

.site-atmosphere__beam--two {
  right: -18vw;
  bottom: 16vh;
  opacity: 0.32;
  animation-duration: 16s;
  animation-delay: -4s;
}

.site-atmosphere__thread {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 216, 137, 0.34), rgba(255, 253, 248, 0.5), transparent);
  box-shadow: 0 0 18px rgba(243, 216, 137, 0.3);
  transform: rotate(-7deg);
  animation: atmosphere-thread 9s ease-in-out infinite;
}

.site-atmosphere__thread--one {
  top: 34vh;
  left: -10vw;
}

.site-atmosphere__thread--two {
  right: -18vw;
  bottom: 30vh;
  animation-duration: 12s;
  animation-delay: -5s;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 900;
  contain: paint;
  pointer-events: none;
  overflow: clip;
  opacity: 0;
  background: radial-gradient(circle at var(--tx, 50%) var(--ty, 50%), rgba(255, 250, 240, 0.98), rgba(243, 216, 137, 0.76), rgba(47, 52, 79, 0.16));
  transform: translateZ(0);
}

.page-transition::before,
.page-transition::after {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  content: "";
  opacity: 0;
}

.page-transition::before {
  background: linear-gradient(105deg, transparent 10%, rgba(255, 253, 248, 0.72) 42%, rgba(243, 216, 137, 0.42) 50%, transparent 68%);
  transform: translateX(-35%) rotate(-8deg);
}

.page-transition::after {
  background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, 0.16) 27px 28px, transparent 29px 58px);
  transform: translateY(18px);
}

.page-transition.is-active {
  opacity: 1;
  animation: page-enter 520ms ease both;
}

.page-transition.is-active::before {
  animation: transition-ribbon 520ms ease both;
}

.page-transition.is-active::after {
  animation: transition-lines 520ms ease both;
}

.section,
.page-hero {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(52px, 8vw, 96px) 0;
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(70px, 10vw, 128px) 0 clamp(32px, 5vw, 58px);
}

.motion-section {
  isolation: isolate;
}

.motion-section__glow {
  position: absolute;
  inset: clamp(8px, 2vw, 20px) 0 auto;
  z-index: -1;
  width: 100%;
  height: min(36vh, 280px);
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(100deg, transparent 8%, rgba(255, 253, 248, 0.22) 28%, rgba(243, 216, 137, 0.18) 46%, rgba(125, 152, 199, 0.06) 64%, transparent 86%),
    repeating-linear-gradient(100deg, transparent 0 30px, rgba(255, 255, 255, 0.08) 31px 32px, transparent 33px 68px);
  filter: blur(10px);
  transform: translate3d(0, 18px, 0) skewY(-2deg);
  transition: opacity 520ms ease, transform 720ms ease;
}

.motion-section.is-current-motion-section .motion-section__glow {
  opacity: 0.72;
  transform: translate3d(0, 0, 0) skewY(-2deg);
  animation: section-glow-drift 8s ease-in-out infinite alternate;
}

.motion-surface {
  --mx: 50%;
  --my: 50%;
  --spot-x: 50%;
  --spot-y: 50%;
  --magnet-x: 0px;
  --magnet-y: 0px;
  --img-x: 0px;
  --img-y: 0px;
  position: relative;
  isolation: isolate;
}

.motion-shine {
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.64), rgba(243, 216, 137, 0.2) 18%, transparent 42%),
    linear-gradient(112deg, transparent 0 34%, rgba(255, 255, 255, 0.35) 45%, rgba(243, 216, 137, 0.16) 53%, transparent 68%);
  mix-blend-mode: screen;
  transform: translate3d(-8px, 8px, 0);
  transition: opacity 200ms ease, transform 260ms ease;
}

.motion-surface > :not(.motion-shine):not(.motion-section__glow) {
  position: relative;
  z-index: 1;
}

.has-rich-site-motion .motion-surface:hover .motion-shine,
.has-rich-site-motion .motion-surface:focus-visible .motion-shine,
.has-rich-site-motion .motion-surface.is-motion-pressed .motion-shine {
  opacity: 0.78;
  transform: translate3d(0, 0, 0);
}

.has-rich-site-motion .motion-surface:hover {
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(255, 255, 255, 0.24),
    0 22px 54px rgba(201, 141, 46, 0.16);
}

.motion-magnetic {
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  will-change: transform;
}

.button.motion-magnetic:hover {
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0) translateY(-2px);
}

.site-nav__link.motion-magnetic:hover,
.site-nav__link.motion-magnetic.is-active,
.site-nav__link.motion-magnetic[aria-current="page"] {
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0);
}

.motion-depth-image {
  will-change: transform, filter;
}

.has-rich-site-motion .motion-surface:hover .motion-depth-image {
  filter: saturate(1.1) brightness(1.05);
  transform: translate3d(var(--img-x), var(--img-y), 0) scale(1.045);
}

.compact-hero {
  display: block;
  max-width: 860px;
  text-align: center;
}

.page-copy p,
.section-heading p,
.panel p,
.site-footer p {
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--caramel);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 12px clamp(16px, 4vw, 46px);
  border-bottom: 1px solid rgba(234, 210, 162, 0.5);
  background: rgba(255, 250, 240, 0.72);
  backdrop-filter: blur(20px);
  transition: min-height 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  min-height: 60px;
  background: rgba(255, 250, 240, 0.9);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 250, 240, 0.46);
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--flax-gold), var(--caramel), var(--birthstone-blue));
  box-shadow: 0 0 18px rgba(201, 141, 46, 0.42);
  transition: width 90ms linear;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--uniform-navy);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  color: var(--uniform-navy);
  place-items: center;
  border: 1px solid rgba(201, 141, 46, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(135deg, var(--flax-gold), var(--warm-white));
  box-shadow: 0 16px 32px rgba(201, 141, 46, 0.24);
  font-family: var(--font-display);
  font-weight: 900;
}

.brand strong {
  display: block;
  font-weight: 900;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--soft-brown);
  font-size: 0.74rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav__link {
  position: relative;
  flex: 0 0 auto;
  padding: 9px 11px;
  color: var(--soft-brown);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav__link::after {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--caramel);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--uniform-navy);
  background: rgba(243, 216, 137, 0.3);
}

.site-nav__link[aria-current="page"] {
  color: var(--uniform-navy);
  border: 1px solid rgba(201, 141, 46, 0.42);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.78), transparent 36%),
    linear-gradient(135deg, rgba(243, 216, 137, 0.42), rgba(255, 253, 248, 0.82));
  box-shadow:
    0 10px 24px rgba(201, 141, 46, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.site-nav__toolkit {
  display: none;
  cursor: pointer;
  appearance: none;
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  width: 62%;
}

.site-nav__link[aria-current="page"]::after {
  width: 70%;
  height: 3px;
  background: linear-gradient(90deg, var(--flax-gold), var(--caramel));
}

.site-actions {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-trigger-bank {
  display: none;
}

.nav-toggle,
.site-drawer-toggle,
.site-search-toggle,
.site-toolkit-toggle,
.site-focus-toggle,
.site-motion-toggle,
.site-palette-toggle,
.site-scene-toggle,
.site-tour-toggle,
.site-daily-toggle,
.site-mood-toggle,
.site-note-toggle,
.site-data-toggle,
.site-favorite-toggle,
.theme-toggle {
  flex: 0 0 auto;
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.32);
  background: rgba(255, 253, 248, 0.84);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--uniform-navy);
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.theme-toggle,
.site-search-toggle,
.site-toolkit-toggle,
.site-focus-toggle,
.site-motion-toggle,
.site-palette-toggle,
.site-scene-toggle,
.site-tour-toggle,
.site-daily-toggle,
.site-mood-toggle,
.site-note-toggle,
.site-data-toggle,
.site-favorite-toggle {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--uniform-navy);
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 999px;
}

.site-search-toggle {
  min-width: 64px;
  background: rgba(255, 253, 248, 0.84);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-search-toggle:hover,
.site-search-toggle[aria-expanded="true"] {
  background: rgba(243, 216, 137, 0.34);
  box-shadow: 0 14px 30px rgba(201, 141, 46, 0.18);
  transform: translateY(-1px);
}

.site-toolkit-toggle {
  min-width: 64px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(243, 216, 137, 0.2), rgba(125, 152, 199, 0.1));
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-toolkit-toggle:hover,
.site-toolkit-toggle[aria-expanded="true"] {
  color: var(--uniform-navy);
  background: rgba(243, 216, 137, 0.36);
  box-shadow: 0 14px 30px rgba(201, 141, 46, 0.18);
  transform: translateY(-1px);
}

.site-focus-toggle {
  min-width: 64px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.88), rgba(243, 216, 137, 0.18));
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-focus-toggle:hover,
.site-focus-toggle[aria-pressed="true"] {
  color: var(--uniform-navy);
  background: rgba(243, 216, 137, 0.38);
  box-shadow: 0 14px 30px rgba(201, 141, 46, 0.18);
  transform: translateY(-1px);
}

.site-motion-toggle {
  min-width: 78px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.88), rgba(125, 152, 199, 0.14));
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-motion-toggle:hover,
.site-motion-toggle[aria-pressed="true"] {
  color: var(--uniform-navy);
  background: rgba(125, 152, 199, 0.22);
  box-shadow: 0 14px 30px rgba(125, 152, 199, 0.16);
  transform: translateY(-1px);
}

.site-palette-toggle {
  min-width: 64px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.88), rgba(243, 216, 137, 0.26));
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-palette-toggle:hover,
.site-palette-toggle[aria-expanded="true"] {
  color: var(--uniform-navy);
  background: rgba(243, 216, 137, 0.38);
  box-shadow: 0 14px 30px rgba(201, 141, 46, 0.18);
  transform: translateY(-1px);
}

.site-scene-toggle {
  min-width: 64px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), var(--scene-bloom));
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-scene-toggle:hover,
.site-scene-toggle[aria-expanded="true"] {
  color: var(--uniform-navy);
  background: rgba(255, 240, 190, 0.46);
  box-shadow: 0 14px 30px rgba(201, 141, 46, 0.18);
  transform: translateY(-1px);
}

.site-tour-toggle {
  min-width: 64px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(125, 152, 199, 0.13));
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-tour-toggle:hover,
.site-tour-toggle[aria-expanded="true"] {
  color: var(--uniform-navy);
  background: rgba(125, 152, 199, 0.18);
  box-shadow: 0 14px 30px rgba(125, 152, 199, 0.15);
  transform: translateY(-1px);
}

.site-daily-toggle {
  min-width: 64px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(243, 216, 137, 0.22));
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-daily-toggle:hover,
.site-daily-toggle[aria-expanded="true"] {
  color: var(--uniform-navy);
  background: rgba(243, 216, 137, 0.38);
  box-shadow: 0 14px 30px rgba(201, 141, 46, 0.18);
  transform: translateY(-1px);
}

.site-mood-toggle {
  min-width: 64px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(201, 75, 93, 0.12), rgba(243, 216, 137, 0.16));
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-mood-toggle:hover,
.site-mood-toggle[aria-expanded="true"] {
  color: var(--uniform-navy);
  background: rgba(255, 235, 210, 0.55);
  box-shadow: 0 14px 30px rgba(201, 141, 46, 0.18);
  transform: translateY(-1px);
}

.site-note-toggle {
  min-width: 64px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(255, 247, 228, 0.78));
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-note-toggle:hover,
.site-note-toggle.has-note,
.site-note-toggle[aria-expanded="true"] {
  color: var(--uniform-navy);
  background: rgba(243, 216, 137, 0.34);
  box-shadow: 0 14px 30px rgba(201, 141, 46, 0.18);
  transform: translateY(-1px);
}

.site-data-toggle {
  min-width: 64px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(243, 216, 137, 0.2));
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-data-toggle:hover,
.site-data-toggle[aria-expanded="true"] {
  color: var(--uniform-navy);
  background: rgba(255, 240, 190, 0.52);
  box-shadow: 0 14px 30px rgba(201, 141, 46, 0.18);
  transform: translateY(-1px);
}

.site-favorite-toggle {
  min-width: 68px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.88), rgba(255, 247, 228, 0.78));
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-favorite-toggle:hover,
.site-favorite-toggle[aria-pressed="true"] {
  color: var(--ivory);
  border-color: rgba(201, 141, 46, 0.18);
  background: linear-gradient(135deg, var(--caramel), var(--amber));
  box-shadow: 0 14px 30px rgba(201, 141, 46, 0.22);
  transform: translateY(-1px);
}

.site-favorite-toggle[aria-pressed="true"] {
  min-width: 78px;
}

.site-drawer-toggle {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--uniform-navy);
  font-size: 0.82rem;
  font-weight: 900;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(201, 141, 46, 0.12);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-drawer-toggle:hover,
.site-drawer-toggle[aria-expanded="true"] {
  background: rgba(243, 216, 137, 0.36);
  box-shadow: 0 14px 30px rgba(201, 141, 46, 0.2);
  transform: translateY(-1px);
}

body.is-focus-mode .site-header {
  background: rgba(255, 250, 240, 0.56);
}

body.is-focus-mode .quick-dock,
body.is-focus-mode .back-to-top {
  opacity: 0.24;
  transition: opacity 180ms ease, transform 180ms ease;
}

body.is-focus-mode .quick-dock:hover,
body.is-focus-mode .back-to-top:hover {
  opacity: 1;
}

body.is-focus-mode .site-footer {
  opacity: 0.64;
}

body.is-low-motion .particle-canvas,
body.is-low-motion .cursor-dot,
body.is-low-motion .cursor-ring {
  display: none;
}

body.is-low-motion *,
body.is-low-motion *::before,
body.is-low-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

.glow-panel {
  position: fixed;
  right: 18px;
  top: 92px;
  z-index: 84;
  display: grid;
  gap: 14px;
  width: min(380px, calc(100vw - 36px));
  padding: 18px;
  color: var(--ink);
  border: 1px solid rgba(234, 210, 162, 0.68);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 0%, var(--glow-primary), transparent 34%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 228, 0.94));
  box-shadow: 0 24px 70px rgba(80, 55, 28, 0.2);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.scene-panel {
  position: fixed;
  right: 18px;
  top: 148px;
  z-index: 84;
  display: grid;
  gap: 14px;
  width: min(420px, calc(100vw - 36px));
  padding: 18px;
  color: var(--ink);
  border: 1px solid rgba(234, 210, 162, 0.68);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 0%, var(--scene-bloom), transparent 36%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 228, 0.94));
  box-shadow: 0 24px 70px rgba(80, 55, 28, 0.2);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.scene-panel[hidden] {
  display: none;
}

.scene-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scene-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.scene-panel__head h2 {
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.05;
}

.scene-panel__head button {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.26);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 253, 248, 0.88);
  font-size: 1.2rem;
  line-height: 1;
}

.scene-status {
  margin: 0;
  color: var(--soft-brown);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.7;
}

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

.scene-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.74);
  box-shadow: 0 10px 24px rgba(80, 55, 28, 0.08);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.scene-option:hover,
.scene-option[aria-pressed="true"] {
  border-color: rgba(201, 141, 46, 0.54);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 34px rgba(80, 55, 28, 0.14);
  transform: translateY(-1px);
}

.scene-option span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(80, 55, 28, 0.16);
}

.scene-option strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.scene-option small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
}

.scene-option--morning span {
  background: linear-gradient(135deg, #ffffff, #fff2bc, #f3d889);
}

.scene-option--after-school span {
  background: linear-gradient(135deg, #fff4ca, #d9a441, #2f344f);
}

.scene-option--night span {
  background: linear-gradient(135deg, #ffe0a3, #8b6846, #2f344f);
}

.scene-option--winter span {
  background: linear-gradient(135deg, #ffffff, #dcecff, #7d98c7);
}

.toolkit-panel {
  position: fixed;
  right: 18px;
  top: 92px;
  z-index: 85;
  display: grid;
  gap: 14px;
  width: min(620px, calc(100vw - 36px));
  max-height: calc(100vh - 112px);
  padding: 18px;
  color: var(--ink);
  overflow: auto;
  border: 1px solid rgba(234, 210, 162, 0.68);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 0%, var(--scene-bloom), transparent 34%),
    radial-gradient(circle at 80% 8%, rgba(125, 152, 199, 0.1), transparent 32%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 228, 0.94));
  box-shadow: 0 26px 76px rgba(80, 55, 28, 0.2);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toolkit-panel[hidden] {
  display: none;
}

.toolkit-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toolkit-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.toolkit-panel__head h2 {
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.05;
}

.toolkit-panel__head button {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.26);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 253, 248, 0.88);
  font-size: 1.2rem;
  line-height: 1;
}

.toolkit-panel__lead {
  margin: 0;
  color: var(--soft-brown);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.7;
}

.toolkit-routes {
  display: grid;
  gap: 10px;
}

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

.toolkit-routes__head h3 {
  margin: 0;
  color: var(--uniform-navy);
  font-size: 1rem;
  line-height: 1.2;
}

.toolkit-routes__head small {
  color: var(--caramel);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.toolkit-summary article {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(201, 141, 46, 0.2);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 18% 0%, rgba(243, 216, 137, 0.22), transparent 45%),
    rgba(255, 253, 248, 0.68);
  box-shadow: 0 10px 24px rgba(80, 55, 28, 0.07);
}

.toolkit-summary span {
  overflow: hidden;
  color: var(--uniform-navy);
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolkit-summary small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.toolkit-state {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(201, 141, 46, 0.2);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(246, 224, 179, 0.42)),
    rgba(255, 255, 255, 0.72);
}

.toolkit-state__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolkit-state__head h3 {
  margin: 0;
  color: var(--uniform-navy);
  font-size: 0.98rem;
  line-height: 1.2;
}

.toolkit-state__head small {
  color: var(--caramel);
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.toolkit-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.toolkit-state-grid article {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(201, 141, 46, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.58);
}

.toolkit-state-grid span {
  overflow: hidden;
  color: var(--uniform-navy);
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolkit-state-grid small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
}

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

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

.toolkit-grid button {
  display: grid;
  gap: 5px;
  min-height: 116px;
  padding: 13px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 24px rgba(80, 55, 28, 0.08);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.toolkit-grid--routes .toolkit-route {
  align-content: start;
  min-height: 128px;
  background:
    radial-gradient(circle at 100% 0%, rgba(243, 216, 137, 0.24), transparent 42%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.88), rgba(255, 247, 228, 0.72));
}

.toolkit-grid--routes .toolkit-route--wide {
  grid-column: 1 / -1;
  min-height: 138px;
  padding: 16px;
  border-color: rgba(201, 141, 46, 0.3);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.86), transparent 38%),
    radial-gradient(circle at 94% 12%, rgba(243, 216, 137, 0.34), transparent 36%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(246, 224, 179, 0.6));
}

.toolkit-grid button:hover {
  border-color: rgba(201, 141, 46, 0.52);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 34px rgba(80, 55, 28, 0.14);
  transform: translateY(-1px);
}

.toolkit-grid span {
  justify-self: start;
  padding: 3px 8px;
  color: var(--soft-brown);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  border: 1px solid rgba(201, 141, 46, 0.18);
  border-radius: 999px;
  background: rgba(243, 216, 137, 0.22);
}

.toolkit-grid strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.toolkit-route--wide strong {
  font-size: 1.08rem;
}

.toolkit-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.45;
}

.toolkit-navigator {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(201, 141, 46, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.62);
}

.toolkit-navigator__head,
.toolkit-recommendations__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolkit-navigator__head h3,
.toolkit-recommendations__head h3 {
  margin: 0;
  color: var(--uniform-navy);
  font-size: 0.98rem;
  line-height: 1.2;
}

.toolkit-navigator__head small,
.toolkit-recommendations__head small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}

.toolkit-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolkit-sections a,
.toolkit-sections p {
  margin: 0;
  padding: 8px 10px;
  color: var(--soft-brown);
  border: 1px solid rgba(201, 141, 46, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
}

.toolkit-sections a:hover {
  color: var(--uniform-navy);
  border-color: rgba(201, 141, 46, 0.44);
  background: rgba(255, 253, 248, 0.96);
}

.toolkit-recommendations {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(201, 141, 46, 0.2);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 88% 0%, rgba(125, 152, 199, 0.1), transparent 42%),
    rgba(255, 253, 248, 0.58);
}

.toolkit-next-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.toolkit-next-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.toolkit-next-card {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 11px;
  color: var(--uniform-navy);
  border: 1px solid rgba(201, 141, 46, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 24px rgba(80, 55, 28, 0.07);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.toolkit-next-card:hover {
  border-color: rgba(201, 141, 46, 0.48);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 32px rgba(80, 55, 28, 0.12);
  transform: translateY(-1px);
}

.toolkit-next-card span {
  color: var(--caramel);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolkit-next-card strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.2;
}

.toolkit-next-card small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 820;
  line-height: 1.42;
}

.toolkit-preferences {
  gap: 12px;
}

.toolkit-quiet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolkit-quiet-actions button {
  min-height: 0;
  padding: 8px 11px;
  color: var(--soft-brown);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.68);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.toolkit-quiet-actions button:hover {
  color: var(--uniform-navy);
  border-color: rgba(201, 141, 46, 0.46);
  background: rgba(255, 253, 248, 0.96);
  transform: translateY(-1px);
}

.mood-panel {
  position: fixed;
  right: 18px;
  top: 206px;
  z-index: 84;
  display: grid;
  gap: 14px;
  width: min(430px, calc(100vw - 36px));
  max-height: calc(100vh - 112px);
  padding: 18px;
  color: var(--ink);
  overflow: auto;
  border: 1px solid rgba(234, 210, 162, 0.68);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 14% 0%, rgba(201, 75, 93, 0.12), transparent 34%),
    radial-gradient(circle at 82% 10%, var(--scene-bloom), transparent 36%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 228, 0.94));
  box-shadow: 0 24px 70px rgba(80, 55, 28, 0.2);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.mood-panel[hidden] {
  display: none;
}

.mood-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mood-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mood-panel__head h2 {
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.05;
}

.mood-panel__head button {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.26);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 253, 248, 0.88);
  font-size: 1.2rem;
  line-height: 1;
}

.mood-status {
  margin: 0;
  color: var(--soft-brown);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.7;
}

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

.mood-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.74);
  box-shadow: 0 10px 24px rgba(80, 55, 28, 0.08);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.mood-option:hover,
.mood-option[aria-pressed="true"] {
  border-color: rgba(201, 141, 46, 0.54);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 34px rgba(80, 55, 28, 0.14);
  transform: translateY(-1px);
}

.mood-option span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(80, 55, 28, 0.16);
}

.mood-option strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.mood-option small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
}

.mood-option--quiet span {
  background: linear-gradient(135deg, #f7fbff, #9ab2dc, #2f344f);
}

.mood-option--soft span {
  background: linear-gradient(135deg, #ffffff, #f3d889, #fff0c7);
}

.mood-option--cook span {
  background: linear-gradient(135deg, #fff1ce, #d9a441, #8b6846);
}

.mood-option--spark span {
  background: linear-gradient(135deg, #fff5dc, #f4b5c0, #c94b5d);
}

.mood-suggestion {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(201, 141, 46, 0.2);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 8% 0%, rgba(243, 216, 137, 0.2), transparent 42%),
    rgba(255, 253, 248, 0.7);
}

.mood-suggestion span {
  color: var(--caramel);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mood-suggestion h3 {
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.mood-suggestion p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.65;
}

.mood-history {
  display: grid;
  gap: 8px;
}

.mood-history h3 {
  margin: 0;
  color: var(--soft-brown);
  font-size: 0.82rem;
}

.mood-history [data-mood-history-list] {
  display: grid;
  gap: 8px;
}

.mood-history p,
.mood-history__item {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(201, 141, 46, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.62);
}

.mood-history__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.mood-history__item strong {
  color: var(--uniform-navy);
  font-size: 0.82rem;
}

.mood-history__item span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.glow-panel[hidden] {
  display: none;
}

.glow-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.glow-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.glow-panel__head h2 {
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.05;
}

.glow-panel__head button {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.26);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 253, 248, 0.88);
  font-size: 1.2rem;
  line-height: 1;
}

.glow-status {
  margin: 0;
  color: var(--soft-brown);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.7;
}

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

.glow-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.74);
  box-shadow: 0 10px 24px rgba(80, 55, 28, 0.08);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.glow-option:hover,
.glow-option[aria-pressed="true"] {
  border-color: rgba(201, 141, 46, 0.54);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 34px rgba(80, 55, 28, 0.14);
  transform: translateY(-1px);
}

.glow-option span {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(80, 55, 28, 0.16);
}

.glow-option strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.glow-option small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.glow-option--gold span {
  background: linear-gradient(135deg, #fff7d6, #f3d889, #c98d2e);
}

.glow-option--morning span {
  background: linear-gradient(135deg, #ffffff, #eaf7ff, #f1dd9d);
}

.glow-option--amber span {
  background: linear-gradient(135deg, #fff1ce, #f5c974, #bd7624);
}

.glow-option--blue span {
  background: linear-gradient(135deg, #f4f8ff, #9ab2dc, #2f344f);
}

.ambient-control {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.ambient-control__label {
  margin: 0;
  color: var(--soft-brown);
  font-size: 0.82rem;
  font-weight: 900;
}

.ambient-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ambient-options button {
  min-height: 38px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.74);
  font-size: 0.78rem;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ambient-options button:hover,
.ambient-options button[aria-pressed="true"] {
  border-color: rgba(201, 141, 46, 0.54);
  background: rgba(243, 216, 137, 0.32);
  box-shadow: 0 12px 28px rgba(80, 55, 28, 0.12);
  transform: translateY(-1px);
}

.ambient-control small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.55;
}

.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 86;
  background: rgba(52, 41, 29, 0.24);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.tour-backdrop.is-open {
  opacity: 1;
}

.tour-backdrop[hidden],
.tour-panel[hidden] {
  display: none;
}

.tour-panel {
  position: fixed;
  right: 18px;
  top: 92px;
  z-index: 92;
  display: grid;
  gap: 16px;
  width: min(560px, calc(100vw - 36px));
  max-height: calc(100vh - 120px);
  padding: clamp(18px, 3vw, 24px);
  overflow: auto;
  color: var(--ink);
  border: 1px solid rgba(234, 210, 162, 0.72);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 0%, var(--glow-primary), transparent 34%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 228, 0.95));
  box-shadow: 0 30px 90px rgba(80, 55, 28, 0.24);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.tour-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tour-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.tour-panel__head h2 {
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.05;
}

.tour-panel__head button {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.26);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 253, 248, 0.88);
  font-size: 1.3rem;
  line-height: 1;
}

.tour-panel__lead {
  margin: 0;
  color: var(--soft-brown);
  font-weight: 800;
  line-height: 1.8;
}

.tour-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.tour-meter__bar {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 141, 46, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.68);
}

.tour-meter__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--flax-gold), var(--caramel));
  transition: width 260ms ease;
}

.tour-meter strong {
  color: var(--uniform-navy);
  font-size: 0.86rem;
}

.tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.tour-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(201, 141, 46, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tour-step:hover,
.tour-step.is-current {
  border-color: rgba(201, 141, 46, 0.54);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 32px rgba(80, 55, 28, 0.12);
  transform: translateY(-1px);
}

.tour-step[aria-current="page"] {
  border-color: rgba(201, 141, 46, 0.62);
  background:
    radial-gradient(circle at 100% 0%, rgba(243, 216, 137, 0.32), transparent 38%),
    rgba(255, 253, 248, 0.96);
  box-shadow: 0 16px 34px rgba(80, 55, 28, 0.14);
}

.tour-step.is-done {
  border-color: rgba(201, 141, 46, 0.36);
  background:
    linear-gradient(135deg, rgba(243, 216, 137, 0.22), rgba(255, 253, 248, 0.86));
}

.tour-step[aria-current="page"].is-done {
  border-color: rgba(201, 141, 46, 0.72);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 244, 194, 0.5), transparent 38%),
    linear-gradient(135deg, rgba(243, 216, 137, 0.42), rgba(255, 253, 248, 0.98) 58%, rgba(255, 247, 228, 0.92));
  box-shadow:
    0 18px 38px rgba(80, 55, 28, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tour-step.is-done span {
  color: var(--ivory);
  background: linear-gradient(135deg, var(--caramel), var(--amber));
}

.tour-step span {
  grid-row: span 2;
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--caramel);
  border: 1px solid rgba(201, 141, 46, 0.26);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 253, 248, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
}

.tour-step[aria-current="page"].is-done span {
  color: var(--uniform-navy);
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, #fff6d6, var(--flax-gold));
  box-shadow:
    0 0 0 4px rgba(243, 216, 137, 0.22),
    0 8px 20px rgba(201, 141, 46, 0.2);
}

.tour-step strong {
  color: var(--uniform-navy);
  font-size: 0.92rem;
  line-height: 1.25;
}

.tour-step small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.daily-backdrop {
  position: fixed;
  inset: 0;
  z-index: 87;
  background: rgba(52, 41, 29, 0.24);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.daily-backdrop.is-open {
  opacity: 1;
}

.daily-backdrop[hidden],
.daily-panel[hidden] {
  display: none;
}

.daily-panel {
  position: fixed;
  right: 18px;
  top: 92px;
  z-index: 93;
  display: grid;
  gap: 16px;
  width: min(430px, calc(100vw - 36px));
  max-height: calc(100vh - 120px);
  padding: clamp(18px, 3vw, 24px);
  overflow: auto;
  color: var(--ink);
  border: 1px solid rgba(234, 210, 162, 0.72);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 0%, var(--glow-primary), transparent 34%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 228, 0.95));
  box-shadow: 0 30px 90px rgba(80, 55, 28, 0.24);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.daily-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.daily-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.daily-panel__head h2 {
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.05;
}

.daily-panel__head button {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.26);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 253, 248, 0.88);
  font-size: 1.3rem;
  line-height: 1;
}

.daily-card {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 5vw, 26px);
  border: 1px solid rgba(201, 141, 46, 0.26);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.78), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(255, 241, 203, 0.76));
  box-shadow: 0 18px 46px rgba(80, 55, 28, 0.12);
}

.daily-card span {
  width: fit-content;
  padding: 4px 10px;
  color: var(--soft-brown);
  border: 1px solid rgba(201, 141, 46, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.75rem;
  font-weight: 900;
}

.daily-card h3 {
  margin: 0;
  color: var(--uniform-navy);
  font-size: clamp(1.35rem, 4vw, 1.9rem);
}

.daily-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.85;
}

.daily-card .button {
  justify-self: start;
}

.daily-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.7;
}

.daily-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 78;
  background: rgba(52, 41, 29, 0.28);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.site-drawer-backdrop.is-open {
  opacity: 1;
}

.site-drawer-backdrop[hidden] {
  display: none;
}

.site-drawer {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 18px;
  width: min(430px, calc(100vw - 28px));
  padding: 22px;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(234, 210, 162, 0.68);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 24% 0%, rgba(243, 216, 137, 0.28), transparent 36%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.96), rgba(255, 247, 228, 0.91));
  box-shadow: 0 30px 90px rgba(80, 55, 28, 0.24);
  transform: translateX(calc(100% + 24px));
  transition: transform 260ms ease;
}

.site-drawer[hidden] {
  display: none;
}

.site-drawer.is-open {
  transform: translateX(0);
}

.site-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.site-drawer__head h2 {
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  line-height: 1.05;
}

.site-drawer__head button {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.26);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 253, 248, 0.86);
  font-size: 1.3rem;
  line-height: 1;
}

.drawer-search {
  display: grid;
  gap: 8px;
  color: var(--soft-brown);
  font-size: 0.84rem;
  font-weight: 900;
}

.drawer-search input {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  border: 1px solid rgba(201, 141, 46, 0.28);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 253, 248, 0.82);
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.drawer-search input:focus {
  border-color: rgba(201, 141, 46, 0.68);
  box-shadow: 0 0 0 4px rgba(243, 216, 137, 0.24);
}

.drawer-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.drawer-filter button {
  min-width: 0;
  min-height: 36px;
  color: var(--soft-brown);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.64);
  font-size: 0.78rem;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.drawer-filter button:hover,
.drawer-filter button.is-active {
  color: var(--uniform-navy);
  background: rgba(243, 216, 137, 0.32);
  transform: translateY(-1px);
}

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

.drawer-status article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(234, 210, 162, 0.6);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.66);
}

.drawer-status span {
  display: block;
  color: var(--caramel);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.drawer-status small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.drawer-achievements {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.drawer-achievements h3 {
  margin: 0;
  color: var(--uniform-navy);
  font-size: 0.92rem;
  line-height: 1.2;
}

.drawer-achievements__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.drawer-achievements__grid span {
  display: grid;
  min-height: 36px;
  place-items: center;
  color: var(--muted);
  border: 1px solid rgba(201, 141, 46, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.48);
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0.68;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, color 180ms ease;
}

.drawer-achievements__grid span.is-unlocked {
  color: var(--uniform-navy);
  background: linear-gradient(135deg, rgba(243, 216, 137, 0.42), rgba(255, 253, 248, 0.76));
  opacity: 1;
  box-shadow: 0 10px 22px rgba(201, 141, 46, 0.14);
}

.drawer-achievements__grid span.is-unlocked:hover {
  transform: translateY(-1px);
}

.drawer-recent {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.drawer-recent h3 {
  margin: 0;
  color: var(--uniform-navy);
  font-size: 0.92rem;
  line-height: 1.2;
}

.drawer-recent__list {
  display: grid;
  gap: 8px;
}

.drawer-recent__list p {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  border: 1px dashed rgba(201, 141, 46, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.5);
  font-size: 0.8rem;
  font-weight: 800;
}

.drawer-recent__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  min-width: 0;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(234, 210, 162, 0.48);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.62);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.drawer-recent__item:hover {
  border-color: rgba(201, 141, 46, 0.48);
  background: rgba(243, 216, 137, 0.2);
  transform: translateY(-1px);
}

.drawer-recent__item span {
  grid-row: 1 / span 2;
  color: var(--birthstone-blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.drawer-recent__item strong,
.drawer-recent__item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-recent__item strong {
  color: var(--uniform-navy);
  font-size: 0.86rem;
  line-height: 1.18;
}

.drawer-recent__item small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.drawer-links {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: rgba(201, 141, 46, 0.42) transparent;
}

.drawer-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  min-width: 0;
  padding: 13px 14px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(234, 210, 162, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.drawer-link:hover,
.drawer-link.is-active {
  border-color: rgba(201, 141, 46, 0.52);
  background: rgba(243, 216, 137, 0.23);
  transform: translateY(-2px);
}

.drawer-link[aria-current="page"] {
  border-color: rgba(201, 141, 46, 0.68);
  background:
    radial-gradient(circle at 94% 10%, rgba(255, 244, 194, 0.46), transparent 34%),
    linear-gradient(135deg, rgba(243, 216, 137, 0.28), rgba(255, 253, 248, 0.98));
  box-shadow:
    0 16px 34px rgba(80, 55, 28, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.drawer-link[aria-current="page"] span {
  color: var(--caramel);
  text-shadow: 0 0 14px rgba(201, 141, 46, 0.2);
}

.drawer-link span {
  grid-row: 1 / span 2;
  color: var(--caramel);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 900;
}

.drawer-link strong,
.drawer-link small {
  min-width: 0;
}

.drawer-link strong {
  color: var(--uniform-navy);
  font-size: 0.96rem;
  line-height: 1.25;
}

.drawer-link small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.drawer-link.is-visited::after {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--birthstone-blue);
  box-shadow: 0 0 0 4px rgba(125, 152, 199, 0.18);
}

.drawer-link.is-favorite {
  border-color: rgba(201, 141, 46, 0.62);
  background:
    linear-gradient(135deg, rgba(243, 216, 137, 0.28), rgba(255, 253, 248, 0.74));
}

.drawer-link.is-favorite::before {
  position: absolute;
  right: 11px;
  bottom: 9px;
  width: 22px;
  height: 22px;
  content: "★";
  color: var(--caramel);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.86);
  font-size: 0.78rem;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(201, 141, 46, 0.16);
}

.drawer-link.has-note {
  border-color: rgba(125, 152, 199, 0.42);
}

.drawer-link.has-note::after {
  position: absolute;
  right: 38px;
  bottom: 9px;
  min-width: 22px;
  height: 22px;
  content: "便";
  color: var(--uniform-navy);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(125, 152, 199, 0.22);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(125, 152, 199, 0.14);
}

.drawer-link.is-visited.has-note::after {
  right: 38px;
  top: auto;
  bottom: 9px;
  width: auto;
  height: 22px;
}

.drawer-link.is-hidden {
  display: none;
}

.command-backdrop {
  position: fixed;
  inset: 0;
  z-index: 84;
  background: rgba(52, 41, 29, 0.3);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.command-backdrop.is-open {
  opacity: 1;
}

.command-backdrop[hidden],
.command-palette[hidden] {
  display: none;
}

.command-palette {
  position: fixed;
  left: 50%;
  top: min(92px, 9vh);
  z-index: 86;
  display: grid;
  gap: 16px;
  width: min(680px, calc(100vw - 32px));
  max-height: min(76vh, 760px);
  padding: clamp(18px, 3vw, 26px);
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(234, 210, 162, 0.68);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 0%, rgba(243, 216, 137, 0.26), transparent 34%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 228, 0.94));
  box-shadow: 0 34px 100px rgba(80, 55, 28, 0.26);
  transform: translate(-50%, -18px) scale(0.98);
  opacity: 0;
  transition: transform 240ms ease, opacity 240ms ease;
}

.command-palette.is-open {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.command-palette__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.command-palette__head h2 {
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  line-height: 1.05;
}

.command-palette__head button {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.26);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 253, 248, 0.88);
  font-size: 1.3rem;
  line-height: 1;
}

.command-search {
  display: grid;
  gap: 8px;
  color: var(--soft-brown);
  font-size: 0.84rem;
  font-weight: 900;
}

.command-search input {
  width: 100%;
  min-height: 52px;
  color: var(--ink);
  border: 1px solid rgba(201, 141, 46, 0.28);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 253, 248, 0.86);
  padding: 12px 18px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.command-search input:focus {
  border-color: rgba(201, 141, 46, 0.68);
  box-shadow: 0 0 0 4px rgba(243, 216, 137, 0.24);
}

.command-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.command-hints span {
  padding: 5px 10px;
  color: var(--muted);
  border: 1px solid rgba(201, 141, 46, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.64);
  font-size: 0.76rem;
  font-weight: 900;
}

.command-results {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.command-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 12px;
  align-items: center;
  min-width: 0;
  padding: 13px 14px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(234, 210, 162, 0.52);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.74);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.command-result:hover,
.command-result.is-active {
  border-color: rgba(201, 141, 46, 0.54);
  background: rgba(243, 216, 137, 0.22);
  transform: translateY(-2px);
}

.command-result > span {
  grid-row: 1 / span 2;
  color: var(--caramel);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
}

.command-result strong,
.command-result small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-result strong {
  color: var(--uniform-navy);
  font-size: 0.96rem;
  line-height: 1.22;
}

.command-result small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.command-result__tags {
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.command-result__tags em {
  padding: 3px 7px;
  color: var(--uniform-navy);
  border-radius: 999px;
  background: rgba(243, 216, 137, 0.34);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.command-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(201, 141, 46, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.58);
  font-weight: 800;
}

.note-backdrop,
.data-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(52, 41, 29, 0.28);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.note-backdrop.is-open,
.data-backdrop.is-open {
  opacity: 1;
}

.note-backdrop[hidden],
.note-panel[hidden],
.data-backdrop[hidden],
.data-panel[hidden] {
  display: none;
}

.note-panel {
  position: fixed;
  right: 18px;
  top: 92px;
  z-index: 90;
  display: grid;
  gap: 16px;
  width: min(460px, calc(100vw - 36px));
  max-height: calc(100vh - 120px);
  padding: clamp(18px, 3vw, 24px);
  overflow: auto;
  color: var(--ink);
  border: 1px solid rgba(234, 210, 162, 0.68);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 14% 0%, rgba(243, 216, 137, 0.24), transparent 34%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 228, 0.94));
  box-shadow: 0 30px 90px rgba(80, 55, 28, 0.24);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.note-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.note-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.note-panel__head h2 {
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.05;
}

.note-panel__head button {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.26);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 253, 248, 0.88);
  font-size: 1.3rem;
  line-height: 1;
}

.note-field {
  display: grid;
  gap: 8px;
  color: var(--soft-brown);
  font-size: 0.84rem;
  font-weight: 900;
}

.note-field textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid rgba(201, 141, 46, 0.28);
  border-radius: var(--radius-sm);
  outline: 0;
  background: rgba(255, 253, 248, 0.86);
  padding: 14px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.note-field textarea:focus {
  border-color: rgba(201, 141, 46, 0.68);
  box-shadow: 0 0 0 4px rgba(243, 216, 137, 0.24);
}

.note-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.data-panel {
  position: fixed;
  right: 18px;
  top: 92px;
  z-index: 91;
  display: grid;
  gap: 16px;
  width: min(520px, calc(100vw - 36px));
  max-height: calc(100vh - 120px);
  padding: clamp(18px, 3vw, 24px);
  overflow: auto;
  color: var(--ink);
  border: 1px solid rgba(234, 210, 162, 0.72);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 240, 190, 0.34), transparent 34%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 228, 0.95));
  box-shadow: 0 30px 90px rgba(80, 55, 28, 0.24);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.data-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.data-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.data-panel__head h2 {
  margin: 0;
  color: var(--uniform-navy);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.05;
}

.data-panel__head button {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.26);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 253, 248, 0.88);
  font-size: 1.3rem;
  line-height: 1;
}

.data-panel__lead {
  margin: 0;
  color: var(--soft-brown);
  font-weight: 800;
  line-height: 1.8;
}

.data-field {
  display: grid;
  gap: 8px;
  color: var(--soft-brown);
  font-size: 0.84rem;
  font-weight: 900;
}

.data-field textarea {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid rgba(201, 141, 46, 0.28);
  border-radius: var(--radius-sm);
  outline: 0;
  background: rgba(255, 253, 248, 0.86);
  padding: 14px;
  font: 0.88rem/1.65 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.data-field textarea:focus {
  border-color: rgba(201, 141, 46, 0.68);
  box-shadow: 0 0 0 4px rgba(243, 216, 137, 0.24);
}

.data-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.data-status.is-success {
  color: var(--caramel);
}

.data-status.is-error {
  color: var(--ribbon-red);
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 220;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}

.site-toast {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  color: var(--uniform-navy);
  text-align: center;
  border: 1px solid rgba(201, 141, 46, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 0%, rgba(243, 216, 137, 0.28), transparent 36%),
    rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 44px rgba(80, 55, 28, 0.16);
  backdrop-filter: blur(16px);
  font-size: 0.9rem;
  font-weight: 900;
  animation: toast-in 260ms ease forwards;
}

.site-toast.is-leaving {
  animation: toast-out 220ms ease forwards;
}

.site-footer {
  padding: 42px 18px 48px;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.72);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) repeat(3, minmax(0, 0.8fr));
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  width: min(var(--max), calc(100% - 20px));
  margin: 0 auto;
}

.site-footer__home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--uniform-navy);
  text-decoration: none;
}

.site-footer__home small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.5;
}

.site-footer__group {
  display: grid;
  gap: 12px;
}

.site-footer__group h2 {
  margin: 0;
  color: var(--uniform-navy);
  font-size: 0.92rem;
  line-height: 1.2;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__links a {
  padding: 7px 10px;
  color: var(--soft-brown);
  text-decoration: none;
  border: 1px solid rgba(201, 141, 46, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.62);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.2;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-footer__links a:hover,
.site-footer__links a[aria-current="page"] {
  color: var(--uniform-navy);
  border-color: rgba(201, 141, 46, 0.46);
  background: rgba(255, 253, 248, 0.96);
  transform: translateY(-1px);
}

.site-footer__links a[aria-current="page"] {
  border-color: rgba(201, 141, 46, 0.54);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.72), transparent 36%),
    linear-gradient(135deg, rgba(243, 216, 137, 0.36), rgba(255, 253, 248, 0.96));
  box-shadow:
    0 8px 18px rgba(201, 141, 46, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.site-footer__note {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.8;
}

.site-footer__note a {
  display: inline-flex;
  margin-left: 0.7em;
  color: var(--caramel);
  font-weight: 900;
  text-decoration: none;
}

.site-footer__note a:hover,
.site-footer__note a:focus-visible {
  color: var(--uniform-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  width: 44px;
  height: 44px;
  color: var(--ivory);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: var(--uniform-navy);
  box-shadow: 0 14px 30px rgba(47, 52, 79, 0.24);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.quick-dock {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 68;
  display: grid;
  grid-template-columns: 42px auto minmax(116px, 188px) 42px;
  gap: 8px;
  align-items: center;
  max-width: min(620px, calc(100vw - 92px));
  padding: 8px;
  border: 1px solid rgba(201, 141, 46, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 14px 34px rgba(80, 55, 28, 0.1);
  backdrop-filter: blur(18px);
  opacity: 0.38;
  transform: translateY(14px) scale(0.97);
  transition: opacity 180ms ease, transform 180ms ease;
}

body[data-page="home"] .quick-dock:not(:hover):not(:focus-within) {
  opacity: 0.18;
}

.quick-dock:hover,
.quick-dock:focus-within {
  opacity: 0.96;
  transform: translateY(0);
}

body.is-lightbox-open .quick-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.quick-dock a,
.quick-dock button {
  min-width: 0;
  color: var(--uniform-navy);
  text-decoration: none;
}

.quick-dock__nav,
.quick-dock__random {
  display: grid;
  height: 42px;
  align-items: center;
  justify-items: center;
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.24);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.76);
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.quick-dock__nav {
  font-size: 1.35rem;
  line-height: 1;
}

.quick-dock__random {
  width: auto;
  min-width: 58px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.quick-dock__current {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  gap: 1px 7px;
  isolation: isolate;
  min-height: 42px;
  padding: 4px 12px 4px 10px;
  overflow: hidden;
  border: 1px solid rgba(201, 141, 46, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 10% 0%, rgba(243, 216, 137, 0.22), transparent 38%),
    rgba(255, 253, 248, 0.62);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.quick-dock__current[aria-current="page"] {
  color: var(--uniform-navy);
  border-color: rgba(201, 141, 46, 0.58);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.78), transparent 36%),
    linear-gradient(135deg, rgba(243, 216, 137, 0.44), rgba(255, 253, 248, 0.92));
  box-shadow:
    0 14px 30px rgba(201, 141, 46, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.quick-dock__current[aria-current="page"]::before {
  position: absolute;
  left: 5px;
  top: 9px;
  bottom: 9px;
  z-index: 0;
  width: 4px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(180deg, var(--flax-gold), var(--caramel));
  box-shadow: 0 0 14px rgba(201, 141, 46, 0.26);
}

.quick-dock__current strong,
.quick-dock__current small {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-dock__current strong {
  color: var(--uniform-navy);
  font-size: 0.84rem;
  line-height: 1.2;
}

.quick-dock__current small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.quick-dock__badge {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  max-width: 78px;
  min-width: 58px;
  min-height: 18px;
  padding: 2px 7px;
  overflow: hidden;
  color: var(--uniform-navy);
  border: 1px solid rgba(201, 141, 46, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7da, var(--flax-gold));
  box-shadow:
    0 6px 16px rgba(201, 141, 46, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-dock__current[aria-current="page"] .quick-dock__badge {
  border-color: rgba(201, 141, 46, 0.42);
  box-shadow:
    0 7px 18px rgba(201, 141, 46, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.quick-dock__nav:hover,
.quick-dock__random:hover {
  background: rgba(243, 216, 137, 0.34);
  box-shadow: 0 10px 24px rgba(201, 141, 46, 0.18);
  transform: translateY(-2px);
}

.scroll-resume {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 72;
  display: grid;
  gap: 0;
  min-width: 158px;
  padding: 10px 15px;
  color: var(--uniform-navy);
  cursor: pointer;
  border: 1px solid rgba(201, 141, 46, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at 10% 0%, var(--glow-primary), transparent 42%),
    rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 44px rgba(80, 55, 28, 0.16);
  backdrop-filter: blur(14px);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.scroll-resume[hidden] {
  display: none;
}

.scroll-resume:hover {
  box-shadow: 0 22px 52px rgba(80, 55, 28, 0.2);
  transform: translateY(-2px);
}

.scroll-resume span {
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
}

.scroll-resume small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-actions {
    order: 2;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-drawer-toggle {
    min-width: 64px;
  }

  .site-nav {
    order: 3;
    display: none;
    flex-basis: 100%;
    justify-content: start;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
    flex-wrap: wrap;
  }

  .site-nav__link {
    flex: 1 1 136px;
    text-align: center;
    background: rgba(255, 253, 248, 0.75);
  }

  .page-hero {
    grid-template-columns: 1fr;
  }

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

  .site-footer__home,
  .site-footer__note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .section,
  .page-hero {
    width: min(var(--max), calc(100% - 28px));
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }

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

  .site-actions {
    order: 2;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
    gap: 6px;
  }

  .site-toolkit-toggle {
    display: none;
  }

  .site-nav__toolkit {
    display: block;
  }

  .nav-toggle {
    order: 3;
    margin-left: 0;
  }

  .site-nav {
    order: 4;
  }

  .brand small {
    display: none;
  }

  .site-favorite-toggle {
    display: none;
  }

  .site-drawer-toggle,
  .site-search-toggle,
  .site-toolkit-toggle,
  .site-focus-toggle,
  .site-motion-toggle,
  .site-palette-toggle,
  .site-scene-toggle,
  .site-tour-toggle,
  .site-daily-toggle,
  .site-mood-toggle,
  .site-note-toggle,
  .site-data-toggle,
  .site-favorite-toggle,
  .theme-toggle {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .site-footer {
    padding-inline: 14px;
  }

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

  .site-footer__home,
  .site-footer__note {
    grid-column: auto;
  }

  .site-footer__links {
    justify-content: flex-start;
  }

  .site-drawer {
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    padding: 18px;
    border-radius: 18px;
  }

  .glow-panel {
    top: 8px;
    right: 8px;
    width: calc(100vw - 16px);
    padding: 18px;
    border-radius: 18px;
  }

  .scene-panel {
    top: 8px;
    right: 8px;
    width: calc(100vw - 16px);
    padding: 18px;
    border-radius: 18px;
  }

  .scene-options {
    grid-template-columns: 1fr;
  }

  .toolkit-panel {
    top: 8px;
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 18px;
    border-radius: 18px;
  }

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

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

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

  .toolkit-next-list {
    grid-template-columns: 1fr;
  }

  .tour-panel {
    top: 8px;
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 18px;
    border-radius: 18px;
  }

  .tour-route {
    grid-template-columns: 1fr;
  }

  .daily-panel {
    top: 8px;
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 18px;
    border-radius: 18px;
  }

  .mood-panel {
    top: 8px;
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 18px;
    border-radius: 18px;
  }

  .mood-options {
    grid-template-columns: 1fr;
  }

  .mood-history__item {
    align-items: flex-start;
    flex-direction: column;
  }

  .mood-history__item span {
    text-align: left;
  }

  .drawer-status article,
  .drawer-link {
    padding: 12px;
  }

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

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

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

  .drawer-link small {
    font-size: 0.74rem;
  }

  .quick-dock {
    display: none;
    left: 10px;
    bottom: 10px;
    grid-template-columns: 34px minmax(84px, 1fr) 34px;
    max-width: min(222px, calc(100vw - 92px));
    padding: 5px;
    gap: 4px;
    box-shadow: 0 10px 28px rgba(80, 55, 28, 0.1);
    opacity: 0.94;
  }

  .quick-dock__nav,
  .quick-dock__random {
    height: 34px;
  }

  .quick-dock__random {
    display: none;
  }

  .quick-dock__current {
    min-height: 34px;
    padding: 4px 10px;
    gap: 0;
    text-align: center;
  }

  .quick-dock__current[aria-current="page"] {
    padding-left: 12px;
  }

  .quick-dock__current[aria-current="page"]::before {
    display: none;
  }

  .quick-dock__current small {
    display: none;
  }

  .quick-dock__current strong {
    font-size: 0.78rem;
  }

  .quick-dock__badge {
    display: none;
  }

  .scroll-resume {
    right: 10px;
    bottom: 62px;
    min-width: 132px;
    padding: 8px 12px;
  }

  .scroll-resume small {
    display: none;
  }

  .command-palette {
    top: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 18px;
    border-radius: 18px;
  }

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

  .command-result__tags {
    grid-column: 2;
    grid-row: auto;
    justify-content: flex-start;
  }

  .note-panel,
  .data-panel {
    top: 8px;
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 18px;
    border-radius: 18px;
  }
}

@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;
  }

  .particle-canvas,
  .cursor-dot,
  .cursor-ring,
  .site-atmosphere,
  .motion-section__glow,
  .motion-shine,
  .motion-spark {
    display: none;
  }
}
