*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;width:100%;height:100%;background-color:#181825;font-family:Roboto,Helvetica Neue,sans-serif}html::-webkit-scrollbar,body::-webkit-scrollbar{height:8px}html::-webkit-scrollbar-track,body::-webkit-scrollbar-track{background:#9399b2;border:1px solid #181825;border-radius:10px}html::-webkit-scrollbar-thumb,body::-webkit-scrollbar-thumb{background-color:#585b70;border:2px solid #45475a;border-radius:10px}html::-webkit-scrollbar-thumb:hover,body::-webkit-scrollbar-thumb:hover{background-color:#45475a;border:2px solid #313244}h1{color:#89b4fa}h2{color:#fab387}h3,h4,h5,h6{color:#89dceb}p{color:#cdd6f4}a{color:#89dceb}a:hover{color:#f38ba8}button{background-color:#313244;color:#cdd6f4}button:hover{background-color:#45475a}button.active{background-color:#585b70;color:#fff}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #89b4fa;outline-offset:2px}.page{min-height:100vh;display:flex;justify-content:center;align-items:flex-start;padding:2rem 1rem}.card{width:100%;max-width:480px;padding:2rem;border-radius:12px;background-color:#1e1e2e;box-shadow:0 8px 24px #0006;color:#cdd6f4;display:flex;flex-direction:column;align-items:center;text-align:center}.back-btn{align-self:flex-start;display:inline-flex;align-items:center;padding:.4rem .75rem;margin-bottom:1rem;border:none;border-radius:8px;background-color:transparent;color:#bac2de;font-size:.95rem;cursor:pointer}.back-btn:hover{background-color:#313244;color:#cdd6f4}.page-title{margin:0 0 1.5rem;font-size:1.75rem;color:#fab387}.page-message{margin:0 0 1.5rem;color:#bac2de;line-height:1.5}.form-error{margin:1rem 0 0;color:#f38ba8;font-size:.9rem}.form-success{margin:1rem 0 0;color:#a6e3a1;font-size:.9rem}.input{width:100%;padding:.75rem 1rem;border:1px solid transparent;border-radius:8px;background-color:#313244;color:#cdd6f4;font-size:1rem;transition:border-color .2s ease,box-shadow .2s ease}.input::placeholder{color:#7f849c}.input:focus{outline:none;border-color:#89b4fa;box-shadow:0 0 0 3px #89b4fa40}.btn-primary{width:100%;padding:.75rem 1rem;border:none;border-radius:8px;background-color:#89b4fa;color:#11111b;font-weight:600;font-size:1rem;cursor:pointer;transition:background-color .2s ease}.btn-primary:hover:enabled{background-color:#74c7ec}.btn-primary:disabled{background-color:#45475a;color:#6c7086;cursor:not-allowed}body{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.switch{position:relative;display:inline-block;width:50px;height:28px;flex-shrink:0}.switch input{opacity:0;width:0;height:0}.switch .slider{position:absolute;cursor:pointer;inset:0;background-color:#585b70;transition:.4s;border-radius:34px}.switch .slider:before{position:absolute;content:"";height:22px;width:22px;left:3px;bottom:3px;background-color:#fff;transition:.4s;border-radius:50%}.switch input:checked+.slider{background-color:#28a745}.switch input:checked+.slider:before{transform:translate(22px)}.switch input:focus-visible+.slider{outline:2px solid #89b4fa;outline-offset:2px}.switch.small{width:44px;height:24px;margin:0}.switch.small .slider{background-color:#585b70;box-shadow:inset 0 0 0 1px #ffffff0f}.switch.small .slider:before{height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;box-shadow:0 1px 3px #00000059}.switch.small input:checked+.slider{background-color:#a6e3a1}.switch.small input:checked+.slider:before{transform:translate(20px)}.switch.small input:focus-visible+.slider{outline:2px solid #89b4fa;outline-offset:2px}.alert-panel{display:flex;flex-direction:column;gap:1rem}.alert-panel .alert-text h3{margin:0 0 .25rem;font-size:1.05rem;color:#cdd6f4}.alert-panel .alert-text p{margin:0;font-size:.9rem;color:#bac2de}.alert-panel .alert-form{display:grid;grid-template-columns:1fr;gap:.75rem}.alert-panel .alert-field{display:flex;flex-direction:column;gap:.35rem}.alert-panel .alert-field span{font-size:.85rem;color:#bac2de}.alert-panel .alert-field input{min-height:44px;padding:0 .75rem;border:1px solid #6c7086;border-radius:8px;background-color:#313244;color:#cdd6f4;font-size:1rem}.alert-panel .alert-field input:focus{outline:none;border-color:#89b4fa;box-shadow:0 0 0 3px #89b4fa40}.alert-panel .alert-actions{display:flex;flex-wrap:wrap;gap:.5rem}.alert-panel .alert-save,.alert-panel .alert-clear{min-height:44px;padding:0 1.1rem;border:none;border-radius:8px;font-weight:600;cursor:pointer}.alert-panel .alert-save{background-color:#89b4fa;color:#11111b}.alert-panel .alert-save:disabled{background-color:#45475a;color:#6c7086;cursor:not-allowed}.alert-panel .alert-clear{background-color:transparent;color:#f38ba8;box-shadow:inset 0 0 0 1px #45475a}.alert-panel .alert-status{margin:0;font-size:.9rem;color:#a6e3a1}.alert-panel .alert-status.off{color:#a6adc8}@media (min-width: 600px){.alert-panel .alert-form{grid-template-columns:1fr 1fr auto;align-items:end}}.alert-panel .alert-label{font-size:.85rem;color:#bac2de}.alert-panel .alert-input{display:flex;align-items:center;gap:.5rem}.alert-panel .alert-input input{flex:1;min-width:0}.alert-panel .unit-btn{min-width:56px;min-height:44px;padding:0 .75rem;border:1px solid #6c7086;border-radius:8px;background-color:#45475a;color:#cdd6f4;font-weight:600;cursor:pointer}.alert-panel .unit-btn:hover{background-color:#585b70}.alert-panel .alert-error{margin:0;color:#f38ba8;font-size:.9rem}
