:root {
  color-scheme: light;
  --navy: #082e39;
  --ink: #13333a;
  --muted: #4a6669;
  --teal: #0b665b;
  --mint: #b8f0da;
  --sand: #f4f6f1;
  --white: #fff;
  --line: #dce6df;
  --radius: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); font-weight: 700; text-underline-offset: 3px; }
a:hover { color: #064b42; }
:focus-visible { outline: 3px solid #007868; outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-150%); z-index: 2; background: white; padding: 8px 16px; }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.masthead { background: #092933; border-bottom: 1px solid #28545a; color: #f2fffa; }
.mast-inner { display: flex; justify-content: space-between; align-items: center; min-height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 1.03rem; letter-spacing: -.025em; line-height: 1.23; }
.brand small { display: block; color: #a7d6cd; font-size: .59rem; font-weight: 750; letter-spacing: .13em; margin-top: 3px; }
.mast-nav { display: flex; align-items: center; gap: 16px; }
.mast-link { color: #c9ede0; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.masthead a:hover { color: white; }
.masthead :focus-visible { outline-color: var(--mint); }
.hero { background: #0b3842 url("contours.svg") no-repeat right center / auto 128%; color: #f2fffa; }
.hero-inner { padding-block: 34px 40px; }
.eyebrow { margin: 0; font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.region { color: #c0f2dd; display: flex; align-items: center; gap: .55em; }
.region span, .pill::before, .closure-status::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.region b { opacity: .58; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.55rem, 5.8vw, 4.65rem); line-height: .99; letter-spacing: -.065em; margin: 13px 0 12px; }
.hero-copy { color: #d4ebe7; font-size: clamp(.97rem, 1.7vw, 1.12rem); max-width: 39rem; margin-bottom: 0; }
.verify { display: flex; align-items: center; gap: 13px; padding: 14px 17px; margin: 21px 0 13px; background: #fff0cd; color: #533b14; border: 1px solid #f1d69c; border-radius: 13px; }
.notice-icon { flex: 0 0 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: #f1d39a; font-weight: 850; }
.verify strong { font-size: .93rem; }
.verify p { margin: 0; font-size: .84rem; }
.verify a { color: #644716; margin-left: auto; font-size: .83rem; white-space: nowrap; }
.closure-overview { margin: 0 0 15px; }
.date-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 7px 0 10px; }
.date-controls { display: flex; align-items: center; gap: 9px; }
.date-controls label { font-size: .88rem; font-weight: 750; }
.date-controls label small { color: var(--muted); font-size: .68rem; margin-left: .2em; font-weight: 650; }
input, select { min-width: 0; border: 1px solid #c9d9d2; border-radius: 8px; background: white; }
input[type=date] { padding: 7px 9px; font-size: .88rem; min-height: 39px; }
.quiet { border: 0; padding: 8px 5px; background: transparent; color: var(--teal); font-size: .8rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.closure-link { font-size: .78rem; }
.closure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.closure-card { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3px 8px; background: white; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; }
.closure-card strong { font-size: .87rem; }
.closure-card small { grid-column: 1 / -1; color: var(--muted); font-size: .74rem; }
.closure-status { display: inline-flex; align-items: center; gap: 5px; font-size: .71rem; font-weight: 800; color: #095e49; white-space: nowrap; }
.closure-status[data-state="closed"] { color: #8c2d24; }
.closure-status[data-state="unknown"] { color: #704907; }
.workspace { display: grid; grid-template-columns: minmax(245px, .82fr) minmax(0, 2.04fr); gap: 17px; align-items: start; }
.panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 12px #13333a06; }
.picker-top, .details, .catch, .gear, .sources { padding: 22px; }
.step { color: var(--teal); }
h2 { font-size: clamp(1.5rem, 2.65vw, 2rem); line-height: 1.08; letter-spacing: -.04em; margin: 5px 0 11px; }
.picker h2 { font-size: 1.7rem; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; top: 50%; left: 11px; transform: translateY(-50%); fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search-wrap input { padding: 11px 8px 11px 36px; width: 100%; font-size: .88rem; background: #f7faf8; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.filters button { border-radius: 20px; border: 1px solid #d5e3dd; background: white; font-size: .72rem; font-weight: 750; padding: 5px 9px; }
.filters button[aria-pressed="true"] { background: var(--navy); color: white; border-color: var(--navy); }
.catalog { border-top: 1px solid var(--line); padding: 10px 11px 11px; }
.match-count { color: var(--muted); font-size: .73rem; margin: 1px 10px 7px; font-weight: 700; }
.species-list { margin: 0; list-style: none; padding: 2px 4px 3px; max-height: 490px; overflow: auto; scrollbar-color: #91b5a7 #f3f7f4; }
.species-list li + li { border-top: 1px solid #edf2ef; }
.species-option { width: 100%; border: 0; border-radius: 8px; padding: 8px 9px; text-align: left; background: white; display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: .85rem; font-weight: 750; }
.species-option span:nth-child(2) { color: var(--muted); font-size: .67rem; font-weight: 700; }
.species-option[aria-current="true"] { background: #def5eb; color: #064d43; }
.species-option:hover, .filters button:hover:not([aria-pressed="true"]) { background: #eff8f3; }
.species-option:focus-visible { outline-offset: -2px; }
#empty-state { padding: 10px; font-size: .87rem; }
#empty-state p { margin: 5px 0 0; }
.result-stack { display: grid; gap: 15px; min-width: 0; }
.details { border-top: 3px solid #188273; scroll-margin-top: 12px; }
.details-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.details h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); margin-bottom: 3px; }
.aliases { font-size: .8rem; color: var(--muted); margin: 0 0 10px; }
.pill { display: flex; align-items: center; gap: 6px; border-radius: 30px; padding: 6px 10px; font-size: .72rem; font-weight: 800; color: #095e49; background: #e2f4eb; flex-shrink: 0; }
.pill[data-tone="closed"] { color: #8c2d24; background: #fbe6e1; }
.pill[data-tone="check"] { color: #704907; background: #fff0cd; }
.species-summary { margin: 4px 0 13px; font-size: .93rem; font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.metrics > div { background: #f1f7f3; padding: 11px 10px; border-radius: 11px; min-width: 0; }
.metrics dt { font-size: .67rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.metrics dd { font-size: 1rem; line-height: 1.22; margin: 5px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.metrics dd small { display: block; font-size: .71rem; line-height: 1.35; color: var(--muted); font-weight: 620; margin-top: 4px; }
.species-notes { font-size: .84rem; margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.species-notes li + li { margin-top: 3px; }
.rule-links { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 10px; font-size: .78rem; }
.subtle { color: var(--muted); font-size: .88rem; margin-bottom: 13px; }
.catch-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.field label, .zone-field label { display: block; font-size: .81rem; font-weight: 800; margin-bottom: 5px; }
.field input, .field select, .zone-field select { display: block; width: 100%; min-height: 43px; padding: 8px 10px; }
.field small { display: block; color: var(--muted); margin-top: 4px; font-size: .74rem; }
.field select, .zone-field select { font-size: .85rem; }
.zone-field { margin: 13px 0 12px; }
.zone-field a { display: inline-block; margin: 5px 10px 0 0; font-size: .78rem; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 8px 16px; background: #0a6257; border: 1px solid #0a6257; color: white; border-radius: 9px; font-weight: 800; }
.action:hover { background: #094b43; }
.verdict { border-radius: 10px; margin-top: 13px; padding: 11px 13px; background: #fff0cd; color: #67460d; }
.verdict[data-tone="closed"] { color: #8c2d24; background: #fbe6e1; }
.verdict[data-tone="open"] { color: #095943; background: #e2f4eb; }
.verdict p { margin: 4px 0 0; font-size: .85rem; }
.gear, .sources { margin-top: 17px; }
.gear-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.gear-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #f7faf8; }
.gear h3 { margin: 0 0 7px; font-size: 1.04rem; }
.gear-rules { color: var(--muted); font-size: .85rem; margin: 0 0 13px; padding-left: 18px; }
.gear-rules li + li { margin-top: 5px; }
.gear-form { display: grid; gap: 9px; justify-items: start; }
.gear-form > .field, .gear-form > .catch-fields { width: 100%; }
.gear-location { margin-top: 13px; padding: 12px 14px; border-radius: 11px; background: #f1f7f3; }
.gear-location p { margin: 4px 0; color: var(--muted); font-size: .84rem; }
.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.source-grid a { display: block; padding: 10px 11px; border-radius: 9px; background: #f1f7f3; font-size: .82rem; text-decoration: none; }
.source-grid a:hover strong { text-decoration: underline; }
.source-grid small { display: block; color: var(--muted); font-weight: 600; margin-top: 2px; }
.footer { display: flex; gap: 10px; justify-content: space-between; font-size: .74rem; color: var(--muted); padding-block: 16px 22px; }
@media (max-width: 880px) {
  .shell { width: calc(100% - 40px); }
  .picker-top, .details, .catch, .gear, .sources { padding: 17px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 24px); }
  .mast-inner { min-height: 57px; gap: 7px; }
  .mast-nav { gap: 8px; }
  .mast-link { font-size: .74rem; }
  .brand img { width: 35px; height: 35px; }
  .brand { gap: 6px; font-size: .92rem; }
  .brand small { font-size: .52rem; }
  .hero-inner { padding-block: 27px 30px; }
  .hero { background-position: 82% center; }
  .verify { display: grid; grid-template-columns: 25px 1fr; margin-top: 13px; gap: 4px 8px; padding: 10px; }
  .notice-icon { width: 25px; height: 25px; align-self: start; }
  .verify a { grid-column: 2; margin-left: 0; }
  .workspace, .closure-grid, .gear-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .closure-card { padding: 6px 9px; }
  .species-list { max-height: 132px; }
  .result-stack { gap: 10px; }
  .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 350px) {
  .catch-fields, .source-grid { grid-template-columns: 1fr; }
  .details-top { flex-wrap: wrap; gap: 3px; }
  .mast-inner { flex-wrap: wrap; padding-block: 8px; }
}
