:root {
  --bg: #f7f5f0;
  --card: #ffffff;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e4e0d6;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #e3f2ef;
  --warn: #9a3412;
  --warn-soft: #fff1e6;
  --good-soft: #eaf6e8;
  --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 4px 16px rgba(20, 30, 50, .05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161d; --card: #1a2029; --ink: #e8ebf0; --muted: #a2abb9; --line: #2b3340;
    --accent: #2dd4bf; --accent-ink: #062621; --accent-soft: #123430;
    --warn: #fdba74; --warn-soft: #3a2416; --good-soft: #17301b;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 16px; }
.tag { color: var(--muted); font-size: 14px; }
h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.15; margin: 24px 0 8px; letter-spacing: -.01em; }
h2 { font-size: 20px; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 18px; }
.crumb { margin: 18px 0 0; font-size: 14px; }
.hero { padding: 18px 0 8px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 18px 0; }
.ctry { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.ctry:hover { border-color: var(--accent); }
.ctry .flag { font-size: 34px; }
.ctry small { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 14px 0; box-shadow: var(--shadow); }
.card.warn { background: var(--warn-soft); border-color: transparent; }
.card.warn h2 { color: var(--warn); }
.card.good { background: var(--good-soft); border-color: transparent; }
.card ul, .card ol { margin: 0; padding-left: 20px; }
.card li { margin: 6px 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts span { display: block; color: var(--muted); font-size: 13px; }
.steps li { padding-left: 4px; }
.check { list-style: none; padding: 0 !important; }
.check li { margin: 0; border-top: 1px solid var(--line); }
.check li:first-child { border-top: 0; }
.check label { display: flex; gap: 12px; padding: 10px 0; cursor: pointer; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check small { display: block; color: var(--muted); }
.check input:checked + span b { text-decoration: line-through; color: var(--muted); }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.who { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.who button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.who button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.btn { font: inherit; font-size: 14px; padding: 9px 14px; border-radius: 10px; cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--accent); }
.progress { color: var(--muted); font-size: 14px; margin-left: auto; }
table { width: 100%; border-collapse: collapse; }
td { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
tr:first-child td { border-top: 0; }
.shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.shop { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); text-decoration: none; color: var(--ink); }
.shop:hover { border-color: var(--accent); }
.shop small { color: var(--muted); }
.shop em { font-style: normal; color: var(--accent); font-weight: 600; margin-top: auto; }
.shop.off { opacity: .7; pointer-events: none; }
.src li { word-break: break-word; }
.foot { color: var(--muted); font-size: 13px; padding-top: 10px; padding-bottom: 40px; }
@media print {
  .top, .shops, .row, .foot, .crumb, .who { display: none !important; }
  .whobox[hidden] { display: block !important; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  body { background: #fff; color: #000; }
}
.facts b { font-size: 15px; line-height: 1.35; }
.more { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.more summary { cursor: pointer; color: var(--accent); }
.more p { margin: 8px 0; }
.fee { padding: 12px 0; border-top: 1px solid var(--line); }
.fee:first-child { border-top: 0; padding-top: 0; }
.fee-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.fee-top span { font-weight: 600; }
.fee-top b { color: var(--accent); }
.fee small { display: block; color: var(--muted); margin-top: 4px; }
td { overflow-wrap: anywhere; }
.total { border: 2px solid var(--accent); }
.total-head span { display: block; color: var(--muted); font-size: 14px; }
.total-head b { display: block; font-size: 34px; line-height: 1.1; color: var(--accent); }
.total-head small { color: var(--muted); }
.total-lines { list-style: none; padding: 0 !important; margin: 12px 0 8px !important; }
.total-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.total-lines li span small { display: block; color: var(--muted); font-size: 13px; }
.total-lines li b { white-space: nowrap; }
.bagform { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.bagform label { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); gap: 4px; }
.bagform input { font: inherit; font-size: 18px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.bagsum { margin-top: 12px; font-size: 18px; }
.bagt td small { display: block; color: var(--muted); font-size: 13px; }
.bagt tr.yes .v { color: #15803d; font-weight: 700; }
.bagt tr.no .v { color: #b91c1c; font-weight: 700; }
.bagt tr.yes td:first-child { border-left: 4px solid #22c55e; padding-left: 10px; }
.bagt tr.no td:first-child { border-left: 4px solid #ef4444; padding-left: 10px; }
.bagt .v { white-space: nowrap; }
