:root {
  --ink: #111317;
  --muted: #626977;
  --green: #e0001b;
  --green-dark: #b90016;
  --mint: #fff1f3;
  --cream: #f5f6f8;
  --paper: #ffffff;
  --line: #e4e7ed;
  --orange: #e0001b;
  --shadow: 0 20px 60px rgba(17, 19, 23, .10);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
body.access-locked { overflow: hidden; }
body.access-locked > :not(.access-gate):not(script) { visibility: hidden; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(224, 0, 27, .35); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 99; left: 16px; top: -100px; padding: 10px 16px; background: white; color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.access-gate { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; overflow-y: auto; background: radial-gradient(circle at 12% 16%, rgba(224,0,27,.15), transparent 25%), radial-gradient(circle at 88% 20%, rgba(224,0,27,.10), transparent 28%), linear-gradient(135deg, #f7f8fa, #fff 52%, #f2f3f6); }
.access-gate::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(17,19,23,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(17,19,23,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 88%); }
.access-panel { position: relative; width: min(590px, 100%); margin: auto; padding: clamp(28px, 5vw, 48px); border: 1px solid rgba(17,19,23,.08); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 28px 90px rgba(17,19,23,.14); backdrop-filter: blur(18px); }
.access-language-switch { position: absolute; top: clamp(24px, 4vw, 38px); right: clamp(24px, 4vw, 38px); display: flex; gap: 5px; }
.access-language-switch button { min-width: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; font-size: 12px; font-weight: 800; }
.access-language-switch button.active { border-color: var(--green); color: white; background: var(--green); }
.access-brand { display: inline-flex; }
.access-brand img { display: block; width: auto; height: 56px; }
.access-eyebrow { margin: 32px 0 10px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.access-panel h1 { max-width: none; margin: 0; font-size: clamp(34px, 6vw, 50px); line-height: 1; letter-spacing: -.045em; }
.access-intro { margin: 18px 0 26px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.access-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.access-form label { color: #465650; font-size: 12px; font-weight: 750; }
.access-form label:nth-of-type(3), .access-form #access-password, .access-help, .access-privacy, .access-error, .access-form button, .access-back { grid-column: 1 / -1; }
.access-form input { width: 100%; min-width: 0; margin-bottom: 9px; padding: 13px 14px; border: 1px solid #d7ded9; border-radius: 11px; color: var(--ink); background: white; }
.access-form input:focus { border-color: var(--green); outline: 3px solid rgba(224,0,27,.14); }
.access-form input:user-invalid { border-color: #ba3041; }
.access-privacy { margin: 5px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.access-help { margin: 6px 0 2px; padding: 13px 14px; border-radius: 10px; color: #454a54; background: #f5f6f8; font-size: 12px; line-height: 1.55; }
.access-help a { color: var(--green); font-weight: 800; text-underline-offset: 2px; }
.access-error { margin: 0; padding: 10px 12px; border: 1px solid #e9aab2; border-radius: 9px; color: #8c0011; background: #fff2f4; font-size: 12px; }
.access-form button { min-height: 52px; padding: 13px 20px; border: 0; border-radius: 13px; color: white; background: var(--green); box-shadow: 0 16px 34px rgba(224,0,27,.18); font-weight: 800; }
.access-form button:hover:not(:disabled) { background: var(--green-dark); }
.access-form button:disabled { cursor: wait; opacity: .7; }
.access-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.access-back { justify-self: center; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; padding: 18px 0; color: var(--ink); transition: padding .3s ease; }
.header-inner { width: min(1240px, calc(100% - 48px)); min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 auto; padding: 10px 12px 10px 20px; border: 1px solid rgba(255,255,255,.72); border-radius: 22px; background: rgba(255,255,255,.86); box-shadow: 0 14px 44px rgba(10,11,14,.10); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); transition: min-height .3s ease, border-radius .3s ease, box-shadow .3s ease; }
.site-header.scrolled { padding-block: 9px; }
.site-header.scrolled .header-inner { min-height: 62px; border-radius: 18px; box-shadow: 0 12px 36px rgba(10,11,14,.13); }
.hero-inner, .catalog-inner, .footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; letter-spacing: -.02em; }
.brand img { display: block; width: auto; height: 48px; transition: height .3s ease; }
.site-header.scrolled .brand img { height: 42px; }
.header-utilities { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; }
.welcome-user { max-width: 190px; padding: 8px 10px; overflow: hidden; border-radius: 10px; color: #555b66; background: var(--cream); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.welcome-user strong { color: var(--ink); }
.tool-language-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.tool-language-switch button { min-width: 38px; padding: 7px 8px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 850; }
.tool-language-switch button:hover { color: var(--ink); background: var(--cream); }
.tool-language-switch button.active { color: white; background: var(--green); }
.source-links { display: flex; align-items: center; gap: 6px; }
.source-link { display: inline-flex; align-items: center; gap: 7px; padding: 12px 15px; border-radius: 12px; color: #363943; background: transparent; font-size: 13px; font-weight: 700; text-decoration: none; transition: color .2s ease, background .2s ease, transform .2s ease; }
.source-link:hover { color: var(--green); background: var(--mint); transform: translateY(-1px); }
.source-link svg { width: 17px; fill: none; stroke: var(--green); stroke-width: 1.7; }
.source-link-short { display: none; }

.hero { position: relative; overflow: hidden; color: var(--ink); background: radial-gradient(circle at 10% 20%, rgba(224,0,27,.12), transparent 22%), radial-gradient(circle at 90% 20%, rgba(224,0,27,.10), transparent 24%), linear-gradient(135deg, #fafbfc 0%, #fff 48%, #f7f8fb 100%); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(17,19,23,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(17,19,23,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 85%); }
.hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -70px; top: -65px; border-radius: 50%; background: rgba(224,0,27,.15); filter: blur(100px); }
.hero-inner { position: relative; z-index: 1; padding: 154px 0 72px; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 10px 14px; border-radius: 999px; color: var(--green); background: rgba(224,0,27,.07); font-size: 11px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 0; font-size: clamp(48px, 7vw, 88px); font-weight: 800; line-height: .94; letter-spacing: -.06em; }
h1 em { color: var(--green); font-style: normal; font-weight: inherit; }
.hero-copy { max-width: 650px; margin: 24px 0 32px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.search-form { display: grid; grid-template-columns: 25px 1fr auto auto; align-items: center; gap: 12px; width: min(850px, 100%); padding: 9px 9px 9px 20px; background: rgba(255,255,255,.9); border: 1px solid rgba(17,19,23,.07); border-radius: 18px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.search-form > svg { width: 23px; fill: none; stroke: #73817b; stroke-width: 1.8; }
.search-form input { min-width: 0; padding: 13px 0; border: 0; outline: 0; color: var(--ink); font-size: 16px; background: transparent; }
.search-form input::placeholder { color: #8b9692; }
.search-form button[type="submit"] { padding: 14px 25px; border: 0; border-radius: 14px; color: white; background: var(--orange); box-shadow: 0 16px 34px rgba(224,0,27,.18); font-weight: 700; }
.search-form button[type="submit"]:hover { background: #cd6230; }
.clear-search { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #edf0ee; color: #62706b; font-size: 22px; line-height: 1; }
.stats { display: flex; gap: 42px; margin-top: 35px; }
.stats div { display: flex; align-items: baseline; gap: 8px; }
.stats strong { font-size: 24px; font-weight: 800; }
.stats span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.catalog { padding: 45px 0 80px; }
.catalog-inner { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { padding: 22px; background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 36px rgba(17,19,23,.04); backdrop-filter: blur(12px); }
.filter-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.filter-heading h2 { margin: 0; font-size: 16px; }
.filter-heading button { padding: 0; border: 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 700; }
.filter-field { display: block; margin-top: 17px; }
.filter-field > span, .filter-field legend { display: block; margin: 0 0 7px; color: #465650; font-size: 12px; font-weight: 700; }
select { width: 100%; padding: 11px 34px 11px 12px; border: 1px solid #d7ded9; border-radius: 9px; color: var(--ink); background: white; text-overflow: ellipsis; }
select option:disabled { color: #a7abb2; }
.filter-options { min-width: 0; padding: 0; border: 0; }
.filter-options legend { width: 100%; padding: 0; }
.filter-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 4px; border: 0; border-bottom: 1px solid var(--line); color: #465650; background: transparent; text-align: left; font-size: 12px; font-weight: 700; }
.filter-toggle:hover { color: var(--green); }
.filter-toggle-symbol { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--mint); font-size: 17px; font-weight: 500; line-height: 1; }
.option-list { padding: 7px 0 2px; }
.option-list[hidden] { display: none; }
.filter-option { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 7px 6px; border-radius: 6px; cursor: pointer; }
.filter-option:hover { background: var(--mint); }
.filter-option input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--green); cursor: pointer; }
.filter-option .filter-option-label { min-width: 0; margin: 0; color: var(--ink); font-size: 11px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.filter-option .filter-option-count { margin: 0; color: #8a909a; font-size: 10px; font-weight: 600; line-height: 1.5; }
.mobile-filter-button { display: none; }
.result-toolbar { min-height: 57px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 18px; }
.result-count { margin: 3px 0 8px; font-size: 18px; font-weight: 750; }
.result-count strong { color: var(--green); }
.sort-control { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.sort-control select { width: 175px; padding-top: 9px; padding-bottom: 9px; }
.toolbar-actions { display: flex; align-items: center; gap: 12px; }
.export-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 11px; color: white; background: var(--green); box-shadow: 0 10px 24px rgba(224,0,27,.14); font-size: 12px; font-weight: 750; white-space: nowrap; }
.export-button:hover:not(:disabled) { background: var(--green-dark); }
.export-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.export-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid #f3c8ce; border-radius: 99px; background: var(--mint); color: var(--green-dark); font-size: 11px; }
.filter-chip b { font-size: 15px; line-height: 1; }

.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.issue-card { min-width: 0; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 2px 0 rgba(17,19,23,.02); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.issue-card:hover { transform: translateY(-3px); border-color: #efb5bd; box-shadow: var(--shadow); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.group-tag { display: inline-flex; padding: 5px 8px; border-radius: 7px; color: #bd0017; background: #fff0f2; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; }
.group-tag.record { color: #454a54; background: #eceef2; }
.group-tag.other { color: #6d3e49; background: #f5e8ec; }
.group-tag.incident { color: #075b80; background: #e6f6fc; }
.card-date { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.issue-card h3 { margin: 17px 0 7px; font-size: 20px; font-weight: 800; line-height: 1.18; letter-spacing: -.035em; overflow-wrap: anywhere; }
.commodity { min-height: 34px; margin: 0; color: var(--green); font-size: 12px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.issue-text { display: -webkit-box; min-height: 62px; margin: 18px 0 16px; color: #4c5b56; font-size: 13px; line-height: 1.55; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.route { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; margin-top: auto; padding: 13px 0; border-top: 1px solid #e8ece9; border-bottom: 1px solid #e8ece9; }
.route div { min-width: 0; }
.route div:last-child { text-align: right; }
.route span { display: block; color: #8a9591; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.route strong { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.route svg { width: 17px; fill: none; stroke: #9aaaa3; stroke-width: 1.5; }
.detail-button { align-self: flex-start; margin-top: 15px; padding: 0; border: 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 800; }
.detail-button:hover { text-decoration: underline; }

.loading-state { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.loading-state[hidden] { display: none; }
.loading-state div { height: 300px; border-radius: 15px; background: linear-gradient(100deg, #e9ebe7 25%, #f5f4ee 45%, #e9ebe7 65%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }
.empty-state { padding: 70px 20px; border: 1px dashed #c9d2cc; border-radius: 16px; text-align: center; background: rgba(255,255,255,.45); }
.empty-state > span { color: #9ca2ad; font-size: 54px; }
.empty-state h2 { margin: 5px 0 8px; font-weight: 800; }
.empty-state p { color: var(--muted); }
.empty-state button { padding: 10px 16px; border: 0; border-radius: 8px; color: white; background: var(--green); font-weight: 700; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 34px; }
.pagination button, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: #46554f; background: white; font-size: 12px; }
.pagination button[aria-current="page"] { border-color: var(--green); color: white; background: var(--green); font-weight: 800; }
.pagination button:disabled { opacity: .38; cursor: default; }
.pagination span { border-color: transparent; background: transparent; }

footer { padding: 38px 0; color: rgba(255,255,255,.72); background: linear-gradient(135deg, #111317, #1a1d23); }
.footer-inner { display: block; }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.brand-footer { color: white; flex: 0 0 auto; }
.brand-footer img { height: 54px; padding: 7px 10px; border-radius: 10px; background: white; }
.footer-copy { max-width: 630px; text-align: right; }
.footer-copy strong { color: white; font-size: 14px; }
.footer-copy p { margin: 7px 0 0; font-size: 12px; line-height: 1.6; }
.footer-disclaimer { display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: center; gap: 36px; margin-top: 28px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-disclaimer strong { color: white; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.footer-disclaimer p { margin: 8px 0 0; font-size: 11px; line-height: 1.65; }
.footer-disclaimer a { color: white; text-underline-offset: 3px; }
.footer-disclaimer a:hover { color: #ffb3bc; }
.coffee-note { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 14px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: rgba(255,255,255,.88); background: rgba(255,255,255,.05); }
.coffee-note > span:first-child { font-size: 22px; }

dialog { width: min(960px, calc(100% - 30px)); max-height: min(860px, calc(100vh - 30px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(9,30,23,.67); backdrop-filter: blur(3px); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 27px 30px 22px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 12px 0 0; font-size: 29px; font-weight: 800; line-height: 1.15; letter-spacing: -.04em; }
.dialog-header > button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 25px; line-height: 1; }
.dialog-body { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-height: calc(100vh - 165px); padding: 27px 30px 32px; overflow-y: auto; }
.detail-field { min-width: 0; }
.detail-field.wide { grid-column: 1 / -1; }
.detail-field span { display: block; margin-bottom: 6px; color: #7d8a85; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-field p { margin: 0; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.source-document-link { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 8px; color: white; background: var(--green); font-size: 13px; font-weight: 800; text-decoration: none; }
.source-document-link:hover { background: var(--green-dark); }
.language-switch { display: flex; justify-content: flex-end; gap: 5px; }
.language-switch button { min-width: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; font-size: 12px; font-weight: 800; }
.language-switch button.active { border-color: var(--green); color: white; background: var(--green); }
.fatal-error { margin: 40px auto; width: min(650px, calc(100% - 40px)); padding: 25px; background: #fff4ed; border: 1px solid #e8b696; border-radius: 12px; }
.fatal-error code { display: inline-block; padding: 7px 10px; background: white; border-radius: 5px; }

@media (max-width: 1040px) {
  .result-grid, .loading-state { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-inner { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 760px) {
  .access-gate { place-items: start center; padding: 14px; }
  .access-panel { padding: 25px 21px; border-radius: 20px; }
  .access-language-switch { top: 20px; right: 20px; }
  .access-language-switch button { min-width: 38px; padding: 7px 8px; }
  .access-brand img { height: 46px; }
  .access-eyebrow { margin-top: 24px; }
  .access-form { grid-template-columns: 1fr; }
  .access-form label, .access-form input, .access-privacy, .access-error, .access-form button { grid-column: 1; }
  .site-header { padding: 10px 0; }
  .header-inner { width: min(100% - 28px, 1180px); min-height: 64px; gap: 10px; padding: 8px 9px 8px 15px; border-radius: 18px; }
  .hero-inner, .catalog-inner, .footer-inner { width: min(100% - 28px, 1180px); }
  .brand img, .site-header.scrolled .brand img { height: 40px; }
  .tool-language-switch button { min-width: 34px; padding: 7px 6px; }
  .welcome-user { max-width: 120px; padding-inline: 8px; }
  .source-links { gap: 5px; }
  .source-link { min-width: 48px; height: 44px; justify-content: center; gap: 4px; padding: 0 8px; font-size: 10px; }
  .source-link-full, .source-link svg { display: none; }
  .source-link-short { display: inline; }
  .hero-inner { padding: 126px 0 44px; }
  h1 { font-size: clamp(42px, 13vw, 61px); }
  .hero-copy { font-size: 15px; }
  .search-form { grid-template-columns: 22px 1fr auto; padding-left: 14px; gap: 8px; }
  .search-form button[type="submit"] { grid-column: 1 / -1; width: 100%; }
  .stats { gap: 18px; justify-content: space-between; }
  .stats div { display: block; }
  .stats strong, .stats span { display: block; }
  .stats strong { font-size: 21px; }
  .stats span { margin-top: 3px; font-size: 9px; }
  .catalog { padding-top: 26px; }
  .catalog-inner { display: block; }
  .mobile-filter-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font-weight: 750; }
  .mobile-filter-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .mobile-filter-button span { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 10px; }
  .filters { position: static; display: none; margin-bottom: 20px; }
  .filters.open { display: block; }
  .result-toolbar { display: block; }
  .sort-control { margin-top: 14px; }
  .sort-control select { flex: 1; }
  .toolbar-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .export-button { width: 100%; }
  .result-grid, .loading-state { grid-template-columns: 1fr; }
  .loading-state div:nth-child(n+4) { display: none; }
  .footer-main { display: block; }
  .footer-copy { margin-top: 22px; text-align: left; }
  .footer-disclaimer { grid-template-columns: 1fr; gap: 20px; }
  .dialog-body { grid-template-columns: 1fr; }
  .detail-field.wide { grid-column: auto; }
  .dialog-header, .dialog-body { padding-left: 21px; padding-right: 21px; }
}

@media (max-width: 520px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; padding: 8px 10px 9px 14px; }
  .brand { grid-column: 1; grid-row: 1; }
  .header-utilities { grid-column: 2; grid-row: 1; }
  .source-links { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .source-link { flex: 1; }
  .welcome-user { max-width: 72px; }
  .welcome-label { display: none; }
  .hero-inner { padding-top: 174px; }
}
