:root {
  color-scheme: light;
  --background: #f7f8fa;
  --white: #fff;
  --ink: #122031;
  --muted: #526276;
  --line: #dce3eb;
  --deep: #122b4d;
  --blue: #15488b;
  --orange: #ff6547;
  --peach: #ffb58e;
  font-family: Inter, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--background);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #366bc9;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.6; }
.wrap { width: min(1192px, calc(100% - 72px)); margin-inline: auto; }
.loading { padding: 3rem 0; }
.header { background: var(--white); border-bottom: 1px solid #e9edf2; }
.navigation { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: var(--deep); color: white; font-size: 1.45rem; line-height: 1; }
.name-space { margin-inline-start: .3em; }
.top-actions, .staff-actions { display: flex; align-items: center; gap: 10px; }
.quiet { border: 0; background: none; color: var(--muted); min-height: 42px; padding: 8px 10px; font-weight: 650; font-size: .875rem; }
.quiet:hover, .footer a:hover { color: var(--blue); text-decoration: underline; }
.cart-toggle { white-space: nowrap; border-radius: 12px; padding: 8px 11px; min-height: 42px; border: 1px solid var(--line); background: #eef3fa; color: var(--deep); font-size: .875rem; font-weight: 750; }
.cart-toggle span { display: inline-grid; place-items: center; min-width: 20px; min-height: 20px; padding: 0 4px; margin-inline-start: 3px; border-radius: 6px; background: var(--deep); color: white; font-size: .73rem; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; margin-top: 22px; min-height: clamp(395px, 41vw, 550px); color: white; border-radius: 24px; overflow: hidden;
  background-color: #203d60; background-image: linear-gradient(90deg, #102541f5 0%, #172f50d6 24%, #203b6170 53%, #112a4c17 100%), url('/assets/slope.jpg');
  background-size: cover; background-position: center, center 55%; }
.hero-content { padding: 52px clamp(32px, 5.3vw, 76px); }
.location { font-size: .875rem; font-weight: 650; letter-spacing: .055em; color: #e3edfa; display: flex; align-items: center; gap: 10px; }
.location span { color: var(--peach); font-size: .65rem; }
.hero h1 { margin: 16px 0; font-size: clamp(3.05rem, 7.2vw, 6.15rem); font-weight: 900; letter-spacing: -.09em; line-height: 1.03; }
.hero p { color: #e0ebf8; font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.17rem); }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; min-height: 46px; padding: 10px 18px; font-weight: 750; line-height: 1.2; }
.primary { background: var(--deep); color: white; }
.primary:hover:not(:disabled) { background: var(--blue); }
.secondary { background: #f0f4fa; color: var(--deep); border-color: var(--line); }
.secondary:hover { background: #e6eef9; }
.hero-action { margin-top: 25px; background: var(--orange); color: #18212c; }
.hero-action:hover:not(:disabled) { background: #ff886c; }
.image-credit { position: absolute; bottom: 13px; right: 16px; font-size: .75rem; padding: 3px 7px; background: #132942d9; border-radius: 5px; }
.catalog { padding: clamp(33px, 5vw, 65px) 0 34px; scroll-margin-top: 14px; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 23px; }
.eyebrow { color: #335d92; font-weight: 760; font-size: .85rem; letter-spacing: .11em; margin-bottom: 5px; }
.catalog h2, .guide h2, .staff h1 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.2; letter-spacing: -.065em; font-weight: 830; }
.filters { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border: 1px solid var(--line); background: #eff2f7; border-radius: 12px; width: fit-content; }
.filters button { border: 0; border-radius: 8px; min-height: 38px; padding: 6px 13px; color: var(--muted); background: none; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.filters [aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px #1220311c; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: var(--white); }
.product-image { position: relative; min-height: 122px; aspect-ratio: 1.5; background-image: url('/assets/gear.jpg'); background-repeat: no-repeat; background-size: 200% 200%; }
.product-image.protection { background-position: left top; background-color: #dce3fb; }
.product-image.starter { background-position: right top; background-color: #c6dbf0; }
.product-image.defense { background-position: left bottom; background-color: #7190af; }
.product-image.family { background-position: right bottom; background-color: #f3d3bc; }
.product-image span { position: absolute; top: 10px; left: 10px; background: white; color: var(--deep); border-radius: 6px; padding: 4px 7px; font-size: .75rem; font-weight: 750; }
.product-content { padding: 15px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.product-content h3 { font-size: 1.17rem; line-height: 1.25; letter-spacing: -.04em; }
.product-content p { color: var(--muted); font-size: .875rem; margin-bottom: 7px; }
.product-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 2px; }
.product-foot strong { font-size: 1.42rem; letter-spacing: -.045em; color: var(--deep); }
.product-foot small { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.add { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 11px; background: #ebf1fa; color: var(--deep); font-size: 1.36rem; line-height: 1; }
.add:hover { background: var(--deep); color: white; }
.demo-note { color: var(--muted); margin-top: 17px; font-size: .875rem; }
.guide { background: #eaf0f8; border-radius: 18px; padding: 28px; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.guide-items { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.guide-items p { margin-top: 5px; color: var(--muted); font-size: .875rem; }
.footer { margin: 36px 0 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; min-height: 74px; gap: 10px; font-size: .85rem; color: var(--muted); }
dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 20px; width: min(545px, calc(100% - 24px)); max-height: calc(100dvh - 28px); padding: 23px; box-shadow: 0 20px 90px #08193349; }
dialog::backdrop { background: #14233c98; }
.dialog-head, .booking-number { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-head { margin-bottom: 13px; }
.dialog-head h2 { font-size: 1.4rem; }
.close { width: 44px; height: 44px; border: 0; border-radius: 10px; background: #ecf1f8; color: var(--ink); font-size: 1.45rem; flex-shrink: 0; }
.fields { display: grid; gap: 13px; margin-top: 13px; }
.fields label { display: grid; gap: 5px; min-width: 0; font-size: .875rem; font-weight: 700; }
.fields :is(input,select,textarea) { min-width: 0; border: 1px solid #bdc9d8; border-radius: 9px; color: var(--ink); background: white; min-height: 43px; width: 100%; padding: 8px 10px; font-size: 1rem; }
.fields select { appearance: none; padding-right: 25px; background-image: linear-gradient(45deg,transparent 50%,var(--deep) 50%),linear-gradient(135deg,var(--deep) 50%,transparent 50%); background-position: calc(100% - 13px) 19px,calc(100% - 8px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.fields .consent { display: flex; align-items: center; font-weight: 500; color: var(--muted); }
.fields .consent input { min-height: 18px; width: 18px; flex: 0 0 18px; accent-color: var(--deep); }
.two-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.cart-lines > div, .inventory-line { padding: 3px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.full { width: 100%; }
.muted, .fine { color: var(--muted); }
.fine { font-size: .875rem; margin-bottom: 6px; }
.error { color: #922f27; font-size: .9rem; }
.totals { background: #edf3fa; border-radius: 11px; padding: 12px 14px; margin-block: 7px; }
.totals > div { display: flex; align-items: baseline; justify-content: space-between; padding: 3px 0; font-size: .875rem; }
.totals .total-due { border-top: 1px solid #cfdced; margin-top: 5px; padding-top: 6px; color: var(--deep); }
.total-due strong { font-size: 1.3rem; }
.totals p { font-size: .8rem; color: var(--muted); }
.status { background: #eaf1f9; color: #234d81; border-radius: 8px; padding: 5px 8px; font-size: .85rem; font-weight: 700; }
#toast { position: fixed; z-index: 5; inset: auto auto calc(18px + env(safe-area-inset-bottom)) 50%; transform: translateX(-50%); background: var(--ink); color: white; border-radius: 10px; padding: 10px 16px; max-width: 90vw; width: max-content; font-size: .95rem; }
.staff { padding-block: 34px; min-height: 65vh; }
.staff.login { max-width: 430px; }
.staff-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 14px; margin-block: 16px; }
.staff-card { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; display: grid; gap: 8px; }
.staff-card h2 { font-size: 1.2rem; }
.staff-card h3, .staff-card p { overflow-wrap: anywhere; }
.staff-actions { flex-wrap: wrap; }
.inventory-line { min-height: 34px; font-size: .875rem; }
.manual-bar { margin-top: 14px; padding: 8px 14px; background: #e7eff9; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 32px); }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guide { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .navigation { min-height: 60px; }
  .brand-mark { width: 26px; height: 26px; border-radius: 7px; font-size: 1.14rem; }
  .wordmark { font-size: .93rem; gap: 5px; }
  .top-actions { gap: 2px; }
  .top-actions .quiet, .cart-toggle { padding-inline: 6px; font-size: .79rem; }
  .cart-toggle span { min-width: 16px; min-height: 17px; }
  .hero { margin-top: 12px; min-height: 380px; border-radius: 18px; background-position: center, 57% 60%; }
  .hero-content { padding: 32px 23px; }
  .hero p { width: min(215px, 100%); }
  .desktop { display: none; }
  .section-top { align-items: start; flex-direction: column; margin-bottom: 15px; }
  .product-grid { gap: 9px; }
  .product-card { border-radius: 13px; }
  .product-content { padding: 10px; }
  .product-content h3 { font-size: 1.02rem; }
  .product-content p { font-size: .8rem; }
  .product-foot strong { font-size: 1.23rem; }
  .product-foot small { font-size: .67rem; }
  .product-image { min-height: 100px; }
  .product-image span { top: 6px; left: 6px; }
  .filters { max-width: 100%; }
  .filters button { padding-inline: 9px; min-height: 39px; }
  .guide { padding: 21px; }
  .guide-items, .staff-columns { grid-template-columns: 1fr; }
  dialog { padding: 15px; }
}
.notice { padding: 12px 15px; margin-block: 13px; background: #e9eff9; border-radius: 10px; color: var(--deep); }
.rules { white-space: pre-line; overflow-wrap: anywhere; }
.staff-card details, .staff-card fieldset, dialog fieldset { min-width: 0; }
summary { cursor: pointer; padding: 7px 0; font-weight: 700; color: var(--deep); font-size: .9rem; }
.checks, .slot-config { margin: 1px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.checks .consent { min-height: 43px; }
.checks legend, .slot-config legend { padding-inline: 5px; color: var(--muted); font-size: .875rem; }
.three-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.cash-panel { padding: 10px 0 0; border-top: 1px solid var(--line); }
.cash-panel .staff-actions { margin-top: 7px; }
.asset-line { border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.asset-line .inventory-line { border: none; }
.report { padding-top: 16px; }
.report > label { display: grid; gap: 4px; max-width: 220px; }
.report input { border: 1px solid var(--line); background: white; color: var(--ink); min-height: 42px; padding: 6px 9px; border-radius: 8px; }
.report-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 14px 0 10px; }
.report-grid strong { color: var(--deep); font-size: 1.45rem; }
@media (max-width:560px) {
  .report-grid { grid-template-columns: repeat(2,1fr); }
}

.menu-hero {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  min-height: 190px;
  margin-top: 18px;
  padding: 25px 30px;
  border-radius: 20px;
  color: white;
  background: linear-gradient(90deg,#112742 5%,#112742da 42%,#17334f20 88%), url('/assets/slope.jpg') center 59% / cover, #193753;
}
.menu-hero h1 { font-size: clamp(1.55rem,4.4vw,3rem); line-height: 1.17; margin: 5px 0 8px; letter-spacing: -.06em; }
.menu-hero p { color:#e1eaf3; }
.menu-location, .demo-tag { font-size: .8rem; font-weight: 750; letter-spacing: .045em; }
.demo-tag { padding: 5px 9px; background: #fff0e9; color: #82311c; border-radius: 7px; white-space: nowrap; }
.order-menu { padding-top: 23px; }
.menu-layout { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 16px; align-items: start; }
.menu-categories { background: #ebf0f7; border: 1px solid var(--line); border-radius: 14px; padding: 5px; position: sticky; top: 10px; }
.menu-categories button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; min-height: 46px;
  border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 650;
}
.menu-categories button[aria-pressed="true"] { background: white; color: var(--deep); box-shadow: inset 3px 0 var(--orange); font-weight: 790; }
.menu-heading { padding: 4px 0 12px; }
.menu-heading h2 { font-size: clamp(1.2rem,3vw,1.65rem); }
.menu-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.menu-item { border: 1px solid var(--line); background: white; border-radius: 14px; display: grid; grid-template-columns: minmax(76px,32%) minmax(0,1fr); gap: 10px; padding: 10px; }
.menu-image.product-image { width: 100%; border-radius: 9px; min-height: 0; aspect-ratio: 1; border: 0; align-self: start; }
.menu-content { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; gap: 4px; }
.menu-content p { font-size: .86rem; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.menu-title { display: block; width: fit-content; text-align: left; border: none; padding: 0; background: none; color: var(--ink); font-weight: 780; line-height: 1.35; }
.menu-title:hover { text-decoration: underline; }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.menu-foot strong, .detail-price { color: #ad4229; font-weight: 850; font-size: 1.17rem; white-space: nowrap; }
.menu-foot small, .detail-price small { color: var(--muted); font-size: .74rem; font-weight: 650; }
.menu-foot .add { background: #ffe9de; color: #792b19; width: 44px; min-width: 44px; }
.menu-foot .add span { font-size: .96rem; font-weight: 780; }
.order-dock { position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; pointer-events: none; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
body:has(.order-dock:not([hidden])) .footer { margin-bottom: 84px; }
.order-dock-inner {
  width: min(555px,100%); margin: auto; display: flex; justify-content: space-between; align-items: center;
  background: #142a44; border: 1px solid #283f58; border-radius: 16px; color: white; padding: 8px;
  box-shadow: 0 6px 22px #10264255; pointer-events: auto; gap: 6px;
}
.order-dock-inner .primary { background: var(--orange); color: #152233; padding-inline: 19px; }
.order-dock-inner .primary:hover:not(:disabled) { background: #ff886c; }
.dock-summary { border: 0; color: white; display: flex; gap: 8px; text-align: left; align-items: center; background: none; padding: 2px 5px; font-size: .9rem; font-weight: 680; }
.dock-summary small { color: #d0dced; display: block; font-size: .72rem; margin-top: 2px; }
.dock-count { min-width: 34px; min-height: 34px; border-radius: 10px; display: grid; place-items: center; background: #294057; }
.detail-image { border-radius: 12px; aspect-ratio: 2; }
.detail-intro { padding-block: 10px; font-size: .95rem; color: var(--muted); }
.detail-parts { padding: 10px 13px; background: #f0f4f8; border-radius: 10px; }
.detail-parts h3 { font-size: .9rem; margin-bottom: 3px; }
.detail-parts div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .88rem; padding: 3px 0; }
.detail-parts b { color: var(--muted); font-size: .8rem; font-weight: 600; }
.rate-table { width: 100%; border-collapse: collapse; text-align: center; margin: 12px 0 6px; font-size: .85rem; }
.rate-table caption { text-align: left; font-weight: 750; padding-bottom: 3px; }
.rate-table :is(th,td) { padding: 5px 2px; border-bottom: 1px solid var(--line); }
.cart-entry { border-bottom: 1px solid var(--line); padding-block: 10px; }
.cart-entry-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; }
.cart-entry-controls span { margin-right: auto; }
.checkout-demo { padding: 9px 11px; border-radius: 9px; color: #624422; background: #fff3dd; font-size: .85rem; }
.back-cart { min-height: 30px; padding: 4px 6px 4px 0; }
@media (max-width: 800px) {
  .menu-hero { min-height: 142px; padding: 16px 18px; }
  .menu-products { grid-template-columns: 1fr; }
  .menu-item { grid-template-columns: minmax(70px,110px) minmax(0,1fr); }
}
@media (max-width: 460px) {
  .order-menu { width: calc(100% - 16px); padding-top: 16px; }
  .menu-hero { width: calc(100% - 16px); margin-top: 9px; min-height: 122px; border-radius: 13px; }
  .menu-hero h1 { font-size: 1.32rem; }
  .menu-hero p { font-size: .8rem; }
  .menu-hero .demo-tag { font-size: .65rem; }
  .menu-layout { grid-template-columns: 77px minmax(0,1fr); gap: 7px; }
  .menu-categories { padding: 3px; border-radius: 10px; }
  .menu-categories button { font-size: .77rem; min-height: 43px; padding-inline: 5px; }
  .menu-item { grid-template-columns: minmax(56px,27%) minmax(0,1fr); gap: 7px; padding: 7px; }
  .menu-content p { font-size: .77rem; }
  .menu-title { font-size: .94rem; }
}
