:root{
  --green:#1F4D36;--green-d:#163A29;--green-t:#EAF1EC;
  --ink:#1B1F1D;--gray:#5C605D;--line:#D3D8D4;--bg:#F4F6F3;--card:#FFFFFF;--panel:#EDF0EC;
  --err:#A12020;--err-t:#FBECEC;--warn:#7A4F00;--warn-t:#FFF4DC;--red:#EE1F24;
  --focus:#0B57D0;--r:8px;--r-lg:12px;
  --font:Calibri,Carlito,"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;
  --tabs:64px;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 var(--font);-webkit-text-size-adjust:100%}
body{padding-bottom:calc(var(--tabs) + env(safe-area-inset-bottom))}
a{color:var(--green)}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
img{max-width:100%;display:block}
h1{font-size:1.6rem;line-height:1.2;margin:0 0 .5rem}
h2{font-size:1.35rem;line-height:1.25;margin:1.25rem 0 .5rem}
h3{font-size:1.125rem;margin:1rem 0 .4rem}
p{margin:.4rem 0}
.muted{color:var(--gray)}
.small{font-size:.875rem}
.num{font-variant-numeric:tabular-nums}

/* top bar */
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:.5rem;min-height:56px;padding:calc(env(safe-area-inset-top) + 6px) 16px 6px;background:var(--card);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:.4rem;text-decoration:none;color:var(--ink);font-family:Palatino,"Palatino Linotype","Book Antiqua",Georgia,serif;font-weight:700;letter-spacing:.06em}
.brand b{color:var(--red)}
.top-title{margin-left:auto;font-weight:600;color:var(--gray);font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}
.back{border:0;background:none;font-size:2rem;line-height:1;color:var(--green);padding:0 .4rem 0 0;min-height:44px;cursor:pointer}

main{max-width:720px;margin:0 auto;padding:16px}
main:focus{outline:none}

/* bottom tabs */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:5;display:grid;grid-template-columns:repeat(4,1fr);background:var(--card);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:var(--tabs);text-decoration:none;color:var(--gray);font-size:.75rem}
.tabs svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.tabs a.on{color:var(--green);font-weight:700}

