.app-shell{min-height:100vh;padding:2rem clamp(1rem,3vw,3rem);padding-bottom:5rem;background:radial-gradient(circle at top,rgba(9,9,121,.08),transparent 55%)}.app-header{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:1.5rem;border-radius:20px;background:#ffffffbf;box-shadow:0 25px 50px #0f172a1a;margin-bottom:2rem;flex-wrap:wrap}.brand-heading{display:flex;align-items:center;gap:1rem}.brand-logo{width:clamp(48px,6vw,72px);height:auto}.brand-label{margin:0;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#1d4ed8;font-size:.85rem}.subtitle{margin:.4rem 0 0;color:#475569}.header-actions{display:flex;align-items:center;gap:.75rem}.global-message{margin:0 0 1rem;padding:.9rem 1.2rem;border-radius:14px;background:#2dd4bf26;color:#0f766e;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:1rem}.global-message button{background:transparent;border:none;color:inherit;font-weight:700;cursor:pointer}.global-message.error{background:#f8717133;color:#991b1b}.loading,.empty-state{font-weight:600;color:#475569}.device-column{display:flex;flex-direction:column;gap:1rem}.device-row{background:#ffffffeb;border-radius:20px;padding:1rem 1.25rem;box-shadow:0 25px 45px #0f172a1f;display:flex;flex-direction:column;gap:.8rem}.device-row__header{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem}.device-row__title{display:flex;align-items:center;gap:.75rem}.device-card__mac{font-size:.9rem;color:#64748b;margin:.3rem 0 0}.device-row__message{font-size:.9rem;color:#0f172a;font-weight:600}.device-row__buttons{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:center;align-items:center}.inline-button{border-radius:999px;border:1px solid rgba(15,23,42,.12);background:linear-gradient(90deg,#2563eb,#3b82f6);color:#fff;padding:.65rem 1.4rem;font-weight:600;cursor:pointer;transition:transform .2s ease,opacity .2s ease;min-width:140px;text-align:center}.inline-button--pressed{transform:scale(.97);box-shadow:inset 0 4px 12px #00000040}.device-row__empty{color:#94a3b8}.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:1.5rem}.settings-card{background:#ffffffeb;border-radius:20px;padding:1.5rem;box-shadow:0 25px 45px #0f172a1f;display:flex;flex-direction:column;gap:1.25rem}.settings-card__header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.settings-card__title{display:flex;flex-direction:column;gap:.5rem}.device-name-input{border-radius:12px;border:1px solid rgba(15,23,42,.1);padding:.55rem .8rem;font-size:1.1rem;font-weight:600;background:#ffffffe6}.relay-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.relay-card{border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:1rem;background:#f8fafc;display:flex;flex-direction:column;gap:.75rem}.relay-card__header{display:flex;justify-content:space-between;align-items:center}.toggle{position:relative;display:inline-flex;width:40px;height:22px}.toggle input{opacity:0;width:0;height:0}.toggle__slider{position:absolute;cursor:pointer;inset:0;background-color:#cbd5f5;border-radius:999px;transition:.2s}.toggle__slider:before{position:absolute;content:"";height:16px;width:16px;left:3px;bottom:3px;background-color:#fff;border-radius:50%;transition:.2s}.toggle input:checked+.toggle__slider{background:linear-gradient(90deg,#2563eb,#3b82f6)}.toggle input:checked+.toggle__slider:before{transform:translate(18px)}.badge{padding:.35rem .9rem;border-radius:999px;font-size:.8rem;font-weight:600}.badge--admin{background:#3b82f626;color:#1d4ed8}.badge--member{background:#94a3b833;color:#475569}.device-card__message{margin:0;padding:.8rem 1rem;border-radius:12px;background:#0f172a0d;color:#0f172a;font-weight:500}.button-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.control-button{border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:1rem;display:flex;flex-direction:column;gap:.8rem;background:linear-gradient(145deg,#f8fafc,#fff)}.control-button--disabled{opacity:.6}.control-button__header{display:flex;justify-content:space-between;font-size:.9rem;color:#475569}.control-button__meta{margin:0;font-size:.85rem;color:#94a3b8}.card-form{border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:1rem;background:#f8fafc}.card-form h3{margin-top:0;margin-bottom:1rem}.view-switcher{display:flex;gap:.5rem;margin-bottom:1.5rem}.view-switcher__btn{flex:1;padding:.6rem .8rem;border-radius:12px;border:1px solid rgba(15,23,42,.15);background:#ffffffb3;font-weight:600;cursor:pointer;transition:all .2s ease}.view-switcher__btn.active{background:linear-gradient(90deg,#2563eb,#3b82f6);color:#fff;border-color:transparent}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}.checkbox{display:flex;align-items:center;gap:.4rem;font-weight:500}.form-actions{display:flex;gap:.75rem;margin-top:1rem}.user-list{list-style:none;margin:0 0 1rem;padding:0;display:flex;flex-direction:column;gap:.5rem}.user-list li{display:flex;justify-content:space-between;align-items:center;padding:.5rem .75rem;border-radius:10px;background:#ffffffb3}.inline-form{display:flex;gap:.6rem;flex-wrap:wrap}.history-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}.history-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem;max-height:220px;overflow-y:auto}.history-list li{display:grid;grid-template-columns:1fr auto auto;gap:.5rem;padding:.5rem .6rem;border-radius:10px;background:#ffffffb3;font-size:.9rem}.history-label{font-weight:600}.history-user{color:#475569}.history-date{color:#94a3b8;font-size:.8rem}.settings-footer{margin-top:1.5rem;display:flex;justify-content:center}.settings-footer button{width:100%;max-width:320px;background:#ef4444}.super-admin-nav{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:center;margin-bottom:1.5rem}.status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem}.status-card{background:#fffffff2;border-radius:18px;padding:1.2rem;box-shadow:0 25px 45px #0f172a1f;display:flex;flex-direction:column;gap:.65rem}.status-card__header{display:flex;justify-content:space-between;align-items:center}.status-card__mac{margin:0;color:#64748b;font-size:.9rem}.status-dot{width:14px;height:14px;border-radius:50%}.status-dot.online{background:#16a34a;box-shadow:0 0 10px #22c55e80}.status-dot.offline{background:#dc2626;box-shadow:0 0 10px #ef444480}.status-card__admin,.status-card__ping{margin:0;color:#0f172a}.status-card__payload{margin:0;font-family:JetBrains Mono,Consolas,monospace;font-size:.85rem;padding:.6rem;border-radius:10px;background:#0f172a;color:#f8fafc;max-height:120px;overflow:auto;white-space:pre-wrap}.super-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem}.super-card{background:#fffffff0;border-radius:20px;padding:1.5rem;box-shadow:0 25px 45px #0f172a1f;display:flex;flex-direction:column;gap:1rem}.super-form{display:flex;flex-direction:column;gap:.75rem}.super-form.inline{border-top:1px solid rgba(15,23,42,.1);padding-top:.75rem;margin-top:.75rem}.super-form label{display:flex;flex-direction:column;gap:.3rem;font-weight:600}.super-form input{border-radius:10px;border:1px solid rgba(15,23,42,.15);padding:.5rem .75rem}.super-form button{border-radius:10px;border:none;background:linear-gradient(90deg,#1d4ed8,#3b82f6);color:#fff;padding:.55rem 1rem;font-weight:600;cursor:pointer}.super-user-list{display:flex;flex-direction:column;gap:1rem;max-height:70vh;overflow:auto}.super-user-card{border:1px solid rgba(15,23,42,.06);border-radius:16px;padding:1rem;display:flex;flex-direction:column;gap:.75rem;background:#f8fafc}.super-user-card__header{display:flex;justify-content:space-between;align-items:center;color:#475569}.super-user-card__devices{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.super-user-card__devices li{display:flex;justify-content:space-between;font-size:.95rem;color:#0f172a}.super-user-card__devices small{color:#94a3b8;font-family:JetBrains Mono,Consolas,monospace}.super-user-card__empty{color:#94a3b8}.popup-overlay{position:fixed;inset:0;background:#0f172a66;display:flex;align-items:center;justify-content:center;z-index:50;padding:1rem}.popup-card{background:#fff;border-radius:20px;padding:1.5rem;max-width:360px;width:100%;text-align:center;box-shadow:0 25px 45px #0f172a33}.popup-card--error{border:2px solid #f87171}.popup-card--info{border:2px solid #38bdf8}.popup-card p{margin-top:0;margin-bottom:1rem;font-weight:600}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#0f172ae6;padding:.5rem;display:flex;gap:.5rem}.bottom-nav__btn{flex:1;border-radius:12px;border:none;padding:.6rem;font-weight:600;cursor:pointer;color:#e2e8f0;background:#ffffff1a}.bottom-nav__btn.active{background:linear-gradient(90deg,#2563eb,#3b82f6);color:#fff}.app-header h1{font-size:1.5rem}.auth-panel{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:linear-gradient(135deg,#0f172a,#1e293b)}.auth-card{width:min(420px,100%);padding:2.5rem;border-radius:24px;background:#fffffff2;box-shadow:0 30px 60px #00000040}.auth-card h1{margin:0}.auth-brand{display:flex;flex-direction:column;align-items:center;gap:.4rem;margin-bottom:1rem}.auth-logo{width:min(120px,50%);height:auto}.auth-brand__label{margin:0;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#2563eb}.auth-subtitle{margin:.5rem 0 1.5rem;color:#475569}.auth-form{display:flex;flex-direction:column;gap:1rem}.form-error{margin:0;color:#dc2626;font-weight:600}@media(max-width:640px){.app-header{flex-direction:column}.header-actions{width:100%;justify-content:space-between}.settings-card{padding:1.25rem}.view-switcher{flex-direction:column}}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#0f172a;background-color:#e2e8f0;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(135deg,#e2e8f0,#cbd5f5)}#root{min-height:100vh}h1,h2,h3,h4,h5,h6{margin:0;line-height:1.2}button{border-radius:999px;border:none;padding:.65rem 1.4rem;font-weight:600;font-size:.95rem;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;background:linear-gradient(90deg,#2563eb,#3b82f6);color:#fff;box-shadow:0 10px 20px #2563eb4d}button:disabled{opacity:.6;cursor:not-allowed;box-shadow:none}button:hover:not(:disabled){transform:translateY(-1px)}button.ghost{background:transparent;color:#1e293b;border:1px solid rgba(15,23,42,.3);box-shadow:none}label{display:flex;flex-direction:column;font-weight:600;color:#0f172a;gap:.35rem}input{border-radius:12px;border:1px solid rgba(15,23,42,.1);padding:.65rem .9rem;font-size:1rem;font-family:inherit;transition:border .2s ease,box-shadow .2s ease;background:#fffffff2}input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f633}
