@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
:root { --navy:#10232e; --ink:#17242a; --muted:#53636a; --surface:#f4f6f5; --white:#fff; --line:#d3dcda; --yellow:#f2c400; --focus:#0065a8; }
* { box-sizing:border-box; } html { scroll-behavior:smooth; background:var(--surface); } body { min-width:320px; margin:0; color:var(--ink); background:var(--surface); font-family:"Noto Sans SC",system-ui,sans-serif; -webkit-font-smoothing:antialiased; } button,input { font:inherit; } button { -webkit-tap-highlight-color:transparent; } h1,h2,h3,p { text-wrap:pretty; }
.topbar { position:sticky; z-index:3; top:0; display:flex; align-items:center; justify-content:space-between; min-height:48px; padding:env(safe-area-inset-top) 18px 0; color:var(--white); background:var(--navy); }.brand { display:flex; align-items:center; gap:8px; min-height:48px; color:inherit; font-size:16px; font-weight:700; text-decoration:none; }.brand-seal { display:grid; width:22px; height:22px; place-items:center; color:var(--navy); background:var(--yellow); font-size:12px; }.repo-link { display:grid; min-width:44px; min-height:44px; place-items:center; color:#fff; font-size:13px; font-weight:600; text-decoration:none; }.repo-link:active { color:var(--yellow); }.repo-link:focus-visible { outline:3px solid var(--yellow); outline-offset:-3px; }
main { width:100%; }.search-deck { padding:22px 18px 17px; }.search-copy { margin:0; } h1 { margin:0; color:var(--navy); font-size:29px; line-height:1.15; letter-spacing:-.025em; }.search-copy p { margin:6px 0 0; color:var(--muted); font-size:15px; line-height:1.5; }.address-form { position:sticky; z-index:2; top:calc(48px + env(safe-area-inset-top)); padding:10px 18px; background:var(--navy); }.address-form label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }.input-row { display:grid; grid-template-columns:minmax(0,1fr) 56px; min-height:56px; background:var(--white); }.input-row input { min-width:0; height:56px; padding:0 14px; border:0; outline:0; color:var(--ink); background:transparent; font-size:17px; }.input-row input::placeholder { color:#53636a; opacity:1; }.input-row input:focus { box-shadow:inset 0 -3px var(--focus); }.input-row button { display:grid; min-height:56px; place-items:center; padding:0; border:0; color:var(--navy); background:var(--yellow); cursor:pointer; }.input-row button svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-width:2.2; }.input-row button:active { background:#ffd42a; }.input-row button:focus-visible,.category-nav button:focus-visible { outline:3px solid var(--focus); outline-offset:-3px; }.input-row button:disabled { cursor:wait; opacity:.68; }.input-row button:disabled svg { animation:spin .8s linear infinite; }.search-extras { padding:10px 18px 24px; border-bottom:3px solid var(--navy); }.location-action { display:flex; width:100%; min-height:44px; align-items:center; justify-content:center; gap:7px; border:1px solid var(--navy); color:var(--navy); background:var(--white); cursor:pointer; font-size:14px; font-weight:600; }.location-action svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; }.location-action:active { background:#e8efec; }.location-action:disabled { cursor:wait; opacity:.58; }.location-action:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }.search-history { margin-top:14px; }.search-history > p { margin:0 0 7px; color:var(--muted); font-size:13px; }.history-items { display:flex; flex-wrap:wrap; gap:7px; }.history-items button { min-height:36px; max-width:100%; padding:0 11px; overflow:hidden; border:1px solid var(--line); color:var(--ink); background:transparent; cursor:pointer; font-size:13px; text-align:left; text-overflow:ellipsis; white-space:nowrap; }.history-items button:active { background:#e4ebe8; }.history-items button:focus-visible { outline:3px solid var(--focus); outline-offset:1px; }
.results { padding:30px 0 42px; }.result-bar { padding:0 18px 17px; border-bottom:1px solid var(--line); }.result-bar h2 { margin:0; color:var(--navy); font-size:24px; line-height:1.25; letter-spacing:-.02em; }.result-bar > p { margin:8px 0 0; color:var(--muted); font-size:14px; line-height:1.45; overflow-wrap:anywhere; }.results-layout { padding-top:0; }.category-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 8px; padding:6px 18px; background:var(--surface); border-bottom:1px solid var(--line); }.category-nav[hidden] { display:none; }.category-nav button { display:flex; align-items:center; min-width:0; min-height:31px; padding:0; border:0; color:#32464c; background:transparent; cursor:pointer; font-size:11px; white-space:nowrap; }.category-nav button:active { color:var(--navy); }.category-nav i { display:none; }.category-nav b { display:none; }
.score-summary { display:grid; gap:12px; margin:0 18px 16px; padding:14px 0 16px; border-bottom:1px solid var(--line); }.score-total { display:flex; align-items:baseline; gap:8px; color:var(--navy); }.score-total span { font-size:14px; font-weight:600; }.score-total strong { font-size:32px; line-height:1; letter-spacing:-.04em; }.score-total small { margin-left:2px; color:var(--muted); font-size:13px; font-weight:500; letter-spacing:0; }.share-trigger { min-height:32px; margin-left:auto; padding:0 11px; border:1px solid var(--navy); color:var(--navy); background:transparent; cursor:pointer; font-size:13px; font-weight:600; }.share-trigger:active { color:var(--white); background:var(--navy); }.share-trigger:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }.score-summary > p { margin:0; color:var(--muted); font-size:12px; line-height:1.45; }.score-breakdown { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 8px; }.score-breakdown div { min-width:0; }.score-breakdown span,.score-breakdown strong { display:block; }.score-breakdown span { color:var(--muted); font-size:12px; white-space:nowrap; }.score-breakdown strong { margin-top:2px; color:var(--ink); font-size:15px; line-height:1.2; }.place-list { min-width:0; }.category-group { --route:var(--navy); scroll-margin-top:132px; margin:0 18px 34px; border-top:3px solid var(--route); }.category-heading { display:flex; align-items:center; min-height:51px; border-bottom:1px solid var(--line); }.category-heading p { margin:0; color:var(--navy); font-size:20px; font-weight:700; letter-spacing:-.018em; }.category-heading p::before { content:""; display:inline-block; width:9px; height:9px; margin-right:10px; background:var(--route); border-radius:50%; vertical-align:2px; }.place { display:grid; grid-template-columns:minmax(0,1fr) 76px; gap:12px; align-items:center; min-height:88px; padding:13px 0; border-bottom:1px solid var(--line); }.place-main { min-width:0; }.place h3 { margin:0; color:var(--ink); font-size:17px; font-weight:600; line-height:1.38; letter-spacing:-.01em; overflow-wrap:anywhere; }.metro-lines,.address,.merged-names { margin:5px 0 0; line-height:1.45; overflow-wrap:anywhere; }.address { color:var(--muted); font-size:13px; }.metro-lines,.merged-names { color:var(--route); font-size:12px; }.distance { text-align:right; }.distance strong { display:block; color:var(--navy); font-size:16px; font-weight:600; line-height:1.2; white-space:nowrap; }.distance span { display:block; margin-top:4px; color:var(--muted); font-size:11px; white-space:nowrap; }
.empty-state { min-height:190px; margin:0 18px; padding:34px 0; border-top:3px solid var(--navy); border-bottom:1px solid var(--line); }.empty-state h3 { margin:0; color:var(--navy); font-size:22px; line-height:1.35; }.empty-state p { margin:8px 0 0; color:var(--muted); font-size:15px; line-height:1.6; }.empty-state.error { border-top-color:#c53830; }.empty-state.error h3 { color:#c53830; }.loading-state { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:0 18px; padding-top:3px; border-top:3px solid var(--navy); }.loading-state span { height:78px; background:#e1e7e5; animation:scan 1.1s linear infinite; }.loading-state p { grid-column:1 / -1; margin:8px 0 0; color:var(--muted); font-size:14px; } .share-dialog { width:min(100% - 32px,360px); margin:auto; padding:0; border:0; background:transparent; }.share-dialog::backdrop { background:rgb(16 35 46 / .62); }.share-card { position:relative; padding:28px 22px 22px; color:var(--ink); background:var(--white); }.dialog-close { position:absolute; top:8px; right:8px; display:grid; width:44px; height:44px; place-items:center; padding:0; border:0; color:var(--muted); background:transparent; cursor:pointer; font-size:26px; line-height:1; }.dialog-close:focus-visible,.share-primary:focus-visible,.share-secondary:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }.share-kicker { margin:0; color:var(--muted); font-size:12px; }.share-card h2 { margin:8px 0 0; color:var(--navy); font-size:25px; line-height:1.2; }.share-address { margin:8px 0 0; color:var(--muted); font-size:14px; line-height:1.45; }.share-score { margin:16px 0 12px; color:var(--muted); font-size:14px; }.share-score strong { color:var(--navy); font-size:38px; letter-spacing:-.04em; }.share-dimensions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px 4px; margin-bottom:16px; padding:10px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--muted); font-size:11px; text-align:center; }.share-qr { display:block; width:180px; height:180px; margin:0 auto; background:#f4f6f5; image-rendering:auto; }.share-link { display:block; margin-top:14px; overflow:hidden; color:var(--navy); font-size:12px; font-weight:600; text-align:center; text-overflow:ellipsis; white-space:nowrap; }.share-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:18px; }.share-primary,.share-secondary { min-height:44px; padding:0 10px; cursor:pointer; font-size:13px; font-weight:600; }.share-primary { border:0; color:var(--navy); background:var(--yellow); }.share-secondary { border:1px solid var(--navy); color:var(--navy); background:var(--white); }.share-primary:active { background:#ffd42a; }.share-secondary:active { background:#e8efec; }.share-feedback { min-height:18px; margin:10px 0 0; color:var(--muted); font-size:12px; text-align:center; } footer { width:100%; padding:17px 18px max(17px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); color:var(--muted); font-size:12px; line-height:1.45; } @keyframes scan { 50% { opacity:.55; } } @keyframes spin { to { transform:rotate(360deg); } } @media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; }.loading-state span,.input-row button:disabled svg { animation:none; } }
