:root{--yellow: #fdb407;--petrol: #0a7784;--petrol-ink: #ffffff;--petrol-soft: #e3f1f2;--bg: #f6f7f7;--surface: #ffffff;--ink: #17201f;--muted: #5b6766;--line: #e2e6e6;--danger: #b42318;--danger-soft: #fdecea;--ok: #157f3b;--ok-soft: #e6f4ea;--warn-soft: #fff4d6;--radius: 14px;--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);--gutter: 16px;color-scheme:light}@media (prefers-color-scheme: dark){:root{--petrol: #23a3ad;--petrol-ink: #061a1c;--petrol-soft: #10302f;--bg: #0f1514;--surface: #18201f;--ink: #eef2f1;--muted: #a3b0ae;--line: #2a3533;--danger: #ff8a80;--danger-soft: #3a1714;--ok: #6fd28f;--ok-soft: #12301d;--warn-soft: #3a2f0f;--shadow: none;color-scheme:dark}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit;color:inherit}img{display:block;max-width:100%}a{color:var(--petrol)}:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.app{max-width:560px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column}.page{flex:1;padding:0 var(--gutter) calc(96px + env(safe-area-inset-bottom))}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;padding:10px var(--gutter);background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}.topbar h1{font-size:17px;margin:0;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .sub{color:var(--muted);font-size:13px}.icon-btn{width:40px;height:40px;flex:none;border-radius:12px;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;cursor:pointer}.icon-btn svg{width:20px;height:20px}.hero{padding:24px 0 8px;text-align:center}.hero .logo{width:84px;height:84px;border-radius:20px;object-fit:cover;margin:0 auto 12px;background:var(--surface);box-shadow:var(--shadow)}.hero .logo-fallback{width:84px;height:84px;border-radius:20px;margin:0 auto 12px;display:grid;place-items:center;background:var(--petrol);color:var(--petrol-ink);font-weight:700;font-size:32px}.hero h2{margin:0;font-size:24px}.hero .muted{margin-top:4px}.table-chip{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:6px 14px;border-radius:999px;background:var(--yellow);color:#1a1a1a;font-weight:600}.muted{color:var(--muted)}.small{font-size:13px}.actions{display:grid;gap:10px;margin-top:20px}.actions .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-weight:600;cursor:pointer;text-decoration:none;color:var(--ink);transition:transform .08s ease}.btn:active{transform:scale(.98)}.btn[disabled]{opacity:.5;cursor:not-allowed;transform:none}.btn-primary{background:var(--petrol);border-color:var(--petrol);color:var(--petrol-ink)}.btn-accent{background:var(--yellow);border-color:var(--yellow);color:#1a1a1a}.btn-block{width:100%}.btn-lg{min-height:56px;font-size:17px}.btn svg{width:20px;height:20px}.notice{border-radius:var(--radius);padding:12px 14px;margin:12px 0;font-size:15px}.notice-warn{background:var(--warn-soft)}.notice-error{background:var(--danger-soft);color:var(--danger)}.notice-ok{background:var(--ok-soft);color:var(--ok)}.notice-info{background:var(--petrol-soft)}.search{position:relative;margin:12px 0 0}.search input{width:100%;height:46px;border-radius:12px;border:1px solid var(--line);background:var(--surface);padding:0 14px 0 40px}.search svg{position:absolute;left:12px;top:13px;width:20px;height:20px;color:var(--muted)}.tabs{position:sticky;top:61px;z-index:15;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1 * var(--gutter));padding:10px var(--gutter);background:var(--bg)}.tabs::-webkit-scrollbar{display:none}.tab{flex:none;height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap}.tab[aria-selected=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}.cat-title{font-size:18px;margin:18px 0 8px;scroll-margin-top:120px}.product-list{display:grid;gap:10px}.product{display:flex;gap:12px;padding:12px;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);border:1px solid var(--line);text-align:left;width:100%;cursor:pointer}.product[aria-disabled=true]{opacity:.55;cursor:default}.product .body{flex:1;min-width:0;display:flex;flex-direction:column}.product .name{font-weight:650}.product .desc{color:var(--muted);font-size:14px;margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product .price{margin-top:auto;padding-top:6px;font-weight:650}.product .thumb{width:92px;height:92px;flex:none;border-radius:12px;object-fit:cover;background:var(--line)}.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:700;background:var(--line);color:var(--muted)}.badge-warn{background:var(--warn-soft);color:var(--ink)}.badge-ok{background:var(--ok-soft);color:var(--ok)}.bottombar{position:fixed;left:0;right:0;bottom:0;z-index:30;padding:10px var(--gutter) calc(10px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 75%,transparent)}.bottombar>*{max-width:528px;margin:0 auto}.bottombar .btn{width:100%;justify-content:space-between}.sheet-backdrop{position:fixed;inset:0;z-index:40;background:#00000073;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s ease}.sheet{width:100%;max-width:560px;max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;background:var(--surface);border-radius:20px 20px 0 0;animation:up .2s ease;padding-bottom:calc(88px + env(safe-area-inset-bottom))}.sheet-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px var(--gutter);background:var(--surface);border-bottom:1px solid var(--line)}.sheet-head h2{margin:0;font-size:18px}.sheet-body{padding:0 var(--gutter)}.sheet-foot{position:fixed;left:0;right:0;bottom:0;padding:10px var(--gutter) calc(10px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}.sheet-foot>*{max-width:528px;margin:0 auto}.sheet .hero-img{width:100%;aspect-ratio:16 / 10;object-fit:cover}@keyframes up{0%{translate:0 24px;opacity:.6}}@keyframes fade{0%{opacity:0}}fieldset{border:0;margin:16px 0 0;padding:0}legend{font-weight:650;display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:6px}.choice{display:flex;align-items:center;gap:12px;padding:12px 2px;border-bottom:1px solid var(--line);cursor:pointer}.choice:last-child{border-bottom:0}.choice input{width:20px;height:20px;accent-color:var(--petrol);flex:none}.choice .grow{flex:1}.choice[aria-disabled=true]{opacity:.5}textarea,.input{width:100%;border-radius:12px;border:1px solid var(--line);background:var(--surface);padding:10px 12px}textarea{min-height:64px;resize:vertical}label.field{display:block;margin-top:14px;font-weight:600}label.field>span{display:block;margin-bottom:6px}.help{color:var(--muted);font-size:13px;font-weight:400;margin-top:4px}.stepper{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}.stepper button{width:44px;height:44px;border:0;background:transparent;font-size:22px;cursor:pointer}.stepper button[disabled]{opacity:.35}.stepper output{min-width:32px;text-align:center;font-weight:700}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin-top:12px;box-shadow:var(--shadow)}.line{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}.line:last-child{border-bottom:0}.line .grow{flex:1;min-width:0}.line .meta{color:var(--muted);font-size:14px}.totals{display:flex;justify-content:space-between;font-weight:700;font-size:18px}.kv{display:flex;justify-content:space-between;padding:4px 0}a.kv{color:inherit;text-decoration:none;padding:10px 0;border-bottom:1px solid var(--line)}a.kv:last-child{border-bottom:0}.steps{list-style:none;padding:0;margin:8px 0 0}.steps li{display:flex;gap:12px;align-items:center;padding:8px 0;color:var(--muted)}.steps li .dot{width:14px;height:14px;border-radius:50%;border:2px solid var(--line);flex:none}.steps li.done{color:var(--ink)}.steps li.done .dot{background:var(--petrol);border-color:var(--petrol)}.steps li.current{font-weight:700;color:var(--ink)}.steps li.current .dot{background:var(--yellow);border-color:var(--yellow);box-shadow:0 0 0 4px color-mix(in srgb,var(--yellow) 30%,transparent)}.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:12px;background:var(--line);margin-top:14px}.segmented button{height:40px;border:0;border-radius:9px;background:transparent;font-weight:600;font-size:14px;cursor:pointer}.segmented button[aria-pressed=true]{background:var(--surface);box-shadow:var(--shadow)}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.chip{min-width:64px;height:42px;padding:0 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-weight:600;cursor:pointer}.chip[aria-pressed=true]{background:var(--petrol);border-color:var(--petrol);color:var(--petrol-ink)}.pay-line{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.pay-line:last-child{border-bottom:0}.pay-line .grow{flex:1;min-width:0}.pay-line.locked{opacity:.6}.big-number{font-size:28px;font-weight:800}.result{text-align:center;padding:32px 0 8px}.result .icon{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px}.result .icon svg{width:36px;height:36px}.result .ok{background:var(--ok-soft);color:var(--ok)}.result .bad{background:var(--danger-soft);color:var(--danger)}.toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translate(-50%);z-index:60;width:max-content;max-width:calc(100% - 32px);text-align:center;padding:12px 16px;border-radius:12px;background:var(--ink);color:var(--bg);font-weight:600;box-shadow:var(--shadow);animation:up .2s ease}.spinner{width:28px;height:28px;border:3px solid var(--line);border-top-color:var(--petrol);border-radius:50%;animation:spin .8s linear infinite;margin:48px auto}@keyframes spin{to{transform:rotate(360deg)}}.footer-note{text-align:center;color:var(--muted);font-size:12px;margin:24px 0 8px}.skeleton{background:linear-gradient(90deg,var(--line),var(--surface),var(--line));background-size:200% 100%;animation:shimmer 1.2s infinite;border-radius:var(--radius);height:116px}@keyframes shimmer{to{background-position:-200% 0}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
