.dltk{--dltk-navy:#14284b;--dltk-coral:#e8524a;--dltk-coral-d:#b8352c;--dltk-line:#dfe3ea;--dltk-soft:#f5f7fa;--dltk-text:#1f2733;--dltk-muted:#566070;--dltk-card:#fff;position:relative;margin:0 0 2em;color:var(--dltk-text);font-size:16px;line-height:1.55}
.dltk *{box-sizing:border-box}
.dltk p{margin:0 0 .8em}
.dltk-lead{font-size:17px}
.dltk-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Вкладки */
.dltk-tabs{display:flex;gap:0;margin:1.2em 0 0;border-bottom:2px solid var(--dltk-navy)}
.dltk .dltk-tab{display:flex;align-items:center;justify-content:center;flex:0 1 auto;min-height:48px;margin:0;padding:10px 22px;border:0;border-radius:0;background:var(--dltk-soft);color:var(--dltk-navy);font:inherit;font-weight:600;font-size:16px;line-height:1.2;text-align:center;text-transform:none;letter-spacing:0;cursor:pointer;box-shadow:none}
.dltk .dltk-tab+.dltk-tab{margin-left:4px}
.dltk .dltk-tab[aria-selected="true"]{background:var(--dltk-navy);color:#fff}
.dltk .dltk-tab:hover{background:#e6ebf2;color:var(--dltk-navy)}
.dltk .dltk-tab[aria-selected="true"]:hover{background:var(--dltk-navy);color:#fff}
.dltk .dltk-tab:focus-visible{outline:3px solid var(--dltk-coral);outline-offset:2px}
.dltk-panel{padding:22px 0 0}

/* Форма */
.dltk-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:28px;align-items:start}
.dltk-form{min-width:0}
.dltk-reading{margin:0 0 14px}
.dltk-reading-h{margin:0 0 6px!important;font-weight:700;color:var(--dltk-navy)}
.dltk-nums{display:flex;align-items:flex-end;gap:10px;flex-wrap:nowrap}
.dltk-num,.dltk-age{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 0;margin:0}
.dltk-num span,.dltk-age span,.dltk-dfield span{font-size:14px;font-weight:600;color:var(--dltk-muted)}
.dltk-num small,.dltk-age small{font-size:12px;color:var(--dltk-muted);line-height:1.2}
.dltk-num-p{flex:.85 1 0;margin-left:6px}
.dltk-slash{padding:0 0 26px;font-size:26px;color:#8a94a3;line-height:1}
.dltk input[type=text],.dltk input[type=date],.dltk select{width:100%;min-height:48px;margin:0;padding:6px 10px;border:1px solid #b8c0cc;border-radius:3px;background:#fff;color:var(--dltk-navy);font:inherit;font-size:22px;font-weight:700;line-height:1.2;box-shadow:none}
.dltk-num input{text-align:center}
.dltk input[type=date],.dltk select{font-size:16px;font-weight:600}
.dltk input:focus,.dltk select:focus{outline:2px solid var(--dltk-navy);outline-offset:1px;border-color:var(--dltk-navy)}
.dltk-age{max-width:220px;margin:16px 0 0}
.dltk-age input{text-align:center}
.dltk-hint{font-size:14px;color:var(--dltk-muted)}
.dltk-checks{margin:16px 0 0;display:flex;flex-direction:column;gap:8px}
.dltk-check{display:flex;gap:10px;align-items:flex-start;margin:0;padding:10px 12px;border:1px solid var(--dltk-line);border-radius:3px;background:var(--dltk-card);font-size:15px;line-height:1.4;cursor:pointer}
.dltk-check input{flex:0 0 auto;width:20px;height:20px;margin:1px 0 0;accent-color:var(--dltk-navy)}
.dltk-check-alarm{border-color:#f0c3bf;background:#fff6f5}
.dltk-check-alarm input{accent-color:var(--dltk-coral-d)}

/* Кнопки */
.dltk .dltk-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:8px 18px;border:2px solid var(--dltk-navy);border-radius:3px;background:var(--dltk-navy);color:#fff;font:inherit;font-size:15px;font-weight:600;line-height:1.2;text-align:center;text-transform:none;letter-spacing:0;cursor:pointer;box-shadow:none}
.dltk .dltk-btn:hover{background:var(--dltk-coral-d);border-color:var(--dltk-coral-d);color:#fff}
.dltk .dltk-btn:focus-visible{outline:3px solid var(--dltk-coral);outline-offset:2px}
.dltk .dltk-btn-ghost{background:transparent;color:var(--dltk-navy)}
.dltk .dltk-btn-ghost:hover{background:var(--dltk-navy);border-color:var(--dltk-navy);color:#fff}
.dltk [data-dltk-more]{margin:0 0 10px}
.dltk [hidden]{display:none!important}

/* Результат */
.dltk-result{min-width:0;padding:20px;border:1px solid var(--dltk-line);border-top:6px solid #b8c0cc;background:var(--dltk-card);scroll-margin-top:90px}
.dltk-result-k{margin:0 0 2px!important;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--dltk-muted)}
.dltk-cat{margin:0 0 4px!important;font-family:var(--title-font,inherit);font-size:26px;font-weight:700;line-height:1.2;color:var(--dltk-navy)}
.dltk-val{color:var(--dltk-muted);font-size:15px}
.dltk-result.is-low{border-top-color:#2f6db5}.dltk-result.is-low .dltk-cat{color:#1f4f8f}
.dltk-result.is-opt{border-top-color:#2e8b57}.dltk-result.is-opt .dltk-cat{color:#1e6b3c}
.dltk-result.is-norm{border-top-color:#6a9f2a}.dltk-result.is-norm .dltk-cat{color:#3f6b12}
.dltk-result.is-hn{border-top-color:#d4a106}.dltk-result.is-hn .dltk-cat{color:#6e5200}
.dltk-result.is-g1{border-top-color:#e07b10}.dltk-result.is-g1 .dltk-cat{color:#8a4300}
.dltk-result.is-g2{border-top-color:#d9412f}.dltk-result.is-g2 .dltk-cat{color:#9b2416}
.dltk-result.is-g3,.dltk-result.is-err{border-top-color:#a3170c}.dltk-result.is-g3 .dltk-cat,.dltk-result.is-err .dltk-cat{color:#7d1610}
.dltk-alarm{margin:0 0 14px;padding:12px 14px;border-left:5px solid #a3170c;background:#fbe3e0;color:#5c0f09;font-size:15px;line-height:1.45}
.dltk-alarm b{color:#7d1610}
.dltk-text{margin-top:12px!important}
.dltk-facts{margin:0 0 12px;padding:0;list-style:none}
.dltk-facts li{position:relative;margin:0 0 10px;padding:0 0 0 16px;font-size:15px;line-height:1.5}
.dltk-facts li::before{content:"";position:absolute;left:0;top:.6em;width:7px;height:7px;border-radius:50%;background:var(--dltk-coral)}
.dltk-todo{margin:0 0 12px;padding:12px 14px;background:var(--dltk-soft);border-left:4px solid var(--dltk-navy)}
.dltk-todo p{margin:0!important;font-size:15px}
.dltk-todo .dltk-todo-h{margin:0 0 4px!important;font-weight:700;color:var(--dltk-navy)}
.dltk-links{margin:0!important;font-size:15px}
.dltk-links a,.dltk-src a{color:var(--dltk-coral-d);text-decoration:underline}

/* Графік */
.dltk-chart{margin:8px 0 4px}
.dltk-chart svg{display:block;width:100%;max-width:440px;height:auto}
.dltk-r-g3{fill:#f2b1ab}.dltk-r-g2{fill:#f8cbc5}.dltk-r-g1{fill:#fde0c2}.dltk-r-hn{fill:#fbefc4}.dltk-r-norm{fill:#e5f1d2}.dltk-r-opt{fill:#d3eedd}.dltk-r-low{fill:#dbe7f6}
.dltk-c-lab{font-size:11px;fill:#38404c;font-weight:600}
.dltk-c-tick{font-size:11px;fill:var(--dltk-muted)}
.dltk-c-axis{font-size:11px;fill:var(--dltk-muted)}
.dltk-c-guide{stroke:var(--dltk-navy);stroke-width:1;stroke-dasharray:3 3}
.dltk-c-dot{fill:var(--dltk-navy);stroke:#fff;stroke-width:3}
.dltk-c-me{font-size:13px;font-weight:700;fill:var(--dltk-navy);paint-order:stroke;stroke:#fff;stroke-width:3px}
@media (prefers-reduced-motion:no-preference){.dltk-c-dot{transition:cx .2s,cy .2s}}

/* Шкала пульсу */
.dltk-pbar{position:relative;display:block;height:10px;margin:10px 0 22px;border-radius:5px;background:#eef1f5;max-width:360px}
.dltk-pbar-z{position:absolute;top:0;bottom:0}
.dltk-pz-low{background:#dbe7f6;border-radius:5px 0 0 5px}
.dltk-pz-ok{background:#cfe9d8}
.dltk-pz-high{background:#f8cbc5;border-radius:0 5px 5px 0}
.dltk-pbar-m{position:absolute;top:-4px;width:4px;height:18px;margin-left:-2px;border-radius:2px;background:var(--dltk-navy)}
.dltk-pbar-t{position:absolute;top:13px;font-size:11px;color:var(--dltk-muted);transform:translateX(-50%)}

/* Як міряти, таблиця */
.dltk-how{margin:24px 0 18px;border:1px solid var(--dltk-line);background:var(--dltk-card)}
.dltk-how summary,.dltk-faq summary{display:flex;align-items:center;min-height:48px;padding:10px 44px 10px 16px;position:relative;font-weight:700;color:var(--dltk-navy);cursor:pointer;list-style:none}
.dltk-how summary::-webkit-details-marker,.dltk-faq summary::-webkit-details-marker{display:none}
.dltk-how summary::after,.dltk-faq summary::after{content:"+";position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:24px;font-weight:400;color:var(--dltk-coral-d)}
.dltk-how[open] summary::after,.dltk-faq[open] summary::after{content:"−"}
.dltk-how summary:focus-visible,.dltk-faq summary:focus-visible{outline:3px solid var(--dltk-coral);outline-offset:-3px}
.dltk-how ul{margin:0;padding:0 16px 14px 36px}
.dltk-how li{margin:0 0 6px}
.dltk-table{width:100%;margin:0 0 10px;border-collapse:collapse;font-size:15px}
.dltk-table caption{padding:0 0 8px;text-align:left;font-weight:700;color:var(--dltk-navy)}
.dltk-table th,.dltk-table td{padding:9px 10px;border:1px solid var(--dltk-line);text-align:left;vertical-align:top}
.dltk-table thead th{background:var(--dltk-navy);color:#fff;border-color:var(--dltk-navy)}
.dltk-table tbody th{font-weight:600}
.dltk-table tr.is-on th,.dltk-table tr.is-on td{background:#fff1d6;font-weight:700}
.dltk-table tr.is-on th{box-shadow:inset 4px 0 0 var(--dltk-coral)}
.dltk-note{font-size:14px;color:var(--dltk-muted)}
.dltk-src{margin-top:20px!important;padding-top:14px;border-top:1px solid var(--dltk-line);font-size:13px;color:var(--dltk-muted)}

/* Щоденник */
.dltk-dform{display:grid;grid-template-columns:1.4fr 1fr .8fr .8fr .8fr auto;gap:10px;align-items:end}
.dltk-dfield{display:flex;flex-direction:column;gap:3px;margin:0;min-width:0}
.dltk-dform input,.dltk-dform select{min-width:0;max-width:100%}
.dltk-dfield input[type=text]{text-align:center;font-size:20px}
.dltk-err{margin:10px 0 0!important;color:#9b2416;font-weight:600}
.dltk-dsum{margin:18px 0 0}
.dltk-dverdict{padding:12px 14px;border-left:5px solid #2e8b57;background:#e6f4ec;font-size:16px}
.dltk-dverdict.is-high{border-color:#d9412f;background:#fbe1dd}
.dltk-dstats{margin:0 0 10px;padding:0 0 0 20px;font-size:15px}
.dltk-dstats li{margin:0 0 4px}
.dltk-dmore{font-size:15px;font-weight:600;color:var(--dltk-navy)}
.dltk-dsevere{color:#9b2416}
.dltk-dprint{margin:16px 0 0}
.dltk-dprint-h{display:none}
.dltk-dtable-wrap{max-width:100%;overflow-x:auto;contain:inline-size}
.dltk-dtable td{white-space:nowrap}
.dltk-empty{color:var(--dltk-muted);text-align:center!important}
.dltk-dot{display:inline-block;width:10px;height:10px;margin:0 8px 0 0;border-radius:50%;background:#b8c0cc;vertical-align:baseline}
.dltk-dot.is-low{background:#2f6db5}.dltk-dot.is-opt{background:#2e8b57}.dltk-dot.is-norm{background:#6a9f2a}.dltk-dot.is-hn{background:#d4a106}.dltk-dot.is-g1{background:#e07b10}.dltk-dot.is-g2{background:#d9412f}.dltk-dot.is-g3{background:#a3170c}
.dltk .dltk-del{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-10px 0;padding:0;border:0;background:transparent;color:var(--dltk-muted);font-size:24px;line-height:1;cursor:pointer;box-shadow:none}
.dltk .dltk-del:hover{color:#9b2416;background:transparent}
.dltk .dltk-del:focus-visible{outline:3px solid var(--dltk-coral);outline-offset:-3px}
.dltk-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0}

/* FAQ під інструментом */
.dltk-faq{margin:0 0 10px;border:1px solid var(--dltk-line,#dfe3ea);background:#fff}
.dltk-faq summary{color:#14284b}
.dltk-faq summary::after{color:#b8352c}
.dltk-faq-a{padding:0 16px 6px}

/* Рядок з підсумком на телефоні */
.dltk-sticky{display:none}
@media (max-width:820px){
  .dltk-grid{grid-template-columns:1fr;gap:20px}
  .dltk-dform{grid-template-columns:repeat(6,minmax(0,1fr))}
  .dltk-dform .dltk-dfield{grid-column:span 2}
  .dltk-dform .dltk-dfield:nth-child(1),.dltk-dform .dltk-dfield:nth-child(2){grid-column:span 3}
  .dltk-dform .dltk-btn{grid-column:1/-1}
  .dltk-sticky{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--dltk-navy);color:#fff!important;font-weight:600;font-size:15px;line-height:1.3;text-decoration:none!important;box-shadow:0 -4px 14px rgba(0,0,0,.18)}
  .dltk-sticky[hidden]{display:none!important}
  .dltk-sticky-more{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:36px;padding:4px 14px;border-radius:3px;background:var(--dltk-coral-d);color:#fff;text-align:center}
}
@media (max-width:480px){
  .dltk-nums{gap:6px}
  .dltk-num-p{margin-left:2px}
  .dltk input[type=text]{font-size:20px;padding:6px 4px}
  .dltk-num small{font-size:11px}
  .dltk .dltk-tab{flex:1 1 0;padding:10px 8px;font-size:15px}
  .dltk-result{padding:16px}
  .dltk-cat{font-size:23px}
  .dltk-actions .dltk-btn{flex:1 1 100%}
  .dltk-dtable{font-size:14px}
  .dltk-dtable th,.dltk-dtable td{padding:8px 6px}
  .dltk .dltk-del{width:36px}
  .dltk-dot{margin-right:5px}
}

/* Темна тема */
.s-dark .dltk{--dltk-text:#e6e9ee;--dltk-muted:#aab2bf;--dltk-line:#363b44;--dltk-soft:#22262d;--dltk-card:#1b1d22;--dltk-coral-d:#f07b72}
.s-dark .dltk input[type=text],.s-dark .dltk input[type=date],.s-dark .dltk select{background:#25282e;color:#fff;border-color:#4a505b;color-scheme:dark}
.s-dark .dltk input:focus,.s-dark .dltk select:focus{outline-color:#9fb4dd;border-color:#9fb4dd}
.s-dark .dltk-reading-h,.s-dark .dltk-cat,.s-dark .dltk-table caption,.s-dark .dltk-how summary,.s-dark .dltk-todo .dltk-todo-h,.s-dark .dltk-dmore{color:#fff}
.s-dark .dltk .dltk-tab{background:#22262d;color:#dfe5ee}
.s-dark .dltk .dltk-tab:hover{background:#2c3139;color:#fff}
.s-dark .dltk-tabs{border-bottom-color:#4c6aa3}
.s-dark .dltk .dltk-tab[aria-selected="true"]{background:#2b4577;color:#fff}
.s-dark .dltk .dltk-btn{background:#2b4577;border-color:#2b4577}
.s-dark .dltk .dltk-btn-ghost{background:transparent;color:#dfe5ee;border-color:#6b7fa6}
.s-dark .dltk .dltk-btn:hover{background:#b8352c;border-color:#b8352c;color:#fff}
.s-dark .dltk-check-alarm{background:#2b1d1c;border-color:#6b3a36}
.s-dark .dltk-todo{border-left-color:#6b7fa6}
.s-dark .dltk-table thead th{background:#2b4577;border-color:#2b4577}
.s-dark .dltk-table tr.is-on th,.s-dark .dltk-table tr.is-on td{background:#3a3220}
.s-dark .dltk-result.is-low .dltk-cat{color:#8fb7ee}.s-dark .dltk-result.is-opt .dltk-cat{color:#7fd4a2}.s-dark .dltk-result.is-norm .dltk-cat{color:#b1d77f}.s-dark .dltk-result.is-hn .dltk-cat{color:#f2d06b}.s-dark .dltk-result.is-g1 .dltk-cat{color:#f6ad62}.s-dark .dltk-result.is-g2 .dltk-cat{color:#f58a7c}.s-dark .dltk-result.is-g3 .dltk-cat,.s-dark .dltk-result.is-err .dltk-cat{color:#ff7a6e}
.s-dark .dltk-alarm{background:#3b1a17;color:#ffd9d4}.s-dark .dltk-alarm b{color:#ffb3aa}
.s-dark .dltk-dverdict{background:#183224;color:#e6e9ee}.s-dark .dltk-dverdict.is-high{background:#3b1a17}
.s-dark .dltk-dsevere,.s-dark .dltk-err{color:#ff8a7e}
.s-dark .dltk-chart svg{background:#f4f6f9;border-radius:3px}
.s-dark .dltk-c-tick,.s-dark .dltk-c-axis{fill:#4a5361}
.s-dark .dltk-pbar{background:#2c3139}
.s-dark .dltk-pbar-m{background:#fff}
.s-dark .dltk-faq{background:#1b1d22;border-color:#363b44}
.s-dark .dltk-faq summary{color:#fff}
.s-dark .dltk-sticky{background:#2b4577}

/* Друк щоденника */
@media print{
  html.dltk-printing body *{visibility:hidden!important}
  html.dltk-printing .dltk-dprint,html.dltk-printing .dltk-dprint *{visibility:visible!important}
  html.dltk-printing .dltk-dprint{position:absolute;left:0;top:0;width:100%}
  html.dltk-printing .dltk-dprint-h{display:block;font-size:20px;font-weight:700;color:#000}
  html.dltk-printing .dltk-del{display:none!important}
  html.dltk-printing .dltk-table thead th{background:#fff!important;color:#000!important;border-color:#000}
  html.dltk-printing .dltk-table td,html.dltk-printing .dltk-table th{border-color:#000;color:#000}
  html.dltk-printing .dltk-sticky{display:none!important}
}
