:root {
  color-scheme: light;
  --ink: #111;
  --muted: #666;
  --line: #c9c9c9;
  --soft: #eee;
  --paper: #f4f4f4;
  --font: system-ui, -apple-system, "Noto Sans TC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; border-radius: 0 !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

.topbar { position: sticky; top: 0; z-index: 25; display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 0 40px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; min-width: 220px; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 28px; height: 28px; grid-template: repeat(2, 1fr) / repeat(2, 1fr); gap: 2px; }
.brand-mark i { display: block; background: #111; }
.brand-mark i:nth-child(2) { background: #555; }
.brand-mark i:nth-child(3) { background: #999; }
.brand-mark i:nth-child(4) { background: #d5d5d5; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.3; }
.brand-copy strong { font-size: 14px; font-weight: 600; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.main-nav { display: flex; height: 100%; align-items: center; gap: 30px; }
.nav-link { position: relative; height: 100%; padding: 0 3px; border: 0; background: none; color: var(--muted); font-size: 13px; }
.nav-link:hover, .nav-link.active { color: #111; }
.nav-link.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #111; content: ""; }
.header-actions { display: flex; min-width: 220px; align-items: center; justify-content: flex-end; gap: 12px; }
.header-date { color: var(--muted); font-size: 12px; }
.demo-badge { padding: 5px 8px; border: 1px solid #888; color: #444; font: 10px var(--mono); }
.icon-button, .menu-toggle { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); background: #fff; }
.icon-button svg { width: 18px; fill: none; stroke: #111; stroke-width: 1.5; }
.menu-toggle { display: none; }

.page-shell { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.intro-row { display: flex; min-height: 210px; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 54px 0 32px; }
.intro-copy h1 { margin: 0; font-size: clamp(34px, 4vw, 46px); font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.intro-actions { display: flex; gap: 10px; padding-bottom: 2px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid #111; font-size: 13px; transition: background .16s ease, color .16s ease; }
.button-black { background: #111; color: #fff; }
.button-black:hover { background: #444; }
.button-outline { background: #fff; color: #111; }
.button-outline:hover { background: #eee; }

.stage { position: relative; min-height: 450px; overflow: hidden; padding: 24px 30px 38px; background: #e5e5e5; }
.stage::before { position: absolute; inset: 0; background: linear-gradient(135deg, #f3f3f3, #d8d8d8 56%, #ededed); content: ""; }
.stage-grain, .stage-orbit { display: none; }
.stage-heading, .stage-body, .stage-caption { position: relative; z-index: 1; }
.stage-heading { display: flex; justify-content: space-between; color: #444; }
.mono-label { margin: 0; font: 10px var(--mono); letter-spacing: .06em; }
.stage-weather { font-size: 11px; }
.stage-body { position: relative; display: grid; min-height: 345px; grid-template-columns: 200px 1fr; align-items: center; gap: 26px; padding: 24px 0; }
.stage-message { padding-left: 5px; }
.stage-message .mono-label { color: #555; }
.stage-message h2 { margin: 12px 0 22px; font-size: 30px; font-weight: 400; letter-spacing: -.035em; }
.stage-legend { display: grid; gap: 9px; color: #333; font-size: 12px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: #555; vertical-align: 1px; }
.legend-dot.booked { background: #999; }
.legend-dot.service { background: #ddd; border: 1px solid #888; }
.cart-visuals { display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 12px; }
.cart-card { display: flex; min-height: 136px; flex-direction: column; justify-content: space-between; padding: 16px 18px; border: 1px solid #aaa; background: #fff; }
.cart-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.cart-letter { font-size: 24px; letter-spacing: -.04em; }
.cart-sub { margin-top: 2px; color: #666; font: 9px var(--mono); }
.status-pill { padding: 4px 6px; border: 1px solid #aaa; background: #eee; color: #222; font-size: 10px; }
.cart-count { font-size: 28px; letter-spacing: -.04em; }
.cart-count small { color: #666; font-size: 11px; letter-spacing: 0; }
.cart-bottom { display: flex; align-items: center; justify-content: space-between; color: #555; font-size: 11px; }
.availability-dots { display: flex; gap: 3px; }
.availability-dots i { display: block; width: 4px; height: 13px; background: #777; }
.availability-dots i.off { background: #ddd; }
.stage-aside { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; color: #444; font-size: 11px; line-height: 1.4; }
.stage-aside-number { color: #111; font-size: 38px; letter-spacing: -.05em; }
.stage-caption { position: absolute; right: 30px; bottom: 15px; left: 30px; display: flex; justify-content: flex-end; color: #555; font: 10px var(--mono); }

.quick-strip { display: grid; min-height: 68px; grid-template-columns: .55fr repeat(4, 1fr); align-items: stretch; border-bottom: 1px solid var(--line); }
.quick-label { align-self: center; color: #666; }
.quick-strip button { display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 0; border-left: 1px solid var(--line); background: #fff; text-align: left; font-size: 13px; }
.quick-strip button:hover { background: #eee; }
.quick-icon { width: 18px; font-size: 17px; text-align: center; }
.content-section { padding: 66px 0 60px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 28px; font-weight: 400; letter-spacing: -.035em; }
.section-heading .eyebrow { margin: 0 0 8px; color: #555; font: 11px var(--mono); }
.schedule-date input { height: 40px; padding: 0 9px; border: 1px solid #999; background: #fff; font-size: 13px; }
.table-wrap { overflow-x: auto; }
.schedule-table { width: 100%; min-width: 600px; border-collapse: collapse; table-layout: fixed; }
.schedule-table th { height: 48px; padding: 0 10px; border-bottom: 1px solid #111; text-align: left; font-size: 12px; font-weight: 500; }
.schedule-table th:first-child { width: 18%; padding-left: 0; color: #666; }
.schedule-table td { height: 52px; padding: 0 10px; border-bottom: 1px solid #ddd; }
.schedule-table td:first-child { padding-left: 0; color: #444; font-size: 12px; }
.cart-head { display: flex; align-items: center; gap: 8px; }
.cart-head b { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #999; font-size: 11px; font-weight: 500; }
.period-name { display: flex; align-items: baseline; gap: 9px; }
.period-name strong { font-weight: 500; }
.period-name span { color: #777; font-size: 10px; }
.slot { display: flex; width: 100%; height: 32px; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid #ccc; background: #eee; color: #222; text-align: left; font-size: 11px; white-space: nowrap; }
.slot.open { background: #fff; }
.slot.pause { background: #e5e5e5; color: #666; }
.slot:disabled { opacity: 1; cursor: default; }
.slot-action:hover { outline: 1px solid #111; outline-offset: -1px; }
.table-foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; color: #666; font-size: 11px; }

.bottom-grid { display: grid; grid-template-columns: 2fr .85fr; gap: 56px; padding: 56px 0 68px; border-top: 1px solid var(--line); }
.section-heading.compact { margin-bottom: 18px; }
.section-heading.compact h2 { font-size: 24px; }
.notice-row { display: grid; grid-template-columns: 54px 1fr 16px; align-items: start; gap: 13px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.notice-row:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.notice-date { padding-top: 2px; color: #555; font: 11px var(--mono); }
.notice-tag { display: inline-block; margin-bottom: 7px; padding: 3px 5px; background: #eee; color: #333; font: 10px var(--mono); }
.notice-row h3 { margin: 0 0 5px; font-size: 15px; font-weight: 400; }
.notice-row p { margin: 0; color: #666; font-size: 12px; }
.notice-go { color: #555; font-size: 15px; }
.help-panel { min-height: 190px; padding: 22px; background: #f1f1f1; }
.help-panel h3 { margin: 0 0 10px; font-size: 21px; font-weight: 400; }
.help-panel p { margin: 0 0 15px; color: #555; font-size: 13px; line-height: 1.7; }
.text-link { padding: 4px 0; border: 0; background: none; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

.site-footer { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; padding: 44px max(40px, calc((100vw - 1360px) / 2)) 26px; background: #111; color: #fff; }
.footer-brand { display: flex; align-items: baseline; gap: 12px; }
.footer-brand strong { font-size: 15px; font-weight: 500; }
.footer-brand p { margin: 0; color: #bbb; font-size: 12px; }
.footer-col { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-col a, .footer-col button { padding: 0; border: 0; background: none; color: #ddd; font: 12px var(--font); }
.footer-col a:hover, .footer-col button:hover { text-decoration: underline; }

.dialog { width: min(620px, calc(100% - 32px)); max-height: 90vh; padding: 30px; overflow-y: auto; border: 1px solid #111; background: #fff; box-shadow: none; }
.dialog::backdrop { background: #0008; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; }
.dialog-top .mono-label { color: #555; }
.dialog-close { width: 32px; height: 32px; border: 1px solid #ccc; background: #fff; font-size: 21px; }
.dialog h2 { margin: 24px 0 18px; font-size: 27px; font-weight: 400; letter-spacing: -.03em; }
.dialog-intro { margin: -8px 0 20px; color: #555; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #aaa; background: #fff; font-size: 14px; }
.form-grid textarea { min-height: 100px; resize: vertical; }
.form-grid .full-field { grid-column: 1 / -1; }
.terms-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; color: #444; font-size: 12px; line-height: 1.6; }
.terms-check input { margin-top: 4px; accent-color: #111; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.dialog-content h2 { margin-top: 24px; }
.dialog-content p { color: #555; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.records-list { border-top: 1px solid var(--line); }
.record-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.record-row strong { font-size: 14px; font-weight: 500; }
.record-row p { margin: 6px 0; color: #555; font-size: 12px; line-height: 1.6; }
.record-row small { color: #777; font: 10px var(--mono); }
.record-cancel { flex: 0 0 auto; min-height: 36px; padding: 0 10px; border: 1px solid #777; background: #fff; font-size: 11px; }
.record-cancel:hover { background: #eee; }
.empty-state { padding: 18px 0; color: #555; }
#toast { position: fixed; bottom: 24px; left: 50%; z-index: 80; max-width: calc(100% - 32px); padding: 12px 16px; transform: translate(-50%, 16px); background: #111; color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1000px) {
  .topbar { padding: 0 24px; }
  .brand, .header-actions { min-width: auto; }
  .main-nav { gap: 18px; }
  .page-shell { padding: 0 24px; }
  .stage-body { grid-template-columns: 170px 1fr; gap: 16px; }
  .cart-card { padding: 14px; }
  .stage-aside { display: none; }
  .bottom-grid { gap: 30px; }
  .site-footer { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 700px) {
  .topbar { height: 62px; padding: 0 16px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-copy small { font-size: 10px; }
  .header-date { display: none; }
  .header-actions { margin-left: auto; margin-right: 10px; }
  .menu-toggle { display: grid; }
  .main-nav { position: absolute; top: 62px; right: 0; left: 0; display: none; height: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px; border-bottom: 1px solid var(--line); background: #fff; }
  .main-nav.open { display: flex; }
  .nav-link { height: 43px; border-bottom: 1px solid #eee; text-align: left; }
  .nav-link.active::after { display: none; }
  .page-shell { padding: 0 16px; }
  .intro-row { min-height: 0; align-items: flex-start; flex-direction: column; gap: 18px; padding: 38px 0 24px; }
  .intro-copy h1 { font-size: 34px; }
  .intro-actions { width: 100%; }
  .intro-actions .button { flex: 1; padding: 0 10px; }
  .stage { min-height: 0; padding: 17px 15px 36px; }
  .stage-heading { font-size: 10px; }
  .stage-weather { font-size: 10px; }
  .stage-body { display: flex; min-height: 0; flex-direction: column; align-items: stretch; gap: 18px; padding: 21px 0 8px; }
  .stage-message h2 { margin: 8px 0 12px; font-size: 25px; }
  .stage-legend { display: flex; flex-wrap: wrap; gap: 9px 14px; font-size: 10px; }
  .cart-visuals { gap: 8px; }
  .cart-card { min-height: 112px; padding: 10px; }
  .cart-letter { font-size: 20px; }
  .status-pill { padding: 3px 4px; font-size: 9px; }
  .cart-count { font-size: 22px; }
  .cart-count small { font-size: 9px; }
  .cart-bottom { font-size: 9px; }
  .availability-dots { display: none; }
  .stage-caption { right: 15px; bottom: 11px; left: 15px; font-size: 9px; }
  .quick-strip { grid-template-columns: 1fr 1fr; padding: 7px 0; }
  .quick-label { grid-column: 1 / -1; padding: 5px 0; }
  .quick-strip button { min-height: 46px; padding: 0 8px; border-top: 1px solid #eee; border-left: 0; font-size: 11px; }
  .quick-strip button:nth-of-type(even) { border-left: 1px solid #eee; }
  .content-section { padding: 46px 0 42px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 24px; }
  .schedule-date input { width: 145px; height: 36px; font-size: 11px; }
  .schedule-table { min-width: 570px; }
  .schedule-table th { height: 43px; padding: 0 6px; }
  .schedule-table td { height: 47px; padding: 0 6px; }
  .schedule-table th:first-child, .schedule-table td:first-child { width: 82px; }
  .cart-head { gap: 4px; }
  .cart-head b { width: 20px; height: 20px; }
  .slot { height: 30px; justify-content: center; padding: 0 4px; font-size: 9px; }
  .slot .slot-text { display: none; }
  .table-foot { align-items: flex-start; font-size: 9px; }
  .bottom-grid { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 45px; }
  .section-heading.compact h2 { font-size: 22px; }
  .notice-row { grid-template-columns: 42px 1fr 12px; gap: 8px; padding: 13px 0; }
  .notice-row h3 { font-size: 13px; }
  .notice-row p { font-size: 11px; line-height: 1.5; }
  .help-panel { min-height: 0; padding: 18px; }
  .site-footer { grid-template-columns: 1fr; gap: 18px; padding: 30px 16px 24px; }
  .footer-col { justify-content: flex-start; gap: 15px; }
  .dialog { padding: 22px 18px; }
  .dialog h2 { margin: 20px 0 15px; font-size: 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 13px; }
  .form-grid .full-field { grid-column: auto; }
  .record-row { align-items: flex-start; flex-direction: column; }
  .record-cancel { min-height: 38px; }
}

.auth-button { min-height: 34px; padding: 0 12px; font-size: 12px; }

:root { --muted: #757575; --line: #d6d6d6; --paper: #fff; }
body { background: #fff; line-height: 1.55; }
.topbar { border-color: #d6d6d6; }
.main-nav { gap: 25px; }
.nav-link { font-size: 14px; }
.page-shell { max-width: 1400px; padding-inline: 36px; }
.intro-row { min-height: 190px; padding-top: 44px; padding-bottom: 28px; }
.intro-copy h1 { font-weight: 400; letter-spacing: -.02em; }
.stage { min-height: 390px; padding: 22px 28px 34px; border-block: 1px solid #d6d6d6; background: #fff; }
.stage::before { display: none; }
.stage-heading, .stage-weather, .stage-caption { color: #555; }
.stage-body { min-height: 300px; grid-template-columns: 190px 1fr; gap: 30px; }
.stage-message h2, .section-heading h2 { font-weight: 400; letter-spacing: -.02em; }
.cart-visuals { gap: 0; border-top: 1px solid #d6d6d6; }
.cart-card { min-height: 132px; padding: 18px 20px; border: 0; border-bottom: 1px solid #d6d6d6; }
.cart-card:nth-child(odd) { border-right: 1px solid #d6d6d6; }
.cart-letter { font-size: 26px; font-weight: 400; }
.status-pill { background: #f3f3f3; border-color: #d6d6d6; }
.cart-count { font-weight: 400; }
.quick-strip { grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d6d6d6; }
.quick-label { display: none; }
.quick-strip button { justify-content: flex-start; min-height: 64px; padding-inline: 20px; border-color: #d6d6d6; font-size: 14px; }
.content-section { padding-block: 58px 52px; }
.schedule-table th { border-bottom-color: #111; font-weight: 500; }
.schedule-table td { border-color: #e2e2e2; }
.bottom-grid { border-color: #d6d6d6; }
.help-panel { background: #f5f5f5; }
.site-footer { background: #111416; }

@media (max-width: 1000px) {
  .page-shell { padding-inline: 24px; }
  .stage-body { grid-template-columns: 160px 1fr; gap: 20px; }
  .cart-card { padding-inline: 15px; }
}
@media (max-width: 700px) {
  .page-shell { padding-inline: 16px; }
  .intro-row { padding-top: 34px; }
  .stage { padding: 17px 15px 34px; }
  .stage-body { min-height: 0; gap: 18px; }
  .cart-visuals { gap: 0; }
  .cart-card { min-height: 112px; padding: 10px; }
  .quick-strip { grid-template-columns: 1fr 1fr; }
  .quick-label { display: none; }
  .quick-strip button { min-height: 46px; padding-inline: 8px; }
  .content-section { padding-block: 44px 40px; }
}
