:root {
  color-scheme: light;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: #193632;
  background: #f6f8f4;
  --dark: #123f3c;
  --accent: #206961;
  --muted: #536c66;
  --border: #dae5de;
  --surface: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1,h2,h3,p { margin: 0; }
h1 { letter-spacing: -.035em; }
a { color: inherit; text-underline-offset: .24em; }
button,input,select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
:focus-visible { outline: 3px solid #b37519; outline-offset: 3px; }
.frame { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.muted { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.bar { background: #fff; border-bottom: 1px solid var(--border); }
.bar-inner { min-height: 65px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; text-decoration: none; font-size: 1.16rem; white-space: nowrap; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: var(--accent); font-size: 1rem; }
.brand small { color: var(--muted); font-weight: 500; font-size: .72rem; }
.quiet-link { text-decoration: none; font-size: .88rem; font-weight: 650; }
.quiet-link:hover { text-decoration: underline; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; margin-block: 28px 36px; min-height: 258px; border-radius: 24px; background: linear-gradient(110deg, #113e3b 12%, #225e56 100%); color: #fff; }
.hero-content { position: relative; z-index: 1; padding: 32px 44px; }
.eyebrow { color: #ffda99; font-weight: 700; font-size: .82rem; letter-spacing: .09em; }
.hero h1 { margin-block: 8px; font-size: clamp(2.05rem, 6vw, 3.5rem); line-height: 1.15; }
.hero-content > p:not(.eyebrow) { color: #e1f3eb; line-height: 1.6; }
.hero-link { display: inline-block; padding: 7px 13px; margin-top: 20px; border: 1px solid #a8ccc0; border-radius: 9px; text-decoration: none; font-size: .84rem; font-weight: 700; }
.hero-link:hover { background: #ffffff21; }
.hero-art { width: 310px; height: 310px; border: 1px solid #c4eee132; border-radius: 50%; position: absolute; right: 6%; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, #c4eee11a 69%, transparent 70%); }
.cup { position: absolute; display: block; border-radius: 12px 12px 29px 29px; border: 2px solid #ffe9b2b8; box-shadow: inset 0 -15px 30px #9b471669; }
.cup::before { content: ""; position: absolute; left: -7px; right: -7px; top: -7px; height: 13px; border-radius: 8px; background: #fff0cb; }
.cup::after { content: ""; width: 9px; height: 35px; position: absolute; right: 23%; bottom: 100%; background: #dcebdd; border-radius: 4px 4px 0 0; }
.cup-back { width: 89px; height: 120px; left: 150px; top: 108px; transform: rotate(16deg); background: linear-gradient(155deg, #e6b668, #bb6a32); }
.cup-front { width: 98px; height: 132px; left: 73px; top: 111px; transform: rotate(-12deg); background: linear-gradient(155deg, #fdde95, #c48247); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head h2, .summary-panel h2 { font-size: 1.35rem; }
.search { display: flex; gap: 8px; align-items: center; padding-inline: 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; margin-top: 14px; }
.search span { font-size: 1.4rem; padding-inline: 3px; }
.search input { width: 100%; border: 0; padding: 12px 0; color: inherit; background: none; }
.pills, .toppings { display: flex; flex-wrap: wrap; gap: 8px; }
.pills { margin-block: 15px 22px; }
.pill { padding: 7px 13px; border: 1px solid var(--border); border-radius: 20px; color: #2d544e; background: #fff; font-size: .85rem; }
.pill[aria-pressed=true] { color: #fff; background: var(--accent); border-color: var(--accent); }
.menu-section { margin-bottom: 24px; }
.menu-section h3 { margin-bottom: 10px; font-size: 1.02rem; }
.menu-grid { display: grid; gap: 9px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.drink { width: 100%; display: flex; justify-content: space-between; text-align: left; align-items: center; gap: 8px; color: inherit; padding: 11px 12px; background: #fff; border: 1px solid var(--border); border-radius: 11px; }
.drink:hover { border-color: #77a79a; background: #f9fdf9; }
.drink-body { display: grid; gap: 6px; }
.drink-title { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: .94rem; line-height: 1.4; }
.drink-tag { font-size: .65rem; font-weight: 700; color: #704e18; background: #fff1d3; border-radius: 4px; padding: 2px 4px; }
.drink-sub { color: var(--muted); font-size: .78rem; }
.add-mark { display: grid; flex: 0 0 29px; width: 29px; height: 29px; place-items: center; background: #e9f4ed; color: var(--accent); border-radius: 8px; font-size: 1.19rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 15px; padding: 20px; }
.cart { position: sticky; top: 16px; scroll-margin-top: 12px; }
.counter { border-radius: 16px; padding: 4px 9px; font-size: .78rem; font-weight: 700; color: #224d43; background: #e6f2e9; white-space: nowrap; }
.empty { color: var(--muted); background: #f5f8f4; padding: 15px; border-radius: 9px; font-size: .9rem; line-height: 1.5; margin-top: 12px; }
.cart-line { display: flex; justify-content: space-between; gap: 10px; padding-block: 12px; border-bottom: 1px solid var(--border); }
.cart-item-price { display: grid; justify-items: end; align-content: start; gap: 6px; white-space: nowrap; font-size: .86rem; }
.text-button { border: 0; color: #91402d; background: none; padding: 0; text-decoration: underline; font-size: .8rem; }
.field { display: grid; gap: 6px; color: #264942; font-weight: 650; font-size: .87rem; }
.field input,.field select { width: 100%; min-width: 0; min-height: 40px; color: #193632; padding: 7px 10px; border: 1px solid #bfcec6; border-radius: 8px; background: #fff; }
#checkout .field,#login .field { margin-block: 16px; }
.price-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block: 16px; }
.price-line strong { font-size: 1.32rem; }
.primary,.secondary { border-radius: 9px; padding: 9px 14px; min-height: 42px; font-size: .9rem; font-weight: 750; }
.primary { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.primary:hover:enabled { background: #194f48; }
.secondary { border: 1px solid #abc5ba; background: #fff; color: #24554a; }
.secondary:hover:enabled { background: #edf5ef; }
.wide { width: 100%; }
.message { margin-top: 14px; padding: 11px 13px; border-radius: 8px; color: #29584f; background: #e9f4ed; line-height: 1.5; font-size: .9rem; }
.message.negative { color: #842b25; background: #fff0ea; }
dialog { width: min(500px,calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 22px; border: 1px solid var(--border); border-radius: 16px; color: inherit; box-shadow: 0 18px 62px #102c2b50; }
dialog::backdrop { background: #112d2bc7; }
dialog form > .field, dialog fieldset,.choice-grid { margin-top: 14px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.icon-button { padding: 1px 8px; border: 0; border-radius: 7px; color: inherit; background: #edf4ee; font-size: 1.45rem; line-height: 1.3; }
fieldset { min-width: 0; border: 1px solid var(--border); border-radius: 8px; }
legend { font-weight: 650; font-size: .87rem; }
.topping { display: flex; align-items: center; gap: 4px; font-size: .86rem; }
.topping input { accent-color: var(--accent); }
.mobile-cart { display: none; }
.footer { padding-block: 24px 64px; border-top: 1px solid var(--border); color: var(--muted); font-size: .83rem; }
.admin-main { padding-block: 34px; }
.admin-head { margin-bottom: 15px; }
.login { max-width: 460px; margin-inline: auto; }
.login h1 { margin-bottom: 8px; }
.filters { display: flex; align-items: end; gap: 12px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-block: 14px; }
.metric { display: grid; gap: 5px; }
.metric strong { font-size: 1.35rem; }
.summary-panel { margin-top: 12px; }
.summary-panel .section-head { align-items: start; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th,td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { white-space: nowrap; background: #eef5ee; }
td:first-child { min-width: 94px; font-weight: 650; }
td:nth-child(n+3) { white-space: nowrap; }
details { margin-top: 14px; }
summary { cursor: pointer; font-weight: 650; }
.order-detail { padding-block: 13px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.order-detail ul { margin-bottom: 0; padding-left: 20px; }
.order-detail li span { display: block; }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0,1fr) 286px; gap: 16px; }
  .hero-art { right: 2%; }
}
@media (max-width: 720px) {
  .frame { width: calc(100% - 28px); }
  .layout { grid-template-columns: minmax(0,1fr); }
  .hero { min-height: 214px; margin-block: 14px 22px; }
  .hero-content { padding: 23px 19px; }
  .hero-art { right: -165px; transform: translateY(-50%) scale(.88); opacity: .23; }
  .cart { position: static; margin-bottom: 24px; }
  .mobile-cart { display: block; position: fixed; z-index: 2; right: 14px; bottom: max(14px,env(safe-area-inset-bottom)); text-decoration: none; color: #fff; background: var(--dark); border-radius: 30px; padding: 11px 14px; font-size: .86rem; box-shadow: 0 3px 16px #102c2b44; }
}
@media (max-width: 430px) {
  .panel { padding: 14px; }
  .metrics { gap: 6px; }
  .metric { padding: 9px; }
  .metric strong { font-size: 1rem; }
  .drink { padding: 9px 7px; gap: 4px; }
  .drink-title { font-size: .84rem; }
  .add-mark { flex-basis: 23px; width: 23px; height: 23px; }
  .summary-panel .section-head button { flex: none; }
}
