:root {
    color: #18382d;
    background: #f2f5ed;
    font-family: system-ui, sans-serif;
    line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
main { max-width: 90rem; margin: auto; padding: clamp(1.25rem, 4vw, 4rem); }
a { color: #275e44; text-underline-offset: .2em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #287757; outline-offset: 3px; }
.brand { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; }
.brand img { display: block; max-width: 100%; width: auto; object-fit: contain; }
.company-logo { display: flex; align-items: center; gap: .45rem; background: #204336; border-radius: .35rem; padding: .45rem .7rem; }
.company-logo img:first-child { height: clamp(1rem, 2vw, 1.85rem); }
.company-logo img:last-child { height: clamp(.8rem, 1.5vw, 1.4rem); min-width: 0; }
.brand > img { height: clamp(1.15rem, 3vw, 2.1rem); }
.page-header { margin-bottom: 1.6rem; }
.page-header h1 { margin: .85rem 0 .25rem; font-size: clamp(1.85rem, 4vw, 3.35rem); line-height: 1.12; letter-spacing: -.035em; }
.page-header p, footer p { margin: .45rem 0; color: #34564a; }
.page-header .demo { color: #794b15; font-weight: 650; margin-top: .8rem; }
.coverage { display: grid; grid-template-columns: minmax(14rem, 18.5rem) minmax(0, 1fr); border: 1px solid #ccd9c8; border-radius: 1rem; background: #fff; overflow: hidden; }
aside { min-width: 0; padding: 1.35rem; }
aside > label, .background label, h2 { font-weight: 670; }
#place { color: inherit; width: 100%; margin-top: .35rem; padding: .55rem .7rem; border: 1px solid #879d91; border-radius: .4rem; }
ul { padding: 0; list-style: none; }
#places { margin: .35rem 0 0; border: 1px solid #d4ded1; border-radius: .4rem; overflow: hidden; }
#places button { display: block; color: inherit; background: #f6f8f3; border: 0; border-bottom: 1px solid #dce7d9; padding: .45rem .65rem; width: 100%; text-align: left; cursor: pointer; }
#places button:hover, #places button:focus-visible { background: #e8f1e4; }
.legend, .background, .area-check { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid #d9e3d5; }
.legend h2, .area-check h2 { margin: 0; font-size: 1.03rem; }
.file-label { display: block; margin-top: .65rem; font-size: .88rem; font-weight: 640; }
#area-file { width: 100%; font-size: .85rem; padding-top: .22rem; }
#area-file::file-selector-button, #clear-area { background: #eaf1e8; color: #204836; border: 1px solid #94aa9b; border-radius: .35rem; padding: .3rem .5rem; cursor: pointer; }
#clear-area { margin-top: .6rem; }
#check-result dl { display: grid; gap: .25rem; margin: .65rem 0; font-size: .88rem; }
#check-result dl div { display: flex; justify-content: space-between; gap: .5rem; }
#check-result dd { margin: 0; white-space: nowrap; font-weight: 670; font-variant-numeric: tabular-nums; }
.legend ul { margin: .5rem 0 .65rem; }
.legend li { display: flex; align-items: center; gap: .55rem; margin: .35rem 0; }
.swatch { display: block; flex: 0 0 1.05rem; height: 1.05rem; border: 1px solid; border-radius: .2rem; }
.swatch.full { border-color: #537d36; background: #d9e8c9; }
.swatch.overview { border-color: #577c64; background: #b6d0be; }
.swatch.partial { border: 2px dashed #986316; background: #f7e8c9; }
.swatch.missing { border-color: #9baaa2; background: #eef2ec; }
.message { color: #465d52; font-size: .88rem; margin: .35rem 0 0; }
.message:empty { margin: 0; }
.background input { accent-color: #275e44; margin: 0 .3rem 0 0; }
.map-panel { min-width: 0; position: relative; display: grid; grid-template-rows: 1fr auto; border-left: 1px solid #ccd9c8; }
#map {
    min-height: min(57vh, 39rem);
    background: #eaf0e6;
    background-image: linear-gradient(#dbe5d8 1px, transparent 1px), linear-gradient(90deg, #dbe5d8 1px, transparent 1px);
    background-size: 2.5rem 2.5rem;
}
#map:focus-visible { outline-offset: -4px; }
.location-mark { display: block; width: 1rem; height: 1rem; border-radius: 50%; background: #224c38; border: 2px solid #fff; box-shadow: 0 0 0 1px #224c38; pointer-events: none; }
#map-status { display: block; padding: .65rem 1rem; color: #28483e; border-top: 1px solid #ccd9c8; font-size: .94rem; }
#background-attribution { position: absolute; right: .3rem; top: .4rem; background: rgba(255, 255, 255, .96); font-size: .78rem; padding: .15rem .4rem; border-radius: .3rem; }
footer { font-size: .94rem; margin-top: 1rem; }
summary { cursor: pointer; font-weight: 630; }
@media (max-width: 44rem) {
    .coverage { grid-template-columns: 1fr; }
    aside { padding: 1rem; }
    .legend, .background, .area-check { margin-top: .75rem; padding-top: .65rem; }
    .legend ul { display: flex; flex-wrap: wrap; gap: .15rem .9rem; margin-bottom: .35rem; }
    .legend li { margin: 0; font-size: .88rem; }
    .map-panel { border-left: 0; border-top: 1px solid #ccd9c8; grid-template-rows: auto 1fr; }
    #map-status { grid-row: 1; border-top: 0; border-bottom: 1px solid #ccd9c8; }
    #background-attribution { top: auto; bottom: .4rem; }
    #map { min-height: 46vh; }
}
