*,*::before,*::after{
    box-sizing:border-box;
    margin:0;
    padding:0
}
:root{
    --bg:#0e0f11;
    --surface:#16181c;
    --surface2:#1e2026;
    --border:#2a2d35;
    --accent:#c8f04b;
    --accent2:#4bf0c8;
    --danger:#f04b6e;
    --text:#e8eaf0;
    --muted:#6b7080;
    --r:10px;
    --mono: "Inter", sans-serif;
    --serif: "Inter", sans-serif;
}
body{
    background:var(--bg);
    color:var(--text);
    font-family:var(--mono);
    font-size:13px;
    min-height:100vh;
    line-height:1.6
}
.lw{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:radial-gradient(ellipse 80% 60% at 20% 80%,rgba(200,240,75,.07),transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%,rgba(75,240,200,.06),transparent 60%),var(--bg)
}
.lb{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:16px;
    padding:48px 40px;
    width:380px;
    position:relative;
    overflow:hidden
}
.lb::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:2px;
    background:linear-gradient(90deg,var(--accent),var(--accent2))
}
.logo{
    font-family:var(--serif);
    font-size:28px;
    font-weight:600;
    color:var(--accent);
    margin-bottom:6px
}
.sub{
    color:var(--muted);
    font-size:12px;
    margin-bottom:36px
}
.fld{
    margin-bottom:16px
}
.fld label{
    display:block;
    color:var(--muted);
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:6px
}
.fld input{
    width:100%;
    background:var(--surface2);
    border:1px solid var(--border);
    border-radius:var(--r);
    padding:10px 14px;
    color:var(--text);
    font-family:var(--mono);
    font-size:13px;
    transition:border-color .2s;
    outline:none
}
.fld input:focus{
    border-color:var(--accent)
}
.btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 20px;
    border-radius:var(--r);
    border:none;
    cursor:pointer;
    font-family:var(--mono);
    font-size:12px;
    font-weight:500;
    text-transform:uppercase;
    letter-spacing:.8px;
    transition:all .2s;
    text-decoration:none
}
.btn-p{
    background:var(--accent);
    color:#0e0f11;
    justify-content:center;
    width:100%;
    margin-top:8px
}
.btn-p:hover{
    background:#d8ff5a;
    transform:translateY(-1px)
}
.btn-g{
    background:transparent;
    color:var(--muted);
    border:1px solid var(--border)
}
.btn-g:hover{
    border-color:var(--accent);
    color:var(--accent)
}
.btn-d{
    background:transparent;
    color:var(--danger);
    border:1px solid rgba(240,75,110,.3)
}
.btn-d:hover{
    background:rgba(240,75,110,.1)
}
.btn-s{
    padding:6px 12px;
    font-size:11px
}
.msg-err{
    background:rgba(240,75,110,.1);
    border:1px solid rgba(240,75,110,.3);
    color:var(--danger);
    padding:10px 14px;
    border-radius:var(--r);
    font-size:12px;
    margin-bottom:16px
}
.msg-ok{
    background:rgba(200,240,75,.1);
    border:1px solid rgba(200,240,75,.3);
    color:var(--accent);
    padding:10px 14px;
    border-radius:var(--r);
    font-size:12px;
    margin-bottom:16px
}
.tb{
    background:var(--surface);
    border-bottom:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 28px;
    height:56px;
    position:sticky;
    top:0;
    z-index:100
}
.tb-logo{
    font-family:var(--serif);
    font-size:20px;
    color:var(--accent);
    font-weight:600
}
.tb-logo span{
    color:var(--muted);
    font-size:12px;
    font-family:var(--mono);
    font-weight:400;
    margin-left:10px
}
.tb-r{
    display:flex;
    align-items:center;
    gap:16px
}
.upill{
    background:var(--surface2);
    border:1px solid var(--border);
    border-radius:20px;
    padding:4px 14px 4px 10px;
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12px
}
.udot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--accent)
}
.rbadge{
    font-size:10px;
    padding:2px 7px;
    border-radius:10px;
    background:rgba(200,240,75,.15);
    color:var(--accent);
    text-transform:uppercase;
    letter-spacing:.5px
}
.rbadge.u{
    background:rgba(75,240,200,.15);
    color:var(--accent2)
}
.tabs{
    display:flex;
    gap:4px;
    padding:0 28px;
    border-bottom:1px solid var(--border);
    background:var(--surface)
}
.tab{
    padding:14px 18px;
    font-size:12px;
    color:var(--muted);
    cursor:pointer;
    border-bottom:2px solid transparent;
    transition:all .2s;
    text-transform:uppercase;
    letter-spacing:.6px;
    background:none;
    border-top:none;
    border-left:none;
    border-right:none;
    font-family:var(--mono)
}
.tab:hover{
    color:var(--text)
}
.tab.active{
    color:var(--accent);
    border-bottom-color:var(--accent)
}
.cnt{
    padding:32px 28px;
    /*max-width:1400px;*/
    margin:0 auto
}
.ph{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    margin-bottom:20px
}
.pt{
    font-family:var(--serif);
    font-size:24px;
    font-weight:300
}
.pt strong{
    color:var(--accent);
    font-weight:600
}
.card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:12px;
    padding:24px
}
.ct{
    font-family:var(--serif);
    font-size:16px;
    font-weight:400;
    margin-bottom:6px
}
.cs{
    color:var(--muted);
    font-size:11px;
    margin-bottom:20px;
    line-height:1.5
}
.cg{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-top:24px
}
.cl{
    display:flex;
    flex-direction:column;
    gap:6px
}
.ci{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:var(--surface2);
    border:1px solid var(--border);
    border-radius:8px;
    padding:10px 14px;
    transition:border-color .2s
}
.ci:hover{
    border-color:var(--accent)
}
.ci label{
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
    flex:1;
    color:var(--text);
    font-size:12px
}
.ctype{
    font-size:10px;
    color:var(--muted);
    background:var(--bg);
    padding:2px 8px;
    border-radius:4px;
    border:1px solid var(--border)
}
.tbadge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:var(--surface2);
    border:1px solid var(--border);
    border-radius:var(--r);
    padding:8px 16px;
    font-size:13px;
    margin-bottom:24px
}
.tbdot{
    width:6px;
    height:6px;
    background:var(--accent2);
    border-radius:50%
}
.pksel{
    background:var(--surface2);
    border:1px solid var(--border);
    border-radius:8px;
    padding:10px 14px;
    color:var(--text);
    font-family:var(--mono);
    font-size:12px;
    width:100%;
    max-width:320px;
    margin-bottom:20px;
    outline:none;
    cursor:pointer
}
.pksel:focus{
    border-color:var(--accent)
}
input[type="checkbox"]{
    appearance:none;
    width:16px;
    height:16px;
    border:1.5px solid var(--border);
    border-radius:4px;
    background:var(--bg);
    cursor:pointer;
    flex-shrink:0;
    transition:all .15s;
    position:relative
}
input[type="checkbox"]:checked{
    background:var(--accent);
    border-color:var(--accent)
}
input[type="checkbox"]:checked::after{
    content:'';
    position:absolute;
    left:4px;
    top:1px;
    width:5px;
    height:9px;
    border:2px solid #0e0f11;
    border-top:none;
    border-left:none;
    transform:rotate(45deg)
}
.tbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
    flex-wrap:wrap
}
.tbar-l{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap
}
.sw{
    position:relative
}
.sw input{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--r);
    padding:8px 14px 8px 34px;
    color:var(--text);
    font-family:var(--mono);
    font-size:12px;
    width:240px;
    outline:none;
    transition:border-color .2s
}
.sw input:focus{
    border-color:var(--accent)
}
.si{
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    color:var(--muted);
    pointer-events:none
}
.cpill{
    background:var(--surface2);
    border:1px solid var(--border);
    border-radius:20px;
    padding:4px 12px;
    font-size:11px;
    color:var(--muted)
}
.fsel{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--r);
    padding:8px 12px;
    color:var(--text);
    font-family:var(--mono);
    font-size:12px;
    outline:none;
    cursor:pointer
}
.fsel:focus{
    border-color:var(--accent)
}
/* TABELA — kluczowe: overflow-x:auto dla scrolla */
.tw{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:12px;
    overflow-x:auto
}
.dt{
    width:auto;
    min-width:100%;
    border-collapse:collapse
}
.dt th{
    background:var(--surface2);
    padding:12px 16px;
    text-align:left;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:1px;
    color:var(--muted);
    border-bottom:1px solid var(--border);
    white-space:nowrap;
    cursor:pointer;
    user-select:none
}
.dt th:hover{
    color:var(--accent)
}
.dt th .sa{
    margin-left:4px;
    opacity:.3
}
.dt th.sa-asc .sa::after{
    content:'↑';
    opacity:1;
    color:var(--accent)
}
.dt th.sa-desc .sa::after{
    content:'↓';
    opacity:1;
    color:var(--accent)
}
.dt th .sa::after{
    content:'↕'
}
.dt td{
    padding:11px 16px;
    border-bottom:1px solid rgba(42,45,53,.6);
    font-size:12px;
    color:var(--text);
    white-space:nowrap;
    max-width:320px;
    overflow:hidden;
    text-overflow:ellipsis
}
.dt tr:last-child td{
    border-bottom:none
}
.dt tr:hover td{
    background:rgba(255,255,255,.02)
}
.ce{
    display:none;
    width:100%;
    min-width:120px;
    background:var(--bg);
    border:1px solid var(--accent);
    border-radius:6px;
    padding:5px 8px;
    color:var(--text);
    font-family:var(--mono);
    font-size:12px;
    outline:none
}
.ce.on{
    display:block
}
.cv.hi{
    display:none
}
.spi{
    display:inline-block;
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--accent);
    opacity:0;
    transition:opacity .3s;
    margin-left:4px;
    vertical-align:middle
}
.spi.on{
    opacity:1;
    animation:pulse 1s ease infinite
}
@keyframes pulse{
    0%,100%{
        opacity:1
    }
    50%{
        opacity:.3
    }
}
.pag{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 16px;
    border-top:1px solid var(--border);
    font-size:11px;
    color:var(--muted);
    background:var(--surface2)
}
.pbtns{
    display:flex;
    gap:4px
}
.pb{
    width:28px;
    height:28px;
    border-radius:6px;
    border:1px solid var(--border);
    background:transparent;
    color:var(--muted);
    cursor:pointer;
    font-family:var(--mono);
    font-size:11px;
    transition:all .15s;
    display:flex;
    align-items:center;
    justify-content:center
}
.pb:hover{
    border-color:var(--accent);
    color:var(--accent)
}
.pb.on{
    background:var(--accent);
    border-color:var(--accent);
    color:#0e0f11
}
.pb:disabled{
    opacity:.3;
    cursor:default
}
.toast{
    position:fixed;
    bottom:24px;
    right:24px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    padding:12px 18px;
    font-size:12px;
    color:var(--text);
    z-index:9999;
    transform:translateY(80px);
    opacity:0;
    transition:all .3s cubic-bezier(.175,.885,.32,1.275);
    max-width:320px;
    box-shadow:0 8px 32px rgba(0,0,0,.4)
}
.toast.on{
    transform:translateY(0);
    opacity:1
}
.toast.tok{
    border-left:3px solid var(--accent)
}
.toast.terr{
    border-left:3px solid var(--danger)
}
.nd{
    text-align:center;
    color:var(--muted);
    padding:64px;
    font-size:13px
}
.nd i{
    font-size:32px;
    margin-bottom:12px;
    display:block;
    font-style:normal
}
hr.dv{
    border:none;
    border-top:1px solid var(--border);
    margin:28px 0
}
@media(max-width:768px){
    .cg{
        grid-template-columns:1fr
    }
    .cnt{
        padding:20px 16px
    }
    .tb,.tabs{
        padding:0 16px
    }
    .sw input{
        width:180px
    }
}