
:root{font-family:Inter,system-ui,-apple-system,Arial,sans-serif;color:#182a43;background:#edf2f8}*{box-sizing:border-box}body{margin:0}header{background:linear-gradient(110deg,#081b36,#123e65);color:white;padding:24px max(20px,calc((100% - 1450px)/2));display:flex;align-items:center;justify-content:space-between;gap:18px}.logo{font-weight:900;font-size:27px;letter-spacing:.09em}.logo em{color:#49bfeb;font-style:normal}.muted{color:#9eb4cd}.sub{font-size:13px;margin-top:6px}.wrap{max-width:1450px;margin:auto;padding:22px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 16px}.stat{background:white;border:1px solid #dbe4ee;border-radius:13px;padding:20px}.stat b{display:block;font-size:26px;margin:5px 0}.stat small{color:#60718a}.bar{height:8px;background:#e4eaf1;border-radius:10px;overflow:hidden;margin-top:11px}.bar span{height:100%;display:block;background:#20a5b9;width:0}.controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:white;padding:13px;border:1px solid #dbe4ee;border-radius:12px;margin-bottom:16px}button,.control,select{font:inherit;border:1px solid #cbd7e4;border-radius:8px;padding:10px 12px;background:#fff;color:#1c3653}button{cursor:pointer;font-weight:650}button.primary{color:#fff;background:#135b8c;border-color:#135b8c}button:hover{filter:brightness(.97)}input[type=search]{flex:1;min-width:190px;padding:11px;border:1px solid #cbd7e4;border-radius:8px;font:inherit}.section{background:white;border:1px solid #dbe4ee;border-radius:13px;overflow:hidden;margin:15px 0}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 19px;background:#f7fafc;cursor:pointer}.sectionhead h2{font-size:18px;margin:0}.sectionhead p{color:#687b8e;font-size:12px;margin:4px 0 0}.sectioninfo{text-align:right;min-width:135px}.sectioninfo strong{font-size:16px}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{background:#eaf0f7;position:sticky;top:0;text-align:left;font-weight:700;white-space:nowrap;color:#3e536d}td,th{padding:11px 10px;border-top:1px solid #e8edf3;vertical-align:middle}td.name{min-width:290px;max-width:440px;line-height:1.4}td.id{color:#6e8195;font-size:12px;white-space:nowrap}td.num,th.num{text-align:right;white-space:nowrap}td input[type=number]{width:82px;padding:8px;border:1px solid #b8cbdc;border-radius:7px;font:inherit;text-align:right}td input[type=text]{width:155px;padding:8px;border:1px solid #cbd7e4;border-radius:7px;font:inherit}tr.finished{background:#effaf4}tr.finished td.name{text-decoration:line-through;text-decoration-color:#82b6a0;color:#47665a}input[type=checkbox]{width:19px;height:19px;accent-color:#168568;cursor:pointer}.chip{font-size:11px;font-weight:750;border-radius:16px;background:#e9edf2;padding:5px 8px;white-space:nowrap}.chip.done{background:#d9f3e5;color:#167247}.chip.work{background:#e4f0ff;color:#245c9c}.foot{font-size:12px;color:#6c7e91;margin:20px 2px}.hide{display:none!important}.printtitle{display:none}@media(max-width:750px){header{padding:18px}.wrap{padding:12px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat{padding:12px}.stat b{font-size:20px}table{font-size:12px}.sectionhead{padding:12px}.no-mobile{display:none}}@media print{@page{size:A4 landscape;margin:11mm}body{background:white;color:black;font-size:10px}header{background:none;color:#112a4a;padding:0 0 12px;print-color-adjust:exact}.muted{color:#555}.wrap{padding:0;max-width:none}.stats{grid-template-columns:repeat(4,1fr)}.stat{padding:8px;border-radius:0}.stat b{font-size:16px}.controls,.foot,.noprint{display:none!important}.section{border:0;border-radius:0;break-before:page;margin:0 0 12px}.sectionhead{background:white;border-bottom:2px solid #223958;padding:5px 0}.sectionhead h2{font-size:15px}.tablewrap{overflow:visible}table{font-size:9px;table-layout:fixed}th,td{padding:5px 4px;word-wrap:break-word}td.name{min-width:0;max-width:none;width:40%}td input[type=number],td input[type=text]{border:none;width:100%;padding:0;background:none;font-size:9px}input[type=checkbox]{width:12px;height:12px}th{position:static}tr{break-inside:avoid}.printtitle{display:block}}

.authwrap{max-width:450px;margin:55px auto;background:white;border:1px solid #dbe4ee;border-radius:15px;padding:25px}.authwrap input{display:block;width:100%;padding:13px;border:1px solid #cbd7e4;border-radius:8px;margin:12px 0;font:inherit}.authwrap button{width:100%}.authwrap p{color:#61728a}.sync{padding:7px 11px;border-radius:8px;background:#e4f0ff;font-size:12px;color:#174d75}.sync.error{background:#fff0f0;color:#a32929}.sync.ok{background:#e4f8ec;color:#14643d}.hidden{display:none!important}.topright{display:flex;align-items:center;gap:12px}.hint{font-size:12px;color:#66788a}.loginerror{color:#b02328!important}.footer-note{font-size:12px;color:#61728a}@media print{.authwrap,.topright,.sync{display:none!important}}
.projectbar,.tabs{display:flex;align-items:center;gap:12px;background:white;border:1px solid #d5e1ee;border-radius:12px;padding:14px 20px;margin:0 0 14px;flex-wrap:wrap}.projectbar label{display:flex;align-items:center;gap:10px}.projectbar select,.extra select,.extra input{border:1px solid #c7d7ea;border-radius:8px;padding:10px;max-width:100%}.tabs button.selected{background:#135886;color:white}.extra{padding:22px;margin-top:10px}.extra h2{margin:0 0 12px}.extra p{color:#637792}.extra td{padding:12px;vertical-align:top}.extra .tablewrap{margin-top:15px}.extra #teamtools input{min-width:280px}.extra #restorebox{margin-top:30px;border-top:1px solid #dde7f1;padding-top:16px}button.remove{color:#9e1c27;background:#ffeded}.hidden{display:none!important}@media print {.tabs,.projectbar,[data-page].hidden,.controls,.noprint{display:none!important} [data-page]{display:none!important}[data-page]:not(.hidden){display:block!important}.extra{border:0}}

/* THE PULSE – Mobile-first pracovné karty, desktop a tlač zostávajú zachované. */
@media screen and (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  header { padding: 15px 14px; align-items: flex-start; gap: 9px; }
  .logo { font-size: 22px; letter-spacing: .065em; }
  header .sub { font-size: 10px; line-height: 1.4; max-width: 220px; }
  .topright { flex-direction: column; align-items: flex-end; gap: 6px; }
  .sync { font-size: 10px; padding: 6px 7px; }
  .topright button { font-size: 12px; padding: 7px 9px; }
  .wrap { padding: 11px 10px 25px; }
  .authwrap { margin: 24px 11px; padding: 20px 17px; }
  .authwrap input, .authwrap button { min-height: 49px; font-size: 16px; }
  .projectbar { padding: 12px; display: flex; gap: 9px; }
  .projectbar label { width: 100%; flex-wrap: wrap; }
  .projectbar select { flex: 1; width: 100%; min-width: 0; min-height: 45px; }
  #projecttitle { flex: 1; font-size: 14px; }
  .projectbar button { min-height: 44px; }
  .tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; padding: 8px; gap: 7px; scrollbar-width: thin; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .tabs button { flex: 0 0 auto; min-height: 44px; white-space: nowrap; scroll-snap-align: start; padding: 10px 13px; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .stat { min-width: 0; padding: 12px; }
  .stat b { font-size: clamp(17px, 5vw, 22px); overflow-wrap: anywhere; }
  .stat small { font-size: 11px; }
  .controls { padding: 10px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .controls select { width: 100%; min-width: 0; }
  .controls input[type=search] { grid-column: 1 / -1; min-width: 0; width: 100%; }
  .controls button { min-height: 45px; font-size: 13px; }
  .controls select, .controls input { min-height: 45px; font-size: 16px; }
  .section { background: transparent; border: none; overflow: visible; margin: 14px 0 21px; }
  .sectionhead { border: 1px solid #dbe4ee; border-radius: 13px; padding: 13px; margin-bottom: 10px; gap: 8px; }
  .sectionhead h2 { font-size: 16px; }
  .sectioninfo { min-width: 90px; }
  .sectioninfo strong { font-size: 15px; }
  .sectioninfo p { font-size: 11px; }
  /* Zachovávame rovnaké inputy a udalosti; mení sa len prezentácia riadkov. */
  #sections .tablewrap { overflow: visible; }
  #sections table, #sections tbody, #sections tr, #sections td { display: block; width: 100%; }
  #sections thead { display: none; }
  #sections tr { background: #fff; border: 1px solid #d9e4ef; border-radius: 13px; margin: 0 0 10px; padding: 13px; box-shadow: 0 2px 9px rgba(15,44,73,.04); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 12px; row-gap: 10px; }
  #sections tr.finished { background: #effaf4; border-color: #b7e4ce; }
  #sections td { border: 0; padding: 0; min-width: 0; text-align: left!important; font-size: 14px; white-space: normal; }
  #sections td::before { display: block; content: ''; color: #657993; font-size: 11px; font-weight: 650; margin-bottom: 4px; }
  #sections td:nth-child(1) { grid-column: 2; grid-row: 1; justify-self: end; width: auto; display: flex; align-items: center; gap: 7px; }
  #sections td:nth-child(1)::before { content: 'Hotové'; margin: 0; }
  #sections td:nth-child(1) input { width: 25px; height: 25px; margin: 0; }
  #sections td:nth-child(2) { grid-column: 1; grid-row: 1; font-size: 13px; font-weight: 750; color: #135b8c; }
  #sections td:nth-child(2)::before { display: none; }
  #sections td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; font-size: 15px; font-weight: 650; line-height: 1.48; max-width: none; }
  #sections td:nth-child(3)::before { display: none; }
  #sections td:nth-child(4)::before { content: 'Plán'; }
  #sections td:nth-child(5)::before { content: 'Vykonané'; }
  #sections td:nth-child(6)::before { content: 'Zostáva'; }
  #sections td:nth-child(7)::before { content: 'Stav'; }
  #sections td:nth-child(8)::before { content: 'Hotová hodnota'; }
  #sections td:nth-child(9)::before { content: 'Poznámka / úsek'; }
  #sections td:nth-child(5) input { width: 100%; height: 47px; min-width: 0; font-size: 17px; font-weight: 750; text-align: center; background: #f2f8fd; border-color: #8fb8d7; }
  #sections td:nth-child(9) { grid-column: 1 / -1; }
  #sections td:nth-child(9) input { width: 100%; min-height: 45px; font-size: 16px; }
  #sections td:nth-child(6) { font-weight: 750; }
  .chip { display: inline-block; font-size: 11px; }
  .extra { padding: 14px 11px; }
  .extra h2 { font-size: 20px; }
  .extra .controls { grid-template-columns: 1fr; }
  .extra .controls input, .extra .controls select, .extra .controls button { width: 100%; min-width: 0!important; }
  .extra .tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .extra table { min-width: 660px; }
  #teamtools { display: grid; grid-template-columns: 1fr; }
  #save, #restore, #dailyprint { min-height: 46px; max-width: 100%; }
  input[type=file] { max-width: 100%; }
  .foot { font-size: 11px; line-height: 1.6; }
}
@media screen and (max-width: 370px) {
  .logo { font-size: 18px; }
  .controls { grid-template-columns: 1fr; }
  #sections tr { column-gap: 8px; padding: 11px; }
}

/* THE PULSE v3 – dark, kompaktnejšia a uhladenejšia mobilná verzia */
:root{
  --tp-bg:#0b1220;
  --tp-bg-2:#0f1728;
  --tp-card:#111c2f;
  --tp-card-2:#15233a;
  --tp-line:#24344d;
  --tp-line-soft:#1b2a41;
  --tp-text:#e7eef8;
  --tp-muted:#93a4bd;
  --tp-accent:#3aa8e8;
  --tp-accent-2:#1d7eb9;
  --tp-good:#1aa36b;
  --tp-good-bg:rgba(26,163,107,.16);
  --tp-work:#4c96ff;
  --tp-work-bg:rgba(76,150,255,.16);
  --tp-todo:#b4c0d3;
  --tp-todo-bg:rgba(180,192,211,.15);
  --tp-danger:#ff6b6b;
  --tp-shadow:0 14px 34px rgba(0,0,0,.28);
}
html,body{background:radial-gradient(circle at top,#12223a 0%,#0b1220 42%,#0b1220 100%);color:var(--tp-text)}
body{color:var(--tp-text)}
header{background:linear-gradient(108deg,#071427 0%,#0b1e39 40%,#123b60 100%);box-shadow:0 10px 30px rgba(0,0,0,.24)}
.muted,.sub,.hint,.footer-note,.foot,.authwrap p,.stat small,.extra p,.sectionhead p,#dailyhint{color:var(--tp-muted)}
.wrap{padding-top:18px}
.stat,.controls,.section,.projectbar,.tabs,.extra,.authwrap{background:rgba(17,28,47,.92)!important;border-color:var(--tp-line)!important;box-shadow:var(--tp-shadow)}
.stat b,.sectionhead h2,.projectbar strong,.extra h2,.extra h3,.authwrap h2,.controls,th,td,button,select,input,label{color:var(--tp-text)}
.bar{background:#1b2a40}.bar span{background:linear-gradient(90deg,#24b7e4,#3797ff)}
button,.control,select,input[type=search],.projectbar select,.extra select,.extra input,.authwrap input,td input[type=number],td input[type=text]{background:#0f1a2d;border-color:#2a3a53;color:var(--tp-text)}
button:hover{filter:brightness(1.06)}
button.primary,.tabs button.selected{background:linear-gradient(180deg,#2286c9,#1b689d);border-color:#2f8fcb;color:#fff;box-shadow:0 8px 18px rgba(34,134,201,.24)}
button.remove{background:rgba(255,107,107,.1);border-color:rgba(255,107,107,.35);color:#ff9f9f}
.sync{background:rgba(76,150,255,.16);color:#a8d1ff;border:1px solid rgba(76,150,255,.2)}
.sync.ok{background:rgba(26,163,107,.16);color:#8ce0bd;border:1px solid rgba(26,163,107,.2)}
.sync.error{background:rgba(255,107,107,.14);color:#ffafaf;border:1px solid rgba(255,107,107,.22)}
.sectionhead{background:rgba(21,35,58,.92)}
th{background:#15233a;color:#aab8cb;border-color:#22334b}
td,th{border-color:#1d2c43}
td.id{color:#8ea1b8}
tr.finished{background:rgba(26,163,107,.08)}
tr.finished td.name{text-decoration-color:#4eb689;color:#c9eadc}
.chip{background:var(--tp-todo-bg);color:#dbe4f0;border:1px solid rgba(255,255,255,.05)}
.chip.done{background:var(--tp-good-bg);color:#8be0bc;border-color:rgba(26,163,107,.28)}
.chip.work{background:var(--tp-work-bg);color:#a8cfff;border-color:rgba(76,150,255,.25)}
input[type=checkbox]{accent-color:var(--tp-good)}
input::placeholder{color:#7588a2}
.authwrap{max-width:480px}
.authwrap button{margin-top:8px}
.loginerror{color:#ff8d8d!important}
.tabs{overflow-x:auto;scrollbar-width:thin}
.tabs button{background:#0f1a2d;border-color:#263953}
.projectbar label{color:var(--tp-muted)}
.extra .tablewrap,.tablewrap{border-radius:14px}
#historyrows tr:nth-child(odd),#dailyrows tr:nth-child(odd),#teamrows tr:nth-child(odd){background:rgba(255,255,255,.015)}

@media screen and (max-width:760px){
  body{background:#0b1220}
  header{padding:14px 14px 16px;border-bottom:1px solid rgba(255,255,255,.05)}
  .logo{font-size:21px;letter-spacing:.055em}
  header .sub{font-size:10px;max-width:210px}
  .wrap{padding:10px 10px 18px}
  .projectbar,.tabs,.controls,.stat,.authwrap,.sectionhead,#sections tr{box-shadow:none}
  .projectbar,.tabs,.controls,.stat,.authwrap,.sectionhead{border-radius:16px}
  .stats{gap:10px;margin-bottom:12px}
  .stat{padding:11px 12px;border-width:1px}
  .stat small{font-size:10px;line-height:1.35;display:block}
  .stat b{font-size:18px;margin-top:4px}
  .controls{grid-template-columns:1fr 1fr;padding:10px;gap:8px;margin-bottom:12px}
  .controls button,.controls select,.controls input[type=search]{min-height:42px;border-radius:12px}
  .controls button{font-size:12px;padding:8px 10px}
  .controls select,.controls input{font-size:15px}
  .projectbar{padding:10px 12px;gap:8px;margin-bottom:12px}
  .projectbar button{min-height:40px;border-radius:12px}
  .tabs{padding:6px;gap:6px;margin-bottom:12px}
  .tabs button{min-height:40px;padding:9px 12px;border-radius:11px;font-size:13px}
  .section{margin:10px 0 18px}
  .sectionhead{padding:12px 14px;align-items:flex-start;border-radius:18px;margin-bottom:9px}
  .sectionhead h2{font-size:15px;line-height:1.2}
  .sectionhead p{margin-top:5px;font-size:11px}
  .sectioninfo{min-width:auto;text-align:right}
  .sectioninfo strong{font-size:14px}
  #sections tr{
    background:linear-gradient(180deg,rgba(17,28,47,.98),rgba(13,22,37,.98));
    border:1px solid var(--tp-line);
    border-radius:18px;
    margin:0 0 10px;
    padding:11px 12px 12px;
    display:grid;
    grid-template-columns:1fr 1fr;
    column-gap:10px;
    row-gap:9px;
  }
  #sections tr.finished{background:linear-gradient(180deg,rgba(17,38,34,.98),rgba(12,27,24,.98));border-color:#245845}
  #sections td{font-size:13px;color:var(--tp-text)}
  #sections td::before{font-size:10px;letter-spacing:.02em;text-transform:uppercase;color:#7e92ab;margin-bottom:3px}
  #sections td:nth-child(1){align-self:start;padding-top:2px}
  #sections td:nth-child(1)::before{font-size:11px;color:#b7c7da}
  #sections td:nth-child(1) input{width:22px;height:22px}
  #sections td:nth-child(2){font-size:12px;color:#5bb4ea}
  #sections td:nth-child(3){font-size:14px;line-height:1.4;font-weight:700;margin-top:-2px}
  #sections td:nth-child(4),#sections td:nth-child(6),#sections td:nth-child(8){align-self:start}
  #sections td:nth-child(5) input{
    height:42px;
    border-radius:12px;
    font-size:16px;
    font-weight:800;
    background:#0b1526;
    border:1px solid #37567a;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  }
  #sections td:nth-child(6){font-weight:800}
  #sections td:nth-child(7) .chip{margin-top:2px}
  #sections td:nth-child(9){grid-column:1 / -1}
  #sections td:nth-child(9) input{
    min-height:40px;
    border-radius:12px;
    background:#0d1728;
    font-size:14px;
    padding:9px 11px;
  }
  .chip{font-size:10px;padding:5px 8px;border-radius:999px}
  .foot{font-size:10px;line-height:1.5;color:#7e92ab;margin:16px 4px 28px}
  .authwrap{margin:22px 12px;padding:20px 18px;border-radius:18px}
  .authwrap input,.authwrap button{min-height:46px;border-radius:12px}
  .topright{gap:7px}
  .sync{padding:7px 10px;border-radius:999px}
  .extra{padding:14px 12px;border-radius:18px}
  .extra h2{font-size:19px}
  .extra .tablewrap{background:#0f1728;border:1px solid var(--tp-line);padding:0;border-radius:14px}
  .extra table{min-width:640px}
}

@media screen and (max-width:420px){
  .stats{grid-template-columns:1fr 1fr}
  .controls{grid-template-columns:1fr 1fr}
  #sections tr{padding:10px 10px 11px;column-gap:8px}
  #sections td:nth-child(3){font-size:13.5px}
}

@media screen and (max-width:360px){
  .controls{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
  .tabs button{font-size:12px;padding:8px 10px}
}

/* THE PULSE v4: mimoriadne kompaktné pracovné karty pre telefóny */
@media screen and (max-width:760px){
  .wrap{padding:8px 9px 16px}
  .projectbar{padding:8px 10px;margin-bottom:8px}
  .tabs{margin-bottom:8px}
  .stats{gap:7px;margin-bottom:9px}
  .stat{padding:9px 10px;border-radius:12px}
  .stat b{font-size:17px;margin:2px 0}
  .stat small{font-size:10px}
  .controls{padding:8px;gap:6px;margin-bottom:8px}
  .controls select,.controls button,.controls input[type=search]{min-height:38px;padding:7px 9px}
  .section{margin:8px 0 13px}
  .sectionhead{padding:10px 11px;margin-bottom:7px;border-radius:13px}
  .sectionhead h2{font-size:14px}
  .sectionhead p{font-size:10px;margin-top:3px}
  .sectioninfo strong{font-size:13px}
  #sections tr{
    padding:10px 11px;
    border-radius:13px;
    margin-bottom:7px;
    column-gap:9px;
    row-gap:5px;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #sections td{font-size:12px;line-height:1.28}
  #sections td::before{font-size:9px;margin-bottom:2px}
  #sections td:nth-child(1){padding-top:0}
  #sections td:nth-child(1)::before{font-size:10px}
  #sections td:nth-child(1) input{width:20px;height:20px}
  #sections td:nth-child(2){font-size:11px}
  #sections td:nth-child(3){font-size:13px;line-height:1.34;font-weight:650;margin:0 0 3px}
  #sections td:nth-child(5) input{height:35px;max-width:108px;font-size:16px;border-radius:9px;padding:4px 7px}
  #sections td:nth-child(9) input{min-height:33px;height:34px;padding:6px 9px;font-size:13px;border-radius:9px}
  .chip{font-size:9px;padding:4px 7px}
  .extra{padding:12px 10px}
}
@media screen and (max-width:420px){
  #sections tr{padding:9px 10px;row-gap:5px}
  #sections td:nth-child(3){font-size:12.5px}
}
/* Na papieri zostáva pôvodný prehľad, nie mobilné karty. */

/* THE PULSE v5 – farebné neon akcenty podľa technológie */
.section.group-LAN{--group-neon:#36e0ff;--group-soft:rgba(54,224,255,.16);--group-mid:rgba(54,224,255,.32)}
.section.group-TV{--group-neon:#ff8c42;--group-soft:rgba(255,140,66,.16);--group-mid:rgba(255,140,66,.32)}
.section.group-CCTV{--group-neon:#a6ff4d;--group-soft:rgba(166,255,77,.14);--group-mid:rgba(166,255,77,.30)}
.section.group-SKV{--group-neon:#c96bff;--group-soft:rgba(201,107,255,.15);--group-mid:rgba(201,107,255,.30)}

.section[class*="group-"]{border-color:var(--group-mid)}
.section[class*="group-"] .sectionhead{
  border:1px solid var(--group-mid);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03), 0 0 0 1px rgba(0,0,0,.08);
}
.section[class*="group-"] .sectionhead h2{color:var(--group-neon)}
.section[class*="group-"] .sectioninfo strong{color:var(--group-neon)}
.section[class*="group-"] td.id{color:var(--group-neon)}
.section[class*="group-"] td:nth-child(5) input,
.section[class*="group-"] td:nth-child(9) input,
.section[class*="group-"] .tablewrap{border-color:var(--group-mid)}

@media screen and (min-width:761px){
  .section.group-LAN{box-shadow:0 0 0 1px rgba(54,224,255,.08),0 14px 30px rgba(0,0,0,.16)}
  .section.group-TV{box-shadow:0 0 0 1px rgba(255,140,66,.08),0 14px 30px rgba(0,0,0,.16)}
  .section.group-CCTV{box-shadow:0 0 0 1px rgba(166,255,77,.08),0 14px 30px rgba(0,0,0,.16)}
  .section.group-SKV{box-shadow:0 0 0 1px rgba(201,107,255,.08),0 14px 30px rgba(0,0,0,.16)}
  .section.group-LAN .sectionhead{background:linear-gradient(180deg,rgba(54,224,255,.08),rgba(17,28,47,.92))}
  .section.group-TV .sectionhead{background:linear-gradient(180deg,rgba(255,140,66,.08),rgba(17,28,47,.92))}
  .section.group-CCTV .sectionhead{background:linear-gradient(180deg,rgba(166,255,77,.08),rgba(17,28,47,.92))}
  .section.group-SKV .sectionhead{background:linear-gradient(180deg,rgba(201,107,255,.08),rgba(17,28,47,.92))}
}

@media screen and (max-width:760px){
  .section[class*="group-"] .sectionhead{position:relative;overflow:hidden}
  .section[class*="group-"] .sectionhead::after{
    content:"";position:absolute;inset:auto 0 0 0;height:2px;background:linear-gradient(90deg,transparent 0%,var(--group-neon) 18%,var(--group-neon) 82%,transparent 100%);opacity:.95;
  }
  .section.group-LAN .sectionhead{background:linear-gradient(180deg,rgba(54,224,255,.10),rgba(21,35,58,.94))}
  .section.group-TV .sectionhead{background:linear-gradient(180deg,rgba(255,140,66,.11),rgba(21,35,58,.94))}
  .section.group-CCTV .sectionhead{background:linear-gradient(180deg,rgba(166,255,77,.10),rgba(21,35,58,.94))}
  .section.group-SKV .sectionhead{background:linear-gradient(180deg,rgba(201,107,255,.10),rgba(21,35,58,.94))}

  .section.group-LAN tr{border-color:rgba(54,224,255,.40);box-shadow:inset 0 0 0 1px rgba(54,224,255,.08)}
  .section.group-TV tr{border-color:rgba(255,140,66,.38);box-shadow:inset 0 0 0 1px rgba(255,140,66,.08)}
  .section.group-CCTV tr{border-color:rgba(166,255,77,.36);box-shadow:inset 0 0 0 1px rgba(166,255,77,.07)}
  .section.group-SKV tr{border-color:rgba(201,107,255,.38);box-shadow:inset 0 0 0 1px rgba(201,107,255,.08)}

  .section[class*="group-"] td:nth-child(2){font-weight:700}
  .section.group-LAN td:nth-child(2){color:#67ebff}
  .section.group-TV td:nth-child(2){color:#ffab70}
  .section.group-CCTV td:nth-child(2){color:#c8ff8f}
  .section.group-SKV td:nth-child(2){color:#ddb0ff}

  .section.group-LAN td:nth-child(5) input,.section.group-LAN td:nth-child(9) input{border-color:rgba(54,224,255,.45);box-shadow:0 0 0 1px rgba(54,224,255,.06)}
  .section.group-TV td:nth-child(5) input,.section.group-TV td:nth-child(9) input{border-color:rgba(255,140,66,.42);box-shadow:0 0 0 1px rgba(255,140,66,.06)}
  .section.group-CCTV td:nth-child(5) input,.section.group-CCTV td:nth-child(9) input{border-color:rgba(166,255,77,.40);box-shadow:0 0 0 1px rgba(166,255,77,.05)}
  .section.group-SKV td:nth-child(5) input,.section.group-SKV td:nth-child(9) input{border-color:rgba(201,107,255,.42);box-shadow:0 0 0 1px rgba(201,107,255,.06)}

  .section.group-LAN .chip.work{background:rgba(54,224,255,.16);color:#89f0ff;border:1px solid rgba(54,224,255,.18)}
  .section.group-TV .chip.work{background:rgba(255,140,66,.16);color:#ffc193;border:1px solid rgba(255,140,66,.18)}
  .section.group-CCTV .chip.work{background:rgba(166,255,77,.14);color:#d9ffaf;border:1px solid rgba(166,255,77,.18)}
  .section.group-SKV .chip.work{background:rgba(201,107,255,.14);color:#e2bcff;border:1px solid rgba(201,107,255,.18)}
}


/* THE PULSE v6 – celé kontúry kariet v sekcii farebne zvýraznené */
@media screen and (max-width:760px){
  .section.group-LAN tr{
    border:1.5px solid rgba(54,224,255,.62)!important;
    box-shadow:inset 0 0 0 1px rgba(54,224,255,.12), 0 0 0 1px rgba(54,224,255,.16), 0 10px 22px rgba(54,224,255,.06)!important;
  }
  .section.group-TV tr{
    border:1.5px solid rgba(255,140,66,.62)!important;
    box-shadow:inset 0 0 0 1px rgba(255,140,66,.12), 0 0 0 1px rgba(255,140,66,.16), 0 10px 22px rgba(255,140,66,.06)!important;
  }
  .section.group-CCTV tr{
    border:1.5px solid rgba(166,255,77,.58)!important;
    box-shadow:inset 0 0 0 1px rgba(166,255,77,.10), 0 0 0 1px rgba(166,255,77,.14), 0 10px 22px rgba(166,255,77,.05)!important;
  }
  .section.group-SKV tr{
    border:1.5px solid rgba(201,107,255,.60)!important;
    box-shadow:inset 0 0 0 1px rgba(201,107,255,.12), 0 0 0 1px rgba(201,107,255,.16), 0 10px 22px rgba(201,107,255,.06)!important;
  }

  .section.group-LAN tr.finished{border-color:rgba(54,224,255,.72)!important}
  .section.group-TV tr.finished{border-color:rgba(255,140,66,.72)!important}
  .section.group-CCTV tr.finished{border-color:rgba(166,255,77,.68)!important}
  .section.group-SKV tr.finished{border-color:rgba(201,107,255,.70)!important}

  .section.group-LAN td:nth-child(3){text-shadow:0 0 10px rgba(54,224,255,.03)}
  .section.group-TV td:nth-child(3){text-shadow:0 0 10px rgba(255,140,66,.03)}
  .section.group-CCTV td:nth-child(3){text-shadow:0 0 10px rgba(166,255,77,.03)}
  .section.group-SKV td:nth-child(3){text-shadow:0 0 10px rgba(201,107,255,.03)}
}


/* THE PULSE v7 — čisté koláčové/prstencové grafy, bez externých knižníc */
.pie-dashboard{margin:0 0 14px;padding:16px 18px;border:1px solid #24344d;border-radius:16px;background:#111c2f;color:#e7eef8}
.pie-dashboard-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.pie-dashboard h2{font-size:17px;font-weight:800;margin:0 0 3px}
.pie-dashboard-heading p{font-size:12px;color:#93a4bd;margin:0}
.pie-key{display:flex;align-items:center;gap:6px;font-size:11px;color:#93a4bd;white-space:nowrap}
.pie-key i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#45b8ee;margin-left:5px}
.pie-key i:nth-of-type(2){background:#2c3b52}
.pie-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.pie-tile{display:flex;gap:12px;align-items:center;min-width:0;padding:12px;border-radius:13px;border:1px solid #283a55;background:linear-gradient(155deg,#16243b,#111b2c)}
.pie-tile-primary{border-color:#34658a}
.pie-figure{--pie-angle:0deg;flex:0 0 79px;width:79px;height:79px;position:relative;border-radius:50%;background:conic-gradient(var(--pie-color) 0deg var(--pie-angle),#2a3a50 var(--pie-angle) 360deg);display:grid;place-items:center}
.pie-figure::after{content:'';position:absolute;inset:11px;border-radius:50%;background:#131f32}
.pie-center{position:relative;z-index:1}
.pie-center strong{font-variant-numeric:tabular-nums;font-size:17px;font-weight:850;color:#e7eef8;letter-spacing:-.035em}
.pie-center small{font-size:10px;padding-left:1px;color:#a2b4c8}
.pie-details{min-width:0}
.pie-title{font-size:12px;font-weight:750;color:var(--pie-color);line-height:1.35}
.pie-amount{font-size:14px;font-weight:750;margin-top:4px;white-space:nowrap;font-variant-numeric:tabular-nums}
.pie-budget{font-size:10px;color:#93a4bd;margin-top:2px;white-space:nowrap}
@media screen and (max-width:1150px){.pie-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media screen and (max-width:760px){
 .pie-dashboard{margin:0 0 9px;padding:11px;border-radius:13px}
 .pie-dashboard-heading{margin-bottom:10px}
 .pie-dashboard h2{font-size:14px}
 .pie-dashboard-heading p{font-size:10px}
 .pie-key{display:none}
 .pie-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .pie-tile{padding:9px;gap:8px;border-radius:11px}
 .pie-tile-primary{grid-column:span 2;justify-content:center;gap:16px}
 .pie-figure{flex-basis:62px;width:62px;height:62px}
 .pie-figure::after{inset:9px}
 .pie-center strong{font-size:14px}
 .pie-center small{font-size:9px}
 .pie-title{font-size:11px}
 .pie-amount{font-size:12px;margin-top:2px}
 .pie-budget{font-size:9px}
}
@media screen and (max-width:350px){.pie-tile{gap:6px;padding:7px}.pie-figure{flex-basis:55px;width:55px;height:55px}.pie-amount{font-size:11px}}
@media print{.pie-dashboard{display:none!important}}

/* THE PULSE v8 – koláčové grafy ako navigácia do profesií */
.pie-tile[role="button"]{cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;-webkit-tap-highlight-color:transparent}
.pie-tile[role="button"]:hover{transform:translateY(-2px);border-color:var(--pie-color);box-shadow:0 7px 22px rgba(0,0,0,.16)}
.pie-tile[role="button"]:focus-visible{outline:2px solid var(--pie-color);outline-offset:3px}
.pie-tile[role="button"]:active{transform:scale(.98)}
#sections .section{scroll-margin-top:16px}
@media (prefers-reduced-motion:reduce){.pie-tile[role="button"]{transition:none}}
@media print{.pie-tile[role="button"]{cursor:default;transform:none!important}}

/* THE PULSE v9 – pevná šípka vľavo dole */
.tp-back-to-top {
  position: fixed;
  bottom: 22px;
  left: 18px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(54,224,255,.52);
  background: rgba(13, 29, 49, .94);
  color: #62e4fb;
  box-shadow: 0 5px 23px rgba(0,0,0,.34), 0 0 13px rgba(54,224,255,.13);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background .18s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tp-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.tp-back-to-top:hover {background: #153a59;filter: none}
.tp-back-to-top:focus-visible {outline: 3px solid #80f0ff;outline-offset: 3px}
@media screen and (max-width:760px) {
  .tp-back-to-top {
    left: 14px;
    bottom: max(20px, env(safe-area-inset-bottom, 0px) + 14px);
    width: 46px;
    height: 46px;
  }
}
@media print {.tp-back-to-top{display:none!important}}
@media (prefers-reduced-motion: reduce) {.tp-back-to-top{transition:none}}

/* THE PULSE v10 – šípka bezpečne nad spodnými ovládacími prvkami Safari */
@media screen and (max-width: 760px) {
  .tp-back-to-top {
    bottom: max(51px, calc(env(safe-area-inset-bottom, 0px) + 39px));
    left: 14px;
    z-index: 10000;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }
}

/* THE PULSE v15 – logo väčšie, text vpravo */
.brand{display:flex;align-items:center;gap:18px;min-width:0;flex:1}
.logo-image{display:block;height:92px;width:auto;max-width:min(44vw,540px);object-fit:contain;filter:drop-shadow(0 6px 18px rgba(0,0,0,.28));flex:0 0 auto}
header .sub{margin-top:0;font-size:18px;line-height:1.2;letter-spacing:.02em;color:#b7c6da;white-space:normal;max-width:680px;text-align:left}
header{min-height:118px}

@media screen and (max-width:1100px){
  .brand{gap:14px}
  .logo-image{height:74px;max-width:42vw}
  header .sub{font-size:15px;max-width:420px}
}

@media screen and (max-width:760px){
  header{padding:14px 14px 16px;align-items:center;gap:10px;min-height:unset}
  .brand{gap:10px;max-width:calc(100vw - 150px)}
  .logo-image{height:52px;max-width:48vw}
  header .sub{font-size:10px;line-height:1.25;max-width:150px}
}

@media screen and (max-width:420px){
  .brand{max-width:calc(100vw - 132px)}
  .logo-image{height:46px;max-width:46vw}
  header .sub{font-size:9px;max-width:130px}
}

@media print{
  .brand{gap:12px}
  .logo-image{height:34px;filter:none;max-width:none}
  header .sub{font-size:11px;max-width:none;color:#555}
}

/* THE PULSE: názvy projektov vždy veľkými písmenami */
.projectbar select#project, .projectbar #projecttitle { text-transform: uppercase; }
