:root {
  color-scheme: light;
  --night: #102630;
  --ink: #182d37;
  --text: #2d4651;
  --muted: #4c6571;
  --line: #dce6e7;
  --accent: #006e60;
  --bg: #f3f7f7;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
.wrap { max-width: 1216px; margin: 0 auto; padding-inline: 32px; }
.masthead { background: white; border-bottom: 1px solid #e6eeee; }
.masthead-inner, .footer-inner { display: flex; align-items: center; gap: 14px; }
.masthead-inner { min-height: 75px; }
.brand-logo { position: relative; flex: 0 0 auto; width: clamp(106px, 33vw, 136px); aspect-ratio: 204 / 48; overflow: hidden; mix-blend-mode: multiply; }
.brand-logo img { position: absolute; top: 50%; left: 50%; width: 147.06%; height: auto; transform: translate(-50%, -48.17%); }
.footer-inner strong { font-size: 13px; letter-spacing: .13em; }
.header-label { margin-left: auto; padding-left: 23px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.hero { color: white; background: radial-gradient(ellipse at 90% -20%, #245a5f, transparent 60%), #122c37; overflow: hidden; }
.hero-inner { min-height: 326px; display: grid; grid-template-columns: 1fr 230px; gap: 38px; align-items: center; padding-top: 37px; padding-bottom: 67px; position: relative; }
.kicker { color: #95e2d3; font-size: 12px; font-weight: 700; letter-spacing: .14em; margin: 0 0 15px; }
h1 { font-size: clamp(34px, 5.1vw, 64px); line-height: 1.06; font-weight: 730; letter-spacing: -.049em; margin: 0; max-width: 770px; }
h1 em { color: #9ce6d5; font-style: normal; display: block; }
.hero-caption { color: #d7e8eb; font-size: 16px; margin: 22px 0 0; }
.hero-total { justify-self: end; z-index: 0; position: relative; min-width: 190px; padding: 18px 27px; border: 1px solid #628387; border-radius: 18px; background: #1639449c; }
.hero-total::before, .hero-total::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 340px; height: 340px; right: -123px; bottom: -81px; border: 1px solid #84c5bb24; border-radius: 46%; transform: rotate(26deg); }
.hero-total::after { width: 384px; height: 384px; right: -151px; bottom: -103px; }
.hero-total strong { display: block; color: #b7efe0; font-size: 59px; line-height: 1.05; letter-spacing: -.045em; }
.hero-total span { display: block; margin-top: 7px; line-height: 1.45; font-size: 14px; color: #e1eeee; }
.main-inner { min-height: 42vh; padding-bottom: 56px; position: relative; }
.filter-panel { margin-top: -36px; border: 1px solid var(--line); border-radius: 19px; background: white; padding: 24px 26px 26px; box-shadow: 0 16px 38px #152d3710; }
.filter-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.filter-head h2 { font-size: 20px; margin: 0; letter-spacing: -.025em; }
#result-count { color: #285c52; background: #e9f4ef; border-radius: 99px; padding: 6px 11px; font-size: 12px; font-weight: 650; text-align: center; }
.filters { display: grid; grid-template-columns: minmax(165px, .9fr) minmax(150px, .72fr) minmax(0, 1.8fr); gap: 17px; }
label { display: grid; gap: 7px; min-width: 0; font-size: 13px; font-weight: 675; }
select { width: 100%; min-width: 0; box-sizing: border-box; border-radius: 9px; border: 1px solid #c9d9da; padding: 0 14px; background: #fbfdfd; color: var(--ink); min-height: 47px; font: inherit; font-size: 15px; font-weight: 500; text-overflow: ellipsis; }
select:focus-visible, a:focus-visible, .table-scroll:focus-visible { outline: 3px solid #008c7d; outline-offset: 3px; }
select:disabled { opacity: .65; }
.empty-state { margin-top: 24px; background: #f8fbfb; border: 1px dashed #c9d9db; border-radius: 17px; padding: 31px 16px 33px; text-align: center; }
.empty-icon { display: inline-grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: #e1f1ed; color: #21695d; font-size: 22px; }
.empty-state h2 { margin: 12px 0 4px; font-size: 20px; letter-spacing: -.02em; }
.empty-state p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.record { margin-top: 25px; border: 1px solid var(--line); border-radius: 19px; background: white; overflow: hidden; }
.record-head, .section { padding: 27px 30px; }
.record-head { background: linear-gradient(122deg,#fff 54%,#edf6f4); }
.record-track { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #36565f; font-size: 13px; font-weight: 650; }
.record-track span + span::before { content: "·"; margin-right: 13px; color: #327466; }
.record h2 { font-size: clamp(25px, 4vw, 42px); letter-spacing: -.037em; line-height: 1.13; margin: 12px 0 19px; }
.status-box { padding: 11px 15px; border: 1px solid #cbded9; border-left: 4px solid #51897b; border-radius: 8px; background: #f0f8f5; }
.status-box.closed, .status-box.restricted { background: #fdf7e9; border-color: #eedcb7; border-left-color: #9b681d; }
.status-box p { margin: 3px 0 0; color: #334a50; }
.section-nav { background: #f4f8f8; border-block: 1px solid var(--line); padding: 13px 29px; display: flex; gap: 9px 22px; flex-wrap: wrap; }
a { color: #006453; text-underline-offset: 3px; }
.section-nav a { font-size: 14px; font-weight: 650; }
.section + .section { border-top: 1px solid var(--line); }
.section h3 { font-size: 24px; letter-spacing: -.025em; margin: 0 0 12px; }
.section h4 { font-size: 15px; margin: 0 0 4px; }
.section p, .status-box p, .steps p { font-size: 15px; line-height: 1.58; color: var(--text); max-width: 85ch; }
.section p { margin: 0 0 12px; }
.field + .field { margin-top: 15px; }
.source-list { columns: 2; column-gap: 26px; padding-left: 20px; margin-bottom: 0; }
.source-list li { padding: 4px 0; break-inside: avoid; color: #527b70; line-height: 1.45; }
.source-list a { font-size: 14px; }
.table-scroll { margin: 14px 0 19px; max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; min-width: 610px; text-align: left; color: var(--text); font-size: 14px; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eaf5f2; color: var(--ink); }
tr:nth-child(even) { background: #f7fbfa; }
tbody tr:last-child td { border-bottom: 0; }
.finance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px,1fr)); gap: 11px; margin: 8px 0 16px; }
.amount { display: grid; gap: 5px; border-radius: 11px; border: 1px solid #c6e4dc; background: #edf8f5; padding: 14px 16px; }
.amount span { font-size: 13px; font-weight: 650; }
.amount strong { color: #125f51; font-size: 24px; letter-spacing: -.028em; }
.amount small, .section p.fine-print { color: var(--muted); font-size: 13px; }
.steps { padding-left: 25px; }
.steps li { padding: 0 0 5px 8px; }
.steps li::marker { color: var(--accent); font-weight: bold; }
.notice { margin: 10px 0; padding: 10px 13px; background: #fdf7e9; border-radius: 8px; }
footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 68px; justify-content: space-between; color: var(--muted); font-size: 13px; }
@media (max-width: 800px) {
  .wrap { padding-inline: 22px; }
  .hero-inner { grid-template-columns: 1fr 140px; min-height: 280px; gap: 19px; }
  .hero-total { min-width: auto; padding: 15px 16px; }
  .hero-total strong { font-size: 43px; }
  .hero-total span { font-size: 12px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:last-child { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .wrap { padding-inline: 15px; }
  .header-label { display: none; }
  .masthead-inner { min-height: 62px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 27px; gap: 18px; padding-bottom: 56px; }
  .hero-caption { margin-top: 13px; }
  .hero-total { justify-self: start; display: flex; align-items: center; gap: 9px; padding: 6px 12px; }
  .hero-total span { margin: 0; }
  .hero-total strong { font-size: 29px; }
  .hero-total::before,.hero-total::after { content: none; }
  .filter-panel, .record-head, .section { padding-inline: 15px; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .filter-head { align-items: flex-start; }
  .filter-head h2 { font-size: 18px; }
  .section-nav { padding-inline: 15px; }
  .source-list { columns: 1; }
  .record-track span + span::before { margin-right: 6px; }
}
