:root {
  --bg: #efe6d4;
  --paper: #f7f1e4;
  --ink: #1f241c;
  --muted: #6b6456;
  --line: #d7ccb4;
  --olive: #3d4a36;
  --olive-2: #2c3a2a;
  --blaze: #c4491d;
  --good: #3b6b3a;
  --card: #fffaf0;
  --shadow: 0 10px 30px rgba(31, 36, 28, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--blaze); }
#app { max-width: 760px; margin: 0 auto; min-height: 100dvh; padding: 16px 16px 108px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand-lock { display: flex; align-items: center; gap: 10px; }
.brand-lock img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: var(--paper); }
.brand { font-size: 22px; letter-spacing: 0.01em; margin: 0; line-height: 1.15; }
.brand span { color: var(--blaze); }
.tag { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--paper); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
label { display: block; font-size: 13px; color: var(--muted); margin: 8px 0 4px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink);
}
textarea { min-height: 80px; }
.btn { border: 0; border-radius: 999px; padding: 11px 16px; background: var(--olive-2); color: #f7f1e4; }
.btn.secondary { background: transparent; color: var(--olive-2); border: 1px solid var(--olive); }
.btn.danger { background: #7a2b1c; }
.btn.blaze { background: var(--blaze); }
.btn.wide { width: 100%; }
.ghost { background: none; border: 0; color: var(--muted); padding: 6px; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--olive-2); color: #efe6d4; padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.tabs button { background: none; border: 0; color: inherit; font-size: 11px; padding: 8px 4px; opacity: 0.7; }
.tabs button.on { opacity: 1; font-weight: 700; color: #fff; }
.hunt-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hunt-item:last-child { border-bottom: 0; }
.pill { display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #e8dcc4; margin-right: 4px; }
.pill.open { background: #d7ead0; color: var(--good); }
.pill.closed { background: #ead7d0; color: #7a2b1c; }
.pill.upcoming { background: #e4e0d2; }
.session-top { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.session-state-col { flex: 1; min-width: 160px; }
.session-state-col select { margin-bottom: 0; }
.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; }
.chip.on { background: var(--olive-2); color: #fff; border-color: var(--olive-2); }
.weather { font-variant-numeric: tabular-nums; }
.err { color: #7a2b1c; font-size: 14px; }
.auth { padding-top: 6vh; text-align: center; }
.auth .card { text-align: left; }
.auth-mark { width: min(280px, 80vw); margin: 0 auto 16px; display: block; }
.legal { font-size: 11px; color: var(--muted); text-align: center; margin-top: 18px; }
.legal a { color: var(--muted); }
.doc { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.doc h1 { font-size: 28px; margin: 8px 0 12px; }
.doc h2 { margin-top: 22px; }
.doc p, .doc li { line-height: 1.5; font-size: 15px; }
.doc ul { padding-left: 1.2em; }
h2 { margin: 0 0 8px; font-size: 20px; }
.tiny { font-size: 12px; color: var(--muted); }
canvas { max-height: 220px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper input { width: 72px; text-align: center; }
.stepper button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.check { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: 14px; }
.check input { width: auto; }
.warn { background: #f6ead4; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 10px; }
.indent { padding-left: 10px; }
.edit-row { display: flex; gap: 6px; flex-shrink: 0; }
