:root {
  color-scheme: light;
  --pine: #15271e;
  --pine-dark: #101d17;
  --gold: #e2c186;
  --earth: #735127;
  --page: #f7f4ec;
  --paper: #fffcf4;
  --ink: #223127;
  --muted: #5f675b;
  --border: #ded7c8;
  --serif: "Songti SC", "Noto Serif CJK SC", STSong, SimSun, Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.65 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.13; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .56; cursor: wait; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #a86712; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.topbar { background: var(--pine-dark); color: #f4edde; border-bottom: 1px solid #d2ad6c38; }
.topbar-inner { display: flex; gap: 28px; align-items: center; justify-content: space-between; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); flex-shrink: 0; }
.brand-icon { width: 44px; height: 44px; stroke: currentColor; stroke-width: 1.2; }
.brand strong { display: block; font: 700 24px/1.18 var(--serif); letter-spacing: .10em; }
.brand small, .footer-inner > div p { display: block; margin-top: 4px; font: 10px/1.2 Georgia, serif; letter-spacing: .15em; }
.topbar nav { display: flex; align-items: center; justify-content: center; gap: 33px; font-size: 15px; white-space: nowrap; }
.topbar nav a { position: relative; color: #d9dfd4; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--gold); }
.topbar nav a[aria-current]::after { content: ''; position: absolute; bottom: -8px; left: 50%; width: 13px; height: 1px; background: var(--gold); transform: translateX(-50%); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 9px 17px; border: 1px solid transparent; border-radius: 5px; background: var(--pine); color: var(--paper); font-weight: 650; font-size: .94rem; white-space: nowrap; }
.button:hover { filter: brightness(1.14); }
.button.gold { background: var(--gold); color: #20271d; padding-inline: 28px; min-height: 49px; }
.button.outline { background: transparent; border-color: #ac9464; color: inherit; }
.button.secondary { background: transparent; border-color: var(--border); color: var(--ink); }
.account-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.account-name { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.account-actions .button { min-height: 40px; padding-inline: 13px; }
.hero {
  --hero-ease: cubic-bezier(.25,.65,.3,1);
  --door-x: 69%;
  --door-y: .643;
  --kettle-x: 65.5%;
  --kettle-y: 57.2%;
  --scene-height: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #faf1dd;
  background: #17261f;
  min-height: max(580px, calc(100svh - 83px));
}
.hero-scenes { position: absolute; inset: 0 0 auto; height: var(--scene-height); z-index: 0; overflow: hidden; pointer-events: none; }
.hero-scene { position: absolute; inset: 0; transition: opacity .8s var(--hero-ease), transform 1.25s var(--hero-ease); }
.hero-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-image-change { animation: hero-image-in .5s ease-out both; }
@keyframes hero-image-in { from { opacity: 0; } to { opacity: 1; } }
.hero-scene-outside { transform-origin: var(--door-x) calc(var(--door-y) * 100%); }
.hero-scene-outside img { object-position: var(--door-x) calc(var(--door-y) * 100%); }
.hero-scene-inside { opacity: 0; transform: scale(1.12); transform-origin: var(--kettle-x) var(--kettle-y); }
.hero-scene-inside img { object-position: var(--kettle-x) var(--kettle-y); }
.hero[data-view="inside"] .hero-scene-outside { opacity: 0; transform: scale(2.65); transition-delay: .16s, 0s; }
.hero[data-view="inside"] .hero-scene-inside { opacity: 1; transform: scale(1); transition-delay: .16s, .16s; }
.hero::before {
  content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #0e1c18dc 0%, #0e1c18ae 26%, #0e1c1838 51%, transparent 73%), linear-gradient(0deg, #0d1a15df 0%, transparent 32%);
}
.hero-inner { min-height: inherit; display: grid; grid-template-rows: 1fr auto; align-items: center; position: relative; z-index: 2; pointer-events: none; }
.hero-copy { width: max-content; max-width: 100%; padding-block: 52px; pointer-events: none; animation: hero-copy-in .7s var(--hero-ease) both; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { color: var(--earth); font-size: 14px; font-weight: 700; letter-spacing: .16em; display: flex; align-items: center; gap: 11px; }
.eyebrow span { width: 18px; height: 1px; background: currentColor; flex: 0 0 18px; }
.hero .eyebrow { color: #f3d7a6; margin-bottom: 18px; }
.hero h1 { font-size: clamp(50px, 6.1vw, 96px); letter-spacing: .015em; font-weight: 700; line-height: 1.1; }
.hero-lead { margin-block: 19px 26px; line-height: 1.75; color: #f5ead5; font-size: clamp(16px, 1.5vw, 20px); }
.hero .button.gold { border-radius: 100px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero-return { background: transparent; border: 0; color: inherit; min-height: 44px; padding: 0 4px; text-decoration: underline; text-underline-offset: .3em; }
.hero :focus-visible { outline-color: #fff0c7; }
.hero-door {
  position: absolute; z-index: 3; top: calc(var(--door-y) * var(--scene-height)); left: var(--door-x);
  transform: translate(-50%, -50%); display: grid; align-items: center; justify-items: center;
  background: none; color: #fff5df; border: 0; border-radius: 28px; padding: 5px;
}
.hero-door-ring {
  position: relative; width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid #fff4dddf; border-radius: 50%; background: #1926205e;
  box-shadow: 0 0 0 6px #fff3dc28, 0 3px 20px #0c161a80; transition: background .26s, box-shadow .26s;
}
.hero-door-ring::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff2d4; box-shadow: 0 0 12px #ffe6ab; }
.hero-door:hover .hero-door-ring, .hero-door:focus-visible .hero-door-ring { background: #805c2b8c; box-shadow: 0 0 0 10px #fff3dc40, 0 3px 20px #0c161a80; }
.hero-door-label { position: absolute; top: calc(100% + 5px); white-space: nowrap; padding: 4px 11px; border: 1px solid #fff1d45e; border-radius: 20px; background: #101d17e8; font-size: .875rem; }
.hero-time { justify-self: end; display: flex; align-items: center; gap: 12px; padding: 5px; margin: 0 0 23px; width: fit-content; max-width: 100%; border: 1px solid #fbedd757; border-radius: 32px; background: #111e18e0; box-shadow: 0 4px 27px #0a100f40; pointer-events: auto; }
.hero-clock { display: flex; align-items: center; gap: 8px; padding-inline: 9px 4px; white-space: nowrap; color: #f4deb8; font-size: .875rem; font-variant-numeric: tabular-nums; }
.hero-clock > span { width: 13px; height: 13px; border-radius: 50%; border: 1px solid currentColor; position: relative; }
.hero-clock > span::after { content: ''; position: absolute; top: 2px; left: 5px; width: 3px; height: 4px; border-left: 1px solid; border-bottom: 1px solid; }
.hero-periods { display: flex; align-items: center; gap: 2px; }
.hero-periods button { border: 0; border-radius: 22px; padding: 5px 11px; min-height: 41px; line-height: 1.2; color: #fbefd7; background: transparent; font-size: .875rem; white-space: nowrap; }
.hero-periods button:hover { background: #ffffff26; }
.hero-periods button[aria-pressed="true"] { background: #f0d7aa; color: #20281e; }
.hero-periods .hero-period-current { color: #f7d698; text-decoration: underline; text-underline-offset: 5px; }
.hero-steam { display: none; position: absolute; top: var(--kettle-y); left: var(--kettle-x); width: 30px; height: 82px; transform: translate(-50%, -100%); pointer-events: none; }
.hero[data-view="inside"] .hero-steam { display: block; }
.hero-steam i { position: absolute; inset: 12px 2px 3px; border-radius: 50%; background: radial-gradient(ellipse, #fff3d475 0%, transparent 72%); filter: blur(4px); opacity: 0; animation: hero-steam 5.1s ease-out infinite; }
.hero-steam i:nth-child(2) { animation-delay: 1.65s; margin-left: 7px; }
.hero-steam i:nth-child(3) { animation-delay: 3.35s; margin-right: 7px; }
@keyframes hero-steam {
  0% { opacity: 0; transform: translateY(25px) scale(.6) rotate(5deg); }
  35% { opacity: .44; }
  100% { opacity: 0; transform: translate(-12px, -46px) scale(1.5) rotate(-14deg); }
}
.menu-section, .orders-section { min-height: 63vh; padding-block: 67px 75px; scroll-margin-top: 18px; }
.orders-section { background: #eeeee4; border-top: 1px solid var(--border); }
.section-heading { display: flex; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2, .section-heading h1 { font-size: clamp(35px, 4.3vw, 53px); margin-top: 8px; letter-spacing: .03em; }
.section-heading > p { color: var(--muted); max-width: 32ch; }
.tea-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; }
.tea-card { overflow: hidden; border: 1px solid var(--border); background: var(--paper); border-radius: 8px; }
.tea-card > img, .tea-placeholder { width: 100%; height: auto; aspect-ratio: 2.4; object-fit: cover; background: #3a402e; }
.tea-placeholder { display: grid; place-items: center; background: radial-gradient(ellipse at 60% 25%, #586c53, #263c30); }
.tea-placeholder span {
  width: 53px; height: 27px; border: 1px solid #e1c28b; border-radius: 80% 0; transform: rotate(-25deg);
  background: linear-gradient(154deg, transparent 48%, #e1c289 50%, transparent 52%);
}
.owner-product-info { min-width: 0; overflow-wrap: anywhere; }
.tea-content > div { min-width: 0; overflow-wrap: anywhere; }
.tea-content { display: flex; justify-content: space-between; gap: 12px; align-items: end; padding: 22px; }
.tea-content h3 { margin: 5px 0 8px; font-size: clamp(24px, 3vw, 32px); }
.tea-origin { color: var(--earth); font-size: .88rem; }
.tea-content div > p:last-child { color: var(--muted); }
.menu-section { padding-block: 42px 56px; }
.tea-arc {
  --arc-ease: cubic-bezier(.22,.8,.2,1);
  overflow: hidden; border: 1px solid #d8cfbe; border-radius: 10px; background: #fcfaf6;
  box-shadow: 0 14px 36px rgba(17, 29, 23, .08);
}
.arc-stage {
  --reel-shift: 0px;
  position: relative; isolation: isolate; height: clamp(360px, 38vw, 476px); overflow: hidden; touch-action: pan-y pinch-zoom;
  user-select: none; cursor: grab;
  background: #0d1712;
}
.arc-stage::before {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%, rgba(226, 193, 134, .14), transparent 68%),
    linear-gradient(90deg, rgba(9, 17, 13, .88) 0%, rgba(9, 17, 13, .36) 14%, transparent 28%, transparent 72%, rgba(9, 17, 13, .36) 86%, rgba(9, 17, 13, .88) 100%);
}
.cinema-backdrop {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.cinema-backdrop-layer {
  position: absolute; inset: -12%; opacity: 0; transition: opacity .68s ease;
}
.cinema-backdrop-layer[data-active="true"] { opacity: 1; }
.cinema-backdrop-layer img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(36px) saturate(1.2) brightness(.36);
  transform: scale(1.1);
}
.cinema-sprockets {
  position: absolute; left: 0; right: 0; z-index: 5; height: 16px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(235, 214, 172, .22) 11px 23px, transparent 23px 34px) var(--reel-shift) center / 34px 7px repeat-x,
    rgba(8, 14, 11, .82);
  transition: background-position .68s var(--arc-ease);
}
.cinema-sprockets-top { top: 0; border-bottom: 1px solid rgba(226, 193, 134, .16); }
.cinema-sprockets-bottom { bottom: 0; border-top: 1px solid rgba(226, 193, 134, .16); }
.cinema-header {
  position: absolute; top: 26px; left: clamp(18px, 3vw, 34px); right: clamp(18px, 3vw, 34px); z-index: 6;
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
  font-size: .72rem; letter-spacing: .22em; color: rgba(242, 224, 188, .66);
}
.cinema-counter { font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.cinema-counter strong { color: var(--gold); font-weight: 700; }
.arc-items {
  position: absolute; inset: 16px 0; z-index: 2;
}
.arc-stage[data-dragging] .arc-card,
.arc-stage[data-dragging] .arc-cover img,
.arc-stage[data-dragging] .arc-cover::before,
.arc-stage[data-dragging] .cinema-sprockets { transition: none; }
.arc-stage[data-dragging], .arc-stage[data-dragging] .arc-card { cursor: grabbing; }
.arc-card {
  --arc-gap: clamp(260px, 35vw, 430px);
  --offset: 0;
  --size: 1;
  --card-opacity: 1;
  --turn: 0deg;
  --shade: 0;
  --parallax: 0%;
  position: absolute; top: 53%; left: 50%;
  width: clamp(256px, 34vw, 412px); aspect-ratio: 1.26;
  padding: 0; border: 0; background: transparent; color: #f6e7c5; border-radius: 6px;
  opacity: var(--card-opacity);
  transform: translate(-50%, -50%) translate3d(calc(var(--offset) * var(--arc-gap)), 0, 0) scale(var(--size)) perspective(1200px) rotateY(var(--turn));
  transition: transform .68s var(--arc-ease), opacity .52s ease, visibility .4s;
  cursor: pointer;
}
.arc-card[data-slot="-3"], .arc-card[data-slot="3"] {
  visibility: hidden; opacity: 0; pointer-events: none;
}
.arc-card[data-slot="0"] { cursor: zoom-in; }
.arc-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.arc-frame {
  position: absolute; inset: 0; display: block; border-radius: 6px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .58);
  transition: box-shadow .45s ease, transform .45s var(--arc-ease);
  pointer-events: none;
}
.arc-card[data-slot="0"] .arc-frame {
  box-shadow: 0 26px 60px rgba(0, 0, 0, .72), 0 0 0 1px rgba(226, 193, 134, .75), 0 0 32px rgba(226, 193, 134, .16);
}
.arc-card[data-slot="0"]:hover .arc-frame {
  transform: scale(1.018);
  box-shadow: 0 28px 66px rgba(0, 0, 0, .78), 0 0 0 1.5px #f1d399, 0 0 38px rgba(226, 193, 134, .24);
}
.arc-card:not([data-slot="0"]):hover .arc-cover::before { background: rgb(9 17 13 / .18); }
.arc-cover {
  position: absolute; inset: 0; display: block; overflow: hidden; text-align: left;
  background: #17241d; border: 1px solid rgba(226, 193, 134, .28); border-radius: 6px;
}
.arc-cover img, .arc-cover .tea-placeholder { width: 100%; height: 100%; object-fit: cover; }
.arc-cover img {
  -webkit-user-drag: none;
  transform: scale(1.12) translateX(var(--parallax));
  transition: transform .68s var(--arc-ease);
}
.arc-cover::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgb(9 17 13 / var(--shade)); transition: background-color .45s ease;
}
.arc-cover::after {
  content: ''; position: absolute; inset: 7px; z-index: 2;
  border: 1px solid rgba(235, 207, 142, .22); border-radius: 3px; pointer-events: none;
}
.arc-card[data-slot="0"] .arc-cover::after { border-color: rgba(235, 207, 142, .45); }
.arc-frame-code {
  position: absolute; top: 13px; left: 15px; z-index: 3;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(11, 20, 16, .66); border: 1px solid rgba(226, 193, 134, .34);
  color: #f0d399; font-size: .68rem; font-variant-numeric: tabular-nums; letter-spacing: .14em;
}
.arc-print {
  position: absolute; inset: 46% 0 0; z-index: 3; display: flex; flex-direction: column; justify-content: end; gap: 3px;
  padding: 16px 18px; background: linear-gradient(transparent, rgba(10, 18, 14, .88) 76%);
  line-height: 1.24; overflow-wrap: anywhere;
}
.arc-print span { color: #ebd097; font-size: .72rem; letter-spacing: .16em; }
.arc-print strong {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;
  color: #fff3d6; font: 700 clamp(21px, 2.2vw, 30px)/1.2 var(--serif);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}
.arc-controls {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 16px; align-items: center;
  padding: 12px clamp(18px, 4.6vw, 58px); background: #13211a; border-bottom: 1px solid #26392f;
}
.arc-step {
  display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(226, 193, 134, .35); border-radius: 50%;
  color: #f5e2ba; background: rgba(255, 248, 232, .06); font-size: 1.15rem; line-height: 1;
  transition: background .2s ease, border-color .2s ease;
}
.arc-step:hover:not([aria-disabled="true"]) { background: rgba(226, 193, 134, .2); border-color: var(--gold); }
.arc-step[aria-disabled="true"] { cursor: default; opacity: .38; }
.arc-scrubber { position: relative; height: 42px; display: grid; align-items: center; }
.arc-scrubber:focus-within { outline: 2px solid var(--gold); outline-offset: -3px; border-radius: 5px; }
.arc-scrubber input {
  position: absolute; inset: 0; width: 100%; height: 42px; padding: 0; margin: 0; opacity: 0; cursor: ew-resize;
}
.arc-track { position: relative; height: 2px; margin-inline: 8px; border-radius: 999px; background: rgba(226, 193, 134, .24); }
.arc-fill {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, #b89152, var(--gold));
  transition: width .62s var(--arc-ease);
}
.arc-marker {
  position: absolute; top: 50%; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(226, 193, 134, .28), 0 0 12px rgba(226, 193, 134, .65);
  transform: translate(-50%,-50%); transition: left .62s var(--arc-ease);
}
.arc-caption {
  display: flex; gap: 18px 32px; align-items: center; justify-content: space-between;
  min-block-size: 146px;
  padding: 20px clamp(18px, 4.6vw, 58px) 26px;
}
.arc-caption > div { min-width: 0; }
.arc-origin { color: var(--earth); font-size: .85rem; letter-spacing: .13em; overflow-wrap: anywhere; }
.arc-name { font-size: clamp(29px, 4.2vw, 49px); letter-spacing: .035em; overflow-wrap: anywhere; }
.arc-caption .arc-name { line-height: 1.18; }
.arc-caption .arc-origin { font-size: .75rem; font-weight: 500; line-height: 1.45; letter-spacing: .12em; }
.arc-caption .arc-origin + .arc-name { margin-top: 6px; }
.arc-description { color: var(--muted); margin-top: 8px; white-space: pre-line; overflow-wrap: anywhere; }
.arc-caption .arc-description { font-size: .875rem; font-weight: 400; line-height: 1.65; }
.arc-book { min-width: 132px; }
dialog:has(.arc-detail) { width: min(840px, calc(100% - 24px)); border-color: #dcd1bf; background: #faf6ee; }
dialog:has(.arc-detail)::backdrop { background: #14221ab8; backdrop-filter: blur(4px); }
dialog:has(.arc-detail) .modal-inner { padding: 0; }
dialog:has(.arc-detail) .close-button { background: #fcfaf6; z-index: 1; }
.arc-detail {
  min-height: 360px; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center;
  background: radial-gradient(ellipse at 81% 45%, #eaddc9, #faf6ee 67%);
}
.arc-detail-visual { display: grid; justify-items: center; padding: 36px 36px 36px 12px; }
.arc-detail-photo {
  position: relative; width: min(100%, 340px); aspect-ratio: 1.26; background: #19261f;
  border: 1px solid #b5945f; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 36px rgba(32, 23, 12, .26);
}
.arc-detail-photo img, .arc-detail-photo .tea-placeholder { width: 100%; height: 100%; object-fit: cover; }
.arc-detail-copy { padding: 35px clamp(20px, 5vw, 48px); animation: arc-detail-in .46s ease-out both; }
.arc-detail-copy h2 { margin: 3px 0 8px; font-size: clamp(28px, 5vw, 42px); overflow-wrap: anywhere; }
.arc-detail-copy .button { margin-top: 16px; }
@keyframes arc-detail-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.footer { background: var(--pine-dark); color: #eee7d6; }
.footer-inner { min-height: 109px; display: flex; gap: 17px; justify-content: space-between; align-items: center; }
.footer-inner strong { font: 700 24px var(--serif); color: var(--gold); letter-spacing: .12em; }
.footer-inner > div p { color: var(--gold); }
.text-button { border: 0; background: none; color: inherit; padding: 7px 2px; text-underline-offset: 4px; text-decoration: underline; }
.empty-state { border: 1px dashed #bdb9a3; border-radius: 8px; text-align: center; padding: 32px 18px; color: var(--muted); }
.empty-state .button { margin-top: 12px; }
.order-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.order-card { background: var(--paper); border: 1px solid var(--border); border-radius: 8px; padding: 19px; min-width: 0; }
.order-card.ready { border-color: #78966f; }
.order-card header { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.order-card h3 { font-size: 23px; overflow-wrap: anywhere; }
.order-card p { color: var(--muted); font-size: .91rem; overflow-wrap: anywhere; }
.order-card p + p { margin-top: 4px; }
.order-timeline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr)); gap: 9px 15px;
  margin: 12px 0; padding: 10px 12px; border-radius: 5px; background: #f0eee4;
}
.order-timeline dt { color: var(--muted); font-size: .78rem; }
.order-timeline dd { margin: 2px 0 0; color: var(--ink); font-size: .9rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.order-timeline time { white-space: nowrap; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.history-heading h2 { font: 700 clamp(24px, 4vw, 35px)/1.2 var(--serif); }
.history-heading p { margin-top: 5px; color: var(--muted); font-size: .86rem; }
.status { color: #374739; background: #e8ebdd; border-radius: 20px; padding: 3px 10px; font-size: .84rem; font-weight: 650; white-space: nowrap; }
.status.brewing { color: #70491b; background: #f2e2bf; }
.status.ready { color: #225433; background: #dcecd8; }
.status.cancelled, .status.picked_up { background: #ede9df; color: #5c594e; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pickup { margin-top: 12px; background: #e7efde; color: #24432b; padding: 9px 12px; border-radius: 4px; }
.pickup strong { letter-spacing: .1em; }
.steps { list-style: none; margin: 17px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); color: var(--muted); font-size: .85rem; gap: 3px; }
.steps li { border-top: 3px solid #d9d7c9; padding-top: 4px; }
.steps li.done { border-color: #607b59; color: #3a563b; }
.brewing-panel {
  --brew-duration: 4.8s;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
  margin-top: 14px; padding: 12px; border: 1px solid #e5d8bb; border-radius: 8px;
  background: #f6eedc;
}
.brew-scene {
  position: relative; isolation: isolate; width: 194px; height: 140px; flex: 0 0 194px;
  background: radial-gradient(ellipse at 53% 59%, #f9f5e8, #eee2c6 73%);
  border-radius: 6px; overflow: hidden;
}
.brew-info { flex: 1 1 150px; min-width: 0; }
.brew-info strong { color: #5a4229; }
.brew-info p, .brew-replay { font-size: .82rem; }
.brew-replay { color: #62441a; padding-block: 6px 2px; }
.brew-sequence { display: flex; flex-wrap: wrap; list-style: none; gap: 5px; margin: 6px 0; padding: 0; }
.brew-sequence li {
  padding: 2px 6px; border-radius: 4px; background: #eee4ce; color: #5e513b; font-size: .74rem;
  animation: var(--brew-duration) linear both;
}
.brew-sequence li:nth-child(1) { animation-name: brew-stage-leaves; }
.brew-sequence li:nth-child(2) { animation-name: brew-stage-water; }
.brew-sequence li:nth-child(3) { animation-name: brew-stage-steep; }
.brew-shadow {
  position: absolute; bottom: 15px; left: 37px; width: 122px; height: 14px; border-radius: 50%;
  background: #79553737; filter: blur(3px);
}
.brew-saucer {
  position: absolute; bottom: 19px; left: 44px; width: 107px; height: 13px; border-radius: 50%;
  background: #c9c9a9; border: 1px solid #65745d; box-shadow: inset 0 -3px #89957c;
}
.brew-glass {
  position: absolute; bottom: 25px; left: 60px; z-index: 2; width: 76px; height: 43px;
  overflow: hidden; border: 2px solid #586d5d; border-radius: 5px 5px 29px 29px;
  background: #e1eddf40; box-shadow: inset 5px 0 #ffffed8a;
}
.brew-glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  border-left: 4px solid #fff8dbab; pointer-events: none;
}
.brew-infusion {
  position: absolute; inset: 8px 0 0; border-radius: 45% 45% 0 0 / 12% 12% 0 0;
  background: linear-gradient(#e2a44f, #c57028 58%, #934817);
  transform-origin: bottom; animation: brew-fill var(--brew-duration) ease-out both;
}
.brew-settled {
  position: absolute; bottom: 4px; left: 26px; width: 9px; height: 4px;
  border-radius: 5px 0; background: #775023; box-shadow: 9px 2px #775023, 17px -1px #875a28;
  animation: brew-settle var(--brew-duration) linear both;
}
.brew-kettle {
  position: absolute; top: 21px; right: 30px; z-index: 3; width: 42px; height: 28px;
  border-radius: 45% 45% 38% 38%; background: linear-gradient(125deg, #708572, #293f32 72%);
  box-shadow: inset 0 2px 0 #91a38b, 0 2px 3px #51472b33;
  transform-origin: 15% 52%; animation: brew-tilt var(--brew-duration) ease-in-out both;
}
.brew-kettle::before {
  content: ''; position: absolute; right: -12px; top: 3px; width: 19px; height: 19px;
  border: 3px solid #40594b; border-radius: 43%; z-index: -1;
}
.brew-kettle::after {
  content: ''; position: absolute; left: -23px; top: -2px; width: 27px; height: 23px;
  clip-path: polygon(0 0, 36% 17%, 66% 48%, 100% 48%, 100% 100%, 51% 78%, 19% 32%);
  background: #4a6351;
}
.brew-stream {
  position: absolute; top: 32px; left: 100px; height: 69px; width: 5px; z-index: 1;
  border-radius: 55%; background: linear-gradient(#cf9a42, #fff5d5, #d2a455);
  transform-origin: top; animation: brew-pour var(--brew-duration) linear both;
}
.brew-leaves {
  position: absolute; top: 13px; left: 71px; width: 29px; height: 19px; z-index: 1;
  animation: brew-drop var(--brew-duration) ease-in both;
}
.brew-leaves i { position: absolute; width: 12px; height: 5px; border-radius: 0 80%; background: #676d35; }
.brew-leaves i:nth-child(1) { left: 0; top: 2px; transform: rotate(22deg); }
.brew-leaves i:nth-child(2) { left: 8px; top: 10px; transform: rotate(-30deg); background: #855724; }
.brew-leaves i:nth-child(3) { left: 18px; top: 1px; transform: rotate(64deg); }
.brew-leaves i:nth-child(4) { left: 21px; top: 14px; transform: rotate(97deg); background: #855724; }
.brew-steam {
  position: absolute; bottom: 68px; left: 78px; width: 40px; height: 28px; z-index: 2;
  animation: brew-rise var(--brew-duration) ease-out both;
}
.brew-steam i { position: absolute; bottom: 0; width: 9px; height: 23px; border-left: 2px solid #bf9166; border-radius: 50%; }
.brew-steam i:nth-child(2) { left: 13px; height: 29px; transform: rotate(-8deg); }
.brew-steam i:nth-child(3) { left: 28px; height: 19px; transform: rotate(7deg); }
@keyframes brew-drop {
  0% { opacity: 0; transform: rotate(-20deg) translate(-8px, -7px); }
  6% { opacity: 1; }
  26% { opacity: 1; transform: rotate(33deg) translate(56px, 60px); }
  30%, 100% { opacity: 0; transform: rotate(31deg) translate(59px, 72px); }
}
@keyframes brew-settle { 0%, 24% { opacity: 0; } 29%, 100% { opacity: 1; } }
@keyframes brew-tilt { 0%, 24%, 72%, 100% { transform: rotate(0); } 35%, 62% { transform: rotate(-25deg); } }
@keyframes brew-pour {
  0%, 34% { opacity: 0; transform: scaleY(0); }
  37%, 61% { opacity: 1; transform: scaleY(1); }
  68%, 100% { opacity: 0; transform: scaleY(1); }
}
@keyframes brew-fill { 0%, 38% { transform: scaleY(0); } 66%, 100% { transform: scaleY(.83); } }
@keyframes brew-rise {
  0%, 68% { opacity: 0; transform: translateY(5px); }
  81% { opacity: .9; }
  100% { opacity: .57; transform: translateY(-5px); }
}
@keyframes brew-stage-leaves {
  0%, 25% { background: #425c45; color: #fffaf0; }
  30%, 100% { background: #eee4ce; color: #5e513b; }
}
@keyframes brew-stage-water {
  0%, 25%, 67%, 100% { background: #eee4ce; color: #5e513b; }
  31%, 63% { background: #425c45; color: #fffaf0; }
}
@keyframes brew-stage-steep {
  0%, 63% { background: #eee4ce; color: #5e513b; }
  68%, 100% { background: #425c45; color: #fffaf0; }
}
.dashboard { min-height: 64vh; background: var(--page); padding-block: 45px 66px; }
.dashboard-nav { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 9px; }
.dashboard-nav .button:not([aria-current]) { color: var(--ink); background: #e8e7db; }
.stat-grid { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 12px; margin-bottom: 18px; }
.stat { border: 1px solid var(--border); border-radius: 6px; padding: 13px 16px; background: var(--paper); color: var(--muted); }
.stat strong { display: block; font: 700 30px/1.2 var(--serif); color: var(--pine); }
.toolbar, .pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block: 16px; }
.toolbar input { max-width: 345px; flex: 1 1 185px; }
.customer-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--border); }
.customer-table th, .customer-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.customer-table th { background: #e9ebde; }
.customer-table td:last-child { text-align: right; }
.customer-table td small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.customer-table td .button { min-height: 40px; padding: 6px 12px; }
.customer-table td .button + .button { margin-left: 6px; }
.customer-table td:first-child { overflow-wrap: anywhere; }
dialog { border: 1px solid var(--border); background: var(--paper); color: var(--ink); border-radius: 10px; width: min(480px, calc(100% - 24px)); padding: 0; max-height: calc(100% - 28px); box-shadow: 0 15px 50px #0f180f50; }
dialog::backdrop { background: #0d1d16aa; }
.modal-inner { position: relative; padding: 28px; }
.close-button { position: absolute; right: 12px; top: 10px; width: 44px; height: 44px; border-radius: 5px; border: 0; color: var(--ink); background: transparent; font-size: 28px; line-height: 1; }
.close-button:hover { background: #e7e8de; }
.modal-inner h2 { font-size: 29px; margin: 1px 28px 12px 0; }
.modal-inner > div > p { color: var(--muted); margin-bottom: 12px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-weight: 650; font-size: .94rem; }
input, select, textarea { width: 100%; min-width: 0; min-height: 43px; border: 1px solid #b7b6a4; border-radius: 5px; background: #fffef9; color: var(--ink); padding: 8px 10px; font-weight: 400; }
textarea { resize: vertical; min-height: 74px; }
.form small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.form .form-error { color: #8d301d; font-size: .88rem; }
.form .form-error:empty { display: none; }
.form .text-button { justify-self: center; }
.form .inline-check { display: flex; align-items: center; gap: 8px; }
.form .inline-check input { width: 18px; min-height: 0; height: 18px; margin: 0; accent-color: var(--pine); }
.product-photo-preview { height: 105px; max-width: 100%; border-radius: 6px; object-fit: contain; }
.form input[type="file"] { max-width: 100%; }
.log-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.log-list li { border-bottom: 1px solid var(--border); padding: 0 0 8px; overflow-wrap: anywhere; }
.log-list small { display: block; color: var(--muted); }
#toast { position: fixed; bottom: 18px; right: 18px; z-index: 3; max-width: min(350px, calc(100vw - 36px)); background: var(--pine-dark); color: var(--paper); padding: 12px 18px; border-radius: 6px; box-shadow: 0 4px 18px #0003; }
#toast:empty { padding: 0; box-shadow: none; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .topbar-inner { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; padding-block: 13px 11px; }
  .topbar nav { grid-row: 2; grid-column: 1 / -1; justify-content: start; gap: 24px; }
  .topbar nav a[aria-current]::after { bottom: -4px; }
  .account-actions { grid-row: 1; grid-column: 2; }
  .account-name { max-width: 100px; }
  .hero { --scene-height: clamp(252px, 73vw, 495px); min-height: calc(var(--scene-height) + 260px); }
  .hero::before { height: calc(var(--scene-height) + 16px); background: linear-gradient(0deg, #17261f 5%, #17261fba 16%, #17261f35 34%, transparent 57%); }
  .hero-inner { align-items: end; }
  .hero-copy { padding: 0 0 16px; }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(39px, 9.9vw, 61px); }
  .hero-lead { margin-block: 11px 14px; }
  .hero-time { justify-self: start; margin-bottom: 15px; gap: 5px; }
  .hero-periods button { min-height: 44px; padding-inline: 7px; }
  .menu-section, .orders-section { padding-block: 39px 45px; }
  .section-heading { align-items: start; flex-direction: column; gap: 7px; }
  .section-heading > p { max-width: none; }
  .tea-grid, .order-list { grid-template-columns: 1fr; gap: 16px; }
  .tea-content { padding: 16px; }
  .tea-card > img, .tea-placeholder { aspect-ratio: 2; }
  .footer-inner { flex-wrap: wrap; padding-block: 16px; }
  .customer-table th, .customer-table td { padding: 7px 8px; }
  .customer-table td .button + .button { margin: 4px 0 0; }
  .customer-table td:last-child { width: 116px; }
  .stat { padding: 9px 10px; font-size: .88rem; }
}
@media (max-width: 560px) {
  .menu-section { padding-block: 24px 36px; }
  .arc-stage { height: clamp(298px, 80vw, 360px); }
  .cinema-header { top: 22px; font-size: .68rem; }
  .arc-card { --arc-gap: clamp(226px, 74vw, 300px); top: 55.5%; width: clamp(216px, 68vw, 286px); }
  .arc-card[data-slot="-2"], .arc-card[data-slot="2"] { visibility: hidden; opacity: 0; pointer-events: none; }
  .arc-controls { padding: 10px 16px; gap: 10px; }
  .arc-caption { align-items: start; flex-direction: column; gap: 15px; padding-top: 18px; }
  .arc-book { width: 100%; }
  .arc-detail { grid-template-columns: 1fr; }
  .arc-detail-visual { grid-row: 1; padding: 34px 20px 0; }
  .arc-detail-photo { width: min(86%, 290px); }
  .arc-detail-copy { padding: 21px 24px 27px; }
}
@media (max-width: 390px) {
  .account-name { display: none; }
  .hero-time { gap: 2px; }
  .hero-clock { gap: 4px; padding-inline: 3px; }
  .hero-periods { gap: 0; }
  .hero-periods button { padding-inline: 6px; }
  .footer-inner { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; }
  .hero-scene, .hero-door-ring { transition: none !important; }
  .arc-card, .arc-frame, .arc-cover img, .arc-cover::before, .arc-marker, .arc-fill, .cinema-backdrop-layer, .cinema-sprockets { transition: none; }
  .brew-leaves, .brew-stream, .brew-replay { display: none; }
  .brew-infusion { transform: scaleY(.83); }
  .brew-steam { opacity: .57; }
}
