:root {
  color-scheme: light;
  --paper: #f3f1ec;
  --paper-warm: #ebe6dd;
  --ink: #171815;
  --ink-soft: #555850;
  --line: rgba(35, 38, 33, 0.1);
  --white: #fff;
  --accent: #95653f;
  --accent-dark: #6e492c;
  --green: #496a57;
  --green-pale: #dfe9e0;
  --blue-pale: #e2e9ed;
  --orange-pale: #eee2d5;
  --danger: #a54943;
  --shadow-sm: 0 8px 28px rgba(31, 33, 28, 0.07);
  --shadow-lg: 0 30px 80px rgba(24, 25, 22, 0.18);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --spring: cubic-bezier(0.2, 0.85, 0.3, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
html { overscroll-behavior-y: none; }
body { margin: 0; min-width: 320px; overscroll-behavior-y: none; background: var(--paper); color: var(--ink); }
body.sheet-open { overflow: hidden; }
html.secondary-page-open { overflow: hidden; overscroll-behavior: none; }
body.secondary-page-open { position: fixed; top: var(--background-scroll-top, 0); right: 0; left: 0; width: 100%; overflow: hidden; overscroll-behavior: none; padding-right: var(--background-scrollbar-gap, 0); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(71, 111, 198, 0.42); outline-offset: 3px; }
button { border: 0; cursor: var(--cursor-pointer); }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.app-view { min-height: 100vh; min-height: 100dvh; }

.eyebrow { margin: 0 0 0.85rem; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.66); }
.eyebrow.dark { color: #77796f; }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 12px; background: var(--ink); color: white; font-family: "Songti SC", serif; font-size: 1.1rem; box-shadow: inset 0 1px rgba(255,255,255,.2); }
.brand > span:last-child { display: flex; flex-direction: column; gap: .12rem; }
.brand b { font-size: .95rem; letter-spacing: .08em; }
.brand small { font-size: .49rem; letter-spacing: .18em; opacity: .58; }
.brand-light { color: white; }
.brand-light .brand-mark { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(16px); }

.auth-view { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(26rem, .88fr); background: #eceae5; }
.auth-story { position: relative; min-height: 100svh; padding: 3rem; overflow: hidden; color: white; }
.story-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,16,12,.28) 0%, rgba(11,14,11,.12) 40%, rgba(9,11,9,.8) 100%), linear-gradient(90deg, rgba(10,12,10,.28), transparent 60%); }
.story-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.private-badge { padding: .65rem .9rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: .72rem; letter-spacing: .08em; background: rgba(255,255,255,.1); backdrop-filter: blur(18px); }
.story-copy { position: absolute; z-index: 1; left: 3rem; right: 3rem; bottom: 3.25rem; max-width: 44rem; }
.story-copy h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: clamp(3rem, 5.4vw, 5.9rem); font-weight: 500; line-height: 1.06; letter-spacing: -.055em; text-shadow: 0 4px 30px rgba(0,0,0,.18); }
.story-copy > p:not(.eyebrow) { max-width: 32rem; margin: 1.5rem 0 2.2rem; color: rgba(255,255,255,.74); font-size: 1rem; line-height: 1.8; }
.story-meta { display: flex; gap: 2.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.22); }
.story-meta span { display: flex; flex-direction: column; gap: .35rem; font-size: .72rem; color: rgba(255,255,255,.55); }
.story-meta b { color: white; font-size: .88rem; }
.auth-panel { display: grid; place-items: center; padding: 3rem; }
.auth-card { width: min(100%, 28rem); }
.auth-heading h2 { margin: 0 0 .65rem; font-family: "Songti SC", serif; font-size: 2.15rem; font-weight: 600; letter-spacing: -.04em; }
.auth-heading > p:last-child { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; margin: 2.1rem 0 1.65rem; padding: .28rem; border-radius: 14px; background: rgba(24,25,22,.06); }
.segment { padding: .72rem; border-radius: 11px; background: transparent; color: #77796f; font-weight: 650; font-size: .83rem; transition: .25s var(--spring); }
.segment:active { transform: scale(.98); }
.segment.is-active { background: white; color: var(--ink); box-shadow: 0 3px 12px rgba(32,33,29,.08); }
.field { display: grid; gap: .5rem; margin-bottom: 1rem; }
.field > span, .note-field > span { font-size: .75rem; font-weight: 680; color: #4c4e48; }
.field input, .field select, .field textarea, .note-field input { width: 100%; min-height: 3.15rem; padding: .75rem 1rem; border: 1px solid rgba(24,25,22,.12); border-radius: 13px; background: rgba(255,255,255,.72); color: var(--ink); outline: none; transition: border .2s, box-shadow .2s, background .2s; }
.field input, .field select, .note-field input { height: 3.15rem; padding-block: 0; }
.field textarea { resize: none; line-height: 1.55; }
@media (hover: hover) and (pointer: fine) { .field input:hover, .field select:hover, .field textarea:hover, .note-field input:hover { background: white; } }
.field input:focus, .field select:focus, .field textarea:focus, .note-field input:focus { border-color: rgba(105,73,44,.48); box-shadow: 0 0 0 4px rgba(149,101,63,.1); background: white; }
.auth-input-wrap { position: relative; }
.auth-input-wrap input { padding-right: 3rem; }
.input-clear { position: absolute; top: 50%; right: .72rem; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; color: #85877f; background: rgba(24,25,22,.065); opacity: 0; visibility: hidden; transform: translateY(-50%) scale(.86); transition: opacity .16s, visibility .16s, transform .18s var(--spring), background .16s; }
.auth-input-wrap input:not(:placeholder-shown) + .input-clear { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
@media (hover: hover) and (pointer: fine) { .input-clear:hover { background: rgba(24,25,22,.11); } }
.input-clear:active { transform: translateY(-50%) scale(.9); }
.input-clear svg { width: .72rem; height: .72rem; stroke-width: 1.8; }
.code-input-wrap { position: relative; }
.code-input-wrap input { padding-right: 7.5rem; text-transform: uppercase; letter-spacing: .08em; }
.code-input-wrap > span { position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); color: #989a91; font-size: .68rem; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin: .35rem 0 1.4rem; }
#login-options { justify-content: space-between; gap: 1rem; }
.check-label { display: inline-flex; align-items: center; gap: .5rem; color: #6b6d65; font-size: .76rem; }
.check-label input { accent-color: var(--ink); }
.remember-login { cursor: var(--cursor-pointer); user-select: none; }
.remember-login input { width: 1rem; height: 1rem; margin: 0; }
.text-button { padding: .2rem; background: none; color: var(--accent-dark); font-size: .76rem; font-weight: 650; }
.text-button svg { width: 1rem; height: 1rem; vertical-align: -.2rem; }
.primary-button { min-height: 3.25rem; display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 0 1.2rem; border-radius: 14px; background: var(--ink); color: white; font-weight: 680; font-size: .84rem; box-shadow: 0 10px 24px rgba(23,24,21,.16); transition: transform .18s var(--spring), background .2s, box-shadow .2s; }
@media (hover: hover) and (pointer: fine) { .primary-button:hover { background: #292a26; box-shadow: 0 13px 30px rgba(23,24,21,.2); } }
.primary-button:active { transform: scale(.975); }
.primary-button:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.primary-button svg { width: 1.05rem; height: 1.05rem; }
.primary-button.small { min-height: 2.8rem; padding: 0 1rem; }
.auth-submit { width: 100%; justify-content: space-between; padding-inline: 1.25rem; }
.demo-divider { display: flex; align-items: center; gap: .8rem; margin: 1.6rem 0 1rem; color: #999b94; font-size: .66rem; }
.demo-divider::before, .demo-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.demo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.soft-button { min-height: 2.65rem; padding: .65rem 1rem; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px solid rgba(24,25,22,.09); color: #42443f; font-weight: 630; font-size: .76rem; transition: transform .18s var(--spring), background .2s; }
@media (hover: hover) and (pointer: fine) { .soft-button:hover { background: white; } }
.soft-button:active { transform: scale(.975); }
.auth-footnote { margin: 1.3rem 0 0; text-align: center; color: #96988f; font-size: .66rem; }

.glass-bar { background: rgba(244,242,237,.74); backdrop-filter: blur(24px) saturate(165%); -webkit-backdrop-filter: blur(24px) saturate(165%); }
.customer-header { position: sticky; top: 0; z-index: 40; height: 5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(1.25rem, 4vw, 4.5rem); border-bottom: 1px solid rgba(32,34,29,.07); }
.desktop-nav { display: flex; align-items: center; gap: .35rem; padding: .28rem; border-radius: 12px; background: rgba(25,26,23,.05); }
.nav-link { padding: .62rem 1.2rem; border-radius: 9px; background: transparent; color: #73756d; font-size: .78rem; font-weight: 650; transition: .2s var(--spring); }
.nav-link.is-active { color: var(--ink); background: rgba(255,255,255,.88); box-shadow: 0 2px 10px rgba(24,25,22,.06); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .6rem; }
.admin-return-button {
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: 0 .9rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #f5f5f7;
  background: transparent;
  box-shadow: inset 0 1px rgba(255,255,255,.2);
  backdrop-filter: blur(3px) saturate(155%);
  -webkit-backdrop-filter: blur(3px) saturate(155%);
  font-size: .7rem;
  font-weight: 650;
  transition: transform .18s var(--spring), border-color .2s ease;
}
.admin-return-button[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .admin-return-button:hover { border-color: rgba(255,255,255,.36); } }
.admin-return-button:active { transform: scale(.96); }
.admin-return-button svg { width: .9rem; height: .9rem; transform: rotate(180deg); }
.icon-button { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; border-radius: 50%; background: rgba(255,255,255,.62); border: 1px solid rgba(24,25,22,.08); transition: transform .18s var(--spring), background .2s; }
@media (hover: hover) and (pointer: fine) { .icon-button:hover { background: white; } }
.icon-button:active { transform: scale(.92); }
.icon-button svg { width: 1.08rem; height: 1.08rem; }
.cart-button { height: 2.6rem; display: flex; align-items: center; gap: .5rem; padding: 0 .55rem 0 .8rem; border-radius: 999px; background: var(--ink); color: white; font-size: .75rem; }
.cart-button:active { transform: scale(.97); }
.cart-button svg { width: 1rem; height: 1rem; }
.cart-button b { display: grid; place-items: center; min-width: 1.65rem; height: 1.65rem; border-radius: 50%; background: rgba(255,255,255,.16); font-size: .7rem; }
.avatar-button { width: 2.55rem; height: 2.55rem; border-radius: 50%; background: #d9d3c7; color: #4f493f; font-size: .75rem; font-weight: 700; }
.page-shell { width: min(100% - 3rem, 86rem); margin-inline: auto; }
.menu-hero { min-height: 27rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-block: clamp(5rem, 9vw, 8rem) 3.2rem; }
.hero-copy-block { max-width: 47rem; }
.hero-copy-block h1 { margin: 0; font-family: "Songti SC", serif; font-size: clamp(3.15rem, 6.4vw, 6.3rem); font-weight: 550; line-height: .98; letter-spacing: -.065em; }
.hero-copy-block > p:last-child { max-width: 37rem; margin: 1.5rem 0 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.75; }
.category-bar { position: sticky; top: 5rem; z-index: 30; display: flex; align-items: center; gap: .55rem; padding-block: .85rem; background: linear-gradient(var(--paper) 75%, rgba(243,241,236,0)); }
.category-chip { padding: .68rem 1rem; border-radius: 999px; background: rgba(255,255,255,.6); border: 1px solid var(--line); font-size: .77rem; font-weight: 650; transition: .2s var(--spring); }
.category-chip span { margin-left: .3rem; color: #9b9d96; }
.category-chip.is-active { color: white; background: var(--ink); border-color: var(--ink); }
.category-chip.is-active span { color: rgba(255,255,255,.55); }
.search-inline { margin-left: auto; width: 13rem; display: flex; align-items: center; gap: .6rem; height: 2.5rem; padding: 0 .9rem; border-radius: 999px; background: rgba(255,255,255,.56); border: 1px solid var(--line); }
.search-inline svg { width: 1rem; height: 1rem; color: #8b8d85; }
.search-inline input { min-width: 0; flex: 1; border: 0; outline: 0; background: none; font-size: .75rem; }
.menu-content { padding: 2.6rem 0 8rem; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2, .section-heading h1 { margin: 0; font-family: "Songti SC", serif; font-size: 2.15rem; font-weight: 600; letter-spacing: -.04em; }
.section-heading > p { margin: 0 0 .2rem; color: #85877f; font-size: .72rem; }
.dish-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.dish-card { position: relative; overflow: hidden; border-radius: var(--radius-md); background: rgba(255,255,255,.55); border: 1px solid rgba(30,32,28,.07); box-shadow: var(--shadow-sm); transition: transform .2s var(--spring), box-shadow .2s var(--spring); }
@media (hover: hover) and (pointer: fine) { .dish-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(31,33,28,.11); } }
.dish-image-wrap { position: relative; aspect-ratio: 1.17; overflow: hidden; background: #dad6cd; }
.dish-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s var(--spring); }
@media (hover: hover) and (pointer: fine) { .dish-card:hover .dish-image { transform: scale(1.035); } }
.dish-badges { position: absolute; top: .85rem; left: .85rem; right: 3.4rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.dish-badge { padding: .43rem .65rem; border-radius: 999px; background: rgba(248,247,243,.78); backdrop-filter: blur(15px); font-size: .62rem; font-weight: 700; color: #55574f; }
.favorite-button { position: absolute; top: .75rem; right: .75rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; color: white; background: rgba(20,20,18,.22); backdrop-filter: blur(12px); }
.favorite-button svg { width: 1rem; height: 1rem; transition: fill .16s var(--ease-out); }
.favorite-button.is-active svg { fill: white; }
.dish-body { padding: 1.1rem 1.15rem 1.2rem; }
.dish-topline { display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.dish-topline h3 { margin: 0; font-size: .98rem; letter-spacing: -.01em; }
.dish-topline strong { font-size: .95rem; }
.dish-desc { min-height: 2.7em; margin: .48rem 0 1rem; color: #777970; font-size: .7rem; line-height: 1.55; }
.dish-footer { display: flex; align-items: center; justify-content: space-between; }
.dish-footer small { color: #92948c; font-size: .64rem; }
.add-button { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; transition: transform .18s var(--spring); }
.add-button:active { transform: scale(.86); }
.add-button svg { width: 1rem; height: 1rem; }
.orders-section { padding-block: 6rem 8rem; }
.orders-heading h1 { font-size: 3.2rem; }
.customer-orders { display: grid; gap: 1rem; }
.customer-order-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem; background: rgba(255,255,255,.58); border: 1px solid var(--line); border-radius: 18px; }
.customer-order-card > span { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--green-pale); color: var(--green); }
.customer-order-card h3, .customer-order-card p { margin: 0; }
.order-status-title { display: inline-flex; align-items: center; width: fit-content; min-height: 1.9rem; padding: 0 .72rem; border-radius: 999px; font-size: .86rem; font-weight: 740; letter-spacing: -.01em; }
.order-status-title.pending { color: #ffd4a7; background: rgba(186,117,54,.15); box-shadow: inset 0 0 0 1px rgba(229,159,91,.2); }
.order-status-title.cooking { color: #c8e7cf; background: rgba(93,151,105,.15); box-shadow: inset 0 0 0 1px rgba(126,185,138,.2); }
.order-status-title.done { color: #d9dde5; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.11); }
.order-status-title.cancelled { color: #ffbbb6; background: rgba(201,78,70,.13); box-shadow: inset 0 0 0 1px rgba(233,105,96,.19); }
.order-table-mark { display: inline-flex; align-items: center; min-height: 1.35rem; margin-left: .35rem; padding: 0 .42rem; border-radius: 999px; color: #b9cdf1; background: rgba(112,148,211,.14); font-size: .54rem; font-weight: 680; vertical-align: .12rem; }
.customer-order-card p { margin-top: .3rem; color: #777970; font-size: .74rem; }
.customer-order-card aside { text-align: right; }
.customer-order-card aside strong { display: block; }
.customer-order-card aside span { display: block; margin-top: .35rem; color: var(--green); font-size: .68rem; }
.mobile-nav { display: none; }

.scrim { position: fixed; z-index: 80; inset: 0; background: rgba(15,17,14,.36); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.scrim.is-visible { opacity: 1; }
.cart-sheet { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(100%, 29rem); display: flex; flex-direction: column; padding: 1.4rem; background: rgba(246,245,241,.92); backdrop-filter: blur(30px) saturate(160%); box-shadow: var(--shadow-lg); transform: translateX(104%); transition: transform .42s var(--spring); }
.cart-sheet.is-open { transform: translateX(0); }
.sheet-handle { display: none; }
.sheet-header { display: flex; align-items: start; justify-content: space-between; padding: .5rem .15rem 1.2rem; border-bottom: 1px solid var(--line); }
.sheet-header h2 { margin: 0; font-family: "Songti SC", serif; font-size: 1.8rem; }
.cart-items { flex: 1; overflow: auto; padding: 1.2rem .15rem; }
.empty-cart { min-height: 18rem; display: grid; place-items: center; text-align: center; color: #777970; }
.empty-cart div { max-width: 15rem; }
.empty-cart svg { width: 2.4rem; height: 2.4rem; margin-bottom: .8rem; color: #aaa; }
.empty-cart h3 { margin: 0; color: var(--ink); font-size: .95rem; }
.empty-cart p { margin: .5rem 0 0; font-size: .72rem; line-height: 1.6; }
.cart-item { display: grid; grid-template-columns: 4.3rem 1fr auto; gap: .9rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 4.3rem; height: 4.3rem; border-radius: 13px; object-fit: cover; }
.cart-item h3, .cart-item p { margin: 0; }
.cart-item h3 { font-size: .82rem; }
.cart-item p { margin-top: .3rem; color: #777970; font-size: .7rem; }
.cart-owner { color: #aac5ef; font-size: .6rem; font-weight: 650; }
.shared-item-quantity { min-width: 2.7rem; color: #b8b8bf; font-size: .72rem; font-weight: 700; text-align: center; }
.cart-taste { display: inline-flex; align-items: center; gap: .32rem; margin-top: .42rem; }
.cart-taste b { color: #8b8d85; font-size: .58rem; font-weight: 650; }
.cart-taste em { padding: .22rem .42rem; border-radius: 999px; color: #565a64; background: rgba(138,180,255,.1); font-size: .58rem; font-style: normal; font-weight: 700; }
.quantity-control { display: flex; align-items: center; gap: .15rem; padding: .2rem; border-radius: 999px; background: rgba(30,32,28,.06); }
.quantity-control button { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: white; }
.quantity-control button:active { transform: scale(.88); }
.quantity-control svg { width: .78rem; height: .78rem; }
.quantity-control span { min-width: 1.2rem; text-align: center; font-size: .72rem; font-weight: 700; }
.cart-footer { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.note-field { display: grid; gap: .45rem; margin-bottom: 1rem; }
.note-field input { height: 2.85rem; }
.price-line, .price-total { display: flex; justify-content: space-between; margin: .55rem 0; font-size: .75rem; }
.price-line.muted { color: #85877f; }
.price-total { margin: 1rem 0; font-size: .95rem; }
.price-total b { font-size: 1.3rem; }
.cart-footer .primary-button { width: 100%; justify-content: space-between; }

dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(15,17,14,.38); backdrop-filter: blur(5px); }
.success-dialog { width: min(calc(100% - 2rem), 25rem); padding: 2.3rem; border-radius: 26px; text-align: center; background: rgba(248,247,243,.96); box-shadow: var(--shadow-lg); }
.success-icon { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; margin: 0 auto 1.5rem; border-radius: 50%; background: var(--green-pale); color: var(--green); }
.success-icon svg { width: 1.8rem; height: 1.8rem; stroke-width: 2.2; }
.success-dialog h2 { margin: 0; font-family: "Songti SC", serif; font-size: 2rem; }
.success-dialog > p:not(.eyebrow) { margin: .8rem auto 1.4rem; color: #777970; font-size: .78rem; line-height: 1.7; }
.success-dialog .primary-button { width: 100%; }
.form-dialog { width: min(calc(100% - 2rem), 28rem); padding: 1.8rem; border-radius: 24px; background: #f8f7f3; box-shadow: var(--shadow-lg); }
.form-dialog header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 1.5rem; }
.form-dialog h2 { margin: 0; font-family: "Songti SC", serif; }
.form-dialog form > p { color: #777970; font-size: .72rem; line-height: 1.6; }
.form-dialog .primary-button { width: 100%; margin-top: 1.2rem; }

.table-dialog { width: min(calc(100% - 1.5rem), 30rem); max-height: calc(100dvh - 1.5rem); border-radius: 28px; color: #f5f5f7; background: linear-gradient(150deg, rgba(42,42,48,.97), rgba(13,13,17,.98)); box-shadow: inset 0 1px rgba(255,255,255,.16), 0 36px 110px rgba(0,0,0,.6); }
.table-sheet { padding: 1.35rem; }
.table-sheet > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.09); }
.table-sheet > header h2,
.table-sheet > header p { margin: 0; }
.table-sheet > header h2 { font-size: 1.28rem; letter-spacing: -.025em; }
.table-sheet > header p:last-child { margin-top: .4rem; color: #92929a; font-size: .67rem; line-height: 1.55; }
.table-idle,
.table-active { padding-top: 1rem; }
.table-create { display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: .75rem; width: 100%; padding: .85rem; border-radius: 18px; color: #f5f5f7; background: rgba(255,255,255,.065); box-shadow: inset 0 1px rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.07); text-align: left; transition: background .2s, transform .16s var(--spring); }
@media (hover: hover) and (pointer: fine) { .table-create:hover { background: rgba(255,255,255,.1); } }
.table-create:active { transform: scale(.985); }
.table-create > span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 14px; color: #111114; background: #f4f4f6; }
.table-create > span svg { width: 1rem; height: 1rem; }
.table-create > svg { width: .9rem; height: .9rem; }
.table-create b,
.table-create small { display: block; }
.table-create b { font-size: .77rem; }
.table-create small { margin-top: .2rem; color: #92929a; font-size: .58rem; line-height: 1.45; }
.table-or { display: flex; align-items: center; gap: .65rem; margin: 1rem 0; color: #72727a; font-size: .57rem; }
.table-or::before,
.table-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.08); }
#join-table-form { display: grid; grid-template-columns: 1fr auto; gap: .55rem; }
.table-code-field { display: flex; align-items: center; gap: .65rem; min-height: 2.85rem; padding: 0 .85rem; border-radius: 14px; background: rgba(0,0,0,.2); box-shadow: none; }
.table-code-field span { flex: 0 0 auto; color: #8e8e96; font-size: .62rem; white-space: nowrap; }
.table-code-field input { min-width: 0; width: 100%; border: 0; outline: 0; color: #fff; background: none; font: 700 .8rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.table-create-step { display: grid; gap: .65rem; padding-top: .2rem; }
.table-create-step-title { margin: 0 0 .1rem; color: #f5f5f7; font-size: .78rem; font-weight: 700; }
.table-create-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.table-create-actions .primary-button,
.table-secondary-button { min-height: 2.85rem; margin: 0 !important; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.table-create-actions .primary-button { color: #111114; background: #f4f4f6; }
.table-secondary-button { color: #f5f5f7; background: rgba(255,255,255,.1); box-shadow: inset 0 1px rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.12); transition: background .2s, transform .16s var(--spring); }
@media (hover: hover) and (pointer: fine) { .table-secondary-button:hover { background: rgba(255,255,255,.16); } }
.table-secondary-button:active { transform: scale(.97); }
.table-back-button { justify-self: center; padding: .35rem .8rem; color: rgba(240,240,245,.7); background: none; font-size: .68rem; }
@media (hover: hover) and (pointer: fine) { .table-back-button:hover { color: #fff; } }
#table-custom-code::placeholder,
#table-code-input::placeholder { color: #6a6a72; font-family: inherit; letter-spacing: 0; font-weight: 500; }
#join-table-form .primary-button { min-width: 7rem; min-height: 2.85rem; margin: 0; color: #111114; background: #f4f4f6; }
.table-code-card { padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)); box-shadow: inset 0 1px rgba(255,255,255,.12); backdrop-filter: blur(10px) saturate(145%); -webkit-backdrop-filter: blur(10px) saturate(145%); }
.table-code-card > span { color: #8f8f98; font-size: .57rem; font-weight: 650; letter-spacing: .08em; }
.table-code-card button { display: flex; align-items: baseline; justify-content: space-between; width: 100%; margin-top: .38rem; color: #fff; background: transparent; text-align: left; }
.table-code-card strong { font: 750 2.15rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.table-code-card small { color: #a9c7f4; font-size: .58rem; }
.table-member-heading { display: flex; align-items: center; justify-content: space-between; margin: 1.05rem .15rem .55rem; color: #92929a; font-size: .6rem; }
.table-member-heading b { color: #d8d8dc; font-weight: 650; }
.table-members { display: flex; flex-wrap: wrap; gap: .42rem; }
.table-members > span { display: inline-flex; align-items: center; gap: .38rem; min-height: 2rem; padding: .22rem .58rem .22rem .25rem; border-radius: 999px; color: #e9e9ec; background: rgba(255,255,255,.065); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.table-members i { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; color: #111114; background: #f1f1f3; font-size: .57rem; font-style: normal; font-weight: 750; }
.table-members b { font-size: .63rem; }
.table-members em { color: #9ebaf0; font-size: .52rem; font-style: normal; }
.table-hint { margin: .9rem .15rem; color: #85858e; font-size: .6rem; line-height: 1.6; }
.table-leave { width: 100%; min-height: 2.65rem; border-radius: 14px; color: #ff8a82; background: rgba(255,69,58,.075); box-shadow: inset 0 0 0 1px rgba(255,92,82,.14); font-size: .68rem; font-weight: 650; }
@media (max-width: 520px) {
  #join-table-form { grid-template-columns: 1fr; }
  #join-table-form .primary-button { width: 100%; }
  .table-code-card strong { font-size: 1.85rem; }
}

.admin-view { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); background: #eeece7; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 1.35rem 1rem; background: #1b1d1a; color: white; }
.admin-brand { color: white; margin: .25rem .55rem 2.6rem; }
.admin-brand .brand-mark { color: #22241f; background: #e8e3d9; }
.admin-nav { display: grid; gap: .28rem; }
.admin-nav-item { width: 100%; display: grid; grid-template-columns: 1.5rem 1fr auto; align-items: center; gap: .75rem; min-height: 2.8rem; padding: .65rem .8rem; border-radius: 11px; background: transparent; color: rgba(255,255,255,.55); text-align: left; font-size: .76rem; font-weight: 620; transition: background .2s, color .2s, transform .18s; }
@media (hover: hover) and (pointer: fine) { .admin-nav-item:hover { color: white; background: rgba(255,255,255,.06); } }
.admin-nav-item:active { transform: scale(.98); }
.admin-nav-item.is-active { color: white; background: rgba(255,255,255,.105); box-shadow: inset 2px 0 #c7a579; }
.admin-nav-item svg { width: 1.05rem; height: 1.05rem; }
.admin-nav-item b { display: grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .25rem; border-radius: 999px; color: #1c1e1a; background: #d8c0a1; font-size: .62rem; }
.admin-nav-item b[hidden] { display: none; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 1rem; }
.admin-profile { display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: center; gap: .65rem; padding: .8rem; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; }
.admin-profile > span { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: #d7cab7; color: #3b372f; font-size: .5rem; font-weight: 760; letter-spacing: -.02em; text-transform: uppercase; }
.admin-profile div { display: flex; flex-direction: column; gap: .2rem; }
.admin-profile b { font-size: .75rem; }
.admin-profile small { color: rgba(255,255,255,.42); font-size: .6rem; }
.admin-profile button { background: none; color: rgba(255,255,255,.45); }
.admin-profile svg { width: .95rem; }
.admin-main { min-width: 0; padding: 0 clamp(1.25rem, 3vw, 3rem) 4rem; }
.admin-topbar { height: 6.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-topbar h1, .admin-topbar p { margin: 0; }
.admin-topbar h1 { margin-top: .25rem; font-family: "Songti SC", serif; font-size: 1.7rem; }
.admin-topbar p { color: #81837b; font-size: .68rem; }
.admin-top-actions { display: flex; align-items: center; gap: .65rem; }
.kitchen-status { display: flex; align-items: center; gap: .65rem; padding: .55rem .78rem .55rem .85rem; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.48); color: var(--ink); text-align: left; transition: background .2s, border-color .2s, transform .16s var(--spring); }
@media (hover: hover) and (pointer: fine) { .kitchen-status:hover { border-color: rgba(77,118,89,.24); background: rgba(255,255,255,.78); } }
.kitchen-status:active { transform: scale(.97); }
.kitchen-status > span { width: .55rem; height: .55rem; border-radius: 50%; background: #4d7659; box-shadow: 0 0 0 4px rgba(77,118,89,.1); }
.kitchen-status[data-status="busy"] > span { background: #c58a35; box-shadow: 0 0 0 4px rgba(197,138,53,.11); }
.kitchen-status[data-status="paused"] > span { background: #a56b43; box-shadow: 0 0 0 4px rgba(165,107,67,.11); }
.kitchen-status[data-status="closed"] > span { background: #8d8f88; box-shadow: 0 0 0 4px rgba(141,143,136,.11); }
.kitchen-status div { display: flex; flex-direction: column; gap: .16rem; }
.kitchen-status small { color: #8b8d85; font-size: .56rem; }
.kitchen-status b { font-size: .68rem; }
.kitchen-status > i { width: .38rem; height: .38rem; margin-left: .12rem; border-right: 1.5px solid #8b8d85; border-bottom: 1.5px solid #8b8d85; transform: rotate(-45deg); }
.notification-button { position: relative; }
.notification-button b { position: absolute; top: .45rem; right: .45rem; width: .4rem; height: .4rem; border-radius: 50%; background: #a75047; border: 2px solid #f3f1ec; }
.admin-menu-trigger { display: none; }
.admin-menu-trigger span { display: block; width: 1rem; height: 1.5px; border-radius: 999px; background: currentColor; }
.admin-menu-trigger span + span { margin-top: .24rem; }
.metrics-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 1rem; }
.metric-card { position: relative; min-height: 9.5rem; padding: 1.25rem; overflow: hidden; border-radius: 19px; background: rgba(255,255,255,.63); border: 1px solid rgba(28,30,26,.07); box-shadow: 0 8px 24px rgba(30,32,28,.035); }
.metric-card p, .metric-card strong, .metric-card > span { position: relative; z-index: 1; display: block; margin: 0; }
.metric-card p { color: #777970; font-size: .68rem; }
.metric-card strong { margin: .65rem 0 .85rem; font-size: 1.75rem; letter-spacing: -.04em; }
.metric-card strong small { font-size: .7rem; font-weight: 600; }
.metric-card > span { color: #8b8d85; font-size: .62rem; }
.metric-card > span b { color: #4b7356; }
.metric-card > span b.neutral { color: #6e7068; }
.metric-dark { background: #222420; color: white; }
.metric-dark p, .metric-dark > span { color: rgba(255,255,255,.55); }
.metric-dark > span b { color: #b6d2ba; }
.mini-bars { position: absolute; right: .7rem; bottom: .8rem; display: flex; align-items: end; gap: .25rem; height: 3.5rem; opacity: .62; }
.mini-bars i { width: .36rem; height: 35%; border-radius: 4px; background: #cbb99e; }
.mini-bars i:nth-child(2) { height: 48%; }.mini-bars i:nth-child(3) { height: 40%; }.mini-bars i:nth-child(4) { height: 66%; }.mini-bars i:nth-child(5) { height: 55%; }.mini-bars i:nth-child(6) { height: 82%; }.mini-bars i:nth-child(7) { height: 70%; }.mini-bars i:nth-child(8) { height: 100%; }
.mini-bars i.is-zero { opacity: .18; }
.metric-icon { position: absolute; right: 1rem; top: 1rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; }
.metric-icon.warm { background: var(--orange-pale); color: #8c5d38; }.metric-icon.green { background: var(--green-pale); color: var(--green); }.metric-icon.blue { background: var(--blue-pale); color: #526c78; }
.metric-icon svg { width: 1.1rem; }
.panel { border: 1px solid rgba(28,30,26,.07); border-radius: 20px; background: rgba(255,255,255,.61); box-shadow: 0 10px 30px rgba(30,32,28,.04); }
.admin-grid-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(16rem, .7fr); gap: 1rem; margin-top: 1rem; }
.revenue-panel, .category-panel { min-height: 22rem; padding: 1.25rem; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-heading p, .panel-heading h2 { margin: 0; }
.panel-heading p { margin-bottom: .25rem; color: #8a8c84; font-size: .62rem; }
.panel-heading h2 { font-family: "Songti SC", serif; font-size: 1.18rem; }
.chart-range-note { padding: .42rem .65rem; border-radius: 999px; color: #777970; background: rgba(28,30,26,.05); font-size: .62rem; font-weight: 650; white-space: nowrap; }
.revenue-range-nav { display: grid; grid-template-columns: 2rem auto 2rem; align-items: center; gap: .25rem; min-height: 2.25rem; padding: .2rem; border: 1px solid rgba(28,30,26,.07); border-radius: 999px; background: rgba(28,30,26,.045); }
.revenue-range-nav button { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: #62645d; transition: color .18s, background .18s, transform .16s var(--spring), opacity .18s; }
@media (hover: hover) and (pointer: fine) { .revenue-range-nav button:hover:not(:disabled) { color: #292b27; background: rgba(255,255,255,.78); } }
.revenue-range-nav button:active:not(:disabled) { transform: scale(.91); }
.revenue-range-nav button:disabled { opacity: .24; cursor: default; }
.revenue-range-nav button:first-child svg { transform: rotate(180deg); }
.revenue-range-nav svg { width: .72rem; height: .72rem; }
.revenue-range-nav span { min-width: 7.8rem; color: #777970; font-size: .6rem; font-weight: 650; text-align: center; white-space: nowrap; }
.chart-wrap { height: 16.5rem; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: .65rem; margin-top: 1.2rem; }
.chart-y { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: .15rem 0 1.75rem; color: #8f918a; font-size: .58rem; font-variant-numeric: tabular-nums; text-align: right; }
.chart-y span { line-height: 1; white-space: nowrap; }
.chart-viewport { grid-column: 2; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: rgba(149,101,63,.25) transparent; }
.chart-content { display: grid; grid-template-rows: minmax(0, 1fr) 1.6rem; width: 100%; height: 100%; }
.chart-area { position: relative; min-height: 0; background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 25%); }
.chart-area > svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.chart-fill { fill: url(#chartFill); stroke: none; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.3; vector-effect: non-scaling-stroke; }
.chart-point { outline: none; cursor: var(--cursor-pointer); }
.chart-point-hit { fill: transparent; stroke: none; pointer-events: all; }
.chart-point-dot { fill: var(--paper); stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; transition: transform .16s var(--spring), fill .16s; }

.chart-point:focus .chart-point-dot { fill: var(--accent); transform: scale(1.45); }
@media (hover: hover) and (pointer: fine) { .chart-point:hover .chart-point-dot { fill: var(--accent); transform: scale(1.45); } }
.chart-labels { position: static; display: grid; align-items: end; color: #8f918a; font-size: .58rem; font-variant-numeric: tabular-nums; text-align: center; }
.chart-labels span { min-width: 0; white-space: nowrap; }
.chart-tooltip { position: absolute; z-index: 3; display: grid; gap: .15rem; min-width: 8.2rem; padding: .55rem .65rem; border: 1px solid rgba(255,255,255,.72); border-radius: 11px; color: #f7f5f1; background: rgba(35,32,28,.9); box-shadow: 0 10px 28px rgba(32,28,24,.2); backdrop-filter: blur(10px) saturate(145%); pointer-events: none; transform: translate(-50%, calc(-100% - .65rem)); }
.chart-tooltip strong { font-size: .76rem; font-variant-numeric: tabular-nums; }
.chart-tooltip span { color: rgba(255,255,255,.68); font-size: .56rem; white-space: nowrap; }
.chart-tooltip.is-near-left { transform: translate(0, calc(-100% - .65rem)); }
.chart-tooltip.is-near-right { transform: translate(-100%, calc(-100% - .65rem)); }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #999b94; font-size: .68rem; }
.category-panel { display: flex; flex-direction: column; }
.donut-wrap { flex: 1; display: grid; place-items: center; }
.donut { width: 9.5rem; height: 9.5rem; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--accent) 0 63%, #d8e2da 63% 100%); position: relative; }
.donut::after { content: ""; position: absolute; inset: 1.2rem; border-radius: 50%; background: #f5f4f0; }
.donut div { position: relative; z-index: 1; display: flex; flex-direction: column; text-align: center; }
.donut strong { font-size: 1.7rem; }
.donut span { color: #85877f; font-size: .58rem; }
.legend { display: grid; gap: .55rem; }
.legend > div { display: grid; grid-template-columns: .7rem 1fr auto; align-items: center; gap: .5rem; font-size: .65rem; }
.legend b { font-weight: 600; }
.legend-dot { width: .55rem; height: .55rem; border-radius: 50%; }.legend-dot.stir { background: var(--accent); }.legend-dot.dessert { background: #bfd0c2; }
.recent-orders-panel { margin-top: 1rem; padding: 1.25rem; }
.orders-table { margin-top: 1rem; }
.order-row { display: grid; grid-template-columns: .9fr 1.4fr 1.5fr .7fr .75fr .5fr; align-items: center; gap: 1rem; min-height: 3.7rem; padding: .55rem .2rem; border-top: 1px solid var(--line); font-size: .68rem; }
.order-row.header { min-height: 2.4rem; color: #989a92; border-top: 0; font-size: .58rem; }
.order-customer { display: flex; align-items: center; gap: .55rem; }
.order-customer > span { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 8px; background: #e3ded4; color: #645c50; font-size: .58rem; font-weight: 700; }
.order-row p { margin: 0; color: #777970; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-customer > div { min-width: 0; }
.order-dietary { display: flex; flex-wrap: wrap; gap: .24rem; margin-top: .3rem; }
.order-dietary span { display: inline-flex; max-width: 100%; padding: .2rem .38rem; border-radius: 6px; color: #805a3b; background: #f0e2d2; font-size: .52rem; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.order-dietary span b { margin-right: .25rem; color: inherit; font-size: inherit; }
.order-dietary span em { margin-right: .28rem; color: #777970; font-size: .5rem; font-style: normal; font-weight: 750; }
.order-dietary span.is-allergy { border-radius: 999px; color: #9a3732; background: #f4d9d6; box-shadow: inset 0 0 0 1px rgba(154,55,50,.08); }
.status-pill { width: fit-content; padding: .38rem .58rem; border-radius: 999px; font-size: .58rem; font-weight: 700; }
.status-pill.pending { color: #8a582e; background: #eee1d2; }.status-pill.cooking { color: #526b57; background: #dfe9e0; }.status-pill.done { color: #686a64; background: #e7e7e3; }.status-pill.cancelled { color: #934b48; background: #f1dfdd; }
.page-tools { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.page-tools h2, .page-tools p { margin: 0; }.page-tools h2 { font-family: "Songti SC", serif; font-size: 1.7rem; }.page-tools > div > p:last-child { margin-top: .45rem; color: #7f8179; font-size: .72rem; }
.admin-tabs { display: flex; gap: .4rem; padding: .28rem; border-radius: 13px; background: rgba(28,30,26,.05); }
.admin-tabs button { padding: .65rem .8rem; border-radius: 10px; background: none; color: #787a72; font-size: .68rem; }
.admin-tabs button.is-active { background: white; color: var(--ink); box-shadow: 0 2px 10px rgba(28,30,26,.06); }
.admin-tabs span { margin-left: .3rem; opacity: .55; }
.full-orders-panel { padding: 1rem 1.25rem; }
.admin-dish-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.admin-dish-card { overflow: hidden; border-radius: 18px; background: rgba(255,255,255,.63); border: 1px solid var(--line); }
.admin-dish-card img { width: 100%; aspect-ratio: 1.6; object-fit: cover; display: block; }
.admin-dish-card.is-unavailable img { filter: grayscale(.8); opacity: .58; }
.admin-dish-body { padding: 1rem; }
.admin-dish-body h3, .admin-dish-body p { margin: 0; }.admin-dish-body h3 { font-size: .82rem; }.admin-dish-body p { margin-top: .35rem; color: #85877f; font-size: .65rem; }
.admin-dish-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.admin-dish-tags span { padding: .28rem .45rem; border-radius: 999px; color: #72543b; background: rgba(149,101,63,.08); box-shadow: inset 0 0 0 1px rgba(149,101,63,.1); font-size: .55rem; font-weight: 650; }
.admin-dish-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: .85rem; }
.stock-toggle { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .5rem; border-radius: 8px; color: var(--green); background: rgba(73,106,87,.07); font-size: .62rem; }.stock-toggle i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); }
.stock-toggle.is-off { color: #8b8d85; background: rgba(28,30,26,.055); }.stock-toggle.is-off i { background: #9a9c94; }
.dish-admin-actions { display: flex; gap: .35rem; }
.dish-admin-actions button { padding: .4rem .55rem; border-radius: 8px; color: #656760; background: rgba(28,30,26,.055); font-size: .6rem; font-weight: 650; }
.dish-admin-actions button.publish-version { color: #fff; background: #6f5137; box-shadow: 0 4px 12px rgba(84,57,34,.14); }
@media (hover: hover) and (pointer: fine) { .dish-admin-actions button.publish-version:hover { background: #7b593c; } }
.dish-admin-actions button.danger { color: #a24d49; background: rgba(162,77,73,.075); }
.status-picker { position: relative; width: 100%; max-width: 6.8rem; }
.status-trigger { display: flex; align-items: center; justify-content: space-between; gap: .4rem; width: 100%; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 9px; color: #5d5f59; background: rgba(255,255,255,.72); font-size: .62rem; text-align: left; transition: border .2s, box-shadow .2s, background .2s; }
@media (hover: hover) and (pointer: fine) { .status-trigger:hover { background: white; } }
.status-trigger:focus-visible,
.status-trigger[aria-expanded="true"] { border-color: rgba(105,73,44,.48); outline: none; box-shadow: 0 0 0 3px rgba(149,101,63,.09); background: white; }
.status-trigger:disabled { opacity: .55; }
.status-trigger.pending { color: #87582e; background: #fbf6ef; border-color: rgba(138,88,46,.16); }
.status-trigger.cooking { color: #486c52; background: #f1f7f2; border-color: rgba(73,106,87,.17); }
.status-trigger.done { color: #61655e; background: #f4f5f1; border-color: rgba(104,106,100,.14); }
.status-trigger.cancelled { color: #934b48; background: #fbf2f1; border-color: rgba(147,75,72,.16); }
.status-trigger > i { flex: none; width: .34rem; height: .34rem; border-right: 1.5px solid rgba(28,30,26,.5); border-bottom: 1.5px solid rgba(28,30,26,.5); transform: translateY(-.1rem) rotate(45deg); transition: transform .22s var(--spring); }
.status-trigger[aria-expanded="true"] > i { transform: translateY(.1rem) rotate(225deg); }
.status-trigger.is-updating > i {
  width: .72rem;
  height: .72rem;
  border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  transform: none;
  animation: async-button-spin .68s linear infinite;
}
.status-trigger.is-confirmed > i {
  width: .55rem;
  height: .3rem;
  border: 0;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  border-radius: 0;
  transform: translateY(-.06rem) rotate(-45deg);
}
.category-menu.status-menu { z-index: 20; top: calc(100% + .35rem); right: auto; min-width: 100%; padding: .3rem; border-radius: 12px; }
.category-menu.status-menu button { min-height: 2.2rem; padding: 0 .6rem; border-radius: 8px; font-size: .64rem; white-space: nowrap; gap: .55rem; }
.category-menu.status-menu .status-option { justify-content: flex-start; }
.category-menu.status-menu .status-option::before {
  content: "";
  width: .42rem;
  height: .42rem;
  flex: none;
  border-radius: 50%;
  background: #a1a39d;
  box-shadow: 0 0 0 3px rgba(120,122,115,.08);
}
.category-menu.status-menu .status-option.pending::before,
.category-menu.status-menu .status-option.new::before { background: #b9793d; box-shadow: 0 0 0 3px rgba(185,121,61,.1); }
.category-menu.status-menu .status-option.cooking::before,
.category-menu.status-menu .status-option.considering::before { background: #5f8b69; box-shadow: 0 0 0 3px rgba(95,139,105,.1); }
.category-menu.status-menu .status-option.done::before,
.category-menu.status-menu .status-option.added::before { background: #6f746c; }
.category-menu.status-menu .status-option.cancelled::before,
.category-menu.status-menu .status-option.declined::before { background: #b65c57; box-shadow: 0 0 0 3px rgba(182,92,87,.09); }
.category-menu.status-menu .status-option.is-selected::after { margin-left: auto; }
.admin-table-empty { padding: 4rem 1rem; color: #85877f; text-align: center; }
.admin-table-empty h3, .admin-table-empty p { margin: 0; }.admin-table-empty h3 { color: var(--ink); font-size: .86rem; }.admin-table-empty p { margin-top: .4rem; font-size: .66rem; }

/* ---------- Admin reviews ---------- */
.review-page-tools { align-items: flex-end; }
.user-search.review-search { width: min(21rem, 42vw); }
.review-insight-grid { display: grid; grid-template-columns: minmax(12rem, .72fr) minmax(18rem, 1.3fr) minmax(14rem, 1fr); gap: 1rem; }
.review-score-card,
.review-distribution-card,
.review-favorite-card { min-height: 11.2rem; padding: 1.25rem 1.35rem; }
.review-score-card > p,
.review-favorite-card > p { margin: 0 0 .65rem; color: #85877f; font-size: .66rem; }
.review-score-card > div { display: flex; align-items: baseline; gap: .35rem; }
.review-score-card strong { font-size: 2.75rem; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.review-score-card > div span { color: #94968e; font-size: .72rem; }
.review-score-card small { display: block; margin-top: .48rem; color: #85877f; font-size: .63rem; }
.review-score-card small b { color: var(--ink); }
.admin-stars { color: #b87c31; font-size: .78rem; letter-spacing: .08em; white-space: nowrap; }
.review-score-card > .admin-stars { display: block; margin-top: .72rem; font-size: .92rem; }
.review-distribution { display: grid; gap: .42rem; margin-top: .9rem; }
.review-distribution-row { display: grid; grid-template-columns: 2rem minmax(4rem, 1fr) 1.4rem; align-items: center; gap: .55rem; }
.review-distribution-row > span { display: flex; align-items: center; justify-content: flex-end; gap: .18rem; color: #73756d; font-size: .62rem; font-variant-numeric: tabular-nums; }
.review-distribution-row svg { width: .62rem; height: .62rem; fill: #b87c31; stroke: none; }
.review-distribution-row > i { height: .34rem; overflow: hidden; border-radius: 999px; background: rgba(28,30,26,.065); }
/* Full-width bar revealed with clip-path: no layout work per frame, and the rounded end keeps its shape. */
.review-distribution-row > i b { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c89a62, #9b6a3d); clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0 round 999px); transition: clip-path .3s cubic-bezier(0.23, 1, 0.32, 1); }
@starting-style { .review-distribution-row > i b { clip-path: inset(0 100% 0 0 round 999px); } }
.review-distribution-row > em { color: #8f9189; font-size: .6rem; font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.review-favorite-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: #22241f; color: white; }
.review-favorite-card::before { content: "★"; position: absolute; top: -2.5rem; right: -.7rem; color: rgba(232,227,217,.065); font-size: 9rem; line-height: 1; transform: rotate(12deg); }
.review-favorite-card > p { position: relative; color: rgba(255,255,255,.5); }
.review-favorite-card > strong { position: relative; font-size: 1.18rem; line-height: 1.35; }
.review-favorite-card > span { position: relative; margin-top: .5rem; color: rgba(255,255,255,.52); font-size: .64rem; line-height: 1.55; }
.review-list-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; margin: 1rem 0 .7rem; }
.review-filter-group { display: grid; gap: .32rem; }
.review-filter-group > span { padding-left: .25rem; color: #92948c; font-size: .56rem; font-weight: 700; letter-spacing: .06em; }
.admin-review-panel { margin-top: 0; }
.admin-review-list { display: grid; gap: .75rem; }
.admin-review-group { overflow: hidden; padding: 0; }
.admin-review-group-header { display: grid; grid-template-columns: 3.15rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; min-height: 4.75rem; padding: .75rem 1.3rem; cursor: var(--cursor-pointer); list-style: none; transition: background .2s; }
.admin-review-group-header::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .admin-review-group-header:hover { background: rgba(28,30,26,.026); } }
.admin-review-group[open] .admin-review-group-header { border-bottom: 1px solid var(--line); }
.admin-review-dish-visual { display: grid; place-items: center; width: 3.15rem; height: 3.15rem; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #e8dfd1, #d9c8b2); color: #6e5d48; font-family: "Songti SC", serif; font-size: 1rem; font-weight: 700; }
.admin-review-dish-visual img { width: 100%; height: 100%; object-fit: cover; }
.admin-review-group-header h3,
.admin-review-group-header p { margin: 0; }
.admin-review-group-header h3 { font-size: .86rem; }
.admin-review-group-header p { margin-top: .25rem; color: #898b83; font-size: .62rem; }
.admin-review-summary-tail { display: flex; align-items: center; gap: .75rem; }
.admin-review-summary-tail > i { width: .48rem; height: .48rem; border-right: 1.5px solid #777970; border-bottom: 1.5px solid #777970; transform: translateY(-.12rem) rotate(45deg); transition: transform .24s var(--spring); }
.admin-review-group[open] .admin-review-summary-tail > i { transform: translateY(.12rem) rotate(225deg); }
.admin-review-group-list { padding: 0 1.3rem .25rem; }
.admin-review-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; padding: 1.05rem 0 1.15rem; border-top: 1px solid var(--line); }
.admin-review-group-list .admin-review-card:first-child { border-top: 0; }
.admin-review-card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-review-author { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.admin-review-author > span { flex: none; display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 50%; color: #6b5c47; background: linear-gradient(160deg, #efe8dc, #e0d6c6); font-size: .72rem; font-weight: 750; box-shadow: inset 0 1px rgba(255,255,255,.75); }
.admin-review-author > div { min-width: 0; }
.admin-review-author b,
.admin-review-author time { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-review-author b { font-size: .76rem; }
.admin-review-author time { margin-top: .2rem; color: #96988f; font-size: .6rem; }
.admin-review-content { min-width: 0; }
.admin-review-content { padding-left: 3.05rem; }
.admin-review-content p { margin: 0 0 .6rem; color: #4e504a; font-size: .74rem; line-height: 1.65; overflow-wrap: anywhere; }
.admin-review-content p.is-empty { color: #a0a29a; }
.admin-review-content small { color: #9a9c94; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .56rem; }
.admin-review-photo { position: relative; display: block; width: min(13rem, 100%); margin: .55rem 0 .65rem; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: #e8e6e0; cursor: var(--cursor-pointer); }
.admin-review-photo img { display: block; width: 100%; max-height: 26rem; aspect-ratio: 1.65; object-fit: cover; transition: transform .2s var(--spring); }
@media (hover: hover) and (pointer: fine) { .admin-review-photo:hover img { transform: scale(1.02); } }
.admin-improvement-panel { margin-top: 1.35rem; }
.admin-improvement-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.admin-improvement-panel > header p,
.admin-improvement-panel > header h2 { margin: 0; }
.admin-improvement-panel > header p { color: #9a9c94; font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.admin-improvement-panel > header h2 { margin-top: .25rem; font-size: 1.08rem; }
.admin-improvement-panel > header > span { padding: .3rem .55rem; border-radius: 999px; color: #59667c; background: #e6ebf3; font-size: .58rem; font-weight: 700; }
.admin-improvement-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.admin-improvement-card { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .75rem; padding: 1rem; }
.admin-improvement-card > span { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: #59667c; background: #e6ebf3; font-size: .72rem; font-weight: 750; }
.admin-improvement-card header { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; }
.admin-improvement-card header b { font-size: .76rem; }
.admin-improvement-card time { color: #989a92; font-size: .58rem; white-space: nowrap; }
.admin-improvement-card p { margin: .5rem 0 .65rem; color: #4e504a; font-size: .72rem; line-height: 1.65; overflow-wrap: anywhere; }
.admin-improvement-card small { color: #999b93; font-size: .56rem; }

/* ---------- Admin gathering memories ---------- */
.memory-page-tools { margin-bottom: 1rem; }
.admin-memory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin-memory-card { overflow: hidden; padding: 0; }
.admin-memory-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.3rem 1rem; }
.admin-memory-card-header p,
.admin-memory-card-header h3,
.admin-memory-card-header span { margin: 0; }
.admin-memory-card-header p { color: #9a7650; font-size: .54rem; font-weight: 760; letter-spacing: .14em; }
.admin-memory-card-header h3 { margin-top: .38rem; font-size: 1.06rem; }
.admin-memory-card-header span { display: block; margin-top: .35rem; color: #85877f; font-size: .62rem; }
.admin-memory-card-header > b { flex: none; padding: .32rem .58rem; border-radius: 999px; color: #64513d; background: #eee4d5; font-size: .58rem; }
.admin-memory-dishes { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1.3rem 1rem; border-bottom: 1px solid var(--line); }
.admin-memory-dishes span { padding: .3rem .55rem; border-radius: 999px; color: #66685f; background: #f0efeb; font-size: .58rem; }
.admin-memory-entries { display: grid; padding: 0 1.3rem .3rem; }
.admin-memory-entry { padding: 1rem 0 1.15rem; border-top: 1px solid var(--line); }
.admin-memory-entry:first-child { border-top: 0; }
.admin-memory-entry > header { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: .65rem; }
.admin-memory-entry > header > span { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; color: #5d4a36; background: linear-gradient(145deg, #f0e9dd, #ded2bf); font-size: .68rem; font-weight: 760; }
.admin-memory-entry header b,
.admin-memory-entry header time { display: block; }
.admin-memory-entry header b { font-size: .72rem; }
.admin-memory-entry header time { margin-top: .16rem; color: #96988f; font-size: .56rem; }
.admin-memory-entry header em { color: #b87c31; font-size: .66rem; font-style: normal; letter-spacing: .04em; white-space: nowrap; }
.admin-memory-entry > p { margin: .72rem 0 0; color: #4e504a; font-size: .72rem; line-height: 1.65; }
.admin-memory-entry > p.is-empty { color: #a0a29a; }
.admin-memory-photo { display: block; width: 100%; margin-top: .75rem; padding: 0; overflow: hidden; border-radius: 15px; background: #e8e6e0; cursor: var(--cursor-pointer); }
.admin-memory-photo img { display: block; width: 100%; max-height: 24rem; aspect-ratio: 1.55; object-fit: cover; transition: transform .2s var(--spring); }
@media (hover: hover) and (pointer: fine) { .admin-memory-photo:hover img { transform: scale(1.015); } }
.admin-memory-empty { margin: 1rem 0; padding: 1.2rem; border: 1px dashed #d8d5ce; border-radius: 15px; color: #999b93; font-size: .64rem; text-align: center; }

@media (max-width: 1100px) {
  .review-insight-grid { grid-template-columns: 1fr 1.3fr; }
  .review-favorite-card { grid-column: 1 / -1; min-height: 8.5rem; }
}

@media (max-width: 800px) {
  .review-page-tools { align-items: stretch; flex-direction: column; }
  .user-search.review-search { width: 100%; }
  .review-insight-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .65rem; }
  .review-favorite-card { grid-column: 1 / -1; }
  .review-score-card,
  .review-distribution-card { min-height: 8.3rem; }
  .review-favorite-card { min-height: 7rem; }
  .review-list-toolbar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .15rem; }
  .review-filter-group { flex: none; }
  .review-tabs,
  .review-category-tabs { flex: none; }
  .admin-review-group-header { grid-template-columns: 2.8rem minmax(0, 1fr) auto; padding-inline: 1rem; }
  .admin-review-dish-visual { width: 2.8rem; height: 2.8rem; }
  .admin-review-summary-tail > .admin-stars { display: none; }
  .admin-review-group-list { padding-inline: 1rem; }
  .admin-review-card { gap: .6rem; }
  .admin-review-content { padding-left: 0; }
  .admin-review-photo { width: min(100%, 24rem); }
  .admin-improvement-list { grid-template-columns: 1fr; }
  .admin-memory-list { grid-template-columns: 1fr; }
}
.dish-dialog { width: min(calc(100% - 2rem), 42rem); max-height: min(50rem, calc(100dvh - 2rem)); padding: 0; overflow: hidden; }
#dish-form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: inherit; }
#dish-form > header { margin: 0; padding: 1.5rem 1.8rem 1rem; }
.dish-form-scroll { min-height: 0; padding: .5rem 1.8rem 0; overflow-y: auto; overscroll-behavior: contain; }
.dish-form-actions { position: relative; z-index: 4; padding: .8rem 1.8rem max(1rem, env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(24,25,22,.09); background: rgba(248,247,243,.94); box-shadow: 0 -12px 28px rgba(35,31,25,.06); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
.dish-form-actions .primary-button { margin: 0; }
.dish-form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; align-items: start; }
.dish-form-grid .field { grid-template-rows: auto 3.15rem; align-content: start; }
.dish-form-grid .dish-image-field { grid-template-rows: auto auto; }
.dish-form-grid .dish-tags-field { grid-column: 1 / -1; grid-template-rows: auto auto; }
.dish-tag-editor { display: grid; gap: .6rem; padding: .75rem; border: 1px solid rgba(24,25,22,.1); border-radius: 15px; background: rgba(255,255,255,.48); }
.dish-tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-height: 1.9rem; }
.dish-tag-list > small { color: #989a92; font-size: .65rem; }
.dish-tag-chip { display: inline-flex; align-items: center; gap: .28rem; min-height: 1.9rem; padding: 0 .35rem 0 .65rem; border-radius: 999px; color: #65482f; background: rgba(149,101,63,.11); box-shadow: inset 0 0 0 1px rgba(149,101,63,.13); font-size: .68rem; font-weight: 650; }
.dish-tag-chip button { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; color: #806248; background: rgba(255,255,255,.45); }
@media (hover: hover) and (pointer: fine) { .dish-tag-chip button:hover { background: rgba(255,255,255,.8); } }
.dish-tag-chip svg { width: .62rem; height: .62rem; }
.dish-tag-create { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.dish-tag-create input { min-width: 0; height: 2.7rem; padding: 0 .85rem; border: 1px solid rgba(24,25,22,.12); border-radius: 12px; outline: none; background: rgba(255,255,255,.72); }
.dish-tag-create input:focus { border-color: rgba(105,73,44,.48); box-shadow: 0 0 0 3px rgba(149,101,63,.09); }
.dish-tag-create .soft-button { min-height: 2.7rem; padding-inline: .9rem; }
.dish-tag-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.dish-tag-suggestions > small { margin-right: .15rem; color: #92948c; font-size: .6rem; }
.known-tag { display: inline-flex; align-items: center; overflow: hidden; border-radius: 999px; background: rgba(28,30,26,.055); }
.dish-tag-suggestions button { padding: .38rem .58rem; border-radius: 999px; color: #6e7068; background: rgba(28,30,26,.055); font-size: .62rem; transition: background .2s, transform .15s; }
.known-tag > button { background: transparent; }
.known-tag > .known-tag-delete { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; margin-right: .18rem; padding: 0; color: #9a7d67; background: rgba(255,255,255,.46); }
@media (hover: hover) and (pointer: fine) { .known-tag > .known-tag-delete:hover { color: #a24d49; background: rgba(162,77,73,.1); } }
.known-tag-delete svg { width: .58rem; height: .58rem; }
@media (hover: hover) and (pointer: fine) { .dish-tag-suggestions button:hover { background: rgba(149,101,63,.1); } }
.dish-tag-suggestions button:active { transform: scale(.95); }
.dish-tag-suggestions button.is-selected { display: inline-flex; align-items: center; gap: .25rem; color: #fff; background: #6f5137; box-shadow: 0 4px 12px rgba(84,57,34,.16); }
@media (hover: hover) and (pointer: fine) { .dish-tag-suggestions button.is-selected:hover { background: #7b593c; } }
.dish-tag-suggestions button svg { width: .65rem; height: .65rem; stroke-width: 2.4; }
.image-uploader { display: flex; align-items: center; gap: .9rem; padding: .7rem; border: 1px dashed rgba(24,25,22,.18); border-radius: 16px; background: rgba(255,255,255,.45); transition: border-color .2s, background .2s; }
.image-uploader.is-dragging { border-color: rgba(105,73,44,.55); background: rgba(149,101,63,.08); }
.image-preview { position: relative; flex: none; display: grid; place-items: center; width: 6.4rem; height: 6.4rem; overflow: hidden; border-radius: 12px; background: rgba(24,25,22,.06); color: #9a9c94; }
.image-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-uploader-body { flex: 1; display: grid; gap: .55rem; min-width: 0; }
.image-uploader-body .soft-button { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; }
.image-uploader-body .soft-button svg { width: 1rem; height: 1rem; }
.image-uploader-body .soft-button:disabled { opacity: .6; }
.category-picker { position: relative; height: 3.15rem; }
.category-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 3.15rem;
  padding: 0 1rem;
  border: 1px solid rgba(24,25,22,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  text-align: left;
  transition: border .2s, box-shadow .2s, background .2s;
}
@media (hover: hover) and (pointer: fine) { .category-trigger:hover { background: white; } }
.category-trigger:focus-visible,
.category-trigger[aria-expanded="true"] { border-color: rgba(105,73,44,.48); outline: none; box-shadow: 0 0 0 4px rgba(149,101,63,.1); background: white; }
.category-trigger > span:empty::before { content: "\00a0"; }
.category-trigger > i {
  width: .44rem;
  height: .44rem;
  border-right: 1.5px solid rgba(28,30,26,.58);
  border-bottom: 1.5px solid rgba(28,30,26,.58);
  transform: translateY(-.12rem) rotate(45deg);
  transition: transform .22s var(--spring);
}
.category-trigger[aria-expanded="true"] > i { transform: translateY(.12rem) rotate(225deg); }
.category-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + .5rem);
  left: 0;
  right: 0;
  overflow: hidden;
  padding: .35rem;
  border: 1px solid rgba(24,25,22,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 42px rgba(28,30,26,.16), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -.25rem, 0) scale(.96);
  transform-origin: top center;
  /* Closing is quicker than opening: the menu gets out of the way once a choice is made. */
  transition: opacity .12s ease-out, transform .12s ease-out;
}
.category-menu.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity .15s ease-out, transform .15s cubic-bezier(0.23, 1, 0.32, 1);
}
.category-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.7rem;
  padding: 0 .75rem;
  border-radius: 10px;
  background: transparent;
  color: #555750;
  font-size: .76rem;
  text-align: left;
}

.category-menu button.is-selected { background: rgba(28,30,26,.055); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .category-menu button:hover { background: rgba(28,30,26,.055); color: var(--ink); } }
.category-menu button.is-selected::after { content: ""; width: .38rem; height: .38rem; border-radius: 50%; background: var(--green); }

button.is-async { position: relative; }
.async-button-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  animation: async-button-content-in .16s ease-out both;
}
.async-button-spinner {
  width: .9rem;
  height: .9rem;
  flex: none;
  border: 1.6px solid color-mix(in srgb, currentColor 28%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: async-button-spin .68s linear infinite;
}
.async-button-check {
  width: 1rem;
  height: 1rem;
  flex: none;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button.is-async.is-success { opacity: 1; }
@keyframes async-button-spin { to { transform: rotate(360deg); } }
@keyframes async-button-content-in {
  from { opacity: 0; transform: translate3d(0, .18rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
#dish-price { appearance: textfield; -moz-appearance: textfield; }
#dish-price::-webkit-inner-spin-button,
#dish-price::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.dish-image-field { grid-column: 1 / -1; }
.dish-available-row { margin: .35rem 0 1.25rem; }
.invite-layout { display: grid; grid-template-columns: 1.45fr .8fr; gap: 1rem; }
.invite-hero-card, .invite-stats { padding: 1.4rem; }
.invite-hero-card > p { margin: 0; color: #83857d; font-size: .68rem; }
.active-code { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .7rem 0; }
.active-code strong { font-size: 2rem; letter-spacing: .08em; }
.invite-hero-card > span { display: block; color: #85877f; font-size: .65rem; }
.invite-hero-card > .text-button { margin-top: 1.2rem; }
.invite-stats { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; text-align: center; }
.invite-stats > div + div { border-left: 1px solid var(--line); }
.invite-stats span, .invite-stats small { display: block; }.invite-stats span { font-size: 1.65rem; font-weight: 700; }.invite-stats small { margin-top: .25rem; color: #85877f; font-size: .6rem; }
.invite-list-panel { margin-top: 1rem; padding: 1.3rem; }
.invite-list { margin-top: 1rem; }
.invite-row { display: grid; grid-template-columns: minmax(8rem, 1.2fr) .75fr auto auto; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); font-size: .68rem; }
.invite-row code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .07em; }
.invite-row span { color: #7c7e76; }
.invite-actions { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; }
.invite-actions button { padding: .42rem .58rem; border-radius: 8px; color: #61635d; background: rgba(28,30,26,.055); font-size: .6rem; font-weight: 650; transition: transform .16s var(--spring), background .2s ease; }
@media (hover: hover) and (pointer: fine) { .invite-actions button:hover { background: rgba(28,30,26,.1); } }
.invite-actions button:active { transform: scale(.94); }
.invite-actions button.danger { color: #a24d49; background: rgba(162,77,73,.075); }
.invite-empty { padding: 3rem 1rem; border-top: 1px solid var(--line); color: #85877f; text-align: center; }
.invite-empty h3, .invite-empty p { margin: 0; }
.invite-empty h3 { color: var(--ink); font-size: .85rem; }
.invite-empty p { margin-top: .4rem; font-size: .65rem; }
.active-code .soft-button:disabled { opacity: .4; pointer-events: none; }
.settings-panel { width: min(100%, 40rem); padding: 1.4rem; }
.settings-form { margin-top: 1.5rem; }
#save-settings { margin-top: 1rem; }
.kitchen-state-field { margin: 1rem 0 0; padding: 0; border: 0; }
.kitchen-state-field legend { margin-bottom: .65rem; color: #696b64; font-size: .65rem; font-weight: 650; }
.kitchen-state-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.kitchen-state-options label { position: relative; cursor: var(--cursor-pointer); }
.kitchen-state-options input { position: absolute; opacity: 0; pointer-events: none; }
.kitchen-state-options label > span { display: grid; grid-template-columns: .55rem 1fr; align-items: center; column-gap: .45rem; min-height: 4.15rem; padding: .7rem .75rem; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.46); transition: border-color .2s, background .2s, box-shadow .2s, transform .16s var(--spring); }
@media (hover: hover) and (pointer: fine) { .kitchen-state-options label:hover > span { background: rgba(255,255,255,.78); transform: translateY(-1px); } }
.kitchen-state-options input:focus-visible + span { outline: 2px solid rgba(86,112,93,.48); outline-offset: 2px; }
.kitchen-state-options input:checked + span { border-color: rgba(77,118,89,.34); background: rgba(77,118,89,.08); box-shadow: inset 0 0 0 1px rgba(77,118,89,.08); }
.kitchen-state-options i { grid-row: 1 / span 2; width: .5rem; height: .5rem; border-radius: 50%; background: #4d7659; box-shadow: 0 0 0 3px rgba(77,118,89,.09); }
.kitchen-state-options label:nth-child(2) i { background: #c58a35; box-shadow: 0 0 0 3px rgba(197,138,53,.1); }
.kitchen-state-options label:nth-child(3) i { background: #a56b43; box-shadow: 0 0 0 3px rgba(165,107,67,.1); }
.kitchen-state-options label:nth-child(4) i { background: #8d8f88; box-shadow: 0 0 0 3px rgba(141,143,136,.1); }
.kitchen-state-options b,
.kitchen-state-options small { min-width: 0; }
.kitchen-state-options b { font-size: .68rem; }
.kitchen-state-options small { color: #8b8d85; font-size: .56rem; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-top: 1px solid var(--line); }
.toggle-row div { display: flex; flex-direction: column; gap: .3rem; }.toggle-row b { font-size: .78rem; }.toggle-row small { color: #85877f; font-size: .65rem; }.toggle-row input { width: 2.7rem; accent-color: var(--green); }
.toggle-row input:disabled { opacity: .45; }

@media (max-width: 700px) {
  .kitchen-state-options { grid-template-columns: 1fr 1fr; }
}

/* Friends' taste profiles and dish wishes */
.profile-action > small { flex: none; max-width: 48%; overflow: hidden; color: var(--enf-muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-nav-item b[hidden] { display: none; }

.taste-profile-dialog { width: min(calc(100% - 1.5rem), 34rem); max-height: min(46rem, calc(100dvh - 1.5rem)); overflow-y: auto; }
.glass-sheet header > div > p:last-child { margin: .35rem 0 0; color: rgba(240,240,245,.62); font-size: .66rem; line-height: 1.5; }
.glass-field > span { display: block; margin-bottom: .48rem; color: rgba(242,242,247,.68); font-size: .62rem; font-weight: 650; }
.glass-field { display: block; margin-top: .75rem; }
.glass-field > span small { margin-left: .35rem; color: #ffaaa3; font-size: .55rem; }
.glass-field input,
.glass-field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; outline: 0; color: #f5f5f7; background: rgba(0,0,0,.24); font: inherit; font-size: .74rem; line-height: 1.55; resize: none; box-shadow: inset 0 1px rgba(255,255,255,.06); transition: border-color .2s, box-shadow .2s; }
.glass-field input:focus,
.glass-field textarea:focus { border-color: rgba(158,186,240,.7); box-shadow: 0 0 0 3px rgba(158,186,240,.12), inset 0 1px rgba(255,255,255,.07); }
.glass-field input::placeholder,
.glass-field textarea::placeholder { color: rgba(242,242,247,.35); }
.customer-request-history { padding: 1.1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: linear-gradient(145deg, rgba(40,40,45,.66), rgba(18,18,21,.55)); box-shadow: inset 0 1px rgba(255,255,255,.09), 0 18px 50px rgba(0,0,0,.24); }
.request-history-heading { display: flex; align-items: center; justify-content: space-between; color: rgba(242,242,247,.54); font-size: .55rem; font-weight: 700; letter-spacing: .12em; }
.request-history-heading b { display: grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem; border-radius: 999px; color: #111114; background: #f5f5f7; letter-spacing: 0; }
.requests-section { max-width: 64rem; }
.customer-request-layout { display: grid; grid-template-columns: minmax(17rem, .8fr) minmax(20rem, 1.2fr); gap: 1rem; align-items: start; }
.customer-request-form { padding: 1.25rem; border: 1px solid rgba(255,255,255,.11); border-radius: 24px; background: linear-gradient(145deg, rgba(40,40,45,.7), rgba(18,18,21,.58)); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 18px 50px rgba(0,0,0,.25); }
.customer-request-form > div:first-child h2,
.customer-request-form > div:first-child p { margin: 0; }
.customer-request-form > div:first-child h2 { color: #f5f5f7; font-size: 1.15rem; }
.customer-request-form > div:first-child p:last-child { margin-top: .35rem; color: rgba(242,242,247,.55); font-size: .66rem; }
.customer-request-form .eyebrow { margin-bottom: .35rem !important; color: #9ebaf0; font-size: .56rem; letter-spacing: .14em; }
.customer-request-form .primary-button { width: 100%; min-height: 2.9rem; margin-top: 1rem; color: #111114; background: #f5f5f7; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) { .customer-request-form .primary-button:hover { color: #111114; background: #fff; } }
.customer-request-history #my-request-list { max-height: 32rem; }
#my-request-list { display: grid; gap: .42rem; max-height: 12rem; overflow-y: auto; margin-top: .55rem; }
.my-request-item { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .68rem .72rem; border-radius: 13px; background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.my-request-item > div { min-width: 0; }
.my-request-item b,
.my-request-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-request-item b { color: #f5f5f7; font-size: .72rem; }
.my-request-item small { margin-top: .2rem; color: rgba(242,242,247,.5); font-size: .58rem; }
.my-request-empty { margin: .85rem 0 .2rem; color: rgba(242,242,247,.5); font-size: .66rem; text-align: center; }
.request-status { flex: none; display: inline-flex; align-items: center; min-height: 1.5rem; padding: 0 .48rem; border-radius: 999px; color: #b9cdef; background: rgba(98,137,205,.16); font-size: .56rem; font-weight: 700; }
.request-status.is-added { color: #a9d7b4; background: rgba(73,153,92,.16); }
.request-status.is-declined { color: rgba(242,242,247,.52); background: rgba(255,255,255,.07); }

.user-taste-profile { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; margin: -.1rem 0 .25rem 2.8rem; }
.user-food-note { display: flex; align-items: flex-start; gap: .38rem; width: fit-content; max-width: min(100%, 31rem); min-width: 0; }
.user-food-note > b,
.user-food-note > span i { display: inline-flex; align-items: center; min-height: 1.9rem; padding: 0 .6rem; border: 1px solid rgba(28,30,26,.075); border-radius: 9px; box-shadow: inset 0 1px rgba(255,255,255,.75); }
.user-food-note > b { flex: none; color: #70736b; background: rgba(255,255,255,.68); font-size: .62rem; letter-spacing: .04em; }
.user-food-note > span { display: flex; flex: 0 1 auto; flex-wrap: wrap; gap: .3rem; min-width: 0; color: #2e302c; font-size: .74rem; font-weight: 620; line-height: 1.45; }
.user-food-note > span i { color: #45473f; background: rgba(255,255,255,.42); font-size: .65rem; font-style: normal; font-weight: 650; }
.user-food-note > span i.is-empty { color: #989a92; font-weight: 550; }
.user-food-note.is-usual { max-width: min(100%, 34rem); }
.user-food-note.has-allergy > b,
.user-food-note.has-allergy > span i { color: #9a403b; border-color: rgba(163,67,62,.16); background: rgba(163,67,62,.055); }
.user-food-note.is-usual > span i { gap: .28rem; padding-left: .28rem; color: #5a4939; background: #eee5da; }
.user-food-note.is-usual > span i.is-empty { padding-left: .6rem; color: #98948e; background: rgba(255,255,255,.42); }
.user-food-note.is-usual em { display: grid; place-items: center; width: 1rem; height: 1rem; border-radius: 50%; color: #fff; background: #806044; font-size: .5rem; font-style: normal; }

.request-page-tools { align-items: flex-end; }
.request-tabs { flex: none; }
.request-board { margin-top: 1rem; }
.admin-request-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.admin-request-card { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) auto; align-items: start; gap: .8rem; padding: 1rem; border: 1px solid rgba(28,30,26,.07); border-radius: 20px; background: rgba(255,255,255,.76); box-shadow: 0 12px 34px rgba(30,28,22,.045), inset 0 1px rgba(255,255,255,.9); }
.request-mark { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 15px; color: #8d6041; background: linear-gradient(145deg, #f2e7da, #e6d3bd); }
.request-mark svg { width: 1.05rem; height: 1.05rem; }
.request-copy { min-width: 0; }
.request-copy > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .5rem; }
.request-copy h3,
.request-copy p { margin: 0; }
.request-copy h3 { color: var(--ink); font-size: .85rem; }
.request-copy > div span { color: #8a6a4d; font-size: .6rem; font-weight: 650; }
.request-copy p { margin-top: .42rem; color: #62645d; font-size: .68rem; line-height: 1.55; overflow-wrap: anywhere; }
.request-copy time { display: block; margin-top: .55rem; color: #a0a29a; font-size: .57rem; }
.request-card-actions { display: grid; gap: .45rem; width: 7.2rem; }
.request-add-dish { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 2.1rem; padding: 0 .6rem; border-radius: 10px; color: #fff; background: #6f5137; font-size: .62rem; font-weight: 700; box-shadow: 0 5px 14px rgba(84,57,34,.15); }
@media (hover: hover) and (pointer: fine) { .request-add-dish:hover { background: #7b593c; } }
.request-add-dish.is-added { color: #6f756c; background: #e5e9e3; box-shadow: none; }
.request-add-dish svg { width: .72rem; height: .72rem; }
.request-status-picker { max-width: none; }
.request-empty { grid-column: 1 / -1; min-height: 18rem; }
.notice-icon.is-request { color: #8a5d3d; background: #efe1d0; }

@media (max-width: 900px) {
  .admin-request-list { grid-template-columns: 1fr; }
  .customer-request-layout { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .request-page-tools { align-items: stretch; flex-direction: column; }
  .request-tabs { overflow-x: auto; width: 100%; }
  .request-tabs button { flex: none; }
  .user-taste-profile { grid-column: 1 / -1; margin-left: 2.8rem; }
}
@media (max-width: 560px) {
  .profile-action > small { display: none; }
  .taste-profile-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .admin-request-card { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .request-mark { width: 2.5rem; height: 2.5rem; border-radius: 13px; }
  .request-card-actions { grid-column: 2; grid-template-columns: 1fr 1fr; width: 100%; }
  .user-taste-profile { grid-template-columns: 1fr; margin-left: 0; }
}
.toast { position: fixed; z-index: 200; left: 50%; top: calc(env(safe-area-inset-top, 0px) + .9rem); width: max-content; max-width: calc(100% - 2rem); padding: .82rem 1rem; border-radius: 13px; background: rgba(24,26,22,.9); backdrop-filter: blur(16px); color: white; box-shadow: var(--shadow-lg); font-size: .75rem; opacity: 0; pointer-events: none; transform: translate(-50%, -14px); transition: opacity .2s ease-out, transform .25s var(--spring); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }


@media (max-width: 1100px) {
  .auth-view { grid-template-columns: 1fr 28rem; }
  .auth-story { padding: 2rem; }.story-copy { left: 2rem; right: 2rem; }
  .dish-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-view { grid-template-columns: 5.2rem minmax(0, 1fr); }
  .admin-sidebar { padding-inline: .65rem; }
  .admin-brand { justify-content: center; margin-inline: 0; }.admin-brand > span:last-child { display: none; }
  .admin-nav-item { grid-template-columns: 1fr; justify-items: center; }.admin-nav-item span, .admin-nav-item b { display: none; }
  .admin-profile { grid-template-columns: 1fr; justify-items: center; }.admin-profile div, .admin-profile button { display: none; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-dish-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .auth-view { display: block; background: var(--paper); }
  .auth-story { min-height: 39svh; padding: 1.25rem; }
  .story-copy { left: 1.25rem; right: 1.25rem; bottom: 1.5rem; }
  .story-copy h1 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .story-copy > p:not(.eyebrow), .story-meta { display: none; }
  .private-badge { font-size: .62rem; }
  .auth-panel { padding: 2rem 1.25rem 3rem; }
  .customer-header { grid-template-columns: 1fr auto; height: 4.5rem; padding-inline: 1rem; }.desktop-nav, .search-trigger, .avatar-button, .cart-button span { display: none; }
  .header-actions { gap: .4rem; }.cart-button { width: 2.6rem; justify-content: center; padding: 0; position: relative; }.cart-button b { position: absolute; top: -.2rem; right: -.2rem; min-width: 1.15rem; height: 1.15rem; background: #9a6941; font-size: .55rem; }
  .page-shell { width: min(100% - 2rem, 86rem); }
  .menu-hero { min-height: 24rem; padding-block: 5rem 2rem; display: block; }.hero-copy-block h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .category-bar { top: 4.5rem; overflow-x: auto; width: 100%; padding-inline: 1rem; scrollbar-width: none; }.category-bar::-webkit-scrollbar { display: none; }.category-chip { flex: none; }.search-inline { display: none; }
  .menu-content { padding-top: 1.7rem; }.dish-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }.section-heading h2 { font-size: 1.75rem; }.section-heading > p { display: none; }
  .dish-body { padding: .9rem; }.dish-desc { display: none; }.dish-image-wrap { aspect-ratio: 1; }.dish-topline { display: block; }.dish-topline strong { display: block; margin-top: .3rem; color: var(--accent-dark); }.dish-footer { margin-top: .65rem; }
  .mobile-nav { position: fixed; display: grid; z-index: 45; left: .75rem; right: .75rem; bottom: .75rem; grid-template-columns: repeat(5, 1fr); min-height: 4.2rem; padding: .45rem; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; box-shadow: 0 12px 40px rgba(25,26,23,.14); }
  .mobile-nav > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .28rem; background: none; color: #8c8e87; font-size: .55rem; }.mobile-nav > button.is-active { color: var(--ink); }.mobile-nav svg { width: 1.1rem; height: 1.1rem; }.mobile-cart-icon { position: relative; }.mobile-cart-icon b { position: absolute; top: -.4rem; right: -.7rem; display: grid; place-items: center; min-width: 1rem; height: 1rem; border-radius: 50%; background: var(--accent); color: white; font-size: .5rem; }
  .orders-section { padding-top: 3rem; }.orders-heading h1 { font-size: 2.4rem; }
  .cart-sheet { top: auto; width: 100%; height: min(88svh, 46rem); border-radius: 28px 28px 0 0; transform: translateY(104%); }.cart-sheet.is-open { transform: translateY(0); }.sheet-handle { display: block; width: 2.8rem; height: .3rem; margin: -.55rem auto .75rem; border-radius: 999px; background: rgba(20,21,18,.16); }
  .admin-view { display: block; }.admin-sidebar { position: fixed; z-index: 70; inset: 0 auto 0 0; width: 15rem; transform: translateX(-105%); transition: transform .35s var(--spring); }.admin-sidebar.is-open { transform: none; }.admin-brand { justify-content: start; }.admin-brand > span:last-child { display: flex; }.admin-nav-item { grid-template-columns: 1.5rem 1fr auto; justify-items: start; }.admin-nav-item span { display: block; }.admin-nav-item b { display: grid; }.admin-profile { grid-template-columns: 2.25rem 1fr auto; justify-items: stretch; }.admin-profile div { display: flex; }.admin-profile button { display: block; }
  .admin-main { padding-inline: 1rem; }.admin-topbar { height: 5.5rem; }.admin-menu-trigger { display: grid; }.admin-topbar > div:nth-child(2) { margin-right: auto; }.admin-top-actions .kitchen-status, .preview-store { display: none; }
  .admin-topbar h1 { font-size: 1.35rem; }.metrics-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }.metric-card { min-height: 8.6rem; padding: 1rem; }.metric-card strong { font-size: 1.35rem; }.metric-icon { opacity: .55; }.admin-grid-main { grid-template-columns: 1fr; }.category-panel { min-height: 20rem; }.order-row { grid-template-columns: 1fr 1.5fr .8fr; }.order-row > :nth-child(3), .order-row > :nth-child(6) { display: none; }.order-row.header > :nth-child(3), .order-row.header > :nth-child(6) { display: none; }.page-tools { align-items: flex-start; }.admin-tabs { max-width: 100%; overflow-x: auto; }.admin-tabs button { flex: none; }.admin-dish-grid { grid-template-columns: repeat(2, 1fr); }.invite-layout { grid-template-columns: 1fr; }.invite-row { grid-template-columns: 1fr auto; }.invite-row > :nth-child(2), .invite-row > :nth-child(3) { display: none; }
}

@media (max-width: 450px) {
  .brand b { font-size: .82rem; }.brand small { font-size: .44rem; }
  .story-top .brand small { display: none; }
  .demo-actions { grid-template-columns: 1fr; }
  .hero-copy-block h1 { font-size: 3.2rem; }.hero-copy-block > p:last-child { font-size: .82rem; }
  .dish-grid { grid-template-columns: 1fr 1fr; }.dish-card { border-radius: 17px; }.dish-topline h3 { font-size: .82rem; }.dish-footer small { display: none; }.add-button { margin-left: auto; }
  .customer-order-card { grid-template-columns: auto 1fr; }.customer-order-card aside { grid-column: 2; text-align: left; }
  .metrics-grid { grid-template-columns: 1fr; }.metric-card { min-height: 7.9rem; }.admin-dish-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  /* Gentler, not zero: keep short fades and colour changes, drop anything that moves or scales. */
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-property: opacity, color, background-color, border-color, box-shadow, display, overlay !important; transition-duration: .15s !important; transition-behavior: allow-discrete !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-bar, .cart-sheet, .dish-badge, .favorite-button { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass-bar, .cart-sheet { background: #f5f3ee; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(20,22,18,.28); }
  .panel, .dish-card, .field input { border-color: rgba(20,22,18,.35); }
}

/* Enf — dark product stage + liquid glass, inspired by Apple's Pro pages. */
.brand-mark {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-weight: 780;
  letter-spacing: -.05em;
}

.auth-view,
.customer-view {
  --enf-bg: #050506;
  --enf-panel: rgba(28, 28, 32, .58);
  --enf-panel-strong: rgba(34, 34, 39, .76);
  --enf-stroke: rgba(255, 255, 255, .13);
  --enf-stroke-soft: rgba(255, 255, 255, .075);
  --enf-text: #f5f5f7;
  --enf-muted: #a1a1a8;
  --enf-blue: #8ab4ff;
}

.auth-view {
  color: var(--enf-text);
  background:
    radial-gradient(circle at 78% 8%, rgba(80, 104, 151, .20), transparent 32rem),
    radial-gradient(circle at 59% 92%, rgba(112, 49, 63, .16), transparent 34rem),
    var(--enf-bg);
}
.auth-story { padding: clamp(1.5rem, 3vw, 3rem); background: #050505; }
.enf-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 44% 34% at 54% 40%, rgba(153, 86, 50, .085), transparent 70%),
    radial-gradient(ellipse 34% 28% at 26% 31%, rgba(94, 35, 50, .075), transparent 74%),
    #050505;
}
.enf-scene::before {
  content: "";
  position: absolute;
  top: 38%;
  left: 51%;
  width: clamp(18rem, 43vw, 38rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-16deg) scaleY(.42);
  border: 1px solid rgba(224,190,150,.12);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(143,66,49,.08), 0 0 70px rgba(212,171,119,.045);
  opacity: .55;
}
.enf-word {
  position: absolute;
  top: 43%;
  left: 48%;
  transform: translate(-50%, -50%);
  font-size: clamp(13rem, 27vw, 30rem);
  font-weight: 820;
  line-height: .72;
  letter-spacing: -.12em;
  color: transparent;
  background:
    linear-gradient(108deg, #211816 4%, #8c6a4e 20%, #d5c3aa 31%, #70452e 43%, #30191d 55%, #9b744c 70%, #cfc2ae 80%, #241719 96%),
    repeating-linear-gradient(92deg, transparent 0 9px, rgba(255,255,255,.08) 10px 11px);
  background-blend-mode: screen;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-mask-image: linear-gradient(101deg, transparent 2%, #000 16% 38%, transparent 48% 54%, #000 65% 86%, transparent 98%);
  mask-image: linear-gradient(101deg, transparent 2%, #000 16% 38%, transparent 48% 54%, #000 65% 86%, transparent 98%);
  filter: blur(.35px) drop-shadow(0 0 24px rgba(222,179,126,.09)) drop-shadow(0 36px 42px rgba(0,0,0,.72));
  opacity: .38;
  white-space: nowrap;
  animation: enf-breathe 8s ease-in-out infinite;
}
.enf-word::after {
  content: attr(data-word);
  position: absolute;
  inset: 92% 0 auto;
  color: transparent;
  background: linear-gradient(180deg, rgba(216,180,135,.22), transparent 72%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: scaleY(-.22);
  transform-origin: top;
  filter: blur(5px);
  opacity: .24;
}
.enf-glaze {
  position: absolute;
  top: 42%;
  left: 50%;
  width: clamp(8rem, 15vw, 15rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255,249,235,.86) 0 2%, rgba(255,205,140,.22) 8%, transparent 23%),
    radial-gradient(circle at 62% 67%, #1b0808 0 24%, #6f2730 46%, #c98b56 69%, #18100e 84%);
  border: 1px solid rgba(255, 224, 187, .18);
  box-shadow:
    inset -18px -24px 40px rgba(0,0,0,.58),
    inset 12px 10px 30px rgba(255,207,145,.12),
    0 0 0 1px rgba(255,255,255,.025),
    0 0 55px rgba(153,72,51,.22);
  mix-blend-mode: screen;
  opacity: .32;
  animation: enf-glaze-shift 9s ease-in-out infinite;
}
.enf-ribbon {
  position: absolute;
  left: -24%;
  width: 150%;
  color: rgba(245,235,220,.07);
  font-size: clamp(1.65rem, 3.6vw, 4.5rem);
  font-weight: 690;
  letter-spacing: -.045em;
  white-space: nowrap;
  text-transform: uppercase;
  pointer-events: none;
}
.enf-ribbon-back {
  top: 34%;
  transform: rotate(-5deg) scaleX(1.08);
  filter: blur(3px);
  animation: enf-ribbon-left 18s ease-in-out infinite alternate;
}
.enf-ribbon-front {
  top: 50%;
  color: rgba(255,247,232,.09);
  transform: rotate(4deg) scaleX(1.12);
  filter: blur(1.2px);
  mix-blend-mode: screen;
  animation: enf-ribbon-right 20s ease-in-out infinite alternate;
}
/* Breathing is scale-only: the glow/shadow filter stays fixed on the element, so the big wordmark is
   rasterised once and the GPU just scales it, instead of re-blurring the text every frame. */
@keyframes enf-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.012); }
}
@keyframes enf-glaze-shift {
  0%, 100% { transform: translate(-50%, -50%) rotate(-4deg) scale(.96); }
  50% { transform: translate(-50%, -50%) rotate(5deg) scale(1.04); }
}
@keyframes enf-ribbon-left {
  from { translate: -2.5% 0; }
  to { translate: 4% 0; }
}
@keyframes enf-ribbon-right {
  from { translate: 4% 0; }
  to { translate: -3% 0; }
}
.auth-story .story-overlay {
  background:
    radial-gradient(circle at 50% 40%, transparent 0, rgba(4, 4, 5, .03) 30%, rgba(4, 4, 5, .5) 82%),
    linear-gradient(180deg, rgba(4,4,5,.12), transparent 42%, rgba(4,4,5,.94) 88%);
}
.auth-view .brand-mark,
.customer-view .brand-mark {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255,255,255,.3), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.23);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -1px 0 rgba(255,255,255,.05),
    0 8px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
}
.story-copy { max-width: 48rem; }
.story-copy h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
  font-size: clamp(3.25rem, 5.6vw, 6.2rem);
  font-weight: 700;
  line-height: .91;
  letter-spacing: -.062em;
  text-wrap: balance;
}
.story-copy h1 span { font-weight: inherit; }
.story-copy h1 em {
  color: inherit;
  font-weight: inherit;
  font-style: normal;
  letter-spacing: inherit;
  text-shadow: none;
}
.story-copy > p:not(.eyebrow) { font-size: 1.02rem; color: rgba(255,255,255,.7); }
.private-badge {
  color: rgba(255,255,255,.82);
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.055));
  border-color: rgba(255,255,255,.22);
  box-shadow: inset 0 1px rgba(255,255,255,.24), 0 12px 30px rgba(0,0,0,.16);
}
.auth-panel { position: relative; overflow: hidden; }
.auth-panel::before {
  content: "";
  position: absolute;
  width: 24rem;
  height: 24rem;
  right: -9rem;
  top: -8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 173, 230, .18), transparent 67%);
  filter: blur(8px);
  pointer-events: none;
}
.auth-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid var(--enf-stroke);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.035));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    0 30px 90px rgba(0,0,0,.34);
  backdrop-filter: blur(34px) saturate(170%);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
}
.auth-heading h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
  color: var(--enf-text);
  font-weight: 700;
}
.auth-heading > p:last-child,
.auth-view .field > span,
.auth-view .check-label,
.auth-view .auth-footnote { color: var(--enf-muted); }
.auth-view .eyebrow.dark { color: #9ebaf0; }
.auth-view .segmented { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.06); }
.auth-view .segment { color: #98989f; }
.auth-view .segment.is-active {
  color: #fff;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 6px 18px rgba(0,0,0,.2);
}
.auth-view .field input {
  color: #fff;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.1);
}
.auth-view .field input::placeholder { color: #73737a; }

.auth-view .field input:focus { background: rgba(255,255,255,.11); border-color: rgba(151,184,240,.5); }
@media (hover: hover) and (pointer: fine) { .auth-view .field input:hover { background: rgba(255,255,255,.11); border-color: rgba(151,184,240,.5); } }
.auth-view .text-button { color: #9ebaf0; }
.auth-view .primary-button {
  color: #0a0a0b;
  background: #f5f5f7;
  box-shadow: 0 12px 34px rgba(0,0,0,.35), inset 0 1px #fff;
}
@media (hover: hover) and (pointer: fine) { .auth-view .primary-button:hover { background: #fff; } }
.auth-view .soft-button {
  color: #e8e8ea;
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.09);
}
@media (hover: hover) and (pointer: fine) { .auth-view .soft-button:hover { background: rgba(255,255,255,.12); } }
.auth-view .demo-divider { color: #77777e; }
.auth-view .demo-divider::before,
.auth-view .demo-divider::after { background: rgba(255,255,255,.09); }
.auth-access-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: 1.4rem 0 0;
  color: #8f8f97;
  font-size: .7rem;
}
.auth-access-note span {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px rgba(255,255,255,.14);
  font-weight: 750;
}

.customer-view {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--enf-text);
  background:
    radial-gradient(ellipse 62% 34% at 50% 9%, rgba(113, 84, 70, .23), transparent 72%),
    radial-gradient(ellipse 35% 25% at 13% 34%, rgba(55, 78, 120, .17), transparent 78%),
    radial-gradient(ellipse 30% 25% at 91% 57%, rgba(112, 42, 59, .13), transparent 78%),
    var(--enf-bg);
}
.customer-view::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 10%, rgba(255,255,255,.025) 48%, transparent 72%);
}
.customer-view .glass-bar {
  background: linear-gradient(145deg, rgba(40,40,45,.68), rgba(18,18,21,.52));
  border: 1px solid var(--enf-stroke);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.17), 0 18px 55px rgba(0,0,0,.35);
  backdrop-filter: blur(32px) saturate(175%);
  -webkit-backdrop-filter: blur(32px) saturate(175%);
}
.customer-header {
  top: 1rem;
  width: min(calc(100% - 2rem), 82rem);
  height: 4.3rem;
  margin: 1rem auto 0;
  padding: 0 1rem;
  border-radius: 24px;
}
.customer-view .brand { color: var(--enf-text); }
.customer-view .brand b { font-size: 1rem; letter-spacing: -.02em; }
.customer-view .brand small { color: #a6a6ad; opacity: 1; }
.customer-view .desktop-nav { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.06); }
.customer-view .nav-link { color: #96969d; }
.customer-view .nav-link.is-active {
  color: #fff;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 1px rgba(255,255,255,.13), 0 5px 16px rgba(0,0,0,.18);
}
.customer-view .icon-button,
.customer-view .avatar-button {
  color: #efeff1;
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.1);
}
@media (hover: hover) and (pointer: fine) { .customer-view .icon-button:hover { background: rgba(255,255,255,.14); } }
.customer-view .cart-button {
  color: #111114;
  background: #f5f5f7;
  box-shadow: inset 0 1px #fff, 0 8px 24px rgba(0,0,0,.25);
}
.customer-view .cart-button b { color: #fff; background: #252529; }

.menu-hero {
  position: relative;
  min-height: 43rem;
  display: grid;
  place-items: center;
  padding-block: 9rem 5rem;
  text-align: center;
}
.menu-hero::before {
  content: "ENF";
  position: absolute;
  z-index: -1;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(12rem, 29vw, 27rem);
  font-weight: 800;
  line-height: .7;
  letter-spacing: -.11em;
  color: transparent;
  background:
    linear-gradient(112deg, #24262d 5%, #a8b4c7 24%, #f1c8a7 35%, #323846 48%, #e6e9f1 61%, #875d65 78%, #202127 94%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(194,214,255,.18));
  opacity: .52;
  white-space: nowrap;
  pointer-events: none;
}
.menu-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(88vw, 68rem);
  height: 18rem;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(172,190,224,.19), rgba(111,65,67,.09) 42%, transparent 72%);
  filter: blur(34px);
  pointer-events: none;
}
.hero-copy-block { position: relative; z-index: 1; max-width: 62rem; }
.customer-view .eyebrow.dark { color: #9ebaf0; }
.hero-actions { display: flex; justify-content: flex-start; gap: .75rem; }
.hero-button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.2rem; padding: 0 1.55rem; border-radius: 999px; color: #f5f5f7; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); box-shadow: inset 0 1px rgba(255,255,255,.22); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); font-size: .9rem; font-weight: 700; transition: transform .16s var(--spring), background .2s; }
.hero-button svg { width: 1.05rem; height: 1.05rem; }
.hero-button.is-primary { color: #121214; border-color: transparent; background: #f5f3ee; box-shadow: none; }
.hero-button.is-primary svg { transform: rotate(90deg); }
@media (hover: hover) and (pointer: fine) { .hero-button:hover { background: rgba(255,255,255,.1); } }
@media (hover: hover) and (pointer: fine) { .hero-button.is-primary:hover { background: #fff; } }
.hero-button:active { transform: scale(.97); }
.hero-proof { display: flex; align-items: center; justify-content: flex-start; gap: .75rem; margin-top: 1.4rem; color: rgba(245,243,238,.62); font-size: .8rem; }
.hero-proof b { color: #f5f3ee; font-weight: 600; }
.hero-avatars { display: flex; }
.hero-avatars span { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-left: -.45rem; border: 2px solid #0c0c0e; border-radius: 50%; color: #1c1c20; font-size: .68rem; font-weight: 700; }
.hero-avatars span:first-child { margin-left: 0; }
.hero-avatars span.is-more { color: #ddd; background: #2a2a2e; font-size: .6rem; }
@media (max-width: 450px) {
  .hero-actions { gap: .6rem; }
  .hero-button { flex: 1; min-height: 3rem; padding: 0 1rem; }
}
.hero-copy-block h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
  font-size: clamp(4.4rem, 8.7vw, 8.8rem);
  font-weight: 735;
  line-height: .92;
  letter-spacing: -.078em;
  text-wrap: balance;
  text-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.hero-copy-block > p:last-child {
  max-width: 34rem;
  margin: 2rem auto 0;
  color: #aaaab1;
  font-size: 1.02rem;
  line-height: 1.75;
}
.category-bar {
  top: 6.25rem;
  width: min(calc(100% - 3rem), 70rem);
  margin-inline: auto;
  padding: .45rem;
  border: 1px solid var(--enf-stroke);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(45,45,50,.7), rgba(19,19,22,.62));
  box-shadow: inset 0 1px rgba(255,255,255,.15), 0 18px 46px rgba(0,0,0,.32);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
}
.customer-view .category-chip {
  color: #a7a7ae;
  background: transparent;
  border-color: transparent;
}
.customer-view .category-chip span { color: #6f6f76; }
@media (hover: hover) and (pointer: fine) { .customer-view .category-chip:hover { color: #fff; background: rgba(255,255,255,.07); } }
.customer-view .category-chip.is-active {
  color: #111114;
  background: #f5f5f7;
  border-color: rgba(255,255,255,.8);
  box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 1px #fff;
}
.customer-view .category-chip.is-active span { color: #67676d; }
.customer-view .search-inline {
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.08);
}
.customer-view .search-inline input { color: #fff; }
.customer-view .search-inline input::placeholder { color: #77777e; }
.menu-content { padding-top: 4.5rem; }
.menu-list-heading { justify-content: flex-end; margin-bottom: 1rem; }
.menu-list-heading > p { color: #85858c; }
.dish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 1.05rem; }
.dish-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--enf-text);
  background: linear-gradient(145deg, rgba(42,42,47,.72), rgba(19,19,22,.68));
  border-color: var(--enf-stroke-soft);
  box-shadow: inset 0 1px rgba(255,255,255,.095), 0 18px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
@media (hover: hover) and (pointer: fine) { .dish-card:hover {
  transform: translateY(-6px) scale(1.005);
  border-color: rgba(255,255,255,.15);
  box-shadow: inset 0 1px rgba(255,255,255,.15), 0 30px 70px rgba(0,0,0,.42);
} }
.dish-image-wrap { flex: none; aspect-ratio: 1.18; background: #151519; }
.dish-image { filter: saturate(.86) contrast(1.04); }
.dish-badge {
  color: #f1f1f3;
  background: linear-gradient(145deg, rgba(55,55,60,.72), rgba(15,15,18,.45));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 8px 24px rgba(0,0,0,.22);
}
.dish-badge.is-limited {
  color: #21170c;
  background: linear-gradient(145deg, rgba(255,230,178,.96), rgba(209,159,89,.92));
  border-color: rgba(255,237,202,.88);
  box-shadow: inset 0 1px rgba(255,255,255,.72), 0 8px 24px rgba(139,91,34,.3);
}
.favorite-button {
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(10,10,12,.34);
  box-shadow: inset 0 1px rgba(255,255,255,.12);
}
.dish-body { display: flex; flex: 1; flex-direction: column; }
.dish-topline strong { color: #f5f5f7; }
.dish-desc { display: -webkit-box; min-height: 3.1em; overflow: hidden; color: #929299; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dish-footer { margin-top: auto; }
.dish-footer small { color: #73737a; }
.add-button {
  color: #111114;
  background: #f5f5f7;
  box-shadow: inset 0 1px #fff, 0 7px 22px rgba(0,0,0,.28);
}

.orders-section { min-height: calc(100svh - 6rem); padding-top: 8rem; }
.orders-heading h1,
.customer-view .section-heading h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
  color: var(--enf-text);
  font-weight: 720;
}
.customer-view .soft-button {
  color: #f0f0f2;
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.1);
}
@media (hover: hover) and (pointer: fine) { .customer-view .soft-button:hover { background: rgba(255,255,255,.13); } }
.customer-order-card {
  color: var(--enf-text);
  background: linear-gradient(145deg, rgba(40,40,45,.68), rgba(18,18,21,.58));
  border-color: var(--enf-stroke-soft);
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 18px 50px rgba(0,0,0,.26);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.customer-order-card > span { color: #b8d5ff; background: rgba(111,151,215,.18); }
.customer-order-card.is-pending > .customer-order-status-icon { color: #ffd4a7; background: rgba(186,117,54,.18); }
.customer-order-card.is-cooking > .customer-order-status-icon { color: #c8e7cf; background: rgba(93,151,105,.18); }
.customer-order-card.is-done > .customer-order-status-icon { color: #dbe8ff; background: rgba(111,151,215,.18); }
.customer-order-card.is-cancelled > .customer-order-status-icon { color: #ffbbb6; background: rgba(201,78,70,.16); }
.customer-order-card p { color: #919198; }
.customer-order-card aside span { color: #a9c8a9; }

.cart-sheet {
  color: #f5f5f7;
  background: linear-gradient(145deg, rgba(38,38,43,.92), rgba(13,13,16,.9));
  border-left: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 1px 0 rgba(255,255,255,.08), -30px 0 90px rgba(0,0,0,.45);
  backdrop-filter: blur(38px) saturate(170%);
  -webkit-backdrop-filter: blur(38px) saturate(170%);
}
.cart-sheet .eyebrow.dark { color: #9ebaf0; }
.cart-sheet .sheet-header,
.cart-sheet .cart-item,
.cart-sheet .cart-footer { border-color: rgba(255,255,255,.09); }
.cart-sheet .sheet-header h2 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif; }
.cart-sheet .icon-button,
.cart-sheet .quantity-control button {
  color: #fff;
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.1);
}
.cart-sheet .empty-cart,
.cart-sheet .cart-item p,
.cart-sheet .price-line.muted { color: #8f8f97; }
.cart-sheet .empty-cart h3 { color: #f5f5f7; }
.cart-sheet .quantity-control { background: rgba(255,255,255,.07); }
.cart-sheet .note-field > span { color: #aaaab1; }
.cart-sheet .note-field input {
  color: #fff;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.1);
}
.cart-sheet .note-field input::placeholder { color: #6f6f76; }
.cart-sheet .primary-button,
.success-dialog .primary-button { color: #111114; background: #f5f5f7; }
.scrim { background: rgba(0,0,0,.58); backdrop-filter: blur(8px); }
.success-dialog {
  color: #f5f5f7;
  background: linear-gradient(145deg, rgba(45,45,50,.96), rgba(15,15,18,.96));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 34px 100px rgba(0,0,0,.55);
}
.success-dialog .eyebrow.dark { color: #9ebaf0; }
.success-dialog p:not(.eyebrow) { color: #9999a1; }

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

@media (max-width: 800px) {
  .auth-view { background: var(--enf-bg); }
  .auth-story { min-height: 43svh; }
  .enf-word { top: 40%; font-size: clamp(10rem, 48vw, 18rem); }
  .enf-glaze { top: 39%; width: clamp(6rem, 23vw, 9rem); }
  .enf-ribbon { font-size: clamp(1.15rem, 4.6vw, 2.2rem); }
  .enf-ribbon-back { top: 31%; }
  .enf-ribbon-front { top: 45%; }
  .story-copy h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
  .auth-panel { padding-top: 1rem; }
  .auth-card { border-radius: 26px; }
  .customer-header {
    top: .7rem;
    width: calc(100% - 1.4rem);
    height: 4rem;
    margin-top: .7rem;
    padding-inline: .75rem;
  }
  .menu-hero { min-height: 38rem; padding-block: 8rem 4rem; }
  .menu-hero::before { font-size: clamp(10rem, 43vw, 15rem); opacity: .48; }
  .hero-copy-block h1 { font-size: clamp(3.7rem, 15.5vw, 6rem); }
  .hero-copy-block > p:last-child { max-width: 28rem; padding-inline: .5rem; font-size: .9rem; }
  .category-bar {
    top: 5.3rem;
    width: calc(100% - 1.4rem);
    padding-inline: .4rem;
  }
  .menu-content { padding-top: 3.5rem; }
  .mobile-nav {
    background: linear-gradient(145deg, rgba(46,46,51,.78), rgba(18,18,21,.72));
    border-color: rgba(255,255,255,.14);
    box-shadow: inset 0 1px rgba(255,255,255,.16), 0 18px 55px rgba(0,0,0,.45);
  }
  .mobile-nav > button { color: #7f7f87; }
  .mobile-nav > button.is-active { color: #f5f5f7; }
  .mobile-cart-icon b { background: #f5f5f7; color: #111114; }
  .cart-sheet { border: 1px solid rgba(255,255,255,.12); border-bottom: 0; }
  .sheet-handle { background: rgba(255,255,255,.24); }
}

@media (max-width: 700px) {
  .dish-grid { grid-template-columns: 1fr; gap: .9rem; }
  .dish-image-wrap { aspect-ratio: 1.45; }
}

@media (max-width: 450px) {
  .auth-card { padding: 1.25rem; }
  .story-copy h1 { font-size: 3.35rem; }
  .menu-hero { min-height: 34rem; }
  .hero-copy-block h1 { font-size: 3.75rem; }
  .hero-copy-block > p:last-child { line-height: 1.65; }
  .category-bar { justify-content: flex-start; }
}

@media (prefers-reduced-transparency: reduce) {
  .auth-card,
  .customer-view .glass-bar,
  .category-bar,
  .dish-card,
  .customer-order-card,
  .cart-sheet { backdrop-filter: none; -webkit-backdrop-filter: none; background: #1c1c20; }
}

/* Bottom navigation and in-card ordering */
.customer-header { grid-template-columns: 1fr auto; }

.customer-dock {
  position: fixed;
  z-index: 55;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  min-width: 15rem;
  justify-content: center;
  gap: .35rem;
  padding: .38rem;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.025)),
    rgba(20,20,24,.2) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(255,255,255,.045),
    0 18px 55px rgba(0,0,0,.32) !important;
  backdrop-filter: blur(38px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(38px) saturate(190%) !important;
}
/* A dialog hides the page scrollbar; keep the dock where it was instead of re-centring in the wider viewport. */
body.secondary-page-open .customer-dock { margin-left: calc(var(--background-scrollbar-gap, 0px) / -2); }
.customer-dock .nav-link {
  min-width: 7rem;
  padding: .72rem 1.35rem;
  border-radius: 999px;
}
.customer-dock .nav-link.is-active {
  color: #fff;
  background: rgba(255,255,255,.135);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.19), 0 5px 18px rgba(0,0,0,.14);
}
.menu-content,
.orders-section { padding-bottom: 8.5rem; }

.card-quantity-control {
  display: grid;
  grid-template-columns: 2rem minmax(2.55rem, auto) 2rem;
  align-items: center;
  min-height: 2.45rem;
  padding: .2rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #f5f5f7;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.16);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
}
.card-quantity-control button {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f5f5f7;
  background: rgba(255,255,255,.1);
  transition: transform .2s var(--spring), background .2s ease;
}
.card-quantity-control button:last-child { color: #111114; background: #f5f5f7; }
@media (hover: hover) and (pointer: fine) { .card-quantity-control button:hover { background: rgba(255,255,255,.18); } }
@media (hover: hover) and (pointer: fine) { .card-quantity-control button:last-child:hover { background: #fff; } }
.card-quantity-control button:active { transform: scale(.84); }
.card-quantity-control svg { width: .8rem; height: .8rem; }
.card-quantity-control > span {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .16rem;
  font-variant-numeric: tabular-nums;
}
.card-quantity-control strong { font-size: .8rem; }
.card-quantity-control small { color: #898990; font-size: .55rem; }

.empty-menu,
.empty-history {
  color: #8b8b92;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.022));
  box-shadow: inset 0 1px rgba(255,255,255,.085), 0 20px 55px rgba(0,0,0,.16);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.empty-menu {
  grid-column: 1 / -1;
  min-height: 19rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 2rem;
  border-radius: 28px;
  text-align: center;
}
.empty-menu > span,
.admin-empty-state > span {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  color: #d8d8dc;
  background: rgba(255,255,255,.07);
  font-weight: 700;
}
.empty-menu h3,
.empty-menu p,
.empty-history h3,
.empty-history p { margin: 0; }
.empty-menu h3,
.empty-history h3 { color: #f1f1f3; font-size: .94rem; }
.empty-menu p,
.empty-history p { margin-top: .45rem; font-size: .7rem; line-height: 1.65; }

.empty-history {
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  border-radius: 24px;
  text-align: left;
}
.empty-history > span {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #d8d8dc;
  background: rgba(255,255,255,.08);
}
.empty-history svg { width: 1.1rem; height: 1.1rem; }

.admin-empty-state {
  grid-column: 1 / -1;
  min-height: 18rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .65rem;
  padding: 2rem;
  border: 1px dashed rgba(28,30,26,.14);
  border-radius: 20px;
  color: #85877f;
  text-align: center;
}
.admin-empty-state > span { color: #4d4e49; border-color: rgba(28,30,26,.1); background: rgba(28,30,26,.045); }
.admin-empty-state h3,
.admin-empty-state p { margin: 0; }
.admin-empty-state h3 { color: var(--ink); font-size: .9rem; }
.admin-empty-state p { font-size: .68rem; }

@media (max-width: 800px) {
  .customer-view {
    padding-bottom: calc(5.7rem + env(safe-area-inset-bottom, 0px));
  }
  .customer-view::after {
    content: "";
    position: fixed;
    z-index: 43;
    inset: auto 0 0;
    height: calc(5.7rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255,255,255,.16);
    background: #08080a;
    box-shadow: 0 -12px 34px rgba(0,0,0,.3);
    pointer-events: none;
  }
  .customer-view .mobile-nav {
    bottom: max(.75rem, calc(env(safe-area-inset-bottom, 0px) + .55rem));
  }
  .customer-dock { display: none; }
  .mobile-nav {
    background:
      linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.02)),
      rgba(18,18,22,.22) !important;
    border-color: rgba(255,255,255,.18) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.24), 0 18px 55px rgba(0,0,0,.34) !important;
    backdrop-filter: blur(36px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(36px) saturate(190%) !important;
  }
}

/* Keep the entire admin surface in the same system sans-serif as “Enf 管理台”. */
.admin-view,
.admin-view h1,
.admin-view h2,
.admin-view h3,
.admin-view .brand-mark,
.admin-view button,
.admin-view input,
#invite-dialog,
#invite-dialog h2,
#invite-dialog button,
#invite-dialog input,
#dish-dialog,
#dish-dialog h2,
#dish-dialog button,
#dish-dialog input,
#dish-dialog select,
#dish-dialog textarea {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif;
}

@media (prefers-reduced-transparency: reduce) {
  .customer-dock,
  .mobile-nav,
  .card-quantity-control,
  .empty-menu,
  .empty-history { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #1c1c20 !important; }
}

/* High-transparency liquid glass */
.customer-view .customer-header,
.customer-view .customer-dock,
.customer-view .mobile-nav,
.customer-view .category-bar {
  isolation: isolate;
  overflow: hidden;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 1px 0 0 rgba(255,255,255,.09),
    inset 0 -1px 0 rgba(255,255,255,.055),
    0 18px 50px rgba(0,0,0,.13) !important;
  backdrop-filter: blur(3px) saturate(155%) brightness(1.045) contrast(1.025) !important;
  -webkit-backdrop-filter: blur(3px) saturate(155%) brightness(1.045) contrast(1.025) !important;
}
.customer-view .customer-header::after,
.customer-view .customer-dock::after,
.customer-view .mobile-nav::after,
.customer-view .category-bar::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 14% -22%, rgba(255,255,255,.1), transparent 35%),
    linear-gradient(112deg, transparent 24%, rgba(255,255,255,.018) 44%, transparent 63%);
  opacity: .38;
  mix-blend-mode: screen;
}
.customer-view .customer-header > *,
.customer-view .customer-dock > *,
.customer-view .mobile-nav > *,
.customer-view .category-bar > * { position: relative; z-index: 1; }

.customer-view .category-chip.is-active,
.customer-view .customer-dock .nav-link.is-active {
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,.22);
  box-shadow: inset 0 1px rgba(255,255,255,.26), 0 5px 18px rgba(0,0,0,.12);
  backdrop-filter: blur(2px) saturate(150%);
  -webkit-backdrop-filter: blur(2px) saturate(150%);
}
.customer-view .category-chip.is-active span { color: rgba(255,255,255,.62); }
.customer-view .search-inline {
  background: transparent;
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  transition: border-color .2s ease, box-shadow .25s ease;
}
.customer-view .category-bar:focus-within .search-inline {
  border-color: rgba(190,215,255,.48);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 0 0 4px rgba(137,177,240,.1);
}
.customer-view .customer-dock .nav-link:active,
.customer-view .mobile-nav > button:active,
.customer-view .category-chip:active { transform: scale(.96); transition-duration: 90ms; }

.card-quantity-control {
  background: transparent;
  border-color: rgba(255,255,255,.2);
  box-shadow: inset 0 1px rgba(255,255,255,.23), 0 8px 24px rgba(0,0,0,.12);
  backdrop-filter: blur(3px) saturate(155%) brightness(1.045);
  -webkit-backdrop-filter: blur(3px) saturate(155%) brightness(1.045);
}

.customer-view.is-admin-preview .search-trigger,
.customer-view.is-admin-preview .cart-button,
.customer-view.is-admin-preview .avatar-button,
.customer-view.is-admin-preview .category-chip,
.customer-view.is-admin-preview .search-inline,
.customer-view.is-admin-preview .favorite-button,
.customer-view.is-admin-preview .add-button,
.customer-view.is-admin-preview .card-quantity-control,
.customer-view.is-admin-preview .customer-dock,
.customer-view.is-admin-preview .mobile-nav {
  cursor: default;
}
.customer-view.is-admin-preview :is(button, input, select, textarea, a):not(#admin-return) {
  pointer-events: none;
}
.customer-view.is-admin-preview :is(button, input, select, textarea):disabled {
  opacity: 1;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}
@media (hover: hover) and (pointer: fine) { .customer-view.is-admin-preview .dish-card:hover {
  transform: none;
  border-color: var(--enf-stroke-soft);
  box-shadow: inset 0 1px rgba(255,255,255,.095), 0 18px 50px rgba(0,0,0,.28);
} }
@media (hover: hover) and (pointer: fine) { .customer-view.is-admin-preview .dish-card:hover .dish-image { transform: none; } }

@media (max-width: 700px) {
  .dish-form-grid { grid-template-columns: 1fr; }
  .dish-image-field { grid-column: auto; }
}

/* Favorites and profile */
.customer-dock .nav-link { min-width: 5.6rem; }
.empty-menu > span svg { width: 1.2rem; height: 1.2rem; }
.profile-section { max-width: 44rem; }
.profile-card,
.profile-stats > button,
.profile-actions {
  color: var(--enf-text);
  border: 1px solid var(--enf-stroke-soft);
  background: linear-gradient(145deg, rgba(40,40,45,.68), rgba(18,18,21,.58));
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 18px 50px rgba(0,0,0,.26);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.profile-card { display: flex; align-items: center; gap: 1rem; padding: 1.3rem; border-radius: 22px; }
.profile-card h2, .profile-card p { margin: 0; }
.profile-card h2 { font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.profile-card p { margin-top: .3rem; color: var(--enf-muted); font-size: .74rem; }
.profile-avatar { flex: none; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; color: #111114; background: #f5f5f7; font-size: 1.2rem; font-weight: 750; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .8rem; }
.profile-stats > button { display: grid; gap: .3rem; padding: 1.1rem 1.2rem; border-radius: 18px; text-align: left; transition: transform .18s var(--spring), background .2s; }
.profile-stats > button:active { transform: scale(.98); }
.profile-stats strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.profile-stats span { color: var(--enf-muted); font-size: .72rem; }
.profile-actions { display: grid; margin-top: .8rem; padding: .35rem; border-radius: 20px; }
.profile-action { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 3.4rem; padding: 0 1rem; border-radius: 15px; color: var(--enf-text); background: transparent; font-size: .82rem; text-align: left; transition: background .2s; }
.profile-action + .profile-action { box-shadow: inset 0 1px rgba(255,255,255,.06); }
@media (hover: hover) and (pointer: fine) { .profile-action:hover { background: rgba(255,255,255,.06); } }
.profile-action > span { flex: 1; }
.profile-action > svg { width: 1.1rem; height: 1.1rem; color: var(--enf-muted); }
.profile-action > .profile-chevron { width: .95rem; height: .95rem; }
.profile-action.is-danger,
.profile-action.is-danger > svg { color: #ff8f86; }

/* Readable labels on the clear glass bars */
.customer-view .category-chip,
.customer-view .mobile-nav > button {
  text-shadow: 0 0 1px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.7), 0 0 10px rgba(0,0,0,.6), 0 0 18px rgba(0,0,0,.4);
}
.customer-view .customer-header .brand {
  color: rgba(245,245,247,.94);
  text-shadow: 0 0 1px rgba(0,0,0,.8), 0 1px 3px rgba(0,0,0,.72), 0 0 10px rgba(0,0,0,.62), 0 0 18px rgba(0,0,0,.42);
}
.customer-view .customer-header .brand small { color: rgba(245,245,247,.68); }
.customer-view .category-chip { color: rgba(245,245,247,.86); }
.customer-view .category-chip span { color: rgba(245,245,247,.6); }
.customer-view .search-inline input::placeholder { color: rgba(245,245,247,.62); }
.customer-view .search-inline svg,
.customer-view .mobile-nav svg { filter: drop-shadow(0 0 1px rgba(0,0,0,.7)) drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.customer-view .search-inline,
.customer-view .customer-header .search-trigger,
.customer-view .customer-header .avatar-button {
  color: rgba(245,245,247,.96);
  background: rgba(10,10,13,.28) !important;
  border-color: rgba(255,255,255,.2) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.2), 0 5px 18px rgba(0,0,0,.13);
  backdrop-filter: blur(3px) saturate(155%);
  -webkit-backdrop-filter: blur(3px) saturate(155%);
  text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 9px rgba(0,0,0,.55);
}
.customer-view .search-inline input { color: rgba(245,245,247,.96); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.customer-view .search-inline input::placeholder { color: rgba(245,245,247,.82); opacity: 1; }
.customer-view .customer-header .search-trigger svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.78)); }
.customer-view .mobile-nav > button { color: rgba(240,240,245,.86); font-size: .62rem; font-weight: 650; }
.customer-view .mobile-nav > button.is-active { color: #fff; font-weight: 750; }

/* This meal: floating above “我的” */
.meal-fab {
  position: fixed;
  z-index: 56;
  right: calc(50% - 16rem);
  bottom: 6rem;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  color: #111114;
  background: linear-gradient(160deg, #fff, #e9e9ee);
  box-shadow: inset 0 1px #fff, 0 0 0 1px rgba(255,255,255,.35), 0 14px 34px rgba(0,0,0,.42);
  animation: meal-fab-in .45s var(--spring);
  transition: transform .18s var(--spring);
}
.meal-fab:active { transform: scale(.94); }
.meal-fab svg { width: 1.3rem; height: 1.3rem; }
.meal-fab b {
  position: absolute;
  top: -.3rem;
  right: -.35rem;
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #8fb6ff, #4f82ee);
  box-shadow: 0 3px 10px rgba(79,130,238,.45);
  font-size: .66rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.meal-fab b.is-bumping { animation: badge-bump .38s var(--spring); }
@keyframes meal-fab-in { from { opacity: 0; scale: .6; translate: 0 12px; } }
@keyframes badge-bump { 40% { scale: 1.3; } }
.customer-view.is-admin-preview .meal-fab { cursor: default; }

.time-range { display: flex; align-items: center; gap: .7rem; }
.time-range input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.time-range > span { color: #85877f; font-size: .75rem; }
.store-status { margin: 0 0 .75rem; color: #7c7e77; font-size: .7rem; text-align: center; }
.store-status.is-closed { color: #b4513f; font-weight: 650; }

/* Sign-in transition */
.enter-transition {
  position: fixed;
  z-index: 250;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 50% 44%, rgba(120,150,210,.16), transparent 70%),
    rgba(6,6,8,.7);
  opacity: 0;
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  transition: opacity .25s ease-out;
}
.enter-transition.is-visible {
  opacity: 1;
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
}
.enter-transition.is-leaving { transition-duration: .3s; }
.enter-stage {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  color: #f5f5f7;
  transform: translateY(10px) scale(.96);
  transition: transform .3s var(--spring), filter .3s ease-out, opacity .3s ease-out;
}
.enter-transition.is-visible .enter-stage { transform: none; }
.enter-transition.is-leaving .enter-stage { transform: scale(1.04); opacity: 0; }
.enter-mark {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: inset 0 1px rgba(255,255,255,.35), 0 24px 60px rgba(0,0,0,.45);
  font-family: "Songti SC", serif;
  font-size: 1.9rem;
  transition: transform .25s var(--spring), background .25s ease, color .25s ease;
  animation: enter-breathe 1.6s ease-in-out infinite;
}
.enter-transition.is-welcome .enter-mark { animation: none; transform: scale(1.06); color: #111114; background: #f5f5f7; }
.enter-text { margin: 0; color: rgba(245,245,247,.82); font-size: .95rem; font-weight: 650; letter-spacing: .02em; }
.enter-transition.is-welcome .enter-text { color: #fff; animation: enter-text-in .25s var(--spring); }
.enter-progress { position: relative; width: 7rem; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.12); transition: opacity .3s ease; }
.enter-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #cfe0ff, transparent);
  animation: enter-scan 1.1s ease-in-out infinite;
}
.enter-transition.is-welcome .enter-progress { opacity: 0; }
.is-entering > * { animation: view-enter .3s cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes enter-breathe {
  50% { transform: scale(1.05); }
}
/* The blue glow pulses as a pre-painted layer's opacity rather than repainting box-shadow each frame. */
.enter-mark { position: relative; }
.enter-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 24px 70px rgba(140,175,240,.28);
  opacity: 0;
  pointer-events: none;
  animation: enter-glow 1.6s ease-in-out infinite;
}
.enter-transition.is-welcome .enter-mark::after { animation: none; opacity: 0; }
@keyframes enter-glow { 50% { opacity: 1; } }
@keyframes enter-scan { from { translate: -100% 0; } to { translate: 250% 0; } }
@keyframes enter-text-in { from { opacity: 0; translate: 0 4px; } }
@keyframes view-enter { from { opacity: 0; translate: 0 8px; } }
@media (prefers-reduced-motion: reduce) {
  .enter-mark,
  .enter-mark::after,
  .enter-progress::after,
  .meal-fab,
  .meal-fab b.is-bumping,
  .is-entering > * { animation: none !important; }
}

/* Mobile interaction polish: solid browser edge, native-size inputs and a draggable order sheet. */
@media (max-width: 800px) {
  html,
  body { background: #1c1c20; }

  .customer-request-form :is(input, textarea) { font-size: 16px; }

  .customer-view::after {
    --browser-toolbar-depth: 12rem;
    inset: var(--mobile-nav-bottom-edge, calc(100dvh - .75rem)) 0 calc(var(--browser-toolbar-depth) * -1);
    height: auto;
    border-top-color: rgba(255,255,255,.12);
    background: linear-gradient(145deg, #26262b, #0d0d10);
    box-shadow: inset 0 1px rgba(255,255,255,.08), 0 -12px 34px rgba(0,0,0,.38);
  }

  .meal-fab {
    right: calc(10vw - 1rem);
    bottom: max(6.15rem, calc(env(safe-area-inset-bottom, 0px) + 5.9rem));
  }

  .cart-sheet.is-open { transform: translate3d(0, 0, 0); }
  .cart-sheet.is-dragging { transition: none !important; will-change: transform; }
  .sheet-handle,
  .sheet-header > div:first-child { touch-action: none; user-select: none; -webkit-user-select: none; }

  .improvement-dialog textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .category-menu,
  .async-button-content { transition-duration: .01ms; animation-duration: .01ms; }
}

@media (hover: none) and (pointer: coarse) {
  html { touch-action: pan-x pan-y; }

  @media (hover: hover) and (pointer: fine) { .dish-card:hover { transform: none; } }
  @media (hover: hover) and (pointer: fine) { .dish-card:hover .dish-image { transform: none; } }

  /* Safari hands focus to something in a sheet when it opens (its first button, or the sheet itself) and rings it
     blue; on a touch screen that ring only ever looks like a glitch. Keyboards (pointer: fine) still get it. */
  :is(.sheet-close, #cart-close, .input-clear, .review-image-close, [data-close-dialog], dialog, dialog *):focus,
  :is(.sheet-close, #cart-close, .input-clear, .review-image-close, [data-close-dialog], dialog, dialog *):focus-visible {
    outline: none;
    outline-offset: 0;
  }
}

/* Bottom bars: glass untouched — only the labels get a dark halo so they read over bright photos */
.customer-view .customer-dock .nav-link,
.customer-view .mobile-nav > button {
  color: #fff;
  font-weight: 700;
  text-shadow:
    0 0 1px rgba(0,0,0,.9),
    0 1px 2px rgba(0,0,0,.85),
    0 0 6px rgba(0,0,0,.7),
    0 0 14px rgba(0,0,0,.55);
}
.customer-view .mobile-nav > button { font-size: .66rem; letter-spacing: .02em; }
.customer-view .customer-dock .nav-link:not(.is-active),
.customer-view .mobile-nav > button:not(.is-active) { color: rgba(255,255,255,.88); }
.customer-view .mobile-nav svg {
  filter:
    drop-shadow(0 0 1px rgba(0,0,0,.9))
    drop-shadow(0 1px 2px rgba(0,0,0,.8))
    drop-shadow(0 0 6px rgba(0,0,0,.55));
}

@media (prefers-contrast: more) {
  .customer-view .customer-header,
  .customer-view .customer-dock,
  .customer-view .mobile-nav,
  .customer-view .category-bar {
    background: rgba(18,18,22,.84) !important;
    border-color: rgba(255,255,255,.48) !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .customer-view .customer-header,
  .customer-view .customer-dock,
  .customer-view .mobile-nav,
  .customer-view .category-bar,
  .card-quantity-control {
    background: #1c1c20 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Mobile cards: keep the add / quantity control on the right, same as desktop */
.dish-footer .add-button,
.dish-footer .card-quantity-control { margin-left: auto; }

/* System messages: Apple-style liquid glass capsules above the bottom bar */
.toast-stack {
  --toast-bottom: max(1.5rem, calc(env(safe-area-inset-bottom, 0px) + 1rem));
  position: fixed;
  z-index: 260;
  left: 50%;
  bottom: var(--toast-bottom);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  width: min(calc(100% - 2rem), 26rem);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast-stack[popover] { inset: auto auto var(--toast-bottom) 50%; margin: 0; padding: 0; overflow: visible; border: 0; background: transparent; }
.toast-item {
  --tone: #0a84ff;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: .62rem;
  max-width: 100%;
  min-height: 3rem;
  padding: .55rem 1.25rem .55rem .9rem;
  border-radius: 999px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-shadow: 0 .5px 1px rgba(0,0,0,.25);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    rgba(28,28,32,.28);
  box-shadow:
    inset 0 0 14px rgba(255,255,255,.06),
    0 10px 30px rgba(0,0,0,.28),
    0 1px 3px rgba(0,0,0,.18);
  backdrop-filter: blur(12px) saturate(185%) brightness(.96);
  -webkit-backdrop-filter: blur(12px) saturate(185%) brightness(.96);
  pointer-events: auto;
  cursor: var(--cursor-pointer);
  opacity: 0;
  transform: translateY(12px) scale(.96);
  transition: opacity .2s ease-out, transform .3s var(--spring);
}
/* specular rim: light catching the top-left and bottom-right edges */
.toast-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.18) 22%, rgba(255,255,255,.05) 50%, rgba(255,255,255,.14) 78%, rgba(255,255,255,.5) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
/* soft inner lensing along the edge */
.toast-item::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 1px 2px 3px -1px rgba(255,255,255,.35), inset -1px -2px 3px -1px rgba(255,255,255,.12);
}
.toast-item.is-visible { opacity: 1; filter: none; transform: none; }
.toast-item.is-leaving {
  opacity: 0;
  transform: translateY(-4px) scale(.96);
  transition-duration: .18s, .2s;
}
.toast-item.is-bumping { animation: toast-bump .3s var(--spring); }
.toast-item:active { transform: scale(.97); }
.toast-icon { flex: none; display: block; width: 1.5rem; height: 1.5rem; }
.toast-icon svg { display: block; width: 100%; height: 100%; }
.toast-text {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.toast-progress { display: none; }
.toast-item.is-success { --tone: #30d158; }
.toast-item.is-error   { --tone: #ff453a; }
.toast-item.is-warning { --tone: #ff9f0a; }
.toast-item.is-notice,
.toast-item.is-info    { --tone: #0a84ff; }
.toast-item.is-error.is-visible { animation: toast-shake .38s cubic-bezier(.36,.07,.19,.97) .12s; }
@keyframes toast-bump { 40% { transform: scale(1.04); } }
@keyframes toast-shake {
  25%, 75% { translate: -3px 0; }
  50% { translate: 3px 0; }
}
@media (max-width: 560px) {
  .toast-item { font-size: .86rem; min-height: 2.75rem; }
  .toast-icon { width: 1.35rem; height: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .toast-item, .toast-item.is-leaving { transform: none; filter: none; }
  .toast-item.is-error.is-visible, .toast-item.is-bumping { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .toast-item { background: #1c1c20; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* System messages sit in the middle of the screen */
.toast-stack {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  transition: none;
}
.toast-stack[popover] { inset: 50% auto auto 50%; }
.toast-item { transform: scale(.9); }
.toast-item.is-visible { transform: none; }
.toast-item.is-leaving { transform: scale(.94); }

/* Admin: Apple-style order / notification icons and a tighter menu button */
.notification-button b {
  top: .5rem;
  right: .52rem;
  width: .5rem;
  height: .5rem;
  background: #ff3b30;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.06);
}
.metric-icon svg { width: 1.15rem; height: 1.15rem; stroke-width: 1.7; }
.admin-menu-trigger { align-content: center; gap: .3rem; }
.admin-menu-trigger span + span { margin-top: 0; }

/* Admin · users */
.user-search { display: flex; align-items: center; gap: .55rem; width: 15rem; height: 2.55rem; padding: 0 .95rem; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.user-search:focus-within { border-color: rgba(155,106,61,.45); box-shadow: 0 0 0 4px rgba(155,106,61,.1); }
.user-search svg { flex: none; width: 1rem; height: 1rem; color: #8b8d85; }
.user-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: none; font-size: .75rem; }
.user-search input::-webkit-search-cancel-button { display: none; }
.user-stats { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding: 1.3rem; text-align: center; }
.user-stats > div + div { border-left: 1px solid var(--line); }
.user-stats span, .user-stats small { display: block; }
.user-stats span { font-size: 1.65rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.user-stats small { margin-top: .25rem; color: #85877f; font-size: .6rem; }
.user-list-panel { margin-top: 1rem; padding: .4rem 1.3rem 1rem; }
.user-row { display: grid; grid-template-columns: minmax(10rem, 1.6fr) 1fr .6fr .7fr 1fr; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); font-size: .7rem; color: #5f615a; }
.user-row.header { border-top: 0; padding-block: .8rem .6rem; color: #9a9c94; font-size: .6rem; font-weight: 600; letter-spacing: .04em; }
.user-row b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.user-identity { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.user-identity > span { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: linear-gradient(160deg, #efe8dc, #e0d6c6); color: #6b5c47; font-size: .72rem; font-weight: 750; box-shadow: inset 0 1px rgba(255,255,255,.7); }
.user-identity > div { min-width: 0; }
.user-identity b, .user-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-identity b { font-size: .78rem; }
.user-identity small { margin-top: .15rem; color: #9a9c94; font-size: .6rem; }
.user-invite { display: inline-flex; align-items: center; height: 1.55rem; padding: 0 .6rem; border-radius: 999px; background: rgba(155,106,61,.1); color: #7d5530; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .66rem; font-weight: 700; letter-spacing: .05em; }
.user-invite.is-missing { background: rgba(28,30,26,.05); color: #9a9c94; font-family: inherit; font-weight: 600; letter-spacing: 0; }

.user-meta { display: contents; }
.user-meta-label { display: none; }

@media (max-width: 800px) {
  .user-search { width: 100%; }
  #users-page .page-tools { flex-direction: column; align-items: stretch; }
  .user-list-panel { padding: .2rem 1rem .4rem; }
  .user-row.header { display: none; }
  .user-row.header + .user-row { border-top: 0; }
  .user-row { grid-template-columns: 1fr auto; row-gap: .6rem; padding: 1rem 0; }
  .user-invite-cell { justify-self: end; }
  .user-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; padding-left: 2.8rem; color: #85877f; font-size: .64rem; }
  .user-meta-label { display: inline; }
  .user-meta .user-cell + .user-cell::before { content: "·"; margin-right: .9rem; color: #c4c5bf; }
}

/* Admin · invite binding */
button.user-invite { cursor: var(--cursor-pointer); border: 0; transition: transform .16s var(--spring), background .2s; }
@media (hover: hover) and (pointer: fine) { button.user-invite:hover { background: rgba(155,106,61,.17); } }
button.user-invite:active { transform: scale(.95); }
.user-invite.is-missing { gap: .3rem; background: transparent; color: #8a6a47; border: 1px dashed rgba(155,106,61,.45) !important; font-family: inherit; font-weight: 650; letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) { .user-invite.is-missing:hover { background: rgba(155,106,61,.08); } }
.user-invite.is-missing svg { width: .7rem; height: .7rem; stroke-width: 2.4; }
.bind-invite-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .55rem; max-height: 16rem; overflow-y: auto; margin-top: .4rem; padding: .15rem; }
.bind-invite-option { position: relative; cursor: var(--cursor-pointer); }
.bind-invite-option input { position: absolute; opacity: 0; pointer-events: none; }
.bind-invite-option > span { display: grid; gap: .2rem; padding: .75rem .85rem; border-radius: 14px; background: rgba(255,255,255,.75); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, background .2s, transform .16s var(--spring); }
.bind-invite-option code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); overflow-wrap: anywhere; }
.bind-invite-option small { color: #8b8d85; font-size: .6rem; }
.bind-invite-option:active > span { transform: scale(.97); }
.bind-invite-option input:checked + span { background: #fff; border-color: rgba(155,106,61,.6); box-shadow: 0 0 0 3px rgba(155,106,61,.14); }
.bind-invite-option input:focus-visible + span { outline: 2px solid rgba(155,106,61,.6); outline-offset: 2px; }

/* Admin · mobile menu scrim */
.admin-menu-scrim { display: none; }
@media (max-width: 800px) {
  .admin-menu-scrim { display: block; position: fixed; z-index: 65; inset: 0; background: rgba(20,21,18,.32); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .admin-sidebar.is-open + .admin-menu-scrim { opacity: 1; pointer-events: auto; }
}

/* Admin · notifications */
.notice-anchor { position: relative; }
.notification-button b[hidden] { display: none; }
.notice-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + .6rem);
  right: 0;
  width: 22rem;
  max-height: min(32rem, calc(100vh - 7rem));
  max-height: min(32rem, calc(100dvh - 7rem));
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: rgba(250,249,246,.9);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 24px 60px rgba(30,28,22,.18), 0 2px 8px rgba(30,28,22,.06);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  opacity: 0;
  transform: translateY(-6px) scale(.97);
  transform-origin: top right;
  transition: opacity .2s ease, transform .3s var(--spring);
}
.notice-panel.is-open { opacity: 1; transform: none; }
.notice-panel header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem .6rem; }
.notice-panel h3 { margin: 0; font-size: .95rem; font-weight: 700; color: var(--ink); }
.notice-panel .text-button { font-size: .66rem; color: #8a6a47; }
.notice-panel .text-button[hidden] { display: none; }
.notice-list { overflow-y: auto; padding: 0 .5rem .6rem; overscroll-behavior: contain; }
.notice-item { position: relative; width: 100%; display: grid; grid-template-columns: 2.1rem 1fr auto; align-items: start; gap: .7rem; padding: .7rem .6rem; border-radius: 14px; background: transparent; text-align: left; transition: background .18s; }
@media (hover: hover) and (pointer: fine) { .notice-item:hover { background: rgba(28,30,26,.045); } }
.notice-item:active { background: rgba(28,30,26,.07); }
.notice-item.is-unread::after { content: ""; position: absolute; left: .15rem; top: 1.45rem; width: .38rem; height: .38rem; border-radius: 50%; background: #0a84ff; }
.notice-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; }
.notice-icon svg { width: .95rem; height: .95rem; }
.notice-icon.is-pending { color: #8a582e; background: #eee1d2; }
.notice-icon.is-cooking { color: #526b57; background: #dfe9e0; }
.notice-icon.is-done { color: #686a64; background: #e7e7e3; }
.notice-icon.is-cancelled { color: #934b48; background: #f1dfdd; }
.notice-icon.is-user { color: #526c78; background: var(--blue-pale, #dfe7ea); }
.notice-body { min-width: 0; display: grid; gap: .2rem; }
.notice-body b { color: var(--ink); font-size: .74rem; font-weight: 650; }
.notice-item:not(.is-unread) .notice-body b { font-weight: 550; color: #4a4c46; }
.notice-body small { color: #8b8d85; font-size: .64rem; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notice-item time { padding-top: .1rem; color: #a0a29a; font-size: .6rem; white-space: nowrap; }
.notice-empty { display: grid; place-items: center; gap: .5rem; padding: 2.2rem 1rem 2.6rem; color: #9a9c94; font-size: .72rem; }
.notice-empty svg { width: 1.5rem; height: 1.5rem; opacity: .6; }
.notice-empty p { margin: 0; }
@media (max-width: 800px) {
  .notice-panel { position: fixed; top: 5.2rem; left: 1rem; right: 1rem; width: auto; max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem); }
}
@media (prefers-reduced-transparency: reduce) {
  .notice-panel { background: #f8f7f3; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Admin · one-time invite codes */
.invite-row { grid-template-columns: minmax(12rem, 1.5fr) .75fr auto auto; }
.invite-code-cell { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; min-width: 0; }
.invite-usage { display: inline-flex; align-items: center; height: 1.25rem; padding: 0 .45rem; border-radius: 999px; background: rgba(28,30,26,.06); color: #7c7e76 !important; font-size: .56rem; font-weight: 650; }
.invite-usage.is-single { background: rgba(155,106,61,.12); color: #8a5d33 !important; }
.invite-used-by { flex-basis: 100%; color: #9a9c94; font-size: .6rem; }
.invite-single-toggle { margin-top: .6rem; }
@media (max-width: 800px) {
  .invite-row { grid-template-columns: 1fr; gap: .6rem; }
  .invite-actions { justify-content: flex-start; flex-wrap: wrap; }
}
.page-tools .primary-button { flex: none; white-space: nowrap; }

/* Admin · delete user */
.user-row { grid-template-columns: minmax(10rem, 1.6fr) 1fr .6fr .7fr 1fr 2.2rem; }
.user-delete { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; color: #a0a29a; background: transparent; transition: color .2s, background .2s, transform .16s var(--spring); }
.user-delete svg { width: 1rem; height: 1rem; }
@media (hover: hover) and (pointer: fine) { .user-delete:hover { color: #b3413a; background: rgba(179,65,58,.08); } }
.user-delete:active { transform: scale(.9); }
.confirm-dialog { width: min(calc(100% - 2rem), 24rem); text-align: center; }
.confirm-dialog form { display: grid; justify-items: center; }
.confirm-icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: 1rem; border-radius: 50%; color: #c2413a; background: rgba(194,65,58,.1); }
.confirm-icon svg { width: 1.35rem; height: 1.35rem; }
.confirm-dialog h2 { font-size: 1.3rem; overflow-wrap: anywhere; }
.confirm-dialog form > p { margin: .6rem 0 0; }
.confirm-dialog #delete-user-orders { color: #5f615a; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; width: 100%; margin-top: 1.5rem; }
.confirm-actions button { min-height: 2.9rem; border-radius: 14px; font-size: .8rem; font-weight: 650; }
.danger-button { color: #fff; background: #d0433b; transition: background .2s, transform .16s var(--spring); }
@media (hover: hover) and (pointer: fine) { .danger-button:hover { background: #bb3a33; } }
.danger-button:active { transform: scale(.97); }
.danger-button:disabled { opacity: .6; }
@media (max-width: 800px) {
  .user-row { grid-template-columns: 1fr auto; }
  .user-identity { grid-column: 1; grid-row: 1; }
  .user-invite-cell { grid-column: 2; grid-row: 1; }
  .user-meta { grid-column: 1; grid-row: 2; }
  .user-delete { grid-column: 2; grid-row: 2; justify-self: end; width: 1.9rem; height: 1.9rem; margin-top: -.3rem; }
}

/* Delete confirm · Apple-style liquid glass */
#delete-user-dialog::backdrop { background: rgba(18,18,16,.28); backdrop-filter: blur(6px) saturate(120%); -webkit-backdrop-filter: blur(6px) saturate(120%); }
.confirm-dialog {
  position: fixed;
  isolation: isolate;
  overflow: visible;
  padding: 1.7rem 1.4rem 1.3rem;
  border-radius: 30px;
  color: #1c1c1e;
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.38)),
    rgba(246,245,241,.35);
  box-shadow:
    inset 0 0 18px rgba(255,255,255,.35),
    0 30px 80px rgba(0,0,0,.28),
    0 2px 8px rgba(0,0,0,.08);
  backdrop-filter: blur(30px) saturate(190%) brightness(1.04);
  -webkit-backdrop-filter: blur(30px) saturate(190%) brightness(1.04);
}
/* specular rim: light catching the top-left and bottom-right edges */
.confirm-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.35) 25%, rgba(255,255,255,.12) 55%, rgba(255,255,255,.3) 80%, rgba(255,255,255,.8) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.confirm-dialog::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 1px 2px 4px -1px rgba(255,255,255,.9), inset -1px -2px 4px -1px rgba(255,255,255,.4);
}
.confirm-icon {
  position: relative;
  width: 3.3rem;
  height: 3.3rem;
  color: #fff;
  background: #ff3b30;
  box-shadow: 0 6px 18px rgba(255,59,48,.28);
}
.confirm-icon svg { position: relative; z-index: 1; stroke-width: 2; }
.confirm-dialog h2 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.confirm-dialog form > p { color: rgba(60,60,67,.72); font-size: .74rem; line-height: 1.55; }
.confirm-dialog #delete-user-orders { color: rgba(60,60,67,.9); font-weight: 550; }
.confirm-actions { gap: .55rem; margin-top: 1.4rem; }
.confirm-actions button {
  position: relative;
  isolation: isolate;
  min-height: 2.95rem;
  border: 0;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  font-size: .82rem;
  font-weight: 650;
  transition: transform .18s var(--spring), filter .2s, background .2s;
}
.confirm-actions button:active { transform: scale(.96); }
.confirm-actions .soft-button {
  color: #1c1c1e;
  background: rgba(255,255,255,.45);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.9), inset 0 -1px 1px rgba(255,255,255,.35), inset 0 0 0 .5px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.06);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
}
@media (hover: hover) and (pointer: fine) { .confirm-actions .soft-button:hover { background: rgba(255,255,255,.65); } }
.confirm-actions .danger-button {
  color: #fff;
  background: rgba(255,59,48,.92);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 6px 16px rgba(255,59,48,.25);
  text-shadow: 0 .5px 1px rgba(0,0,0,.15);
}
@media (hover: hover) and (pointer: fine) { .confirm-actions .danger-button:hover { filter: brightness(1.06); background: rgba(255,59,48,.92); } }

/* Row delete button: small glass bead */
.user-delete {
  color: #8e8e93;
  background: rgba(255,255,255,.5);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.9), inset 0 0 0 .5px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.05);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
}
@media (hover: hover) and (pointer: fine) { .user-delete:hover { color: #fff; background: linear-gradient(180deg, #ff6358, #e2342b); box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 0 6px 14px rgba(226,52,43,.3); } }
@media (prefers-reduced-transparency: reduce) {
  .confirm-dialog { background: #f7f6f2; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Delete confirm · clear (high-transparency) liquid glass */
#delete-user-dialog::backdrop { background: rgba(10,10,12,.48); backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); }
.confirm-dialog {
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04) 55%, rgba(255,255,255,.08));
  box-shadow:
    inset 0 0 22px rgba(255,255,255,.1),
    0 30px 80px rgba(0,0,0,.3);
  backdrop-filter: blur(7px) saturate(185%) brightness(1.08);
  -webkit-backdrop-filter: blur(7px) saturate(185%) brightness(1.08);
  text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 0 10px rgba(0,0,0,.2);
}
.confirm-dialog::before { background: linear-gradient(135deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.25) 22%, rgba(255,255,255,.06) 50%, rgba(255,255,255,.2) 78%, rgba(255,255,255,.7) 100%); }
.confirm-dialog::after { box-shadow: inset 1px 2px 4px -1px rgba(255,255,255,.55), inset -1px -2px 4px -1px rgba(255,255,255,.25); }
.confirm-dialog h2 { color: #fff; }
.confirm-dialog form > p { color: rgba(255,255,255,.9); }
.confirm-dialog #delete-user-orders { color: #fff; }
.confirm-icon { box-shadow: 0 6px 18px rgba(255,59,48,.35); text-shadow: none; }
.confirm-actions .soft-button {
  color: #fff;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.55), inset 0 -1px 1px rgba(255,255,255,.15), 0 2px 8px rgba(0,0,0,.12);
  border: 0;
}
@media (hover: hover) and (pointer: fine) { .confirm-actions .soft-button:hover { background: rgba(255,255,255,.22); } }
.confirm-actions .danger-button { background: rgba(255,59,48,.78); box-shadow: inset 0 1px 1px rgba(255,255,255,.4), 0 6px 16px rgba(255,59,48,.3); }
@media (hover: hover) and (pointer: fine) { .confirm-actions .danger-button:hover { background: rgba(255,59,48,.88); } }
@media (prefers-reduced-transparency: reduce) {
  .confirm-dialog { background: #2a2a2e; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Delete confirm · clearer glass, warm Enf palette instead of system red */
#delete-user-dialog::backdrop { background: rgba(24,22,18,.5); backdrop-filter: none; -webkit-backdrop-filter: none; }
.confirm-dialog {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.015) 55%, rgba(255,255,255,.05));
  box-shadow: inset 0 0 18px rgba(255,255,255,.07), 0 30px 70px rgba(0,0,0,.25);
  backdrop-filter: blur(2.5px) saturate(160%) brightness(1.06);
  -webkit-backdrop-filter: blur(2.5px) saturate(160%) brightness(1.06);
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 12px rgba(0,0,0,.3);
}
.confirm-dialog h2 { font-family: "Songti SC", "Noto Serif SC", serif; font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; }
.confirm-icon {
  color: #f6ddd6;
  background: rgba(162,77,73,.32);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.4), inset 0 0 0 .5px rgba(255,255,255,.25), 0 6px 16px rgba(0,0,0,.18);
  backdrop-filter: blur(4px) saturate(150%);
  -webkit-backdrop-filter: blur(4px) saturate(150%);
}
.confirm-actions .soft-button { background: rgba(255,255,255,.1); box-shadow: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -1px 1px rgba(255,255,255,.12), inset 0 0 0 .5px rgba(255,255,255,.2); }
@media (hover: hover) and (pointer: fine) { .confirm-actions .soft-button:hover { background: rgba(255,255,255,.18); } }
.confirm-actions .danger-button {
  color: #fff3ef;
  background: rgba(162,77,73,.5);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.38), inset 0 -1px 1px rgba(255,255,255,.1), inset 0 0 0 .5px rgba(255,255,255,.2), 0 6px 16px rgba(0,0,0,.15);
  backdrop-filter: blur(4px) saturate(150%);
  -webkit-backdrop-filter: blur(4px) saturate(150%);
}
@media (hover: hover) and (pointer: fine) { .confirm-actions .danger-button:hover { filter: none; background: rgba(162,77,73,.62); } }
@media (hover: hover) and (pointer: fine) { .user-delete:hover { color: #a24d49; background: rgba(162,77,73,.1); box-shadow: inset 0 1px 1px rgba(255,255,255,.9), inset 0 0 0 .5px rgba(162,77,73,.2); } }

/* Delete confirm · yellow warning mark + prominent red delete */
.confirm-icon {
  width: 3.4rem;
  height: 3.4rem;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: drop-shadow(0 6px 14px rgba(255,204,0,.28));
}
.confirm-icon svg { width: 3.1rem; height: 3.1rem; stroke: none; }
.confirm-icon .warn-fill { fill: #ffcc00; }
.confirm-icon .warn-mark { fill: none; stroke: #3d2e00; stroke-width: 4; stroke-linecap: round; }
.confirm-actions .danger-button {
  color: #fff;
  background: rgba(255,59,48,.85);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.4), inset 0 0 0 .5px rgba(255,255,255,.2), 0 6px 18px rgba(255,59,48,.35);
}
@media (hover: hover) and (pointer: fine) { .confirm-actions .danger-button:hover { background: rgba(255,59,48,.95); } }

/* Delete confirm · compact, site sans-serif */
.confirm-dialog {
  width: min(calc(100% - 3rem), 17.5rem);
  padding: 1.35rem 1.1rem 1rem;
  border-radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
}
.confirm-dialog * { font-family: inherit; }
.confirm-icon { width: 2.3rem; height: 2.3rem; margin-bottom: .7rem; filter: drop-shadow(0 4px 10px rgba(255,204,0,.25)); }
.confirm-icon svg { width: 2.2rem; height: 2.2rem; }
.confirm-dialog h2 { font-size: .98rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.confirm-dialog form > p { margin: .35rem 0 0; font-size: .7rem; line-height: 1.45; color: rgba(255,255,255,.86); }
.confirm-dialog h2 + p { margin-top: .55rem; }
.confirm-actions { gap: .5rem; margin-top: 1.05rem; }
.confirm-actions button { min-height: 2.4rem; font-size: .76rem; font-weight: 600; }
.confirm-dialog h2, .confirm-dialog h2 span { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif; }
/* Match the page heading (“注册用户”) exactly */
.confirm-dialog,
.confirm-dialog h2,
.confirm-dialog h2 span,
.confirm-dialog p,
.confirm-dialog button { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif; }
.confirm-dialog h2 { font-weight: 700; letter-spacing: normal; }

/* Mobile admin menu: fit the visible viewport so “退出登录” isn't hidden behind the browser toolbar */
@media (max-width: 800px) {
  #admin-menu-trigger {
    position: fixed;
    z-index: 72;
    top: auto;
    bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + .8rem));
    left: .65rem;
    width: 2.8rem;
    height: 2.8rem;
    align-content: center;
    border: 1px solid rgba(255,255,255,.2);
    color: #f5f5f7;
    background: rgba(24,24,28,.68);
    box-shadow: inset 0 1px rgba(255,255,255,.2), 0 10px 28px rgba(0,0,0,.28);
    backdrop-filter: blur(14px) saturate(155%);
    -webkit-backdrop-filter: blur(14px) saturate(155%);
    transform: none;
    transition: transform .18s var(--spring), opacity .2s ease, visibility .2s ease;
  }
  #admin-menu-trigger:active { transform: scale(.95); }
  .admin-sidebar.is-open ~ .admin-main #admin-menu-trigger {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .admin-topbar > div:nth-child(2) { margin-left: 0; }
  .admin-sidebar {
    height: auto;
    top: 0;
    bottom: 0;
    padding-bottom: max(2rem, calc(env(safe-area-inset-bottom, 0px) + 1.25rem));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  @supports (height: 100dvh) {
    .admin-sidebar { height: 100dvh; bottom: auto; }
  }
}

/* Shared glass confirm backdrop (invite delete uses the same design as user delete) */
#delete-invite-dialog::backdrop { background: rgba(24,22,18,.5); backdrop-filter: none; -webkit-backdrop-filter: none; }
#delete-dish-dialog::backdrop { background: rgba(24,22,18,.5); backdrop-filter: none; -webkit-backdrop-filter: none; }
#delete-review-dialog::backdrop { background: rgba(24,22,18,.5); backdrop-filter: none; -webkit-backdrop-filter: none; }
.confirm-actions button:focus { outline: none; }
.confirm-actions button:focus-visible { outline: 1.5px solid rgba(255,255,255,.7); outline-offset: 2px; }

/* ---------- Reviews (customer, dark liquid glass) ---------- */
.customer-order-filters { display: flex; align-items: center; gap: .35rem; width: fit-content; max-width: 100%; margin: -0.25rem 0 1rem; padding: .32rem; overflow-x: auto; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.055); box-shadow: inset 0 1px rgba(255,255,255,.09); backdrop-filter: blur(8px) saturate(150%); -webkit-backdrop-filter: blur(8px) saturate(150%); scrollbar-width: none; }
.customer-order-filters::-webkit-scrollbar { display: none; }
.customer-order-filters button { flex: none; min-height: 2.15rem; padding: 0 .8rem; border-radius: 999px; color: #8f8f97; font-size: .66rem; font-weight: 650; white-space: nowrap; transition: color .2s, background .2s, transform .16s var(--spring); }
@media (hover: hover) and (pointer: fine) { .customer-order-filters button:hover { color: #ededf0; } }
@media (hover: hover) and (pointer: fine) { .customer-order-filters button:not(.is-active):hover { color: #fff; background: rgba(255,255,255,.09); } }
.customer-order-filters button:active { transform: scale(.96); }
.customer-order-filters button.is-active { color: #111114; background: #f2f2f5; box-shadow: 0 5px 14px rgba(0,0,0,.2); }
@media (hover: hover) and (pointer: fine) { .customer-order-filters button.is-active:hover { color: #111114; background: #fff; } }
.customer-order-filters span { margin-left: .2rem; opacity: .58; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .review-tabs button:not(.is-active):hover { color: var(--ink); background: rgba(28,30,26,.07); } }
@media (hover: hover) and (pointer: fine) { .review-tabs button.is-active:hover { color: var(--ink); background: #fff; } }
.dish-rating { display: inline-flex; align-items: center; gap: .3rem; margin: -.35rem 0 .75rem; padding: .28rem .6rem .28rem .45rem; border-radius: 999px; color: var(--enf-text, #f5f5f7); background: rgba(255,255,255,.07); box-shadow: inset 0 1px rgba(255,255,255,.12), inset 0 0 0 .5px rgba(255,255,255,.08); font-size: .66rem; transition: background .2s, transform .16s var(--spring); }
@media (hover: hover) and (pointer: fine) { .dish-rating:hover { background: rgba(255,255,255,.12); } }
.dish-rating:active { transform: scale(.96); }
.dish-rating svg { width: .8rem; height: .8rem; fill: #ffcc4d; stroke: none; }
.dish-rating b { font-weight: 700; font-variant-numeric: tabular-nums; }
.dish-rating span { color: var(--enf-muted, #a1a1a8); }
@media (max-width: 800px) { .dish-rating { margin: .45rem 0 0; } }

.customer-order-card aside { display: grid; justify-items: end; gap: .45rem; }
.customer-order-main { min-width: 0; }
.order-dish-thumbnails { display: flex; gap: .48rem; max-width: 100%; margin-top: .78rem; padding-bottom: .08rem; overflow-x: auto; scrollbar-width: none; }
.order-dish-thumbnails::-webkit-scrollbar { display: none; }
.order-dish-thumbnail { position: relative; flex: none; display: grid; place-items: center; width: 3.15rem; height: 3.15rem; overflow: hidden; border-radius: 13px; color: #e9e9ed; background: rgba(255,255,255,.075); box-shadow: inset 0 0 0 1px rgba(255,255,255,.11), 0 7px 20px rgba(0,0,0,.16); }
.order-dish-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.order-dish-thumbnail i { font-size: .8rem; font-style: normal; font-weight: 720; }
.order-dish-thumbnail b { position: absolute; right: .22rem; bottom: .22rem; display: grid; place-items: center; min-width: 1.2rem; height: 1.2rem; padding: 0 .24rem; border-radius: 999px; color: #fff; background: rgba(8,8,10,.72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.17); backdrop-filter: blur(7px); font-size: .52rem; font-variant-numeric: tabular-nums; }
.order-dish-review-list { display: grid; gap: .42rem; margin-top: .85rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.08); }
.order-dish-review-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 2rem; }
.order-dish-review-row > span { display: flex; align-items: baseline; gap: .4rem; min-width: 0; }
.order-dish-review-row b { overflow: hidden; color: #e9e9ed; font-size: .7rem; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.order-dish-review-row small { flex: none; color: #7f7f87; font-size: .6rem; }
.order-feedback-actions { display: grid; grid-template-columns: repeat(2, 5.45rem); align-items: center; justify-content: flex-end; gap: .38rem; }
.order-feedback-actions.is-single { grid-template-columns: minmax(7.4rem, auto); }
.order-feedback-actions.is-single .order-review-button { width: auto; min-width: 7.4rem; padding-inline: .8rem; }
.order-review-button { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; width: 5.45rem; min-height: 2.05rem; padding: .38rem .55rem; border-radius: 999px; color: #111114; background: #f5f5f7; font-size: .68rem; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: transform .16s var(--spring), color .2s, background .2s; }
@media (hover: hover) and (pointer: fine) { .order-review-button:hover { color: #111114; background: #fff; } }
.order-review-button:active { transform: scale(.94); }
.order-review-button.is-view { color: #ffd66b; background: rgba(255,214,107,.1); box-shadow: inset 0 0 0 1px rgba(255,214,107,.2); }
@media (hover: hover) and (pointer: fine) { .order-review-button.is-view:hover { color: #ffe08a; background: rgba(255,214,107,.17); } }
.order-review-button svg { width: .75rem; height: .75rem; fill: currentColor; stroke: none; }
/* Outline = supporting action (聚会记录, 改进 not yet written); neutral tint = private note already written. */
.order-review-button.is-record,
.order-review-button.is-private { color: #e9e9ed; background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
@media (hover: hover) and (pointer: fine) { .order-review-button.is-record:hover, .order-review-button.is-private:hover { color: #fff; background: rgba(255,255,255,.08); } }
.order-review-button.is-record svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.order-review-button.is-private.is-view-private { color: #c9c9cf; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
@media (hover: hover) and (pointer: fine) { .order-review-button.is-private.is-view-private:hover { color: #fff; background: rgba(255,255,255,.12); } }
.order-review-button.is-private.is-view-private svg { fill: none; stroke: currentColor; stroke-width: 2.2; }
.order-feedback-label { margin: .2rem 0 -.05rem; color: #85858d; font-size: .56rem; font-weight: 720; letter-spacing: .1em; }
.order-feedback-pending { display: inline-flex; align-items: center; gap: .38rem; margin-top: .7rem; color: #85858d; font-size: .62rem; }
.order-feedback-pending svg { width: .72rem; height: .72rem; }
.customer-order-card aside .order-reviewed { display: inline-flex; align-items: center; gap: .25rem; margin: 0; color: #ffd66b; font-size: .66rem; font-weight: 650; }
.order-reviewed svg { width: .75rem; height: .75rem; fill: currentColor; stroke: none; }
@media (max-width: 560px) {
  .customer-order-card aside { justify-items: start; }
  .order-dish-review-row { align-items: flex-start; }
  .order-dish-review-row > span { display: grid; gap: .15rem; }
  .order-feedback-actions { grid-template-columns: repeat(2, 5.1rem); }
  .order-review-button { width: 5.1rem; }
}

.glass-sheet {
  width: min(calc(100% - 2rem), 26rem);
  max-height: min(40rem, calc(100dvh - 2rem));
  padding: 0;
  border-radius: 28px;
  color: #f5f5f7;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03) 60%), rgba(22,22,26,.62);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.3), inset 0 0 0 .5px rgba(255,255,255,.14), 0 30px 80px rgba(0,0,0,.5);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
  overflow: hidden;
}
.glass-sheet::backdrop { background: rgba(0,0,0,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.glass-sheet form, .reviews-sheet { display: flex; flex-direction: column; max-height: inherit; padding: 1.4rem 1.3rem 1.2rem; }
.glass-sheet header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.glass-sheet header .eyebrow { margin: 0 0 .3rem; color: #9ebaf0; font-size: .58rem; letter-spacing: .16em; }
.glass-sheet h2 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.sheet-close { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; color: #f5f5f7; background: rgba(255,255,255,.1); box-shadow: inset 0 1px rgba(255,255,255,.2); }
.sheet-close svg { width: .95rem; height: .95rem; }
.glass-sheet .primary-button { width: 100%; margin-top: 1rem; color: #111114; background: #f5f5f7; border-radius: 999px; min-height: 2.9rem; }
.taste-choice-dialog { width: min(calc(100% - 2rem), 23rem); }
.taste-choice-sheet { padding: 1.4rem 1.3rem 1.2rem; }
.taste-choice-options { display: grid; gap: .5rem; }
.taste-choice-options button { display: flex; align-items: center; justify-content: space-between; min-height: 3.2rem; padding: 0 1rem; border-radius: 16px; color: #f3f3f6; background: rgba(255,255,255,.065); box-shadow: inset 0 1px rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.08); font-size: .78rem; font-weight: 680; transition: background .2s, transform .16s var(--spring); }
@media (hover: hover) and (pointer: fine) { .taste-choice-options button:hover { background: rgba(255,255,255,.12); } }
.taste-choice-options button:active { transform: scale(.985); }
.taste-choice-options svg { width: .85rem; height: .85rem; color: #9ebaf0; }

.review-items { display: grid; gap: .7rem; overflow-y: auto; overscroll-behavior: contain; }
.review-item { margin: 0; padding: .9rem .95rem; border: 0; border-radius: 18px; background: rgba(255,255,255,.06); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.review-item legend { float: left; width: 100%; padding: 0; margin-bottom: .55rem; font-size: .82rem; font-weight: 650; }
.review-item legend small { color: #a1a1a8; font-weight: 500; }
.star-picker { clear: both; display: flex; gap: .2rem; margin-bottom: .6rem; }
.star-picker button { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: none; transition: transform .16s var(--spring); }
.star-picker button:active { transform: scale(.85); }
.star-picker svg { width: 1.45rem; height: 1.45rem; fill: rgba(255,255,255,.14); stroke: none; transition: fill .15s; }
.star-picker button.is-on svg { fill: #ffcc4d; filter: drop-shadow(0 0 6px rgba(255,204,77,.35)); }
.review-item textarea { width: 100%; resize: none; padding: .65rem .8rem; border: 0; border-radius: 12px; color: #f5f5f7; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1); font: inherit; font-size: .76rem; outline: none; }
.review-item textarea:focus { box-shadow: inset 0 0 0 1px rgba(158,186,240,.55); }
.review-item textarea::placeholder { color: #7d7d85; }
.improvement-dialog { width: min(calc(100% - 2rem), 29rem); }
.improvement-field { display: grid; gap: .6rem; }
.improvement-field[hidden], .improvement-readback[hidden] { display: none; }
.improvement-field > span { color: #aebbd3; font-size: .64rem; font-weight: 650; }
.improvement-readback-entry header { margin: 0; }
.improvement-readback-entry header > div { display: flex; align-items: baseline; justify-content: space-between; width: 100%; gap: .75rem; }
.improvement-readback-entry header small { color: rgba(240,240,245,.58); font-size: .58rem; font-weight: 550; }
.review-photo-picker { margin-top: .65rem; }
.review-photo-add { display: flex; align-items: center; width: 100%; min-height: 2.7rem; padding: 0 .8rem; border-radius: 13px; color: #e5e5e9; background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 1px rgba(255,255,255,.11); font-size: .7rem; text-align: left; transition: background .2s, transform .16s var(--spring); }
@media (hover: hover) and (pointer: fine) { .review-photo-add:hover { color: #fff; background: rgba(255,255,255,.1); } }
.review-photo-add:active { transform: scale(.985); }
.review-photo-add svg { width: 1rem; height: 1rem; margin-right: .5rem; }
.review-photo-add span { flex: 1; }
.review-photo-add small { color: rgba(240,240,245,.52); font-size: .58rem; }
.review-photo-preview { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1.6; border-radius: 14px; background: #151519; box-shadow: inset 0 0 0 1px rgba(255,255,255,.11); }
.review-photo-preview > img { width: 100%; height: 100%; object-fit: cover; }
.review-photo-preview > button { position: absolute; top: .5rem; right: .5rem; display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; color: #fff; background: rgba(12,12,15,.66); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 4px 12px rgba(0,0,0,.25); backdrop-filter: blur(8px); }
.review-photo-preview > button svg { width: .75rem; height: .75rem; }

.reviews-summary { display: flex; align-items: center; gap: .35rem; margin: .4rem 0 0; color: #a1a1a8; font-size: .72rem; }
.reviews-summary b { color: #f5f5f7; }
.glass-sheet .stars { color: #ffcc4d; letter-spacing: .08em; font-size: .78rem; }
.reviews-list { display: grid; gap: .15rem; overflow-y: auto; overscroll-behavior: contain; margin: 0 -.3rem; padding: 0 .3rem; }
.review-entry { display: grid; grid-template-columns: 2.1rem 1fr; gap: .75rem; padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.07); }
.review-entry:first-child { border-top: 0; }
.review-avatar { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; color: #111114; background: linear-gradient(160deg, #fff, #d9d9e0); font-size: .72rem; font-weight: 750; }
.review-entry header { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin: 0 0 .15rem; }
.review-entry header b { font-size: .8rem; }
.review-entry time { color: #8e8e96; font-size: .62rem; white-space: nowrap; }
.review-entry p { margin: .35rem 0 0; color: #d9d9de; font-size: .76rem; line-height: 1.55; overflow-wrap: anywhere; }
.review-entry p.is-empty { color: #7d7d85; }
.review-photo-link,
.order-review-photo { position: relative; display: block; width: 100%; margin-top: .65rem; padding: 0; overflow: hidden; border: 0; border-radius: 13px; background: #151519; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); cursor: var(--cursor-pointer); text-align: left; }
.review-photo-link img,
.order-review-photo img { display: block; width: 100%; max-height: 18rem; object-fit: cover; transition: transform .2s var(--spring); }
@media (hover: hover) and (pointer: fine) { .review-photo-link:hover img, .order-review-photo:hover img { transform: scale(1.015); } }
.review-image-dialog { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: clamp(1.25rem, 5vw, 4rem); overflow: hidden; border: 0; color: #fff; background: radial-gradient(circle at 50% 44%, rgba(45,45,52,.38), transparent 48%), rgba(3,3,5,.88); cursor: var(--cursor-default); }
.review-image-dialog[open] { display: grid; place-items: center; }
.review-image-dialog::backdrop { background: rgba(3,3,5,.9); backdrop-filter: blur(8px) saturate(110%); -webkit-backdrop-filter: blur(8px) saturate(110%); }
.review-image-frame { position: relative; display: grid; width: fit-content; max-width: min(88vw, 62rem); margin: 0; place-items: center; cursor: var(--cursor-default); }
.review-image-frame img { display: block; max-width: min(88vw, 62rem); max-height: 76dvh; border-radius: 18px; object-fit: contain; box-shadow: 0 30px 75px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.16); }
.review-image-frame figcaption { position: absolute; left: 50%; bottom: .75rem; max-width: calc(100% - 7rem); padding: .48rem .72rem; overflow: hidden; border-radius: 999px; color: rgba(255,255,255,.9); background: rgba(13,13,16,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; transform: translateX(-50%); }
.review-image-close { position: absolute; z-index: 2; top: .75rem; right: .75rem; display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: 50%; color: #fff; background: rgba(12,12,15,.58); box-shadow: inset 0 0 0 1px rgba(255,255,255,.17), 0 8px 24px rgba(0,0,0,.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.review-image-close svg { width: .92rem; height: .92rem; }
.order-review-list { display: grid; gap: .55rem; overflow-y: auto; overscroll-behavior: contain; }
.order-review-entry { padding: .9rem .95rem; border-radius: 17px; background: rgba(255,255,255,.055); box-shadow: inset 0 1px rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.08); }
.order-review-entry header { align-items: center; margin: 0; }
.order-review-entry header > div { display: grid; gap: .28rem; }
.order-review-entry strong { font-size: .82rem; }
.order-review-entry p { margin: .48rem 0 0; color: #efeff2; font-size: .75rem; line-height: 1.55; }
.order-review-entry p.is-empty { color: rgba(240,240,245,.58); }
.review-entry-actions { display: flex; align-items: center; gap: .38rem; }
.review-item-edit,
.review-item-delete { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; transition: background .2s, transform .16s var(--spring); }
.review-item-edit { color: #afc9ff; background: rgba(84,134,225,.1); box-shadow: inset 0 0 0 1px rgba(126,167,240,.18); }
@media (hover: hover) and (pointer: fine) { .review-item-edit:hover { color: #d2e0ff; background: rgba(84,134,225,.2); } }
.review-item-edit:active { transform: scale(.9); }
.review-item-edit svg { width: .82rem; height: .82rem; }
.review-item-delete { color: #ff8a82; background: rgba(255,69,58,.08); box-shadow: inset 0 0 0 1px rgba(255,92,82,.15); }
@media (hover: hover) and (pointer: fine) { .review-item-delete:hover { color: #ff9d96; background: rgba(255,69,58,.16); } }
.review-item-delete:active { transform: scale(.9); }
.review-item-delete svg { width: .88rem; height: .88rem; }

@media (max-width: 560px) {
  .customer-order-filters { width: 100%; border-radius: 18px; }
}

/* 我的 · sound switch */
.mini-switch { position: relative; flex: none; width: 2.6rem; height: 1.55rem; border-radius: 999px; background: rgba(255,255,255,.16); transition: background .25s; }
.mini-switch::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .3s var(--spring); }
#sound-toggle.is-on .mini-switch, #haptic-toggle.is-on .mini-switch { background: #34c759; }
#sound-toggle.is-on .mini-switch::after, #haptic-toggle.is-on .mini-switch::after { transform: translateX(1.05rem); }
.dish-rating { align-self: flex-start; justify-self: start; width: fit-content; }

/* Secondary sheets · thicker frosted glass than the bars: a large surface holding text and inputs
   needs a heavy blur and a dark tint so busy content behind it can't compete with what you type. */
.glass-sheet {
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.02) 42%),
    rgba(20,20,24,.72);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 1px 0 0 rgba(255,255,255,.07),
    inset 0 -1px 0 rgba(255,255,255,.045),
    0 30px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  text-shadow: none;
}
.glass-sheet::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 14% -22%, rgba(255,255,255,.1), transparent 35%),
    linear-gradient(112deg, transparent 24%, rgba(255,255,255,.018) 44%, transparent 63%);
  opacity: .38;
  mix-blend-mode: screen;
}
.glass-sheet::backdrop { background: rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* Typed text sits on a solid layer, not on the glass itself. */
.glass-sheet :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select) { color: #fff; text-shadow: none; caret-color: #9ebaf0; }
.glass-sheet :is(input, textarea)::placeholder { color: rgba(240,240,245,.45); }
.glass-sheet .table-code-field,
.review-item textarea { background: rgba(0,0,0,.42); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.glass-sheet .table-code-field:focus-within,
.review-item textarea:focus { box-shadow: inset 0 0 0 1px rgba(158,186,240,.55); }
.glass-sheet .sheet-close { background: transparent; box-shadow: inset 0 1px rgba(255,255,255,.3), inset 0 0 0 1px rgba(255,255,255,.18); backdrop-filter: blur(2px) saturate(150%); -webkit-backdrop-filter: blur(2px) saturate(150%); }
.glass-sheet .sheet-close svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.review-item { background: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.26), inset 0 0 0 1px rgba(255,255,255,.14); backdrop-filter: blur(2px) saturate(150%); -webkit-backdrop-filter: blur(2px) saturate(150%); }
.review-entry { border-top-color: rgba(255,255,255,.16); }
.review-entry time, .reviews-summary, .review-item legend small { color: rgba(240,240,245,.8); }
.review-entry p { color: #f2f2f5; }
.review-entry p.is-empty { color: rgba(240,240,245,.62); }
.review-avatar, .glass-sheet .primary-button { text-shadow: none; }
.star-picker svg { fill: rgba(255,255,255,.22); filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.glass-sheet .stars { text-shadow: 0 1px 2px rgba(0,0,0,.6); }
@media (hover: hover) and (pointer: fine) { .glass-sheet .primary-button:hover { color: #111114; background: #fff; } }
.dish-rating { background: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.26), inset 0 0 0 1px rgba(255,255,255,.16); backdrop-filter: blur(3px) saturate(155%) brightness(1.045); -webkit-backdrop-filter: blur(3px) saturate(155%) brightness(1.045); }
@media (prefers-reduced-transparency: reduce) {
  .glass-sheet { background: #1c1c20; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Dish recipes and growth */
.dish-card-links { display: flex; align-items: center; justify-content: space-between; gap: .55rem; min-height: 2.1rem; margin: -.2rem 0 .65rem; }
.dish-card-links .dish-rating { margin: 0; }
.dish-recipe-link { display: inline-flex; align-items: center; gap: .25rem; min-height: 1.9rem; padding: 0 .62rem; border-radius: 999px; color: #d9d9df; background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 1px rgba(255,255,255,.11); font-size: .62rem; font-weight: 650; white-space: nowrap; transition: background .2s, transform .16s var(--spring); }
@media (hover: hover) and (pointer: fine) { .dish-recipe-link:hover { color: #fff; background: rgba(255,255,255,.11); } }
.dish-recipe-link:active { transform: scale(.95); }
.dish-recipe-link svg { width: .68rem; height: .68rem; }
/* Keep 配方 in the same right-hand spot whether or not the dish has a rating yet. */
.dish-card-links .dish-recipe-link { margin-left: auto; }
/* Pin the rating/配方 row to the bottom of the card so titles or descriptions of different heights can't shift it. */
.dish-card-links { margin-top: auto; }
.dish-card-links + .dish-footer { margin-top: 0; }
.dish-recipe-field > span { display: flex; align-items: baseline; justify-content: space-between; }
.dish-recipe-field > span small { color: #92948c; font-size: .58rem; font-weight: 550; }
.dish-recipe-field textarea { min-height: 8rem; }

.recipe-dialog { width: min(calc(100% - 2rem), 38rem); }
.recipe-sheet { display: flex; flex-direction: column; max-height: inherit; padding: 1.25rem; overflow-y: auto; }
.recipe-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .9rem; }
.recipe-tags span { padding: .35rem .58rem; border-radius: 999px; color: #e9e9ed; background: rgba(255,255,255,.075); box-shadow: inset 0 0 0 1px rgba(255,255,255,.11); font-size: .58rem; font-weight: 650; }
.recipe-description { margin: .85rem 0 0; color: rgba(242,242,247,.72); font-size: .72rem; line-height: 1.65; }
.recipe-copy { margin-top: 1rem; padding: 1rem; border-radius: 18px; background: rgba(5,5,8,.2); box-shadow: inset 0 1px rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.08); }
.recipe-copy > span { color: #9ebaf0; font-size: .54rem; font-weight: 720; letter-spacing: .14em; }
.recipe-copy p { margin: .65rem 0 0; color: #f2f2f5; font-size: .78rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }

.admin-dish-bottom { align-items: flex-start; gap: .55rem; }
.dish-admin-actions { flex-wrap: wrap; justify-content: flex-end; }
.dish-growth-dialog { width: min(calc(100% - 2rem), 52rem); max-height: min(48rem, calc(100dvh - 2rem)); overflow: hidden; }
.dish-growth-dialog[open] { display: flex; flex-direction: column; }
.dish-growth-dialog > header { flex: none; }
.dish-growth-dialog header > div > p:last-child { margin: .4rem 0 0; color: #85877f; font-size: .65rem; }
.dish-growth-list { display: grid; gap: .85rem; min-height: 10rem; overflow-y: auto; overscroll-behavior: contain; padding: .05rem .25rem .1rem .05rem; }
.dish-growth-entry { position: relative; padding: 1rem; border: 1px solid rgba(28,30,26,.08); border-radius: 19px; background: rgba(255,255,255,.58); box-shadow: 0 8px 24px rgba(30,32,28,.035); }
.dish-growth-entry.is-current { border-color: rgba(149,101,63,.28); box-shadow: inset 3px 0 #9b6a3d, 0 8px 24px rgba(30,32,28,.04); }
.growth-version-line { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.growth-version-line > span { display: grid; place-items: center; min-width: 2.15rem; height: 1.55rem; padding: 0 .45rem; border-radius: 999px; color: #fff; background: #272822; font-size: .6rem; font-weight: 750; letter-spacing: .04em; }
.growth-version-line > b { padding: .3rem .5rem; border-radius: 999px; color: #6f4d31; background: rgba(149,101,63,.1); font-size: .56rem; }
.growth-version-line time { margin-left: auto; color: #999b94; font-size: .58rem; }
.growth-content { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; }
.growth-content > img { width: 100%; aspect-ratio: 1.2; border-radius: 14px; object-fit: cover; background: #e7e4dd; }
.growth-content h3, .growth-content p { margin: 0; }
.growth-content h3 { font-size: .88rem; }
.growth-description { margin-top: .35rem !important; color: #85877f; font-size: .66rem; line-height: 1.55; }
.growth-recipe { margin-top: .75rem; padding: .72rem .78rem; border-radius: 12px; background: rgba(28,30,26,.045); }
.growth-recipe > span { color: #8a6a4e; font-size: .56rem; font-weight: 700; }
.growth-recipe p { margin-top: .35rem; color: #4e504a; font-size: .68rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.growth-rating, .growth-no-rating { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; color: #96988f; font-size: .6rem; }
.growth-rating b { color: #bb8434; letter-spacing: .06em; }
.growth-rating strong { color: #4c4e48; font-size: .68rem; }
.growth-rating small { color: #96988f; }
.growth-loading { display: grid; place-items: center; min-height: 12rem; border: 1px dashed rgba(28,30,26,.13); border-radius: 18px; color: #85877f; font-size: .7rem; text-align: center; }
.growth-loading.is-error { color: #a24d49; }

@media (max-width: 700px) {
  .dish-card-links { align-items: flex-start; flex-direction: column; min-height: 0; margin: .45rem 0 0; }
  .dish-recipe-link { min-height: 1.8rem; padding-inline: .55rem; }
  .dish-card-links .dish-recipe-link { margin-left: 0; }
  .dish-card-links + .dish-footer { margin-top: auto; }
  .recipe-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .recipe-sheet { padding: 1rem; }
  .dish-growth-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); padding: 1.15rem; }
  .growth-content { grid-template-columns: 1fr; }
  .growth-content > img { aspect-ratio: 1.65; }
}

/* The taste sheet is roomier than the review sheet. Kept last so the shared glass defaults cannot shrink it. */
.glass-sheet.taste-profile-dialog { width: min(calc(100% - 1.5rem), 34rem); max-height: min(46rem, calc(100dvh - 1.5rem)); overflow-y: auto; }
@media (max-width: 560px) {
  .glass-sheet.taste-profile-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
}

/* Keep iOS from zooming the page when a friend writes an improvement note. */
@media (max-width: 800px) {
  .glass-sheet.improvement-dialog .improvement-field textarea { font-size: 16px; }
}

/* ---------- Table memories, order again, and occasion menus ---------- */
.customer-view[data-special-theme="birthday"] {
  background:
    radial-gradient(ellipse 64% 35% at 51% 8%, rgba(184, 85, 116, .24), transparent 72%),
    radial-gradient(ellipse 34% 27% at 12% 36%, rgba(105, 67, 119, .19), transparent 78%),
    radial-gradient(ellipse 30% 26% at 91% 58%, rgba(211, 133, 104, .14), transparent 78%),
    var(--enf-bg);
}
.customer-view[data-special-theme="holiday"] {
  background:
    radial-gradient(ellipse 64% 35% at 51% 8%, rgba(176, 124, 54, .24), transparent 72%),
    radial-gradient(ellipse 34% 27% at 12% 36%, rgba(100, 83, 48, .18), transparent 78%),
    radial-gradient(ellipse 30% 26% at 91% 58%, rgba(139, 67, 48, .15), transparent 78%),
    var(--enf-bg);
}
.customer-view[data-special-theme="visit"] {
  background:
    radial-gradient(ellipse 64% 35% at 51% 8%, rgba(76, 112, 162, .25), transparent 72%),
    radial-gradient(ellipse 34% 27% at 12% 36%, rgba(52, 103, 106, .17), transparent 78%),
    radial-gradient(ellipse 30% 26% at 91% 58%, rgba(95, 74, 126, .14), transparent 78%),
    var(--enf-bg);
}
.customer-view[data-special-theme="birthday"] .menu-hero::before { background-image: linear-gradient(112deg, #32232c 5%, #d9a8ba 24%, #f0b995 38%, #50303c 57%, #f0d4dc 72%, #3d2732 94%); }
.customer-view[data-special-theme="holiday"] .menu-hero::before { background-image: linear-gradient(112deg, #30281d 5%, #d5b679 24%, #fff0c7 38%, #55452e 57%, #efd7a5 72%, #30261d 94%); }
.customer-view[data-special-theme="visit"] .menu-hero::before { background-image: linear-gradient(112deg, #1c2935 5%, #9ec7d3 24%, #d7e6e7 38%, #30424d 57%, #b9d9df 72%, #202a37 94%); }
.special-menu-banner {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 4vw, 4rem);
  bottom: clamp(2.4rem, 5vw, 4.5rem);
  display: grid;
  width: min(20rem, 32vw);
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 21px;
  text-align: left;
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.22), 0 18px 48px rgba(0,0,0,.23);
  backdrop-filter: blur(12px) saturate(155%);
  -webkit-backdrop-filter: blur(12px) saturate(155%);
}
.special-menu-banner[hidden] { display: none; }
/* Each 限定 tints its banner with the colours already used for its ENF wordmark. */
.customer-view[data-special-theme="birthday"] { --special-accent: #f0b4c8; --special-accent-rgb: 240, 180, 200; }
.customer-view[data-special-theme="holiday"] { --special-accent: #ecd39a; --special-accent-rgb: 236, 211, 154; }
.customer-view[data-special-theme="visit"] { --special-accent: #a9d3df; --special-accent-rgb: 169, 211, 223; }
.customer-view:not([data-special-theme=""]) .special-menu-banner {
  border-color: rgba(var(--special-accent-rgb), .34);
  background: linear-gradient(145deg, rgba(var(--special-accent-rgb), .2), rgba(var(--special-accent-rgb), .04) 70%);
  box-shadow: inset 0 1px rgba(var(--special-accent-rgb), .38), 0 18px 48px rgba(0,0,0,.23);
}
.customer-view:not([data-special-theme=""]) .special-menu-banner p { color: var(--special-accent); }
.customer-view:not([data-special-theme=""]) .special-menu-title-line span { color: var(--special-accent); border-color: rgba(var(--special-accent-rgb), .4); background: rgba(var(--special-accent-rgb), .1); }
.special-menu-banner p,
.special-menu-banner strong,
.special-menu-banner span { margin: 0; }
.special-menu-banner p { color: #d5def0; font-size: .52rem; font-weight: 760; letter-spacing: .16em; }
.special-menu-title-line { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .48rem; }
.special-menu-banner strong { color: #fff; font-size: 1.05rem; letter-spacing: -.025em; }
.special-menu-title-line span { flex: none; padding: .35rem .55rem; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: rgba(245,245,247,.78); background: rgba(255,255,255,.07); font-size: .58rem; font-weight: 650; }

.special-menu-settings { display: grid; gap: 1rem; margin-top: 1rem; padding: 1.1rem; border: 1px solid rgba(28,30,26,.08); border-radius: 20px; background: rgba(255,255,255,.48); transition: border-color .2s, box-shadow .2s; }
.special-menu-settings.is-enabled { border-color: rgba(119,85,64,.24); box-shadow: inset 3px 0 #9a6945; }
.special-menu-settings > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.special-menu-settings > header div { display: grid; gap: .22rem; }
.special-menu-settings > header b { font-size: .82rem; }
.special-menu-settings > header small { color: #85877f; font-size: .62rem; line-height: 1.5; }
.special-menu-settings > header > input { position: relative; flex: none; appearance: none; width: 2.75rem; height: 1.6rem; border: 0; border-radius: 999px; background: #d6d6d1; transition: background .2s; }
.special-menu-settings > header > input::after { content: ""; position: absolute; top: .18rem; left: .18rem; width: 1.24rem; height: 1.24rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.18); transition: transform .25s var(--spring); }
.special-menu-settings > header > input:checked { background: #282922; }
.special-menu-settings > header > input:checked::after { transform: translateX(1.15rem); }
.special-occasion-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin: 0; padding: 0; border: 0; }
.special-occasion-options legend,
.special-menu-picker > span { grid-column: 1 / -1; margin-bottom: .15rem; color: #71736c; font-size: .62rem; font-weight: 650; }
.special-occasion-options label { cursor: var(--cursor-pointer); }
.special-occasion-options input { position: absolute; opacity: 0; pointer-events: none; }
.special-occasion-options label > span { display: grid; gap: .18rem; min-height: 5.2rem; padding: .75rem; border: 1px solid rgba(28,30,26,.09); border-radius: 15px; background: rgba(255,255,255,.58); transition: border-color .2s, background .2s, transform .16s; }
@media (hover: hover) and (pointer: fine) { .special-occasion-options label:hover > span { transform: translateY(-1px); } }
.special-occasion-options label i { font-style: normal; }
.special-occasion-options label b { font-size: .72rem; }
.special-occasion-options label small { color: #999b94; font-size: .56rem; }
.special-occasion-options input:checked + span { border-color: #2d2e28; background: #fff; box-shadow: inset 0 0 0 1px #2d2e28; }
.special-menu-settings:not(.is-enabled) .special-occasion-options { opacity: .78; }
.special-menu-picker { display: grid; gap: .5rem; }
.special-menu-dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.special-dish-option { min-width: 0; cursor: var(--cursor-pointer); }
.special-dish-option > input { position: absolute; opacity: 0; pointer-events: none; }
.special-dish-option > span { display: grid; grid-template-columns: 2.65rem 1fr; align-items: center; gap: .65rem; min-width: 0; padding: .5rem; border: 1px solid rgba(28,30,26,.08); border-radius: 14px; background: rgba(255,255,255,.55); transition: border-color .2s, box-shadow .2s; }
.special-dish-option img { width: 2.65rem; height: 2.65rem; border-radius: 10px; object-fit: cover; background: #ece9e2; }
.special-dish-option i { display: grid; min-width: 0; gap: .18rem; font-style: normal; }
.special-dish-option b { overflow: hidden; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.special-dish-option small { color: #96988f; font-size: .55rem; }
.special-dish-option input:checked + span { border-color: #34352f; box-shadow: inset 0 0 0 1px #34352f; }
.special-dish-option.is-unavailable { opacity: .55; }
.special-menu-empty { grid-column: 1 / -1; margin: 0; padding: .8rem; border: 1px dashed rgba(28,30,26,.14); border-radius: 12px; color: #85877f; font-size: .62rem; text-align: center; }

.order-history-actions { display: flex; justify-content: flex-end; gap: .38rem; margin-top: .15rem; }
.order-history-actions button { display: inline-flex; align-items: center; gap: .3rem; min-height: 2rem; padding: 0 .7rem; border-radius: 999px; color: #d8d8de; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); font-size: .61rem; font-weight: 680; white-space: nowrap; transition: background .2s, transform .16s var(--spring); }
@media (hover: hover) and (pointer: fine) { .order-history-actions button:hover { color: #fff; background: rgba(255,255,255,.12); } }
.order-history-actions button:active { transform: scale(.95); }
.order-history-actions button.is-primary { color: #141416; background: #f5f5f7; box-shadow: 0 5px 14px rgba(0,0,0,.22); }
@media (hover: hover) and (pointer: fine) { .order-history-actions button.is-primary:hover { color: #111; background: #fff; } }
.order-history-actions button.is-primary { min-width: 5.4rem; min-height: 2.25rem; padding-inline: .85rem; }
.order-history-actions button.is-memory { min-width: 4.8rem; min-height: 2.25rem; color: #ffd66b; background: rgba(255,214,107,.1); box-shadow: inset 0 0 0 1px rgba(255,214,107,.22); }
@media (hover: hover) and (pointer: fine) { .order-history-actions button.is-memory:hover { color: #ffe08a; background: rgba(255,214,107,.17); } }
.order-history-actions svg { width: .72rem; height: .72rem; }

.reorder-dialog { width: min(calc(100% - 1.5rem), 32rem); }
.table-review-dialog { width: min(calc(100% - 1.5rem), 30rem); }
.table-review-dialog form { display: flex; flex-direction: column; max-height: inherit; padding: 1.2rem; }
.table-review-dialog form > .primary-button { flex: none; width: 100%; margin-top: .8rem; }
.table-review-item { overflow-y: auto; overscroll-behavior: contain; }
.table-review-item > legend { padding-bottom: .15rem; }
.order-table-review .order-dish-review-row > span { align-items: center; }
.order-table-review .order-dish-review-row > span small { color: #9ebaf0; }
.reorder-dialog form,
.reorder-dialog form > header,
.reorder-dialog form > .primary-button { flex: none; width: 100%; margin-top: .8rem; }
.reorder-items { display: grid; gap: .55rem; min-height: 5rem; overflow-y: auto; overscroll-behavior: contain; }
.reorder-item { display: grid; grid-template-columns: 1.5rem 3.35rem minmax(0,1fr); align-items: center; gap: .7rem; padding: .55rem; border-radius: 16px; background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); cursor: var(--cursor-pointer); }
.reorder-item > input { position: absolute; opacity: 0; pointer-events: none; }
.reorder-check { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; color: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.26); }
.reorder-check svg { width: .72rem; height: .72rem; }
.reorder-item > input:checked + .reorder-check { color: #131316; background: #f5f5f7; box-shadow: none; }
.reorder-item > img,
.reorder-item > i { width: 3.35rem; height: 3.35rem; border-radius: 12px; object-fit: cover; background: rgba(255,255,255,.08); }
.reorder-item > i { display: grid; place-items: center; font-style: normal; font-weight: 720; }
.reorder-item > span:last-child { display: grid; min-width: 0; gap: .28rem; }
.reorder-item b { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.reorder-item small { color: rgba(240,240,245,.58); font-size: .6rem; }
.reorder-item.is-unavailable { opacity: .42; cursor: not-allowed; }


@media (max-width: 700px) {
  .special-menu-banner { right: 1rem; bottom: 1.4rem; left: 1rem; width: auto; }
  .special-menu-dishes { grid-template-columns: 1fr; }
  .special-occasion-options { gap: .38rem; }
  .special-occasion-options label > span { min-height: 4.75rem; padding: .6rem; }
  .customer-order-card aside { grid-column: 2; display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; }
  .customer-order-card aside strong { font-size: .94rem; }
  .order-history-actions { justify-content: flex-end; flex-wrap: wrap; margin: 0; }
}

/* Preparation keeps the cooking totals and each friend's order visible together. */
.preparation-tools { align-items: flex-end; flex-wrap: wrap; }
.preparation-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .65rem; }
.preparation-controls .field { margin: 0; min-width: 9rem; }
.preparation-controls .preparation-date-field { flex: 0 1 10.5rem; min-width: 0; }
.preparation-date-field input { width: 100%; min-width: 0; }
.preparation-controls #preparation-today { flex: none; padding-inline: 1rem; }
.preparation-controls .field input, .preparation-controls .field select { min-height: 2.85rem; height: 2.85rem; }
.preparation-controls .soft-button { min-height: 2.85rem; }
.preparation-summary { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: .75rem; line-height: 1.8; }
.preparation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.25rem; align-items: start; }
.preparation-panel { min-width: 0; padding: 1.35rem; }
.preparation-panel .panel-heading { padding: 0 0 1rem; }
.preparation-dish-details > summary,
#preparation-source-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: var(--cursor-pointer); list-style: none; font-size: .95rem; font-weight: 760; }
.preparation-dish-details > summary::-webkit-details-marker,
#preparation-source-details > summary::-webkit-details-marker { display: none; }
.preparation-dish-details > summary::after,
#preparation-source-details > summary::after { content: ""; flex: none; width: .42rem; height: .42rem; margin-left: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; opacity: .5; transform: translateY(-.12rem) rotate(45deg); transition: transform .22s var(--spring); }
.preparation-dish-details[open] > summary::after,
#preparation-source-details[open] > summary::after { transform: translateY(.1rem) rotate(225deg); }
.preparation-details-content { margin-top: 1rem; transform-origin: top center; }
.preparation-details-content > p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .75rem; line-height: 1.7; }
.preparation-dish, .preparation-order { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.preparation-dish > header, .preparation-order > header { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.preparation-dish h3, .preparation-order h3 { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.preparation-dish header > div > small { display: block; margin-top: .4rem; color: var(--ink-soft); font-size: .65rem; }
.preparation-dish header > b { flex: none; color: var(--accent-dark); font-size: 1.65rem; font-variant-numeric: tabular-nums; line-height: 1; }
.preparation-dish header > b > small { margin-left: .3rem; font-size: .65rem; font-weight: 500; }
.preparation-tastes { display: grid; gap: .55rem; margin-top: .85rem; }
.preparation-taste { padding: .8rem; border-radius: 12px; background: rgba(149,101,63,.065); }
.preparation-taste > div:first-child { display: flex; justify-content: space-between; gap: .8rem; font-size: .75rem; }
.preparation-dish.is-cancelled > header h3 { color: #8d8f88; text-decoration: line-through; text-decoration-thickness: 1px; }
.preparation-dish.is-cancelled > header > b { color: #9a9c95; }
.preparation-taste.is-cancelled { background: rgba(163,67,62,.045); }
.preparation-taste.is-cancelled > div:first-child { color: #8f645f; }
.preparation-sources { display: grid; gap: .45rem; margin-top: .55rem; }
.preparation-source { display: grid; grid-template-columns: minmax(0, 1fr) 6.8rem; align-items: center; gap: .55rem; }
.preparation-source.is-cancelled .preparation-source-link { color: #98635d; background: #fff5f3; text-decoration: line-through; text-decoration-thickness: 1px; }
.preparation-source-link { min-width: 0; padding: .48rem .58rem; border-radius: 9px; background: rgba(255,255,255,.75); color: var(--ink-soft); font-size: .66rem; text-align: left; overflow-wrap: anywhere; }
.preparation-source-link span,
.preparation-source-link small { display: block; }
.preparation-source-link small { margin-top: .2rem; color: #777970; font-size: .57rem; }
@media (hover: hover) and (pointer: fine) { .preparation-source-link:hover { background: #fff; color: var(--accent-dark); } }
.preparation-source > .status-picker { max-width: none; }
.preparation-source > .item-status-picker { width: 6.8rem; }
.preparation-source .status-trigger { min-height: 2.55rem; }
.item-status-picker .status-trigger.pending { color: #8a582e; background: #fbf6ef; border-color: rgba(138,88,46,.16); }
.item-status-picker .status-trigger.cooking { color: #526b57; background: #f3f8f3; border-color: rgba(82,107,87,.16); }
.item-status-picker .status-trigger.done { color: #686a64; background: #f5f5f2; border-color: rgba(104,106,100,.14); }
.preparation-source .category-menu.status-menu { right: 0; left: auto; }
.preparation-order { scroll-margin: 6rem; }
.preparation-order:focus { outline: 2px solid var(--accent); outline-offset: .35rem; border-radius: 10px; }
.preparation-order header p { margin: .4rem 0 0; color: var(--ink-soft); font-size: .7rem; line-height: 1.6; overflow-wrap: anywhere; }
.preparation-order .status-pill { flex: none; }
.preparation-order-date { margin: .65rem 0; color: var(--ink-soft); font-size: .65rem; line-height: 1.6; }
.preparation-order-items, .preparation-order-items ul { margin: 0; padding: 0; list-style: none; }
.preparation-order-items > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem; padding: .65rem 0; border-bottom: 1px dashed var(--line); }
.preparation-order-items > li > div b { display: block; font-size: .78rem; line-height: 1.6; overflow-wrap: anywhere; }
.preparation-order-items > li > div small { display: block; margin-top: .2rem; color: var(--ink-soft); font-size: .63rem; }
.preparation-order-items ul li { display: flex; justify-content: space-between; align-items: baseline; gap: .65rem; padding: .2rem 0; color: var(--ink-soft); font-size: .69rem; line-height: 1.6; }
.preparation-order-items ul span { overflow-wrap: anywhere; }
.preparation-order-items ul strong { flex: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.preparation-dietary { margin-bottom: 1.25rem; padding: 1.2rem 1.35rem; border-color: rgba(165,73,67,.25); background: #fff9f5; }
.preparation-dietary-standalone { margin: 0 0 1.25rem; }
.preparation-dietary h2 { margin: 0; color: #8d3732; font-size: 1rem; }
.preparation-dietary header > p { margin: .4rem 0 1rem; color: var(--ink-soft); font-size: .7rem; line-height: 1.7; }
.preparation-dietary-orders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.preparation-order-link { display: inline-flex; align-items: center; gap: .4rem; padding: 0; background: none; color: var(--accent-dark); font-size: .7rem; font-weight: 700; }
.preparation-order-link svg { width: .8rem; height: .8rem; }
.preparation-friend { display: grid; grid-template-columns: minmax(3rem, auto) minmax(0, 1fr); gap: .55rem; align-items: baseline; margin-top: .65rem; }
.preparation-friend > b { max-width: 10rem; font-size: .7rem; overflow-wrap: anywhere; }
.preparation-friend > div { display: flex; flex-wrap: wrap; gap: .35rem; }
.preparation-allergy, .preparation-avoid { padding: .4rem .55rem; border-radius: 8px; font-size: .7rem; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.preparation-allergy { background: #f6dedb; color: #8d302b; border-left: 3px solid #a54943; }
.preparation-avoid { background: #efe4d6; color: #795435; }
.preparation-allergy strong, .preparation-avoid strong { margin-right: .5rem; }
.preparation-order-note { margin-top: .8rem; padding: .7rem .8rem; border-radius: 10px; background: rgba(73,106,87,.065); }
.preparation-order-note > b { font-size: .65rem; color: var(--green); }
.preparation-order-note > p { margin: .35rem 0 0; font-size: .75rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.preparation-empty { padding: 2.5rem .5rem; text-align: center; }
.preparation-empty h3 { margin: 0 0 .6rem; font-size: .9rem; }
.preparation-empty p { margin: 0; color: var(--ink-soft); font-size: .72rem; line-height: 1.8; }
.order-dishes-detail ul { list-style: none; margin: 0; padding: 0; }
.order-dishes-detail li { display: flex; align-items: flex-start; justify-content: space-between; gap: .55rem; }
.order-dishes-detail li + li { margin-top: .5rem; }
.order-dishes-detail li > div { min-width: 0; }
.order-dishes-detail li > .status-pill { flex: none; margin-top: .05rem; }
.order-dishes-detail b, .order-dishes-detail small { display: block; white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
.order-dishes-detail small { margin-top: .15rem; color: var(--ink-soft); font-size: .62rem; }
.order-dining-label { display: block; margin-top: .3rem; font-size: .6rem; color: var(--ink-soft); }
.preparation-controls input:focus-visible, .preparation-controls select:focus-visible, #preparation-page button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1100px) {
  .preparation-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .preparation-tools { align-items: stretch; flex-direction: column; }
  .preparation-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
  .preparation-controls .field { min-width: 0; }
  .preparation-controls .preparation-date-field { width: 100%; }
  .preparation-controls .preparation-scope-field { grid-column: 1 / -1; }
  .preparation-dietary-orders { grid-template-columns: minmax(0, 1fr); }
  .preparation-panel, .preparation-dietary { padding: 1rem; }
  .order-row:not(.header) > .order-dishes-detail { display: block; grid-column: 1 / -1; grid-row: 3; padding: .4rem 0; }
}
@media (max-width: 450px) {
  .preparation-order-items > li { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
}

/* Kitchen updates and quieter, task-specific preparation. */
.menu-news { padding: 1.2rem; margin-bottom: 1.4rem; border-radius: 22px; color: #f4f1e9; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.14); }
.menu-news header { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.menu-news h3 { margin:.25rem 0 .8rem; font-size:1.1rem; }
.menu-news small,.menu-news-list button > span { color:#b9bdc8; font-size:.65rem; }
.menu-news-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:.65rem; max-height:17rem; overflow:auto; }
.menu-news-list button { position:relative; display:grid; gap:.45rem; text-align:left; padding:.8rem 1.25rem .8rem .8rem; background:rgba(255,255,255,.08); color:#fff; border-radius:12px; }
.menu-news-list button.is-unread::after { content:""; position:absolute; top:.72rem; right:.72rem; width:.48rem; height:.48rem; border-radius:50%; background:#8ab4ff; box-shadow:0 0 0 3px rgba(138,180,255,.13), 0 0 12px rgba(138,180,255,.38); }
.menu-news-list em,.dish-update-badge { color:#ffdf93; font-size:.7rem; font-style:normal; }
.menu-news-theme { color:#ffdf93; font-size:.8rem; }
.dish-update-badge { display:inline-block; margin:.5rem 0; padding:.3rem .6rem; border-radius:8px; background:rgba(255,210,105,.12); }
.dish-occasions { border:1px solid var(--line); border-radius:12px; padding:.8rem; }
.dish-occasions > div { display:flex; flex-wrap:wrap; gap:1rem; margin-top:.7rem; }
.dish-occasions label { display:flex; align-items:center; gap:.3rem; font-size:.75rem; }
.dish-occasions input { width:1rem; height:1rem; min-height:0; }
.dish-occasions small { color:var(--ink-soft); line-height:1.5; }
.preparation-layout { grid-template-columns:minmax(0,1fr); }
.preparation-dishes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.2rem; }
#preparation-source-details > summary { cursor: var(--cursor-pointer); font-size:.95rem; font-weight:700; }
#preparation-source-details > .preparation-details-content > p { font-size:.75rem; line-height:1.7; color:var(--ink-soft); }
#preparation-source-details > .soft-button { margin-bottom:1rem; }
.user-food-note > b,.user-food-note.has-allergy > b { background:transparent; border:0; box-shadow:none; border-radius:0; padding:.3rem .6rem .3rem 0; min-width:2.8rem; font-weight:800; color:#44493f; }
.user-food-note.has-allergy > b { color:#96332f; }
.user-food-note > span { padding-left:.6rem; border-left:2px solid #c8c7be; }
.user-food-note.has-allergy > span { border-left-color:#bb7772; }
.donut { flex:0 0 auto; aspect-ratio:1 / 1; min-width:9.5rem; min-height:9.5rem; box-sizing:border-box; }
@media(max-width:700px) { .preparation-dishes { grid-template-columns:minmax(0,1fr); } .donut-wrap { min-width:0; } }

/* The preparation controls share the same quiet button typography as Today. */
.preparation-scope-picker { width: 100%; max-width: none; }
.preparation-controls .status-trigger { min-height: 2.85rem; padding: .65rem 1rem; border-radius: 12px; font-family: inherit; font-size: .76rem; font-weight: 630; }
.preparation-dietary { margin: 1.25rem 0 0; padding: 1rem; border: 1px solid rgba(165,73,67,.2); border-radius: 16px; background: #fff9f5; }
.preparation-dietary > header { margin-bottom: .75rem; }
.preparation-dietary h3 { margin: 0; color: #713f37; font-size: .82rem; }
.preparation-dietary header > p { margin: .3rem 0 0; color: var(--ink-soft); font-size: .65rem; line-height: 1.6; }
.preparation-dietary-friends { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .55rem; }
.preparation-friend { display: grid; gap: .45rem; min-width: 0; padding: .7rem; border: 1px solid rgba(28,30,26,.07); border-radius: 12px; background: rgba(255,255,255,.72); }
.preparation-friend > b { overflow-wrap: anywhere; color: #353730; font-size: .72rem; }
.preparation-friend > div { display: grid; gap: .35rem; }
.preparation-friend-note { display: grid; grid-template-columns: 2.7rem minmax(0, 1fr); gap: .45rem; align-items: start; padding: .35rem .45rem; border-radius: 8px; font-size: .65rem; line-height: 1.55; }
.preparation-friend-note strong { font-size: .6rem; }
.preparation-friend-note span { overflow-wrap: anywhere; white-space: pre-wrap; }
.preparation-friend-note.is-allergy { color: #8d302b; background: #f9e9e7; }
.preparation-friend-note.is-avoid { color: #795435; background: #f5eee6; }
.preparation-dietary-empty { margin: 0; padding: .65rem .75rem; border-radius: 10px; color: #777970; background: rgba(255,255,255,.68); font-size: .68rem; }
.dish-limited-field { align-content: start; }
.dish-limited-toggle { justify-self: start; margin-top: .25rem; }
.dish-occasions { margin: .25rem 0 0; border: 1px solid var(--line); border-radius: 12px; padding: .8rem; }
.dish-occasions > div { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .7rem; }
.dish-occasions label { display: flex; align-items: center; gap: .3rem; font-size: .75rem; }
.dish-occasions input { width: 1rem; height: 1rem; min-height: 0; }
.dish-occasions small { color: var(--ink-soft); line-height: 1.5; }
.dish-admin-actions button.dish-limited-action { color: #7b5433; background: #eee4d8; }
.admin-dish-tags .is-limited-tag { color: #714a2c; background: #eee4d8; }
.user-taste-profile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: .55rem; margin: 0 0 .25rem 2.8rem; }
.user-food-note { display: grid; grid-template-rows: auto minmax(1.9rem, auto); align-content: start; gap: .3rem; width: 100%; max-width: none; min-width: 0; }
.user-food-note > b { justify-self: start; min-height: 1.4rem; padding: .2rem .5rem; border: 0; border-radius: 6px; color: #fff; background: #666a61; box-shadow: none; font-size: .58rem; font-weight: 760; letter-spacing: .03em; }
.user-food-note > span { display: flex; flex-wrap: wrap; align-content: flex-start; gap: .3rem; min-width: 0; min-height: 2rem; padding: .4rem; border: 1px solid rgba(28,30,26,.09); border-radius: 9px; background: rgba(255,255,255,.75); }
.user-food-note > span i { min-height: 1.55rem; }
.user-food-note > span i.is-empty { border-style: dashed; background: rgba(255,255,255,.65); }
.user-food-note.has-allergy > b { color: #fff; background: #a54943; }
.user-food-note.has-allergy > span { border-color: rgba(163,67,62,.22); background: #fff7f5; }
.user-food-note.has-allergy > span i { color: #9a403b; border-color: rgba(163,67,62,.16); background: rgba(163,67,62,.055); }
.user-food-note.is-usual > b { color: #fff; background: #806044; }
.user-food-note.is-usual > span i { gap: .28rem; }
@media (max-width: 800px) { .user-taste-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 2.8rem; } }
@media (max-width: 560px) { .user-taste-profile { grid-template-columns: minmax(0, 1fr); margin-left: 0; } }

/* October polish: compact prep controls, focused editors, and clean account notes. */
.admin-topbar.is-section-title-hidden { height: 4.75rem; }
.admin-topbar.is-section-title-hidden #admin-title { display: none; }
.admin-topbar.is-section-title-hidden #admin-date { color: #6f716a; font-weight: 620; }

.customer-order-card aside .order-history-actions button span {
  display: inline;
  margin: 0;
  color: inherit;
  line-height: 1;
}
.customer-order-card > .customer-order-status-icon { align-self: start; }

.item-status-picker .status-trigger.cancelled {
  color: #9a403b;
  background: #fff2f0;
  border-color: rgba(163,67,62,.18);
}

.preparation-controls .preparation-date-field { flex: 0 0 9.8rem; width: 9.8rem; }
.preparation-date-trigger {
  display: grid;
  grid-template-columns: .95rem minmax(0, 1fr) .42rem;
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 2.85rem;
  padding: 0 .78rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255,255,255,.82);
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 5px 15px rgba(31,32,28,.04);
  font: inherit;
  text-align: left;
}
.preparation-date-trigger svg { width: .95rem; height: .95rem; color: #777970; }
.preparation-date-trigger > span { overflow: hidden; font-size: .69rem; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.preparation-date-trigger > i { width: .42rem; height: .42rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; opacity: .48; transform: translateY(-.12rem) rotate(45deg); }
.preparation-date-trigger[aria-expanded="true"] { border-color: rgba(149,101,63,.45); box-shadow: 0 0 0 3px rgba(149,101,63,.08); }

.preparation-calendar-dialog { width: min(calc(100% - 1.5rem), 25rem); padding: 0; border-radius: 26px; }
.preparation-calendar-shell { padding: 1.15rem; color: var(--ink); background: #f8f7f3; }
.preparation-calendar-shell > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.preparation-calendar-shell > header p,
.preparation-calendar-shell > header h2 { margin: 0; }
.preparation-calendar-shell > header h2 { margin-top: .18rem; font-family: "Songti SC", serif; font-size: 1.2rem; }
.preparation-calendar-toolbar { display: grid; grid-template-columns: 2.25rem 1fr 2.25rem; align-items: center; margin-bottom: .6rem; }
.preparation-calendar-toolbar strong { font-size: .78rem; text-align: center; }
.preparation-calendar-toolbar button { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; color: #676961; background: rgba(28,30,26,.045); }
@media (hover: hover) and (pointer: fine) { .preparation-calendar-toolbar button:hover { background: rgba(28,30,26,.09); } }
.preparation-calendar-toolbar button svg { width: .8rem; height: .8rem; }
.preparation-calendar-toolbar button:first-child svg { transform: rotate(180deg); }
.preparation-calendar-weekdays,
.preparation-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .22rem; }
.preparation-calendar-weekdays { margin-bottom: .22rem; }
.preparation-calendar-weekdays span { padding: .35rem 0; color: #a0a29a; font-size: .56rem; font-weight: 700; text-align: center; }
.preparation-calendar-days button { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; border-radius: 50%; color: #383a35; font-size: .68rem; font-weight: 650; transition: background .16s, color .16s, transform .16s var(--spring); }
@media (hover: hover) and (pointer: fine) { .preparation-calendar-days button:hover { background: rgba(28,30,26,.07); } }
.preparation-calendar-days button:active { transform: scale(.9); }
.preparation-calendar-days button.is-outside { color: #c0c1bb; }
.preparation-calendar-days button.is-today { color: #9b6a3d; }
.preparation-calendar-days button.is-selected { color: #fff; background: #252621; box-shadow: 0 5px 14px rgba(28,30,26,.2); }
.preparation-calendar-days button.has-orders > span { position: relative; }
.preparation-calendar-days button.has-orders > span::after { content: ""; position: absolute; top: calc(100% + .14rem); left: 50%; width: .22rem; height: .22rem; border-radius: 50%; background: #9b6a3d; transform: translateX(-50%); }
.preparation-calendar-days button.is-selected.has-orders > span::after { background: #fff; }
.preparation-dish-count.has-data { color: #875729; background: #f2e3d2; }
.preparation-order-count.has-data { color: #3f6650; background: #dfeae1; }
.preparation-calendar-shell > footer { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-top: .9rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.preparation-calendar-shell > footer button { min-height: 2.45rem; }
.preparation-calendar-shell > footer .primary-button { width: auto; margin-top: 0; padding-inline: 1rem; }

#dish-form:not([data-mode="limited"]) .dish-limited-field { display: none; }
#dish-form[data-mode="limited"] .dish-form-grid { grid-template-columns: minmax(0, 1fr); }
#dish-form[data-mode="limited"] .dish-form-grid > :not(.dish-limited-field),
#dish-form[data-mode="limited"] .dish-form-scroll > :not(#dish-id):not(.dish-form-grid) { display: none; }
#dish-dialog.is-limited-mode { width: min(calc(100% - 2rem), 36rem); }
#dish-form[data-mode="limited"] .dish-form-scroll { padding: .75rem 1.8rem 1.4rem; }
#dish-form[data-mode="limited"] .dish-limited-field { display: grid; grid-template-rows: auto auto; gap: .65rem; }
#dish-form[data-mode="limited"] .dish-limited-toggle { display: none; }
#dish-form[data-mode="limited"] .dish-occasions { box-sizing: border-box; width: 100%; margin: 0; padding: 1.2rem; border: 1px solid rgba(28,30,26,.08); border-radius: 18px; background: rgba(255,255,255,.72); }
#dish-form[data-mode="limited"] .dish-occasions legend { padding: 0 .35rem; color: #33352f; font-size: .78rem; font-weight: 750; }
#dish-form[data-mode="limited"] .dish-occasions small { display: block; color: #888a82; font-size: .62rem; line-height: 1.55; }

.user-taste-profile { display: grid; grid-template-columns: minmax(0, max-content); align-items: start; gap: .5rem; margin: 0 0 .25rem 2.8rem; }
.user-food-note { display: grid; grid-template-columns: 3.25rem minmax(0, auto); align-items: start; gap: .4rem; width: fit-content; max-width: 100%; min-width: 0; }
.user-food-note > b { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 3.25rem; min-height: 2rem; padding: .35rem .45rem; border: 1px solid rgba(28,30,26,.09); border-radius: 9px; color: #55584f; background: rgba(255,255,255,.72); font-size: .59rem; line-height: 1.25; }
.user-food-note > span { display: flex; flex-wrap: wrap; gap: .3rem; min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent; }
.user-food-note > span i { display: inline-flex; align-items: center; box-sizing: border-box; max-width: 100%; min-height: 2rem; padding: .35rem .62rem; overflow-wrap: anywhere; line-height: 1.35; }
.user-food-note.has-allergy > b { color: #923b36; border-color: rgba(163,67,62,.18); border-radius: 12px; background: #fff2f0; }
.user-food-note.has-allergy > span { border: 0; background: transparent; }
.user-food-note.has-allergy > span i { color: #923b36; border-color: rgba(163,67,62,.18); border-radius: 12px; background: #fff7f5; }
.user-food-note.is-usual > b { color: #765438; border-color: rgba(128,96,68,.18); background: #f5ede4; }

@media (max-width: 800px) {
  .admin-topbar.is-section-title-hidden { height: 4.5rem; }
  .preparation-controls { grid-template-columns: minmax(9.4rem, 10.6rem) auto; }
  .preparation-controls .preparation-date-field { width: 100%; }
  .user-taste-profile { margin-left: 2.8rem; }
  .revenue-range-nav span { min-width: 6.8rem; }
}

@media (min-width: 801px) {
  .admin-dish-card .stock-toggle { flex: 0 0 auto; min-width: 4.9rem; justify-content: center; padding-inline: .75rem; white-space: nowrap; }
}
@media (max-width: 560px) {
  .user-taste-profile { margin-left: 0; }
  .revenue-panel .panel-heading { display: grid; align-items: start; }
  .revenue-range-nav { grid-template-columns: 2rem minmax(0, 1fr) 2rem; width: 100%; box-sizing: border-box; }
  .revenue-range-nav span { min-width: 0; }
  #dish-dialog.is-limited-mode { width: min(calc(100% - 1rem), 36rem); }
  #dish-form[data-mode="limited"] .dish-form-scroll { padding: .65rem 1rem 1rem; }
}

/* Preparation hierarchy and compact mobile order management. */
.preparation-dietary.preparation-dietary-standalone { margin: 0 0 1.25rem; }

@media (max-width: 800px) {
  #orders-page .page-tools { display: grid; gap: .75rem; }
  #orders-page .admin-tabs { width: 100%; padding: .25rem; scrollbar-width: none; }
  #orders-page .admin-tabs::-webkit-scrollbar { display: none; }
  #orders-page .admin-tabs button { flex: 1 0 auto; min-height: 2.6rem; }
  #orders-page #export-orders { width: 100%; min-height: 2.65rem; }
  #orders-page .full-orders-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
  #orders-page .orders-table { display: grid; gap: .75rem; margin-top: 0; }
  #orders-page .order-row.header { display: none; }
  #orders-page .order-row:not(.header) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "id status"
      "customer customer"
      "dishes dishes"
      "amount time";
    gap: .75rem 1rem;
    min-height: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.7);
    box-shadow: 0 10px 28px rgba(28,30,26,.045);
  }
  #orders-page .order-row:not(.header) > :nth-child(1) { grid-area: id; align-self: center; display: block; min-width: 0; overflow-wrap: anywhere; font-size: .7rem; }
  #orders-page .order-row:not(.header) > :nth-child(2) { grid-area: customer; display: flex; min-width: 0; padding-top: .1rem; }
  #orders-page .order-row:not(.header) > :nth-child(3) { grid-area: dishes; display: block; padding: .7rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  #orders-page .order-row:not(.header) > :nth-child(4) { grid-area: amount; display: block; align-self: end; font-size: .88rem; }
  #orders-page .order-row:not(.header) > :nth-child(5) { grid-area: status; display: block; justify-self: end; align-self: start; }
  #orders-page .order-row:not(.header) > :nth-child(6) { grid-area: time; display: block; align-self: end; color: var(--ink-soft); text-align: right; line-height: 1.5; }
  #orders-page .order-customer p { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.55; }
  #orders-page .order-dishes-detail li + li { margin-top: .65rem; }
  #orders-page .status-picker { width: 6.8rem; }
  #orders-page .category-menu.status-menu { right: 0; left: auto; }

  .preparation-dietary.preparation-dietary-standalone { margin-bottom: 1rem; }
  .preparation-dish-details > summary,
  #preparation-source-details > summary { min-height: 2.2rem; }
}

@media (max-width: 480px) {
  .preparation-source { grid-template-columns: minmax(0, 1fr) 6.35rem; }
  .preparation-source .status-trigger { padding-inline: .5rem; }
}

/* Keep Safari's area below the clear navigation opaque without frosting the navigation itself. */
.mobile-browser-guard { display: none; }
@media (max-width: 800px) {
  .customer-view::after { content: none; }
  #customer-view:not([hidden]) + .mobile-browser-guard {
    position: fixed;
    z-index: 44;
    top: var(--mobile-nav-bottom-edge, calc(100dvh - max(.75rem, env(safe-area-inset-bottom, 0px))));
    right: 0;
    bottom: -14rem;
    left: 0;
    display: block;
    background: #08080a;
    box-shadow: inset 0 1px rgba(255,255,255,.08), 0 -8px 24px rgba(0,0,0,.28);
    pointer-events: none;
  }
}
.table-sheet form { padding: 0; }

/* Hero buttons and friend reviews hang below the title without joining its vertical centring,
   so the title stays exactly where it was; the hero grows by the same amount to make room. */
/* Extra height only where the 限定 banner spans the full width and would otherwise sit on the buttons;
   wider layouts keep the banner on the right, so the hero keeps its original height there. */
.menu-hero { --hero-extra: 0rem; }
@media (max-width: 700px) {
  .menu-hero { --hero-extra: 5.1rem; }
}
.hero-extras { position: absolute; top: 100%; left: 0; width: max-content; max-width: calc(100vw - 2rem); padding-top: 2rem; text-align: left; }
.menu-hero { min-height: calc(43rem + var(--hero-extra)); padding-bottom: calc(5rem + var(--hero-extra)); }
@media (max-width: 800px) {
  .menu-hero { min-height: calc(38rem + var(--hero-extra)); padding-bottom: calc(4rem + var(--hero-extra)); }
}
@media (max-width: 450px) {
  .menu-hero { --hero-extra: 4.65rem; min-height: calc(34rem + var(--hero-extra)); }
  .hero-extras { width: calc(100vw - 2rem); padding-top: 1.6rem; }
}
/* 那年今日 card under the buttons: the hero grows by its height too, title and ENF art stay put. */
.menu-hero.has-memory { --hero-extra: 4.8rem; }
@media (max-width: 700px) { .menu-hero.has-memory { --hero-extra: 9.9rem; } }
@media (max-width: 450px) { .menu-hero.has-memory { --hero-extra: 9.45rem; } }
.menu-hero::before { top: calc((100% - var(--hero-extra)) * .49); }
.menu-hero::after { top: calc((100% - var(--hero-extra)) * .48); }
/* Text boxes keep their designed size; nobody drags them bigger or smaller. */
textarea { resize: none; }

/* 菜品上新 picture card */
.news-image-dialog { width: min(calc(100% - 3rem), 20rem); }
.news-image-sheet { position: relative; padding: .75rem .75rem 1rem; }
.news-image-frame { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 20px; background: #f6f5f1; }
.news-image-frame img { width: 100%; height: 100%; object-fit: contain; }
.news-image-label { margin: .85rem .3rem 0; color: rgba(240,240,245,.62); font-size: .62rem; }
.news-image-sheet h2 { margin: .25rem .3rem 0; font-size: 1.05rem; }
.news-image-close { position: absolute; z-index: 1; top: 1.2rem; right: 1.2rem; color: #fff; background: rgba(17,17,20,.55); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.glass-sheet .news-image-close svg { filter: none; }

/* Admin dish cards: drop to fewer columns before cards get too narrow, and give the actions their own row
   under the stock toggle so they wrap as a tidy group instead of stacking one per line. */
.admin-dish-grid { grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.admin-dish-bottom { flex-direction: column; align-items: stretch; gap: .6rem; }
.admin-dish-bottom .stock-toggle { align-self: flex-start; }
.dish-admin-actions { flex-wrap: wrap; justify-content: flex-start; }
.dish-admin-actions button.danger { margin-left: auto; }

/* Store-hours picker */
.time-range .time-picker { position: relative; flex: 1; min-width: 0; }
.time-picker-trigger { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; height: 3.15rem; padding: 0 1rem; border: 1px solid rgba(24,25,22,.12); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.72); font-size: .86rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .02em; text-align: left; transition: border-color .2s, box-shadow .2s, background .2s; }
@media (hover: hover) and (pointer: fine) { .time-picker-trigger:hover { background: #fff; } }
.time-picker-trigger[aria-expanded="true"] { border-color: rgba(105,73,44,.48); box-shadow: 0 0 0 4px rgba(149,101,63,.1); background: #fff; }
.time-picker-trigger svg { width: .8rem; height: .8rem; color: #8b8d85; transform: rotate(90deg); transition: transform .2s var(--spring); }
.time-picker-trigger[aria-expanded="true"] svg { transform: rotate(-90deg); }
.time-picker-panel { position: absolute; z-index: 30; top: calc(100% + .45rem); left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; width: max(100%, 10.5rem); padding: .35rem; border: 1px solid rgba(24,25,22,.1); border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: 0 18px 44px rgba(28,30,26,.16), inset 0 1px rgba(255,255,255,.9); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); animation: time-picker-in .18s ease-out; }
.time-picker-panel[hidden] { display: none; }
.time-range .time-picker:last-child .time-picker-panel { left: auto; right: 0; }
.time-picker-column { display: grid; align-content: start; gap: .1rem; max-height: 13rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.time-picker-column::-webkit-scrollbar { display: none; }
.time-picker-column + .time-picker-column { padding-left: .3rem; border-left: 1px solid rgba(24,25,22,.07); }
.time-picker-column button { min-height: 2.25rem; border-radius: 10px; color: #555750; background: transparent; font-size: .78rem; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .time-picker-column button:hover { color: var(--ink); background: rgba(28,30,26,.055); } }
.time-picker-column button.is-selected { color: #fff; background: #6f5137; font-weight: 700; }
@keyframes time-picker-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .time-picker-panel { animation: none; } }

/* ---------- Native feel on phones ---------- */
/* No grey flash on tap, no font inflation in landscape. */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Controls answer the tap immediately (no double-tap wait). */
button, a, label, summary, [role="button"], [role="tab"], [role="option"] { touch-action: manipulation; }
/* Long-pressing a control shouldn't select its label or pop the callout; content text stays selectable. */
button, summary, [role="button"], [role="tab"], [role="option"], .category-chip, .mobile-nav, .customer-dock { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Paint the page behind the browser chrome and overscroll in the current view's colour. */
body[data-view="auth"], body[data-view="customer"] { background: #050506; }
body[data-view="admin"] { background: #eeece7; }

/* ---------- Dialogs: one shared open / close / backdrop motion ---------- */
/* Open 250ms, close 180ms (the system response snaps); the backdrop fades with the sheet.
   @starting-style + allow-discrete let the closing state play before display:none applies. */
dialog:not(.review-image-dialog) {
  opacity: 0;
  transform: translateY(6px) scale(.97);
  transition: opacity .18s ease-out, transform .18s cubic-bezier(0.23, 1, 0.32, 1), overlay .18s allow-discrete, display .18s allow-discrete;
}
dialog:not(.review-image-dialog)[open] {
  opacity: 1;
  transform: none;
  transition-duration: .25s;
}
@starting-style {
  dialog:not(.review-image-dialog)[open] { opacity: 0; transform: translateY(8px) scale(.96); }
}
dialog::backdrop {
  opacity: 0;
  transition: opacity .18s ease-out, overlay .18s allow-discrete, display .18s allow-discrete;
}
dialog[open]::backdrop { opacity: 1; transition-duration: .25s; }
@starting-style {
  dialog[open]::backdrop { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  dialog:not(.review-image-dialog), dialog:not(.review-image-dialog)[open] { transform: none; }
  @starting-style { dialog:not(.review-image-dialog)[open] { transform: none; } }
}

/* ---------- Cursor ---------- */
/* A rounded arrow with a soft shadow; it turns warm gold over anything clickable. Native cursor images,
   so there is no tracking lag and the hotspot (the tip, 5px 4px) stays exact. Text fields keep the I-beam. */
:root { --cursor-default: default; --cursor-pointer: pointer; }
@media (hover: hover) and (pointer: fine) {
  :root {
    --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='%23ffffff' stroke='%23141416' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 5 4, default;
    --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='%23f0cda2' stroke='%232b1d10' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 5 4, pointer;
  }
  html { cursor: var(--cursor-default); }
  a[href], label[for], summary, select, input[type="checkbox"], input[type="radio"], [role="button"], [role="tab"], [role="option"] { cursor: var(--cursor-pointer); }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]), textarea, [contenteditable="true"] { cursor: text; }
}

/* ---------- Party entry points ---------- */
.header-table-button { position: relative; color: #f5f5f7; }
.header-table-button[hidden] { display: none; }
.header-table-button svg { width: 1.1rem; height: 1.1rem; }
.header-table-button.is-active { color: #111114; border-color: transparent; background: #f5f3ee; }
.header-table-button b { position: absolute; top: -.25rem; right: -.25rem; display: grid; place-items: center; min-width: 1.05rem; height: 1.05rem; padding: 0 .22rem; border-radius: 999px; color: #2b1d10; background: #ecd39a; box-shadow: 0 0 0 2px #050506; font-size: .58rem; font-weight: 800; }
.header-table-button b[hidden] { display: none; }

.cart-table-entry { display: flex; align-items: center; gap: .75rem; width: 100%; margin: 0 0 .9rem; padding: .8rem .9rem; border-radius: 16px; color: #f5f5f7; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); text-align: left; transition: background .2s, transform .16s var(--spring); }
.cart-table-entry[hidden] { display: none; }
.cart-table-entry:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .cart-table-entry:hover { background: rgba(255,255,255,.09); } }
.cart-table-icon { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 12px; background: rgba(255,255,255,.1); }
.cart-table-icon svg { width: 1rem; height: 1rem; }
.cart-table-entry.is-active .cart-table-icon { color: #111114; background: #f5f3ee; }
.cart-table-copy b { display: block; font-size: .8rem; }
.cart-table-copy small { display: block; margin-top: .15rem; color: rgba(240,240,245,.58); font-size: .62rem; }
.cart-table-chevron { flex: none; width: .8rem; height: .8rem; margin-left: auto; opacity: .6; }

.table-status-bar { position: fixed; z-index: 56; left: calc(50% - 16rem); right: calc(50% - 16rem + 3.8rem); bottom: 6rem; display: flex; align-items: center; gap: .7rem; height: 3.2rem; padding: 0 .8rem 0 .6rem; border-radius: 18px; color: #f5f5f7; text-align: left; background: rgba(26,26,30,.78); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px rgba(255,255,255,.22), 0 14px 34px rgba(0,0,0,.45); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  /* Slides up from behind the navigation when a party starts, fades away when it ends. */
  transition: opacity .2s ease-out, transform .25s cubic-bezier(0.23, 1, 0.32, 1), display .25s allow-discrete; }
.table-status-bar[hidden] { display: none; opacity: 0; transform: translateY(12px); }
@starting-style { .table-status-bar:not([hidden]) { opacity: 0; transform: translateY(12px); } }
.table-status-bar:active { transform: scale(.985); }
.table-status-avatars { display: flex; flex: none; }
.table-status-avatars span { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-left: -.45rem; border: 2px solid #1a1a1e; border-radius: 50%; color: #1c1c20; font-size: .64rem; font-weight: 700; }
.table-status-avatars span:first-child { margin-left: 0; }
.table-status-text { min-width: 0; }
.table-status-text b { display: block; font-size: .78rem; letter-spacing: .02em; }
.table-status-text small { display: block; margin-top: .1rem; overflow: hidden; color: rgba(240,240,245,.6); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.table-status-live { flex: none; width: .45rem; height: .45rem; margin-left: auto; border-radius: 50%; background: #7ed69a; box-shadow: 0 0 0 3px rgba(126,214,154,.18); }
.table-status-chevron { flex: none; width: .8rem; height: .8rem; opacity: .6; }
/* Phones: same row as the cart button, mirrored margins. Kept after the base rule so it wins. */
@media (max-width: 800px) {
  .table-status-bar {
    left: calc(10vw - 1rem);
    right: calc(10vw - 1rem + 3.8rem);
    bottom: max(6.15rem, calc(env(safe-area-inset-bottom, 0px) + 5.9rem));
  }
}
@media (prefers-reduced-motion: reduce) { .table-status-bar[hidden] { transform: none; } @starting-style { .table-status-bar:not([hidden]) { transform: none; } } }

/* Bright accents in the same family as the gold 查看评价: coral for 查看回忆, sky for 聚会记录. */
.order-review-button.is-view.is-memory { color: #ffa3b8; background: rgba(255,163,184,.12); box-shadow: inset 0 0 0 1px rgba(255,163,184,.28); }
.order-review-button.is-record { color: #7fd3ff; background: rgba(127,211,255,.1); box-shadow: inset 0 0 0 1px rgba(127,211,255,.3); }
@media (hover: hover) and (pointer: fine) {
  .order-review-button.is-view.is-memory:hover { color: #ffbccb; background: rgba(255,163,184,.2); }
  .order-review-button.is-record:hover { color: #a3e0ff; background: rgba(127,211,255,.18); }
}

/* 我的 → 修改密码 / 修改账号: same liquid-glass sheet as 忌口与过敏 */
.profile-security-dialog .glass-note { margin: .85rem 0 0; color: rgba(240,240,245,.6); font-size: .64rem; line-height: 1.6; }

/* ---------- Secondary sheets: same high-transparency liquid glass as the menu bar ---------- */
.glass-sheet {
  isolation: isolate;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 1px 0 0 rgba(255,255,255,.09),
    inset 0 -1px 0 rgba(255,255,255,.055),
    0 18px 50px rgba(0,0,0,.13);
  backdrop-filter: blur(3px) saturate(155%) brightness(1.045) contrast(1.025);
  -webkit-backdrop-filter: blur(3px) saturate(155%) brightness(1.045) contrast(1.025);
  text-shadow: 0 0 1px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.7), 0 0 10px rgba(0,0,0,.55);
}
.glass-sheet::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 14% -22%, rgba(255,255,255,.1), transparent 35%),
    linear-gradient(112deg, transparent 24%, rgba(255,255,255,.018) 44%, transparent 63%);
  opacity: .38;
  mix-blend-mode: screen;
}
.glass-sheet::backdrop { background: rgba(0,0,0,.38); backdrop-filter: none; -webkit-backdrop-filter: none; }
.glass-sheet .sheet-close { background: transparent; box-shadow: inset 0 1px rgba(255,255,255,.3), inset 0 0 0 1px rgba(255,255,255,.18); backdrop-filter: blur(2px) saturate(150%); -webkit-backdrop-filter: blur(2px) saturate(150%); }
.glass-sheet .sheet-close svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }

/* ---------- Buttons: one press language ---------- */
/* Three press depths: small round controls .92, regular buttons .97, wide rows and cards .985.
   Feedback lands on press (≈120ms, strong ease-out) so it reads as instant. */
:is(.add-button, .icon-button, .sheet-close, .favorite-button, .header-table-button, .meal-fab, .card-quantity-control button) {
  transition: transform .12s cubic-bezier(0.23, 1, 0.32, 1), background-color .2s, color .2s, box-shadow .2s;
}
:root :is(.add-button, .icon-button, .sheet-close, .favorite-button, .header-table-button, .meal-fab, .card-quantity-control button):active { transform: scale(.92); }
:root :is(.primary-button, .soft-button, .hero-button, .order-review-button, .dish-recipe-link, .category-chip, .dish-rating, .order-history-actions button, .table-secondary-button):active { transform: scale(.97); }
:root :is(.cart-table-entry, .table-status-bar, .table-create, .profile-action, .taste-choice-options button, .reorder-item):active { transform: scale(.985); }

/* Category chips: only the properties that change, quickly. */
.category-chip { transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .12s cubic-bezier(0.23, 1, 0.32, 1); }

/* Primary buttons: pill shape, a hairline top highlight and a soft shadow so they read as pressable.
   The login button keeps its own look. */
.primary-button:not(.auth-submit) { border-radius: 999px; }
.customer-view .primary-button, .glass-sheet .primary-button, .cart-sheet .primary-button, .hero-button.is-primary {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.08), 0 8px 22px rgba(0,0,0,.3);
}
.admin-view .primary-button, .form-dialog .primary-button { box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 20px rgba(28,30,26,.16); }

/* Arrows hint at where the button goes; nudge them on hover (mouse only). */
.primary-button svg, .hero-button.is-primary svg { transition: translate .18s cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) {
  .primary-button:hover svg { translate: 2px 0; }
  .hero-button.is-primary:hover svg { translate: 0 2px; }
}

/* Add to cart: the quantity stepper fades in where the + was. */
.card-quantity-control { transition: opacity .18s ease-out, transform .18s cubic-bezier(0.23, 1, 0.32, 1); }
@starting-style { .card-quantity-control { opacity: 0; transform: scale(.94); } }

@media (prefers-reduced-motion: reduce) {
  :is(.add-button, .icon-button, .sheet-close, .favorite-button, .header-table-button, .meal-fab, .card-quantity-control button, .primary-button, .soft-button, .hero-button, .order-review-button, .dish-recipe-link, .category-chip, .dish-rating, .order-history-actions button, .table-secondary-button, .cart-table-entry, .table-status-bar, .table-create, .profile-action, .taste-choice-options button, .reorder-item):active { transform: none; }
  @starting-style { .card-quantity-control { transform: none; } }
}

/* Small tool buttons share one corner radius. */
.dish-admin-actions button, .status-trigger, .soft-button { border-radius: 12px; }

/* ---------- Sheets read as the only thing you can touch ---------- */
/* The page behind a sheet is dimmed and softly blurred, so the bottom bar and order buttons no longer
   look tappable; the sheet itself keeps its clear glass. */
.glass-sheet::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(8px) saturate(90%); -webkit-backdrop-filter: blur(8px) saturate(90%); }
.sheet-done { display: block; width: 100%; min-height: 2.9rem; margin-top: .2rem; border-radius: 999px; color: #f5f5f7; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); font-size: .8rem; font-weight: 650; }
@media (hover: hover) and (pointer: fine) { .sheet-done:hover { background: rgba(255,255,255,.13); } }
:root .sheet-done:active { transform: scale(.97); }
/* Phones: always leave a band of dimmed page above the sheet to tap away, and keep the close button
   in reach while the content scrolls. */
@media (max-width: 700px) {
  .glass-sheet { max-height: calc(100dvh - 6rem); }
}

/* ---------- Sheet entrance: more presence for the glass sheets ---------- */
/* Rises from a little below with an iOS-sheet curve, so opening reads clearly; closing stays a quick 180ms fade. */
.glass-sheet[open] { transition-duration: .32s; transition-timing-function: ease-out, cubic-bezier(0.32, 0.72, 0, 1); }
@starting-style {
  .glass-sheet[open] { opacity: 0; transform: translateY(28px) scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
  @starting-style { .glass-sheet[open] { transform: none; } }
}

/* Cart: no inner scroll box for dishes — the list shows in full and the whole sheet scrolls only when it must. */
/* Handle and title stay put; only the dishes, note and total scroll underneath them. */
.cart-sheet { overflow: hidden; }
.cart-scroll { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; margin: 0 -1.4rem; padding: 0 1.4rem; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cart-sheet .cart-items { flex: 1 0 auto; overflow: visible; }
.cart-sheet .cart-items { padding-block: .6rem; }
.cart-sheet .cart-item { grid-template-columns: 3.4rem 1fr auto; gap: .8rem; padding: .55rem 0; }
.cart-sheet .cart-item img { width: 3.4rem; height: 3.4rem; border-radius: 11px; }
.cart-sheet .cart-taste { margin-top: .3rem; }
.cart-sheet .cart-footer .note-field { margin-bottom: .6rem; }
.cart-sheet .cart-footer .price-total { margin: .7rem 0; }
@media (max-width: 800px) {
  /* Phone: the sheet grows with the order instead of boxing the dishes into a scroll area. */
  .cart-sheet { height: auto; min-height: min(60svh, 30rem); max-height: calc(100svh - 3.5rem); padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); }
}
/* New-order glow: a pre-painted gold layer that only fades, so the highlight never repaints the row. */
.order-row[data-order-id] { position: relative; }
.order-row[data-order-id]::after { content: ""; position: absolute; inset: 0; background: rgba(232,185,90,.24); opacity: 0; pointer-events: none; }

/* ---- Motion pass: dropdowns, image arrival, accordions, filters, tags ---- */

/* Time picker: grows from its field on open and fades back out on close (it used to vanish). */
.time-picker-panel { animation: none; transform-origin: top left; transition: opacity .15s ease-out, transform .15s cubic-bezier(0.23, 1, 0.32, 1), display .12s allow-discrete; }
.time-range .time-picker:last-child .time-picker-panel { transform-origin: top right; }
.time-picker-panel[hidden] { display: none; opacity: 0; transform: translateY(-4px) scale(.96); transition-duration: .12s; transition-timing-function: ease-out; }
@starting-style { .time-picker-panel:not([hidden]) { opacity: 0; transform: translateY(-4px) scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .time-picker-panel[hidden] { transform: none; }
  @starting-style { .time-picker-panel:not([hidden]) { transform: none; } }
}

/* Photos that are still downloading wait invisibly, then fade in (see watchImageArrivals). */
img.is-arriving { opacity: 0; }
.improvement-loading { opacity: .55; }
/* Revenue tooltip flips under the point when a peak leaves no room above it. */
.chart-tooltip.is-below { transform: translate(-50%, .65rem); }
.chart-tooltip.is-below.is-near-left { transform: translate(0, .65rem); }
.chart-tooltip.is-below.is-near-right { transform: translate(-100%, .65rem); }

/* ---------- 限定 settings: occasion + festival icons ---------- */
.special-occasion-options label { --occasion: #9a6945; --occasion-rgb: 154, 105, 69; }
.special-occasion-options label[data-occasion="birthday"] { --occasion: #c2607f; --occasion-rgb: 194, 96, 127; }
.special-occasion-options label[data-occasion="holiday"] { --occasion: #b2862f; --occasion-rgb: 178, 134, 47; }
.special-occasion-options label[data-occasion="visit"] { --occasion: #3f7f9b; --occasion-rgb: 63, 127, 155; }
.occasion-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; margin-bottom: .3rem; border-radius: 11px; color: var(--occasion); background: rgba(var(--occasion-rgb), .1); transition: background .2s, color .2s, transform .2s cubic-bezier(0.23, 1, 0.32, 1); }
.occasion-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.occasion-icon svg .fill, .occasion-icon svg .flame { fill: currentColor; stroke: none; }
.special-occasion-options input:checked + span .occasion-icon,
.special-festival-options input:checked + span .occasion-icon { color: #fff; background: var(--occasion); transform: scale(1.04); }
.special-occasion-options input:checked + span { border-color: var(--occasion); box-shadow: inset 0 0 0 1px var(--occasion), 0 6px 18px rgba(var(--occasion-rgb), .14); }
.special-occasion-options input:checked + span .flame { animation: occasion-flicker 1.6s ease-in-out infinite; transform-origin: 12px 6px; }
@keyframes occasion-flicker { 50% { transform: scale(.86, 1.08); opacity: .82; } }

.special-festival-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin: 0; padding: 0; border: 0; }
.special-festival-options[hidden] { display: none; }
.special-festival-options legend { grid-column: 1 / -1; margin-bottom: .15rem; color: #71736c; font-size: .62rem; font-weight: 650; }
.special-festival-options label { --occasion: #b2862f; --occasion-rgb: 178, 134, 47; cursor: var(--cursor-pointer); }
.special-festival-options label[data-festival="halloween"] { --occasion: #d2772a; --occasion-rgb: 210, 119, 42; }
.special-festival-options label[data-festival="christmas"] { --occasion: #2f7a55; --occasion-rgb: 47, 122, 85; }
.special-festival-options label[data-festival="newyear"] { --occasion: #a98526; --occasion-rgb: 169, 133, 38; }
.special-festival-options label[data-festival="spring"] { --occasion: #c23a33; --occasion-rgb: 194, 58, 51; }
.special-festival-options input { position: absolute; opacity: 0; pointer-events: none; }
.special-festival-options label > span { display: grid; justify-items: center; gap: .1rem; padding: .6rem .3rem .55rem; border: 1px solid rgba(28,30,26,.09); border-radius: 14px; background: rgba(255,255,255,.58); text-align: center; transition: border-color .2s, background .2s, box-shadow .2s; }
.special-festival-options label b { font-size: .66rem; }
.special-festival-options .occasion-icon { margin-bottom: .15rem; }
.special-festival-options input:checked + span { border-color: var(--occasion); background: #fff; box-shadow: inset 0 0 0 1px var(--occasion); }
.special-festival-options input:focus-visible + span, .special-occasion-options input:focus-visible + span { outline: 2px solid var(--occasion); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .special-occasion-options input:checked + span .flame { animation: none; } }

.occasion-icon svg { width: 1.4rem; height: 1.4rem; stroke-width: 1.7; }

/* ---------- 限定 hero art (see renderOccasionArt) ---------- */
.occasion-art { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.occasion-art[hidden] { display: none; }
.oa-defs { position: absolute; width: 0; height: 0; }
/* Same box, font and position as .menu-hero::before, so the letter boxes sit exactly on the wordmark. */
.oa-word {
  --base: .7em; --e-l: .05em; --f-r: 1.6em; --cap: 0em;
  position: absolute;
  top: calc((100% - var(--hero-extra, 0rem)) * .49);
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(12rem, 29vw, 27rem);
  font-weight: 800;
  line-height: .7;
  letter-spacing: -.11em;
  white-space: nowrap;
  color: transparent;
}
@media (max-width: 800px) { .oa-word { font-size: clamp(10rem, 43vw, 15rem); } }
.oa-l { --ink-l: .04em; --ink-w: .5em; --cap-top: 0em; --r1-l: .04em; --r1-w: .5em; --r2-l: .04em; --r2-w: .5em; --stem-r: .2em; --bar-b: .14em; --bar-x: .45em; position: relative; display: inline-block; }
.oa-word > :not(.oa-l), .oa-l > * { position: absolute; letter-spacing: normal; line-height: 1; }
:where(.oa-word, .oa-l) svg { display: block; width: 100%; height: 100%; overflow: visible; }
.occasion-art.is-paused *, .occasion-art.is-paused *::before, .occasion-art.is-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .occasion-art *, .occasion-art *::before, .occasion-art *::after { animation: none !important; } }

/* Ropes tied from the top-left corner of E to the top-right corner of F. */
.oa-rope { left: var(--e-l); top: var(--cap); width: calc(var(--f-r) - var(--e-l)); }
.oa-rope-line { position: absolute; inset: 0; }
.oa-knot { position: absolute; top: 0; width: .018em; height: .018em; margin: -.009em; border-radius: 50%; background: currentColor; }
.oa-knot.is-start { left: 0; }
.oa-knot.is-end { left: 100%; }

/* Wordmark colours, page tint and banner accent per theme */
.customer-view[data-special-theme="birthday"] .menu-hero::before { background-image: linear-gradient(112deg, #8c4e62 0%, #f2b8c9 22%, #fff0f2 34%, #c9707f 50%, #f7d3dc 66%, #a5566a 84%, #94546a 100%); opacity: .6; }
.customer-view[data-special-theme="halloween"] .menu-hero::before { background-image: linear-gradient(112deg, #6a3488 0%, #e5772a 24%, #ffc56e 36%, #4b2160 52%, #f08a2d 68%, #7a3a8f 86%, #8f4aa8 100%); opacity: .58; }
.customer-view[data-special-theme="christmas"] .menu-hero::before { background-image: linear-gradient(112deg, #3c7a57 0%, #5f9d76 22%, #f3efe3 34%, #7b1d22 50%, #c9474c 64%, #e8d29b 82%, #5f9d76 100%); opacity: .58; }
.customer-view[data-special-theme="newyear"] .menu-hero::before { background-image: linear-gradient(112deg, #8a6a24 0%, #f2c94c 20%, #fff3c4 32%, #b8902e 46%, #3a3220 60%, #f6d77a 78%, #a8862e 100%); opacity: .6; }
.customer-view[data-special-theme="spring"] .menu-hero::before { background-image: linear-gradient(112deg, #a51f22 0%, #e3443a 22%, #ffd37a 34%, #8e1717 50%, #f2a33d 66%, #c8282b 84%, #b8302c 100%); opacity: .6; }
.customer-view[data-special-theme="visit"] .menu-hero::before { background-image: linear-gradient(112deg, #4f6b7d 0%, #8fb3c4 22%, #dfe9ec 34%, #2c3d4b 50%, #c8a77f 62%, #9cc2cf 78%, #5d7d8f 100%); }
.customer-view[data-special-theme="halloween"] { --special-accent: #ffb25e; --special-accent-rgb: 255, 178, 94; background: radial-gradient(ellipse 64% 35% at 51% 8%, rgba(214, 112, 38, .24), transparent 72%), radial-gradient(ellipse 34% 27% at 12% 36%, rgba(96, 44, 128, .22), transparent 78%), var(--enf-bg); }
.customer-view[data-special-theme="christmas"] { --special-accent: #f1d9a4; --special-accent-rgb: 241, 217, 164; background: radial-gradient(ellipse 64% 35% at 51% 8%, rgba(46, 120, 82, .24), transparent 72%), radial-gradient(ellipse 34% 27% at 88% 40%, rgba(150, 34, 40, .2), transparent 78%), var(--enf-bg); }
.customer-view[data-special-theme="newyear"] { --special-accent: #f3d88f; --special-accent-rgb: 243, 216, 143; background: radial-gradient(ellipse 64% 35% at 51% 8%, rgba(62, 78, 140, .3), transparent 72%), radial-gradient(ellipse 34% 27% at 12% 36%, rgba(196, 160, 72, .16), transparent 78%), var(--enf-bg); }
.customer-view[data-special-theme="spring"] { --special-accent: #ffc56b; --special-accent-rgb: 255, 197, 107; background: radial-gradient(ellipse 64% 35% at 51% 8%, rgba(200, 40, 43, .3), transparent 72%), radial-gradient(ellipse 34% 27% at 88% 50%, rgba(230, 160, 60, .16), transparent 78%), var(--enf-bg); }

/* --- Birthday: ENF is the cake. Icing on every top stroke, candles pushed into it, a cake stand under it. --- */
.oa-icing { top: calc(var(--cap-top) - .012em); left: calc(var(--r1-l) - .01em); width: calc(var(--r1-w) + .02em); height: .12em; filter: drop-shadow(0 .008em .012em rgba(90, 30, 50, .35)); }
.oa-icing.is-r2 { left: calc(var(--r2-l) - .01em); width: calc(var(--r2-w) + .02em); }
.oa-candle { top: calc(var(--cap-top) + .016em); width: .044em; height: .23em; margin-left: -.022em; border-radius: .012em .012em .004em .004em; background: repeating-linear-gradient(-55deg, #fff7f1 0 .02em, #f39ab4 .02em .04em); box-shadow: inset -.008em 0 rgba(0,0,0,.12); transform: translateY(-100%); }
.oa-candle.is-e { left: calc(var(--r1-l) + var(--r1-w) * .5); }
.oa-candle.is-n { left: calc(var(--r2-l) + var(--r2-w) * .5); height: .2em; }
.oa-candle.is-f { left: calc(var(--r1-l) + var(--r1-w) * .46); height: .26em; }
.oa-candle::after { content: ""; position: absolute; bottom: 100%; left: 50%; width: .004em; height: .016em; margin-left: -.002em; background: #3b2a24; }
.oa-flame { position: absolute; bottom: calc(100% + .012em); left: 50%; width: .042em; height: .075em; margin-left: -.021em; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 72%, #fff8d6 0 22%, #ffd36b 40%, #ff9a3c 75%, rgba(255, 120, 40, 0) 100%); transform-origin: 50% 100%; animation: oa-flicker 1.4s ease-in-out infinite; }
.oa-halo { position: absolute; bottom: 100%; left: 50%; width: .3em; height: .3em; margin: 0 0 -.11em -.15em; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 120, .5), rgba(255, 170, 90, .14) 45%, transparent 70%); animation: oa-glow 2.6s ease-in-out infinite; }
.oa-candle.is-n .oa-flame, .oa-candle.is-n .oa-halo { animation-delay: -.5s; }
.oa-candle.is-f .oa-flame, .oa-candle.is-f .oa-halo { animation-delay: -1s; }
@keyframes oa-flicker { 0%, 100% { transform: scale(1, 1) rotate(-2deg); } 30% { transform: scale(.9, 1.1) rotate(2deg); } 60% { transform: scale(1.05, .94) rotate(-1deg); opacity: .9; } }
@keyframes oa-glow { 50% { opacity: .65; transform: scale(.9); } }
.oa-stand { left: calc(var(--e-l) - .07em); top: calc(var(--base) + .002em); width: calc(var(--f-r) - var(--e-l) + .14em); height: .15em; }
.oa-plate { position: absolute; top: 0; left: 0; width: 100%; height: .034em; border-radius: 999px; background: linear-gradient(90deg, rgba(255,232,238,.25), #fff3f5 30%, #f4c6d3 70%, rgba(255,232,238,.25)); box-shadow: 0 .02em .04em rgba(60, 20, 35, .35); }
.oa-pedestal { position: absolute; top: .03em; left: 50%; width: .34em; height: .12em; margin-left: -.17em; clip-path: polygon(32% 0, 68% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(244, 198, 211, .8), rgba(244, 198, 211, .15)); }

/* --- Halloween: a web in E's inner corner, a bat asleep under E's bar, a spider on a thread from F's bar,
       a jack-o'-lantern sitting inside the N and a big one leaning on the F; moon and bats behind. --- */
.oa-web { left: calc(var(--stem-r) - .004em); top: calc(var(--bar-b) - .004em); width: .2em; height: .2em; }
.oa-bat-hang { left: calc(var(--bar-x) - .03em); top: var(--bar-b); width: .06em; height: .088em; transform-origin: 50% 0; animation: oa-sway 3.4s ease-in-out infinite alternate; }
@keyframes oa-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.oa-spider { left: var(--bar-x); top: var(--bar-b); width: 0; height: 0; }
.oa-thread { position: absolute; top: 0; left: 0; width: 1.5px; height: .13em; margin-left: -.75px; background: rgba(239, 227, 251, .7); transform-origin: 50% 0; animation: oa-thread 3.6s ease-in-out infinite; }
.oa-spider-body { position: absolute; top: .11em; left: -.045em; width: .09em; height: .09em; animation: oa-spider 3.6s ease-in-out infinite; }
@keyframes oa-thread { 50% { transform: scaleY(1.45); } }
@keyframes oa-spider { 50% { transform: translateY(.0585em); } }
.oa-pumpkin { width: .3em; height: .276em; filter: drop-shadow(0 .02em .03em rgba(0,0,0,.4)); }
.oa-pumpkin.is-small { left: calc(var(--stem-r) + .008em); top: calc(var(--base) - .166em); width: .18em; height: .166em; }
.oa-pumpkin.is-big { left: calc(var(--f-r) - .12em); top: calc(var(--base) - .276em); }
.oa-carve { animation: oa-carve 2.2s ease-in-out infinite; }
@keyframes oa-carve { 40% { opacity: .7; } 60% { opacity: 1; } 75% { opacity: .82; } }
.oa-moon { top: calc(var(--cap) - .5em); left: calc(var(--f-r) + .02em); width: .34em; height: .34em; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #fff3d0, #ffd58f 45%, #e79a4a 100%); box-shadow: 0 0 .2em rgba(255, 190, 110, .35); opacity: .85; }
.oa-bat { width: .16em; height: .075em; animation: oa-bat-drift 7s ease-in-out infinite; }
.oa-bat svg { animation: oa-bat-flap .32s ease-in-out infinite alternate; transform-origin: 50% 40%; }
.oa-bat.is-1 { top: calc(var(--cap) - .36em); left: calc(var(--e-l) + .1em); }
.oa-bat.is-2 { top: calc(var(--cap) - .42em); left: calc(var(--f-r) + .12em); width: .11em; height: .052em; animation-delay: -3s; }
@keyframes oa-bat-flap { to { transform: scaleY(.55); } }
@keyframes oa-bat-drift { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(.08em, -.04em) rotate(5deg); } }

/* --- Christmas: snow settled on the top strokes and the foot of the word, lights tied corner to corner,
       a star standing on the N --- */
.oa-snowcap { top: calc(var(--cap-top) - .058em); left: calc(var(--r1-l) - .014em); width: calc(var(--r1-w) + .028em); height: .1em; filter: drop-shadow(0 .01em .01em rgba(20, 40, 30, .3)); }
.oa-snowcap.is-r2 { left: calc(var(--r2-l) - .014em); width: calc(var(--r2-w) + .028em); }
.oa-star { top: calc(var(--cap-top) - .25em); left: calc(var(--r2-l) + var(--r2-w) / 2 - .1em); width: .2em; height: .2em; filter: drop-shadow(0 0 .05em rgba(255, 210, 110, .7)); animation: oa-twinkle 3s ease-in-out infinite; }
@keyframes oa-twinkle { 50% { transform: scale(.9); opacity: .85; } }
.oa-lights { height: .22em; color: #2a3a2c; }
.oa-bulb { position: absolute; width: .03em; height: .045em; margin: -.006em 0 0 -.015em; border-radius: 45% 45% 50% 50%; background: var(--color); box-shadow: 0 0 .04em var(--color); animation: oa-bulb 2.2s ease-in-out infinite; }
@keyframes oa-bulb { 50% { opacity: .35; } }
.oa-drift { left: calc(var(--e-l) - .05em); top: calc(var(--base) - .045em); width: calc(var(--f-r) - var(--e-l) + .1em); height: .06em; }
.oa-sky { position: absolute; inset: 0; }
.oa-sky i { position: absolute; top: -12px; width: var(--size); height: var(--size); border-radius: 50%; background: var(--color); opacity: .8; animation: oa-fall linear infinite; }
.oa-sky-confetti i { width: calc(var(--size) * .55); height: var(--size); border-radius: 1.5px; }
@keyframes oa-fall { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(var(--drift), 46rem) rotate(540deg); } }

/* --- New year: a party hat on the E, balloons tied to the F, fireworks behind, confetti --- */
.oa-hat { top: calc(var(--cap-top) - .25em); left: calc(var(--r1-l) + .02em); width: .19em; height: .26em; transform: rotate(-12deg); transform-origin: 50% 100%; }
.oa-balloons { left: calc(var(--bar-x) - .14em); top: calc(var(--cap-top) - .56em); width: .28em; height: .56em; transform-origin: 50% 100%; animation: oa-balloons 4.5s ease-in-out infinite alternate; }
@keyframes oa-balloons { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.oa-firework { width: .5em; height: .5em; opacity: 0; animation: oa-burst 3.2s cubic-bezier(0.23, 1, 0.32, 1) infinite; }
.oa-firework.is-1 { top: calc(var(--cap) - .62em); left: calc(var(--e-l) + .15em); width: .42em; height: .42em; }
.oa-firework.is-2 { top: calc(var(--cap) - .66em); left: 44%; animation-delay: -1.6s; }
@keyframes oa-burst { 0% { opacity: 0; transform: scale(.2); } 12% { opacity: 1; } 55% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.08); } }
.oa-year { top: calc(var(--cap) - .17em); left: 50%; transform: translateX(-50%); }
.oa-year b { display: block; font-size: .062em; font-weight: 800; letter-spacing: .3em; white-space: nowrap; color: #f6dc94; text-shadow: 0 0 .6em rgba(246, 220, 148, .6); }

/* --- Spring festival: a red cord tied from E to F with lanterns hanging from it, 福 pasted on the N,
       a plum branch growing out from behind the F --- */
.oa-lantern-cord { height: .2em; color: #d9a441; }
.oa-lantern { position: absolute; width: .17em; height: .32em; margin-left: -.085em; transform-origin: 50% 0; animation: oa-sway 3.4s ease-in-out infinite alternate; }
.oa-lantern.is-big { width: .21em; height: .39em; margin-left: -.105em; }
.oa-lantern svg { filter: drop-shadow(0 .02em .05em rgba(255, 90, 60, .45)); }
.oa-fu { top: calc((var(--cap-top) + var(--base)) / 2 + .06em); left: calc(var(--ink-l) + var(--ink-w) / 2); display: grid; place-items: center; width: .2em; height: .2em; margin: -.1em 0 0 -.1em; border: .007em solid #f3c35c; background: radial-gradient(circle at 40% 35%, #e8473f, #b71c1f); box-shadow: 0 .02em .06em rgba(80, 0, 0, .45); transform: rotate(45deg); }
.oa-fu b { font-size: .13em; font-family: "Songti SC", "STKaiti", serif; font-weight: 700; color: #f8cf6a; transform: rotate(-45deg); }
.oa-plum { left: calc(var(--ink-l) + var(--ink-w) - .14em); top: calc(var(--base) - .4em); width: .62em; height: .26em; transform: rotate(-8deg); transform-origin: 0 100%; }

/* --- Visit: one clothesline tied from E to F, polaroids clipped onto it --- */
.oa-clothesline { height: .14em; color: rgba(232, 216, 190, .8); }
.oa-polaroid { position: absolute; width: .15em; margin-left: -.075em; padding: .01em .01em 0; background: #f7f3ea; box-shadow: 0 .015em .03em rgba(0, 0, 0, .4); transform: rotate(var(--tilt)); transform-origin: 50% 0; animation: oa-polaroid 4.2s ease-in-out infinite alternate; }
@keyframes oa-polaroid { from { transform: rotate(calc(var(--tilt) - 3deg)); } to { transform: rotate(calc(var(--tilt) + 3deg)); } }
.oa-peg { position: absolute; top: -.016em; left: 50%; width: .016em; height: .036em; margin-left: -.008em; border-radius: .003em; background: linear-gradient(90deg, #c49a6c, #a77a4b); box-shadow: 0 .003em .006em rgba(0,0,0,.35); }
.oa-photo { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: #2a2c2e; }
.oa-photo img { width: 100%; height: 100%; object-fit: cover; }
.oa-polaroid.is-empty .oa-photo { color: rgba(255, 255, 255, .45); background: linear-gradient(160deg, #3b4247, #24292d 60%, #3a3226); }
.oa-polaroid.is-empty .oa-photo svg { width: 38%; height: 38%; }
.oa-caption { display: grid; place-items: center; height: .034em; }
.oa-caption b { font-size: .016em; font-family: "Kaiti SC", "STKaiti", "KaiTi", serif; font-weight: 600; color: #5a5148; white-space: nowrap; }
.oa-polaroid.is-empty .oa-caption b { font-size: .015em; }
.oa-balloons { top: calc(var(--cap-top) - .448em); height: .448em; }
.oa-caption b { font-size: .018em; }
.oa-polaroid.is-empty .oa-caption b { font-size: .016em; }
/* 福 hangs from the middle of the cord by its top corner, swaying with it. */
.oa-fu-hang { position: absolute; width: 0; height: 0; transform-origin: 0 0; animation: oa-sway 3.8s ease-in-out infinite alternate; animation-delay: -.8s; }
.oa-fu-cord { position: absolute; top: 0; left: -.75px; width: 1.5px; height: .05em; background: #d9a441; }
.oa-fu-hang .oa-fu { top: .05em; left: 0; margin: 0 0 0 -.1em; }
.oa-fu-hang .oa-fu { top: calc(.05em + .0414em); }
.oa-fu-tassel { position: absolute; top: calc(.05em + .278em); left: -.009em; width: .018em; height: .07em; border-radius: 0 0 .006em .006em; background: linear-gradient(#e3b54d 0 18%, #c32a28 18%); }
.oa-fu-hang .oa-fu { position: absolute; }
/* 菜品上新 card: the photo runs edge to edge (no pale frame around it), with an add button below. */
.news-image-dialog { width: min(calc(100% - 3rem), 21rem); overflow: hidden; }
.news-image-sheet { padding: 0; }
.news-image-frame { aspect-ratio: 1; border-radius: 0; background: transparent; }
.news-image-frame img { object-fit: cover; }
.news-image-info { display: grid; gap: .2rem; padding: .9rem 1rem 1rem; }
.news-image-info .news-image-label { margin: 0; }
.news-image-info h2 { margin: 0 0 .55rem; }
.news-image-add { width: 100%; justify-content: space-between; }
.news-image-add b { font-variant-numeric: tabular-nums; }
.news-image-add:disabled { opacity: .5; }
.news-image-dialog .news-image-close { top: .7rem; right: .7rem; color: #fff; background: rgba(18, 18, 22, .62); box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* ---------- 限定 colour carried through the customer side ----------
   The theme's accent lives on <body> too, so the cart sheet and dialogs (outside .customer-view) share it.
   Only applies on the customer view; admin keeps its own palette. */
body[data-special-theme="birthday"] { --special-accent: #f0b4c8; --special-accent-rgb: 240, 180, 200; }
body[data-special-theme="halloween"] { --special-accent: #ffb25e; --special-accent-rgb: 255, 178, 94; }
body[data-special-theme="christmas"] { --special-accent: #f1d9a4; --special-accent-rgb: 241, 217, 164; }
body[data-special-theme="newyear"] { --special-accent: #f3d88f; --special-accent-rgb: 243, 216, 143; }
body[data-special-theme="spring"] { --special-accent: #ffc56b; --special-accent-rgb: 255, 197, 107; }
body[data-special-theme="visit"] { --special-accent: #a9d3df; --special-accent-rgb: 169, 211, 223; }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) :is(.eyebrow.dark, .glass-sheet .eyebrow, .cart-sheet .eyebrow.dark, .menu-news-theme, .menu-news-list em, .dish-update-badge) { color: var(--special-text, var(--special-accent)); }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) :is(.category-chip.is-active, .customer-dock .nav-link.is-active, .customer-order-filters button.is-active) {
  color: #fff;
  border-color: rgba(var(--special-accent-rgb), .55);
  background: rgba(var(--special-accent-rgb), .16);
  box-shadow: inset 0 1px rgba(var(--special-accent-rgb), .4), 0 5px 18px rgba(var(--special-accent-rgb), .14);
}
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) .category-chip.is-active span { color: var(--special-text, var(--special-accent)); }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) .mobile-nav > button.is-active { color: var(--special-text, var(--special-accent)); }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) .dish-topline strong { color: var(--special-text, var(--special-accent)); }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) :is(.add-button, .card-quantity-control button:last-child) { color: var(--special-on, #17171a); background: var(--special-accent); box-shadow: 0 4px 14px rgba(var(--special-accent-rgb), .35); }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) .meal-fab b,
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) .menu-news-list button.is-unread::after { color: var(--special-on, #17171a); background: var(--special-accent); box-shadow: 0 3px 10px rgba(var(--special-accent-rgb), .45); }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) :is(.hero-button.is-primary, .customer-view .primary-button, .glass-sheet .primary-button, .cart-sheet .primary-button) {
  color: var(--special-on, #17171a);
  background: var(--special-button, linear-gradient(180deg, #fffaf4, rgb(var(--special-accent-rgb)) 140%));
  box-shadow: inset 0 1px rgba(255,255,255,.45), 0 8px 22px rgba(var(--special-accent-rgb), .28);
}
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) :is(.customer-header.glass-bar, .customer-dock, .mobile-nav) { border-color: rgba(var(--special-accent-rgb), .22); }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) :is(.customer-order-card, .dish-card, .menu-news) { border-color: rgba(var(--special-accent-rgb), .13); }

/* Sliding tab highlight (placeNavIndicators). Only transform animates; the old per-tab backgrounds are off. */
.customer-view :is(.mobile-nav, .customer-dock) > .nav-indicator {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.135);
  box-shadow: inset 0 1px rgba(255,255,255,.22), 0 5px 18px rgba(0,0,0,.14);
  pointer-events: none;
}
.customer-view .mobile-nav > .nav-indicator { border-radius: 15px; }
.customer-view :is(.mobile-nav, .customer-dock) > .nav-indicator.is-ready { transition: transform .26s cubic-bezier(0.32, 0.72, 0, 1); }
.customer-view :is(.mobile-nav, .customer-dock) > .nav-indicator[hidden] { display: none; }
.customer-view .customer-dock .nav-link.is-active { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) .customer-dock .nav-link.is-active { background: transparent; box-shadow: none; border-color: transparent; }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) .customer-view :is(.mobile-nav, .customer-dock) > .nav-indicator { background: rgba(var(--special-accent-rgb), .18); box-shadow: inset 0 1px rgba(var(--special-accent-rgb), .45), 0 5px 18px rgba(var(--special-accent-rgb), .16); }
@media (prefers-reduced-motion: reduce) { .customer-view :is(.mobile-nav, .customer-dock) > .nav-indicator.is-ready { transition: none; } }

/* Festival palettes. The festival colour sets the mood (page glow, selected glass); fills stay refined:
   Christmas = ivory buttons with pine text and cranberry details, Spring = gold-foil buttons with lacquer-red
   text on a lacquer-red glow, New Year = champagne gold on midnight blue.
   --special-accent fills buttons/plus, --special-on is text on it, --special-text colours words,
   --special-chip-rgb tints selected glass, --special-dot colours small badges. */
body[data-special-theme="christmas"], body[data-special-theme="christmas"] .customer-view { --special-accent: #f4efe2; --special-accent-rgb: 244, 239, 226; --special-on: #1f4a36; --special-text: #e6cf98; --special-button: linear-gradient(180deg, #fdfaf3, #ebe3cf); --special-chip-rgb: 46, 128, 86; --special-dot: #d04a55; --special-dot-on: #fff; }
body[data-special-theme="spring"], body[data-special-theme="spring"] .customer-view { --special-accent: #f3dcaa; --special-accent-rgb: 243, 220, 170; --special-on: #8a1c1c; --special-text: #f0d39a; --special-button: linear-gradient(180deg, #fff6e2, #efd6a0); --special-chip-rgb: 196, 42, 38; --special-dot: #e0463b; --special-dot-on: #fff3d6; }
body[data-special-theme="newyear"], body[data-special-theme="newyear"] .customer-view { --special-accent: #f2c94c; --special-accent-rgb: 242, 201, 76; --special-on: #f6d77a; --special-text: #f2c94c; --special-button: linear-gradient(180deg, #2b2a2f, #0d0d10); --special-chip-rgb: 242, 201, 76; --special-dot: #f2c94c; --special-dot-on: #111114; }
body[data-special-theme="halloween"], body[data-special-theme="halloween"] .customer-view { --special-on: #1f1029; --special-text: #ffb25e; }
.customer-view[data-special-theme="christmas"] { background: radial-gradient(ellipse 70% 38% at 51% 8%, rgba(34, 98, 66, .42), transparent 72%), radial-gradient(ellipse 34% 26% at 90% 44%, rgba(150, 36, 48, .14), transparent 78%), radial-gradient(ellipse 36% 28% at 8% 70%, rgba(34, 98, 66, .2), transparent 78%), var(--enf-bg); }
.customer-view[data-special-theme="spring"] { background: radial-gradient(ellipse 70% 38% at 51% 8%, rgba(138, 22, 22, .5), transparent 72%), radial-gradient(ellipse 36% 28% at 88% 50%, rgba(214, 156, 64, .14), transparent 78%), radial-gradient(ellipse 34% 27% at 10% 72%, rgba(138, 22, 22, .24), transparent 78%), var(--enf-bg); }
.customer-view[data-special-theme="newyear"] { background: radial-gradient(ellipse 70% 40% at 51% 8%, rgba(214, 170, 60, .22), transparent 70%), radial-gradient(ellipse 36% 28% at 12% 40%, rgba(242, 201, 76, .1), transparent 78%), radial-gradient(ellipse 34% 27% at 88% 70%, rgba(242, 201, 76, .08), transparent 78%), #070708; }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) .special-menu-banner p { color: var(--special-text, var(--special-accent)); }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) :is(.category-chip.is-active, .customer-dock .nav-link.is-active, .customer-order-filters button.is-active) {
  border-color: rgba(var(--special-chip-rgb, var(--special-accent-rgb)), .55);
  background: rgba(var(--special-chip-rgb, var(--special-accent-rgb)), .22);
  box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 5px 18px rgba(var(--special-chip-rgb, var(--special-accent-rgb)), .18);
}
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) .customer-view :is(.mobile-nav, .customer-dock) > .nav-indicator { background: rgba(var(--special-chip-rgb, var(--special-accent-rgb)), .24); box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 5px 18px rgba(var(--special-chip-rgb, var(--special-accent-rgb)), .18); }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) .meal-fab b,
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) .menu-news-list button.is-unread::after { color: var(--special-dot-on, var(--special-on, #17171a)); background: var(--special-dot, var(--special-accent)); box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }

/* New Year's Eve is black tie: the add/plus buttons are gold discs, the big buttons glossy black with gold. */
:root body[data-view="customer"][data-special-theme="newyear"]:not([data-special-theme=""]) :is(.add-button, .card-quantity-control button:last-child) { color: #f2c94c; background: linear-gradient(180deg, #2b2a2f, #0d0d10); box-shadow: inset 0 0 0 1px rgba(242, 201, 76, .8), inset 0 1px rgba(255, 230, 150, .35), 0 4px 14px rgba(242, 201, 76, .22); }
body[data-view="customer"][data-special-theme="newyear"] :is(.hero-button.is-primary, .customer-view .primary-button, .glass-sheet .primary-button, .cart-sheet .primary-button) { border: 1px solid rgba(242, 201, 76, .7); box-shadow: inset 0 1px rgba(255, 230, 150, .35), 0 8px 22px rgba(242, 201, 76, .18); }
/* Christmas: cranberry velvet buttons, pine-green selections, gold lettering. */

.oa-lantern { width: .2em; height: .26em; margin-left: -.1em; }

/* 限定 cursors: same arrow and hotspot as the default cursor, recoloured per theme; a small emblem
   (candle, pumpkin, tree, champagne, lantern, polaroid) joins it over clickable things. Customer side only. */
@media (hover: hover) and (pointer: fine) {
  body[data-view="customer"][data-special-theme="birthday"] {
    --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='%23fff5f0' stroke='%23b8506f' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 5 4, default;
    --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='%23fff5f0' stroke='%23b8506f' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cg filter='url%28%23s%29'%3E%3Crect x='23.2' y='20.6' width='3.6' height='9.4' rx='1' fill='%23fff7f1' stroke='%23b8506f' stroke-width='1'/%3E%3Cpath d='M23.6 23.2l2.8-1.6M23.6 26.2l2.8-1.6M23.6 29.2l2.8-1.6' stroke='%23f08aa8' stroke-width='1.1'/%3E%3Cpath d='M25 14.6c1.3 1.5 1.9 2.6 1.9 3.5a1.9 1.9 0 0 1-3.8 0c0-.9.6-2 1.9-3.5z' fill='%23ffcf5a' stroke='%23e5862c' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") 5 4, pointer;
    cursor: var(--cursor-default);
  }
  body[data-view="customer"][data-special-theme="halloween"] {
    --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='%232b1838' stroke='%23ff9a3c' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 5 4, default;
    --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='%232b1838' stroke='%23ff9a3c' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cg filter='url%28%23s%29'%3E%3Cpath d='M25 18.8c.1-1.2.6-2 1.6-2.4' stroke='%2358723a' stroke-width='1.3' stroke-linecap='round' fill='none'/%3E%3Cellipse cx='25' cy='24.6' rx='6' ry='5.2' fill='%23f0862e' stroke='%237a3510' stroke-width='.9'/%3E%3Cpath d='M25 19.6c-1 1.4-1.4 3.2-1.4 5s.4 3.6 1.4 5M25 19.6c1 1.4 1.4 3.2 1.4 5s-.4 3.6-1.4 5' stroke='%23b9581a' stroke-width='.7' fill='none'/%3E%3Cpath d='M22.2 23.4l1.3-1.5.9 1.6zM27.8 23.4l-1.3-1.5-.9 1.6zM21.9 25.9c1.9 1.4 4.3 1.4 6.2 0l-.7 1.5-.9-.6-.8.9-.8-.9-.8.9-.8-.9-.8.6z' fill='%23ffd36b'/%3E%3C/g%3E%3C/svg%3E") 5 4, pointer;
    cursor: var(--cursor-default);
  }
  body[data-view="customer"][data-special-theme="christmas"] {
    --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cdefs%3E%3ClinearGradient id='pine' x1='0' y1='0' x2='.6' y2='1'%3E%3Cstop offset='0' stop-color='%233f9465'/%3E%3Cstop offset='1' stop-color='%231b4d33'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='url%28%23pine%29' stroke='%23fbf3e2' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 5 4, default;
    --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cdefs%3E%3ClinearGradient id='pine' x1='0' y1='0' x2='.6' y2='1'%3E%3Cstop offset='0' stop-color='%233f9465'/%3E%3Cstop offset='1' stop-color='%231b4d33'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='url%28%23pine%29' stroke='%23fbf3e2' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cg filter='url%28%23s%29'%3E%3Cpath d='M25.5 17.6l-3.6 4.6h1.8l-3.3 4.2h2l-2.9 3.5h12l-2.9-3.5h2l-3.3-4.2h1.8z' fill='%232f8a57' stroke='%23163d29' stroke-width='.8' stroke-linejoin='round'/%3E%3Crect x='24.6' y='29.9' width='1.8' height='1.6' fill='%237a4a2a'/%3E%3Cpath d='M25.5 14.6l.6 1.3 1.4.2-1 1 .25 1.4-1.25-.7-1.25.7.25-1.4-1-1 1.4-.2z' fill='%23f2c94c' stroke='%239a6a16' stroke-width='.4'/%3E%3Ccircle cx='24.2' cy='22.9' r='.75' fill='%23e5434f'/%3E%3Ccircle cx='27.3' cy='25.4' r='.75' fill='%23f2c94c'/%3E%3Ccircle cx='23.4' cy='27.7' r='.75' fill='%23e5434f'/%3E%3Ccircle cx='28.2' cy='28.4' r='.7' fill='%23fbf3e2'/%3E%3C/g%3E%3C/svg%3E") 5 4, pointer;
    cursor: var(--cursor-default);
  }
  body[data-view="customer"][data-special-theme="newyear"] {
    --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cdefs%3E%3ClinearGradient id='gold' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff1b8'/%3E%3Cstop offset='.5' stop-color='%23f2c94c'/%3E%3Cstop offset='1' stop-color='%23c99417'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='url%28%23gold%29' stroke='%23111114' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 5 4, default;
    --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cdefs%3E%3ClinearGradient id='gold' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff1b8'/%3E%3Cstop offset='.5' stop-color='%23f2c94c'/%3E%3Cstop offset='1' stop-color='%23c99417'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='url%28%23gold%29' stroke='%23111114' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cg filter='url%28%23s%29'%3E%3Cg transform='rotate%28-14 22.6 26%29'%3E%3Cpath d='M20.3 17.2h4.6l-.5 5.2a1.8 1.8 0 0 1-3.6 0z' fill='%23f6d77a' stroke='%23111114' stroke-width='.8' stroke-linejoin='round'/%3E%3Cpath d='M20.700000000000003 19.4h3.8' stroke='%23fff1b8' stroke-width='.6'/%3E%3Cpath d='M22.6 24.2v4.4M20.8 28.8h3.6' stroke='%23111114' stroke-width='.9' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='rotate%2814 28.2 26%29'%3E%3Cpath d='M25.9 17.2h4.6l-.5 5.2a1.8 1.8 0 0 1-3.6 0z' fill='%23f6d77a' stroke='%23111114' stroke-width='.8' stroke-linejoin='round'/%3E%3Cpath d='M26.3 19.4h3.8' stroke='%23fff1b8' stroke-width='.6'/%3E%3Cpath d='M28.2 24.2v4.4M26.4 28.8h3.6' stroke='%23111114' stroke-width='.9' stroke-linecap='round'/%3E%3C/g%3E%3Ccircle cx='24.4' cy='14.6' r='.6' fill='%23fff1b8'/%3E%3Ccircle cx='26.6' cy='13.4' r='.45' fill='%23fff1b8'/%3E%3Cpath d='M25.4 15.2c.2 1 .5 1.3 1.5 1.5-1 .2-1.3.5-1.5 1.5-.2-1-.5-1.3-1.5-1.5 1-.2 1.3-.5 1.5-1.5z' fill='%23f2c94c' stroke='%23111114' stroke-width='.4'/%3E%3C/g%3E%3C/svg%3E") 5 4, pointer;
    cursor: var(--cursor-default);
  }
  body[data-view="customer"][data-special-theme="spring"] {
    --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='%23d6312b' stroke='%23f3c35c' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 5 4, default;
    --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='%23d6312b' stroke='%23f3c35c' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cg filter='url%28%23s%29' transform='rotate%2810 25.5 23.5%29'%3E%3Crect x='20.6' y='16.8' width='9.8' height='13.2' rx='1.3' fill='%23d42a24' stroke='%237e1414' stroke-width='.8'/%3E%3Cpath d='M20.6 18.4c1.6 2.6 3.1 3.8 4.9 3.8s3.3-1.2 4.9-3.8' fill='%23b81e1a' stroke='%237e1414' stroke-width='.7'/%3E%3Ccircle cx='25.5' cy='22.4' r='1.9' fill='%23f3c35c' stroke='%239a6a16' stroke-width='.5'/%3E%3Cpath d='M24.7 22.4h1.6M25.5 21.6v1.6' stroke='%239a6a16' stroke-width='.45'/%3E%3Cpath d='M22.2 27.4h6.6' stroke='%23f3c35c' stroke-width='.6' stroke-opacity='.8'/%3E%3C/g%3E%3C/svg%3E") 5 4, pointer;
    cursor: var(--cursor-default);
  }
  body[data-view="customer"][data-special-theme="visit"] {
    --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='%23e3f1f6' stroke='%232f5a6b' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 5 4, default;
    --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1.2' stdDeviation='1.1' flood-color='%23000' flood-opacity='.32'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url%28%23s%29' d='M5.5 4.2c0-.9 1-1.4 1.7-.8l14.6 12.3c.7.6.3 1.7-.6 1.8l-5.9.5 3.4 7.3c.3.6 0 1.3-.6 1.5l-2.1.9c-.6.3-1.3 0-1.5-.6l-3.3-7.4-4.1 4.2c-.6.7-1.7.2-1.7-.7V4.2z' fill='%23e3f1f6' stroke='%232f5a6b' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cg filter='url%28%23s%29' transform='rotate%288 25 24%29'%3E%3Crect x='19.6' y='17.4' width='10.8' height='12.6' rx='.8' fill='%23fbf8f1' stroke='%232f5a6b' stroke-width='.8'/%3E%3Crect x='20.9' y='18.7' width='8.2' height='7.6' fill='%239cc6d4'/%3E%3Cpath d='M20.9 24.8l2.6-2.4 2 1.7 1.6-1.2 2 1.9v1.5h-8.2z' fill='%234f7f92'/%3E%3Ccircle cx='27.2' cy='20.6' r='1' fill='%23fff3c4'/%3E%3Crect x='24.2' y='16.2' width='1.6' height='2.6' rx='.4' fill='%23b9875a'/%3E%3C/g%3E%3C/svg%3E") 5 4, pointer;
    cursor: var(--cursor-default);
  }
}

/* Party cart: who ordered each dish, as stacked avatars */
.cart-owners { display: inline-flex; align-items: center; gap: .35rem; margin-left: .45rem; vertical-align: middle; }
.cart-owner-avatars { display: inline-flex; }
.cart-owner-avatars i { display: grid; place-items: center; width: 1.05rem; height: 1.05rem; margin-left: -.32rem; border-radius: 50%; color: #1b1b1f; font-size: .5rem; font-style: normal; font-weight: 800; box-shadow: 0 0 0 1.5px #1c1c20; }
.cart-owner-avatars i:first-child { margin-left: 0; }
.cart-owner-avatars i.is-more { color: #f5f5f7; background: #3a3a40; }
.cart-owner-text { color: #aac5ef; font-size: .6rem; font-weight: 650; }

/* Checkout confetti (celebrateCheckout) */
.success-dialog { overflow: visible; }
.confetti-layer { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.confetti { position: absolute; width: 6px; height: 10px; border-radius: 1.5px; will-change: transform, opacity; }
.confetti.is-sprinkle { width: 9px; height: 3px; border-radius: 99px; }
.confetti.is-snow { width: 6px; height: 6px; border-radius: 50%; }
.confetti.is-flake { width: 7px; height: 7px; border-radius: 1px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
/* Five-star sparkle (sparkleStar) */
[data-star] { position: relative; }
.star-sparkle { position: absolute; top: 50%; left: 50%; width: 2.4em; height: 2.4em; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 214, 120, .55) 0 18%, transparent 19%), conic-gradient(from 0deg, transparent 0 8%, rgba(255, 214, 120, .9) 9% 11%, transparent 12% 33%, rgba(255, 214, 120, .9) 34% 36%, transparent 37% 58%, rgba(255, 214, 120, .9) 59% 61%, transparent 62% 83%, rgba(255, 214, 120, .9) 84% 86%, transparent 87%); -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%); mask: radial-gradient(circle, transparent 38%, #000 40%); }
/* Heart flying to 收藏 (flyHeartToFavorites) */
.flying-heart { position: fixed; z-index: 400; width: 1.3rem; height: 1.3rem; color: var(--special-dot, #ff6b8a); pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.flying-heart svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }

/* F. Hero parallax */
.menu-hero::before { transform: translate(-50%, calc(-50% + var(--hero-parallax, 0px))); }
.oa-word { transform: translate(-50%, calc(-50% + var(--hero-parallax, 0px))); }

/* E. Pull to refresh with ENF */
.pull-refresh { position: fixed; z-index: 120; top: calc(env(safe-area-inset-top, 0px) + .4rem); left: 50%; display: flex; gap: .1rem; padding: .45rem .9rem; border-radius: 999px; color: #f5f5f7; background: rgba(20, 20, 24, .72); box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 1.05rem; font-weight: 900; letter-spacing: -.04em; opacity: 0; transform: translate(-50%, -40px); pointer-events: none; }
.pull-refresh span { display: inline-block; opacity: .15; }
.pull-refresh.is-armed span { color: var(--special-text, #ffdf93); }
.pull-refresh.is-loading span { opacity: 1 !important; transform: none !important; animation: pull-wave .7s ease-in-out infinite; }
.pull-refresh.is-loading span:nth-child(2) { animation-delay: .1s; }
.pull-refresh.is-loading span:nth-child(3) { animation-delay: .2s; }
@keyframes pull-wave { 50% { transform: translateY(-5px); } }

/* D. Long-press dish peek */
.dish-card { -webkit-touch-callout: none; }
.dish-peek { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 1.5rem; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s ease-out; pointer-events: none; }
.dish-peek.is-open { opacity: 1; }
.dish-peek-card { width: min(100%, 21rem); overflow: hidden; border-radius: 22px; background: #1c1c20; box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.1); transform: scale(.9); transition: transform .26s cubic-bezier(0.32, 0.72, 0, 1); }
.dish-peek.is-open .dish-peek-card { transform: scale(1); }
.dish-peek-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dish-peek-body { display: grid; gap: .4rem; padding: .9rem 1rem 1.05rem; color: #f5f5f7; }
.dish-peek-top { display: flex; justify-content: space-between; gap: .8rem; font-size: 1rem; }
.dish-peek-top strong { color: var(--special-text, #ffdf93); }
.dish-peek-rating { margin: 0; color: #ffd36b; font-size: .72rem; }
.dish-peek-recipe { margin: 0; color: rgba(240,240,245,.72); font-size: .72rem; line-height: 1.6; }
.dish-peek blockquote { margin: .2rem 0 0; padding: .55rem .7rem; border-radius: 12px; background: rgba(255,255,255,.06); color: rgba(240,240,245,.86); font-size: .72rem; line-height: 1.6; }
.dish-peek cite { display: block; margin-top: .2rem; color: rgba(240,240,245,.5); font-size: .62rem; font-style: normal; }
@media (prefers-reduced-motion: reduce) { .dish-peek-card { transform: none !important; transition: none; } }

/* Wish board +1 */
.wish-board { grid-column: 1 / -1; }
#wish-board-list { display: grid; gap: .45rem; }
.wish-vote { display: inline-flex; align-items: center; gap: .35rem; flex: none; min-height: 2rem; padding: 0 .7rem; border-radius: 999px; color: rgba(245,245,247,.86); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-size: .7rem; font-weight: 750; transition: background .18s, color .18s, box-shadow .18s; }
.wish-vote b { font-variant-numeric: tabular-nums; }
.wish-vote.is-mine { color: rgba(245,245,247,.6); background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.wish-vote.is-voted { color: var(--special-on, #17171a); background: var(--special-accent, #ffdf93); box-shadow: none; }

/* Birthday */
.confetti-layer.is-page { position: fixed; z-index: 250; }
.birthday-preview { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 3.4rem; margin: .1rem 0 .9rem; padding: .55rem .6rem .55rem 1rem; border-radius: 18px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.birthday-preview strong { color: rgba(240,240,245,.5); font-size: 1rem; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.birthday-preview strong.is-set { color: #fff; font-size: 1.45rem; font-weight: 700; }
.birthday-clear { min-height: 2rem; padding: 0 .85rem; border-radius: 999px; color: rgba(240,240,245,.75); background: rgba(255,255,255,.08); font-size: .68rem; }
.birthday-clear[hidden] { display: none; }
.birthday-label { margin: 0 0 .45rem; color: rgba(240,240,245,.55); font-size: .64rem; font-weight: 650; letter-spacing: .06em; }
.birthday-grid { display: grid; gap: .32rem; margin-bottom: .9rem; }
.birthday-grid.is-months { grid-template-columns: repeat(6, 1fr); }
.birthday-grid.is-days { grid-template-columns: repeat(7, 1fr); margin-bottom: .2rem; }
.birthday-grid button { min-height: 2.25rem; padding: 0; border-radius: 12px; color: rgba(245,245,247,.88); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); font-size: .74rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .16s, color .16s, transform .16s cubic-bezier(.23,1,.32,1); }
.birthday-grid button:active:not(:disabled) { transform: scale(.94); }
.birthday-grid button.is-selected { color: #2a1820; background: #f3b7c9; box-shadow: 0 4px 14px rgba(243,183,201,.3); }
.birthday-grid button:disabled { opacity: .22; }
@media (hover: hover) and (pointer: fine) { .birthday-grid button:not(:disabled):not(.is-selected):hover { background: rgba(255,255,255,.12); } }
.birthday-dialog .primary-button { margin-top: .8rem; }
.profile-action small { margin-left: .4rem; color: rgba(240,240,245,.55); font-size: .66rem; font-weight: 500; }
#open-birthday-dialog > svg:first-child { fill: none; }

/* Year in review */
.year-summary-dialog { width: min(440px, calc(100vw - 32px)); }
.year-summary-body { padding: 1.4rem 1.3rem 1.2rem; }
/* Sized from the sheet's own max height (40rem or the screen), so the save button below always fits.
   will-change keeps the big picture on its own layer, so Safari doesn't repaint it as the sheet's entrance ends. */
.year-summary-image { display: block; width: min(100%, calc((min(40rem, 100dvh - 2rem) - 12.5rem) * .75)); margin-inline: auto; aspect-ratio: 3 / 4; border-radius: 18px; margin-bottom: 1rem; box-shadow: 0 18px 40px rgba(36,28,22,.16); -webkit-touch-callout: default; user-select: auto; will-change: transform; }

/* Dish limited picker: same cards as the settings page */
.dish-occasions .dish-occasion-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: .75rem; }
.dish-occasions .dish-occasion-cards label,
.dish-occasions .dish-festival-cards label { display: block; font-size: inherit; }
.dish-occasions .dish-occasion-cards input,
.dish-occasions .dish-festival-cards input { position: absolute; width: auto; height: auto; opacity: 0; pointer-events: none; }
.dish-occasions .dish-occasion-cards label > span { min-height: 0; }
.dish-occasions .dish-festival-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin-top: .7rem; padding: .7rem; border-radius: 15px; background: rgba(178,134,47,.07); }
.dish-occasions .dish-festival-cards[hidden] { display: none; }
.dish-festival-cards > p { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: .6rem; margin: 0 0 .1rem; color: #71736c; font-size: .62rem; font-weight: 650; }
.dish-festival-cards > p em { color: #a07a2c; font-style: normal; font-weight: 600; }
.dish-occasions .dish-festival-cards:not([hidden]) { animation: festival-reveal .26s cubic-bezier(.2,.8,.2,1); }
@keyframes festival-reveal { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 560px) {
  .dish-occasions .dish-occasion-cards { gap: .38rem; }
  .dish-occasions .dish-occasion-cards label > span { padding: .6rem; }
  .dish-occasions .dish-festival-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .dish-occasions .dish-festival-cards:not([hidden]) { animation: none; } }
#dish-form[data-mode="limited"] .dish-limited-field > span { display: none; }

/* Favorite hearts follow the active limited theme (the flying heart lives on body). */
body[data-special-theme="birthday"] { --special-heart: #f49ab6; }
body[data-special-theme="halloween"] { --special-heart: #ff9838; }
body[data-special-theme="christmas"] { --special-heart: #e0525d; }
body[data-special-theme="newyear"] { --special-heart: #f2c94c; }
body[data-special-theme="spring"] { --special-heart: #f04b3e; }
body[data-special-theme="visit"] { --special-heart: #8fcbdc; }
body[data-special-theme]:not([data-special-theme=""]) .favorite-button.is-active { color: var(--special-heart, #fff); }
body[data-special-theme]:not([data-special-theme=""]) .favorite-button.is-active svg { fill: var(--special-heart, #fff); }
body[data-special-theme]:not([data-special-theme=""]) .flying-heart { color: var(--special-heart, var(--special-dot, #ff6b8a)); }

/* Haptic helper (iOS switch tick); kept rendered but invisible and inert. */
.haptic-switch { position: fixed; left: 0; bottom: 0; z-index: -1; width: 1px; height: 1px; overflow: hidden; opacity: .01; pointer-events: none; }

/* Home ENF parallax on the compositor: no scroll listener, no per-frame style recalc. */
.menu-hero::before, .oa-word { will-change: transform; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .menu-hero::before, .oa-word { animation: hero-parallax linear both; animation-timeline: scroll(root block); animation-range: 0px 800px; }
  }
}
@keyframes hero-parallax {
  from { transform: translate(-50%, -50%); }
  to { transform: translate(-50%, calc(-50% + 224px)); }
}

/* Long-pressing a dish opens our peek, not the system image preview / text selection. */
.dish-card, .dish-card img, .dish-peek, .dish-peek img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.dish-card img, .dish-peek img { -webkit-user-drag: none; }

/* Order status tabs: one gliding pill (like the bottom nav) instead of per-button backgrounds. */
.customer-order-filters { position: relative; }
.customer-order-filters > button { position: relative; z-index: 1; background: transparent; }
.customer-order-filters > .filter-indicator { position: absolute; z-index: 0; top: 0; left: 0; border-radius: 999px; background: #f2f2f5; box-shadow: 0 5px 14px rgba(0,0,0,.2); pointer-events: none; opacity: 0; }
.customer-order-filters > .filter-indicator.is-ready { opacity: 1; transition: transform .26s cubic-bezier(0.32, 0.72, 0, 1), width .26s cubic-bezier(0.32, 0.72, 0, 1); }
body .customer-order-filters.has-indicator > button.is-active,
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) .customer-order-filters.has-indicator > button.is-active { background: transparent; border-color: transparent; box-shadow: none; transition: color .2s; }
@media (hover: hover) and (pointer: fine) { body .customer-order-filters.has-indicator > button.is-active:hover { background: transparent; } }
body[data-view="customer"][data-special-theme]:not([data-special-theme=""]) .customer-order-filters > .filter-indicator { background: rgba(var(--special-chip-rgb, var(--special-accent-rgb)), .24); box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 5px 18px rgba(var(--special-chip-rgb, var(--special-accent-rgb)), .18); }
@media (prefers-reduced-motion: reduce) { .customer-order-filters > .filter-indicator.is-ready { transition: none; } }

/* Star rating: start empty, ask for a tap; the pop runs on the star's own layer so it stays smooth on phones. */
.star-hint { margin: 0 0 .2rem; color: rgba(240,240,245,.55); font-size: .66rem; transition: opacity .2s; }
.star-hint:has(+ .star-picker.is-rated) { opacity: 0; }
.star-picker button:active { transform: none; }
.star-picker svg { will-change: transform; transform-origin: 50% 50%; }
.star-sparkle { background: none; border: 2px solid rgba(255, 214, 120, .9); box-shadow: 0 0 0 4px rgba(255, 214, 120, .18); -webkit-mask: none; mask: none; will-change: transform, opacity; }

/* Admin wish cards: the +1 count is the card's mark. */
.request-mark.request-votes { grid-template-rows: auto auto; align-content: center; gap: .05rem; width: 3.1rem; height: 3.1rem; color: #8d6041; }
.request-votes svg { width: .78rem; height: .78rem; opacity: .7; }
.request-votes b { font-size: 1.05rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.request-votes small { display: none; }
.request-votes:not(.has-votes) { color: #a89a8a; background: linear-gradient(145deg, #f3efe9, #e9e2d8); }
.request-votes.has-votes { color: #fff; background: linear-gradient(145deg, #e0896a, #c25d45); box-shadow: 0 6px 16px rgba(194, 93, 69, .25); }

/* Wish board: number-only vote pill; keep the count badge clear of the first card. */
.wish-board #wish-board-list { margin-top: .75rem; }
.wish-board .request-history-heading { min-height: 1.3rem; }
.wish-vote { justify-content: center; min-width: 2.6rem; }
.wish-vote b { font-size: .78rem; }

/* iOS haptic pad: an invisible switch label slipped under the finger for one tap. */
.haptic-pad { position: absolute; z-index: 2147483647; width: 44px; height: 44px; margin: 0; padding: 0; opacity: 0; pointer-events: auto; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.haptic-pad input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }

/* Rolling vote numbers */
.wish-vote b, .my-wish-votes i { display: inline-block; font-style: normal; font-variant-numeric: tabular-nums; }
.wish-vote { transition: background .2s, color .2s, box-shadow .2s, transform .16s cubic-bezier(.23,1,.32,1); }
.wish-vote:active { transform: scale(.94); }

/* Phone cart sheet: keep the drag on the compositor — no live backdrop blur under a moving sheet or a fading scrim. */
@media (max-width: 800px) {
  .cart-sheet { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(145deg, #26262b, #111114); }
  .cart-sheet.is-open { will-change: transform; }
  .scrim { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0,0,0,.62); }
  .cart-sheet .sheet-handle { flex: none; }
  .cart-sheet .sheet-header { flex: none; }
}

/* The scrim follows the finger exactly while the cart is dragged; its fade transition only runs on release. */
.scrim.is-dragging { transition: none; }

/* Party album: parties stacked, photos as tilted polaroids; one flies to the centre when tapped. */
.party-album-dialog { width: min(calc(100% - 1.5rem), 60rem); max-height: calc(100dvh - 1.5rem); height: calc(100dvh - 1.5rem); }
.party-album-dialog[open] { display: block; }
.party-album-sheet { display: flex; flex-direction: column; gap: 1rem; height: 100%; padding: 1.3rem 1.2rem 1.6rem; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; }
.party-album-sheet > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.party-album-sheet > header h2 { margin: 0; font-size: 1.25rem; }
.party-album-list { display: grid; gap: 1.4rem; }
.album-party { display: grid; gap: .9rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.album-party > header { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.album-party h3 { margin: 0; font-size: .92rem; font-weight: 700; }
.album-party header p { margin: .25rem 0 0; color: rgba(240,240,245,.55); font-size: .62rem; }
.album-party header > span { flex: none; color: rgba(240,240,245,.45); font-size: .6rem; font-variant-numeric: tabular-nums; }
.album-polaroids { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr)); gap: 1.1rem .9rem; padding: .3rem .2rem .6rem; }
.album-polaroid {
  --tilt: 0deg;
  display: flex; flex-direction: column; gap: .5rem;
  padding: .5rem .5rem .65rem;
  border-radius: 3px;
  color: #2b2620;
  background: #fbf8f2;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 24px rgba(0,0,0,.38), 0 2px 5px rgba(0,0,0,.25);
  text-align: left;
  transform: rotate(var(--tilt));
  transition: transform .26s cubic-bezier(0.23, 1, 0.32, 1), box-shadow .26s;
  -webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
}
@media (hover: hover) and (pointer: fine) { .album-polaroid:not(.is-zoomed):hover { transform: rotate(0deg) translateY(-3px) scale(1.03); box-shadow: 0 16px 34px rgba(0,0,0,.42), 0 3px 8px rgba(0,0,0,.25); } }
.album-polaroid:not(.is-zoomed):active { transform: rotate(var(--tilt)) scale(.97); }
.album-photo { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; background: #1d1b19; }
.album-photo img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.album-photo svg { width: 2rem; height: 2rem; color: rgba(43,38,32,.35); }
.album-caption { display: grid; gap: .12rem; min-width: 0; padding: 0 .15rem; }
.album-caption b { overflow: hidden; font-size: .68rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.album-caption small { overflow: hidden; color: rgba(43,38,32,.55); font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }
.album-polaroid.is-empty .album-photo { background: repeating-linear-gradient(135deg, #efe9df 0 8px, #e8e1d5 8px 16px); }
.album-empty { display: grid; place-items: center; padding: 3rem 0; }
.album-empty .album-polaroid { width: 10rem; }

.party-album-zoom { position: absolute; z-index: 5; inset: 0; }
.party-album-zoom[hidden] { display: none; }
.party-album-scrim { position: absolute; inset: 0; background: rgba(8,8,10,.72); }
.album-polaroid.is-zoomed { position: absolute; z-index: 1; margin: 0; transition: none; box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 3px 8px rgba(0,0,0,.3); transform-origin: 50% 50%; cursor: var(--cursor-default); }
#open-party-album > svg:first-child { fill: none; }
@media (max-width: 560px) {
  .album-polaroids { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .8rem; }
}

/* Party album v2: each party is an album page — ticket-stub date, who came, what was eaten — with its
   photos hanging as polaroids on a twine string you can swipe along. */
.party-album-list { gap: 1.1rem; }
.album-year { display: flex; align-items: center; gap: .8rem; margin: .4rem 0 -.2rem; color: rgba(240,240,245,.5); }
.album-year::before, .album-year::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); }
.album-year span { font-size: .78rem; font-weight: 650; letter-spacing: .24em; font-variant-numeric: tabular-nums; }
.album-party {
  position: relative; display: grid; gap: .3rem; overflow: hidden;
  padding: 1.1rem 1.1rem .2rem; border: 1px solid rgba(255,255,255,.09); border-radius: 24px;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--party-accent, #f6b8a8) 16%, transparent), transparent 60%),
    linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 70%);
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 14px 36px rgba(0,0,0,.25);
}
.album-party-head { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: .95rem; }
.album-stamp {
  display: grid; justify-items: center; align-content: center; gap: .05rem;
  width: 3.7rem; padding: .55rem 0 .5rem; border-radius: 8px;
  color: #3a2f25; background: linear-gradient(180deg, #fbf5ea, #efe4d2);
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
  transform: rotate(-3deg);
  -webkit-mask: radial-gradient(circle at 0 62%, transparent .26rem, #000 .28rem) left / 51% 100% no-repeat, radial-gradient(circle at 100% 62%, transparent .26rem, #000 .28rem) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 62%, transparent .26rem, #000 .28rem) left / 51% 100% no-repeat, radial-gradient(circle at 100% 62%, transparent .26rem, #000 .28rem) right / 51% 100% no-repeat;
}
.album-stamp small { color: #b0563c; font-size: .5rem; font-weight: 800; letter-spacing: .18em; }
.album-stamp strong { font-size: 1.6rem; font-weight: 750; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.album-stamp em { padding-top: .2rem; border-top: 1px dashed rgba(58,47,37,.3); color: rgba(58,47,37,.62); font-size: .52rem; font-style: normal; font-weight: 650; }
.album-party-info { min-width: 0; }
.album-party-kicker { margin: 0; color: color-mix(in srgb, var(--party-accent, #f6b8a8) 80%, #fff); font-size: .56rem; font-weight: 750; letter-spacing: .08em; }
.album-party-info h3 { margin: .22rem 0 .45rem; overflow: hidden; font-size: .95rem; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.album-party-meta { display: flex; align-items: center; gap: .5rem; color: rgba(240,240,245,.6); font-size: .6rem; }
.album-avatars { display: flex; }
.album-avatars i { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-left: -.32rem; border-radius: 50%; color: #1c1a1f; background: var(--avatar, #e8e8ee); box-shadow: 0 0 0 2px #1c1c21; font-size: .55rem; font-style: normal; font-weight: 800; }
.album-avatars i:first-child { margin-left: 0; }
.album-avatars i.is-more { color: #f5f5f7; background: #3a3a42; }
.album-party-dishes { margin: .4rem 0 0; overflow: hidden; color: rgba(240,240,245,.42); font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }
.album-count { display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .55rem; border-radius: 999px; color: #f5f5f7; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); font-size: .62rem; }
.album-count svg { width: .85rem; height: .85rem; }
.album-count b { font-variant-numeric: tabular-nums; }
.album-count.is-zero { color: rgba(240,240,245,.45); }

/* The twine line the polaroids hang from; swipe sideways through a party's photos. */
.album-line { margin: 0 -1.1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.album-line::-webkit-scrollbar { display: none; }
.album-polaroids { position: relative; display: flex; gap: 1.1rem; width: max-content; min-width: 100%; box-sizing: border-box; padding: 1.55rem 1.4rem 1.4rem; grid-template-columns: none; }
.album-polaroids::before { content: ""; position: absolute; left: 0; right: 0; top: .35rem; height: 1.6rem; border-bottom: 1.5px solid rgba(214, 186, 140, .55); border-radius: 0 0 50% 50% / 0 0 100% 100%; pointer-events: none; }
.album-polaroids .album-polaroid { position: relative; flex: none; width: 9.4rem; scroll-snap-align: center; transform-origin: 50% 0; }
.album-peg { position: absolute; z-index: 2; top: -.8rem; left: 50%; width: .5rem; height: 1.25rem; margin-left: -.25rem; border-radius: 2px; background: linear-gradient(90deg, #c99c6a, #a87b4c 55%, #c99c6a); box-shadow: 0 2px 4px rgba(0,0,0,.35); }
.album-peg::after { content: ""; position: absolute; left: 0; right: 0; top: 45%; height: 1px; background: rgba(60,40,20,.35); }
.album-polaroid.is-zoomed .album-peg { display: none; }
@media (hover: hover) and (pointer: fine) { .album-polaroids .album-polaroid:not(.is-zoomed):hover { transform: rotate(0deg) translateY(4px) scale(1.03); } }
@media (max-width: 560px) {
  .album-polaroids { grid-template-columns: none; gap: .9rem; }
  .album-polaroids .album-polaroid { width: 8.2rem; }
  .album-party-head { gap: .75rem; }
  .album-stamp { width: 3.3rem; }
  .album-stamp strong { font-size: 1.5rem; }
}
.album-party-head { grid-template-columns: 3.7rem minmax(0, 1fr) auto; }
.album-polaroids::before { top: .62rem; height: .9rem; border-bottom-color: rgba(214, 186, 140, .5); }
@media (max-width: 560px) { .album-party-head { grid-template-columns: 3.3rem minmax(0, 1fr) auto; } }
.party-album-dialog .album-party-head { display: grid; justify-content: stretch; align-items: start; margin-bottom: 0; }

/* Party album v3 — level one: party covers only (a stack of that party's polaroids). */
.album-back { display: inline-flex; align-items: center; gap: .2rem; margin: 0 0 .45rem -.35rem; padding: .3rem .6rem .3rem .3rem; border-radius: 999px; color: rgba(240,240,245,.8); background: rgba(255,255,255,.07); font-size: .66rem; font-weight: 650; }
.album-back[hidden] { display: none; }
.album-back svg { width: 1rem; height: 1rem; }
.album-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1.4rem 1.1rem; }
.album-covers .album-year { grid-column: 1 / -1; margin: .2rem 0 -.4rem; }
.album-cover { display: grid; gap: .9rem; padding: 1.1rem .9rem .9rem; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; color: inherit; text-align: left;
  background: radial-gradient(110% 80% at 50% 0%, color-mix(in srgb, var(--party-accent, #f6b8a8) 18%, transparent), transparent 65%), linear-gradient(170deg, rgba(255,255,255,.065), rgba(255,255,255,.015));
  box-shadow: inset 0 1px rgba(255,255,255,.09), 0 12px 30px rgba(0,0,0,.25);
  transition: transform .22s cubic-bezier(0.23, 1, 0.32, 1), box-shadow .22s; }
.album-cover:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .album-cover:hover { transform: translateY(-3px); box-shadow: inset 0 1px rgba(255,255,255,.12), 0 18px 40px rgba(0,0,0,.32); }
  .album-cover:hover .album-cover-sheet:not(.is-front):first-child { transform: rotate(-10deg) translateX(-8%); }
  .album-cover:hover .album-cover-sheet:not(.is-front):nth-child(2) { transform: rotate(11deg) translateX(8%); }
}
.album-stack { position: relative; display: grid; justify-self: center; width: 72%; aspect-ratio: 1 / 1.16; }
.album-cover-sheet { grid-area: 1 / 1; display: flex; flex-direction: column; padding: 6% 6% 16%; border-radius: 3px; background: #fbf8f2; box-shadow: 0 8px 20px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.25); transform: rotate(var(--tilt)); transition: transform .3s cubic-bezier(0.23, 1, 0.32, 1); }
.album-cover-sheet:not(.is-front) { filter: brightness(.9); }
.album-cover-sheet .album-photo { flex: 1; aspect-ratio: auto; }
.album-cover-sheet.is-front { position: relative; }
.album-cover-count { position: absolute; right: 8%; bottom: 3.5%; display: inline-flex; align-items: center; gap: .2rem; color: rgba(43,38,32,.6); font-size: .58rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.album-cover-count svg { width: .78rem; height: .78rem; }
.album-cover-info { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; }
.album-cover-info .album-stamp { width: 2.9rem; padding: .4rem 0 .35rem; }
.album-cover-info .album-stamp strong { font-size: 1.25rem; }
.album-cover-info .album-stamp small { font-size: .44rem; }
.album-cover-info .album-stamp em { font-size: .46rem; }
.album-cover-info > span:last-child { display: grid; gap: .22rem; min-width: 0; }
.album-cover-info small { color: color-mix(in srgb, var(--party-accent, #f6b8a8) 80%, #fff); font-size: .54rem; font-weight: 750; letter-spacing: .06em; }
.album-cover-info b { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.album-cover-info .album-avatars i { width: 1.15rem; height: 1.15rem; font-size: .48rem; }

/* Level two: one party's photos, taped to the page. */
.album-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1.5rem 1.1rem; padding: 1.4rem .3rem .8rem; }
.album-board .album-polaroid { position: relative; }
.album-tape { position: absolute; z-index: 2; top: -.55rem; left: 50%; width: 3.2rem; height: 1.05rem; margin-left: -1.6rem; background: color-mix(in srgb, var(--party-accent, #f6d6a8) 55%, rgba(255,255,255,.55)); opacity: .82; transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0,0,0,.18); -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px)); mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px)); }
.party-album-list[data-view="party"] { gap: .4rem; }
@media (max-width: 560px) {
  .album-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
  .album-cover { padding: .9rem .65rem .7rem; gap: .7rem; border-radius: 18px; }
  .album-stack { width: 80%; }
  .album-cover-info { grid-template-columns: minmax(0, 1fr); }
  .album-cover-info .album-stamp { display: none; }
  .album-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem .85rem; }
}
.album-cover-info .album-stamp small { color: #b0563c; letter-spacing: .18em; }

/* 点过的 → 聚会相册 entry: the latest polaroids fanned out beside the totals. */
.album-entry { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.1rem; width: 100%; margin: -.2rem 0 1.1rem; padding: .95rem 1.1rem .95rem 1rem; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; color: inherit; text-align: left;
  background: radial-gradient(90% 140% at 0% 50%, rgba(246, 196, 150, .16), transparent 60%), linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.02));
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 14px 34px rgba(0,0,0,.22);
  transition: transform .2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow .2s; }
.album-entry[hidden] { display: none; }
.album-entry:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .album-entry:hover { box-shadow: inset 0 1px rgba(255,255,255,.12), 0 18px 40px rgba(0,0,0,.3); }
  .album-entry:hover .album-entry-sheet { transform: translateX(calc(var(--i) * 34%)) rotate(calc(var(--tilt) * 1.35)); }
}
.album-entry-fan { position: relative; display: block; width: 6.6rem; height: 4.6rem; }
.album-entry-sheet { position: absolute; left: .4rem; top: .2rem; display: flex; width: 3.6rem; padding: .22rem .22rem .6rem; border-radius: 2px; background: #fbf8f2; box-shadow: 0 6px 14px rgba(0,0,0,.4); transform: translateX(calc(var(--i) * 28%)) rotate(var(--tilt)); transform-origin: 50% 90%; transition: transform .3s cubic-bezier(0.23, 1, 0.32, 1); }
.album-entry-sheet .album-photo { flex: 1; aspect-ratio: 1; }
.album-entry-sheet .album-photo svg { width: 1.2rem; height: 1.2rem; }
.album-entry-copy { display: grid; gap: .16rem; min-width: 0; }
.album-entry-copy small { color: rgba(246, 196, 150, .9); font-size: .5rem; font-weight: 800; letter-spacing: .16em; }
.album-entry-copy b { font-size: 1rem; font-weight: 750; }
.album-entry-copy > span { color: rgba(240,240,245,.72); font-size: .64rem; }
.album-entry-copy em { overflow: hidden; color: rgba(240,240,245,.45); font-size: .58rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.album-entry-arrow { width: 1.1rem; height: 1.1rem; color: rgba(240,240,245,.5); }
@media (max-width: 560px) { .album-entry { gap: .8rem; padding: .85rem .9rem .85rem .75rem; } .album-entry-fan { width: 5.6rem; height: 4.2rem; } .album-entry-sheet { width: 3.2rem; } }

/* Level two: polaroids framed by how the photo was shot. */
.album-board { grid-auto-flow: dense; align-items: start; }
.album-polaroid.is-portrait .album-photo { aspect-ratio: 46 / 62; }
.album-polaroid.is-landscape .album-photo { aspect-ratio: 99 / 62; }
.album-polaroid.is-square .album-photo { aspect-ratio: 1; }
.album-board .album-polaroid.is-landscape { grid-column: span 2; transform: rotate(calc(var(--tilt) * .45)); }

/* Party album v5 — level one: each party is a glass sleeve with the edges of its prints peeking out. */
.album-covers { grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 1.2rem 1.1rem; }
.album-cover.album-sleeve { position: relative; display: block; padding: .95rem 0 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; text-align: left; }
@media (hover: hover) and (pointer: fine) { .album-cover.album-sleeve:hover { transform: none; box-shadow: none; } }
.album-cover.album-sleeve:active { transform: scale(.985); }
.sleeve-papers { position: absolute; inset: 0 auto auto 1.4rem; width: 9.5rem; height: 3rem; }
.sleeve-papers i { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(180deg, #fbf8f2, #efe8dc); box-shadow: 0 -2px 6px rgba(0,0,0,.25); transform: translate(calc(var(--n) * 1.1rem), calc(var(--n) * .28rem)) rotate(calc(-3deg + var(--n) * 3deg)); transition: transform .32s cubic-bezier(0.23, 1, 0.32, 1); }
.sleeve-papers i:nth-child(1) { z-index: 3; }
.sleeve-papers i:nth-child(2) { z-index: 2; background: linear-gradient(180deg, #f6f1e7, #e9e1d3); }
.sleeve-papers i:nth-child(3) { z-index: 1; background: linear-gradient(180deg, #efe9dd, #e2d9c9); }
@media (hover: hover) and (pointer: fine) { .album-cover.album-sleeve:hover .sleeve-papers i { transform: translate(calc(var(--n) * 1.25rem), calc(var(--n) * .28rem - .38rem)) rotate(calc(-4deg + var(--n) * 3.5deg)); } }
.album-cover.album-sleeve:active .sleeve-papers i { transform: translate(calc(var(--n) * 1.25rem), calc(var(--n) * .28rem - .38rem)) rotate(calc(-4deg + var(--n) * 3.5deg)); }
.sleeve-body {
  position: relative; z-index: 4; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .95rem;
  padding: 1rem 1.05rem; border: 1px solid rgba(255,255,255,.12); border-radius: 22px;
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--party-accent, #f6b8a8) 14%, transparent), transparent 60%),
    linear-gradient(165deg, rgba(48,48,54,.96), rgba(22,22,26,.97));
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 14px 34px rgba(0,0,0,.32);
}
.sleeve-body .album-stamp { width: 3.6rem; }
.sleeve-info { display: grid; gap: .24rem; min-width: 0; }
.sleeve-info small { color: color-mix(in srgb, var(--party-accent, #f6b8a8) 75%, #fff); font-size: .56rem; font-weight: 750; letter-spacing: .06em; }
.sleeve-info b { overflow: hidden; font-size: .92rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sleeve-meta { display: flex; align-items: center; gap: .5rem; color: rgba(240,240,245,.55); font-size: .6rem; }
.sleeve-count { display: inline-flex; align-items: center; gap: .28rem; align-self: start; padding: .3rem .55rem; border-radius: 999px; color: #f5f5f7; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); font-size: .62rem; white-space: nowrap; }
.sleeve-count svg { width: .85rem; height: .85rem; }
.sleeve-count.is-zero { color: rgba(240,240,245,.45); background: transparent; }
@media (max-width: 560px) {
  .album-covers { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .sleeve-body { gap: .75rem; padding: .85rem .85rem; border-radius: 20px; }
  .sleeve-body .album-stamp { width: 3.2rem; }
  .sleeve-papers { left: 1.1rem; width: 7.5rem; }
}

/* Album: bigger, easier targets for back and close. */
.party-album-dialog .sheet-close { width: 2.75rem; height: 2.75rem; }
.party-album-dialog .sheet-close svg { width: 1.15rem; height: 1.15rem; }
.party-album-dialog .album-back { min-height: 2.5rem; padding: .45rem .85rem .45rem .5rem; font-size: .72rem; }
.party-album-dialog .album-back svg { width: 1.15rem; height: 1.15rem; }
.party-album-sheet { touch-action: pan-y; }
#haptic-toggle > svg:first-child { fill: none; }
/* Dish stepper: only the number moves when the quantity changes. */
:root .card-quantity-control button:active { transform: none; }
.card-quantity-control strong { display: inline-block; font-variant-numeric: tabular-nums; }

/* Party page — everyone's words under the photos, and the one place to write. */
.album-notes { display: grid; gap: .55rem; margin: .4rem .3rem 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.09); }
.album-notes-head span { color: color-mix(in srgb, var(--party-accent, #f6b8a8) 80%, #fff); font-size: .5rem; font-weight: 750; letter-spacing: .16em; }
.album-notes-head h4 { margin: .2rem 0 .15rem; font-size: .86rem; }
.album-note { padding: .72rem .8rem; border-radius: 16px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.album-note.is-mine { background: color-mix(in srgb, var(--party-accent, #f6b8a8) 9%, rgba(255,255,255,.04)); }
.album-note header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .55rem; margin: 0; }
.album-note header > i { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: #1c1a1f; background: var(--avatar, #e8e8ee); font-size: .62rem; font-style: normal; font-weight: 800; }
.album-note header div { display: grid; gap: .05rem; min-width: 0; }
.album-note header b { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.album-note header time { color: rgba(240,240,245,.45); font-size: .54rem; }
.album-note header em { color: #ffd66b; font-size: .62rem; font-style: normal; letter-spacing: .04em; }
.party-album-dialog .album-note-action { display: grid; place-items: center; width: 2rem; height: 2rem; min-height: 0; margin: -.3rem -.35rem -.3rem 0; padding: 0; border: 0; border-radius: 50%; color: rgba(240,240,245,.6); background: transparent; box-shadow: none; }
.party-album-dialog .album-note-action svg { width: .95rem; height: .95rem; }
.party-album-dialog .album-note-action:active { transform: scale(.92); background: rgba(255,255,255,.08); }
.album-note p { margin: .5rem 0 0; color: #eeeef2; font-size: .7rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.album-note p.is-empty { color: rgba(240,240,245,.45); }
.album-notes-empty { margin: 0; padding: .8rem; border: 1px dashed rgba(255,255,255,.12); border-radius: 14px; color: rgba(240,240,245,.5); font-size: .64rem; text-align: center; }
.album-write { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .65rem; align-items: center; margin-top: .35rem; padding: .8rem .95rem; border: 1px solid color-mix(in srgb, var(--party-accent, #f6b8a8) 45%, transparent); border-radius: 18px; color: inherit; text-align: left;
  background: linear-gradient(160deg, color-mix(in srgb, var(--party-accent, #f6b8a8) 22%, transparent), rgba(255,255,255,.03));
  transition: transform .18s cubic-bezier(0.23, 1, 0.32, 1); }
.album-write:active { transform: scale(.98); }
.album-write svg { grid-row: 1 / 3; width: 1.25rem; height: 1.25rem; color: color-mix(in srgb, var(--party-accent, #f6b8a8) 85%, #fff); }
.album-write span { font-size: .76rem; font-weight: 750; }
.album-write small { color: rgba(240,240,245,.55); font-size: .56rem; }
.star-picker.is-locked button { cursor: default; }
.star-picker.is-locked button:disabled { opacity: 1; }
.star-hint:has(+ .star-picker.is-locked) { opacity: 1; }

/* Visit clothesline (desktop): large enough to see the photos — about 3× the original prints, everything in proportion; at most two. */
.oa-polaroid { width: .44em; margin-left: -.22em; padding: .028em .028em 0; box-shadow: 0 .036em .078em rgba(0, 0, 0, .42); }
.oa-peg { top: -.041em; width: .041em; height: .094em; margin-left: -.0205em; }
.oa-caption { height: .094em; }
.oa-caption b { font-size: .047em; }
.oa-polaroid.is-empty .oa-caption b { font-size: .04em; }
@media (max-width: 560px) {
  .oa-polaroid { width: .2em; margin-left: -.1em; padding: .013em .013em 0; }
  .oa-peg { top: -.02em; width: .02em; height: .045em; margin-left: -.01em; }
  .oa-caption { height: .044em; }
  .oa-caption b { font-size: .022em; }
  .oa-polaroid.is-empty .oa-caption b { font-size: .019em; }
}

/* Visit on phones: no clothesline behind the headline — the photos are pasted onto the F, above and right of the text. */
.oa-pasted { display: none; }
@media (max-width: 560px) {
  .oa-clothesline { display: none; }
  /* About 100pt wide on a phone: the prints reach up out of the F into the empty space above it. */
  .oa-pasted { display: block; width: .62em; padding: .028em .028em 0; background: #f7f3ea; box-shadow: 0 .02em .05em rgba(0, 0, 0, .45); transform: rotate(var(--tilt)); }
  .oa-pasted.is-1 { --tilt: -6deg; left: calc(var(--ink-l) - .22em); top: calc(var(--cap-top) - .5em); }
  .oa-pasted.is-2 { --tilt: 6deg; left: calc(var(--ink-l) + var(--ink-w) - .4em); top: calc(var(--cap-top) - .24em); }
  .oa-tape { position: absolute; top: -.03em; left: 50%; width: .2em; height: .06em; margin-left: -.1em; background: rgba(236, 226, 205, .62); box-shadow: 0 .002em .006em rgba(0, 0, 0, .2); transform: rotate(calc(var(--tilt) * -.6)); }
  .oa-pasted .oa-caption { height: .1em; }
  .oa-pasted .oa-caption b { font-size: .048em; }
  .oa-pasted.is-empty .oa-photo { color: rgba(255, 255, 255, .45); background: linear-gradient(160deg, #3b4247, #24292d 60%, #3a3226); }
  .oa-pasted.is-empty .oa-photo svg { width: 38%; height: 38%; }
}
/* Narrow phones (iPhone SE / mini width): a touch smaller and higher, so the prints clear "FRIENDS ONLY" and the screen edge. */
@media (max-width: 374px) {
  .oa-pasted { width: .55em; }
  .oa-pasted.is-1 { left: calc(var(--ink-l) - .16em); top: calc(var(--cap-top) - .58em); }
  .oa-pasted.is-2 { left: calc(var(--ink-l) + var(--ink-w) - .42em); top: calc(var(--cap-top) - .3em); }
}

/* Party album, desktop: the prints in each sleeve are that party's photos. At rest only their top edges show (the
   photos stay hidden, as in the phone layout); on hover they rise out of the sleeve, fanned, one after another. */
@media (hover: hover) and (pointer: fine) {
  .album-cover.album-sleeve:hover { z-index: 5; }
  /* The taller prints sit behind the card; a fully opaque card keeps them from showing through at rest. */
  .sleeve-body { background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--party-accent, #f6b8a8) 14%, transparent), transparent 60%), linear-gradient(165deg, #303036, #16161a); }
  .sleeve-papers { width: 13rem; height: 6.4rem; }
  .sleeve-papers i { inset: 0 auto auto calc(var(--n) * 3.7rem); width: 5.2rem; height: auto; padding: .28rem .28rem 1rem; box-sizing: border-box; transform: translateY(calc(var(--n) * .18rem)) rotate(calc(-3deg + var(--n) * 3deg)); transition: transform .38s cubic-bezier(0.23, 1, 0.32, 1); transition-delay: calc(var(--n) * 35ms); }
  .sleeve-papers i::before { content: ""; display: block; aspect-ratio: 1; }
  .sleeve-papers img { position: absolute; top: .28rem; left: .28rem; width: calc(100% - .56rem); aspect-ratio: 1; object-fit: cover; border-radius: 1px; opacity: 0; transition: opacity .22s ease-out; transition-delay: calc(var(--n) * 35ms); }
  .album-cover.album-sleeve:hover .sleeve-papers i { transform: translate(calc((var(--n) - 1) * .5rem), calc(-3.3rem + var(--n) * .2rem - (1 - (var(--n) - 1) * (var(--n) - 1)) * .3rem)) rotate(calc(-9deg + var(--n) * 9deg)); }
  .album-cover.album-sleeve:hover .sleeve-papers img { opacity: 1; }
  .album-cover.album-sleeve:active .sleeve-papers i { transform: translate(calc((var(--n) - 1) * .5rem), calc(-3.3rem + var(--n) * .2rem)) rotate(calc(-9deg + var(--n) * 9deg)) scale(.98); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .sleeve-papers i { transition: none; }
}

/* Party album: no browser scrollbar — the wheel and trackpad still scroll it. */
.party-album-sheet { scrollbar-width: none; }
.party-album-sheet::-webkit-scrollbar { display: none; }

/* 那年今日: a small glass card under the hero, only on the day a party turns a month or a year old. */
.hero-memory { display: flex; align-items: center; gap: .75rem; width: min(100%, 23rem); margin-top: 1rem; padding: .55rem .8rem .55rem .55rem; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; color: #f5f5f7; text-align: left; background: rgba(255,255,255,.055); box-shadow: inset 0 1px rgba(255,255,255,.1); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); transition: transform .16s var(--ease-out), background .2s; }
.hero-memory[hidden] { display: none; }
.hero-memory:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .hero-memory:hover { background: rgba(255,255,255,.085); } }
.hero-memory-thumb { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; padding: .16rem .16rem .4rem; border-radius: 3px; color: rgba(40,36,30,.5); background: #fbf8f2; box-shadow: 0 4px 10px rgba(0,0,0,.35); transform: rotate(-4deg); box-sizing: border-box; }
.hero-memory-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.hero-memory-thumb svg { width: 1.1rem; height: 1.1rem; }
.hero-memory-copy { display: grid; gap: .15rem; min-width: 0; }
.hero-memory-copy small { color: #e9c98f; font-size: .58rem; font-weight: 700; letter-spacing: .06em; }
.hero-memory-copy span { overflow: hidden; color: rgba(245,245,247,.86); font-size: .7rem; line-height: 1.35; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hero-memory-arrow { flex: none; width: .8rem; height: .8rem; margin-left: auto; opacity: .55; }
