/* Nullklik portál – app.nullklik.com. Písma sú lokálne (OFL), žiadne externé zdroje kvôli CSP. */
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(fonts/inter-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(fonts/inter-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(fonts/inter-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(fonts/inter-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(fonts/inter-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(fonts/inter-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:500;src:url(fonts/space-grotesk-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:500;src:url(fonts/space-grotesk-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/space-grotesk-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/space-grotesk-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --ink:#0E1116; --ink-2:#2C333D; --muted:#4A5361; --faint:#9AA3AF;
  --bg:#F5F6F8; --card:#FFFFFF; --line:#E3E6EB; --line-2:#EEF0F3; --field:#C5CBD3;
  --side:#0E1116; --side-2:#1A2028; --side-3:#232A33; --side-line:#343B46; --side-text:#C9CED6;
  --accent:#B8361A; --accent-2:#8F2A14; --accent-soft:#FCE9E4; --flame:#E5482A; --bad:#C2381A; --ok-bar:#CDD3DB;
  --ok:#0B7A6E; --ok-ink:#0B6E63; --ok-soft:#E3F5F2;
  --info:#1F3F99; --info-soft:#E7EEFC;
  --warn:#8A5A00; --warn-soft:#FFF4D6;
  --radius:16px; --display:'Space Grotesk',Inter,system-ui,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:400 15px/1.5 Inter,system-ui,-apple-system,'Segoe UI',sans-serif}
a{color:var(--accent)}a:hover{color:var(--accent-2)}
h1,h2,h3{font-family:var(--display);margin:0;line-height:1.2}
h1{font-size:30px;letter-spacing:-.5px}
h2{font-size:18px}
p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--flame);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.noscript{padding:24px}
.boot{min-height:100vh;display:grid;place-items:center}
.spinner{width:28px;height:28px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spinner{animation-duration:2.4s}}

/* ---------- tlačidlá a polia ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:10px;border:1px solid transparent;background:var(--ink);color:#fff;font-weight:600;font-size:15px;cursor:pointer;text-decoration:none;white-space:nowrap}
.btn:hover{background:#262D37;color:#fff}
.btn.accent{background:var(--accent)}.btn.accent:hover{background:var(--accent-2)}
.btn.ghost{background:#fff;color:var(--ink);border-color:var(--field)}.btn.ghost:hover{background:var(--line-2)}
.btn.danger{background:#fff;color:var(--accent);border-color:#E9B9AC}.btn.danger:hover{background:var(--accent-soft)}
.btn.small{min-height:36px;padding:0 12px;font-size:13px;border-radius:8px}
.btn[disabled]{opacity:.55;cursor:default}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.field small{font-weight:400;color:var(--muted);font-size:13px}
.input,.select,.textarea{min-height:44px;border:1px solid var(--field);border-radius:10px;background:#fff;padding:0 12px;font-size:15px;font-weight:400;width:100%}
.textarea{padding:10px 12px;min-height:110px;resize:vertical;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px}
.input[aria-invalid=true],.select[aria-invalid=true]{border-color:var(--accent);background:#FFF8F6}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;font-weight:400}
.check input{width:20px;height:20px;margin-top:2px;flex:none;accent-color:var(--accent)}
.err{color:var(--accent);font-size:13px;font-weight:600}
.row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.row>.field{flex:1 1 200px}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;word-break:break-all}
.muted{color:var(--muted)}
.small{font-size:13px}

/* ---------- prihlásenie / registrácia ---------- */
.auth{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 16px;gap:20px}
.auth-card{width:100%;max-width:440px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px;display:flex;flex-direction:column;gap:18px}
.auth-card.wide{max-width:640px}
.auth-card h1{font-size:26px}
.auth-foot{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;font-size:13px;color:var(--muted)}
.brand{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-family:var(--display);font-weight:700;font-size:20px}
.brand svg{flex:none}
.notice{border-radius:12px;padding:14px 16px;font-size:14px;display:flex;flex-direction:column;gap:4px}
.notice.ok{background:var(--ok-soft);color:var(--ok-ink)}
.notice.warn{background:var(--warn-soft);color:var(--warn)}
.notice.bad{background:var(--accent-soft);color:#7E2410}
.notice.info{background:var(--info-soft);color:var(--info)}
.notice strong{font-weight:600}

/* ---------- rozloženie aplikácie ---------- */
.shell{min-height:100vh;display:flex;flex-wrap:wrap;align-items:stretch}
.side{flex:1 1 240px;max-width:100%;background:var(--side);color:#fff;padding:24px 16px;display:flex;flex-direction:column;gap:24px}
.side .brand{color:#fff;padding:0 8px}
.side label{display:flex;flex-direction:column;gap:6px;padding:0 8px;font-size:12px;color:var(--faint)}
.side select{min-height:44px;border-radius:10px;border:1px solid var(--side-line);background:var(--side-2);color:#fff;font-size:14px;padding:0 10px}
.nav{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;font-size:15px}
.nav a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:10px;color:var(--side-text);text-decoration:none}
.nav a:hover{background:var(--side-2);color:#fff}
.nav a[aria-current=page]{background:var(--side-3);color:#fff;font-weight:600}
.side-box{padding:14px;border:1px solid var(--side-line);border-radius:12px;display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--side-text)}
.side-box strong{color:#fff;font-weight:600}
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:12px;padding:0 8px;font-size:13px;color:var(--side-text)}
.side-foot .who{word-break:break-all}
.side-foot button{background:none;border:0;padding:0;color:#fff;font-weight:600;cursor:pointer;text-align:left;min-height:32px}
.lang{display:flex;gap:4px}
.lang button{min-height:32px;padding:0 10px;border-radius:8px;border:1px solid var(--side-line);background:transparent;color:var(--side-text);cursor:pointer;font-weight:600;font-size:12px}
.lang button[aria-pressed=true]{background:#fff;color:var(--ink);border-color:#fff}
.main{flex:999 1 640px;min-width:0;padding:28px clamp(16px,3vw,40px) 56px;display:flex;flex-direction:column;gap:24px}
.head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px}
.head>div:first-child{display:flex;flex-direction:column;gap:4px}
.head p{font-size:14px;color:var(--muted)}
.tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.seg{display:flex;background:#E9ECF0;border-radius:10px;padding:4px}
.seg button{min-height:40px;padding:0 14px;border:0;border-radius:8px;background:transparent;font-size:14px;font-weight:600;cursor:pointer}
.seg button[aria-pressed=true]{background:#fff}
.pill{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:10px;font-size:14px;font-weight:600}
.pill::before{content:'';width:8px;height:8px;border-radius:50%;background:currentColor}
.pill.ok{background:var(--ok-soft);color:var(--ok-ink)}
.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.bad{background:var(--accent-soft);color:var(--accent)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;gap:16px;min-width:0}
.card-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:16px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;display:flex;flex-direction:column;gap:6px}
.kpi h2{font-family:Inter,system-ui,sans-serif;font-size:13px;font-weight:500;color:var(--muted)}
.kpi .v{font-family:var(--display);font-size:32px;font-weight:700;line-height:1.1}
.kpi .v.bad{color:var(--accent)}
.kpi .n{font-size:13px;color:var(--muted)}
.split{display:flex;flex-wrap:wrap;gap:16px}
.split>.card:first-child{flex:2 1 520px}
.split>.card:last-child{flex:1 1 300px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:16px}
.legend{margin:0;padding:0;list-style:none;display:flex;gap:16px;font-size:13px;color:var(--muted)}
.legend li{display:flex;align-items:center;gap:6px}
.legend i{width:12px;height:12px;border-radius:3px;background:var(--ok-bar)}
.legend i.bad{background:var(--bad)}
.chart{display:flex;align-items:flex-end;gap:4px;height:220px;border-bottom:1px solid var(--line)}
.chart .col{flex:1 1 0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;min-width:0}
.chart .b{background:var(--bad);border-radius:3px 3px 0 0}
.chart .o{background:var(--ok-bar);border-radius:3px 3px 0 0}
.chart .b+.o{border-radius:0}
.axis{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.empty{padding:28px 8px;text-align:center;color:var(--muted);font-size:14px}
.bars{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:14px}
.bars li{display:flex;flex-direction:column;gap:6px}
.bars .t{display:flex;justify-content:space-between;font-size:14px}
.bars .t b{font-weight:600}
.bars .track{height:8px;background:var(--line-2);border-radius:4px;overflow:hidden}
.bars .fill{height:100%;background:var(--ink);border-radius:4px}
.tablewrap{overflow-x:auto;margin:0 -4px}
table{width:100%;min-width:680px;border-collapse:collapse;font-size:14px}
th{text-align:left;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.4px;font-weight:600;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:12px;border-bottom:1px solid var(--line-2);vertical-align:middle}
td.nw{white-space:nowrap}
td.act{text-align:right;white-space:nowrap}
.tag{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--line-2);color:var(--ink-2)}
.tag.device{background:var(--accent-soft);color:#9A2D14}
.tag.vpn{background:var(--info-soft);color:var(--info)}
.tag.manual{background:#ECE7F7;color:#4B2E8F}
.tag.ok{background:var(--ok-soft);color:var(--ok-ink)}
.tag.warn{background:var(--warn-soft);color:var(--warn)}
.checks{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:14px}
.checks li{display:flex;gap:12px;align-items:flex-start}
.checks .ic{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700;margin-top:1px}
.checks .ic.ok{background:var(--ok-soft);color:var(--ok)}
.checks .ic.warn{background:var(--warn-soft);color:var(--warn)}
.checks .ic.bad{background:var(--accent-soft);color:var(--accent)}
.checks div{display:flex;flex-direction:column;gap:2px}
.checks span{font-size:13px;color:var(--muted)}
.checks b{font-weight:600}
.switchrow{display:flex;justify-content:space-between;align-items:center;gap:16px}
.switchrow>div{display:flex;flex-direction:column;gap:2px}
.switchrow b{font-weight:600}
.switchrow span{font-size:13px;color:var(--muted)}
.switch{flex:none;width:52px;height:30px;border:0;border-radius:999px;padding:3px;background:var(--faint);cursor:pointer;display:flex;justify-content:flex-start}
.switch[aria-checked=true]{background:var(--ok);justify-content:flex-end}
.switch[disabled]{opacity:.6;cursor:default}
.switch::after{content:'';width:24px;height:24px;border-radius:50%;background:#fff}
.code{position:relative;background:var(--ink);color:#E8EAED;border-radius:12px;padding:16px 16px 56px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;line-height:1.6;word-break:break-all;white-space:pre-wrap}
.code .btn{position:absolute;right:10px;bottom:10px;background:#fff;color:var(--ink)}
.steps{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px;font-size:15px}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:12px;font-size:14px;font-weight:600;z-index:10;max-width:calc(100vw - 32px)}
.toast.bad{background:var(--accent)}
.adm td{vertical-align:top}
.adm .stack{display:flex;flex-direction:column;gap:6px}
.adm .stack .row{gap:6px;align-items:center}
.adm .input,.adm .select{min-height:36px;font-size:13px;border-radius:8px}
.adm .select{min-width:170px}
.adm table{min-width:1000px}
@media (max-width:720px){
  h1{font-size:26px}
  .side{padding:16px;gap:16px}
  .nav{flex-direction:row;flex-wrap:wrap}
  .nav a{min-height:40px;padding:0 10px;font-size:14px}
  .side-foot{margin-top:0;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}
  .auth-card{padding:24px}
}
