:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#20312e;background:#f5f7f6;font-synthesis:none;--muted:#6b7773;--border:#e1e7e3;--green:#167044;--navy:#142c28}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #398d68;outline-offset:4px}[hidden]{display:none!important}
.topbar{background:var(--navy);color:#fff}.topbar-inner{max-width:1240px;margin:auto;padding:22px 40px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:inherit;font-size:26.25px;font-weight:650;letter-spacing:-.7px}.brand-light{font-weight:400;color:#ccd8d2}.brand-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#b6efcb;color:#183c30;font-family:Georgia,serif;font-size:38.75px;margin-right:5px}.header-label{font-size:12.5px;letter-spacing:2px;color:#a9c3b7;font-weight:600}
.container{max-width:1240px;margin:auto;padding:48px 40px 24px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:36px}.eyebrow{font-size:12.5px;letter-spacing:1.8px;font-weight:700;color:var(--muted);margin:0 0 12px}h1{font-size:47.5px;letter-spacing:-1.5px;line-height:1.2;margin:0 0 12px;font-weight:650}.heading-dot{color:#3f9e72}.intro{font-size:17.5px;color:var(--muted);margin:0;line-height:1.6}.button{border:1px solid #d6dfd9;background:#fff;color:#304d41;border-radius:7px;min-height:40px;padding:9px 15px;font-size:15px;font-weight:600;display:flex;align-items:center;gap:8px;box-shadow:0 1px 2px #17362a05}.button:hover{background:#edf5f0}.refresh-button>span{font-size:26.25px;line-height:1}
.summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--border);border-radius:10px;background:#fff;margin-bottom:43px;box-shadow:0 3px 12px #163c2403}.stat{padding:23px 26px;display:flex;flex-direction:column;gap:10px}.stat+.stat{border-left:1px solid var(--border)}.stat-label{font-size:15px;color:#596a60;display:flex;align-items:center;gap:7px}.stat strong{font-size:42.5px;letter-spacing:-1px;font-weight:600;line-height:1.1}.stat-note{color:#8a948f;font-size:13.75px}.dot{display:inline-block;height:7px;width:7px;border-radius:50%;flex-shrink:0}.online-dot{background:#329567}.offline-dot{background:#c57960}.unknown-dot{background:#9aa49e}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}h2{font-size:21.25px;font-weight:650;margin:0;letter-spacing:-.3px;display:flex;align-items:center;gap:9px}.count-badge{font-size:12.5px;border:1px solid #dce5df;border-radius:5px;padding:3px 6px;color:#66796c;font-weight:500;background:#eaf0ec}.search{display:flex;align-items:center;gap:8px;border:1px solid #dfe6e1;border-radius:7px;background:#fff;padding:0 12px;color:#7d8b82;width:285px}.search>span:first-child{font-size:31.25px;line-height:1}.search input{width:100%;min-width:0;background:transparent;border:0;padding:11px 0;font-size:15px;color:#334c3e}.search input:focus-visible{outline-offset:1px}.search input::placeholder{color:#8a958e}.sync-line{display:flex;justify-content:space-between;gap:16px;color:#7a887f;font-size:13.75px;margin-bottom:19px;line-height:1.6}.device-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;min-height:120px}.device-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:22px;text-align:left;color:inherit;box-shadow:0 2px 6px #193e2603;display:flex;flex-direction:column;min-width:0;transition:border-color .16s,box-shadow .16s,transform .16s}.device-card:hover{border-color:#a0bcab;box-shadow:0 5px 18px #193e260a;transform:translateY(-2px)}.card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:20px}.device-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:9px;background:#f0f5f1;border:1px solid #e5ede7;color:#61836b;font-family:Georgia,serif;font-size:35px}.status-badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;font-size:12.5px;font-weight:650;padding:5px 8px;white-space:nowrap}.status-online{background:#e9f6ee;color:#227548}.status-offline{background:#fcf0e9;color:#a5664c}.status-unknown{background:#f0f2f0;color:#69786e}.status-badge .dot{height:5px;width:5px;background:currentColor}.device-name{font-size:23.75px;font-weight:650;letter-spacing:-.5px;margin-bottom:6px;overflow-wrap:anywhere}.device-customer{font-size:15px;color:#7f8b82;margin-bottom:22px;overflow-wrap:anywhere}.card-info{display:flex;justify-content:space-between;gap:12px;font-size:13.75px;line-height:1.6;margin-bottom:9px}.info-label{color:#849087;flex-shrink:0}.info-value{color:#4b6153;text-align:right;overflow-wrap:anywhere;min-width:0}.card-footer{margin-top:10px;padding-top:16px;border-top:1px solid #edf0ed;display:flex;justify-content:space-between;align-items:center;font-size:13.75px;color:#49785d}.card-arrow{font-size:21.25px}.empty-state{text-align:center;padding:44px 20px;color:var(--muted);font-size:17.5px;background:#fff;border:1px dashed #d7e1da;border-radius:10px}.page-footer{border-top:1px solid var(--border);margin-top:36px;padding-top:18px;display:flex;justify-content:space-between;gap:20px;font-size:12.5px;line-height:1.7;color:#8b968f}.page-footer>span:first-child{display:flex;align-items:center;gap:7px}.page-footer .dot{height:5px;width:5px}.error-banner{padding:14px 18px;color:#8a4830;background:#fff3e8;border:1px solid #ecd6c5;border-radius:8px;margin:0 0 22px;font-size:16.25px;line-height:1.6}.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:min(600px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--border);border-radius:13px;color:inherit;background:#fff;box-shadow:0 24px 100px #10251a30}dialog::backdrop{background:#10271e80;backdrop-filter:blur(3px)}.dialog-header{padding:26px 28px 22px;display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--border);gap:16px}.dialog-header h2{font-size:31.25px;overflow-wrap:anywhere;display:block}.dialog-header .eyebrow{margin-bottom:7px}.close-button{border:1px solid var(--border);border-radius:6px;color:#526d5c;background:#fff;font-size:31.25px;line-height:1;width:32px;height:32px;flex-shrink:0}.close-button:hover{background:#eff5f0}#dialog-content{padding:24px 28px}.detail-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.detail-status p{font-size:15px;color:var(--muted);margin:0;overflow-wrap:anywhere}.detail-section+.detail-section{margin-top:26px}.detail-section h3{font-size:13.75px;letter-spacing:1px;text-transform:uppercase;color:#7a897f;margin:0 0 12px}.detail-list{margin:0}.detail-row{display:grid;grid-template-columns:155px minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px solid #f0f3f0;font-size:15px;line-height:1.6}.detail-row dt{color:#7c8c81}.detail-row dd{margin:0;color:#324e3c;overflow-wrap:anywhere}.detail-stale{font-size:15px;color:#a5664c;line-height:1.6;margin:0 0 18px}.dialog-footer{border-top:1px solid var(--border);padding:15px 28px;font-size:12.5px;color:#87968a;background:#f9fbf9}
@media(min-width:1100px){.device-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.device-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:22px 18px}.stat-note{font-size:12.5px}.container{padding-top:36px}}@media(max-width:600px){.topbar-inner{padding:18px 20px}.header-label{font-size:10px;letter-spacing:1px}.brand{font-size:22.5px}.container{padding:30px 20px 20px}.page-heading{align-items:flex-start;margin-bottom:27px}h1{font-size:37.5px}.eyebrow{font-size:10px;letter-spacing:1.3px}.intro{font-size:15px;max-width:230px}.refresh-button{font-size:0;padding:7px 11px;min-height:36px}.refresh-button>span{font-size:27.5px}.summary{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:30px}.stat{padding:20px}.stat:nth-child(3){border-left:0}.stat:nth-child(n+3){border-top:1px solid var(--border)}.stat strong{font-size:37.5px}.stat-note{font-size:12.5px}.device-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column;gap:14px}.search{width:100%}.sync-line{font-size:12.5px;flex-direction:column;gap:2px}.page-footer{flex-direction:column;gap:4px;margin-top:28px}.dialog-header{padding:22px}#dialog-content{padding:22px}.detail-row{grid-template-columns:120px minmax(0,1fr)}.dialog-footer{padding:15px 22px}.detail-status{align-items:flex-start}.detail-status p{max-width:70%}}@media(prefers-reduced-motion:reduce){*{transition:none!important}.device-card:hover{transform:none}}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.header-actions form {
    margin: 0;
}

.logout-button {
    background: transparent;
    border-color: #527166;
    color: #e3eee7;
}

.logout-button:hover {
    background: #28493e;
}

.login-container {
    max-width: 620px;
    padding-top: 70px;
}

.login-panel {
    padding: 36px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 3px 12px #163c2403;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.login-form label {
    color: #596a60;
    font-size: 15px;
    font-weight: 600;
}

.login-form input[type="password"] {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #d6dfd9;
    border-radius: 7px;
    background: #fff;
    color: #20312e;
    font-size: 17.5px;
}

.login-button {
    justify-content: space-between;
    margin-top: 8px;
    padding: 13px 15px;
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.login-button:hover {
    background: #28493e;
}

.login-error {
    margin: 24px 0 0;
    font-size: 15px;
}

@media (max-width: 600px) {
    .header-actions {
        gap: 8px;
    }

    .header-actions .header-label {
        display: none;
    }

    .logout-button {
        padding: 8px 10px;
        font-size: 13.75px;
    }

    .login-container {
        padding-top: 36px;
    }

    .login-panel {
        padding: 26px 22px;
    }

    .login-panel .intro {
        max-width: none;
    }
}
