:root{font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;color:#18243b;background:#f5f7fb;font-synthesis:none;--blue:#2458d7;--muted:#69768c;--line:#e3e8f0;--green:#18794e;--radius:14px}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.5}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}[hidden]{display:none!important}svg{height:20px;width:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #9ebafd;outline-offset:3px}input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px #2458d71a}.button{border:1px solid transparent;border-radius:9px;display:inline-flex;justify-content:center;align-items:center;gap:9px;padding:10px 16px;font-size:.9375rem;font-weight:600;min-height:44px;transition:background .15s}.primary{background:var(--blue);color:#fff;box-shadow:0 3px 6px #2458d71c}.primary:hover{background:#1948ba}.secondary{background:#fff;border-color:#dce2ec;color:#33445e}.secondary:hover,.quiet:hover{background:#f0f4fa}.quiet{background:transparent;color:var(--muted);padding:8px 12px}.full{width:100%}.brand-mark{width:48px;height:48px;display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--blue);border-radius:13px;padding:12px;box-shadow:0 5px 12px #2458d726}.brand-mark span{background:white;border-radius:2px}.brand-mark span:nth-child(2),.brand-mark span:nth-child(3){opacity:.6}.brand-mark.small{width:34px;height:34px;border-radius:9px;padding:8px;gap:3px;box-shadow:none}.eyebrow{font-size:.75rem;letter-spacing:.12em;font-weight:700;color:var(--blue);margin:0 0 8px}.login-view{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:40px 20px;background:radial-gradient(ellipse at 50% 5%,#e5ecfc 0,transparent 60%)}.login-card{width:430px;background:#fff;border:1px solid var(--line);padding:40px;border-radius:20px;box-shadow:0 18px 65px #1b355a0b}.login-card .brand-mark{margin-bottom:28px}.login-card .eyebrow{font-size:.75rem;color:var(--muted);margin-bottom:12px}.login-card h1{font-size:1.875rem;line-height:1.2;letter-spacing:-.045em;margin:0 0 13px;font-weight:650}.intro{color:var(--muted);font-size:.9375rem;margin:0 0 28px;line-height:1.65}label{display:block;font-size:.875rem;font-weight:600;color:#34435a;margin:0 0 8px}input{display:block;width:100%;height:46px;border:1px solid #d9e0eb;border-radius:9px;background:#fff;padding:10px 12px;color:#18243b;margin-bottom:20px;font-size:1rem}.login-card .primary{margin-top:6px}.form-error{color:#ac3131;background:#fff2f1;border-radius:7px;font-size:.875rem;padding:10px 12px;margin:0 0 16px;line-height:1.5}.login-footer{border-top:1px solid #edf0f5;margin-top:28px;padding-top:20px;display:flex;justify-content:center;align-items:center;gap:7px;font-size:.8125rem;color:#8994a5}.login-footer svg{width:14px;height:14px}.setup-message{font-size:.9375rem;background:#f3f6fb;border:1px solid var(--line);border-radius:9px;padding:16px;color:#54647d}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line)}.topbar-inner{height:100%;max-width:1200px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:0 36px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none}.brand strong{font-size:1.125rem;font-weight:700;letter-spacing:-.02em}.server-tag{font-size:.75rem;font-weight:700;color:#7a879a;border-left:1px solid #dce2eb;padding-left:14px;margin-left:5px;letter-spacing:.07em}.account{display:flex;align-items:center;gap:16px}.account>span{font-size:.875rem;color:#7a879a}.account .button{font-size:.875rem}.account svg{width:17px;height:17px}.dashboard{max-width:1200px;margin:0 auto;padding:44px 36px 36px}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}h1{font-size:2rem;font-weight:650;letter-spacing:-.035em;line-height:1.2;margin:0 0 10px}.subtitle{color:var(--muted);margin:0;font-size:.9375rem}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:30px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;box-shadow:0 2px 4px #21324e02}.stat-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:600;font-size:.875rem;color:#56647b}.stat-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:9px}.stat-icon.blue{color:#3866d5;background:#edf3ff}.stat-icon.green{color:#279367;background:#eaf7f0}.stat-icon.gray{color:#8793a5;background:#f1f3f7}.stat-icon svg{width:19px;height:19px}.stat-card strong{display:block;font-size:2.25rem;line-height:1.2;letter-spacing:-.05em;font-weight:650;margin:10px 0 7px;font-variant-numeric:tabular-nums}.stat-card p{font-size:.8125rem;color:#8390a3;margin:0}.notice{border:1px solid #efd59b;background:#fffbeb;border-radius:10px;color:#8c661e;padding:13px 16px;font-size:.875rem;margin-bottom:20px}.devices-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 3px 8px #21324e03}.panel-toolbar{padding:21px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-title{display:flex;align-items:center;gap:10px}h2{font-size:1rem;font-weight:650;margin:0}.count-tag{border-radius:6px;background:#eef2f8;color:#60718e;padding:1px 7px;font-size:.75rem;font-weight:650}.filters{display:flex;padding:3px;border:1px solid #e9edf3;background:#f7f9fc;border-radius:9px;gap:2px}.filter{font-size:.8125rem;font-weight:600;border:0;background:transparent;color:#7c889b;padding:6px 14px;border-radius:6px;min-height:32px}.filter.active{background:#fff;color:#2a4c8c;box-shadow:0 1px 4px #1e305218}.filter:hover{color:var(--blue)}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}thead{background:#fafbfd}th{padding:12px 24px;border-top:1px solid #edf0f5;border-bottom:1px solid #edf0f5;font-size:.75rem;font-weight:650;letter-spacing:.065em;color:#8590a2}td{padding:20px 24px;border-bottom:1px solid #edf0f5;font-size:.875rem}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdff}.device-cell{display:flex;align-items:center;gap:13px}.device-icon{width:39px;height:39px;display:flex;align-items:center;justify-content:center;border:1px solid #e7ecf4;background:#f7f9fd;border-radius:10px;color:#7384a0;flex-shrink:0}.device-icon svg{width:21px;height:21px}.device-name{font-size:.9375rem;font-weight:600;color:#26364f;max-width:380px;overflow:hidden;text-overflow:ellipsis}.device-id{font-size:.75rem;color:#8b97a9;margin-top:3px;letter-spacing:.025em}.unnamed{font-weight:500;color:#8590a2}.status{display:inline-flex;align-items:center;gap:6px;font-size:.75rem;font-weight:600;border-radius:6px;padding:4px 9px}.status::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.status.online{color:#21815b;background:#edf8f1}.status.offline{color:#7f8a9b;background:#f1f3f7}.status.unknown{color:#a97925;background:#fff6df}.ip-cell{font-variant-numeric:tabular-nums;color:#7d8b9e;font-size:.8125rem}.edit-button{width:34px;height:34px;border:0;border-radius:7px;background:transparent;color:#8492a8;display:flex;align-items:center;justify-content:center}.edit-button:hover{background:#edf3ff;color:var(--blue)}.edit-button svg{width:17px;height:17px}td:last-child{width:64px;padding-left:10px}.panel-footer{padding:15px 24px;border-top:1px solid #edf0f5;display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:.75rem;color:#95a0b1}.panel-footer>span:first-child{display:flex;align-items:center;gap:7px}.tiny-dot{width:5px;height:5px;border-radius:50%;background:#2da878;display:inline-block}.tiny-dot.warning{background:#c29735}.status-note{font-size:.75rem;color:#929eaf;margin:15px 2px;max-width:900px;line-height:1.7}.page-footer{max-width:1200px;margin:0 auto;padding:0 36px 30px;color:#a2acba;font-size:.75rem;display:flex;justify-content:space-between;gap:15px}.empty-state{text-align:center;padding:50px 24px 58px;color:#92a0b3}.empty-state>svg{width:32px;height:32px;margin-bottom:12px;stroke-width:1.3}.empty-state h3{font-size:1rem;color:#667791;font-weight:600;margin:0 0 7px}.empty-state p{font-size:.875rem;margin:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}dialog{width:440px;max-width:calc(100% - 32px);padding:28px;border:1px solid var(--line);border-radius:17px;box-shadow:0 25px 80px #14223a35;color:#18243b}dialog::backdrop{background:#14223a66;backdrop-filter:blur(2px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.dialog-icon{width:41px;height:41px;border-radius:11px;background:#edf3ff;color:var(--blue);display:flex;align-items:center;justify-content:center}.icon-button{border:0;background:transparent;color:#8b98ab;display:flex;padding:7px;border-radius:6px}.icon-button:hover{background:#f2f5fa}dialog h2{font-size:1.375rem;letter-spacing:-.025em;margin-bottom:6px}.dialog-description{font-size:.875rem;color:#8995a7;margin:0 0 25px}dialog input{margin-bottom:9px}.input-hint{font-size:.75rem;color:#98a2b2;margin:0 0 24px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:8px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:10px;background:#1d3a2e;color:#fff;font-size:.875rem;box-shadow:0 5px 25px #192e3520;z-index:10}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:700px){.topbar-inner{padding:0 20px}.account>span,.server-tag{display:none}.dashboard{padding:30px 18px}.heading-row{align-items:flex-start;gap:12px}.heading-row h1{font-size:1.65rem}.subtitle{font-size:.875rem;max-width:230px}.heading-row .button{font-size:0;width:42px;height:42px;padding:10px}.heading-row .button svg{width:19px}.stats{gap:9px;margin-bottom:22px}.stat-card{padding:15px 13px;border-radius:11px}.stat-label{font-size:.8125rem}.stat-icon{display:none}.stat-card strong{font-size:1.875rem;margin:9px 0 4px}.stat-card p{display:none}.panel-toolbar{padding:16px;flex-wrap:wrap}.filter{padding:6px 11px}.panel-footer{padding:13px 16px;flex-direction:column;align-items:flex-start;gap:5px}th{padding:11px 16px}td{padding:17px 16px}.device-name{max-width:200px}.ip-cell{font-size:.75rem}.page-footer{padding:0 20px 24px;flex-direction:column;gap:4px}.login-card{padding:30px 26px}.login-card h1{font-size:1.7rem}.login-view{padding:24px 18px}dialog{padding:24px}.status-note{font-size:.75rem}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Dimensioni leggibili per i dati e i controlli principali. */
.filter,.status,.ip-cell,.device-id{font-size:.875rem}.status-note{font-size:.8125rem}.preview-label{max-width:1128px;margin:16px auto 0;padding:10px 16px;background:#fff6df;border:1px solid #efd59b;border-radius:9px;color:#8c661e;font-size:.875rem}
