/* Hunt Camp styles.
   Layout: phone = scrolling screen + bottom tab bar; 900px and wider = left sidebar + wide content.
   One dark theme on purpose (dawn in the woods), with high contrast so it reads in bright sun. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(/fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(/fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(/fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #0f1a14;
  --surface: #16241c;
  --surface-2: #1d2f25;
  --line: #2b4234;
  --fg: #eef3ec;
  --soft: #d4ddd5;
  --muted: #b3c2b6;
  --blaze: #ff7a1a;
  --blaze-text: #ff9a4d;
  --blaze-ink: #1a0d02;
  --good: #7fd17f;
  --fair: #f2c94c;
  --poor: #ef6b5b;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); }
body { font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blaze-text); }
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: 2.1rem; line-height: 1.02; }
h2 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .06em; }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: var(--mono); }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-logo { width: 72px; height: 72px; color: var(--blaze); opacity: .8; }

/* ---------- Shell ---------- */
.app { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(15, 26, 20, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; color: var(--blaze); flex: none; }
.camp-pill { margin-left: auto; min-width: 0; display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.camp-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.camp-pill .dot.off { background: var(--fair); }
main { padding: 16px 16px calc(var(--nav-h) + 28px + var(--safe-b)); max-width: 1180px; margin: 0 auto; }
.screen { display: flex; flex-direction: column; gap: 14px; }
.screen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.screen-head .sub { color: var(--muted); margin-top: 3px; }

nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-bottom: var(--safe-b); }
nav.tabs button { background: none; border: 0; padding: 8px 2px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: .72rem; font-weight: 700; cursor: pointer; min-height: var(--nav-h); }
nav.tabs button svg { width: 25px; height: 25px; }
nav.tabs button[aria-current="page"] { color: var(--blaze); }
nav.tabs .nav-brand, nav.tabs .nav-foot { display: none; }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
  .app > .col { min-width: 0; }
  nav.tabs { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-top: 0; border-right: 1px solid var(--line); padding: 18px 12px; gap: 4px; }
  nav.tabs .nav-brand { display: flex; padding: 4px 10px 20px; }
  nav.tabs button { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 1rem; padding: 10px 12px; min-height: 0; border-radius: 10px; }
  nav.tabs button[aria-current="page"] { background: var(--surface-2); }
  nav.tabs .nav-foot { display: block; margin-top: auto; color: var(--muted); font-size: .82rem; padding: 10px; }
  .topbar .brand { display: none; }
  .topbar { padding: 14px 28px; }
  main { padding: 24px 28px 48px; }
  h1 { font-size: 2.5rem; }
}

