:root{
    --prd-bg:#f6f8ff;
    --prd-panel:#ffffff;
    --prd-border:#e5e9f5;
    --prd-border-strong:#d8deef;
    --prd-text:#172033;
    --prd-muted:#6c7691;
    --prd-soft:#eef2ff;
    --prd-primary:#6257ff;
    --prd-primary-2:#7a4dff;
    --prd-green:#13b978;
    --prd-orange:#ff9c2e;
    --prd-red:#ff5d72;
    --prd-shadow:0 18px 40px rgba(33,42,80,.08);
}

*{box-sizing:border-box}

body{
    margin:0;
    background:var(--prd-bg);
    color:var(--prd-text);
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.pr-dashboard-shell{
    min-height:100vh;
    display:grid;
    grid-template-columns:270px minmax(0,1fr);
    background:
        radial-gradient(circle at top left,rgba(98,87,255,.12),transparent 30%),
        radial-gradient(circle at bottom right,rgba(122,77,255,.10),transparent 32%),
        var(--prd-bg);
}

.pr-dashboard-sidebar{
    background:rgba(255,255,255,.82);
    border-right:1px solid var(--prd-border);
    padding:26px 20px;
    display:flex;
    flex-direction:column;
    gap:22px;
    position:sticky;
    top:0;
    height:100vh;
    backdrop-filter:blur(22px);
}

.pr-dashboard-brand{
    display:flex;
    gap:13px;
    align-items:center;
    margin-bottom:8px;
}

.pr-dashboard-logo{
    width:42px;
    height:42px;
    border-radius:14px;
    background:linear-gradient(135deg,#5067ff,#8a49ff);
    display:grid;
    place-items:center;
    color:white;
    font-weight:900;
    letter-spacing:-1px;
    box-shadow:0 12px 24px rgba(98,87,255,.24);
}

.pr-dashboard-brand strong{
    display:block;
    font-size:17px;
}

.pr-dashboard-brand span{
    display:block;
    color:var(--prd-muted);
    font-size:12px;
    margin-top:2px;
}

.pr-dashboard-nav{
    display:grid;
    gap:6px;
}

.pr-dashboard-nav-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 13px;
    border-radius:14px;
    color:#34405b;
    text-decoration:none;
    font-weight:700;
}

.pr-dashboard-nav-item:hover,
.pr-dashboard-nav-item.is-active{
    background:linear-gradient(90deg,#eef0ff,#f8f7ff);
    color:var(--prd-primary);
}

.pr-dashboard-nav-item span{
    width:22px;
    text-align:center;
    color:inherit;
}

.pr-dashboard-sidebar-card,
.pr-dashboard-upgrade-card,
.pr-dashboard-card,
.pr-dashboard-metric{
    background:var(--prd-panel);
    border:1px solid var(--prd-border);
    border-radius:20px;
    box-shadow:var(--prd-shadow);
}

.pr-dashboard-sidebar-card{
    padding:17px;
    margin-top:auto;
}

.pr-dashboard-sidebar-card strong,
.pr-dashboard-sidebar-card small{
    display:block;
}

.pr-dashboard-sidebar-card small{
    color:var(--prd-muted);
    margin-top:4px;
}

.pr-dashboard-eyebrow{
    display:block;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:11px;
    font-weight:900;
    color:var(--prd-primary);
    margin-bottom:7px;
}

.pr-dashboard-upgrade-card{
    padding:17px;
    background:linear-gradient(135deg,#fff,#f3f1ff);
}

.pr-dashboard-upgrade-card span{
    font-size:22px;
}

.pr-dashboard-upgrade-card strong{
    display:block;
    margin:8px 0 5px;
}

.pr-dashboard-upgrade-card p{
    margin:0;
    color:var(--prd-muted);
    font-size:13px;
    line-height:1.45;
}

.pr-dashboard-main{
    min-width:0;
}

.pr-dashboard-topbar{
    height:76px;
    background:rgba(255,255,255,.86);
    border-bottom:1px solid var(--prd-border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 34px;
    position:sticky;
    top:0;
    z-index:9;
    backdrop-filter:blur(22px);
}

.pr-dashboard-search{
    width:min(460px,40vw);
    display:flex;
    align-items:center;
    gap:10px;
    background:#fff;
    border:1px solid var(--prd-border);
    border-radius:16px;
    padding:0 14px;
    box-shadow:0 8px 22px rgba(25,34,74,.04);
}

.pr-dashboard-search input{
    border:0;
    background:transparent;
    width:100%;
    min-height:44px;
    color:var(--prd-text);
}

.pr-dashboard-search input:focus{
    outline:none;
}

.pr-dashboard-topbar-actions{
    display:flex;
    align-items:center;
    gap:14px;
}

.pr-dashboard-system-pill{
    display:inline-flex;
    align-items:center;
    gap:9px;
    padding:10px 16px;
    border:1px solid var(--prd-border);
    border-radius:999px;
    background:#fff;
    font-weight:800;
    color:#24304b;
}

.pr-dashboard-system-pill i{
    width:9px;
    height:9px;
    border-radius:50%;
    background:var(--prd-green);
}

.pr-dashboard-help{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:50%;
    border:1px solid var(--prd-border);
    font-weight:900;
    color:var(--prd-muted);
    background:#fff;
}

.pr-dashboard-user-chip{
    display:flex;
    align-items:center;
    gap:11px;
    border:1px solid var(--prd-border);
    border-radius:16px;
    padding:8px 13px;
    background:#fff;
}

.pr-dashboard-user-chip>span{
    width:32px;
    height:32px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#18243a,#4c5cff);
    color:white;
    font-weight:900;
}

.pr-dashboard-user-chip strong,
.pr-dashboard-user-chip small{
    display:block;
}

.pr-dashboard-user-chip small{
    color:var(--prd-muted);
    font-size:11px;
    margin-top:1px;
}

.pr-dashboard-content{
    padding:32px 34px 46px;
}

.pr-dashboard-hero{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:22px;
}

.pr-dashboard-hero-icon{
    width:58px;
    height:58px;
    border-radius:18px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#f1efff,#fff);
    color:var(--prd-primary);
    font-size:28px;
    box-shadow:var(--prd-shadow);
    border:1px solid var(--prd-border);
}

.pr-dashboard-hero h1{
    margin:0;
    font-size:34px;
    line-height:1.05;
    letter-spacing:-.04em;
    color:var(--prd-text);
}

.pr-dashboard-hero p{
    margin:8px 0 0;
    color:var(--prd-muted);
    font-size:15px;
    max-width:760px;
}

.pr-dashboard-hero .pr-dashboard-button{
    margin-left:auto;
}

.pr-dashboard-button{
    border:0;
    border-radius:14px;
    padding:12px 18px;
    background:linear-gradient(135deg,var(--prd-primary),var(--prd-primary-2));
    color:white;
    font-weight:900;
    text-decoration:none;
    box-shadow:0 14px 26px rgba(98,87,255,.22);
    cursor:pointer;
}

.pr-dashboard-grid{
    display:grid;
    gap:18px;
    margin-bottom:22px;
}

.pr-dashboard-grid-4{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

.pr-dashboard-metric{
    padding:20px;
}

.pr-dashboard-metric span{
    width:42px;
    height:42px;
    border-radius:14px;
    background:var(--prd-soft);
    color:var(--prd-primary);
    display:grid;
    place-items:center;
    font-size:22px;
    margin-bottom:12px;
}

.pr-dashboard-metric small,
.pr-dashboard-metric em{
    display:block;
    color:var(--prd-muted);
    font-style:normal;
}

.pr-dashboard-metric strong{
    display:block;
    margin:8px 0 4px;
    font-size:28px;
    letter-spacing:-.04em;
    color:var(--prd-text);
}

.pr-dashboard-metric em{
    font-size:12px;
    color:var(--prd-green);
    font-weight:800;
}

.pr-dashboard-layout{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:22px;
}

.pr-dashboard-span-8{
    grid-column:span 8;
}

.pr-dashboard-span-4{
    grid-column:span 4;
}

.pr-dashboard-card{
    padding:22px;
}

.pr-dashboard-card h2{
    margin:0 0 10px;
    font-size:18px;
    letter-spacing:-.02em;
    color:var(--prd-text);
}

.pr-dashboard-card p{
    color:var(--prd-muted);
    line-height:1.55;
}

.pr-dashboard-card-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
}

.pr-dashboard-card-head p{
    margin:4px 0 0;
}

.pr-dashboard-card-head a{
    font-weight:900;
    text-decoration:none;
    color:var(--prd-primary);
}

.pr-dashboard-table{
    border:1px solid var(--prd-border);
    border-radius:16px;
    overflow:hidden;
    background:#fff;
}

.pr-dashboard-table-row{
    display:grid;
    grid-template-columns:1.1fr 2.2fr .8fr .7fr;
    gap:14px;
    align-items:center;
    padding:14px 16px;
    border-bottom:1px solid var(--prd-border);
    font-size:13px;
}

.pr-dashboard-table-row:last-child{
    border-bottom:0;
}

.pr-dashboard-table-row.is-head{
    background:#f9fbff;
    color:var(--prd-muted);
    text-transform:uppercase;
    font-size:11px;
    font-weight:900;
}

.pr-dashboard-table-row b{
    color:var(--prd-text);
}

.pr-dashboard-table mark{
    display:inline-flex;
    align-items:center;
    width:max-content;
    border-radius:999px;
    padding:5px 10px;
    font-weight:900;
    font-size:12px;
    background:#edf1f8;
    color:#69738c;
}

.pr-dashboard-table mark.is-warn{
    background:#fff3e6;
    color:#be6a10;
}

.pr-dashboard-status-list{
    margin:0;
    padding:0;
    display:grid;
    gap:0;
    border:1px solid var(--prd-border);
    border-radius:16px;
    overflow:hidden;
}

.pr-dashboard-status-list li{
    list-style:none;
    display:flex;
    justify-content:space-between;
    gap:14px;
    padding:13px 15px;
    border-bottom:1px solid var(--prd-border);
    margin:0;
}

.pr-dashboard-status-list li:last-child{
    border-bottom:0;
}

.pr-dashboard-status-list span{
    color:var(--prd-muted);
}

.pr-dashboard-status-list strong{
    color:var(--prd-green);
}

@media (max-width:1200px){
    .pr-dashboard-grid-4{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .pr-dashboard-span-8,
    .pr-dashboard-span-4{
        grid-column:span 12;
    }

    .pr-dashboard-table-row{
        grid-template-columns:1fr;
    }
}

@media (max-width:782px){
    .pr-dashboard-shell{
        grid-template-columns:1fr;
    }

    .pr-dashboard-sidebar{
        position:relative;
        top:0;
        height:auto;
    }

    .pr-dashboard-topbar{
        padding:12px;
        height:auto;
        gap:12px;
        flex-wrap:wrap;
    }

    .pr-dashboard-search{
        width:100%;
    }

    .pr-dashboard-content{
        padding:20px 14px;
    }

    .pr-dashboard-grid-4{
        grid-template-columns:1fr;
    }

    .pr-dashboard-hero{
        align-items:flex-start;
        flex-wrap:wrap;
    }

    .pr-dashboard-hero .pr-dashboard-button{
        margin-left:0;
    }
}

.pr-dashboard-login-body{
    min-height:100vh;
    display:grid;
    place-items:center;
    background:
        radial-gradient(circle at top left,rgba(98,87,255,.16),transparent 34%),
        radial-gradient(circle at bottom right,rgba(122,77,255,.14),transparent 34%),
        var(--prd-bg);
}

.pr-dashboard-login-wrap{
    width:min(440px,calc(100vw - 32px));
}

.pr-dashboard-login-card{
    background:var(--prd-panel);
    border:1px solid var(--prd-border);
    border-radius:26px;
    box-shadow:var(--prd-shadow);
    padding:34px;
}

.pr-dashboard-login-logo{
    width:54px;
    height:54px;
    border-radius:18px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#5067ff,#8a49ff);
    color:white;
    font-weight:900;
    margin-bottom:22px;
}

.pr-dashboard-login-card h1{
    margin:0;
    font-size:32px;
    letter-spacing:-.04em;
}

.pr-dashboard-login-card p{
    color:var(--prd-muted);
    margin:8px 0 24px;
}

.pr-dashboard-login-form{
    display:grid;
    gap:16px;
}

.pr-dashboard-login-form label span{
    display:block;
    font-size:13px;
    font-weight:800;
    margin-bottom:7px;
}

.pr-dashboard-login-form input{
    width:100%;
    min-height:46px;
    border:1px solid var(--prd-border);
    border-radius:14px;
    padding:0 14px;
    font:inherit;
}

.pr-dashboard-login-form input:focus{
    outline:2px solid rgba(98,87,255,.18);
    border-color:var(--prd-primary);
}

.pr-dashboard-login-form button{
    min-height:48px;
    border:0;
    border-radius:14px;
    background:linear-gradient(135deg,var(--prd-primary),var(--prd-primary-2));
    color:white;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 14px 26px rgba(98,87,255,.22);
}

.pr-dashboard-login-error{
    background:#fff1f3;
    color:#b42335;
    border:1px solid #ffd0d7;
    padding:12px 14px;
    border-radius:14px;
    margin-bottom:18px;
    font-weight:800;
}

.pr-dashboard-user-chip{
    border:1px solid var(--prd-border);
    border-radius:16px;
    padding:8px 13px;
    background:#fff;
    display:flex;
    align-items:center;
    gap:11px;
    cursor:pointer;
    font:inherit;
    text-align:left;
}

.status-online { color: #13b978; }
.status-connecting { color: #f9c26e; }
.status-offline { color: #ff5d72; }