:root {
  --bg: #eef3ec; --card: #fff; --ink: #14281d; --muted: #56675c; --line: #d3ddd3;
  --brand: #1b4332; --go: #2d6a4f; --go-ink: #fff; --money: #f4c95d; --money-ink: #3a2a00;
  --ok: #2d6a4f; --ok-bg: #dcefe3; --wait: #7a5000; --wait-bg: #fbefcc; --run: #1f6f8b; --run-bg: #e0eff4;
  --bad: #b0302b; --bad-bg: #fbe3e1; --r: 12px;
  color-scheme: light dark;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1813; --card: #16241c; --ink: #e6efe8; --muted: #9fb2a5; --line: #26392d; --brand: #95d5b2; --go: #52b788; --go-ink: #06140c;
    --ok: #74c69d; --ok-bg: #173323; --wait: #ffcf6b; --wait-bg: #33280e; --run: #8ecae6; --run-bg: #16303a; --bad: #ff8f86; --bad-bg: #3a1a19; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; padding-bottom: env(safe-area-inset-bottom, 0); }
a { color: var(--go); }
.rt-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 20; }
@media (prefers-color-scheme: dark) { .rt-top { background: #16241c; color: var(--ink); border-bottom: 1px solid var(--line); } }
.rt-top h1 { font-size: 18px; margin: 0; flex: 1; }
.rt-back { color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.rt-user { font-size: 13px; display: flex; gap: 8px; align-items: center; }
.rt-user button { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 8px; padding: 4px 10px; font: inherit; cursor: pointer; }
.rt-tabs { display: flex; gap: 6px; padding: 10px 16px 0; overflow-x: auto; max-width: 1100px; margin: 0 auto; }
.rt-tabs button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.rt-tabs button[aria-selected=true] { background: var(--go); color: var(--go-ink); border-color: var(--go); }
.rt-main { max-width: 1100px; margin: 0 auto; padding: 14px 16px 60px; }
.rt-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.card + .card { margin-top: 12px; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 14px 0 6px; }
.muted { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; min-width: 140px; }
label.f { display: block; font-size: 13px; font-weight: 600; margin: 8px 0 3px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
textarea { min-height: 70px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; }
.btn { display: inline-block; border: 0; background: var(--go); color: var(--go-ink); font: inherit; font-weight: 700; border-radius: 10px; padding: 10px 16px; cursor: pointer; text-decoration: none; text-align: center; }
.btn.ghost { background: transparent; color: var(--go); border: 1px solid var(--go); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.small { padding: 6px 11px; font-size: 13px; }
.btn.block { display: block; width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--go); color: var(--go-ink); border-color: var(--go); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-align: left; padding: 0; font: inherit; color: inherit; }
.vcard:hover { border-color: var(--go); }
.vcard .ph { aspect-ratio: 16 / 10; background: var(--line) center / cover no-repeat; }
.vcard .bd { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.vcard b { font-size: 16px; }
.price { color: var(--go); font-weight: 800; font-size: 17px; }
.price small { font-weight: 500; color: var(--muted); font-size: 12px; }
.tag { display: inline-block; font-size: 12px; background: var(--run-bg); color: var(--run); border-radius: 6px; padding: 1px 7px; margin: 0 4px 4px 0; }
.tag.g { background: var(--ok-bg); color: var(--ok); }
.tag.w { background: var(--wait-bg); color: var(--wait); }
.tag.b { background: var(--bad-bg); color: var(--bad); }
.modal { position: fixed; inset: 0; background: rgb(0 0 0 / .55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .modal { align-items: center; } }
.sheet { background: var(--bg); width: 100%; max-width: 760px; max-height: 94vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 16px; position: relative; }
@media (min-width: 700px) { .sheet { border-radius: 16px; } }
.sheet .x { position: sticky; top: 0; float: right; background: var(--card); border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: 18px; color: var(--ink); z-index: 2; }
.gal .main { width: 100%; aspect-ratio: 16 / 10; background: var(--line) center / cover no-repeat; border-radius: var(--r); }
.gal .th { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; }
.gal .th button { width: 64px; height: 44px; border: 2px solid transparent; border-radius: 8px; background: var(--line) center / cover; cursor: pointer; padding: 0; flex: none; }
.gal .th button.on { border-color: var(--go); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 14px; }
.kv span { color: var(--muted); }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-top: 10px; }
.quote div { display: flex; justify-content: space-between; padding: 2px 0; font-size: 14px; }
.quote .tot { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 6px; font-weight: 800; font-size: 16px; }
.err { background: var(--bad-bg); color: var(--bad); border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-size: 14px; }
.okmsg { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-size: 14px; }
.qr { text-align: center; }
.qr img { width: 230px; max-width: 80%; background: #fff; border-radius: 10px; padding: 6px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.thumbs .t { position: relative; width: 84px; height: 62px; border-radius: 8px; background: var(--line) center / cover; }
.thumbs .t button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; cursor: pointer; line-height: 1; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 99; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; }
#toast.show { opacity: 1; }
#toast.bad { background: var(--bad); color: #fff; }
