.map-screen{height:100dvh;min-height:550px;grid-template-rows:52px minmax(0,1fr);position:relative}.map-screen .app-header{height:52px}.map-screen .bottom-bar{position:absolute;bottom:64px;left:16px;z-index:900;border:1px solid var(--line);border-radius:7px;padding:10px 14px;max-width:calc(100% - 385px);box-shadow:0 2px 10px #1232}.map-screen .preview-label{display:none}.map-workspace,.map-layout,.map-stage{position:relative;height:100%;min-height:0}.map-workspace{isolation:isolate}.map-layout{display:block}#store-map{position:absolute;inset:0 360px 0 0;width:auto;height:100%;background:#f6f7f7;z-index:1}.condition-bar{position:absolute;z-index:850;top:16px;left:16px;width:350px;border-radius:6px;padding:8px 10px;background:#fff;box-shadow:0 2px 10px #1232}.condition-bar label{font-size:13px;display:grid;gap:4px}.draw-toolbar{position:absolute;z-index:860;left:16px;top:108px;display:flex;gap:6px;align-items:start}.draw-toolbar .btn{font-size:14px;padding:8px 10px;white-space:nowrap}.map-more{position:relative}.map-more>div{position:absolute;top:44px;left:0;padding:12px;background:white;border:1px solid var(--line);width:240px;display:grid;gap:10px}.map-more summary{list-style:none}.map-more select{width:100%}.map-caption{position:absolute;z-index:850;left:16px;bottom:30px;display:flex;gap:12px;background:#fff;padding:3px 8px;border-radius:3px;font-size:12px;max-width:calc(100% - 385px)}.map-caption label{display:flex;gap:4px;align-items:center;white-space:nowrap}.map-caption input{width:14px;height:14px}.store-panel{position:absolute;right:16px;top:16px;bottom:32px;z-index:880;width:330px;background:white;border:1px solid var(--line);border-radius:7px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 2px 10px #1232}.panel-close{align-self:end;padding:8px 12px}.panel-tabs{display:flex;flex:none;border-bottom:1px solid var(--line);min-height:40px}.panel-tabs button{flex:1;background:none;border:0;padding:9px;font-size:14px}.panel-tabs .active{box-shadow:inset 0 -2px var(--red);color:var(--red)}#stores-panel{display:flex;flex-direction:column;flex:1;min-height:0}.list-summary{padding:10px 13px;border-bottom:1px solid var(--line)}.list-summary label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:13px}.list-summary select{max-width:200px}.list-summary>strong,.list-summary>small{display:block}.list-summary details{margin-top:8px;font-size:13px}.list-summary details label{margin-top:8px}.list-actions{margin-top:8px}.list-actions .btn{width:100%}.store-list{overflow-y:auto;flex:1;min-height:0;overscroll-behavior:contain}.store-row{border-bottom:1px solid var(--line);padding:12px}.store-row.focused-store{box-shadow:inset 4px 0 #0069b4;background:#eff7fc}.store-row details{font-size:13px;color:var(--muted);margin:7px 0}.store-row>small{display:block}.store-focus{display:grid;gap:3px;text-align:left;background:none;border:0;width:100%;padding:0}.store-focus small{font-size:11px}.store-focus strong{font-size:15px}.bulk-check{font-size:11px;color:var(--muted);display:flex;gap:6px;align-items:center;margin-bottom:6px}.quantity-buttons{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin:8px 0}.quantity-option{background:#fff;border:1px solid var(--line);border-radius:4px;padding:8px 1px;font-size:14px}.quantity-option[aria-pressed=true]{background:#185d45;color:#fff;border-color:#185d45;font-weight:700}.quantity-label{font-weight:700;font-size:15px;color:#174d39;border:2px solid #fff;background:#fff;max-width:300px;white-space:normal}.quantity-label strong{display:block}.empty-list{padding:20px;font-size:14px;color:var(--muted)}.ranges{padding:9px 12px;border-top:1px solid var(--line);font-size:13px;max-height:130px;overflow:auto;flex:none}.ranges>div>div{display:flex;justify-content:space-between;gap:8px}.range-preview{position:absolute;left:16px;top:162px;z-index:870;max-width:590px;background:white;border:1px solid #23778a;border-radius:6px;padding:12px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.range-preview strong,.range-preview small{display:block}.range-preview input{width:85px;margin:5px}.range-preview>div:last-child{display:flex;gap:6px}.cluster{background:#0069b4;border:3px solid white;border-radius:50%;color:white;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #16445f}.cluster.chosen{background:#f2b400;color:#172b3a}.number-marker{background:white;color:#a80002;border:2px solid #a80002;border-radius:4px;text-align:center;font-size:12px;line-height:22px;font-weight:700}.circle-center{background:white;border:2px solid #23778a;border-radius:50%;text-align:center;color:#23778a;line-height:17px}.drawing{cursor:crosshair}.leaflet-popup-content{font-family:"Noto Sans JP",sans-serif;font-size:14px;line-height:1.6}.leaflet-popup-content strong{font-size:17px}.leaflet-popup-content small{font-size:13px}.map-workspace>#errors:not(:empty){position:absolute;z-index:950;top:160px;left:16px;max-width:580px}.map-workspace>#errors:empty{display:none}#analysis-panel{overflow:auto;flex:1;min-height:0;padding:12px}.demographic-panel header small{display:block}.analysis-summary{font-size:13px;color:#845050}.demographic-range{display:grid;grid-template-columns:1fr 18px 1fr;gap:4px;margin:14px 0}.demographic-range>span{grid-column:1/-1}.demographic-range select{min-width:0;padding:5px;font-size:13px}.demographic-range i{text-align:center;font-style:normal}.demographic-body fieldset{border:0;padding:0;margin:16px 0}.demographic-body fieldset label{display:inline-flex;gap:6px;align-items:center;font-size:13px}.demographic-body p{font-size:13px}.analysis-legend{display:flex;gap:6px;align-items:center;font-size:12px}.analysis-legend i{height:10px;flex:1;background:linear-gradient(90deg,#fff1ec,#c73527)}.leaflet-gl-layer{pointer-events:none}.map-screen .leaflet-control-zoom{margin-right:370px}.map-screen:has(.store-panel[hidden]) .leaflet-control-zoom{margin-right:10px}
.list-summary label>span{display:flex;align-items:center;gap:6px}.target-quantity-control{border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:10px;font-weight:700}.target-quantity-control b{background:#a80002;color:#fff;border-radius:3px;padding:2px 5px;font-size:10px}.allocation-remaining{color:#a80002;font-size:18px;margin:7px 0 2px}.allocation-remaining.complete{color:#136c45}.allocation-remaining.over{color:#a80002}.store-focus .hover-guide{font-size:10px;color:#6b7580}.store-hover-popup .leaflet-popup-content{margin:10px 14px}.store-hover-popup p{margin:3px 0}

@media(max-width:950px),(max-height:550px){.map-screen{height:auto;min-height:100dvh}.map-workspace{height:650px;min-width:660px}.map-screen .bottom-bar{position:relative;bottom:auto;left:auto;max-width:none;flex-wrap:wrap}.draw-toolbar{max-width:300px;flex-wrap:wrap}.store-panel{width:310px}.map-caption{max-width:310px;font-size:12px}.range-preview{max-width:300px}.condition-bar{width:300px}.map-screen .app-header{height:auto;min-height:52px}}
.nearby-picker{position:absolute;top:200px;left:16px;z-index:875;background:#fff;border:1px solid #0069b4;border-radius:6px;padding:14px;width:440px;max-height:calc(100% - 350px);overflow:auto;max-width:calc(100% - 385px);box-shadow:0 2px 10px #1232;font-size:14px}.nearby-picker header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.nearby-picker label{display:flex;gap:8px;align-items:center;margin:10px 0}.nearby-picker label:has(.input-action),.nearby-picker label:has(select){display:grid}.nearby-picker .input-action input{min-width:0;flex:1}.nearby-picker input[type=number]{width:85px}.nearby-picker select{width:100%}.nearby-picker p{font-size:13px;line-height:1.65}.nearby-picker[hidden]{display:none}.draw-toolbar .danger{background:#fff2f2;border-color:#a80002;color:#a80002}

.map-condition-bar{width:530px;display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:10px}.map-condition-bar select{min-width:0}.main-draw-toolbar{max-width:calc(100% - 380px);flex-wrap:wrap}.store-quantity-label{display:inline-flex;align-items:center;gap:10px;padding:7px 10px;max-width:none;white-space:nowrap;border:2px solid #fff;border-radius:5px;background:#fff;color:#174d39;box-shadow:0 2px 10px #1233;font-size:14px;font-weight:700}.store-quantity-label strong{display:inline;max-width:360px;overflow:hidden;text-overflow:ellipsis}.store-quantity-label span{flex:none;border-left:1px solid #bad4c8;padding-left:10px;color:#0d5c3b;font-size:16px}.compact-store-hover .leaflet-popup-content{display:flex;align-items:center;gap:10px;margin:8px 12px;white-space:nowrap}.compact-store-hover .leaflet-popup-content strong{max-width:360px;overflow:hidden;text-overflow:ellipsis}.compact-store-hover .leaflet-popup-content span{flex:none;border-left:1px solid #bad4c8;padding-left:10px;color:#0d5c3b;font-size:16px}.compact-store-hover .leaflet-popup-content-wrapper{border-radius:6px}
@media(max-width:950px),(max-height:550px){.map-condition-bar{width:300px;grid-template-columns:1fr}.main-draw-toolbar{top:150px;max-width:300px}}
.google-store-pin{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:26px;height:26px;background:#d52d24;border:3px solid #fff;border-radius:50%;color:#fff;font:700 16px/1 "Noto Sans JP",sans-serif;box-shadow:0 0 0 1.5px #8e1d18;cursor:pointer;position:relative}
.google-store-pin.chosen{background:#d52d24;border-radius:50%;box-shadow:0 0 0 2px #821a14}.google-store-pin.unavailable{background:#75808a;box-shadow:0 0 0 1px #4b555e}.google-store-pin.focused{width:34px;height:34px;background:#d52d24;color:white;border-color:#a80002;box-shadow:0 0 0 4px #fff;font-size:24px;pointer-events:none}
.google-store-pin:focus-visible{outline:3px solid #121f2a;outline-offset:4px}.google-cluster{width:46px;height:46px;font-size:15px}.google-cluster small{position:absolute;right:-5px;bottom:-4px;border-radius:50%;border:2px solid white;background:#136c45;color:white;padding:2px;font-size:12px}
.google-store-popup{font:14px/1.55 "Noto Sans JP",sans-serif;max-width:420px;display:flex;align-items:center;gap:12px;color:#253744}.google-store-popup>strong{max-width:310px;overflow-wrap:anywhere}.google-store-popup>span{white-space:nowrap;font-weight:700;color:#136c45}.colocated-stores{display:grid;gap:8px;max-height:260px;overflow:auto}.colocated-stores button{text-align:left}
.google-analysis-overlay{position:absolute;pointer-events:none}.analysis-attribution{font-size:10px}.area-results{grid-column:1/-1;display:grid;gap:5px;max-height:220px;overflow:auto}.area-results[hidden]{display:none}.area-results button{text-align:left}.proposal-map-status{font-size:14px;color:#8e2525}#map-tile-notice{position:absolute;left:0;bottom:82px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;width:620px;max-width:calc(100vw - 400px);padding:10px 12px;background:white;border:1px solid #bfc8ce;border-radius:6px;font-size:14px}#map-tile-notice[hidden]{display:none}.map-caption{flex-wrap:wrap}
.selection-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}.region-selects{display:grid;grid-template-columns:1fr 1fr;gap:8px}.region-selects label{min-width:0}.picker-stores{max-height:140px;overflow:auto;border-block:1px solid #dce3e8;margin:10px 0}.picker-stores>div{padding:6px 0;border-bottom:1px solid #edf0f2}.picker-stores small{display:block;color:#607080;font-size:12px}.selection-picker small,.area-source{font-size:12px;line-height:1.6}.area-source{margin-top:12px;color:#607080}.bulk-tools{display:grid;grid-template-columns:1fr auto;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid #e3e8ec}.bulk-toolbar{grid-column:1/-1;display:flex;align-items:center;gap:10px}.bulk-toolbar small{margin-left:auto;font-size:11px}.bulk-tools label{margin:0}.bulk-tools select{max-width:105px}.bulk-tools .plain{font-size:12px}.bulk-tools .btn{padding:6px 10px}.selection-picker [hidden]{display:none}
.bulk-confirm{max-width:480px;border:1px solid #cbd5dd;border-radius:8px;padding:24px;color:#1d3242}.bulk-confirm h2{font-size:18px;margin:0 0 14px}.bulk-confirm p{line-height:1.8}.bulk-confirm>div{display:flex;justify-content:flex-end;gap:12px}.bulk-confirm::backdrop{background:#14273966}