/* ---------- Pieces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 18px; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); min-height: 50px; text-decoration: none; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--blaze); color: var(--blaze-ink); border-color: var(--blaze); }
.btn.outline { background: transparent; border: 1.5px solid var(--fg); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--poor); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.link-btn svg { width: 18px; height: 18px; flex: none; }
.link-btn { background: none; border: 0; color: var(--blaze-text); font-weight: 700; cursor: pointer; padding: 8px 0; font-size: 1rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: .82rem; font-weight: 700; border: 1px solid var(--line); white-space: nowrap; }
.chip.good { color: var(--good); border-color: rgba(127, 209, 127, .5); }
.chip.fair { color: var(--fair); border-color: rgba(242, 201, 76, .5); }
.chip.warn { color: var(--blaze-text); border-color: rgba(255, 122, 26, .55); }
.chip.solid { background: var(--blaze); color: var(--blaze-ink); border-color: var(--blaze); }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.row:first-child { border-top: 0; padding-top: 2px; }
.row .grow { flex: 1; min-width: 0; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.15rem; background: var(--surface-2); border: 1px solid var(--line); }
.seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; border-radius: 9px; padding: 8px 10px; font-weight: 700; color: var(--muted); cursor: pointer; min-height: 42px; }
.seg button[aria-pressed="true"] { background: var(--blaze); color: var(--blaze-ink); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 50px; width: 100%; font-size: 16px; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blaze); outline: none; }
.help { font-size: .85rem; color: var(--muted); }
.error { background: rgba(239, 107, 91, .12); border: 1px solid rgba(239, 107, 91, .5); color: #ffb3a8; border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.note-box { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--soft); font-size: .95rem; }
.note-box svg { width: 24px; height: 24px; flex: none; color: var(--good); }
.keybox { font-family: var(--mono); font-size: 1.3rem; letter-spacing: .06em; text-align: center; background: var(--surface); border: 2px dashed var(--blaze); border-radius: 16px; padding: 18px 12px; user-select: all; -webkit-user-select: all; word-break: break-all; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 18px + var(--safe-b)); background: var(--fg); color: var(--bg); font-weight: 700; padding: 12px 18px; border-radius: 12px; z-index: 80; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); max-width: calc(100% - 32px); text-align: center; }
@media (min-width: 900px) { .toast { bottom: 28px; } }
.empty { text-align: center; padding: 26px 16px; color: var(--muted); }
.empty h3 { color: var(--fg); margin-bottom: 6px; }

/* ---------- Auth screens ---------- */
.auth-wrap { min-height: 100vh; display: flex; justify-content: center; padding: calc(28px + var(--safe-t)) 20px calc(28px + var(--safe-b)); background: radial-gradient(120% 60% at 50% 18%, rgba(255, 122, 26, .30), rgba(255, 122, 26, .05) 55%, transparent 75%), var(--bg); }
.auth { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.auth .logo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin: 10px 0 4px; }
.auth .logo svg { width: 88px; height: 88px; color: var(--blaze); }
.auth .logo .word { font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: .95; letter-spacing: .06em; text-transform: uppercase; }
.auth .logo .tag { font-family: var(--mono); font-size: .75rem; letter-spacing: .26em; color: var(--soft); text-transform: uppercase; }
.auth .mini-logo { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .08em; text-transform: uppercase; }
.auth .mini-logo svg { width: 30px; height: 30px; color: var(--blaze); }
.auth form { display: flex; flex-direction: column; gap: 14px; }
.auth .center { text-align: center; }
.ridge { width: 100%; height: 120px; display: block; margin: 6px 0 -4px; }

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); padding: 18px 18px 26px; background: radial-gradient(120% 110% at 90% 0%, rgba(255, 122, 26, .34), transparent 60%), #17291f; }
.hero .date { font-weight: 700; color: #ffb37a; font-size: .92rem; position: relative; }
.hero h1 { position: relative; margin-top: 4px; }
.hero p { position: relative; color: var(--soft); margin-top: 6px; }
.hero svg.hill { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 44px; }
.cond { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .cond { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cond .cell { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.cond .val { font-family: var(--display); font-size: 1.85rem; font-weight: 700; line-height: 1.05; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.cond .val svg { width: 22px; height: 22px; color: var(--blaze); flex: none; }
.cond .note { color: var(--muted); font-size: .85rem; }
.trend-up { color: var(--good); } .trend-down { color: var(--poor); }
.asof { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.asof svg { width: 16px; height: 16px; }

/* ---------- Hunt Log ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1; }
.stats span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.entries { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.entry.harvest { border: 1.5px solid rgba(255, 122, 26, .6); background: #1d2a1f; }
.entry .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.entry .top b { font-size: 1.05rem; min-width: 0; overflow-wrap: anywhere; }
.entry .when { font-size: .82rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.entry .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.entry .tags svg { width: 14px; height: 14px; }
.entry p { overflow-wrap: anywhere; }

/* ---------- Sheet (Log a Hunt) ---------- */
.sheet-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); border: 1px solid var(--line); border-radius: 20px 20px 0 0; width: 100%; max-width: 620px; max-height: 94vh; overflow: auto; padding: 14px 16px calc(18px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-radius: 20px; max-height: 90vh; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: -14px; background: var(--bg); padding: 6px 0; z-index: 2; }
.sheet-head h2 { font-size: 1.35rem; }
.auto { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.auto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.auto-grid div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.auto-grid b { display: block; font-family: var(--display); font-size: 1.15rem; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 50px; height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 1.5rem; font-weight: 700; cursor: pointer; }
.stepper output { min-width: 48px; text-align: center; font-family: var(--display); font-size: 1.8rem; font-weight: 700; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-weight: 700; }
.toggle-row.on { border: 1.5px solid rgba(255, 122, 26, .6); background: #1d2a1f; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--blaze); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--blaze); outline-offset: 2px; }
.pick { display: flex; gap: 8px; flex-wrap: wrap; }
.pick button { border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 9px 14px; font-weight: 700; cursor: pointer; min-height: 42px; }
.pick button[aria-pressed="true"] { background: var(--blaze); color: var(--blaze-ink); border-color: var(--blaze); }

/* ---------- Lease Map ---------- */
.map-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.map-actions .btn { min-height: 46px; padding: 10px 14px; }
@media (max-width: 599px) { .map-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.map-toolbar { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 900px) { .map-toolbar { flex-direction: row; align-items: center; } .map-toolbar .seg { flex: none; width: 360px; } }
.filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; min-width: 0; }
.filters button { display: inline-flex; align-items: center; gap: 6px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; font-weight: 700; font-size: .85rem; cursor: pointer; min-height: 38px; }
.filters button svg { width: 16px; height: 16px; }
.filters button[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.map-wrap { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .map-wrap { grid-template-columns: minmax(0, 1fr) 360px; } .pin-panel { max-height: calc(100vh - 220px); overflow: auto; position: sticky; top: 90px; } }
.map-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.map-frame { position: relative; isolation: isolate; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0b130e; }
.lease-map { height: 58vh; min-height: 320px; max-height: 720px; width: 100%; z-index: 0; background: #0b130e; }
@media (min-width: 1000px) { .lease-map { height: calc(100vh - 300px); min-height: 440px; } }
.map-banner { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: rgba(15, 26, 20, .95); border: 1px solid var(--blaze); border-radius: 12px; padding: 8px 10px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.map-banner span { flex: 1 1 180px; min-width: 0; }
.map-banner .btn { min-height: 40px; padding: 6px 14px; }
.map-fab { position: absolute; right: 10px; bottom: 26px; z-index: 500; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.map-fab svg { width: 24px; height: 24px; }
.map-tools { display: flex; gap: 0 18px; flex-wrap: wrap; }
.map-tools .link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.map-tools svg { width: 18px; height: 18px; }

.hc-pin-wrap { background: none; border: 0; }
.hc-pin { position: relative; width: 40px; height: 40px; margin: 2px; border-radius: 50%; display: grid; place-items: center; background: #0f1a14; color: var(--c, #eef3ec); border: 3px solid var(--c, #eef3ec); box-shadow: 0 3px 10px rgba(0, 0, 0, .55); transition: transform .12s; }
.hc-pin svg { width: 22px; height: 22px; }
.hc-pin.sel { transform: scale(1.18); box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 3px 12px rgba(0, 0, 0, .6); }
.hc-pin.pending { border-style: dashed; }
.hc-pin .dot { position: absolute; right: -3px; top: -3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #0f1a14; }
.dot.good { background: var(--good); } .dot.fair { background: var(--fair); } .dot.poor { background: var(--poor); }
.chip.poor { color: var(--poor); border-color: rgba(239, 107, 91, .5); }
.chip svg { width: 14px; height: 14px; }

.pin-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pin-detail { display: flex; flex-direction: column; gap: 12px; }
.pin-detail .link-btn svg { width: 18px; height: 18px; }
.pin-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pin-head h3 { overflow-wrap: anywhere; }
.pin-head .chip { flex: none; }
.badge { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; background: var(--bg); }
.badge svg { width: 22px; height: 22px; }
.stand-wind { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
@media (max-width: 380px) { .stand-wind { grid-template-columns: minmax(0, 1fr); justify-items: center; } .stand-wind .outlook { width: 100%; } }
.compass { width: 120px; height: 120px; display: block; }
.outlook .row { padding: 7px 0; gap: 8px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding-top: 2px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.notes { color: var(--soft); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pin-links { display: flex; gap: 18px; flex-wrap: wrap; }
.pin-row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.pin-row:first-of-type { border-top: 0; }
.pin-row .grow { display: flex; flex-direction: column; }
.pin-row .badge { width: 36px; height: 36px; }
.pin-row .badge svg { width: 19px; height: 19px; }
.pick.dirs button { min-width: 52px; padding: 9px 10px; }

/* Leaflet controls in the Hunt Camp colors */
.leaflet-container { font-family: var(--body); background: #0b130e; }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--surface); color: var(--fg); border-bottom-color: var(--line); width: 38px; height: 38px; line-height: 38px; }
.leaflet-bar { border: 1px solid var(--line) !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .45) !important; }
.leaflet-control-attribution { background: rgba(15, 26, 20, .75) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--soft); }

/* ---------- Coming soon ---------- */
.soon { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 34px 18px; }
.soon svg.big { width: 64px; height: 64px; color: var(--blaze); }
.soon ul { text-align: left; margin: 0; padding-left: 20px; color: var(--soft); }

@media (prefers-reduced-motion: no-preference) {
  .screen { animation: rise .22s ease-out; }
  @keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
}

/* ---------- Best Times ---------- */
.best-times .time-slot { padding: 12px 0; border-top: 1px solid var(--line); }
.best-times .time-slot:first-of-type { border-top: 0; padding-top: 2px; }
.ts-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ts-head b { font-family: var(--display); font-size: 1.2rem; }
.meter { height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin: 8px 0; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 999px; }
.meter .good { background: var(--good); } .meter .fair { background: var(--fair); } .meter .poor { background: var(--poor); }
.ts-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-sm { font-size: .78rem; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--soft); }
.tag-sm.good { color: var(--good); border-color: rgba(127, 209, 127, .45); }

/* ---------- Seasons ---------- */
.countdown { display: flex; align-items: center; gap: 14px; }
.cd-num { font-family: var(--display); font-size: 3rem; line-height: 1; font-weight: 700; color: var(--blaze); min-width: 64px; text-align: center; }
.season-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .season-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.season { display: flex; flex-direction: column; gap: 8px; }
.season-row .chip { flex: none; }
.limit { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.limit p { margin-top: 2px; }
.snotes { margin: 0; padding-left: 18px; color: var(--soft); font-size: .9rem; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Crew extras ---------- */
.gear-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.gear-row:first-child { border-top: 0; }
.gear-row label { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 46px; cursor: pointer; font-weight: 600; min-width: 0; }
.gear-row input { width: 22px; height: 22px; accent-color: var(--blaze); flex: none; }
.gear-row input:checked + span { text-decoration: line-through; color: var(--muted); }
.gear-x { background: none; border: 0; color: var(--muted); font-size: 1.5rem; width: 40px; height: 40px; cursor: pointer; flex: none; }
.gear-in { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 16px; }
.gear-in:focus { border-color: var(--blaze); outline: none; }

/* ---------- Crew Chat ---------- */
nav.tabs button { position: relative; }
nav.tabs button.has-new::after { content: ""; position: absolute; top: 8px; left: calc(50% + 8px); width: 10px; height: 10px; border-radius: 50%; background: var(--blaze); border: 2px solid var(--surface); }
@media (min-width: 900px) { nav.tabs button.has-new::after { top: 50%; left: auto; right: 12px; transform: translateY(-50%); } }
.chat-box { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.msgs { height: calc(100vh - 380px - var(--safe-b)); min-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 4px 2px; overscroll-behavior: contain; }
@media (min-width: 900px) { .msgs { height: calc(100vh - 360px); } }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; margin-top: 8px; }
.msg.cont { margin-top: 0; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg .who { font-size: .78rem; font-weight: 700; color: var(--muted); margin: 0 0 2px 10px; }
.bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px 16px 16px 6px; padding: 9px 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.mine .bubble { background: #3a2412; border-color: rgba(255, 122, 26, .5); border-radius: 16px 16px 6px 16px; }
.msg.quick .bubble { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; }
.msg.spot .bubble { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.msg.spot .bubble svg { width: 18px; height: 18px; color: var(--blaze); }
.msg.spot .bubble a { flex-basis: 100%; font-weight: 700; }
.msg .meta { font-size: .72rem; color: var(--muted); margin: 2px 8px 0; display: flex; align-items: center; gap: 4px; }
.msg .meta svg { width: 13px; height: 13px; }
.del-msg { font-size: .72rem; padding: 0; color: var(--muted); }
.day-sep { text-align: center; margin: 10px 0 2px; }
.day-sep span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.quick-bar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.quick-bar button { flex: none; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); padding: 7px 12px; font-weight: 700; font-size: .85rem; cursor: pointer; min-height: 40px; }
.quick-bar button svg { width: 16px; height: 16px; color: var(--blaze); }
.composer { display: flex; gap: 8px; }
.composer input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 16px; min-height: 50px; }
.composer input:focus { border-color: var(--blaze); outline: none; }

/* ---------- Batch 2: map overlays ---------- */
.map-toggles { display: flex; gap: 6px; flex: none; flex-wrap: wrap; }
.map-toggles button { border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; font-weight: 700; font-size: .85rem; cursor: pointer; min-height: 38px; color: var(--muted); }
.map-toggles button[aria-pressed="true"] { color: var(--fg); border-color: var(--blaze); box-shadow: inset 0 0 0 1px var(--blaze); }
.map-fab.lease-fab { bottom: 84px; }
.leaflet-popup.parcel-pop .leaflet-popup-content-wrapper, .leaflet-popup.parcel-pop .leaflet-popup-tip { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.leaflet-popup.parcel-pop .leaflet-popup-content { font-family: var(--body); font-size: .9rem; line-height: 1.4; margin: 10px 14px; }
.leaflet-popup.parcel-pop a.leaflet-popup-close-button { color: var(--muted); }

/* ---------- Batch 3 ---------- */
.legal { position: relative; margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.legal .label { color: #ffb37a; }
.legal b { font-family: var(--display); font-size: 1.15rem; }
.hc-pin.occupied { box-shadow: 0 0 0 4px rgba(255, 122, 26, .55), 0 3px 10px rgba(0, 0, 0, .55); }
.hc-pin .occ { position: absolute; left: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--blaze); color: var(--blaze-ink); font: 700 12px/20px var(--body); text-align: center; border: 2px solid #0f1a14; }
.on-stand { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px solid rgba(255, 122, 26, .6); background: #2a1c10; border-radius: 12px; padding: 10px 12px; }
.on-stand.mine { background: #1d2a1f; border-color: rgba(127, 209, 127, .55); }
.on-stand .btn { flex: none; min-height: 44px; }
.on-stand-card { border-color: rgba(255, 122, 26, .5); }
.note-box.alert { border-color: rgba(255, 122, 26, .6); }
.note-box.alert svg { color: var(--blaze); }
.rem-row .chip { flex: none; }
.rem-done { min-height: 40px; width: 44px; padding: 0; flex: none; }
.rem-done svg { width: 18px; height: 18px; color: var(--good); }
.guide { align-items: center; text-align: center; min-height: 70vh; }
.guide .sheet-head { width: 100%; }
.guide-arrow { width: 210px; height: 210px; margin: 18px auto 6px; border-radius: 50%; border: 3px solid var(--line); display: grid; place-items: center; background: radial-gradient(circle, #1d2f25, #0f1a14); transition: transform .25s ease-out; }
.guide-arrow svg { width: 120px; height: 120px; color: var(--blaze); }
.guide-dist { font-family: var(--display); font-size: 3rem; font-weight: 700; line-height: 1; }
.guide-dir { color: var(--soft); font-weight: 700; margin-top: 6px; }
.guide-back.arrived .guide-arrow { border-color: var(--good); }
.guide-back.arrived .guide-arrow svg { color: var(--good); }

/* ---------- Batch 4 ---------- */
.report-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.rc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0; }
.rc-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; text-align: center; }
.rc-grid b { display: block; font-family: var(--display); font-size: 1.4rem; line-height: 1.1; }
.rc-grid span { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.track-panel { display: flex; flex-direction: column; gap: 10px; border-color: rgba(239, 107, 91, .55); }
.track-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.track-btns .btn { justify-content: flex-start; min-height: 54px; }
.mk-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #0f1a14; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); flex: none; }
.track-card { border-color: rgba(239, 107, 91, .45); }

/* ---------- Batch 5 ---------- */
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs img, .thumb img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.thumb { padding: 0; border: 0; background: none; cursor: pointer; }
.photo-pick { position: relative; }
.add-photo { cursor: pointer; }
.photo-back { align-items: center; }
.photo-view { display: flex; flex-direction: column; gap: 10px; align-items: center; max-width: 96vw; }
.photo-view img { max-width: 96vw; max-height: 78vh; border-radius: 12px; }
.photo-bar { display: flex; gap: 10px; }
.recap { gap: 12px; }
.recap-card { display: flex; flex-direction: column; gap: 6px; }
.cam-log { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
#sForm { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.tod-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; height: 92px; align-items: end; }
.tod-bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; }
.tod-bars span { width: 70%; min-height: 3px; background: var(--good); border-radius: 6px 6px 2px 2px; }
.tod-bars b { font-size: .8rem; }
.tod-bars em { font-style: normal; font-size: .72rem; color: var(--muted); font-weight: 700; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head span { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.cal-grid { margin-top: 6px; }
.cal-day { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 0; color: var(--fg); min-height: 44px; }
.cal-day b { font-size: .95rem; }
.cal-day.past { opacity: .35; cursor: default; }
.cal-day .cal-bar { width: 60%; height: 5px; border-radius: 3px; background: var(--line); }
.cal-day.good .cal-bar { background: var(--good); } .cal-day.fair .cal-bar { background: var(--fair); } .cal-day.poor .cal-bar { background: var(--poor); }
.cal-day.today { border-color: var(--fg); }
.cal-day.sel { border: 2px solid var(--blaze); }
.cal-day i { position: absolute; top: 2px; right: 4px; font-style: normal; font-size: .55rem; font-weight: 700; color: var(--soft); }
.cal-legend { display: flex; gap: 14px; margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.cal-legend span::before { content: ""; display: inline-block; width: 12px; height: 5px; border-radius: 3px; margin-right: 6px; vertical-align: middle; background: var(--line); }
.cal-legend .good::before { background: var(--good); } .cal-legend .fair::before { background: var(--fair); } .cal-legend .poor::before { background: var(--poor); }
.cal-detail { display: flex; flex-direction: column; gap: 6px; }
.cal-day.okay .cal-bar { background: rgba(127, 209, 127, .4); }
.cal-day.good { border-color: rgba(127, 209, 127, .6); }
.cal-legend .okay::before { background: rgba(127, 209, 127, .4); }
.chip.okay { color: #b9e6b9; border-color: rgba(127, 209, 127, .35); }

/* Batch 6: Wind Alert and stand wind outlook */
.wind-alert { border: 1px solid var(--line, #2b4234); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.wind-alert .wa-wind { display: flex; align-items: center; gap: 6px; }
.wind-alert .wa-wind svg, .outlook .row svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; }
.wind-warn { color: #f2c94c; }
.wind-warn::before { content: "! "; font-weight: 700; }
.stand-outlook { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.so-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; align-items: start; }
.so-row > b { padding-top: 6px; font-size: 14px; }
.so-cell { border: 1px solid var(--line, #2b4234); border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.so-cell.past { opacity: .45; }
@media (max-width: 380px) { .so-row { grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr); } }

/* Batch 7: Hunt Log edit, animals seen, sit times, stand filter */
.entry.tappable { cursor: pointer; }
.entry.tappable:active { border-color: var(--blaze); }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.sight-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 6px 12px; min-width: 0; }
.sight-row > span { font-weight: 700; }
.stepper.sm button { width: 38px; height: 38px; font-size: 1.2rem; }
.stepper.sm output { min-width: 28px; font-size: 1.3rem; }
.stand-filter select { width: 100%; }
@media (max-width: 560px) { .sight-grid { grid-template-columns: minmax(0, 1fr); } }
.stepper.sm { gap: 6px; flex-shrink: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.harv-details .field input { min-width: 0; width: 100%; }
#weapon { flex-wrap: wrap; }

/* Batch 8: patterns, overdue, terrain, hog activity, alerts */
.patterns { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.pat { display: flex; flex-direction: column; gap: 1px; padding-left: 10px; border-left: 3px solid var(--line); }
.pat span { font-size: .9rem; color: var(--soft); }
.pat.good { border-left-color: var(--good); }
.pat.poor { border-left-color: var(--poor); }
.pat.hog { border-left-color: #ef6b5b; }
.on-stand.overdue { border-color: var(--poor) !important; }
.terrain-tiles { filter: contrast(1.15); }
.hog-card { border-color: rgba(239, 107, 91, .5); }

/* Batch 8.2: Map Key and terrain tips */
.map-key .key-body { display: flex; flex-direction: column; gap: 12px; }
.key-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start; }
.key-row > div { display: flex; flex-direction: column; gap: 2px; }
.key-row span { color: var(--soft); font-size: .92rem; }
.key-sw { width: 44px; height: 14px; margin-top: 4px; }
.key-row .key-ico, .key-ico { display: inline-flex; width: 44px; justify-content: center; font-size: 1.2rem; color: var(--blaze-text); line-height: 1.2; }
.key-step { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.key-step ol { margin: 6px 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 4px; color: var(--soft); }
.terrain-card .tips { margin: 0 0 10px 18px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .92rem; color: var(--soft); }
.terrain-card .tips b { color: var(--fg); }

/* ---------- Batch 9: Lease Costs, Hunt Plan, Stand Safety, Voice, Rut ---------- */
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mic-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .9rem; cursor: pointer; min-height: 36px; }
.mic-btn.on { background: var(--poor); border-color: var(--poor); color: #1a0705; animation: micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 50% { box-shadow: 0 0 0 6px rgba(239, 107, 91, .25); } }
@media (prefers-reduced-motion: reduce) { .mic-btn.on { animation: none; } }
.rut-line { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; }
.rut-line .chip { flex: none; }
.rut-line .link-btn { padding: 0; font-size: .85rem; }
.plan-day { margin-top: 8px; }
.plan-day .label { margin-bottom: 2px; }
.plan-row { padding: 6px 0; }
.stand-plans { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.safety-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.safety-box.due { border-color: var(--fair); }
.safety-box p { margin: 0; color: var(--soft); }
.card-lite { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.owe-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.owe-row:last-of-type { border-bottom: 0; }
.owe-amt, .cost-amt { font-family: var(--mono); font-weight: 600; }
.owe-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.sm { min-height: 40px; padding: 8px 12px; font-size: .9rem; border-radius: 10px; }
.cat-row { display: flex; justify-content: space-between; font-size: .95rem; }
.cost-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cost-row:last-child { border-bottom: 0; }
.split-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.check-row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.field .check-row input { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; accent-color: var(--blaze); }
.sheet select { width: 100%; }

/* ---------- Batch 10: Deer Sign, Stand Pressure, Sun and Shade, Plot Planner, Processor, Blood Finder ---------- */
.hc-sign { width: 26px; height: 26px; margin: 4px; transform: rotate(45deg); border-radius: 6px; background: #0f1a14; border: 2.5px solid var(--c); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .55); transition: transform .12s; }
.hc-sign span { transform: rotate(-45deg); color: var(--c); font: 800 13px/1 var(--display); }
.hc-sign.sel { transform: rotate(45deg) scale(1.25); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 2px 10px rgba(0, 0, 0, .6); }
.hc-sign.pending { border-style: dashed; }
.sign-dot { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 6px; border: 2px solid var(--c); background: #0f1a14; color: var(--c); font: 800 11px/1 var(--display); }
.sign-dot.lg { width: 26px; height: 26px; margin: 7px 9px; font-size: 13px; }
.sign-pick button { display: inline-flex; align-items: center; gap: 8px; }
.sign-pick .sign-dot { width: 16px; height: 16px; font-size: 9px; }
.sign-window { display: inline-flex; align-items: center; gap: 4px; flex: none; margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--line); }
.sign-window .label { margin-right: 2px; }
.sign-window button { border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 4px 10px; font-weight: 700; font-size: .8rem; color: var(--muted); cursor: pointer; min-height: 34px; white-space: nowrap; }
.sign-window button[aria-pressed="true"] { color: var(--fg); border-color: #d9a066; }
.sign-detail, .near-sign, .pressure, .plot-plan { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.sign-row { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; color: var(--fg); text-align: left; padding: 4px 0; cursor: pointer; font: inherit; font-size: .92rem; }
.sign-row .sign-dot { width: 16px; height: 16px; font-size: 9px; margin: 0 2px; }
.inline-ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: #f2c94c; }
.terrain-link { align-self: flex-start; padding: 0; font-size: .92rem; }
.plot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.plot-grid > div { display: flex; flex-direction: column; }
.plot-btns { gap: 8px; }
.plot-btns .btn { padding: 8px 6px; font-size: .85rem; }
.sun-panel { margin-top: 10px; background: var(--surface); border: 1px solid #f2c94c; border-radius: 14px; padding: 10px 12px; }
.sun-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sun-head .link-btn { padding: 4px 0; }
.seg.sm button { min-height: 34px; padding: 4px 10px; font-size: .85rem; }
.sun-read { display: flex; gap: 10px; align-items: baseline; margin: 8px 0 2px; flex-wrap: wrap; }
.sun-read b { font-family: var(--mono); font-size: 1.05rem; color: #f2c94c; }
.sun-read span { font-size: .9rem; color: var(--soft); }
.sun-panel input[type=range] { width: 100%; accent-color: #f2c94c; margin: 6px 0 2px; }
.sun-scale { display: flex; justify-content: space-between; }
.sun-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f2c94c; color: #1a1402; box-shadow: 0 0 0 6px rgba(242, 201, 76, .3), 0 2px 10px rgba(0, 0, 0, .5); }
.sun-mark svg { width: 22px; height: 22px; }
.glare-badge { width: 22px; height: 22px; border-radius: 50%; background: #f2c94c; color: #1a1402; display: grid; place-items: center; border: 2px solid #0f1a14; }
.glare-badge svg { width: 14px; height: 14px; }
.toggle-row small { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.toggle-row > span:first-child { padding: 8px 0; }
.proc-box { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.proc-box summary { cursor: pointer; padding: 12px 14px; font-weight: 700; list-style: none; display: flex; align-items: center; }
.proc-box summary::-webkit-details-marker { display: none; }
.proc-box summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.2rem; }
.proc-box[open] summary::after { content: "\2212"; }
.proc-body { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 14px; }
.proc-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.proc-row:last-child { border-bottom: 0; }
.proc-actions { display: flex; gap: 8px; }
.finder-btn { flex-direction: column; gap: 2px; background: #2a1414; border-color: var(--poor); color: var(--fg); min-height: 62px; }
.finder-btn svg { color: var(--poor); }
.finder-btn span { font-weight: 400; font-size: .82rem; color: var(--soft); }
.bf { position: fixed; inset: 0; z-index: 3000; background: #000; color: #fff; display: flex; flex-direction: column; }
.bf video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bf canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: calc(10px + var(--safe-t)) 14px 10px; background: linear-gradient(rgba(0, 0, 0, .7), transparent); }
.bf-top b { font-family: var(--display); font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }
.bf-btn { background: rgba(0, 0, 0, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 8px 14px; font-weight: 700; min-height: 40px; cursor: pointer; }
.bf-btn.on { background: #f2c94c; color: #1a1402; }
.bf-msg { position: relative; margin: auto 20px; text-align: center; background: rgba(0, 0, 0, .7); border-radius: 12px; padding: 14px; font-weight: 700; }
.bf-bottom { position: relative; margin-top: auto; padding: 14px 14px calc(14px + var(--safe-b)); background: linear-gradient(transparent, rgba(0, 0, 0, .85) 30%); display: flex; flex-direction: column; gap: 10px; }
.bf-status { align-self: center; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-weight: 700; font-size: .92rem; }
.bf-status.hit { background: #ff2060; color: #fff; }
.bf-sens { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-weight: 700; font-size: .9rem; }
.bf-sens input { accent-color: #ff2060; }
.bf-mark { min-height: 58px; font-size: 1.1rem; }
.bf-tip { margin: 0; font-size: .82rem; color: #d4ddd5; text-align: center; }
.blood-line { stroke-linecap: round; }

/* ---------- Batch 11: Best Times by the Hour, Season Calendar, Radar ---------- */
.daybar-wrap { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 2px; }
.daybar { display: flex; gap: 2px; height: 40px; border-radius: 10px; overflow: hidden; }
.db-seg { position: relative; min-width: 0; border: 0; padding: 0; cursor: pointer; background: var(--line); color: #0b130e; font: 700 .68rem/1 var(--body); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; }
.db-seg.great { background: #5fd06a; } .db-seg.good { background: rgba(127, 209, 127, .62); } .db-seg.fair { background: rgba(242, 201, 76, .7); } .db-seg.poor { background: #3a4a40; color: var(--muted); }
.db-seg.on { outline: 3px solid var(--fg); outline-offset: -3px; }
.db-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.best-windows { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.bw { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: 10px; padding: 8px 10px; color: var(--fg); cursor: pointer; font: inherit; }
.bw b { font-size: .95rem; } .bw span { font-size: .82rem; color: var(--soft); }
.bw.on { border-color: var(--fg); border-left-color: var(--good); }
.db-detail { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.db-detail .link-btn { align-self: flex-start; padding: 2px 0; display: inline-flex; align-items: center; gap: 4px; font-size: .92rem; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cal-nav h2 { font-size: 1.25rem; }
.cal-nav .btn.sm { min-width: 44px; }
.cal-grid .cal-day { aspect-ratio: auto; min-height: 62px; justify-content: flex-start; padding: 5px 2px 4px; gap: 3px; }
.cal-day.blank { border: 0; background: none; cursor: default; }
.cal-day.outlook { border-style: dashed; }
.cal-day em { font-style: normal; font-size: .62rem; color: var(--soft); line-height: 1; }
.cal-seasons { display: flex; gap: 2px; margin-top: auto; }
.cal-day .cal-seasons i, .cal-legend.seasons i { position: static; display: inline-grid; place-items: center; width: 12px; height: 12px; border-radius: 3px; background: var(--c); color: #0b130e; font: 800 .55rem/1 var(--body); font-style: normal; }
.cal-moon { position: absolute; top: 3px; right: 4px; font-size: .55rem; color: var(--soft); line-height: 1; }
.cal-legend .ol::before { background: none; border: 1px dashed var(--muted); height: 8px; }
.cal-legend.seasons span::before { display: none; }
.cal-legend.seasons span { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.radar-tiles { mix-blend-mode: normal; }

/* ---------- Batch 12: Buck Hit List, Photo Reader, Stand Draw, Stand Mode ---------- */
.back-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; margin-bottom: 4px; }
.home-actions { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
.cam-acts { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.buck-grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
@media (min-width: 720px) { .buck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.buck-card { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; cursor: pointer; color: var(--fg); font: inherit; min-width: 0; }
.buck-card:hover { border-color: var(--blaze); }
.buck-card.past { opacity: .72; }
.buck-card .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.buck-card b { font-family: var(--display); font-size: 1.3rem; letter-spacing: .02em; }
.buck-thumb { width: 84px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.buck-thumb.none { display: grid; place-items: center; color: var(--muted); }
.buck-thumb.none svg { width: 34px; height: 34px; }
.buck-notes { margin: 6px 0 0; color: var(--soft); }
.buck-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.buck-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 14px 0; }
.buck-photos button { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; aspect-ratio: 4 / 3; }
.buck-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buck-photos span { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.buck-screen .grid-2 { margin: 14px 0; }
.buck-map { height: 260px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.pattern-lines { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.buck-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.buck-actions .btn { min-height: 46px; }
.pr-list { display: flex; flex-direction: column; gap: 12px; }
.pr-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.pr-item > img { width: 112px; height: 84px; object-fit: cover; border-radius: 10px; }
.pr-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pr-body .small svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--good); }
.pick.sm button { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
@media (max-width: 480px) { .pr-item { grid-template-columns: minmax(0, 1fr); } .pr-item > img { width: 100%; height: 160px; } }
.draw-list { display: flex; flex-direction: column; }
.draw-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.draw-row > b { min-width: 76px; padding-top: 12px; }
.draw-row .grow { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.draw-row.locked { align-items: center; }
.draw-row.locked > b { padding-top: 0; }
.draw-why { display: flex; flex-wrap: wrap; gap: 6px; }
#sdWind svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--blaze-text); }

/* Stand Mode: very dim red on black keeps night vision and does not light up the stand. */
.stand-mode { position: fixed; inset: 0; z-index: 90; background: #000; color: #b8382a; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: calc(14px + var(--safe-t)) 16px calc(16px + var(--safe-b)); overflow: auto; font-family: var(--body); -webkit-user-select: none; user-select: none; }
.stand-mode button { font: inherit; color: #b8382a; background: transparent; border: 1px solid #4a140f; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.stand-mode :focus-visible { outline: 2px solid #b8382a; }
.sm-top { width: 100%; max-width: 560px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sm-stand { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-x { border-radius: 999px; padding: 8px 16px; min-height: 40px; }
.sm-clock { font-family: var(--display); font-size: clamp(4rem, 22vw, 7.5rem); font-weight: 700; line-height: 1; margin-top: 8px; }
.sm-legal, .sm-wind { font-size: 1.05rem; text-align: center; }
.sm-wind svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; fill: currentColor; color: #b8382a; }
.sm-tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 560px; margin-top: 8px; }
.sm-t { display: flex; flex-direction: column; gap: 6px; }
.sm-plus { border-radius: 14px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 92px; }
.sm-plus b { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.sm-plus span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.sm-minus { border-radius: 10px; min-height: 40px; font-size: 1.3rem; }
.sm-send { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 560px; margin-top: 6px; }
.sm-hold { position: relative; overflow: hidden; border-radius: 14px; min-height: 64px; font-weight: 700; font-size: 1.05rem; touch-action: none; }
.sm-hold .fill { position: absolute; inset: 0; width: 0; background: #3a0f0b; }
.sm-hold.holding .fill { width: 100%; transition: width var(--hold, 900ms) linear; }
.sm-hold.sent { border-color: #b8382a; }
.sm-hold .txt { position: relative; }
.sm-hint { margin: 0; font-size: .85rem; opacity: .8; }
.sm-done { border-radius: 14px; min-height: 54px; width: 100%; max-width: 560px; font-weight: 700; margin-top: auto; }
.draw-row select { background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 46px; width: 100%; font-size: 16px; font-weight: 700; }
.draw-row select:focus { border-color: var(--blaze); outline: none; }

/* ---------- Batch 13: Customize Home, Off-Season, What's New, Tag Counter ---------- */
.home-actions.one { grid-template-columns: minmax(0, 1fr); }
.home-cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-cards > .wide { grid-column: 1 / -1; } }
.hc-slot { min-width: 0; display: flex; flex-direction: column; }
.hc-slot > .card { flex: 1; }
.home-foot { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 4px 0 8px; }
.home-foot .link-btn { color: var(--muted); font-size: .95rem; }
.ch-list { display: flex; flex-direction: column; }
.ch-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ch-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch-row.off .grow b { color: var(--muted); }
.ch-tog { width: 50px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); position: relative; cursor: pointer; flex: none; padding: 0; }
.ch-tog span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: left .15s; }
.ch-tog[aria-checked="true"] { background: var(--blaze); border-color: var(--blaze); }
.ch-tog[aria-checked="true"] span { left: 23px; background: var(--blaze-ink); }
.ch-mv { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; flex: none; font-size: .8rem; }
.ch-mv:disabled { opacity: .3; cursor: default; }
.off-row, .new-row { width: 100%; text-align: left; background: none; color: var(--fg); font: inherit; cursor: pointer; border-left: 0; border-right: 0; border-bottom: 0; }
.new-row { cursor: default; }
.off-row .grow, .new-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.off-row:hover b { color: var(--blaze-text); }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; flex: none; }
.new-card { border-color: var(--blaze); }
.flash { animation: flash 1s ease 2; border-radius: 8px; }
@keyframes flash { 50% { background: rgba(255, 122, 26, .35); } }
.tags-box { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.tag-meter { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: .92rem; }
.tm-label { color: var(--muted); font-weight: 700; }
.tm-bar { display: flex; gap: 4px; }
.tm-bar i { flex: 1; height: 10px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.tm-bar i.used { background: var(--blaze); border-color: var(--blaze); }
.crew-tags { margin-top: 14px; }
#tagWarn p { margin: 0; }

/* ---------- Batch 14: Long-Range Outlook ---------- */
.cal-day.longrange { border-style: dotted; border-width: 2px; }
.cal-legend .lrl::before { background: none; border: 2px dotted var(--muted); height: 8px; }
.next30 { display: flex; justify-content: flex-end; margin-top: -6px; }
.next30 .link-btn { font-size: .95rem; padding: 2px 0; }
.lr-box { display: flex; flex-direction: column; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.lr-box svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; color: var(--blaze-text); }

/* ---------- Batch 15: Lease Finder ---------- */
.lease-search { display: flex; flex-direction: column; gap: 12px; }
.lease-search .seg button { white-space: nowrap; }
.owner-list { display: flex; flex-direction: column; gap: 10px; }
.owner-card, .prospect { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.owner-card .grow, .prospect .grow { min-width: 0; }
.owner-card b, .prospect b { font-size: 1.05rem; }
.owner-card.open { border-color: var(--blaze); }
.owner-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.owner-acts .chip svg { width: 14px; height: 14px; }
.tract-map { height: 280px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.prospect .pick.sm button { min-height: 34px; padding: 5px 10px; font-size: .85rem; }
#llText { font-family: "Times New Roman", Times, serif; font-size: 1rem; line-height: 1.45; min-height: 320px; }
.ll-send { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ll-send .btn { min-height: 46px; padding: 8px 10px; }

/* ---------- Batch 17: Lease Areas and Camp dropdown ---------- */
.area-label { background: rgba(15, 26, 20, .85); border: 0; color: #fff; font-weight: 700; font-size: .8rem; padding: 2px 8px; border-radius: 8px; box-shadow: none; }
.area-label.leased { color: #b9efb9; }
.area-label.looking { color: #c6d8ff; }
.area-label::before { display: none; }
.area-list { display: flex; flex-direction: column; }
.area-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.area-row .grow { min-width: 0; flex: 1; }
.area-acts { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding-left: 26px; }
.area-sw { width: 16px; height: 16px; border-radius: 4px; flex: none; border: 3px solid; }
.area-sw.main { border-color: #ff7a1a; border-style: dashed; }
.area-sw.leased { border-color: #7fd17f; }
.area-sw.looking { border-color: #8ab4ff; border-style: dashed; }
.area-rename { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--blaze); border-radius: 10px; padding: 8px 10px; font-size: 16px; }
.area-new { display: flex; flex-direction: column; gap: 10px; }
.camp-list { display: flex; flex-direction: column; gap: 8px; }
.camp-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--fg); font: inherit; cursor: pointer; }
.camp-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.camp-row.on { border-color: var(--blaze); }
.camp-row svg { width: 20px; height: 20px; color: var(--blaze-text); flex: none; }
.camp-pill::after { content: "\25BE"; margin-left: 2px; color: var(--muted); font-size: .8rem; }

/* Batch 18: Stand Photos and Video Link */
.stand-media { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.stand-media .media-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.stand-media .media-btns .btn { flex: 1 1 140px; }
.stand-media .vid-edit { display: flex; flex-direction: column; gap: 8px; }
.stand-media .vid-edit[hidden] { display: none; }
.stand-media .help { margin: 0; }

/* Batch 19: Add Another Lease choice */
.replace-box { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; display: flex; flex-direction: column; gap: 8px; }
/* Batch 19: draggable corners while drawing a lease line */
.corner-handle { background: none; border: 0; cursor: grab; }
.corner-handle span { display: block; width: 16px; height: 16px; margin: 7px; border-radius: 50%; background: #ff7a1a; border: 3px solid #1a0d02; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.corner-handle span.first { background: #ffffff; }
.corner-handle.leaflet-drag-target span, .corner-handle:active span { transform: scale(1.35); }
/* Batch 19.2: laptop and desktop Map. The map buttons wrap onto a second line instead of running off the edge,
   the pin filters (Ladder Stand, Box Stand, and the rest) get their own full row, and wide screens use more width. */
@media (min-width: 900px) {
  .map-toolbar { flex-wrap: wrap; }
  .map-toggles { flex: 1 1 auto; }
  .map-toolbar .filters { flex: 1 0 100%; flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1000px) { .lease-map { height: calc(100vh - 380px); min-height: 440px; } }
@media (min-width: 1500px) { main:has(.map-screen) { max-width: 1560px; } }
/* Batch 20: plan line, Club Backup, App Admin */
.plan-line { display: flex; align-items: center; gap: 10px; }
.backup-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.admin-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; }
.admin-plan { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; min-height: 38px; }
/* Batch 21: Club Tools */
.club-switch { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.role-pick { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; min-height: 34px; margin-right: 8px; }
.ann-card { display: flex; flex-direction: column; gap: 10px; border-color: var(--blaze); }
.ann { border-left: 3px solid var(--blaze); padding: 2px 0 2px 10px; }
.ann p { margin: 0 0 4px; white-space: pre-wrap; }
.ann-form { display: flex; flex-direction: column; gap: 8px; }
.ann-form textarea { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; resize: vertical; }
/* Batch 21: Test Copy banner (shows only when the server runs with HC_TEST_COPY=1) */
.test-banner { position: sticky; top: 0; z-index: 2000; background: #ff7a1a; color: #1a0d02; font-weight: 800; text-align: center; font-size: .9rem; padding: 6px 12px; letter-spacing: .02em; }
/* Batch 22: Crew menu and folded Home cards */
.crew-menu { display: flex; flex-direction: column; padding: 4px 0; }
.crew-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; color: var(--fg); cursor: pointer; font: inherit; min-height: 56px; }
.crew-row:last-child { border-bottom: 0; }
.crew-row .grow { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.crew-row .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew-row .chev { color: var(--muted); font-size: 1.4rem; line-height: 1; }
.crew-row:hover, .crew-row:focus-visible { background: rgba(255, 255, 255, .03); }
.crew-back { grid-column: 1 / -1; }
.crew-back .link-btn { display: inline-flex; align-items: center; gap: 4px; padding-left: 0; }
.grid-2.one-sec { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.hc-slot.folded .card > :not(.card-head):not(.hc-sum) { display: none; }
.hc-slot:not(.folded) .hc-sum { display: none; }
.hc-sum { margin: 2px 0 0; }
.hc-fold { margin-left: auto; }

/* Batch 23: Club Office */
.club-card { display: flex; flex-direction: column; gap: 10px; }
.rules-body { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: 320px; overflow: auto; line-height: 1.45; }
.ack-list { display: flex; flex-wrap: wrap; gap: 6px; }
.club-edit summary, .club-card details summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.club-edit form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.club-edit textarea, .club-edit input, .dues-form input { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; }
.dues-form { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.dues-form .inline { display: flex; align-items: center; gap: 8px; }
.dues-form .inline input { flex: 1; min-width: 0; }
.dues-sum, .dues-mine { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dues-mine b { font-size: 1.4rem; }
.season-step { display: flex; align-items: center; gap: 6px; }
.season-step .link-btn { font-size: 1.3rem; padding: 0 6px; }
.rules-prompt { border-color: var(--blaze); }

/* Batch 24: quotas and stand calendar */
.rule-sum { font-size: .9rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.rule-nums { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.rule-nums legend { font-weight: 600; padding: 0 4px; }
.rule-nums label { display: flex; flex-direction: column; gap: 4px; }
.cal-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cal-day { flex: 0 0 auto; min-width: 52px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; }
.cal-day span { font-size: .75rem; color: var(--muted); }
.cal-day.on { background: var(--blaze); border-color: var(--blaze); color: #1a1a1a; }
.cal-day.on span { color: #1a1a1a; }
.cal-row { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.cal-row .grow { display: flex; flex-direction: column; min-width: 0; }
.cal-row .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-slot { flex: 0 0 auto; width: 76px; padding: 8px 4px; border-radius: 10px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-slot.open { border-style: dashed; }
.cal-slot.mine { background: var(--blaze); border-color: var(--blaze); color: #1a1a1a; }
.cal-slot.taken { background: var(--surface); color: var(--fg); cursor: default; }

/* Batch 25: events */
.event { border-top: 1px solid var(--line); padding: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.ev-head { display: flex; gap: 10px; align-items: flex-start; }
.ev-head .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-date { flex: 0 0 48px; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 4px 0; display: flex; flex-direction: column; }
.ev-date span { font-size: .72rem; color: var(--blaze); text-transform: uppercase; font-weight: 700; }
.ev-date b { font-size: 1.2rem; }
.rsvp-row { display: flex; gap: 6px; flex-wrap: wrap; }
.hours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.hours-grid label { display: flex; flex-direction: column; gap: 4px; }
.work-hours { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.club-edit select { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; }
.inline2 { display: flex; gap: 8px; }
.inline2 input { flex: 1; min-width: 0; }

/* Batch 27: safety */
.report-sheet { display: flex; flex-direction: column; gap: 10px; }
.report-reasons { display: flex; flex-direction: column; gap: 6px; }
.report-row { border-top: 1px solid var(--line); padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.report-excerpt { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-photo { max-width: 220px; max-height: 220px; border-radius: 10px; object-fit: cover; }
.mem-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.danger-zone summary { color: var(--poor); }
.del-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
