:root { color-scheme: light; font-family: system-ui, "Microsoft YaHei", sans-serif; color: #142c24; background: #edf3ee; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 640px; margin: auto; padding: 24px 16px 36px; }
main.wide { max-width: 1120px; }
header { background: #124435; color: white; border-radius: 22px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header p { color: #d2e7da; margin-bottom: 0; }
.brand { display: grid; gap: 9px; min-width: 0; }
.brand-logo { display: block; width: 132px; max-width: 100%; height: 38px; object-fit: contain; object-position: left center; }
h1 { font-size: clamp(1.65rem, 5vw, 2.4rem); margin: 0; }
h2, legend { font-size: 1.13rem; font-weight: 730; margin: 0 0 12px; }
p { line-height: 1.5; }
section { margin-top: 14px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid #dce8df; min-width: 0; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
fieldset + fieldset { margin-top: 18px; }
label { display: grid; gap: 6px; font-size: .9rem; }
input, select, button, .button { font: inherit; font-size: 1rem; border-radius: 10px; min-height: 44px; }
input, select { border: 1px solid #bfcec4; padding: 8px 10px; color: inherit; background: #fff; min-width: 0; width: 100%; }
select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23124333' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
button, .button { border: 1px solid transparent; background: #17664b; color: white; padding: 8px 14px; font-weight: 680; cursor: pointer; text-align: center; }
.button { display: inline-grid; place-items: center; text-decoration: none; }
.secondary, .stepper button { background: #edf6ef; color: #134c37; border-color: #cfe1d4; }
button:disabled { opacity: .47; cursor: default; }
:focus-visible { outline: 3px solid #8a5812; outline-offset: 2px; }
.formgrid, .checkout { display: grid; gap: 12px; }
.meals, .pair { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.pair { grid-template-columns: 1fr 1fr; }
.meals label { position: relative; }
.meals input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.meals span { padding: 11px 4px; text-align: center; border-radius: 10px; border: 1px solid #d1e0d5; font-size: 1rem; }
.meals input:checked + span { background: #dff0e4; color: #124435; border-color: #17664b; font-weight: 700; }
.meals input:focus-visible + span { outline: 3px solid #8a5812; }
.package, .checkout > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.package + .package { margin-top: 12px; border-top: 1px solid #e4ede6; padding-top: 12px; }
.unit, small { color: #435a4d; font-size: .9rem; }
.stepper { display: grid; grid-template-columns: 44px 48px 44px; gap: 4px; }
.stepper button { padding: 0; }
.stepper input { text-align: center; padding: 0; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.checkout strong { font-size: 1.6rem; color: #124435; }
.checkout small { text-align: center; }
.notice { padding: 12px 14px; background: #daeee2; border-radius: 10px; }
.error { color: #8e2d13; background: #ffebe3; }
.filters, .stats { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.stats span { background: #edf6ef; border-radius: 8px; padding: 8px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
td, th { text-align: left; padding: 9px; border-bottom: 1px solid #dbe7df; font-size: .9rem; }
.lower { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lower button { margin-top: 12px; }
#qr { margin: 12px 0; }
#qr img, #qr canvas { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
@media (max-width: 650px) { .lower { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 480px) {
    header { padding: 18px; }
    header .brand { gap: 7px; }
    .brand-logo { width: 108px; height: 32px; }
}
