/* Match the official calendar's immediate daily-result tooltip. */
#sTrack .tr-heat i[role="button"] { cursor:pointer; touch-action:manipulation; }
#sTrack .tr-heat i.tr-day-on,
#sTrack .tr-heat i[role="button"]:focus-visible { outline:2px solid var(--ink); outline-offset:1px; }
.nb-tr-day-tip { position:fixed; inset:auto; z-index:10000; pointer-events:none;
  max-width:calc(100vw - 16px); padding:8px 11px; border:1px solid var(--line-2);
  border-radius:8px; background:var(--surface); color:var(--ink); box-shadow:var(--shadow);
  font:400 11.5px/1.5 'JetBrains Mono',monospace; text-align:start;
  opacity:0; visibility:hidden; transition:opacity .12s ease; }
.nb-tr-day-tip.is-visible { opacity:1; visibility:visible; }
.nb-tr-day-tip b { display:block; font-size:14px; font-weight:700; color:#29C995; text-align:inherit; }
.nb-tr-day-tip span { display:block; color:var(--ink-3); overflow-wrap:anywhere; }
.nb-tr-day-tip.is-negative b { color:#FF6B87; }
[data-theme="signature"] .nb-tr-day-tip b { color:#0B8A63; }
[data-theme="signature"] .nb-tr-day-tip.is-negative b { color:#D63A57; }
html[lang="ar"] .nb-tr-day-tip,html[lang="hi"] .nb-tr-day-tip,
html[lang="he"] .nb-tr-day-tip { font-family:inherit; }
@media (prefers-reduced-motion:reduce) { .nb-tr-day-tip { transition:none; } }

.tk { --tk-up:#12A97A; --tk-up-ink:#0B8A63; --tk-dn:#E0475B;
  position:relative; isolation:isolate; overflow:hidden; margin-bottom:24px; border:1px solid var(--line); border-radius:22px; background:var(--surface);
  box-shadow:0 1px 2px rgba(19,28,59,.04),0 34px 80px -46px rgba(19,28,59,.38); container-type:inline-size; }
.tk::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(620px 300px at 60% 45%,rgba(18,169,122,.08),transparent 70%),
    linear-gradient(rgba(61,107,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(61,107,255,.04) 1px,transparent 1px);
  background-size:auto,32px 32px,32px 32px;
  -webkit-mask-image:radial-gradient(ellipse 85% 75% at 50% 40%,#000 30%,transparent 88%); mask-image:radial-gradient(ellipse 85% 75% at 50% 40%,#000 30%,transparent 88%); }
.tk-head { padding:26px 28px 4px; }
.tk-kicker { display:inline-flex; align-items:center; gap:10px; margin:0; font:600 11.5px/1.5 'JetBrains Mono',monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); }
html[lang="ar"] .tk-kicker,html[lang="hi"] .tk-kicker { letter-spacing:0; font-family:inherit; font-size:13px; text-transform:none; }
.tk-kicker i { width:8px; height:8px; border-radius:50%; background:var(--tk-up); animation:tkPing 2.2s ease-out infinite; }
@keyframes tkPing { 0% { box-shadow:0 0 0 0 rgba(18,169,122,.5); } 70%,100% { box-shadow:0 0 0 10px rgba(18,169,122,0); } }
.tk h2 { margin:8px 0 8px; font-size:clamp(22px,2.6cqi,30px); line-height:1.15; font-weight:650; letter-spacing:-.025em; color:var(--ink); }
.tk-lead { margin:0; max-width:70ch; font-size:15px; line-height:1.65; color:var(--ink-2); }

.tk-scenes { display:grid; margin:18px 20px 0; }
.tk-scene { grid-area:1/1; display:flex; min-width:0; opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .45s ease, transform .55s cubic-bezier(.16,1,.3,1), visibility 0s .45s; }
.tk-scene.is-on { opacity:1; visibility:visible; transform:none; transition:opacity .45s ease .05s, transform .55s cubic-bezier(.16,1,.3,1) .05s, visibility 0s; }
.tk-scene>div { flex:1; min-width:0; padding:18px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(180deg,var(--surface),var(--surface-alt)); }

.tk-days { display:flex; flex-direction:column; gap:14px; }
.tk-top { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.tk-kpi { display:flex; flex-direction:column; gap:3px; min-width:0; padding:10px 12px; border-radius:12px; border:1px solid var(--line); background:var(--surface); }
.tk-kpi span { font-size:12px; color:var(--ink-3); }
.tk-kpi b { font:700 clamp(15px,2.2cqi,20px)/1.2 'JetBrains Mono',monospace; letter-spacing:-.02em; color:var(--ink); direction:ltr; unicode-bidi:isolate; text-align:start; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
[dir="rtl"] .tk-kpi b { text-align:right; }
.tk-kpi:first-child b { font-size:clamp(20px,3cqi,27px); color:var(--tk-up-ink); }
.tk-kpi .tk-date { font-family:inherit; font-weight:650; font-size:14.5px; letter-spacing:0; direction:inherit; unicode-bidi:normal; white-space:normal; }
.tk-chart,.tk-code { position:relative; margin-inline-start:54px; direction:ltr; }
[dir="rtl"] .tk-chart,[dir="rtl"] .tk-code { margin-inline-start:0; margin-inline-end:0; margin-left:54px; }
.tk-chart { height:230px; }
.tk-grid span { position:absolute; left:0; right:0; height:0; border-top:1px dashed var(--line); }
.tk-grid i { position:absolute; right:calc(100% + 10px); top:0; transform:translateY(-50%); font:500 11px/1 'JetBrains Mono',monospace; font-style:normal; color:var(--ink-3); white-space:nowrap; }
.tk-svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.tk-line { fill:none; stroke:var(--tk-up); stroke-width:2.6; stroke-linejoin:round; stroke-linecap:round; }
.tk-head-dot { position:absolute; z-index:3; width:12px; height:12px; margin:0 0 -6px -6px; border-radius:50%; background:var(--tk-up); border:2px solid var(--surface); box-shadow:0 0 0 6px rgba(18,169,122,.18); }
.tk:not(.is-end) .tk-head-dot { animation:tkBeat 1.2s ease-out infinite; }
@keyframes tkBeat { 0% { box-shadow:0 0 0 0 rgba(18,169,122,.5); } 80%,100% { box-shadow:0 0 0 14px rgba(18,169,122,0); } }
.tk-bubble { position:absolute; z-index:4; padding:4px 9px; border-radius:8px; background:var(--tk-up); color:#fff; font:700 12px/1.3 'JetBrains Mono',monospace; white-space:nowrap; transform:translate(14px,50%); box-shadow:0 10px 20px -10px rgba(18,169,122,.8); }
.tk-bubble.is-flip { transform:translate(calc(-100% - 14px),50%); }
.tk-neg { position:absolute; z-index:2; width:0; height:0; opacity:0; transition:opacity .3s; }
.tk-neg i { position:absolute; left:-5px; top:-5px; width:10px; height:10px; border-radius:50%; background:var(--tk-dn); border:2px solid var(--surface); }
.tk-neg em { display:none; position:absolute; left:50%; top:9px; transform:translateX(-50%); padding:1px 5px; border-radius:5px; background:rgba(224,71,91,.14); color:var(--tk-dn); font:700 10.5px/1.3 'JetBrains Mono',monospace; font-style:normal; white-space:nowrap; }
.tk-neg.is-on { opacity:1; animation:tkPop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes tkPop { from { transform:scale(.3); } }
.tk-code { height:66px; }
.tk-code svg { display:block; width:100%; height:46px; overflow:visible; }
.tk-code rect.p { fill:var(--tk-up); opacity:.75; }
.tk-code rect.n { fill:var(--tk-dn); }
.tk-base { stroke:var(--line-2); stroke-width:1; }
.tk-ticks span { position:absolute; top:50px; font-size:11px; line-height:1; color:var(--ink-3); white-space:nowrap; }
.tk-ticks span::before { content:''; position:absolute; left:0; top:-8px; width:1px; height:5px; background:var(--line-2); }
.tk-meta { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 16px; }
.tk-legend { display:inline-flex; align-items:center; gap:7px; font-size:12px; color:var(--ink-3); }
.tk-legend i { width:9px; height:9px; border-radius:50%; background:var(--tk-dn); }
.tk-src { margin:0; font-size:12px; line-height:1.45; color:var(--ink-3); }
.tk-src::before { content:''; display:inline-block; width:7px; height:7px; margin-inline-end:7px; border-radius:50%; background:var(--tk-up); vertical-align:1px; }

.tk-months-s { display:flex; flex-direction:column; justify-content:center; gap:14px; }
.tk-mhead { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; }
.tk-mk { font:600 11.5px/1.5 'JetBrains Mono',monospace; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3); }
html[lang="ar"] .tk-mk,html[lang="hi"] .tk-mk,html[lang="ru"] .tk-mk { letter-spacing:0; font-family:inherit; font-size:13px; text-transform:none; }
.tk-run { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.tk-run i { font-size:12px; font-style:normal; color:var(--ink-3); }
.tk-runv { font:700 clamp(22px,3.2cqi,30px)/1.1 'JetBrains Mono',monospace; letter-spacing:-.03em; color:var(--tk-up-ink); direction:ltr; unicode-bidi:isolate; font-variant-numeric:tabular-nums; }
.tk-mbars { direction:ltr; display:grid; grid-template-columns:repeat(var(--n,8),minmax(0,1fr)); gap:clamp(6px,1.4cqi,14px); height:220px; }
.tk-m { display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0; }
.tk-m>b { font:700 clamp(10.5px,1.4cqi,13px)/1.2 'JetBrains Mono',monospace; color:var(--ink); direction:ltr; unicode-bidi:isolate; white-space:nowrap; opacity:0; transform:translateY(6px); transition:opacity .35s .25s, transform .45s cubic-bezier(.16,1,.3,1) .25s; }
.tk-mt { position:relative; flex:1; width:100%; max-width:56px; border-radius:8px; background:var(--surface); border:1px solid var(--line); overflow:hidden; }
.tk-mt i { position:absolute; left:3px; right:3px; bottom:3px; height:calc(var(--h) - 6px); border-radius:6px; background:linear-gradient(180deg,#34D399,var(--tk-up)); transform:scaleY(0); transform-origin:bottom; transition:transform .65s cubic-bezier(.16,1,.3,1); }
.tk-m.is-partial .tk-mt i { background:repeating-linear-gradient(135deg,var(--tk-up) 0 6px,rgba(18,169,122,.45) 6px 12px); }
.tk-ml { display:flex; flex-direction:column; align-items:center; font-size:12px; font-weight:600; line-height:1.25; color:var(--ink-2); text-align:center; }
.tk-ml small { font-size:10.5px; font-weight:500; color:var(--ink-3); }
.tk-m.is-on>b { opacity:1; transform:none; }
.tk-m.is-on .tk-mt i { transform:none; }
.tk-eq { margin:0; min-height:1.5em; font:500 12.5px/1.7 'JetBrains Mono',monospace; color:var(--ink-3); direction:ltr; unicode-bidi:isolate; text-align:start; opacity:0; transition:opacity .5s; }
[dir="rtl"] .tk-eq { text-align:right; }
.tk-eq span { font-family:Inter,sans-serif; font-weight:600; color:var(--ink-2); }
html[lang="ar"] .tk-eq span,html[lang="hi"] .tk-eq span { font-family:inherit; }
.tk-eq i { font-style:normal; color:var(--ink-2); }
.tk-eq b { color:var(--tk-up-ink); }
.tk-eq.is-on { opacity:1; }

.tk-keys { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:center; gap:12px; }
.tk-tile { display:flex; align-items:center; justify-content:space-between; gap:14px; min-width:0; padding:14px 16px; border-radius:16px; border:1px solid var(--line); background:var(--surface); opacity:0; transform:translateY(8px); transition:opacity .4s, transform .5s cubic-bezier(.16,1,.3,1); }
.tk-tile.is-in { opacity:1; transform:none; }
.tk-tile-t { display:flex; flex-direction:column; gap:3px; min-width:0; }
.tk-tile-t i { font-size:12.5px; font-style:normal; color:var(--ink-3); }
.tk-tile-t b { font:700 clamp(18px,2.6cqi,24px)/1.15 'JetBrains Mono',monospace; letter-spacing:-.02em; color:var(--ink); direction:ltr; unicode-bidi:isolate; text-align:start; }
[dir="rtl"] .tk-tile-t b { text-align:right; }
.tk-tile-t small { font-size:12px; color:var(--ink-3); }
.tk-t-pos { justify-content:flex-start; }
.tk-ring { position:relative; flex:none; display:grid; place-items:center; width:78px; height:78px; }
.tk-ring svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.tk-ring circle { fill:none; stroke-width:6; }
.tk-ring-bg { stroke:var(--line); }
.tk-ring-fg { stroke:var(--tk-up); stroke-linecap:round; stroke-dasharray:169.6; stroke-dashoffset:169.6; }
.tk-ring-v { position:relative; font:700 13px/1 'JetBrains Mono',monospace; color:var(--tk-up-ink); direction:ltr; unicode-bidi:isolate; }
.tk-t-neg { align-items:flex-start; flex-wrap:wrap; }
.tk-t-neg .tk-tile-t b { color:var(--tk-dn); }
.tk-neg-list { list-style:none; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; margin:0; padding:0; max-width:60%; }
.tk-neg-list li { display:inline-flex; align-items:center; gap:6px; padding:3px 9px; border-radius:999px; background:rgba(224,71,91,.10); border:1px solid rgba(224,71,91,.28); font-size:11.5px; color:var(--ink-2); }
.tk-neg-list b { font:700 11px 'JetBrains Mono',monospace; color:var(--tk-dn); direction:ltr; unicode-bidi:isolate; }
.tk-t-dd { flex-direction:column; align-items:stretch; }
.tk-cmp { display:flex; flex-direction:column; gap:6px; }
.tk-cmp>span { display:block; height:10px; border-radius:5px; background:var(--surface-alt); overflow:hidden; }
.tk-cmp i { display:block; height:100%; border-radius:5px; transform:scaleX(0); transform-origin:left; transition:transform .8s cubic-bezier(.16,1,.3,1); }
[dir="rtl"] .tk-cmp i { transform-origin:right; }
.tk-cmp-up i { width:100%; background:linear-gradient(90deg,#34D399,var(--tk-up)); }
.tk-cmp-dn i { background:var(--tk-dn); min-width:3px; }
.tk-cmp>span.is-on i { transform:none; }
.tk-t-st { flex-direction:column; align-items:stretch; }
.tk-st-bar { display:block; height:10px; border-radius:5px; background:var(--surface-alt); overflow:hidden; }
.tk-st-bar i { display:block; width:100%; height:100%; border-radius:5px; background:linear-gradient(90deg,var(--accent),var(--tk-up)); transform:scaleX(0); transform-origin:left; transition:transform .9s cubic-bezier(.16,1,.3,1); }
[dir="rtl"] .tk-st-bar i { transform-origin:right; }
.tk-caution { grid-column:1/-1; margin:0; padding-inline-start:12px; border-inline-start:3px solid var(--line-2); font-size:13px; line-height:1.5; color:var(--ink-2); opacity:0; transition:opacity .5s; }
.tk-caution.is-in { opacity:1; }

.tk-steps { list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:14px 20px 0; padding:0; }
.tk-steps button { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; column-gap:8px; row-gap:8px; width:100%; padding:8px 4px 4px; border:0; background:none; font:inherit; color:var(--ink-3); cursor:pointer; text-align:start; }
.tk-step-n { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; border:1.5px solid var(--line-2); font:700 11.5px/1 'JetBrains Mono',monospace; transition:background .3s, color .3s, border-color .3s; }
.tk-step-l { font-size:13px; font-weight:600; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tk-step-bar { grid-column:1/-1; height:3px; border-radius:3px; background:var(--line); overflow:hidden; }
.tk-step-bar i { display:block; height:100%; background:linear-gradient(90deg,var(--accent),var(--tk-up)); transform-origin:left; transform:scaleX(0); }
[dir="rtl"] .tk-step-bar i { transform-origin:right; }
.tk-steps button.is-on,.tk-steps button.is-done { color:var(--ink); }
.tk-steps button.is-on .tk-step-n { background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:0 0 0 4px rgba(61,107,255,.15); }
.tk-steps button.is-done .tk-step-n { border-color:var(--accent); color:var(--accent); }
.tk-foot-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; margin-top:12px; padding:14px 22px 16px; border-top:1px solid var(--line); background:var(--surface-alt); }
.tk-cap { flex:1 1 320px; min-height:3.1em; margin:0; font-size:14px; line-height:1.55; color:var(--ink-2); }
.tk-ctrl { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.tk-ctrl button { min-height:40px; padding:0 16px; border:1px solid var(--line-2); border-radius:999px; background:var(--surface); color:var(--ink); font:inherit; font-size:13.5px; font-weight:600; cursor:pointer; transition:border-color .2s, color .2s; }
.tk-ctrl button:hover { border-color:var(--accent); color:var(--accent); }
.tk-ctrl button:focus-visible,.tk-steps button:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.tk:not(.tk-on) .tk-scenes { opacity:0; translate:0 18px; }
.tk-scenes { transition:opacity .7s ease, translate .9s cubic-bezier(.16,1,.3,1); }

@container (min-width:780px) {
  .tk-scenes,.tk-steps { margin-left:28px; margin-right:28px; }
  .tk-scene>div { padding:20px 24px; }
  .tk-chart { height:250px; }
  .tk-foot-bar { padding:14px 28px 18px; }
}
@container (max-width:560px) {
  .tk-head { padding:22px 18px 2px; }
  .tk-scenes,.tk-steps { margin-left:12px; margin-right:12px; }
  .tk-scene>div { padding:14px 12px; }
  .tk-top { grid-template-columns:1fr 1fr; }
  .tk-kpi:first-child { grid-column:1/-1; }
  .tk-chart,.tk-code { margin-inline-start:40px; }
  [dir="rtl"] .tk-chart,[dir="rtl"] .tk-code { margin-left:40px; }
  .tk-chart { height:180px; }
  .tk-grid i { font-size:10px; right:calc(100% + 6px); }
  .tk-ticks span { font-size:9.5px; }
  .tk-mbars { grid-template-columns:1fr; grid-auto-rows:24px; height:auto; gap:6px; }
  .tk-m { flex-direction:row; gap:8px; }
  .tk-m>b { order:3; min-width:52px; font-size:11px; text-align:end; }
  .tk-ml { order:1; flex-direction:row; justify-content:flex-start; gap:4px; min-width:58px; font-size:11px; text-align:start; }
  .tk-mt { order:2; flex:1; max-width:none; height:16px; }
  .tk-mt i { top:2px; bottom:2px; left:2px; right:auto; height:auto; width:calc(var(--h) - 4px); transform:scaleX(0); transform-origin:left; }
  .tk-ticks span:nth-child(even) { visibility:hidden; }
  .tk-ml small { display:none; }
  .tk-keys { grid-template-columns:1fr; }
  .tk-neg-list { max-width:none; justify-content:flex-start; }
  .tk-steps button { grid-template-columns:1fr; justify-items:center; }
  .tk-step-l { display:none; }
  .tk-foot-bar { padding:12px 16px 14px; }
}
@media (prefers-reduced-motion:reduce) { .tk *,.tk::before { animation:none!important; transition:none!important; } }
html.nbx-rm .tk *,html.nbx-rm .tk::before { animation:none!important; transition:none!important; }
@media print { .tk { display:none!important; } }
