:root{font-family:Arial,'Segoe UI',sans-serif;color:#172e3e;background:#e8edf2;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #d5dfe8;border-radius:7px;padding:9px 13px;background:#fff;color:#294f6d}button:hover{background:#edf3ff;border-color:#a5bfee}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #366fe2;outline-offset:2px}.toolbar{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;gap:15px;background:white;border-bottom:1px solid #d8e2eb;position:sticky;top:0;z-index:5}.toolbar nav,.tools{display:flex;align-items:center;gap:10px}.toolbar button{font-size:14px;white-space:nowrap}.brand{font-weight:bold;background:#172e3e;color:white;border-color:#172e3e}.brand:hover{background:#294f6d;color:white}#screen-label{font-size:13px;color:#667a89}#saved-state{font-size:12px;color:#366fe2;background:#edf3ff;padding:7px;border-radius:5px}.tools button[aria-pressed=true]{background:#dce8ff;color:#1f50b4}#viewport{display:flex;align-items:flex-start;justify-content:center;min-height:calc(100vh - 98px);overflow:auto;padding:10px}#stage{position:relative;flex:none;width:min(calc(100vw - 20px),calc((100vh - 118px)*16/9));aspect-ratio:16/9;background:#f2f5f7;box-shadow:0 5px 30px #24395112;border-radius:6px;overflow:hidden;container-type:inline-size}#screen{width:100%;height:100%;display:block}body.zoomed #stage{width:1920px}body.zoomed #viewport{justify-content:flex-start}.hotspot{position:absolute;display:block;border:2px solid transparent;padding:0;background:transparent;border-radius:8px;text-decoration:none;color:transparent;z-index:2}.hotspot:hover{border-color:#366fe2;background:#366fe208;box-shadow:0 0 0 3px #366fe212}.hotspot:focus-visible{outline:3px solid #366fe2;outline-offset:-3px;background:#366fe21a}.show-hints .hotspot{border:2px dashed #366fe299;background:#366fe20b}.hotspot .tip{pointer-events:none;position:absolute;bottom:100%;left:10px;background:#172e3e;color:#fff;padding:7px 10px;border-radius:6px;font-size:14px;white-space:nowrap;opacity:0;transition:opacity .1s}.hotspot:hover .tip,.hotspot:focus-visible .tip{opacity:1}.hotspot.tip-bottom .tip{bottom:auto;top:100%}.viewer-footer{height:40px;display:flex;align-items:center;justify-content:center;gap:20px;color:#607584;font-size:12px}.viewer-footer button{font-size:12px;border:0;background:none;padding:5px;color:#607584}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{width:650px;max-width:94vw;max-height:90vh;overflow:auto;border:1px solid #d8e2eb;border-radius:15px;padding:26px;color:#172e3e;box-shadow:0 18px 90px #172e3e33}dialog::backdrop{background:#172e3e66;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head button{border:0;background:#f0f4f8;width:33px;height:33px;padding:0}.tag{font-size:12px;font-weight:bold;letter-spacing:.5px;color:#a4772e}h2{font-size:25px;margin:20px 0 14px;line-height:1.3}dialog p{line-height:1.6;color:#526a7b}dialog label{display:block;margin:17px 0 8px;font-weight:bold;font-size:15px}dialog input,dialog select,dialog textarea{width:100%;border:1px solid #cbd7e0;border-radius:7px;padding:11px;color:#172e3e;background:#fff}dialog textarea{min-height:80px;resize:vertical}dialog .sub{font-size:13px;color:#667a89}.notice{border-radius:8px;background:#fff4df;padding:12px 15px;font-size:14px;line-height:1.5;color:#886522}.primary{background:#366fe2;border-color:#366fe2;color:white;font-weight:bold}.primary:hover{background:#285ac7;color:white}.form-actions{margin-top:22px;display:flex;justify-content:flex-end;gap:10px}.linklist{display:flex;flex-direction:column;gap:10px;margin:20px 0}.linklist a{display:block;padding:12px;border:1px solid #dbe3eb;border-radius:8px;color:#295fbf;text-decoration:none;font-weight:bold}table{width:100%;border-collapse:collapse;font-size:15px;margin:15px 0}td,th{text-align:left;padding:12px 8px;border-bottom:1px solid #e3eaf0}th{color:#667a89;font-weight:normal}#toast{position:fixed;bottom:48px;left:50%;transform:translateX(-50%);background:#172e3e;color:white;padding:13px 20px;border-radius:9px;z-index:20;max-width:90vw;font-size:15px}.overlay{position:absolute;pointer-events:none;z-index:1}.live-stage{background:#366fe2;color:white;display:flex;align-items:center;border-radius:8px;font-weight:bold;padding-left:1.35cqw;font-size:.94cqw}.old-stage{background:#e7edf2;color:#667a89}.live-footer{background:#e8eef8;display:flex;flex-direction:column;justify-content:center;padding-left:1.25cqw;font-size:.94cqw;gap:.3cqw}.live-footer small{font-size:.78cqw;color:#667a89}.live-field{background:white;display:flex;align-items:center;color:#172e3e;font-size:.94cqw;line-height:1.25}.checkmark{color:#366fe2;background:#edf3ff;border:1px solid #366fe2;border-radius:3px;display:flex;align-items:center;justify-content:center;font-size:.8cqw}.checkmark::after{content:'✓'}@media(max-width:1000px){#screen-label,#saved-state{display:none}.toolbar{padding:0 8px;gap:5px}.toolbar nav,.tools{gap:5px}.toolbar button{padding:8px;font-size:12px}}@media(max-width:620px){.toolbar{height:auto;min-height:86px;flex-wrap:wrap;padding:8px}.tools{width:100%;justify-content:space-between}#viewport{min-height:calc(100vh - 126px)}#stage{width:calc(100vw - 12px)}.viewer-footer span{max-width:66%;font-size:10px}.viewer-footer{gap:5px}.form-actions{flex-wrap:wrap}.hotspot .tip{display:none}}
