:root {
  color-scheme: light;
  --brand: #1b6247;
  --brand-strong: #124c37;
  --ink: #182c23;
  --muted-ink: #52665c;
  --surface-muted: #eaf2eb;
  --surface: #fff;
  --page: #f5f7f3;
  --border: #d4dfd6;
  --focus: #348563;
  --bg: var(--page);
  --panel: var(--surface);
  --text: var(--ink);
  --muted: var(--muted-ink);
  --line: var(--border);
  --blue: var(--brand);
  --lime: var(--brand);
  --teal: var(--brand);
  accent-color: var(--brand);
}
body { background: var(--page); color: var(--ink); }
.skip-link { position: fixed; top: 7px; left: 12px; z-index: 100; transform: translateY(-160%); padding: 8px 15px; border-radius: 7px; background: var(--brand-strong); color: white; }
.skip-link:focus-visible { top: 7px; transform: none; }
.site-header { position: sticky; top: 0; z-index: 20; height: 68px; border-bottom: 1px solid var(--border); background: #fff; }
.site-header .header-inner {
  display: flex; justify-content: space-between; align-items: center; height: 100%;
  width: 100%; max-width: 1216px; margin: auto; padding: 0 28px; gap: 24px;
}
.site-header .wordmark { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 21px; color: var(--ink); font-weight: 700; text-decoration: none; }
.site-header .brand-mark { width: 31px; height: 31px; flex: none; border-radius: 8px; }
#desktop-nav { display: flex; align-items: center; align-self: stretch; height: auto; gap: 5px; }
#desktop-nav a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 13px; border: 0; border-radius: 9px;
  color: var(--muted-ink); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none;
}
#desktop-nav a:hover { background: #f0f5ef; color: var(--brand-strong); }
#desktop-nav a[aria-current="page"] { background: var(--surface-muted); color: var(--brand-strong); font-weight: 650; }
#desktop-nav a svg { display: none; }
#mobile-nav { display: none; }
@media (min-width:901px) {
  .site-header .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header .wordmark { justify-self: start; }
  .site-header .header-inner > :nth-child(3) { justify-self: end; }
}
.site-header .help-button { color: var(--muted-ink); }
.site-header .help-button:hover { color: var(--brand); }
:is(button,a,summary,input,select,textarea):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
@media (min-width:651px) and (max-width:900px) {
  .site-header .header-inner { gap: 8px; padding-inline: 14px; }
  #desktop-nav { gap: 1px; }
  #desktop-nav a { padding-inline: 8px; font-size: 13px; }
  .header-actions { gap: 8px; }
  .header-actions #account-entry { max-width: 6em; }
}
@media (max-width:650px) {
  .site-header { height: 56px; }
  .site-header .header-inner { padding-inline: 17px; gap: 10px; }
  .site-header .wordmark { font-size: 19px; }
  .site-header .brand-mark { width: 28px; height: 28px; }
  #desktop-nav { display: none; }
  #mobile-nav {
    display: flex; justify-content: space-evenly; align-items: center; position: fixed; z-index: 30;
    inset: auto 0 0; height: calc(64px + env(safe-area-inset-bottom));
    padding: 3px 5px calc(3px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border);
    background: #fff;
  }
  #mobile-nav a { display: grid; place-content: center; justify-items: center; gap: 3px; min-width: 0; flex: 1; height: 52px; padding: 2px; color: var(--muted-ink); font-size: 10px; text-decoration: none; }
  #mobile-nav a[aria-current="page"] { color: var(--brand-strong); font-weight: 700; }
  #mobile-nav svg { width: 21px; height: 21px; }
  body:has(.new-detection, .upload-flow) #mobile-nav { display: none; }
}
