:root {
  /* Dallas Gun Club palette (from dallasgunclub.com) */
  --green: #174215;      /* deep club green — header */
  --green-2: #325131;    /* primary buttons, links */
  --orange: #b05033;     /* rust — calls to action, accents */
  --orange-2: #93412a;
  --gold: #d6b25e;       /* logo gold */
  --cream: #f7f5e1;
  --sage: #dbe8da;
  --ink: #333333;
  --muted: #6b726e;
  --line: #dcdfd3;
  --bg: #f7f5e1;
  --card: #ffffff;
  --good: #2e7d4f;
  --warn: #b7791f;
  --bad: #b23b3b;
  --head-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main.wrap { flex: 1; width: 100%; }
a { color: var(--green-2); }
h1, h2, h3, .stat, .btn, button, header.top { font-family: var(--head-font); }
header.top { background: var(--green); color: #fff; border-bottom: 4px solid var(--orange); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
header.top .wrap { display: flex; align-items: center; gap: 1.5rem; padding: .5rem 1rem; flex-wrap: wrap; }
header.top a { color: #fff; text-decoration: none; }
header.top .brand { display: flex; align-items: center; gap: .7rem; }
header.top .brand img { width: 56px; height: 56px; display: block; }
header.top .brand .bt { display: flex; flex-direction: column; line-height: 1.15; }
header.top .brand b { font-weight: 600; font-size: 1.2rem; letter-spacing: .01em; }
header.top .brand small { color: var(--gold); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; }
header.top nav { display: flex; gap: 1.2rem; margin-left: auto; font-size: .95rem; font-weight: 500; align-items: center; }
header.top nav a { padding: .3rem 0; border-bottom: 2px solid transparent; }
header.top nav a:hover { border-bottom-color: var(--gold); }
button.ghost { background: none; color: #fff; border: 1px solid rgba(255,255,255,.7); }
button.ghost:hover { background: rgba(255,255,255,.1); }
footer.site { background: var(--green); color: #cfd8ce; font-size: .85rem; margin-top: 2rem; }
footer.site .wrap { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; }
@media (max-width: 600px) { header.top .brand img { width: 44px; height: 44px; } header.top .brand b { font-size: 1rem; } }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
main.wrap { padding-top: 1.25rem; padding-bottom: 3rem; }
h1 { font-size: 1.7rem; font-weight: 600; color: var(--green); margin: .2rem 0 .8rem; }
h2 { font-size: 1.25rem; font-weight: 600; color: var(--green); margin: 1.6rem 0 .6rem; }
h3 { font-size: 1.05rem; font-weight: 600; color: var(--green-2); margin: 1rem 0 .4rem; }
.sub { color: var(--muted); margin-top: -.5rem; }
.card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--green-2); box-shadow: 0 1px 3px rgba(23,66,21,.06); border-radius: 8px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .92rem; }
th, td { padding: .4rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: var(--sage); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--green); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr.team-head td { background: #eaf1e9; font-weight: 700; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.tbl-wrap table { border: 0; }
.btn, button { display: inline-block; background: var(--green-2); color: #fff; border: 0; border-radius: 6px; padding: .5rem .95rem; font-size: inherit; font-weight: 500; line-height: 1.3; cursor: pointer; text-decoration: none; }
.btn.alt, button.alt { background: #fff; color: var(--green-2); border: 1px solid var(--green-2); }
.btn.orange, button.orange { background: var(--orange); }
.btn:hover, button:hover { filter: brightness(1.1); }
.btn.alt:hover, button.alt:hover { background: var(--sage); filter: none; }
.btn.orange:hover, button.orange:hover { background: var(--orange-2); filter: none; }
button.small, .btn.small { padding: .25rem .55rem; font-size: .85rem; }
button.danger { background: var(--bad); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-2); outline-offset: 1px; border-color: var(--green-2); }
input, select, textarea { font: inherit; padding: .45rem .55rem; border: 1px solid #c9cfcb; border-radius: 6px; background: #fff; max-width: 100%; }
input[type=number] { width: 5.5rem; }
form p { margin: .6rem 0; }
form label { font-weight: 600; display: block; margin-bottom: .2rem; }
form .helptext { display: block; color: var(--muted); font-size: .85rem; }
form ul { list-style: none; padding: 0; margin: 0; }
form ul li label { font-weight: 400; display: flex; align-items: center; gap: .4rem; }
.errorlist { color: var(--bad); padding: 0; list-style: none; margin: .2rem 0; }
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li { padding: .6rem .8rem; border-radius: 8px; margin-bottom: .4rem; background: #e7f3ec; border: 1px solid #b9dcc6; }
.messages li.error { background: #f8e6e6; border-color: #e3b5b5; }
.messages li.warning { background: #fbf1df; border-color: #ecd09b; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: .05rem .35rem; border-radius: 4px; margin-left: .25rem; vertical-align: middle; }
.tag.PRE { background: #dbe8f7; color: #1e4e8c; }
.tag.POST { background: #fbe3d4; color: #9c4314; }
.tag.BANK { background: #ece4f6; color: #5b3a8a; }
.tag.GHOST { background: #e6e6e6; color: #555; }
.tag.unv { background: #fff4cc; color: #7a5a00; }
.muted { color: var(--muted); }
.pending { color: #b8bdb9; }
.stat { font-size: 1.8rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: .85rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.week-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.week-tabs a { padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: #fff; font-size: .9rem; }
.week-tabs a.on { background: var(--green); color: #fff; border-color: var(--green-2); }
.rank { width: 2rem; color: var(--muted); }
.lead-1 td { font-weight: 700; }
.inline { display: inline; }
.team-card h3 { display: flex; justify-content: space-between; align-items: center; margin-top: 0; }
.team-card ul { list-style: none; padding: 0; margin: 0; }
.team-card li { display: flex; justify-content: space-between; align-items: center; padding: .25rem 0; border-bottom: 1px dashed var(--line); gap: .5rem; }
.team-card li.open { color: var(--muted); font-style: italic; }
@media print {
  header.top, footer.site, .no-print, .week-tabs, .messages { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .card, .tbl-wrap { border: 0; padding: 0; }
  h2 { page-break-after: avoid; }
  table { page-break-inside: auto; }
}
.sched { font-size: .9rem; }
.sched td { padding: .35rem .5rem; }
.sched td.sd { white-space: nowrap; width: 7.5rem; }
.sched tr.past td { color: #a3aaa6; }
.sched tr.past .tag { opacity: .55; }
.sched tr.k-off td { background: #f7f2f2; }
.sched tr.k-meeting td, .sched tr.k-dinner td { background: #f4f8f5; }
.tag.ev-meeting { background: #dbe8f7; color: #1e4e8c; }
.tag.ev-dinner { background: #fde7c8; color: #8a4b00; }
.tag.ev-off { background: #f3d9d9; color: #8f2c2c; }
.tag.ev-other { background: #e6e6e6; color: #444; }
.announce { border-left: 4px solid var(--orange); background: #fbf3ea; padding: .5rem .7rem; border-radius: 6px; font-size: .9rem; display: grid; gap: .35rem; }
.evform p { margin: .35rem 0; }
.evform label { font-size: .85rem; }
details summary { cursor: pointer; }
.review-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }
.photo-pane { position: sticky; top: .5rem; overflow: auto; max-height: 92vh; }
.photo-pane img { width: 100%; cursor: zoom-in; transition: transform .2s; transform-origin: center; }
.photo-pane img.zoom { width: 200%; max-width: none; cursor: zoom-out; }
.marks td, .marks th { padding: .25rem .4rem; }
.marks tr.bad td { background: #fbe9e9; }
.mk { display: inline-block; width: 1.1em; text-align: center; font-size: 1rem; }
.mk-hit { color: var(--good); }
.mk-miss { color: #9aa29e; }
.mk-unclear { background: #ffe08a; color: #6a4b00; border-radius: 3px; font-weight: 700; }
.tag.st-auto_verified, .tag.st-approved { background: #dff1e6; color: var(--good); }
.tag.st-needs_review { background: #fbf1df; color: #8a5a00; }
.tag.st-pending, .tag.st-reading { background: #e8eef7; color: #2b4f7c; }
.tag.st-rejected { background: #f3d9d9; color: #8f2c2c; }

/* Weekly card setup status */
.tag.setup-done { background: #dcefe3; color: #1f5e3a; }
.tag.setup-due { background: #fff1cc; color: #7a5a00; }
.tag.setup-overdue { background: #f6d6d6; color: #8f2c2c; }
.tag.setup-later { background: #ececec; color: #555; }
.setup-alert { border-left: 4px solid var(--bad); background: #fbeeee; padding: .6rem .8rem; border-radius: 6px; margin: 0 0 1rem; }
.setup-alert ul { margin: .4rem 0; padding-left: 1.1rem; }
.setup-status { padding: .5rem .7rem; border-radius: 6px; margin: 0 0 .8rem; background: #f3f3f3; }
.setup-status.setup-done { background: #eef7f1; }
.setup-status.setup-due { background: #fff8e1; }
.setup-status.setup-overdue { background: #fbeeee; }
.setup-status .tag { margin: 0 .4rem 0 0; }
tr.row-overdue td { background: #fdf4f4; }
.tag.ZERO { background: #f3d9d9; color: #8f2c2c; }
