:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --text: #1b1f1c;
  --muted: #5f6b63;
  --line: #dfe4df;
  --brand: #1f9d4c;
  --brand-ink: #ffffff;
  --danger: #c62828;
  --warn-bg: #fff6e0;
  --warn-ink: #7a5300;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121513; --surface: #1b1f1c; --text: #e9eee9; --muted: #9aa69e;
    --line: #2d342f; --brand: #2fbf62; --brand-ink: #08130c; --danger: #ef6b6b;
    --warn-bg: #3a2f12; --warn-ink: #f4d58d;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); display: inline-block; }
.who { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; outline: none; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.05rem; margin: 0 0 12px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-top: 16px;
}
button, .button {
  font: inherit; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); padding: 9px 14px; cursor: pointer; min-height: 40px;
}
button.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
button.danger { color: var(--danger); border-color: var(--danger); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.link { border: none; background: none; color: var(--brand); padding: 4px; min-height: 0; text-decoration: underline; }
input, select, textarea {
  font: inherit; width: 100%; padding: 9px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
textarea { min-height: 90px; resize: vertical; }
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.err { font-size: .82rem; color: var(--danger); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 12px; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.badge { font-size: .75rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.badge.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.badge.off { color: var(--muted); }
.warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 10px 12px; font-size: .88rem; }
.map { height: 320px; border-radius: 8px; border: 1px solid var(--line); margin-top: 8px; }
.prices td { padding: 6px 4px; }
.prices input, .prices select { padding: 6px 8px; }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: .9rem;
}
.login { max-width: 380px; margin: 40px auto; }
.table-wrap { overflow-x: auto; }
label.inline { display: inline; margin: 0; font-weight: 500; }
.row > input[type=checkbox] { width: auto; margin: 0; }
