
:root{color-scheme:light;
  --bg:#faf5f5;--surface:#ffffff;--text:#29191b;--muted:#78666a;--line:#e9dcdf;
  --accent:#a82b3d;--accent-ink:#ffffff;--accent-soft:#f8e8eb;--good:#a82b3d;
  --warn:#956000;--bad:#b32b35;--shadow:0 8px 24px rgba(50,20,26,.07);
}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){color-scheme:dark;
  --bg:#181113;--surface:#23191c;--text:#faf0f2;--muted:#bba5ab;--line:#443037;
  --accent:#f394a5;--accent-ink:#281015;--accent-soft:#42222b;--good:#f394a5;
  --warn:#e2b766;--bad:#ff8b94;--shadow:none;
}}
:root[data-theme="dark"]{color-scheme:dark;
  --bg:#181113;--surface:#23191c;--text:#faf0f2;--muted:#bba5ab;--line:#443037;
  --accent:#f394a5;--accent-ink:#281015;--accent-soft:#42222b;--good:#f394a5;
  --warn:#e2b766;--bad:#ff8b94;--shadow:none;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit}
.shell{width:100%;max-width:760px;margin:0 auto;padding:calc(14px + env(safe-area-inset-top)) 14px calc(36px + env(safe-area-inset-bottom))}
.header{padding:8px 2px 18px}.brand{display:flex;align-items:center;gap:8px;color:var(--accent);font-size:.76rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.brand-icon{display:block;width:20px;height:20px;flex:0 0 20px}
h1{margin:8px 0 7px;font-size:clamp(2rem,10vw,3rem);line-height:.98;letter-spacing:-.05em;max-width:12ch}.intro{margin:0;color:var(--muted);font-size:.96rem;max-width:42rem}
.location-card{--inner-radius:12px;--control-radius:8px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:8px;box-shadow:var(--shadow);margin-bottom:12px}.location-segment{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:3px;border-radius:var(--inner-radius);background:var(--bg);border:1px solid var(--line)}.location-segment button{min-height:40px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-weight:780;font-size:.86rem;padding:0 10px;cursor:pointer}.location-segment button[aria-pressed="true"]{background:var(--surface);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.08)}.location-panel{padding:14px 6px 6px}.location-panel[hidden]{display:none}.locate-row{display:flex;align-items:center;gap:12px}.loc-icon{flex:0 0 42px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--bad) 12%,var(--surface));color:var(--bad)}.loc-icon svg{display:block;width:24px;height:24px}.loc-copy{min-width:0;flex:1}.loc-title{font-weight:800;letter-spacing:-.01em}.loc-sub{margin-top:2px;color:var(--muted);font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.locate-btn{width:100%;min-height:48px;margin-top:13px;border:0;border-radius:var(--control-radius);background:var(--accent);color:var(--accent-ink);font-weight:800;padding:0 16px;cursor:pointer}.locate-btn:disabled{opacity:.58;cursor:wait}
.manual-copy{margin:0 0 10px;color:var(--muted);font-size:.84rem}.manual-row{display:grid;grid-template-columns:1fr;gap:8px}.manual-input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--surface);color:var(--text);padding:0 11px}.manual-btn{min-height:46px;border:0;border-radius:var(--control-radius);background:var(--accent);color:var(--accent-ink);font-weight:800;padding:0 14px;cursor:pointer}.manual-btn:disabled{opacity:.58;cursor:wait}
.filters{display:none}.field label{display:block;margin:0 0 5px;font-size:.76rem;color:var(--muted);font-weight:760}.field select{width:100%;min-height:46px;border:1px solid var(--line);border-radius:var(--control-radius,8px);background:var(--surface);color:var(--text);padding:0 34px 0 11px}.status{display:none;margin:4px 0 12px;padding:11px 12px;border-radius:13px;background:var(--accent-soft);font-size:.88rem}.status.show{display:block}.status.error{background:color-mix(in srgb,var(--bad) 12%,var(--surface));color:var(--bad)}
.visible-controls{--control-radius:6px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px;margin:4px 0 14px;box-shadow:var(--shadow)}.visible-controls-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.visible-controls .sort-field{grid-column:1/-1}.internal-controls{display:none!important}
.results-head{display:flex;justify-content:space-between;align-items:end;gap:12px;padding:13px 2px 10px}.results-head h2{margin:0;font-size:1.12rem;letter-spacing:-.015em}.summary{color:var(--muted);font-size:.8rem;text-align:right}
.list{display:grid;gap:10px;min-width:0}.item{width:100%;min-width:0;display:grid;gap:0;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:0;box-shadow:0 1px 0 rgba(0,0,0,.02);overflow:hidden}.item-top{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:12px;align-items:start;padding:18px;color:inherit;text-decoration:none;cursor:pointer}.item-top:hover,.item-top:focus-visible{background:var(--accent-soft)}.item-top:hover h3,.item-top:focus-visible h3{color:var(--accent)}.item-top:focus-visible{outline:2px solid var(--accent);outline-offset:-3px;border-radius:17px 17px 0 0}.topline{min-width:0;display:block;align-self:start}.rank{display:none}.maincopy{min-width:0}.item-heading{display:contents}.establishment-type{display:none!important}.item h3{margin:0;font-size:1.08rem;line-height:1.18;letter-spacing:-.01em}.address{display:flex;align-items:baseline;min-width:0;margin-top:5px;color:var(--muted);font-size:.88rem;line-height:1.22}.address-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-top:hover .address,.item-top:focus-visible .address{color:var(--accent)}.external-mark{flex:0 0 auto;display:inline-block;margin-left:3px;font-size:.78em;vertical-align:.08em}.distance{justify-self:end;align-self:start;text-align:right;color:var(--accent);font-weight:850;font-size:1.08rem;line-height:1.05;white-space:nowrap}.distance small{display:block;margin-top:4px;color:var(--muted);font-weight:650;font-size:.7rem}.inspection{min-width:0;display:grid;grid-template-columns:minmax(76px,max-content) minmax(0,1fr);gap:16px;align-items:start;margin:0 18px 18px;padding-top:14px;border-top:1px solid var(--line)}.datebox{min-width:0}.datebox strong{display:block;font-size:1.06rem;line-height:1.15;letter-spacing:-.01em}.datebox span{display:block;margin-top:5px;color:var(--muted);font-size:.78rem;line-height:1.15}.inspection-copy{min-width:0}.statusline{font-size:.92rem;font-weight:760;line-height:1.15}.type{margin-top:6px;color:var(--muted);font-size:.82rem;line-height:1.2;white-space:normal;overflow:visible;text-overflow:clip}.statusline.pass{color:var(--good)}.statusline.conditional{color:var(--warn)}.statusline.closed{color:var(--bad)}
.empty{grid-column:1/-1;padding:28px 20px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:18px;background:color-mix(in srgb,var(--surface) 52%,transparent)}.footer{margin:22px 3px 0;color:var(--muted);font-size:.74rem;line-height:1.55}.spinner{width:14px;height:14px;display:inline-block;border:2px solid color-mix(in srgb,var(--accent) 25%,transparent);border-top-color:var(--accent);border-radius:50%;vertical-align:-2px;margin-right:7px;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.debug{margin:12px 3px 0;color:var(--muted);font-size:.72rem}.debug pre{white-space:pre-wrap;word-break:break-word;font:inherit}
@media(min-width:650px){.shell{padding-left:24px;padding-right:24px}.location-panel#currentLocationPanel{display:grid;grid-template-columns:1fr auto;align-items:center;gap:14px}.location-panel#currentLocationPanel[hidden]{display:none}.locate-btn{width:auto;min-width:180px;margin-top:0}.manual-row{grid-template-columns:1fr auto}.visible-controls-grid{grid-template-columns:1fr 1fr 1fr}.visible-controls .sort-field{grid-column:auto}.header{padding-top:20px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

.feed-details{margin:18px 3px 0;color:var(--muted);font-size:.76rem;line-height:1.5}.feed-details summary{cursor:pointer;padding:8px 0;min-height:36px}.feed-details summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.feed-details summary[data-warning="true"]{color:var(--bad)}.feed{padding:8px 0;border-top:1px solid var(--line)}.feed strong{color:var(--text)}.feed p{margin:3px 0 0}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px}.toolbar button,.toolbar select{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:8px;padding:7px} :root[data-theme="dark"]{--bg:#181113;--surface:#23191c;--text:#faf0f2;--muted:#bba5ab;--line:#443037;--accent:#f394a5;--accent-ink:#281015;--accent-soft:#42222b;--good:#f394a5;--bad:#ff8b94;--shadow:none} :root[data-theme="light"]{--bg:#faf5f5;--surface:#fff;--text:#29191b;--muted:#78666a;--line:#e9dcdf;--accent:#a82b3d;--accent-ink:#fff;--accent-soft:#f8e8eb;--good:#a82b3d;--bad:#b32b35} .address-text{white-space:normal}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.theme-switch{display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--bg);flex:none}.theme-switch button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--muted);cursor:pointer}.theme-switch button[aria-pressed="true"]{background:var(--surface);color:var(--accent);box-shadow:0 1px 3px rgba(0,0,0,.12)}.theme-switch button:hover{color:var(--accent)}.theme-switch button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.theme-switch svg{display:block;width:18px;height:18px}
