.emt-cctv{--cink:#16354a;--caccent:#13758b;--cline:#d7e4eb;--csoft:#edf6f8;color:var(--cink);max-width:1320px;margin:auto;overflow-wrap:anywhere}
.emt-cctv *, .emt-cctv *::before,.emt-cctv *::after{box-sizing:border-box}
.emt-cctv__eyebrow{font-size:.88rem;font-weight:700;color:#146c80}
.emt-cctv h1{font-size:clamp(1.55rem,2.9vw,2.35rem);line-height:1.27;margin:.6rem 0 1rem}
.emt-cctv h2{font-size:1.4rem;line-height:1.3}.emt-cctv h3{font-size:1.1rem;margin:18px 0 8px}
.emt-cctv p{line-height:1.6}
.emt-cctv__intro{margin-bottom:20px}.emt-cctv__notice{padding:12px 15px;background:#fff7e9;border-left:4px solid #bf851c;border-radius:7px}
.emt-cctv__layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);align-items:start;gap:20px}
.emt-cctv__form,.emt-cctv__visual,.emt-cctv__explain{border:1px solid var(--cline);padding:clamp(14px,2vw,24px);border-radius:15px;background:#fff;min-width:0;box-shadow:0 5px 20px #16384b0a}
.emt-cctv__form fieldset{border:0;padding:0;margin:0 0 23px;min-width:0}
.emt-cctv__form legend{font-size:1.14rem;font-weight:700;width:100%;padding:0;margin:0 0 12px}
.emt-cctv__fields,.emt-cctv__item-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.emt-cctv label{min-width:0;display:flex;flex-direction:column;gap:6px;font-size:.91rem;font-weight:600;line-height:1.45}
.emt-cctv input,.emt-cctv textarea{width:100%;min-width:0;max-width:100%;min-height:44px;border:1px solid #bacbd5;border-radius:9px;background:#fff;padding:10px 11px;font:inherit;color:#172e40}
.emt-cctv input:focus-visible,.emt-cctv textarea:focus-visible,.emt-cctv button:focus-visible,.emt-cctv a:focus-visible{outline:3px solid #4b9fb4;outline-offset:2px}
.emt-cctv__items{display:grid;gap:12px;margin-bottom:12px}
.emt-cctv__item{min-width:0;padding:13px;border:1px solid #ccdee7;border-radius:11px;background:#f8fbfc}
.emt-cctv__item-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.emt-cctv__item-fields label:first-child{grid-column:1/-1}
.emt-cctv button{min-height:44px;padding:10px 14px;border-radius:9px;border:1px solid var(--caccent);background:var(--caccent);font-size:.92rem;font-weight:700;line-height:1.35;color:white;cursor:pointer}
.emt-cctv button.emt-cctv__secondary{background:#fff;color:var(--caccent)}
.emt-cctv button.emt-cctv__remove{min-height:38px;background:#fff;color:#a63335;border-color:#d3a3a3;padding:7px 10px;font-size:.86rem}
.emt-cctv button:disabled{opacity:.48;cursor:not-allowed}
.emt-cctv__actions{display:flex;flex-wrap:wrap;gap:8px}
.emt-cctv__visual{position:relative}.emt-cctv__canvas{background:#f3f8fa;overflow:hidden;border:1px solid #bfd4df;border-radius:12px;margin:12px 0}
.emt-cctv__canvas svg{display:block;width:100%;height:auto;aspect-ratio:1000/660;min-width:0;touch-action:pan-y}
.emt-cctv__canvas .emt-cctv__drag{cursor:grab;touch-action:none}
.emt-cctv__canvas .emt-cctv__drag:focus-visible{outline:3px solid #277d9c}
.emt-cctv__legend{display:flex;gap:14px;flex-wrap:wrap;font-size:.83rem;color:#3c5867}
.emt-cctv__legend>span{display:flex;align-items:center;gap:5px}
.emt-cctv__dot{display:inline-block;width:11px;height:11px;border-radius:100%}.emt-cctv__dot-camera{background:#107b9a}.emt-cctv__dot-point{background:#c57720}.emt-cctv__dot-rack{background:#244d64}
.emt-cctv__stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.emt-cctv__stats[hidden]{display:none}.emt-cctv__stats>div{border-radius:11px;background:var(--csoft);padding:11px;min-width:0}
.emt-cctv__stats small{display:block;font-size:.83rem;color:#496373}.emt-cctv__stats strong{display:block;font-size:1.34rem;margin-top:4px}
.emt-cctv ul{margin:8px 0 15px;padding-left:20px}.emt-cctv li{margin-bottom:7px;line-height:1.5}
.emt-cctv__hint{color:#5b6e7b;font-size:.88rem}.emt-cctv__error{color:#a22628;font-size:.91rem;font-weight:600}.emt-cctv__error:empty{display:none}
.emt-cctv__explain{margin-top:22px}.emt-cctv__links{display:flex;flex-wrap:wrap;gap:10px}.emt-cctv__links a{padding:10px 12px;background:#eaf5f8;color:#14677d;border-radius:9px;font-weight:700}
@media(max-width:1000px){.emt-cctv__layout{grid-template-columns:1fr}}
@media(max-width:520px){.emt-cctv__exports{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.emt-cctv__exports button{min-width:0;white-space:normal}.emt-cctv__fields,.emt-cctv__item-fields{grid-template-columns:1fr}.emt-cctv__form,.emt-cctv__visual,.emt-cctv__explain{padding:13px}.emt-cctv__actions button{flex:1 1 115px}.emt-cctv h1{font-size:1.58rem}}

/* 1.61.1 guided graphic-first layout */
.emt-cctv__layout{grid-template-columns:minmax(0,1.2fr) minmax(0,.85fr)}
.emt-cctv__visual{grid-column:1;grid-row:1}
.emt-cctv__form{grid-column:2;grid-row:1}
.emt-cctv__quickstart{padding:clamp(12px,2vw,22px);background:linear-gradient(135deg,#edf7fa,#f8fbfd);border:1px solid #bad8e4;border-radius:15px;margin:0 0 19px}
.emt-cctv__quickstart-head h2{margin:0 0 5px;font-size:1.27rem}
.emt-cctv__quickstart-head p{margin:0 0 14px;color:#486578;font-size:.94rem}
.emt-cctv__presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.emt-cctv button.emt-cctv__preset{display:flex;flex-direction:column;align-items:stretch;text-align:left;min-width:0;background:#fff;color:#214355;border:2px solid #cfdee7;border-radius:12px;padding:11px;gap:2px;font-weight:400;line-height:1.3}
.emt-cctv button.emt-cctv__preset[aria-pressed="true"]{border-color:#137e99;box-shadow:0 0 0 2px #137e9922}
.emt-cctv__preset:hover{background:#f3fafc!important}
.emt-cctv__preset svg{display:block;width:100%;height:100px;border-radius:7px;margin-bottom:6px}
.emt-cctv__preset strong{font-size:.97rem;color:#123f53}
.emt-cctv__preset span{color:#547286;font-size:.84rem}
.emt-cctv__three-steps{display:flex;align-items:center;flex-wrap:wrap;gap:8px 15px;margin-top:15px;font-size:.9rem;color:#264f62}
.emt-cctv__three-steps>span{display:flex;align-items:center;gap:7px}
.emt-cctv__three-steps b{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:26px;height:26px;flex:0 0 26px;background:#166c87;color:#fff}
.emt-cctv__map-actions{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}
.emt-cctv__rotate{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.emt-cctv__rotate span{font-size:.89rem;font-weight:700;color:#235d75;flex:1 1 140px}
.emt-cctv__map-actions button{min-height:40px;padding:8px 10px}
.emt-cctv__legend{margin:10px 0 16px}
.emt-cctv__dot-good{background:#178a60}.emt-cctv__dot-out{background:#c74343}
.emt-cctv__form-explain{font-size:.91rem;color:#546d7e;margin:0 0 10px}
.emt-cctv__visual .emt-cctv__canvas{margin-top:6px}
.emt-cctv__body-zoom{overflow:hidden!important}
.emt-cctv__zoomed .emt-cctv__canvas{position:fixed;inset:65px 10px 12px;z-index:15000;overflow:auto;background:#eef5f8;border:3px solid #166c87;box-shadow:0 0 0 100vmax #0d2638bf;display:flex;align-items:center;justify-content:flex-start}
.emt-cctv__zoomed .emt-cctv__canvas svg{width:max(100%,770px);min-width:770px;height:auto;max-height:none;flex:0 0 auto;touch-action:auto}
.emt-cctv__zoomed .emt-cctv__map-actions{position:fixed;z-index:15001;top:7px;left:10px;right:10px;background:white;padding:6px 10px;border-radius:10px;border:1px solid #bfd4e0;margin:0}
.emt-cctv__zoomed .emt-cctv__rotate span{font-size:.85rem}
@media(max-width:1000px){
 .emt-cctv__layout{grid-template-columns:1fr}
 .emt-cctv__visual,.emt-cctv__form{grid-column:auto;grid-row:auto}
}
@media(max-width:600px){
 .emt-cctv__quickstart{padding:12px}
 .emt-cctv__presets{gap:7px}
 .emt-cctv button.emt-cctv__preset{padding:7px;border-radius:9px}
 .emt-cctv__preset svg{height:73px;margin-bottom:4px}
 .emt-cctv__preset strong{font-size:.78rem}
 .emt-cctv__preset span{font-size:.72rem}
 .emt-cctv__three-steps{font-size:.83rem;gap:9px;margin-top:12px}
 .emt-cctv__three-steps>span{flex:1 1 100%}
 .emt-cctv__rotate{width:100%}
 .emt-cctv__map-expand{width:100%}
 .emt-cctv__zoomed .emt-cctv__rotate span{flex:1 1 120px}
 .emt-cctv__zoomed .emt-cctv__map-expand{width:auto}
 .emt-cctv__zoomed .emt-cctv__map-actions{align-items:center}
}

.emt-cctv__map-quick-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:5px 0 10px}
.emt-cctv__map-quick-actions button{flex:1 1 125px;min-height:42px;background:#ecf7fa}
.emt-cctv__details{border-top:1px solid #d2e1e9;padding:12px 1px;margin:8px 0}
.emt-cctv__details summary{cursor:pointer;color:#175b75;font-size:.97rem;line-height:1.5;font-weight:700;padding:3px}
.emt-cctv__details[open] summary{margin-bottom:9px}
.emt-cctv__details:focus-within{outline-offset:2px}

.emt-cctv__camera-knobs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;padding:11px 12px;background:#edf7fa;border:1px solid #c6dfe8;border-radius:10px;margin:8px 0}
.emt-cctv__camera-knobs label{font-size:.85rem;color:#205c73;font-weight:700;display:block;min-width:0}
.emt-cctv__camera-knobs output{display:inline;font-weight:800;color:#093e57}
.emt-cctv__camera-knobs input[type=range]{display:block;width:100%;height:31px;min-height:31px;margin:3px 0 0;padding:0;border:0;accent-color:#147d9a;cursor:pointer}
.emt-cctv__dot-out{border-radius:1px;transform:rotate(45deg)}
@media(max-width:600px){
 .emt-cctv__canvas svg{aspect-ratio:600/520}
 .emt-cctv__camera-knobs{grid-template-columns:1fr;gap:8px}
 .emt-cctv__camera-knobs label{font-size:.86rem}
 .emt-cctv__camera-knobs input[type=range]{height:30px;min-height:30px}
 .emt-cctv__zoomed .emt-cctv__canvas svg{aspect-ratio:600/520}
}

/* 1.61.2: overrides theme-wide justified paragraphs in the tool only. */
.emt-cctv.emt-cctv p,.emt-cctv.emt-cctv li,.emt-cctv.emt-cctv label,.emt-cctv.emt-cctv summary{text-align:left}
