:root{font-family:system-ui,"Microsoft JhengHei",sans-serif;color:#183342;background:#eef3f5}*{box-sizing:border-box}body{margin:0}header{background:#102e40;color:white;padding:22px 5%;display:flex;justify-content:space-between}header a{color:white;text-decoration:none}header b{color:#65d9c7;margin-left:14px}nav{display:flex;gap:24px}main{max-width:1380px;margin:auto;padding:28px 4%}.heading{display:flex;align-items:center;justify-content:space-between}small{letter-spacing:3px;color:#007f79}h1{font-size:34px;margin:10px 0}p{line-height:1.7;color:#506976}section,aside{background:white;border-radius:14px;padding:24px}.layout{display:grid;grid-template-columns:320px 1fr;gap:20px}#map{height:560px;background:#e2eaed;border-radius:10px}.mapPanel{padding:12px}label{display:block;font-size:15px;margin:12px 0}input,textarea,button{font:inherit;border-radius:7px;padding:12px;border:1px solid #b9cbd1}input,textarea{width:100%;margin-top:6px}textarea{min-height:100px}button{background:#007c76;border:0;color:white;cursor:pointer;margin:4px 4px 4px 0}.secondary{background:#e6edef;color:#183342}.card{border-bottom:1px solid #dae3e7;padding:16px 0}.card h3{margin:0 0 8px}.card a,a{color:#007b77}.card p{margin:6px 0}#list{max-height:420px;overflow:auto}.fields{display:flex;gap:20px;align-items:end}.fields label{flex:1}#editor{margin-top:24px}.check input{width:auto}iframe{width:100%;aspect-ratio:16/9;border:0;margin-top:16px}#status:not(:empty){padding:14px;background:#fff2d4;border-radius:8px}footer{padding:30px 5%;color:#536c79;font-size:14px}[hidden]{display:none!important}details{margin:20px 0}#login{max-width:480px;margin:30px auto}@media(max-width:760px){.layout{grid-template-columns:1fr}#map{height:390px}.fields{display:block}nav{gap:12px}header{font-size:14px}h1{font-size:28px}#list{max-height:260px}}

header{background:#103c65;align-items:center;gap:20px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:22px}.brand img{object-fit:contain;filter:brightness(0) invert(1)}header b{font-size:14px;letter-spacing:2px;color:#82dce9}button{background:#175891}.secondary{background:#e6edf4;color:#16314b}small{color:#175891}.card a,a{color:#175891}header a{color:white}nav{flex-wrap:wrap;font-size:14px}footer a{color:#175891}@media(max-width:760px){header nav{width:100%;gap:16px}}

/* Preserve original company logo colors */
header .brand img{filter:none;background:#fff;border-radius:5px;padding:3px;object-fit:contain}

.point-preview{width:320px;max-width:calc(100vw - 100px);padding:2px 0 8px;color:#183342;font-family:system-ui,"Microsoft JhengHei",sans-serif}.point-preview h3{font-size:18px;line-height:1.5;margin:0 0 4px;overflow-wrap:anywhere}.point-preview-city{font-size:14px;margin:0 0 10px}.point-preview-media iframe{display:block;width:100%;height:auto;aspect-ratio:16/9;margin:0 0 10px;border-radius:6px}.point-preview-media>a{font-size:14px;line-height:1.6;display:block}.point-preview-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}.point-preview-actions>a{font-size:15px;font-weight:600}.point-preview-actions button{font-size:14px;padding:8px 12px}

#list>.area-branch{margin:16px 0}.area-branch summary{padding:12px 8px;font-size:16px;font-weight:700;color:#174b72;cursor:pointer;border-radius:6px}.area-branch summary:hover,.area-branch summary:focus-visible{background:#e5f1fb}.area-branch .area-branch{margin:0 0 10px 10px;border-left:2px solid #d3e3f0;padding-left:10px}.area-branch .area-branch summary{font-size:15px}.area-branch .card{padding:15px 10px;border-radius:8px;border-bottom:1px solid #d7e4ee;transition:background-color .15s,color .15s}.area-branch .card:hover,.area-branch .card:focus-within{background:#dceeff;color:#103f68;box-shadow:inset 3px 0 #2079ba}.area-branch .card:focus-visible{outline:2px solid #2079ba;outline-offset:1px}.area-branch .card h3{font-size:16px;line-height:1.6}.area-branch .card a{display:inline-block;margin:6px}#list{max-height:560px}@media(prefers-reduced-motion:reduce){.area-branch .card{transition:none}}

select{font:inherit;width:100%;margin-top:6px;padding:12px;border:1px solid #b9cbd1;border-radius:7px;background:white;color:#183342;min-height:46px}.fields label{min-width:0}.area-branch summary:focus-visible{outline:2px solid #175891}

.video-source{font-size:14px;line-height:1.7;margin:10px 0;color:#506976;overflow-wrap:anywhere}.video-source a{color:#175891;text-decoration:underline}

.hls-video{display:block;width:100%;aspect-ratio:16/9;background:#071927;border-radius:6px}.stream-status{font-size:14px;line-height:1.6}.stream-status:empty{display:none}

/* Mobile map first; the point selector overlays rather than pushes the map. */
#pointsToggle{display:none}.layout>*{min-width:0}
@media(max-width:760px){
 header{padding:10px 16px;gap:8px}.brand{font-size:18px;gap:8px}.brand img{width:36px;height:36px}header nav{gap:4px 16px;font-size:13px}header nav a{padding:6px 0}
 main{padding:14px 12px}.heading{gap:10px}.heading small{font-size:10px;letter-spacing:2px}.heading h1{font-size:24px;margin:5px 0}.heading p{font-size:14px;margin:5px 0 10px}#count{font-size:13px;white-space:nowrap}#status:empty{display:none}
 #pointsToggle{display:block;width:100%;min-height:44px;margin:0 0 10px;text-align:left}
 .layout{position:relative;display:block}.mapPanel{padding:6px}#map{height:calc(100vh - 270px);height:calc(100svh - 270px);min-height:320px;max-height:680px}#mapHint{font-size:13px;margin:8px 6px;line-height:1.5}
 #pointSidebar{display:none;position:absolute;inset:0 0 auto;z-index:10;padding:12px 16px;max-height:calc(100vh - 260px);max-height:calc(100svh - 260px);min-height:200px;overflow:auto;overscroll-behavior:contain;box-shadow:0 10px 24px #103c6533;border:1px solid #b9cbd1}
 .points-open #pointSidebar{display:block}#pointSidebar>label{margin:0 0 8px}#list{max-height:none;overflow:visible}#list>.area-branch{margin:4px 0}
 input,select,textarea{font-size:16px}.card button,.card a{min-height:44px}.card a{padding:10px 4px}#editor{padding:16px}footer{padding:20px 16px}
 .point-preview{width:280px;max-width:calc(100vw - 100px)}
}

/* Keep mobile previews within the map; long source text scrolls inside the popup. */
@media(max-width:760px){
 .point-preview{width:240px;max-width:100%;padding:0 0 4px;overflow-wrap:anywhere}
 .point-preview h3{font-size:15px;line-height:1.4;margin:0 0 3px}
 .point-preview-city{font-size:12px;line-height:1.4;margin:0 0 6px}
 .point-preview-media iframe,.point-preview-media .hls-video{display:block;width:100%;height:auto;aspect-ratio:16/9;margin:0 0 6px}
 .point-preview .video-source,.point-preview .stream-status{font-size:12px;line-height:1.4;margin:6px 0}
 .point-preview-media>a{font-size:12px;line-height:1.5;padding:6px 0}
 .point-preview-actions{gap:6px;margin-top:4px}
 .point-preview-actions>a{font-size:13px;padding:10px 0}
 .point-preview-actions button{min-height:44px;margin:0}
}

#editorStatus:not(:empty){padding:12px;background:#fff2d4;border-radius:8px;overflow-wrap:anywhere}#coordinateStatus{font-size:14px}button:disabled{opacity:.65;cursor:wait}
