:root { --accent:#15803d; --bg:#f6f7f9; --card:#fff; --text:#14171c; --muted:#5f6876; --line:#e2e5ea; }
* { box-sizing:border-box; margin:0; }
html { -webkit-text-size-adjust:100%; }
body { font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--text); line-height:1.5; font-size:16px; }
a { color:var(--accent); } button, input, select, textarea { font:inherit; color:inherit; } button { cursor:pointer; } [hidden] { display:none !important; }
.wrap { max-width:680px; margin:0 auto; padding:0 16px; } .muted { color:var(--muted); font-size:14.5px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 16px; border-radius:11px; border:1px solid var(--line); background:var(--card); color:var(--text); font-weight:650; text-decoration:none; font-size:15px; }
.btn.solid { background:var(--accent); border-color:var(--accent); color:#fff; } .btn.big { width:100%; padding:14px; font-size:16.5px; } .btn:hover { filter:brightness(.97); }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* Shop page */
.demo { background:#fef3c7; color:#713f12; text-align:center; padding:8px 14px; font-size:14px; font-weight:600; }
.hero { background:var(--accent); color:#fff; padding:26px 0 22px; position:relative; overflow:hidden; }
.hero .cover { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.28; } .hero .wrap { position:relative; }
.hero h1 { font-size:clamp(1.6rem,6vw,2.2rem); line-height:1.15; letter-spacing:-.02em; } .hero p { margin-top:6px; opacity:.95; }
.facts { list-style:none; padding:0; margin-top:12px; display:grid; gap:4px; font-size:14.5px; }
.acts { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; } .hero .btn { background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.4); color:#fff; } .hero .btn.solid { background:#fff; color:var(--accent); border-color:#fff; }
.shop main { padding-top:16px; padding-bottom:28px; } body.hasbar main { padding-bottom:20px; } body.hasbar .foot { padding-bottom:96px; }
.note { background:var(--card); border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:10px; padding:10px 12px; margin-bottom:14px; font-size:15px; }
#q { width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--card); font-size:16px; }
.cats { display:flex; gap:8px; overflow-x:auto; padding:12px 0 2px; scrollbar-width:none; } .cats::-webkit-scrollbar { display:none; }
.cats button { white-space:nowrap; padding:7px 14px; border-radius:999px; border:1px solid var(--line); background:var(--card); font-weight:600; font-size:14.5px; } .cats button.on { background:var(--accent); border-color:var(--accent); color:#fff; }
.grp h2 { font-size:1.05rem; margin:20px 0 8px; } .grp:first-of-type h2 { margin-top:14px; }
.item { display:flex; align-items:center; gap:12px; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:12px; margin-top:8px; }
.item img { width:64px; height:64px; object-fit:cover; border-radius:10px; flex:none; } .item .info { flex:1; min-width:0; display:grid; gap:1px; }
.item b { font-size:15.5px; line-height:1.3; overflow-wrap:anywhere; } .item span { color:var(--muted); font-size:13.5px; } .item em { font-style:normal; font-weight:700; margin-top:2px; }
.item.out { opacity:.55; } .oos { font-size:13px; color:var(--muted); font-weight:600; }
.add { padding:8px 18px; border-radius:10px; border:1.5px solid var(--accent); background:var(--card); color:var(--accent); font-weight:700; }
.step { display:flex; align-items:center; border-radius:10px; background:var(--accent); color:#fff; overflow:hidden; } .step button { width:34px; height:36px; border:0; background:none; color:#fff; font-size:19px; font-weight:700; } .step b { min-width:22px; text-align:center; font-size:15px; }
.foot { color:var(--muted); font-size:13.5px; padding-top:8px; padding-bottom:28px; text-align:center; } .foot a { color:var(--muted); }
.bar { position:fixed; left:0; right:0; bottom:0; background:var(--card); border-top:1px solid var(--line); box-shadow:0 -6px 20px rgba(0,0,0,.08); padding:10px 16px calc(10px + env(safe-area-inset-bottom)); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bar div { display:grid; } .bar span { color:var(--muted); font-size:14px; } .bar .btn { padding:12px 22px; }
dialog { border:0; padding:0; border-radius:18px; width:min(520px,calc(100vw - 20px)); max-height:calc(100vh - 20px); color:var(--text); background:var(--card); } dialog::backdrop { background:rgba(0,0,0,.5); }
.sheet { padding:20px; display:grid; gap:12px; } .sheet h2 { font-size:1.25rem; } .sheet h3 { font-size:1rem; }
.line { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--line); } .line > div:first-child { flex:1; min-width:0; display:grid; } .line span { color:var(--muted); font-size:13.5px; } .line i { font-style:normal; } .line em { font-style:normal; font-weight:700; min-width:64px; text-align:right; }
.tot { display:flex; justify-content:space-between; font-size:1.15rem; padding-top:4px; }
.sheet label { display:grid; gap:5px; font-size:13.5px; font-weight:700; color:var(--muted); } .sheet input, .sheet textarea { border:1px solid var(--line); border-radius:10px; padding:11px 12px; font-size:16px; background:var(--bg); color:var(--text); font-weight:500; width:100%; }
.pay { border-top:1px solid var(--line); padding-top:12px; text-align:center; display:grid; gap:8px; justify-items:center; } .pay canvas { border:1px solid var(--line); border-radius:10px; }

/* Home */
.home.hero { padding:44px 0 38px; } main.home { padding:26px 16px 30px; } .home h2 { margin:26px 0 10px; font-size:1.25rem; }
.steps { display:grid; gap:12px; } .steps div { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; } .steps p { color:var(--muted); font-size:15px; margin-top:4px; }
.list { padding-left:22px; display:grid; gap:6px; margin-bottom:18px; } @media (min-width:640px) { .steps { grid-template-columns:repeat(3,1fr); } }

/* Poster */
.posterbody { background:#fff; } .poster { max-width:720px; margin:0 auto; padding:40px 24px; text-align:center; display:grid; gap:16px; justify-items:center; }
.poster h1 { font-size:2.6rem; line-height:1.15; color:var(--accent); } .poster .big { font-size:1.45rem; font-weight:600; } .poster canvas { width:min(420px,80vw); height:auto; border:10px solid var(--accent); border-radius:22px; } .poster .url { font-size:1.2rem; font-weight:700; overflow-wrap:anywhere; }
@media print { .noprint { display:none !important; } .poster { padding-top:60px; } }

/* Editor */
.edbody .wrap { max-width:760px; padding-top:22px; padding-bottom:60px; } .ed h1 { font-size:1.6rem; letter-spacing:-.01em; } .ed h2 { font-size:1.1rem; margin-bottom:6px; } .ed > h2 { margin:22px 0 10px; }
.top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:14px; } .top a { font-size:14.5px; text-decoration:none; font-weight:600; }
.card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:18px; margin-bottom:14px; display:block; } form.card { display:grid; gap:12px; } .card.danger { border-color:#f3c0c0; }
.links { display:flex; flex-wrap:wrap; gap:8px; align-items:center; } .links .say { flex-basis:100%; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; } .grid .full { grid-column:1/-1; } @media (max-width:520px) { .grid { grid-template-columns:1fr; } }
.ed label { display:grid; gap:5px; font-size:13.5px; font-weight:700; color:var(--muted); position:relative; } .ed label.btn { display:inline-flex; color:var(--text); font-size:15px; }
.ed input:not([type=checkbox]):not([type=file]), .ed select, .ed textarea { border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:16px; background:var(--bg); color:var(--text); font-weight:500; width:100%; min-width:0; }
.ed textarea { resize:vertical; line-height:1.45; } .ed code { background:var(--bg); padding:1px 6px; border-radius:6px; font-size:13.5px; }
.ed .pre { font-weight:500; font-size:13px; } .check { display:flex !important; align-items:center; gap:8px; color:var(--text) !important; font-weight:600 !important; font-size:15px !important; } .check input { width:18px; height:18px; accent-color:var(--accent); }
.say { font-size:14px; color:#15803d; min-height:1em; } .say.bad { color:#b91c1c; font-weight:600; }
.shops { display:grid; gap:10px; } .row { display:flex; justify-content:space-between; align-items:center; gap:12px; text-decoration:none; color:var(--text); margin:0; } .row div { display:grid; } .row span { color:var(--muted); font-size:14px; } .row .go { color:var(--accent); font-weight:700; white-space:nowrap; }
.photo img { max-width:100%; max-height:180px; border-radius:12px; display:block; margin:10px 0; }
.irow { display:flex; gap:12px; padding:14px 0; border-top:1px solid var(--line); } .irow .f { flex:1; min-width:0; display:grid; gap:8px; } .irow .sub { display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .ed .irow .sub > input { flex:1 1 120px; min-width:120px; }
.irow .sub label:not(.check) { display:flex; flex-direction:row; align-items:center; gap:4px; width:110px; color:var(--text); font-size:16px; }
.thumb { width:64px; height:64px; border-radius:10px; border:1px dashed var(--line); display:grid !important; place-items:center; text-align:center; font-size:11px !important; line-height:1.2; color:var(--muted); cursor:pointer; overflow:hidden; flex:none; background:var(--bg); } .thumb img { width:100%; height:100%; object-fit:cover; }
.link { border:0; background:none; color:#b91c1c; font-weight:600; font-size:14px; padding:4px; }
