:root {
  color-scheme: light;
  --orange: #d66a2c;
  --navy: #17324d;
  --cream: #f4e6c8;
  --brown: #7a4a2a;
  --sage: #6f8b79;
  --ink: #29231d;
  --paper: #fbf1d8;
  --paper-deep: #ead6af;
  --danger: #9c3e32;
  --line: rgb(77 57 38 / 28%);
  --soft-shadow: 0 24px 70px rgb(31 24 16 / 24%);
  font-family: "LXGW WenKai", "Songti SC", "STSong", serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; min-height: 100%; }
body { margin: 0; overflow: hidden; background: var(--navy); color: var(--ink); font-size: 16px; line-height: 1.55; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .44; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-stage, .home-scene, .approach-scene, .cafe-scene { width: 100%; height: 100dvh; min-height: 580px; }
.home-scene, .approach-scene, .cafe-scene { position: relative; overflow: hidden; isolation: isolate; }
.home-art, .approach-art {
  position: absolute;
  inset: -3%;
  z-index: -2;
  background: url("/assets/images/road_cafe/home-establishing.webp") center / cover no-repeat;
}
.home-art::after, .approach-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(17 31 38 / 38%) 0, rgb(17 31 38 / 8%) 47%, transparent 72%);
  content: "";
}
.home-scene::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-radial-gradient(circle at 20% 30%, rgb(255 248 221 / 7%) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
  content: "";
}
.home-copy {
  position: absolute;
  top: clamp(84px, 14vh, 150px);
  left: clamp(24px, 8vw, 140px);
  width: min(540px, 42vw);
  color: #fff5df;
  text-shadow: 0 3px 20px rgb(22 26 20 / 35%);
}
.journey-number, .paper-kicker { display: block; color: var(--orange); font: 700 .72rem/1.2 Georgia, serif; letter-spacing: .18em; }
.home-copy .journey-number { color: #ffe0ad; }
.home-copy h1, .scene-brand {
  margin: 8px 0 12px;
  font-family: Georgia, serif;
  font-weight: 500;
  letter-spacing: -.06em;
}
.home-copy h1 { font-size: clamp(4rem, 9vw, 8.7rem); line-height: .86; }
.home-copy p { max-width: 420px; margin: 0 0 30px; font-size: clamp(1.05rem, 1.7vw, 1.45rem); letter-spacing: .05em; }
.home-footnote { position: absolute; right: 34px; bottom: 24px; margin: 0; color: #fff6e0; font-size: .82rem; letter-spacing: .12em; writing-mode: vertical-rl; }
.paint-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px 18px 5px 15px;
  background: var(--orange);
  box-shadow: 5px 7px 0 rgb(75 45 25 / 32%);
  color: #fff8e7;
  font-weight: 700;
  letter-spacing: .08em;
  transform: rotate(-1deg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.paint-button:hover { box-shadow: 3px 4px 0 rgb(75 45 25 / 36%); transform: rotate(0) translateY(2px); }
.paint-button.small { min-height: 42px; padding: 0 18px; box-shadow: 3px 4px 0 rgb(75 45 25 / 24%); font-size: .88rem; }

.approach-art { animation: camera-walk 3.5s cubic-bezier(.32, .08, .18, 1) forwards; transform-origin: 78% 57%; }
.approach-art::after { background: linear-gradient(0deg, rgb(23 50 77 / 20%), transparent 55%); }
.approach-status { position: absolute; bottom: 48px; left: 50%; margin: 0; padding: 9px 18px; border-radius: 99px; background: rgb(23 50 77 / 78%); color: #fff8e8; transform: translateX(-50%); backdrop-filter: blur(8px); }
.walk-lines { position: absolute; right: 13%; bottom: 13%; display: flex; gap: 8px; transform: rotate(-10deg); }
.walk-lines i { width: 5px; height: 46px; border-radius: 99px; background: rgb(244 230 200 / 72%); animation: footsteps 1s ease-in-out infinite alternate; }
.walk-lines i:nth-child(2) { height: 65px; animation-delay: .2s; }
.walk-lines i:nth-child(3) { animation-delay: .4s; }
.quiet-button, .round-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgb(244 230 200 / 56%);
  border-radius: 99px;
  background: rgb(23 50 77 / 74%);
  color: var(--cream);
  backdrop-filter: blur(8px);
}
.skip-button { position: absolute; top: 25px; right: 25px; }

@keyframes camera-walk {
  0% { transform: scale(1) translate3d(0, 0, 0); filter: saturate(.9); }
  28% { transform: scale(1.18) translate3d(-2%, 1%, 0); }
  58% { transform: scale(1.65) translate3d(-9%, 1%, 0); }
  86% { opacity: 1; transform: scale(2.45) translate3d(-17%, 1%, 0); filter: saturate(1.08); }
  100% { opacity: 0; transform: scale(2.9) translate3d(-20%, 1%, 0); }
}
@keyframes footsteps { to { opacity: .28; transform: translateY(11px); } }

.cafe-scene { background: #1c3443; }
.scene-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 22px;
  pointer-events: none;
}
.scene-toolbar > * { pointer-events: auto; }
.scene-brand { margin: 0; color: var(--cream); font-size: 1.4rem; text-shadow: 0 2px 8px rgb(0 0 0 / 40%); }
.round-button { justify-self: end; width: 42px; padding: 0; justify-content: center; font: 700 1.2rem Georgia, serif; }
.panorama { position: relative; width: 100%; height: 100%; overflow: hidden; background: #1c3443; }
.panorama::before {
  position: absolute;
  inset: -20px;
  background: linear-gradient(rgb(28 52 67 / 45%), rgb(28 52 67 / 45%)), url("/assets/images/road_cafe/cafe-panorama-empty.jpg") center / cover;
  filter: blur(14px);
  content: "";
}
.panorama.is-dragging { cursor: grabbing; }
.panorama-canvas { position: absolute; top: 50%; left: 50%; width: min(100vw, calc(100vh * 2.879)); aspect-ratio: 2128 / 739; transform: translate(-50%, -50%); }
.panorama-canvas > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; -webkit-user-drag: none; }
.panorama-canvas::after { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px rgb(19 31 32 / 35%); content: ""; }
.hotspot-layer { position: absolute; inset: 0; }
.hotspot {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #fff7df;
}
.hotspot:focus-visible { outline: none; }
.hotspot-label {
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: max-content;
  max-width: 180px;
  padding: 7px 12px;
  border: 1px solid rgb(244 230 200 / 70%);
  border-radius: 3px 12px 3px 10px;
  background: rgb(23 50 77 / 88%);
  box-shadow: 3px 4px 0 rgb(53 35 23 / 30%);
  opacity: 0;
  transform: translate(-50%, 8px) rotate(-1deg);
  transition: opacity .18s, transform .18s;
  pointer-events: none;
}
.hotspot:hover .hotspot-label, .hotspot:focus-visible .hotspot-label, .hotspot.is-guided .hotspot-label, .hotspot.is-focused .hotspot-label { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); }
.hotspot[data-hotspot="album"] .hotspot-label, .hotspot[data-hotspot="records"] .hotspot-label { bottom: -17%; }
.served-cup { position: absolute; z-index: 3; left: 52.5%; bottom: 20.3%; width: 4%; transform: translateX(-50%); animation: serve-cup .7s ease-out; pointer-events: none; }
.served-cup::after { position: absolute; right: 18%; bottom: 0; left: 18%; z-index: -1; height: 5%; border-radius: 50%; background: rgb(50 31 18 / 22%); filter: blur(2px); transform: scaleY(.42); content: ""; }
.served-cup img { display: block; width: 100%; height: auto; filter: saturate(.88) contrast(.92) drop-shadow(0 1px 1px rgb(43 29 18 / 12%)); }
.served-cup[data-coffee="americano"] { bottom: 20.2%; width: 3.8%; }
.served-cup[data-coffee="cappuccino"] { bottom: 20.1%; width: 4.5%; }
.served-cup[data-coffee="latte"] { bottom: 20.1%; width: 3%; }
.served-cup[data-coffee="pour-over"] { bottom: 19.8%; width: 3.8%; }
.drag-hint { position: absolute; bottom: 13px; left: 50%; margin: 0; padding: 6px 11px; border-radius: 99px; background: rgb(23 50 77 / 62%); color: var(--cream); font-size: .72rem; opacity: .86; transform: translateX(-50%); }
.mobile-hint { display: none; }
@keyframes serve-cup { from { opacity: 0; transform: translate(-50%, -70px) scale(.75); } }

dialog { padding: 0; border: 0; }
dialog:not([open]) { display: none; }
dialog::backdrop { background: rgb(14 25 29 / 64%); backdrop-filter: blur(4px); }
.paper-dialog, .notebook-dialog {
  position: fixed;
  margin: auto;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(90deg, transparent 49.7%, rgb(99 73 47 / 13%) 50%, transparent 50.3%), repeating-linear-gradient(0deg, transparent 0 27px, rgb(76 95 103 / 8%) 28px);
  box-shadow: var(--soft-shadow);
  overflow: visible;
}
.paper-dialog { width: min(1080px, calc(100vw - 42px)); max-height: calc(100dvh - 42px); border-radius: 5px 18px 7px 15px; }
.dialog-close { position: absolute; top: 16px; right: 16px; z-index: 8; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--navy); }
.dialog-close.light { background: rgb(23 50 77 / 76%); color: var(--cream); }
.manager-dialog { min-height: min(690px, calc(100dvh - 42px)); overflow: hidden; }
.manager-cutout { position: absolute; bottom: -5%; left: -3%; width: min(49%, 500px); height: 92%; object-fit: contain; object-position: bottom; filter: drop-shadow(14px 15px 20px rgb(56 35 23 / 20%)); pointer-events: none; }
.manager-paper { width: 58%; min-height: 600px; margin-left: 42%; padding: 70px 60px 40px 25px; }
.manager-paper h2 { margin: 12px 0 8px; color: var(--navy); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.manager-paper > p { max-width: 520px; color: #655545; }
.manager-actions { display: grid; gap: 14px; margin-top: 35px; }
.manager-actions button, .coffee-list button, .track-card {
  position: relative;
  border: 1px solid var(--line);
  background: rgb(255 250 231 / 76%);
  box-shadow: 4px 5px 0 rgb(77 57 38 / 12%);
  text-align: left;
}
.manager-actions button { min-height: 64px; padding: 0 22px; font-size: 1.08rem; transform: rotate(var(--paper-tilt, -.5deg)); }
.manager-actions button:nth-child(2) { --paper-tilt: .6deg; }
.manager-actions button:nth-child(3) { --paper-tilt: -.8deg; }
.manager-actions button:hover, .coffee-list button:hover, .track-card:hover { border-color: var(--orange); background: #fff7df; }
.coffee-menu { margin-top: 24px; }
.menu-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-bottom: 2px solid var(--navy); color: var(--navy); }
.menu-heading span { font: 700 1rem Georgia, serif; letter-spacing: .1em; }
.menu-heading b { font-size: .8rem; font-weight: 400; }
.coffee-list { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 16px; }
.coffee-list button { min-height: 82px; padding: 12px 15px 12px 64px; }
.coffee-list button::before { position: absolute; top: 18px; left: 15px; width: 35px; height: 30px; border: 3px solid var(--brown); border-radius: 4px 4px 12px 12px; content: ""; }
.coffee-list button::after { position: absolute; top: 24px; left: 48px; width: 11px; height: 15px; border: 3px solid var(--brown); border-left: 0; border-radius: 0 8px 8px 0; content: ""; }
.coffee-list b, .coffee-list span { display: block; }
.coffee-list span { color: #6d5b49; font-size: .78rem; }
.story-reader { margin-top: 40px; }
.story-reader h3 { margin: 10px 0 18px; color: var(--navy); font-size: 2rem; }
.story-reader p { min-height: 210px; font-size: 1.16rem; line-height: 2; }
.pager-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pager-controls button, .paper-link { min-height: 38px; padding: 0 13px; border: 0; border-bottom: 1px solid var(--brown); background: transparent; color: var(--brown); }
.paper-link { margin-top: 18px; }

.album-dialog { padding: 42px 54px 30px; }
.album-heading { padding-right: 60px; }
.album-heading h2 { margin: 5px 0 20px; color: var(--navy); }
.album-spread { display: grid; grid-template-columns: 1fr 1fr; min-height: min(520px, 62vh); background: linear-gradient(90deg, #f8ebcf 49.7%, #c4a97f 50%, #f8ebcf 50.3%); box-shadow: inset 0 0 24px rgb(99 73 47 / 15%); }
.album-page { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 28px 30px 22px; }
.album-page:nth-child(1) { transform: rotate(-.25deg); }
.album-page:nth-child(2) { transform: rotate(.25deg); }
.album-photo { display: block; flex: 1; min-height: 0; padding: 0; border: 10px solid #fff7e7; background: #fff7e7; box-shadow: 3px 5px 14px rgb(55 38 24 / 20%); overflow: hidden; }
.album-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.album-photo:hover img { transform: scale(1.025); }
.album-page h3 { margin: 15px 0 2px; color: var(--navy); }
.album-page p { margin: 0; color: #715d4a; }
.album-controls { margin-top: 18px; }
.photo-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; background: #132638; color: var(--cream); box-shadow: var(--soft-shadow); }
.photo-dialog img { display: block; width: 100%; max-height: 76vh; object-fit: contain; background: #0d1b28; }
.photo-dialog > div { padding: 18px 28px 24px; }
.photo-dialog h2, .photo-dialog p { margin: 0; }

.records-dialog { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 620px; overflow: hidden; background-image: linear-gradient(115deg, #d97a3c 0 42%, var(--paper) 42.2%); }
.turntable { position: relative; min-height: 620px; }
.vinyl-disc { position: absolute; top: 24%; left: 12%; width: min(28vw, 330px); aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #191a1b 0 4px, #27282a 5px 7px); box-shadow: 0 18px 30px rgb(41 28 22 / 34%); }
.vinyl-disc::before { position: absolute; inset: 35%; border-radius: 50%; background: var(--cream); content: ""; }
.vinyl-disc i { position: absolute; inset: 46%; z-index: 2; border-radius: 50%; background: var(--orange); }
.vinyl-disc.is-playing { animation: spin 4s linear infinite; }
.tonearm { position: absolute; top: 19%; right: 14%; width: 16px; height: 260px; border-radius: 20px; background: var(--navy); box-shadow: 8px 10px 0 rgb(82 45 28 / 16%); transform: rotate(-24deg); transform-origin: top; }
@keyframes spin { to { transform: rotate(1turn); } }
.record-shelf { padding: 65px 55px 35px 20px; }
.record-shelf h2 { margin: 8px 0 18px; color: var(--navy); font-size: 2.2rem; }
.track-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.track-card { min-height: 96px; padding: 13px 12px 12px 62px; }
.track-card::before { position: absolute; top: 20px; left: 14px; width: 36px; height: 36px; border: 5px solid #202224; border-radius: 50%; background: var(--orange); box-shadow: inset 0 0 0 8px #202224; content: ""; }
.track-card.is-selected { border-color: var(--orange); background: #fff6dc; transform: translateY(-2px) rotate(-.3deg); }
.track-card b, .track-card span { display: block; }
.track-card span { margin-top: 4px; color: #755e4d; font-size: .72rem; line-height: 1.25; }
.now-playing { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 0; border-top: 1px dashed var(--brown); border-bottom: 1px dashed var(--brown); }
.now-playing b, .now-playing span { display: block; }
.now-playing div span { color: #725e4a; font-size: .78rem; }
.status-stamp { padding: 3px 9px; border: 1px solid var(--orange); border-radius: 3px; color: var(--orange); font-size: .72rem; transform: rotate(-2deg); }
.player-controls { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.player-controls button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; background: var(--navy); color: var(--cream); }
.player-controls label { display: flex; align-items: center; gap: 7px; font-size: .78rem; }
.player-controls a { color: var(--brown); font-size: .78rem; }
.fine-print { margin: 14px 0 0; color: #796550; font-size: .72rem; }

.notebook-dialog { width: min(1280px, calc(100vw - 30px)); height: min(850px, calc(100dvh - 30px)); max-width: none; max-height: none; border-radius: 7px 19px 8px 16px; overflow: hidden; }
.notebook-tabs { position: absolute; top: 70px; right: 0; z-index: 4; display: grid; gap: 8px; transform: translateX(16px); }
.notebook-tabs button { min-height: 48px; padding: 0 24px 0 15px; border: 0; border-radius: 0 7px 7px 0; background: #d3b677; color: #59442e; writing-mode: vertical-rl; }
.notebook-tabs button.is-active { background: var(--orange); color: white; }
.notebook-spread { display: grid; height: 100%; grid-template-columns: .88fr 1.12fr; }
.calendar-page, .notes-page { min-width: 0; overflow: auto; padding: 46px 42px 35px; }
.calendar-page { border-right: 1px solid rgb(78 58 39 / 18%); }
.calendar-header, .notes-heading, .form-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calendar-header h2, .notes-heading h2 { margin: 4px 0 0; color: var(--navy); }
.calendar-actions { display: flex; gap: 6px; }
.calendar-actions button { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 3px 10px 3px 8px; background: transparent; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays { margin-top: 24px; color: #7a6958; font-size: .75rem; text-align: center; }
.calendar-grid { margin-top: 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.calendar-day { position: relative; min-height: 61px; padding: 7px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.calendar-day:hover { background: rgb(214 106 44 / 8%); }
.calendar-day.outside-month { color: #b0a490; }
.calendar-day.is-selected { background: var(--navy); color: var(--cream); }
.day-number { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; }
.calendar-day.is-today:not(.is-selected) .day-number { background: var(--orange); color: white; }
.record-count { position: absolute; right: 5px; bottom: 5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--orange); color: white; font-size: .62rem; text-align: center; }
.ink-note { color: var(--orange); transform: rotate(-3deg); }
.record-form { margin: 20px 0; padding: 16px 18px; border: 1px solid var(--line); background: rgb(255 249 228 / 62%); box-shadow: 3px 4px 0 rgb(75 52 32 / 8%); }
.form-heading h3 { margin: 0; color: var(--navy); }
.record-form textarea { width: 100%; margin-top: 10px; padding: 8px 4px; resize: vertical; border: 0; border-bottom: 1px solid var(--line); background: transparent; line-height: 1.8; }
.speech-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.speech-row button { padding: 3px 9px; border: 1px solid var(--line); background: transparent; color: var(--brown); }
.speech-row span { color: #796955; font-size: .72rem; }
.form-row { display: grid; grid-template-columns: 100px 112px minmax(120px, 1fr) auto; gap: 9px; align-items: end; margin-top: 12px; }
.form-row label { color: #6c5d4c; font-size: .72rem; }
.form-row input, .form-row select { width: 100%; min-height: 38px; margin-top: 4px; padding: 0 8px; border: 1px solid var(--line); background: #fff9e8; }
.record-list { display: grid; gap: 10px; padding-bottom: 25px; }
.record-card { position: relative; padding: 14px 110px 13px 18px; border-bottom: 1px solid rgb(68 87 92 / 19%); background: linear-gradient(90deg, rgb(255 251 236 / 70%), transparent); }
.record-meta, .record-actions { display: flex; align-items: center; gap: 8px; }
.record-time { color: var(--orange); font: 700 .9rem Georgia, serif; }
.record-mood { color: #6a5b4b; font-size: .78rem; }
.record-text { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.05rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { color: var(--sage); font-size: .75rem; }
.record-actions { position: absolute; top: 12px; right: 8px; }
.text-button { padding: 3px 6px; border: 0; background: transparent; color: #7a6754; font-size: .74rem; }
.text-button.danger { color: var(--danger); }
.empty-state { padding: 30px; border: 1px dashed var(--line); color: #826f5c; text-align: center; }
.empty-state p { margin: 0; }
.empty-mark { display: none; }
.inline-warning { padding: 8px 11px; border-left: 4px solid var(--danger); background: rgb(156 62 50 / 8%); color: var(--danger); font-size: .8rem; }

.assistant-page { height: 100%; padding: 60px 11% 42px; overflow: auto; }
.assistant-page > header { max-width: 680px; margin-left: 6%; }
.assistant-page h2 { margin: 8px 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.6rem); }
.assistant-page header p { color: #6f5d4a; }
.assistant-messages { display: flex; min-height: 320px; max-height: 48vh; margin: 25px 6%; padding: 20px 2%; flex-direction: column; gap: 14px; overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.assistant-message { max-width: 76%; padding: 12px 15px; border: 1px solid var(--line); background: rgb(255 250 232 / 76%); transform: rotate(-.2deg); }
.assistant-message.user { align-self: flex-end; border-color: rgb(214 106 44 / 35%); background: rgb(214 106 44 / 11%); transform: rotate(.25deg); }
.message-role { display: block; color: var(--orange); font-size: .68rem; letter-spacing: .1em; }
.assistant-message p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-form { margin: 0 6%; }
.assistant-actions { display: flex; gap: 8px; }
.assistant-actions input { position: absolute; opacity: 0; }
.assistant-actions span { display: block; padding: 8px 13px; border: 1px solid var(--line); background: #fff8e4; transform: rotate(-1deg); }
.assistant-actions input:checked + span { border-color: var(--orange); background: var(--orange); color: white; }
.assistant-input-row { display: flex; gap: 8px; margin-top: 12px; }
.assistant-input-row input { min-width: 0; min-height: 46px; flex: 1; padding: 0 13px; border: 1px solid var(--line); background: #fff9e8; }
.assistant-input-row button { min-width: 80px; border: 0; background: var(--navy); color: var(--cream); }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 99; max-width: min(390px, calc(100vw - 32px)); padding: 11px 16px; border: 1px solid #fff1cf; border-radius: 3px 12px 3px 10px; background: var(--navy); box-shadow: var(--soft-shadow); color: var(--cream); }

@media (max-width: 900px) {
  .home-copy { top: 14vh; left: 6vw; width: 52vw; }
  .panorama { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; touch-action: pan-x; }
  .panorama::-webkit-scrollbar { display: none; }
  .panorama-canvas { position: relative; top: 0; left: 0; width: max(1650px, calc(100vh * 2.879)); height: 100%; aspect-ratio: auto; transform: none; }
  .served-cup { bottom: 15.8%; }
  .served-cup[data-coffee="americano"], .served-cup[data-coffee="latte"] { bottom: 15.7%; }
  .served-cup[data-coffee="cappuccino"] { bottom: 15.6%; }
  .served-cup[data-coffee="pour-over"] { bottom: 15.3%; }
  .desktop-hint { display: none; }
  .mobile-hint { display: inline; }
  .manager-cutout { left: -10%; width: 54%; opacity: .8; }
  .manager-paper { width: 66%; margin-left: 34%; padding-right: 45px; }
  .records-dialog { grid-template-columns: .75fr 1.25fr; }
  .notebook-spread { grid-template-columns: 1fr; overflow-y: auto; }
  .calendar-page, .notes-page { overflow: visible; }
  .calendar-page { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .site-stage, .home-scene, .approach-scene, .cafe-scene { min-height: 520px; }
  .home-art, .approach-art { background-position: 63% center; }
  .home-art::after { background: linear-gradient(90deg, rgb(18 34 39 / 68%) 0, rgb(18 34 39 / 20%) 78%); }
  .home-copy { top: 15vh; left: 22px; width: calc(100vw - 44px); }
  .home-copy h1 { font-size: clamp(3.5rem, 18vw, 5.5rem); }
  .home-copy p { max-width: 270px; font-size: 1.03rem; }
  .home-footnote { display: none; }
  .approach-status { bottom: 35px; width: max-content; max-width: calc(100vw - 40px); font-size: .8rem; }
  .scene-toolbar { padding: 12px; }
  .scene-brand { font-size: 1.1rem; }
  .quiet-button { padding: 0 11px; font-size: .78rem; }
  .drag-hint { width: max-content; max-width: calc(100vw - 30px); }
  .paper-dialog { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); }
  .manager-dialog { height: calc(100dvh - 18px); }
  .manager-cutout { bottom: -12%; left: -27%; width: 88%; height: 64%; opacity: .28; }
  .manager-paper { position: relative; z-index: 2; width: 100%; height: 100%; margin: 0; padding: 65px 26px 28px; overflow-y: auto; }
  .manager-paper h2 { font-size: 2.2rem; }
  .coffee-list { grid-template-columns: 1fr; }
  .story-reader p { min-height: 250px; font-size: 1.04rem; }
  .album-dialog { padding: 55px 13px 18px; }
  .album-spread { min-height: 58vh; grid-template-columns: 1fr 1fr; }
  .album-page { padding: 12px 9px; }
  .album-photo { border-width: 5px; min-height: 250px; }
  .album-page h3 { font-size: .92rem; }
  .album-page p { font-size: .7rem; }
  .records-dialog { display: block; height: calc(100dvh - 18px); overflow-y: auto; background-image: linear-gradient(160deg, #d97a3c 0 26%, var(--paper) 26.2%); }
  .turntable { min-height: 245px; }
  .vinyl-disc { top: 16%; left: 10%; width: 190px; }
  .tonearm { top: 11%; right: 22%; height: 170px; }
  .record-shelf { padding: 12px 22px 30px; }
  .track-list { grid-template-columns: 1fr; }
  .player-controls { flex-wrap: wrap; }
  .notebook-dialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); }
  .notebook-tabs { position: sticky; top: 0; display: flex; padding: 9px 54px 0 12px; background: var(--paper); transform: none; }
  .notebook-tabs button { min-height: 38px; padding: 0 14px; border-radius: 6px 6px 0 0; writing-mode: initial; }
  .calendar-page, .notes-page { padding: 28px 14px; }
  .calendar-header { align-items: flex-end; }
  .calendar-header h2 { font-size: 1.3rem; }
  .calendar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .calendar-actions button { min-height: 32px; font-size: .72rem; }
  .calendar-day { min-height: 45px; padding: 3px; }
  .day-number { width: 23px; height: 23px; font-size: .76rem; }
  .record-count { right: 2px; bottom: 2px; min-width: 14px; height: 14px; font-size: .5rem; }
  .notes-heading { align-items: flex-start; }
  .ink-note { display: none; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row label:nth-child(3), .form-row .paint-button { grid-column: 1 / -1; }
  .speech-row { align-items: flex-start; flex-wrap: wrap; }
  .speech-row span { flex-basis: 100%; }
  .record-card { padding-right: 15px; }
  .record-actions { position: static; margin-top: 8px; justify-content: flex-end; }
  .assistant-page { padding: 35px 10px 24px; }
  .assistant-page > header, .assistant-messages, .assistant-form { margin-left: 2%; margin-right: 2%; }
  .assistant-actions { align-items: stretch; }
  .assistant-actions label { flex: 1; }
  .assistant-actions span { height: 100%; padding: 7px 5px; text-align: center; font-size: .78rem; }
  .assistant-message { max-width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .approach-art { opacity: 0; transform: none; }
}
