@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;500;600;700&display=swap');
:root{--paper:#ffffff;--ink:#171717;--muted:#626262;--line:#d2d2d2;--green:#202020;--accent:#ffffff}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px 'DM Sans','Noto Sans JP',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);padding:10px 14px;transition:background .15s}button:hover{background:#e5e5e5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #555555;outline-offset:2px}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover{background:#000000}header{height:94px;display:flex;justify-content:space-between;align-items:center;padding:0 34px;border-bottom:1px solid var(--line);background:#ffffff}.brand{display:flex;gap:13px;align-items:center;text-decoration:none;color:var(--ink);font-size:20px;font-weight:700;letter-spacing:-.5px}.brand small{display:block;font-size:11px;font-weight:400;letter-spacing:.4px;margin-top:6px;color:var(--muted)}.brandmark{background:var(--green);width:42px;height:43px;color:#fff;display:flex;align-items:center;justify-content:center;border-radius:5px;font-size:25px;position:relative}.brandmark span{font-size:15px;position:absolute;right:3px;top:1px;color:var(--accent)}.header-actions{display:flex;gap:10px;align-items:center}.private-label{font-size:11px;background:#eeeeee;border-radius:20px;padding:7px 12px;margin-right:10px}main{display:grid;grid-template-columns:370px 1fr;height:calc(100dvh - 144px);min-height:560px}aside{padding:28px 25px 14px;border-right:1px solid var(--line);display:flex;flex-direction:column;overflow:auto}.eyebrow{letter-spacing:1.8px;font-size:10px;font-weight:700;color:#626262}h1{font-size:31px;line-height:1.55;letter-spacing:-1px;font-weight:500;margin:14px 0 12px}.intro p{font-size:12px;line-height:1.9;color:var(--muted);margin:0 0 20px}.stats{display:flex;background:#e3e3e3;border:1px solid #cccccc;border-radius:10px;padding:14px 0;margin-bottom:20px}.stats div{width:33.33%;display:flex;flex-direction:column;align-items:center;border-right:1px solid #cccccc}.stats div:last-child{border:0}.stats b{font-size:25px;font-weight:500}.stats span{font-size:10px;color:#626262;margin-top:3px}.search{display:flex;gap:10px;align-items:center;padding:0 10px;border:1px solid var(--line);background:#fff;border-radius:7px}.search span{font-size:25px}.search input{border:0;min-width:0;outline:0;padding:12px 0;width:100%;background:transparent;font-size:12px}.filter-row{display:flex;gap:8px;margin-top:9px}.filter-row select{width:50%;padding:9px 5px;border:1px solid var(--line);border-radius:6px;font-size:11px;background:var(--paper);color:var(--ink)}.list-title{display:flex;align-items:center;justify-content:space-between;margin:18px 0 10px;font-size:12px;font-weight:600}.list-title small{margin-left:6px;color:var(--muted);font-weight:400}.text-button{border:0;background:none;padding:4px;font-size:11px;color:#303030;text-decoration:underline;text-underline-offset:3px}.record-list{flex:1;min-height:120px;overflow:auto}.empty{padding:25px 17px;text-align:center;border:1px dashed #bdbdbd;border-radius:9px;margin-top:7px;background:#e7e7e7}.empty-icon{width:42px;height:42px;background:#d7d7d7;display:grid;place-items:center;border-radius:50%;font-size:24px;margin:0 auto 12px}.empty h3{font-size:13px;margin:0 0 7px}.empty p{font-size:11px;line-height:1.9;color:var(--muted)}.empty button{font-size:12px;margin-top:8px}.record-card{display:block;text-align:left;width:100%;padding:14px;margin-bottom:9px;border-radius:9px;background:#ffffff}.record-card.selected{border-color:var(--green);background:#eeeeee}.record-card h3{margin:8px 0 4px;font-size:13px}.record-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.7}.card-foot{display:flex;justify-content:space-between;margin-top:10px;font-size:10px;color:#626262}.tag{display:inline-flex;align-items:center;gap:5px;font-size:10px;padding:3px 7px;border-radius:4px;background:#eeeeee;color:#444444}.tag.observed{background:#eeeeee;color:#444444}.tag.verified{background:#fce8e8;color:#a71924}.tag.occupied{background:#e7e7e7;color:#555555}.demo-tag{font-size:9px;color:#626262;margin-left:6px}.data-tools{display:flex;gap:5px;margin-top:15px}.data-tools button{flex:1;font-size:10px;padding:9px 4px}.storage{font-size:10px;color:var(--muted);line-height:1.8;margin:9px 0 0}.map-panel{position:relative;overflow:hidden;background:#dddddd}#map,#tiles,#markers{position:absolute;inset:0}#map{touch-action:none;cursor:grab;overflow:hidden}#map.picking{cursor:crosshair}#tiles img{position:absolute;width:256px;height:256px;user-select:none;pointer-events:none}#markers{pointer-events:none}.pin{position:absolute;pointer-events:auto;width:27px;height:27px;border-radius:50% 50% 50% 0;transform:translate(-50%,-100%) rotate(-45deg);background:#cf3340;border:2px solid #fff;box-shadow:0 2px 5px #0003;padding:0}.pin:after{content:'';position:absolute;width:7px;height:7px;border-radius:50%;background:white;top:8px;left:8px}.pin.observed{background:#cf3340}.pin.verified{background:#cf3340}.pin.occupied{background:#777777}.pin.selected{outline:4px solid #17171755}.map-toolbar{position:absolute;top:22px;left:24px;right:24px;display:flex;justify-content:space-between;gap:10px;pointer-events:none}.map-toolbar>*{pointer-events:auto}.map-badge{background:#ffffff;box-shadow:0 3px 10px #0001;border:1px solid #d2d2d2;border-radius:6px;padding:12px 16px;font-size:10px;font-weight:700;letter-spacing:1.3px;display:flex;align-items:center;gap:8px}.live-dot{width:6px;height:6px;border-radius:50%;background:#171717}.map-button{box-shadow:0 3px 10px #0001;background:#ffffff;font-size:12px}.map-controls{position:absolute;right:24px;top:85px;display:flex;flex-direction:column;box-shadow:0 2px 8px #0001;border-radius:7px;overflow:hidden}.map-controls button{border-radius:0;width:36px;height:38px;padding:5px;font-size:21px}.map-hint{position:absolute;top:85px;left:24px;max-width:calc(100% - 100px);font-size:11px;background:#ffffffe8;border:1px solid #d2d2d2;padding:10px 14px;border-radius:5px;pointer-events:none}.legend{position:absolute;left:24px;bottom:29px;background:#ffffff;padding:12px 17px;border-radius:7px;display:flex;gap:15px;border:1px solid var(--line);font-size:10px;box-shadow:0 2px 8px #0001}.legend span{display:flex;align-items:center;gap:5px}.legend i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#cf3340}.legend i.observed{background:#cf3340}.legend i.verified{background:#cf3340}.legend i.occupied{background:#777777}.attribution{position:absolute;bottom:0;right:0;font-size:9px;padding:3px 5px;background:#ffffffdd}.attribution a{color:#303030}.detail{position:absolute;top:140px;left:24px;width:330px;max-height:calc(100% - 220px);overflow:auto;background:#ffffff;border:1px solid var(--line);border-radius:10px;padding:20px;box-shadow:0 8px 30px #17171720}.detail h2{font-size:20px;font-weight:500;line-height:1.5;margin:14px 0 6px}.detail .address{color:var(--muted);font-size:12px;line-height:1.7}.detail dl{font-size:12px}.detail dt{font-size:10px;color:var(--muted);margin-top:14px;margin-bottom:4px}.detail dd{margin:0;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.detail a{color:var(--green)}.detail-close{float:right;border:0;padding:0 5px;background:transparent;font-size:20px}.detail-actions{display:flex;gap:7px;margin-top:20px}.detail-actions button{flex:1;font-size:11px}.danger{color:#303030}footer{height:50px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;font-size:10px;color:#626262}footer>span:first-child{font-size:9px;letter-spacing:1.5px}dialog{border:1px solid var(--line);border-radius:14px;width:560px;max-width:calc(100% - 28px);max-height:90dvh;overflow:auto;padding:27px;background:#ffffff;color:var(--ink)}dialog::backdrop{background:#00000060;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{font-size:23px;font-weight:500;margin:8px 0}.close{padding:0 5px;border:0;background:transparent;font-size:26px}.form-caption{font-size:11px;color:var(--muted);line-height:1.8;margin:4px 0 12px}form label{display:block;font-size:11px;margin:12px 0 0}form label input,form label select,form label textarea{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid var(--line);border-radius:5px;background:white;color:var(--ink)}textarea{resize:vertical}.form-row{display:flex;gap:12px}.form-row label{width:50%}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.form-error{color:#303030;font-size:12px}.toast{position:fixed;bottom:65px;left:50%;transform:translateX(-50%);background:#171717;color:#fff;padding:13px 22px;border-radius:8px;z-index:100;font-size:12px;max-width:90%;box-shadow:0 4px 15px #0002}#info p{font-size:13px;line-height:1.9}#info h3{font-size:15px;margin-top:20px}#info hr{border:0;border-top:1px solid var(--line);margin:20px 0}#info a{color:var(--green)}[hidden]{display:none!important}@media(min-width:1500px){main{grid-template-columns:420px 1fr}aside{padding:34px}h1{font-size:36px}}@media(max-width:800px){header{height:78px;padding:0 16px}.brand{font-size:16px}.brandmark{width:34px;height:36px}.private-label{display:none}.header-actions button{padding:9px;font-size:11px}main{height:auto;min-height:0;grid-template-columns:1fr}.map-panel{height:55dvh;min-height:340px;grid-row:1}aside{padding:22px;max-height:none}.intro h1{font-size:26px}.intro br{display:none}.intro p{margin-bottom:12px}.stats{margin-bottom:13px}.record-list{max-height:320px}.detail{left:12px;top:113px;width:calc(100% - 68px);max-height:calc(100% - 170px);padding:15px}.map-toolbar{left:12px;right:12px;top:12px}.map-badge{padding:11px;font-size:9px}.map-hint{left:12px;top:62px;font-size:10px}.map-controls{right:12px;top:62px}.legend{left:12px;bottom:23px;padding:10px;gap:10px}footer{height:auto;min-height:50px;padding:15px;gap:10px;flex-wrap:wrap}footer>span:first-child{display:none}}

/* English copy: keep navigation and map overlays readable. */
.map-badge{letter-spacing:.7px}.map-hint{max-width:calc(100% - 110px)}.legend{flex-wrap:wrap}.data-tools button{font-size:11px}.header-actions{flex-shrink:0}.detail dd{overflow-wrap:anywhere}@media(max-width:800px){.brand small{max-width:170px;font-size:9px}.map-badge{max-width:55%;line-height:1.5}.map-toolbar{align-items:start}.map-hint{max-width:calc(100% - 75px)}.header-actions{gap:5px}.header-actions button{padding:8px 6px;font-size:10px}}

/* Monochrome research surface; red identifies vacancy candidates. */
#tiles{filter:grayscale(1)}
.pin.unverified{background:#fff;border:2px dashed #cf3340}
.pin.unverified:after{background:#cf3340}
.pin.observed{background:#cf3340;border:2px dashed #fff}
.pin.verified{background:#cf3340;border:2px solid #fff}
.pin:hover{background:#a71924}
.pin.unverified:hover{background:#fce8e8}
.pin.occupied:hover{background:#555}
.legend i.unverified{background:#fff;border:1px dashed #cf3340}
.legend i.observed{background:#cf3340;border:1px dashed #fff}
.legend i.verified{background:#cf3340}
.tag.verified{border:1px solid #edbec2}
textarea:focus-visible{outline:3px solid #555;outline-offset:2px}
/* User-editable presentation settings. */
:root{--surface:#fff;--vacancy:#cf3340;--button-text:#fff;--pin-text:#fff}
header,.record-card,.map-badge,.map-button,.legend,.detail,dialog,.search{background:var(--surface)}
.primary,.brandmark,.toast{background:var(--ink);color:var(--button-text)}
.primary:hover{background:var(--ink);filter:brightness(.85)}
.pin,.pin.observed,.pin.verified{background:var(--vacancy)}
.pin.unverified{background:var(--surface);border-color:var(--vacancy)}
.pin.unverified:after{background:var(--vacancy)}
.pin.observed:after,.pin.verified:after{background:var(--pin-text)}
.pin.occupied{background:#777}
.pin:hover{background:var(--vacancy);filter:brightness(.85)}
.legend i.unverified{background:var(--surface);border-color:var(--vacancy)}
.legend i.observed,.legend i.verified{background:var(--vacancy)}
.tag.verified{color:var(--ink);background:var(--surface);border-color:var(--vacancy)}
#site-heading,#site-description{white-space:pre-line}
.settings-colours{display:grid;grid-template-columns:repeat(2,1fr);gap:4px 16px}
.settings-colours input{height:42px;padding:4px}
.settings-toggles{display:grid;grid-template-columns:repeat(2,1fr);gap:5px 15px}
.settings-toggles label{display:flex;align-items:center;gap:8px;line-height:1.5}
.settings-toggles input{width:auto;margin:0;accent-color:var(--ink)}
body[data-show-stats="false"] .stats,body[data-show-filters="false"] .filters,body[data-show-legend="false"] .legend,body[data-show-hint="false"] .map-hint,body[data-show-exports="false"] .data-tools,body[data-show-footer-visible="false"] footer,body[data-show-type="false"] .record-type,body[data-show-date="false"] .record-date,body[data-show-notes="false"] .record-notes,body[data-show-coordinates="false"] .record-coordinates{display:none}
body[data-show-footer-visible="false"] main{height:calc(100dvh - 94px)}
@media(max-width:800px){body[data-show-footer-visible="false"] main{height:auto}.header-actions{flex-wrap:wrap;justify-content:flex-end;max-width:185px}.settings-toggles{grid-template-columns:1fr}}

.about-link{font-size:11px;color:var(--ink);text-decoration:none;margin-right:8px}

/* Readable small text and browser-independent English date fields. */
body{--muted:var(--page-muted,#303030)}
header,.record-card,.map-badge,.map-button,.legend,.detail,dialog,.search,.case-preview,.content-split form,.landing-end{color:var(--surface-ink,#171717);--muted:var(--surface-ink,#171717)}
.intro p,.storage,.entry-note,.research-note,.landing-eyebrow,.eyebrow,footer,.brand small,.form-caption,.list-title small,.record-card p,.card-foot{color:var(--muted)}
.stats{background:#e3e3e3;color:#171717}.stats span{color:#303030}
form label input,form label select,form label textarea{background:#fff;color:#171717}
input::placeholder,textarea::placeholder{color:#555;opacity:1}
.map-hint{background:var(--surface);color:var(--surface-ink)}
input[placeholder="YYYY-MM-DD"]{min-width:0;font-variant-numeric:tabular-nums}

/* White page background; muted grey is reserved for the map and diagrams. */
body,aside,.landing-main{background:var(--paper,#ffffff)}

/* Option B: narrow, architectural typography; body stays at regular weight. */
body{font-family:'Roboto Condensed','Arial Narrow','Helvetica Neue',Arial,sans-serif;font-weight:400;font-size:15px}
h1,h2,.brand{font-family:'Roboto Condensed','Arial Narrow','Helvetica Neue',Arial,sans-serif;font-weight:300}
.brand{font-size:23px;letter-spacing:.1px}.brandmark{font-weight:400}
button,.landing-button{font-weight:400}
.record-card h3,.dialog-heading h2,.detail h2{font-weight:400}

/* Open Frame identity: crisp at every header size. */
.brandmark.brand-logo{display:block;flex:none;background:transparent;border-radius:0;width:40px;height:40px;object-fit:contain}
@media(max-width:800px){.brandmark.brand-logo{width:34px;height:34px}}

.stats div{width:50%}#markers .pin.public-building,#markers .pin.public-building:hover{width:18px;height:18px;border-radius:50%;transform:translate(-50%,-50%);background:#cf3340;border:2px solid #fff}#markers .pin.private-building,#markers .pin.private-building:hover{width:12px;height:12px;border-radius:50%;transform:translate(-50%,-50%);background:#fff;border:2px solid #171717}#markers .pin.unknown-building,#markers .pin.unknown-building:hover{width:12px;height:12px;border-radius:50%;transform:translate(-50%,-50%);background:#888;border:2px solid #fff}#markers .pin.public-building:after,#markers .pin.private-building:after,#markers .pin.unknown-building:after{display:none}.legend i.public-building{width:12px;height:12px;background:#cf3340;border:1px solid #fff}.legend i.private-building{width:9px;height:9px;background:#fff;border:1px solid #171717}#geocode-options button{display:block;width:100%;text-align:left;margin:5px 0} .consent-line input[type=checkbox]{width:auto;display:inline;margin-right:8px}
