/* Otters tracker. Colors from CLAUDE_CONTEXT §7 and the approved mockups. Mobile first. */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin-wght.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ground: #F5F4EF;
  --header: #1E3A2E;
  --header-text: #F5F4EF;
  --header-muted: #C9DDD1;
  --header-line: #5E8A74;
  --ink: #1E2B24;
  --ink-2: #3D4842;
  --muted: #5F6661;
  --card: #FFFFFF;
  --line: #E2E0D8;
  --line-soft: #EFEDE6;
  --signed: #2F6B4F;
  --signed-dark: #1F4A36;
  --light-green: #E6F0EA;
  --amber-bg: #FBEEDD;
  --amber: #F3D9A8;
  --amber-text: #7A4510;
  --amber-dark: #5A330C;
  --unknown: #ECEAE3;
  --open-border: #8E978F;
  --tint: #F2F1EC;
  --radius: 14px;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --heading: 'Space Grotesk', var(--body);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 15px/1.45 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--signed); }
a:hover { color: var(--signed-dark); }
h1, h2, h3 { font-family: var(--heading); margin: 0; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #4C8DCB; outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- shell ---------- */
.site-header { background: var(--header); color: var(--header-text); }
.site-header .inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-name { font-family: var(--heading); font-weight: 700; font-size: 19px; }
.brand-sub { font-size: 12px; color: var(--header-muted); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a, .nav button {
  color: var(--header-text); background: transparent; border: 1px solid var(--header-line);
  padding: 10px 16px; min-height: 44px; border-radius: 999px; font-weight: 600; font-size: 14px;
  text-decoration: none; display: inline-flex; align-items: center; cursor: pointer;
}
.nav a[aria-current="page"] { background: var(--header-text); color: var(--header); border-color: var(--header-text); }

main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 22px; }
.site-footer { text-align: center; font-size: 13px; color: var(--muted); padding: 20px 16px 28px; }
.site-footer a { color: var(--muted); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h2 { font-size: 20px; }
.panel.amber { background: var(--amber-bg); border-color: transparent; color: var(--amber-dark); }
.panel.green { background: var(--light-green); border-color: transparent; color: var(--signed-dark); }
.panel.dashed { background: var(--tint); border: 1px dashed #C9C6BB; color: var(--muted); }
.panel > * + * { margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.back { font-size: 14px; font-weight: 600; text-decoration: none; align-self: flex-start; padding: 10px 0; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.page-head h1 { font-size: 28px; }
.lede { max-width: 760px; color: var(--ink-2); margin: 6px 0 0; }

.state { padding: 40px 0; text-align: center; color: var(--muted); }
.state .btn { margin-top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--signed); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
}
.btn:hover { background: var(--signed-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.secondary { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- status marks ---------- */
.mark { flex: none; display: inline-flex; width: 26px; height: 26px; border-radius: 7px; align-items: center; justify-content: center; font-weight: 700; }
.mark.signed { background: var(--signed); }
.mark.signed svg { width: 14px; height: 14px; }
.mark.open { border: 2px solid var(--open-border); width: 22px; height: 22px; margin: 2px; }
.mark.check { background: var(--amber); color: var(--amber-text); }
.mark.unknown { background: var(--unknown); }
.mark.locked { border: 2px dashed var(--open-border); width: 22px; height: 22px; margin: 2px; }
.mark.implied { background: var(--light-green); }
.mark.implied svg path { stroke: var(--signed); }

.legend { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .mark { transform: scale(.75); margin: -3px; }

/* ---------- gate ---------- */
.gate { max-width: 420px; margin: 24px auto 0; width: 100%; }
.gate h1 { font-size: 26px; }
.gate form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input[type="password"], .field input[type="text"], .field input[type="date"], .field textarea, .field select {
  padding: 12px; min-height: 48px; border: 1px solid #C9C6BB; border-radius: 10px; background: #fff; font-size: 16px;
}
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.check-row input { width: 20px; height: 20px; accent-color: var(--signed); }
.error { color: #9B2C1F; font-size: 14px; }
.gate-foot { margin-top: 18px; font-size: 14px; }

/* ---------- patrol cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.scout-card {
  text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.scout-card:hover { color: var(--ink); border-color: #C9C6BB; }
.scout-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.scout-card .name { font-family: var(--heading); font-weight: 700; font-size: 20px; }
.scout-card .role { font-size: 13px; color: var(--muted); }
.goal-chip { font-size: 12px; font-weight: 600; background: var(--light-green); color: var(--signed-dark); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.bar { height: 8px; background: var(--unknown); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--signed); border-radius: 999px; }
.bar.big { height: 12px; }
.counts { font-size: 13px; color: var(--ink-2); }
.next { font-size: 13px; color: var(--ink-2); }
.next b { font-weight: 600; }
.clock-chip {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: var(--amber-text); background: var(--amber-bg); padding: 6px 10px; border-radius: 8px;
}
.clock-chip svg { flex: none; }
.pages-note { font-size: 13px; color: var(--muted); background: var(--tint); border: 1px dashed #C9C6BB; border-radius: 8px; padding: 10px; }

/* ---------- who needs what ---------- */
.grid-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.tabs { display: flex; gap: 4px; background: var(--tint); padding: 4px; border-radius: 999px; }
.tabs button {
  border: 0; background: transparent; color: var(--ink-2); padding: 10px 14px; min-height: 44px;
  border-radius: 999px; font-weight: 500; font-size: 14px; cursor: pointer;
}
.tabs button[aria-pressed="true"] { background: var(--header); color: #fff; font-weight: 600; }
.scroll-box { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 0 18px; }
table.needs { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13px; }
table.needs th { color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 2px solid var(--line); }
table.needs th.who { color: var(--ink); text-align: center; width: 76px; }
table.needs td { padding: 5px 6px; border-bottom: 1px solid var(--line-soft); }
table.needs td.id { font-weight: 600; color: var(--ink-2); width: 40px; }
table.needs td.cell { text-align: center; }
table.needs td.need { text-align: center; font-weight: 600; color: var(--signed-dark); width: 70px; }
table.needs th:first-child, table.needs td:first-child { position: sticky; left: 0; background: var(--card); }

/* ---------- Scout page ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; justify-content: space-between; }
.hero h1 { font-size: 32px; }
.hero .sub { font-size: 15px; color: var(--ink-2); }
.hero .progress { flex: 1 1 300px; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
.hero .progress .row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { background: var(--tint); border-radius: 12px; padding: 12px 16px; min-width: 140px; flex: 1 1 140px; }
.stat .label { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat .value { font-family: var(--heading); font-size: 26px; font-weight: 700; white-space: nowrap; }
.stat .value small { font-size: 15px; color: var(--muted); font-weight: 500; }
.stat.good { background: var(--light-green); }
.stat.good .label, .stat.good .value, .stat.good .value small { color: var(--signed-dark); }

.two-col { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.two-col > .main-col { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.two-col > aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.req-list { padding: 4px 18px 16px; }
.req-list h2.section {
  margin: 16px 0 4px; font-family: var(--body); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.req-list > h2:not(.section) { margin: 14px 0 6px; }
.req {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft);
  width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0;
}
.req .id { flex: none; width: 32px; font-weight: 600; font-size: 14px; color: var(--ink-2); padding-top: 3px; }
.req .body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.req .label { font-size: 15px; }
.req .note { font-size: 13px; color: var(--muted); }
.req .meta { flex: none; font-size: 13px; color: var(--muted); text-align: right; padding-top: 3px; max-width: 40%; }

.venues { display: flex; flex-direction: column; gap: 12px; }
.venue h3 { font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.venue p { margin: 2px 0 0; font-size: 14px; }
.clock-list { display: flex; flex-direction: column; gap: 10px; }
.clock-item b { display: block; }
.clock-item .when { font-size: 13px; font-weight: 600; color: var(--amber-text); }

details.later { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
details.later summary { cursor: pointer; padding: 16px 18px; min-height: 44px; font-family: var(--heading); font-weight: 600; font-size: 18px; }
details.later .req-list { padding-top: 0; }

/* ---------- Plan ---------- */
.clock-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.clock-card { background: #fff; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.clock-card .title { font-weight: 600; font-size: 14px; }
.clock-card .who { font-size: 13px; color: var(--ink-2); }
.clock-card .len { font-size: 12px; color: var(--amber-text); font-weight: 600; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: start; }
.column { background: var(--unknown); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.column .head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px; }
.column h2 { font-size: 18px; }
.column .count { font-size: 12px; color: var(--muted); font-weight: 600; }
.plan-card { background: #fff; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.plan-card .title-row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.plan-card .title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.plan-card .n { flex: none; font-size: 12px; font-weight: 700; color: #fff; background: var(--signed); border-radius: 999px; padding: 3px 9px; }
.plan-card .reqs { font-size: 12px; color: var(--muted); }
.plan-card .tip { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; background: var(--light-green); color: var(--signed-dark); border-radius: 999px; padding: 4px 10px; text-decoration: none; }
.chip.maybe { background: #fff; color: var(--ink-2); border: 1.5px dashed var(--open-border); padding: 3px 9px; }
a.chip:hover { color: var(--signed-dark); text-decoration: underline; }

@media (min-width: 720px) {
  main { padding: 28px 24px 48px; }
  .site-header .inner { padding: 18px 24px; }
  .hero h1 { font-size: 34px; }
}

/* ---------- leader edit mode ---------- */
.leader-chip {
  display: inline-block; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--header);
  background: var(--amber); border-radius: 999px; padding: 1px 9px;
}
.nowrap { white-space: nowrap; }
.link-button {
  background: none; border: 0; padding: 0; color: var(--signed); font: inherit; text-decoration: underline;
  cursor: pointer; text-align: left;
}
.site-footer .link-button { color: var(--muted); }
.gate-foot .link-button { min-height: 44px; }
.req.tap, .clock-item.tap { cursor: pointer; color: inherit; font: inherit; }
.req.tap:hover { background: var(--tint); }
.req.tap .meta { color: var(--signed); }
.req.inactive .label { color: var(--muted); }
.clock-item.tap {
  display: block; width: 100%; text-align: left; background: rgba(255, 255, 255, .55);
  border: 1px solid var(--amber); border-radius: 10px; padding: 10px 12px; color: var(--amber-dark);
}
.clock-item.tap:hover { background: #fff; }
.edit-hint { display: block; margin-top: 2px; font-weight: 600; text-decoration: underline; }
.req-list.flush { padding: 0; }
.cell-button {
  background: none; border: 0; padding: 6px; margin: -6px; cursor: pointer; border-radius: 8px;
  min-width: 44px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
}
.cell-button:hover { background: var(--tint); }
.btn.danger { background: transparent; color: #9B2C1F; border: 1px solid #E3B9B2; }
.btn.danger:hover { background: #FBECEA; color: #7A1F15; }
.small-btn { min-height: 36px; padding: 6px 14px; font-size: 14px; }

/* bottom sheet: full width on phones, a centered card on wider screens */
dialog.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; margin: auto auto 0; padding: 0; border: 0;
  border-radius: 18px 18px 0 0; background: var(--card); color: var(--ink);
  display: flex; flex-direction: column; overflow: hidden;
}
dialog.sheet:not([open]) { display: none; }
dialog.sheet::backdrop { background: rgba(20, 30, 25, .45); }
.sheet-head { padding: 18px 18px 8px; border-bottom: 1px solid var(--line-soft); }
.sheet-head h2 { font-size: 19px; }
.sheet-body { padding: 12px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
dialog.sheet > .error { margin: 0 18px; }
.sheet-actions {
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.sheet-actions .btn:first-child,
.sheet-actions .btn:last-child:nth-child(even) { grid-column: 1 / -1; }
.sheet-head h2:focus { outline: none; }
.row-2 { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.field input[type="number"] { padding: 12px; min-height: 48px; border: 1px solid #C9C6BB; border-radius: 10px; background: #fff; font-size: 16px; }
.field textarea { resize: vertical; }
fieldset.also { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px 8px; margin: 0; }
fieldset.also legend { font-size: 14px; font-weight: 600; padding: 0 4px; }
.also-list { display: flex; flex-direction: column; }
.other-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 0; cursor: pointer; }
.other-row + .other-row { border-top: 1px solid var(--line-soft); }
.other-row input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--signed); }
.other-row .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.other-row .name { font-size: 15px; }
.other-row .status { font-size: 12px; color: var(--muted); }
.other-row.disabled { cursor: default; }
.other-row.disabled .name { color: var(--muted); }
@media (min-width: 720px) {
  dialog.sheet { margin: auto; border-radius: 18px; }
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 520px; z-index: 10;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px;
  background: var(--header); color: var(--header-text); border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.toast .msg { flex: 1; font-size: 14px; }
.toast button { background: none; border: 0; color: var(--header-text); cursor: pointer; min-height: 40px; font: inherit; }
.toast .undo { font-weight: 700; color: var(--amber); padding: 0 10px; }
.toast .close { font-size: 20px; padding: 0 8px; color: var(--header-muted); }

/* admin */
.inline-form { display: flex; align-items: flex-end; gap: 10px; }
.stack-form { display: flex; flex-direction: column; gap: 12px; }
.changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.changes > li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.changes > li.undone ul { text-decoration: line-through; color: var(--muted); }
.changes ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.change-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---------- print report ---------- */
.report-picks { display: flex; flex-wrap: wrap; gap: 0 20px; }
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: #000; font-size: 14px; }
.report h1 { font-size: 24px; }
.r-title { border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 14px; }
.r-title > div { margin-top: 2px; }
.r-note { font-style: italic; }
.r-legend { font-size: 12px; }
.r-scout { border-bottom: 1px solid #000; padding: 10px 0 12px; break-inside: avoid; page-break-inside: avoid; }
.r-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.r-head h3 { font-size: 18px; }
.r-sub { font-size: 13px; }
.r-section h4 { font-family: var(--body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 8px 0 2px; }
.r-section ul { margin: 0; padding-left: 0; list-style: none; columns: 2 260px; column-gap: 24px; }
.r-section li { break-inside: avoid; padding: 1px 0; }
.r-section p { margin: 0; }
.report .code { display: inline-block; min-width: 2.2em; font-weight: 700; }
.r-also { margin: 8px 0 0; }
.r-pages { margin: 6px 0 0; font-size: 11px; font-style: italic; }
.q-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 1.25em; height: 1.25em;
  border: 1.5px solid #000; border-radius: 3px; font-size: .8em; font-weight: 700; line-height: 1; vertical-align: middle;
}
.r-groups { margin-top: 16px; break-inside: avoid; page-break-inside: avoid; }
.r-groups h2 { font-size: 18px; margin-bottom: 6px; }
.r-groups table { width: 100%; border-collapse: collapse; }
.r-groups th, .r-groups td { text-align: left; padding: 4px 6px; border-bottom: 1px solid #999; vertical-align: top; }
.r-groups th { border-bottom: 2px solid #000; font-size: 12px; }
.r-groups .n { text-align: center; width: 3.5em; }

@media print {
  @page { size: letter portrait; margin: 0.5in; }
  body { background: #fff; font-size: 11pt; min-height: 0; display: block; }
  .site-header, .site-footer, .report-controls, .toast, dialog, button { display: none !important; }
  main { padding: 0; max-width: none; display: block; }
  .report { border: 0; border-radius: 0; padding: 0; font-size: 11pt; }
  .report h1 { font-size: 16pt; }
  .r-head h3 { font-size: 13pt; }
  .r-sub, .r-section h4, .r-legend, .r-groups th { font-size: 9.5pt; }
  .r-pages { font-size: 9pt; }
  .r-groups h2 { font-size: 13pt; }
  a { color: #000; text-decoration: none; }
}

/* ---------- merit badges ---------- */
.eagle-mark { display: inline-flex; vertical-align: -1px; color: var(--amber-text); }
.eagle-mark svg { width: 12px; height: 12px; }
.badge-line { font-size: 12px; color: var(--ink-2); }
.badge-goal { margin: 6px 0 0; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.badge-goal.done { color: var(--signed-dark); }
.legend-line { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; }
.badges-panel .add-badge { margin-top: 12px; }
.row-2.even { grid-template-columns: 1fr 1fr; }
.sheet-confirm { padding: 12px 18px 0; border-top: 1px solid var(--line-soft); }
.sheet-confirm p { margin: 0; font-weight: 600; }
.sheet-confirm .sheet-actions { border-top: 0; padding-left: 0; padding-right: 0; }
.sheet-confirm .sheet-actions .btn:first-child,
.sheet-confirm .sheet-actions .btn:last-child:nth-child(even) { grid-column: auto; }
.btn.danger-solid { background: #9B2C1F; color: #fff; }
.btn.danger-solid:hover { background: #7A1F15; color: #fff; }
table.badges-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
table.badges-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 8px 6px; border-bottom: 2px solid var(--line); }
table.badges-table td { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.badges-table td.name { font-weight: 600; white-space: nowrap; }
table.badges-table .eagle-col { width: 28px; text-align: center; }
table.badges-table th:first-child, table.badges-table td:first-child { position: sticky; left: 0; background: var(--card); }
.r-badges { margin: 6px 0 0; }
