.alert-event-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:23px}
.alert-event-picker>button{display:flex;align-items:center;gap:13px;text-align:left;padding:17px 19px;min-height:85px;border:1px solid #343f2c;border-radius:12px;background:#181e15;color:#a4b398;transition:background .2s,border-color .2s}
.alert-event-picker>button>span:nth-child(2){flex:1;min-width:0}.alert-event-picker strong{display:block;font-size:14px;font-weight:600;color:#e1e9da;line-height:1.5}.alert-event-picker small{display:block;font-size:10px;margin-top:4px;line-height:1.6}.alert-event-picker .action-icon{flex-shrink:0;width:35px;height:35px;background:#28331f}.alert-event-picker .event-check{width:17px;height:17px;opacity:0;color:var(--accent);flex-shrink:0}.alert-event-picker>button.active{border-color:#8fa766;background:#26331e}.alert-event-picker>button.active strong,.alert-event-picker>button.active .action-icon{color:var(--accent)}.alert-event-picker>button.active .event-check{opacity:1}.alert-event-picker>button:hover{border-color:#718651}
.alert-editor-grid{grid-template-columns:minmax(0,1.45fr) minmax(345px,1fr);gap:23px}.alert-preview-panel{position:sticky;top:22px;min-width:0}.alert-preview-panel .scene{margin:0 15px;border-radius:9px;aspect-ratio:16/11;overflow:hidden}.alert-preview-panel .scene-center{font-size:26px}.alert-preview-panel .scene-alert{top:20%;max-width:88%}.alert-preview-panel .panel-heading{padding:23px 24px;gap:15px}.alert-preview-panel .panel-heading>div{min-width:0}.alert-preview-panel .small-pill{white-space:nowrap;font-size:8px}.alert-preview-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:13px;padding:23px}.alert-preview-footer>.btn{font-size:11px;min-height:46px}.alert-preview-footer>span{font-size:9px;color:#8ca179}.alert-local-note{border-top:1px solid #303c29;padding:16px 23px;display:flex;gap:10px;color:#8ba075;line-height:1.8}.alert-local-note>.icon{height:15px;width:15px;flex-shrink:0;margin-top:3px}.alert-local-note p{font-size:10px}
.alert-customizer{padding:25px;min-width:0}.alert-customizer-heading>.eyebrow{font-size:7px;letter-spacing:1.5px;color:#8eaa78}.alert-customizer h2{font-family:var(--display);font-size:25px;font-weight:550;letter-spacing:-1px;margin:12px 0 9px;line-height:1.4}.alert-customizer-heading>p{font-size:11px;color:#97ad86;line-height:1.8}.alert-custom-section{padding:23px 0;border-bottom:1px solid #303c28}.alert-section-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.alert-section-label h3{font-size:12px;font-weight:550}.alert-section-label>span{font-size:9px;color:#8fa479}.alert-theme-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.alert-theme-option{min-width:0;border:1px solid #3a472f;border-radius:9px;padding:9px;background:#141b11;text-align:left;color:#b7c9a9}.alert-theme-option.active{border-color:#b0cf7d;background:#2b381f}.alert-theme-thumb{display:flex;align-items:center;justify-content:center;gap:5px;height:45px;border-radius:5px;background:#1b2917;margin-bottom:7px;overflow:hidden}.alert-theme-thumb .icon{width:15px;height:15px;flex-shrink:0;color:#d5f984}.alert-theme-thumb>i{width:38px;height:4px;border-radius:3px;background:#d8e5c9;position:relative}.alert-theme-thumb>i:after{content:'';position:absolute;top:7px;left:0;width:25px;height:2px;background:#80956e}.alert-theme-option>span:last-child{font-size:10px;display:flex;align-items:center;justify-content:space-between;gap:5px}.alert-theme-option>span:last-child>.icon{width:13px;height:13px;opacity:0;color:var(--accent)}.alert-theme-option.active>span:last-child>.icon{opacity:1}.alert-theme-option[data-alert-style=neon] .alert-theme-thumb{background:#171527;border:1px solid #ae8ef0;box-shadow:inset 0 0 13px #8c5bed35}.alert-theme-option[data-alert-style=neon] .alert-theme-thumb .icon{color:#c5a6ff}.alert-theme-option[data-alert-style=arcade] .alert-theme-thumb{border-radius:0;background:#182223;border:2px solid #7ce9e0;box-shadow:inset 3px 3px #0005}.alert-theme-option[data-alert-style=arcade] .alert-theme-thumb .icon{color:#7ce9e0}.alert-theme-option[data-alert-style=soft] .alert-theme-thumb{background:#ecd4c4;border-radius:17px}.alert-theme-option[data-alert-style=soft] .alert-theme-thumb .icon{color:#704b37}.alert-theme-option[data-alert-style=soft] .alert-theme-thumb>i{background:#684a37}.alert-theme-option[data-alert-style=soft] .alert-theme-thumb>i:after{background:#b18d74}
.alert-upload{position:relative;display:flex;align-items:center;gap:11px;min-height:81px;padding:14px;border:1px dashed #586e43;border-radius:9px;background:#1c2617;cursor:pointer;min-width:0}.alert-upload:hover{border-color:var(--accent);background:#25321c}.alert-upload:focus-within{outline:2px solid var(--accent);outline-offset:3px}.alert-upload>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.alert-upload>span:nth-child(2){min-width:0}.alert-upload-icon{display:flex;align-items:center;justify-content:center;width:31px;height:31px;border:1px solid #506639;border-radius:8px;flex-shrink:0;color:var(--accent)}.alert-upload-icon .icon{width:17px;height:17px}.alert-upload strong{display:block;font-size:11px;font-weight:550;line-height:1.6}.alert-upload small{display:block;font-size:9px;color:#8ca477;margin-top:5px;line-height:1.6}.alert-asset{display:flex;align-items:center;gap:10px;margin-top:11px;padding:10px;background:#11190e;border:1px solid #33442b;border-radius:8px;min-width:0}.alert-asset[hidden]{display:none}.alert-asset>img{width:42px;height:42px;object-fit:contain;border-radius:5px;background:#27331f;flex-shrink:0}.alert-asset>span:nth-child(2){flex:1;min-width:0}.alert-asset strong{font-size:10px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.7}.alert-asset small{display:block;font-size:9px;line-height:1.7;color:#8aa275}.alert-asset>.icon-button{width:34px;height:34px;flex-shrink:0}.alert-asset>.icon-button>.icon{width:15px;height:15px}.alert-asset-audio{width:32px;height:35px;display:flex;align-items:center;justify-content:center;color:var(--accent);flex-shrink:0}.alert-asset-audio>.icon{height:20px;width:20px}.alert-upload-status{font-size:10px;color:#9ebc85;line-height:1.8;margin:8px 0 0}.alert-upload-status:empty{display:none}.alert-upload-status.invalid{color:#e4b391}.alert-customizer select{width:100%;min-width:0;padding:12px;border:1px solid #475b35;border-radius:8px;font:inherit;font-size:11px;line-height:1.6;background:#11190e;color:#d4e2ca;min-height:45px}.alert-sound-actions{display:flex;gap:8px;margin-top:11px;align-items:stretch}.alert-upload-small{flex:1;min-height:43px;padding:9px;font-size:10px;justify-content:center;gap:6px}.alert-upload-small>.icon{height:14px;width:14px;flex-shrink:0}.alert-sound-actions>.btn{font-size:10px;padding:0 10px;min-height:43px;gap:5px;flex-shrink:0}.alert-sound-actions>.btn>.icon{width:13px;height:13px}.alert-format-hint{font-size:9px;line-height:1.8;color:#829b70;margin-top:10px}.alert-global-controls .toggle-row{font-size:11px;gap:10px;min-height:55px}.alert-global-controls .toggle-row small{font-size:9px;line-height:1.7}.alert-volume-label{display:block;margin:18px 0 12px;font-size:11px;color:#b1c49f}.alert-volume-label output{float:right;color:var(--accent)}.alert-global-controls input[type=range]{width:100%}.alert-global-controls .alert-state{font-size:10px;margin-top:17px}.alert-save-status{font-size:9px;line-height:1.8;display:flex;gap:8px;color:#93ad7d;margin-top:17px}.alert-save-status>.icon{height:14px;width:14px;flex-shrink:0;margin-top:2px}.alert-save-status.invalid{color:#e4b391}.alert-customizer button:disabled{opacity:.45;cursor:not-allowed}.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}
/* Each event owns its visual style independently of the scene palette. */
.scene-alert[data-alert-theme=neon]{background:#191427f5;border:1px solid #c2a1ff;box-shadow:0 0 22px #a478ff45,inset 0 0 15px #c2a1ff12;border-radius:5px}.scene-alert[data-alert-theme=neon]>.icon{color:#c2a1ff}.scene-alert[data-alert-theme=neon] small{color:#c6b6df}.scene-alert[data-alert-theme=arcade]{background:#102524fa;border:2px solid #78e4d8;border-radius:0;box-shadow:4px 4px 0 #071311,7px 7px 0 #78e4d84d}.scene-alert[data-alert-theme=arcade]>.icon{color:#78e4d8}.scene-alert[data-alert-theme=arcade] strong{font-family:monospace}.scene-alert[data-alert-theme=arcade] small{color:#a7d8d1}.scene-alert[data-alert-theme=soft]{background:#f0dacbf5;border:1px solid #edcbb4;box-shadow:0 9px 30px #0003;border-radius:22px}.scene-alert[data-alert-theme=soft]>.icon{color:#875637}.scene-alert[data-alert-theme=soft] strong{color:#4b3527}.scene-alert[data-alert-theme=soft] small{color:#8a6750}.scene-alert>.alert-custom-gif{width:62px;height:62px;object-fit:contain;flex-shrink:0}.scene-alert>span{min-width:0}.scene-alert strong,.scene-alert small{overflow-wrap:anywhere}.scene-alert.has-custom-gif{padding:11px 14px;gap:12px}.scene-alert.alert-replay{animation:stage-alert-replay .5s ease-out}.alert-preview-panel .scene-alert strong{font-size:12px;line-height:1.5}.alert-preview-panel .scene-alert small{font-size:9px;line-height:1.6}
@keyframes stage-alert-replay{from{opacity:0;transform:translate(-50%,-12px) scale(.94)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@media(max-width:1150px){.alert-editor-grid{grid-template-columns:minmax(0,1fr) minmax(310px,.95fr);gap:17px}.alert-customizer{padding:21px}.alert-event-picker>button{padding:15px;gap:10px}.alert-event-picker small{font-size:9px}.alert-preview-panel .panel-heading{padding:20px 18px}.alert-preview-panel .small-pill{display:none}.alert-preview-panel .scene-center{font-size:21px}.alert-preview-panel .scene{aspect-ratio:4/5}.alert-preview-panel .scene-alert{top:25%}.alert-preview-panel .scene-alert strong{font-size:10px}.alert-preview-panel .scene-alert small{font-size:8px}.alert-preview-footer,.alert-local-note{padding:18px}.alert-preview-footer>span{font-size:8px}.alert-preview-panel .scene-alert>.alert-custom-gif{width:46px;height:46px}}
@media(max-width:950px){.alert-editor-grid{grid-template-columns:minmax(0,1fr)}.alert-preview-panel{position:static}.alert-preview-panel .scene{aspect-ratio:16/9}.alert-preview-panel .scene-center{font-size:30px}.alert-preview-panel .scene-alert{top:20%}.alert-preview-panel .scene-alert strong{font-size:13px}.alert-preview-panel .scene-alert small{font-size:10px}.alert-customizer{padding:25px}.alert-theme-picker{grid-template-columns:repeat(4,minmax(0,1fr))}.alert-theme-thumb{height:56px}.alert-customizer h2{font-size:27px}}
@media(max-width:780px){.alert-event-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:17px}.alert-event-picker>button{min-height:73px;padding:12px 10px;gap:8px;flex-wrap:wrap;position:relative}.alert-event-picker .action-icon{width:27px;height:27px}.alert-event-picker .action-icon>.icon{width:16px;height:16px}.alert-event-picker strong{font-size:12px}.alert-event-picker small{display:none}.alert-event-picker .event-check{display:none}.alert-event-picker>button>span:nth-child(2){flex:1}.alert-preview-panel .panel-heading{padding:19px 17px}.alert-preview-panel .panel-heading h2{font-size:13px}.alert-preview-panel .panel-heading span{font-size:9px}.alert-preview-panel .scene{margin:0 10px;aspect-ratio:16/12}.alert-preview-panel .scene-center{font-size:21px}.alert-preview-panel .scene-alert{top:22%;max-width:89%;padding:11px;gap:8px}.alert-preview-panel .scene-alert strong{font-size:10px}.alert-preview-panel .scene-alert small{font-size:8px}.alert-preview-panel .scene-alert>.alert-custom-gif{width:45px;height:45px}.alert-preview-footer{gap:10px;padding:17px}.alert-preview-footer>.btn{font-size:11px;padding:0 14px}.alert-preview-footer>span{font-size:8px}.alert-local-note{padding:15px 17px}.alert-local-note p{font-size:10px}.alert-customizer{padding:22px 18px}.alert-customizer h2{font-size:25px}.alert-customizer-heading>.eyebrow{font-size:7px}.alert-customizer-heading>p{font-size:11px}.alert-theme-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.alert-theme-thumb{height:53px}.alert-theme-option>span:last-child{font-size:11px}.alert-custom-section{padding:22px 0}.alert-upload{min-height:82px}.alert-upload strong{font-size:12px}.alert-upload small{font-size:9px}.alert-upload-small{min-height:46px;font-size:10px}.alert-customizer select{min-height:46px;font-size:12px}.alert-sound-actions>.btn{min-height:46px;font-size:10px}.alert-global-controls .toggle-row{font-size:12px}.alert-save-status{font-size:10px}.alert-upload-status{font-size:11px}.alert-asset strong{font-size:11px}}
@media(max-width:360px){.alert-event-picker>button{padding:12px 7px;gap:6px}.alert-event-picker strong{font-size:11px}.alert-event-picker .action-icon{width:23px;height:26px}.alert-preview-footer>span{width:100%}.alert-customizer{padding-inline:15px}.alert-sound-actions{flex-wrap:wrap}.alert-upload-small{flex-basis:100%}.alert-sound-actions>.btn{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.scene-alert.alert-replay{animation:none}.alert-event-picker>button{transition:none}}