/* controls */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:0 1.1rem;border-radius:var(--r);border:1px solid var(--green);background:var(--green);color:#fff;font:inherit;font-weight:600;text-decoration:none;cursor:pointer;transition:background .15s}
.btn:hover{background:var(--green-d)}
.btn.sec{background:var(--card);color:var(--green)}
.btn.quiet{background:none;border-color:transparent;color:var(--green)}
.btn.danger{background:var(--card);color:var(--err);border-color:var(--err)}
.btn.block{width:100%}
.btn[disabled]{opacity:.55;cursor:default}
.row{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.stack>*+*{margin-top:.75rem}
label{display:block;font-weight:600;margin:.75rem 0 .25rem}
.hint{font-weight:400;color:var(--gray);font-size:.875rem}
input,select,textarea{width:100%;min-height:44px;padding:.55rem .7rem;border:1px solid var(--line);border-radius:var(--r);background:#fff;font:inherit;color:var(--ink)}
textarea{min-height:110px;resize:vertical}
.check{display:flex;gap:.6rem;align-items:flex-start;font-weight:400;margin:.6rem 0}
.check input{width:22px;min-height:22px;height:22px;margin-top:2px;flex:none}
.search{display:flex;gap:.5rem}
.search input{flex:1}

/* cards */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (min-width:560px){.grid{grid-template-columns:repeat(3,1fr)}}
.item{display:block;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;text-decoration:none;color:var(--ink)}
.item .ph{aspect-ratio:1/1;background:var(--panel);display:flex;align-items:center;justify-content:center;color:var(--gray)}
.item .ph img{width:100%;height:100%;object-fit:cover}
.item .tx{padding:8px 10px 10px}
.item .t{font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.item .p{font-weight:700;color:var(--green);margin-top:.2rem}
.item .s{font-size:.8rem;color:var(--gray);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.list{display:flex;flex-direction:column;gap:10px}
.line{display:flex;justify-content:space-between;gap:.75rem;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:12px 14px;text-decoration:none;color:var(--ink)}
.line .main{min-width:0}
.line .main b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.badge{display:inline-block;padding:.1rem .55rem;border-radius:999px;font-size:.8rem;font-weight:600;background:var(--panel);color:var(--ink);white-space:nowrap}
.badge.ok{background:var(--green-t);color:var(--green)}
.badge.warn{background:var(--warn-t);color:var(--warn)}
.badge.err{background:var(--err-t);color:var(--err)}

.gallery{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:var(--r-lg);margin:-4px 0 12px}
.gallery img{width:100%;flex:none;aspect-ratio:1/1;object-fit:cover;scroll-snap-align:center;border-radius:var(--r-lg);background:var(--panel)}
.price{font-size:1.6rem;font-weight:700;color:var(--green)}
.facts{display:grid;grid-template-columns:auto 1fr;gap:.3rem 1rem;margin:.75rem 0}
.facts dt{color:var(--gray)}
.facts dd{margin:0}
.notice{border-radius:var(--r);padding:.75rem .9rem;background:var(--green-t);margin:.75rem 0}
.notice.warn{background:var(--warn-t);color:var(--warn)}
.notice.err{background:var(--err-t);color:var(--err)}
.empty{text-align:center;color:var(--gray);padding:2rem 1rem}

/* order track */
.track{list-style:none;padding:0;margin:1rem 0;display:grid;gap:6px}
.track li{display:flex;gap:.6rem;align-items:center;color:var(--gray)}
.track li::before{content:"";width:14px;height:14px;border-radius:50%;border:2px solid var(--line);flex:none;background:#fff}
.track li.done{color:var(--ink)}
.track li.done::before{background:var(--green);border-color:var(--green)}
.track li.now{color:var(--green);font-weight:700}
.track li.now::before{border-color:var(--green)}

/* chat */
.chat{display:flex;flex-direction:column;gap:6px;margin:.5rem 0}
.msg{max-width:82%;padding:.5rem .75rem;border-radius:12px;background:var(--panel)}
.msg.mine{align-self:flex-end;background:var(--green);color:#fff}
.msg small{display:block;opacity:.75;font-size:.75rem}

/* filter chips & sheet */
.chips{display:flex;gap:6px;overflow-x:auto;padding:2px 0 8px}
.chip{flex:none;border:1px solid var(--line);background:var(--card);border-radius:999px;min-height:36px;padding:0 .9rem;font:inherit;font-size:.9rem;color:var(--ink);cursor:pointer}
.chip.on{background:var(--green);border-color:var(--green);color:#fff}
.sheet{position:fixed;inset:0;z-index:20;background:rgba(0,0,0,.35);display:flex;align-items:flex-end}
.sheet .in{background:var(--card);width:100%;max-width:720px;margin:0 auto;border-radius:16px 16px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));max-height:85vh;overflow:auto}
.toast{position:fixed;left:16px;right:16px;bottom:calc(var(--tabs) + 16px + env(safe-area-inset-bottom));z-index:30;max-width:520px;margin:0 auto;background:var(--ink);color:#fff;border-radius:var(--r);padding:.7rem 1rem;text-align:center}
.install{display:flex;gap:.75rem;align-items:center}
.install img{width:44px;height:44px;border-radius:10px;border:1px solid var(--line)}
.spin{display:block;margin:2rem auto;width:28px;height:28px;border:3px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:s 0.8s linear infinite}
@keyframes s{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation:none}}

/* utilities (no inline styles: the site's CSP forbids them) */
.mt0{margin-top:0}.mt5{margin-top:.5rem}.mt75{margin-top:.75rem}.mt1{margin-top:1rem}.mt125{margin-top:1.25rem}.mt15{margin-top:1.5rem}
.mb1{margin-bottom:1rem}.mb12{margin-bottom:12px}.my1{margin:1rem 0}
.f1{flex:1;min-width:0}.w35{flex:0 0 35%}.nowrap{flex-wrap:nowrap}.between{justify-content:space-between}.bar{margin:.25rem 0 .75rem}
.pre{white-space:pre-line}.tr{text-align:right}.tc{text-align:center}
.fs{border:0;padding:0;margin:0}.fs.mt75{margin-top:.75rem}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
details summary{cursor:pointer;min-height:44px;display:flex;align-items:center}

/* link back to the website (added 11 Oct 2026) */
.to-site{margin-left:auto;display:inline-flex;align-items:center;min-height:44px;padding:0 .25rem;font-size:.875rem;font-weight:600;color:var(--green);text-decoration:none;white-space:nowrap}
.top-title ~ .to-site{margin-left:.75rem}
.to-site:hover{text-decoration:underline}

