/* ElkSpy Oregon Tag Finder styles (text/css) */
:root {
  --pine: #1b2e1c;
  --pine-2: #243826;
  --moss: #3c5a3e;
  --needles: #6b8f5e;
  --amber: #c9a45c;
  --amber-2: #e0c27a;
  --bark: #3c2a1c;
  --earth: #f3ebd8;
  --cream: #faf6ec;
  --card: #fffdf7;
  --ink: #1c1712;
  --muted: #5c5346;
  --line: #d7cdb6;
  --rifle: #7a3e1d;
  --archery: #2d5e4a;
  --muzzle: #5a4a1f;
  --trad: #3a4a62;
  --source: #3d5c7a;
  --calc: #7a4a16;
  --ok: #21532a;
  --more: #7a3e1d;
  --shadow: 0 8px 24px rgba(28, 23, 18, 0.1);
  --radius: 12px;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--earth); color: var(--ink); }
body { min-height: 100vh; }
html.elkspy-embedded, html.elkspy-embedded body { min-height: 0; height: auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.hero {
  background:
    linear-gradient(180deg, rgba(27,46,28,0.92), rgba(27,46,28,0.86)),
    repeating-linear-gradient(90deg, rgba(201,164,92,0.05) 0 2px, transparent 2px 14px);
  color: var(--cream);
  padding: 1.1rem 1.1rem 1rem;
  border-bottom: 4px solid var(--amber);
}
.hero-inner { max-width: 1760px; margin: 0 auto; }
.eyebrow { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; color: var(--amber-2); margin: 0 0 0.3rem; }
h1 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: clamp(1.45rem, 2.6vw, 2rem); margin: 0 0 0.35rem; }
.lede { margin: 0; max-width: 78ch; color: #e8e0cc; line-height: 1.45; font-size: 0.95rem; }
.wrap { max-width: 1760px; margin: 0 auto; padding: 1rem 1.1rem 3rem; }
.controls {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem;
  display: grid;
  gap: 0.65rem;
  margin-top: -1.4rem;
  position: relative;
}
.steps { display: grid; grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr; gap: 0.6rem; }
.step { display: flex; flex-direction: column; gap: 0.3rem; }
.step-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--pine); color: var(--cream); font-size: 0.75rem; letter-spacing: 0;
}
.optional { text-transform: none; letter-spacing: 0; font-weight: 600; color: #8a7d6a; }
.step select, .step input[type="number"] {
  border: 2px solid var(--pine);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
  min-height: 2.55rem;
}
.step-1 select { border-color: var(--amber); }
.step select:focus, .step input:focus, .filters input:focus, .filters select:focus {
  outline: 2px solid var(--amber);
}
.residency-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--pine); border-radius: 10px; overflow: hidden; min-height: 2.55rem; }
.residency-toggle button {
  border: 0; background: #fff; color: var(--ink); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; padding: 0.45rem 0.4rem;
}
.residency-toggle button + button { border-left: 1px solid var(--line); }
.residency-toggle button[aria-pressed="true"] { background: var(--pine); color: var(--cream); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
.filters label, .search-label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.filters select, .filters input[type="search"] {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  min-width: 8rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.search-label { flex: 1 1 16rem; }
.search-label input { width: 100%; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.count { font-size: 0.92rem; color: var(--muted); }
.clear-btn {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.8rem; cursor: pointer; color: var(--bark); font-size: 0.9rem;
}
.legend { display: block; margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.pill { display: inline-flex; align-items: center; gap: 0.3rem; border-radius: 999px; padding: 0.08rem 0.45rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.pill.rifle { background: #f3e2d4; color: var(--rifle); }
.pill.archery { background: #dcebE3; color: var(--archery); }
.pill.muzzleloader { background: #efe6c9; color: var(--muzzle); }
.pill.traditional { background: #dce3ee; color: var(--trad); }
.pill.source { background: #d9e6f2; color: var(--source); }
.pill.calculated { background: #f4e3c8; color: var(--calc); }
.pill.projected { background: #e4efe8; color: #1b2e1c; }
.pill.estimate { background: #efe6cc; color: #5a4a1f; }
.pill.cancelled { background: #ead8d4; color: #6a2e24; }
.pill.guaranteed { background: #dceee0; color: var(--ok); }
.pill.needs-more { background: #f3e2d4; color: var(--more); }
.pill.no-pred { background: #ece8de; color: #5c5346; }
.match-summary {
  font-size: 0.9rem;
  color: var(--pine);
  background: #e8efe4;
  border: 1px solid #c9d6c4;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  line-height: 1.4;
}
.results-section { margin-top: 1rem; }
.results-section h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}
.section-note { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.88rem; }
.table-wrap { overflow: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); }
.results-table { width: 100%; border-collapse: collapse; border-spacing: 0; min-width: 0; }
.results-table thead {
  z-index: 6;
  background: #f7f1e3;
  box-shadow: 0 1px 0 #f7f1e3, 0 2px 0 #f7f1e3;
}
.results-table th, .results-table td { padding: 0.36rem 0.42rem; border-bottom: 1px solid #eee6d4; font-size: 0.84rem; vertical-align: middle; }
.results-table th {
  text-align: left; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); background: #f7f1e3; white-space: nowrap; cursor: pointer;
}
.results-table th.no-sort { cursor: default; }
.results-table th[aria-sort="ascending"]::after { content: " \25B2"; font-size: 0.65em; }
.results-table th[aria-sort="descending"]::after { content: " \25BC"; font-size: 0.65em; }
.results-table th.year, .results-table td.year,
.results-table th.num, .results-table td.num { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.results-table th.proj, .results-table td.proj { background: #eef5ef; font-weight: 700; }
.results-table th.proj { color: var(--pine); }
.results-table tbody tr.hunt-row { cursor: pointer; }
.results-table tbody tr.hunt-row:nth-child(even) td { background: #f8f4e8; }
.results-table tbody tr.hunt-row:nth-child(even) td.proj { background: #e7f0e8; }
.results-table tbody tr.hunt-row:hover td { background: #f3ead4; }
.results-table tbody tr.hunt-row:hover td.proj { background: #dce8de; }
.results-table tbody tr.hunt-row.is-open td { background: #f3ead4; }
.results-table tbody tr.hunt-row.is-open td.proj { background: #dce8de; }
.results-table tbody tr.unit-row:nth-child(even) td { background: #f8f4e8; }
.results-table tbody tr.unit-row:hover td { background: #f3ead4; }
.results-table tr.guaranteed-row td.proj { color: var(--ok); }
.results-table .hunt-id { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.results-table td.sticky-id, .results-table th.sticky-id {
  position: sticky; left: 0; background: var(--card); z-index: 1;
}
.results-table th.sticky-id { z-index: 3; background: #f7f1e3; }
.results-table tbody tr.hunt-row:nth-child(even) td.sticky-id { background: #f8f4e8; }
.results-table tbody tr.hunt-row:hover td.sticky-id { background: #f3ead4; }
.results-table tbody tr.hunt-row.is-open td.sticky-id,
.results-table tbody tr.is-open td.sticky-id { background: #f3ead4; }
.chev { display: inline-block; width: 0.8rem; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.8rem; }
.more-cell { font-weight: 700; color: var(--more); white-space: nowrap; }
.empty { text-align: center; padding: 1.6rem 1rem; color: var(--muted); }
.expand-row td { padding: 0; background: #f7f3e8; }
.expand-inner { padding: 0.65rem 0.7rem 0.85rem; }
.expand-inner h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.last5 { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin: 0; min-width: 36rem; }
.last5 th, .last5 td { border: 1px solid var(--line); padding: 0.28rem 0.4rem; text-align: center; }
.last5 th { background: #efe6cc; font-size: 0.72rem; letter-spacing: 0.03em; }
.last5 th.proj { background: #dce8de; color: var(--pine); }
.last5 td.proj { background: #eef5ef; font-weight: 600; }
.last5 th.row-head, .last5 td.row-head { text-align: left; background: #f7f1e3; font-weight: 600; white-space: nowrap; }
.last5 .gap { color: var(--muted); }
.gap-notes { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.tiny { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.projected-odds { margin-top: 0.55rem; }
.footnotes { margin-top: 1.4rem; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.8rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0.8rem 0.6rem 2.5rem; }
  .hero { padding: 0.9rem 0.8rem 0.85rem; }
  .results-table.years-collapsed { min-width: 0; }
  .results-table th, .results-table td { padding: 0.28rem 0.35rem; font-size: 0.8rem; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}

/* Top-level Oregon Tags / Oregon Success tabs */
.app-tabs {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 1.1rem;
  display: flex;
  gap: 0;
  position: relative;
  z-index: 3;
  margin-top: -2px;
}
.app-tabs [role="tab"] {
  appearance: none;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #e8e0cc;
  color: var(--bark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  margin-right: 0.25rem;
}
.app-tabs [role="tab"][aria-selected="true"] {
  background: var(--card);
  color: var(--pine);
  border-color: var(--line);
  box-shadow: 0 -2px 0 var(--amber) inset;
}
.tab-panel[hidden] { display: none !important; }
.success-steps { grid-template-columns: 1fr 1.4fr; }
.coming-soon {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  margin-top: 1rem;
  padding: 1.4rem 1.2rem;
  text-align: left;
}
.coming-soon h2 { font-family: "Source Serif 4", Georgia, serif; margin: 0 0 0.4rem; }
.coming-soon p { margin: 0 0 0.5rem; color: var(--muted); }
.success-table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 40rem; }
.success-table th, .success-table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid #eee6d4; font-size: 0.85rem; }
.success-table th { background: #f7f1e3; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.04em; color: var(--muted); text-align: left; }
.success-table td.num { text-align: center; font-variant-numeric: tabular-nums; }
.success-group { margin-top: 1rem; }
.success-group h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
@media (max-width: 900px) {
  .app-tabs { padding: 0 0.6rem; }
  .success-steps { grid-template-columns: 1fr; }
}

/* One-tap chips */
.chip-group { display: flex; flex-direction: column; gap: 0.35rem; }
.chip-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 2.2rem;
}
.chip:hover { border-color: var(--amber); }
.chip[aria-pressed="true"] {
  background: var(--pine);
  color: var(--cream);
  border-color: var(--pine);
}
.chip-row-split { display: grid; grid-template-columns: 1fr auto; gap: 0.8rem; align-items: end; }
.points-box { display: flex; flex-direction: column; gap: 0.35rem; min-width: 14rem; }
.points-box input[type="number"] {
  border: 2px solid var(--pine);
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-size: 1rem;
  min-height: 2.4rem;
  width: 100%;
}
.more-filters { font-size: 0.88rem; color: var(--muted); }
.more-filters summary { cursor: pointer; font-weight: 600; }
.more-filters .filters { margin-top: 0.5rem; }

/* Combined hunt card */
.hunt-card {
  position: fixed; right: 0; top: 0; height: 100%; width: min(920px, 100%);
  background: var(--cream); z-index: 21; overflow: auto;
  transform: translateX(100%); transition: transform 0.2s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}
.hunt-card.open { transform: none; }
.hunt-card-inner { padding: 1rem 1.1rem 2.2rem; }
.hunt-card header { display: flex; justify-content: space-between; gap: 0.8rem; align-items: flex-start; }
.hunt-card h2 { font-family: "Source Serif 4", Georgia, serif; margin: 0.15rem 0 0.2rem; font-size: 1.35rem; }
.close { border: 0; background: var(--pine); color: #fff; width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; flex: 0 0 auto; }
.card-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.8rem; }
.card-panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.75rem 0.85rem; }
.card-panel h3 { margin: 0 0 0.4rem; font-size: 1rem; }
@media (max-width: 800px) {
  .card-split { grid-template-columns: 1fr; }
  .chip-row-split { grid-template-columns: 1fr; }
  .points-box { min-width: 0; }
}

.hunt-filter { display: flex; flex-direction: column; gap: 0.35rem; }
.hunt-filter input[type="search"] {
  border: 2px solid var(--pine);
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-size: 1rem;
  min-height: 2.4rem;
  width: 100%;
  max-width: 32rem;
}
.results-table thead tr:first-child th { border-bottom: 0; box-shadow: 0 2px 0 #f7f1e3; }
.results-table thead tr:first-child th.proj { box-shadow: 0 2px 0 #eef5ef; }
.results-table th.group { text-align: center; }
.results-table th.sub { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 0.72rem; text-align: center; }

.results-table.years-collapsed { width: 100%; min-width: 0; table-layout: fixed; }
.results-table.years-open-1 { min-width: 56rem; }
.results-table.years-open-2 { min-width: 82rem; }
.results-table.years-open-3 { min-width: 108rem; }
/* Tags table: keep year-group columns narrow in both expanded and collapsed views.
   The table sizes to its content instead of stretching to the page width. */
.tags-results-table.years-open-1,
.tags-results-table.years-open-2,
.tags-results-table.years-open-3 {
  width: max-content;
  min-width: 0;
  table-layout: auto;
}
.tags-results-table th.sub.year,
.tags-results-table td.year {
  padding-left: 0.28rem;
  padding-right: 0.28rem;
  vertical-align: middle;
}
.tags-results-table th.sub.year {
  white-space: normal;
  line-height: 1.15;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  min-width: 3.3rem;
}
.tags-results-table th.sub.year[data-key$="_apps1"],
.tags-results-table th.sub.year[data-key$="_rand"],
.tags-results-table th.sub.year[data-key$="_creep"],
.tags-results-table th.sub.year[data-key$="_yours"] { min-width: 3.8rem; }
.tags-results-table th.sub.year[data-key$="_ptsRes"],
.tags-results-table th.sub.year[data-key$="_ptsNr"] { min-width: 4.2rem; }
.tags-results-table td.pts-cell,
.tags-results-table td.rand-cell,
.tags-results-table td.pts-compact,
.tags-results-table td.your-odds-cell {
  white-space: normal;
}
.tags-results-table.years-collapsed td.pts-compact,
.tags-results-table.years-collapsed th.year {
  width: 8.8rem;
  max-width: 8.8rem;
  white-space: normal;
}
.tags-results-table.years-collapsed th.sticky-id,
.tags-results-table.years-collapsed td.sticky-id { width: 4.6rem; }
.tags-results-table.years-collapsed th[data-key="weapon"],
.tags-results-table.years-collapsed td:nth-child(3) { width: 5.6rem; }
.results-table.years-collapsed .hunt-name-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.year-toggle { cursor: pointer; user-select: none; vertical-align: middle; }
.year-toggle-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
  font-weight: 700;
  width: 100%;
  padding: 0.15rem 0.2rem;
}
.year-toggle-btn:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.year-icon { display: inline-block; width: 0.85rem; color: var(--pine); font-size: 0.95rem; line-height: 1; }
.year-toggle-label { white-space: nowrap; }
.year-toggle .year-sub { display: block; text-transform: none; letter-spacing: 0; font-weight: 600; }
.year-toggle.is-collapsed .year-sub { display: none; }
.year-toggle.is-collapsed { min-width: 8.6rem; }
.pts-pair { display: flex; flex-direction: column; align-items: center; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pts-pair .pts-nr { color: var(--muted); font-size: 0.76rem; font-weight: 600; }
.pts-pair .pts-rand { color: var(--muted); font-size: 0.7rem; font-weight: 600; margin-top: 0.1rem; }
td.pts-compact { white-space: normal; }
.pts-stack { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; line-height: 1.25; }
.pts-stack .tiny-rate { margin-left: 0; display: block; }
.pts-stack .pts-odds { display: flex; flex-direction: column; align-items: center; gap: 0.08rem; font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.pts-stack .pts-odds span { white-space: nowrap; }
.pts-stack .pts-noguarantee { font-weight: 650; }
.pts-stack .pts-badge { margin-top: 0.04rem; }
.pts-stack .pts-badge .pill { font-size: 0.62rem; padding: 0.04rem 0.32rem; }
.rand-pair { display: flex; flex-direction: column; align-items: center; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rand-pair .pts-nr { color: var(--muted); font-size: 0.76rem; font-weight: 600; }
.sub-lab { display: block; text-transform: none; letter-spacing: 0; font-weight: 600; }
.success-results-table.years-collapsed { table-layout: fixed; width: 100%; min-width: 0; }

.results-table th.wrap { white-space: normal; line-height: 1.15; max-width: 6.2rem; hyphens: none; -webkit-hyphens: none; }
.results-table thead tr:nth-child(2) th {
  top: auto;
  z-index: 2;
  box-shadow: 0 -2px 0 #f7f1e3;
  border-top: 0;
}
.results-table thead tr:nth-child(2) th.proj { box-shadow: 0 -2px 0 #eef5ef; }
.results-table thead tr:first-child th { z-index: 3; }
.results-table thead tr:first-child th.sticky-id { z-index: 5; }

.results-table thead.is-pinned { position: relative; top: 0; z-index: 6; background: #f7f1e3; }
.pinned-header-clone {
  position: fixed;
  z-index: 40;
  overflow: hidden;
  display: none;
  background: #f7f1e3;
  box-shadow: 0 1px 0 #f7f1e3, 0 2px 0 #f7f1e3;
  pointer-events: auto;
  box-sizing: border-box;
}
.pinned-header-clone.is-visible { display: block; }
.pinned-header-clone table {
  margin: 0;
  background: #f7f1e3;
  box-shadow: none;
  border: 0;
}
.pinned-header-clone thead {
  background: #f7f1e3;
}
.results-table th.group-start,
.results-table td.group-start { border-left: 2px solid #c9bfa4; }
.apps-cell { white-space: nowrap; }
@media (max-width: 900px) {
  .results-table.years-open-1 { min-width: 48rem; }
  .results-table.years-open-2 { min-width: 70rem; }
  .results-table.years-open-3 { min-width: 90rem; }
  .tags-results-table.years-open-1,
  .tags-results-table.years-open-2,
  .tags-results-table.years-open-3 { min-width: 0; }
}

/* 2027 Prediction tab */
.predict-method-note { margin-bottom: 0.85rem; }
.predict-results-table { min-width: 52rem; }
.predict-results-table td.stack, .predict-results-table th.stack { white-space: normal; line-height: 1.25; }
.predict-results-table .side { display: block; font-variant-numeric: tabular-nums; }
.predict-results-table .side-lab { color: var(--muted); font-size: 0.68rem; font-weight: 600; margin-right: 0.2rem; }
.predict-results-table tr.unit-row td { background: #f3ead4; font-weight: 600; }
.predict-results-table .flag { display: inline-block; margin-left: 0.25rem; font-size: 0.68rem; font-weight: 700; color: var(--amber, #a15b00); text-transform: uppercase; letter-spacing: 0.03em; }
.predict-results-table .dash { color: var(--muted); }
.predict-results-table td.notes-cell { font-size: 0.72rem; color: var(--muted); max-width: 14rem; white-space: normal; }
@media (max-width: 700px) {
  .predict-results-table { min-width: 40rem; }
}

.unofficial-banner {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b5a38;
}
.tiny-rate {
  font-size: 0.68rem;
  font-weight: 600;
  color: #8a8374;
  margin-left: 0.2rem;
  white-space: nowrap;
}
.pred-num { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.02em; }
.predict-results-table { min-width: 44rem; }
.predict-results-table th.pred-col, .predict-results-table td.pred-col { min-width: 7.5rem; }
.predict-results-table th.rand-cell, .predict-results-table td.rand-cell { white-space: normal; max-width: 5.5rem; }
.pts-compact { font-size: 0.78rem; color: #5c5648; }

.site-footer {
  margin: 1.4rem 0 0;
  padding: 0.7rem 0 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* Compact Your points control (Tags tab only) */
.your-points-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 0.7rem;
  margin: 0.35rem 0 0.15rem;
}
.your-points { display: flex; flex-direction: column; gap: 0.2rem; margin: 0; }
.your-points .chip-label { font-size: 0.78rem; }
.your-points input[type="number"] {
  width: 5.6rem;
  padding: 0.28rem 0.4rem;
  font: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}
.your-points-bar .residency-toggle {
  min-height: 0;
  align-self: flex-end;
  width: auto;
  grid-template-columns: auto auto;
}
.your-points-bar .residency-toggle button {
  padding: 0.28rem 0.65rem;
  font-size: 0.82rem;
  min-width: 2.6rem;
}
td.your-odds-cell { font-weight: 650; white-space: nowrap; }

/* Prediction-tab deep dive */
.dive-caret { display: inline-block; width: 0.85rem; color: var(--muted); font-size: 0.78rem; }
.predict-results-table tr.predict-dive-row td {
  padding: 0;
  background: #f7f4ec;
  text-align: left;
  white-space: normal;
  vertical-align: top;
}
.predict-dive { padding: 0.5rem 0.7rem 0.7rem; font-size: 0.78rem; color: var(--ink); }
.predict-dive h4 { margin: 0.55rem 0 0.25rem; font-size: 0.8rem; font-weight: 650; }
.predict-dive h4:first-of-type { margin-top: 0.25rem; }
.predict-dive .dive-method { margin: 0 0 0.35rem; }
.predict-dive .dive-creep { margin: 0.2rem 0 0; color: var(--muted); }
.predict-dive .dive-empty { margin: 0 0 0.4rem; }
.dive-table { border-collapse: collapse; width: auto; max-width: 100%; margin: 0 0 0.35rem; }
.dive-table th, .dive-table td {
  padding: 0.12rem 0.45rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dive-table th:first-child, .dive-table td:first-child { text-align: left; }
.dive-table thead th { font-weight: 650; color: var(--muted); font-size: 0.72rem; }
.dive-table tr.pool-end td { background: #efe6cc; }
.dive-table tr.pred-row td { font-weight: 650; }
.dive-table .pool-mark { font-weight: 650; color: #5a4a1f; }

/* ===== Redesign preview (app-redesign only) ===== */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(28, 23, 18, 0.45); z-index: 20;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.primary-bar {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0.55rem 1.1rem 0.15rem;
}
.primary-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.65rem 0.85rem 0.7rem;
}
.your-points-bar.is-primary {
  margin: 0;
  flex: 1 1 auto;
  align-items: flex-end;
  gap: 0.55rem 0.85rem;
}
.your-points-bar.is-primary .your-points .chip-label {
  font-size: 0.78rem;
  color: var(--pine);
}
.your-points-bar.is-primary input[type="number"] {
  width: 6.2rem;
  min-height: 2.45rem;
  padding: 0.35rem 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  border: 2px solid var(--pine);
  border-radius: 10px;
}
.your-points-bar.is-primary .residency-toggle {
  min-height: 2.45rem;
  align-self: flex-end;
}
.your-points-bar.is-primary .residency-toggle button {
  padding: 0.4rem 0.85rem;
  font-size: 0.95rem;
}
.primary-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
  max-width: 28rem;
  align-self: center;
}
.share-btn {
  background: var(--pine);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  min-height: 2.3rem;
}
.share-btn:hover { background: var(--pine-2); }
.share-btn.is-copied { background: var(--ok); }
body.is-success-tab .primary-bar { display: none; }

.compact-controls {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem 0.7rem;
  gap: 0.5rem;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem 1rem;
}
.filter-row-2 { align-items: flex-end; }
.chip-group-inline { gap: 0.22rem; }
.chip-group-inline .chip-label {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}
.compact-controls .chip {
  padding: 0.22rem 0.62rem;
  font-size: 0.84rem;
  min-height: 1.9rem;
}
.compact-controls .hunt-filter { flex: 1 1 16rem; gap: 0.2rem; }
.compact-controls .hunt-filter input[type="search"] {
  min-height: 2.15rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.95rem;
  max-width: none;
}
.compact-controls .toolbar { margin-left: auto; gap: 0.4rem; }
.compact-controls .more-filters { margin: 0; }
.compact-controls .more-filters summary { font-size: 0.82rem; }
#more-numbers[aria-pressed="true"],
#predict-more-numbers[aria-pressed="true"],
#success-more-numbers[aria-pressed="true"] {
  background: var(--pine);
  color: var(--cream);
  border-color: var(--pine);
}

/* Key numbers vs supporting */
.key-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.15;
}
.supp, .sbs-from, .sbs-arrow, .sbs-lab, .sbs-odds {
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sbs { display: flex; flex-direction: column; align-items: flex-start; gap: 0.12rem; line-height: 1.2; }
.sbs-row { display: flex; align-items: baseline; gap: 0.28rem; white-space: nowrap; }
.sbs-lab { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; width: 1.7rem; flex: 0 0 auto; }
.sbs-from { font-size: 0.92rem; }
.sbs-arrow { font-size: 0.85rem; }
.sbs-to { font-size: 1.15rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.sbs-odds { font-size: 0.7rem; padding-left: 2rem; white-space: normal; max-width: 14rem; }
.sbs.is-center { align-items: center; }
.sbs.is-center .sbs-odds { padding-left: 0; text-align: center; }
.creep-cell .sbs-to, .creep-cell .key-num { font-size: 0.98rem; }

.odds-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}
.odds-badge.odds-high { background: #dceee0; color: #21532a; }
.odds-badge.odds-mid { background: #efe6c9; color: #5a4a1f; }
.odds-badge.odds-low { background: #f3e2d4; color: #7a3e1d; }
.odds-placeholder { color: var(--muted); font-size: 0.78rem; font-weight: 600; }

.tags-results-table.redesign-table,
.predict-results-table.redesign-table,
.success-results-table.redesign-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}
.redesign-table th.has-tip,
.redesign-table .tip-label {
  cursor: help;
}
.redesign-table th .tip-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.18rem;
  border-radius: 50%;
  border: 1px solid #c9bfa4;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
  line-height: 1;
}
.redesign-table th .tip-btn:hover,
.redesign-table th .tip-btn[aria-expanded="true"] {
  background: var(--pine);
  color: var(--cream);
  border-color: var(--pine);
}
.col-tip {
  position: fixed;
  z-index: 60;
  max-width: min(22rem, calc(100vw - 1.5rem));
  background: var(--pine);
  color: var(--cream);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(28, 23, 18, 0.25);
  pointer-events: none;
}
.col-tip[hidden] { display: none !important; }

.redesign-table td.pts-draw-cell,
.redesign-table td.your-odds-cell,
.redesign-table td.creep-cell { text-align: left; }
.redesign-table.years-open-extra { min-width: 0; width: 100%; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.45rem 0.7rem;
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.detail-item .detail-lab {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.1rem;
}

/* Phone cards */
.hunt-card-list { display: none; }
@media (max-width: 640px) {
  .primary-bar { padding: 0.4rem 0.6rem 0.1rem; }
  .primary-bar-inner { padding: 0.55rem 0.65rem; }
  .primary-hint { max-width: none; font-size: 0.78rem; }
  .your-points-bar.is-primary input[type="number"] { width: 5.4rem; font-size: 1.1rem; }
  .compact-controls { padding: 0.55rem 0.55rem 0.6rem; }
  .filter-row { gap: 0.35rem 0.5rem; }
  .compact-controls .toolbar { margin-left: 0; width: 100%; }
  .results-section h2 { font-size: 1.05rem; }
  .table-wrap:has(.redesign-table) { border: 0; box-shadow: none; background: transparent; overflow: visible; }
  .redesign-table { display: none; }
  .hunt-card-list { display: flex; flex-direction: column; gap: 0.55rem; }
  .hunt-mini {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.7rem 0.75rem 0.75rem;
  }
  .hunt-mini.is-open { border-color: var(--amber); }
  .hunt-mini-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .hunt-mini-id { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
  .hunt-mini-name { margin: 0.1rem 0 0; font-size: 0.92rem; line-height: 1.3; }
  .hunt-mini-meta { margin-top: 0.15rem; }
  .hunt-mini-body { margin-top: 0.55rem; display: grid; gap: 0.4rem; }
  .hunt-mini-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
  .hunt-mini-row .detail-lab { margin: 0; }
  .hunt-mini-open {
    margin-top: 0.5rem;
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--bark);
    cursor: pointer;
  }
}
@media (min-width: 641px) {
  .hunt-card-list { display: none !important; }
}

.share-toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pine);
  color: var(--cream);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  z-index: 70;
}

/* Compact filter labels sit beside chips so species + weapon fit one row */
.compact-controls .chip-group-inline {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
}
.compact-controls .chip-group-inline .chip-label {
  margin: 0;
  white-space: nowrap;
}
.compact-controls .chip-group-inline .chips {
  flex-wrap: wrap;
}
#panel-tags .results-section h2 { display: none; }
.sbs-odds { max-width: 16.5rem; line-height: 1.35; }
.redesign-table td.pts-draw-cell { min-width: 13.5rem; }
.redesign-table td.your-odds-cell { text-align: center; }
.redesign-table td.creep-cell { min-width: 6.5rem; }
.hunt-mini .detail-lab .tip-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.15rem;
  border-radius: 50%;
  border: 1px solid #c9bfa4;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
}
@media (max-width: 900px) {
  .compact-controls .chip-group-inline { flex-wrap: wrap; }
}
.hunt-mini-row .detail-lab {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 6.4rem;
}

/* ---- tabs2 preview: predictions + 2026 reference ---- */
.pill.new-hunt {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: #efe6c9;
  color: #5a4a1f;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
  letter-spacing: 0;
}
.tags-split, .apps-split, .pool-result, .likely-note, .trend-cell {
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.tags-split .sbs-lab, .apps-split .sbs-lab, .pool-result .sbs-lab {
  min-width: 2.2rem;
}
.tags-total, .apps-per-tag {
  font-weight: 600;
}
.tags-cap, .trend-lab {
  display: block;
  color: var(--muted, #6b6256);
  font-size: 0.78rem;
  font-weight: 400;
}
.see-pred-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: #21532a;
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.see-pred-link:hover, .see-pred-link:focus-visible {
  color: #16381c;
}
.likely-note .likely-yes { color: #21532a; font-weight: 600; }
.likely-note .likely-more { font-weight: 600; }
.likely-note .likely-creep {
  display: block;
  color: var(--muted, #6b6256);
  font-size: 0.78rem;
  font-weight: 400;
}
.tags-results-table { width: 100%; }
.tags-results-table.years-open-extra { font-size: 0.84rem; }
.tags-results-table.years-open-extra th,
.tags-results-table.years-open-extra td { padding-left: 0.45rem; padding-right: 0.45rem; }
.trend-cell { font-size: 0.76rem; }
.trend-line { margin-top: 0.12rem; }
.trend-vals { display: block; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trend-years { margin-bottom: 0.1rem; }
.pool-result { font-size: 0.76rem; }
tr.hunt-row.is-jump td { background: #f4ecd3; }
.hunt-mini .new-hunt { margin: 0.15rem 0 0; }
.tab-lead {
  margin: 0 0 0.75rem;
  color: var(--muted, #6b6256);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* 2026 actual vs 2027 predicted comparison (Predictions tab, open hunt) */
.predict-compare-row td { padding: 0; background: #f7f3e8; }
.cmp-block { padding: 0.65rem 0.7rem 0.8rem; text-align: left; white-space: normal; cursor: default; }
.cmp-title { margin: 0 0 0.35rem; font-size: 0.95rem; color: var(--pine); }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { min-width: 0; max-width: 46rem; }
.cmp-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-table tr.cmp-tags-changed th.row-head, .cmp-table tr.cmp-tags-changed td { background: #fbf1d6; }
.cmp-table tr.cmp-tags-changed td.proj { background: #f6e4b4; }
.cmp-delta { font-weight: 650; white-space: nowrap; }
.cmp-up { color: var(--pine); }
.cmp-down { color: #8a3b24; }
.cmp-same { color: var(--muted); font-weight: 500; }
.cmp-note { margin: 0.45rem 0 0; }
.cmp-gone { margin: 0 0 0.4rem; }
.pill.discontinued { background: #f3e1dc; color: #7a2e1c; border: 1px solid #d9b2a6; }
.pill.tag-change { background: #f6e4b4; color: #5a4310; border: 1px solid var(--amber); }
@media (max-width: 640px) {
  .hunt-mini .cmp-block { padding: 0.5rem 0 0; }
  .cmp-table { font-size: 0.76rem; }
  .cmp-table th, .cmp-table td { padding: 0.24rem 0.3rem; }
  .cmp-table th.row-head { white-space: normal; min-width: 7.5rem; }
}
.pill.discontinued.pill-cell { display: inline-block; white-space: normal; max-width: 7.2rem; text-align: center; line-height: 1.25; }
