/* Softineo: koncepcja „Śledzenie materiału TLC” (tlc-sledzenie-materialu.html). Tylko to, czego nie ma
   w softineo.css i kontrola-ruchu.css (z tej drugiej strona bierze krok .st-num/.st-card/.st-timeline,
   .st-badge, tabelę .cmp-t, listę .fn-list/.sf-func, .sf-note i .cta-list).
   Nowe: arkusz o wysokości treści z planem hali (suwnica, trawersa, wanny, kamery), kroki przebiegu
   z przyciskami, znaczniki „automat / ręcznie”, przywieszka, oś czasu zadania, wykres przebiegu,
   tabele danych, model danych, legenda. Skrypt: js/tlc.js na silniku js/stcs-core.js.
   Uwaga: transform/opacity elementów sterowanych skryptem są w atrybutach SVG, nie w CSS. */

/* ==========================================================================
   ARKUSZ: plan hali + tabliczka. Wysokość z treści (plan, podpis kroku, przyciski).
   ========================================================================== */
/* tabliczka: tytuł, wybór kroku i bieżący krok obok planu; opis i pieczątka niżej, plan zostaje przypięty */
/* plan w przypiętym arkuszu: cały rysunek mieści się w kolumnie */
.tlc-scene { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.tlc-scroll { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.tlc-plan { display: block; width: 100%; height: 100%; }
.tlc-plan text, .tlc-art text { font-family: var(--tech); }
/* plan oglądany w małej skali: większe opisy niż na planach STCS */
.tlc-plan .lbl { font-size: 15px; }
.tlc-plan .lbl.sm { font-size: 12.5px; }
.tlc-plan .lbl.tlc-xs { font-size: 11px; }
.tlc-ink { fill: var(--ink); }

/* zasada: detal → przywieszka → trawersa → suwnica */
.tlc-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin: 0 0 16px; font: 15px/1 var(--tech); letter-spacing: .02em; }
.tlc-rule > span { display: inline-flex; align-items: center; white-space: nowrap; }
.tlc-rule b { font-weight: 400; padding: 7px 9px 5px; border: 1.5px solid var(--ink); background: var(--paper); }
.tlc-rule i { width: 26px; height: 10px; flex: none; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M3 5h24M23 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M3 5h24M23 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- rysunek hali ---------- */
.tlc-wall { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: miter; }
.tlc-gate { stroke: var(--ink); stroke-width: 2; }
.tlc-rail { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-dasharray: 14 4 2 4; }
.tlc-zb { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.4; transition: fill .4s var(--ease-out), stroke-width .3s var(--ease-out); }
.tlc-zb-d { fill: rgba(237, 241, 244, .5); stroke-dasharray: 5 3; }
.tlc-zb-hot { stroke-width: 2.6; }
.tlc-zl { font-size: 15px; fill: var(--ink); letter-spacing: .03em; }
.tlc-zl-s { font-size: 13px; fill: var(--ink-2); }
/* bieżąca strefa: grubsza kreska, żółty nalot, zakreślacz pod nazwą */
.tlc-zone.is-hot .tlc-zb { fill: rgba(255, 182, 0, .14); stroke-width: 2.6; }
.tlc-zl.is-hot { fill: var(--ink); filter: url(#tlc-hl); }
.tlc-field rect { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 2; }
.tlc-tank rect { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.2; }
.tlc-bath rect { fill: url(#h-diag); stroke: none; }
.tlc-zinc { fill: url(#h-asphalt); stroke: var(--ink); stroke-width: 1; }
.tlc-dry { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.tlc-term rect { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.3; }
.tlc-term text { font-size: 11px; fill: var(--ink); text-anchor: middle; }
.tlc-qr rect, .tlc-qr-k { fill: var(--ink); }
.tlc-route { fill: none; stroke: var(--y); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; transition: stroke-width .4s var(--ease-out), opacity .4s var(--ease-out); }
.tlc-route.is-all { stroke-width: 9; opacity: .95; }
.tlc-route-k { opacity: .95; }
.tlc-cam rect { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.3; }
.tlc-fov { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.tlc-cam .cone { opacity: 0; }
/* suwnica i trawersa */
.tlc-bridge { fill: rgba(27, 33, 39, .1); stroke: var(--ink); stroke-width: 1.4; }
.tlc-brace { fill: none; stroke: var(--ink-2); stroke-width: .8; }
.tlc-hook { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.5; }
.tlc-rope { stroke: var(--ink); stroke-width: 1.3; }
.tlc-travbar { fill: var(--y); stroke: var(--ink); stroke-width: 1.3; }
.tlc-hang { fill: none; stroke: var(--ink); stroke-width: 1; }
/* partia z przywieszką */
.tlc-lot rect { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.4; }
.tlc-lot path { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.tlc-lot circle { fill: var(--y); stroke: var(--ink); stroke-width: 1.1; }
.tlc-mini-f { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1; }

/* ---------- kroki ---------- */

/* treść kroku; ze skryptem wszystkie kroki leżą w jednej komórce, więc wysokość = najdłuższy krok */
.tlc-acts { list-style: none; margin: 10px 0 0; padding: 0; }
.tlc-acts li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; line-height: 1.35; }
/* automat = zapisuje system (grafit, żółty napis, jak szyna aplikacji); ręcznie = pracownik (kontur) */
.tlc-tag { display: inline-block; flex: none; padding: 4px 7px 3px; font: 12px/1 var(--tech); letter-spacing: .05em; white-space: nowrap; border: 1px solid var(--ink); vertical-align: 1px; }
.tlc-tag.is-auto { background: var(--ink); color: var(--y); }
.tlc-tag.is-hand { background: var(--paper-hi); color: var(--ink); }


/* ==========================================================================
   SEKCJE
   ========================================================================== */
.tlc-no { display: inline-block; margin-right: .45em; font: 400 .42em/1 var(--tech); letter-spacing: .04em; color: var(--ink-2); vertical-align: .55em; }
.tlc-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 56px); align-items: start; margin-top: clamp(28px, 3.5vw, 48px); }
.tlc-two-eq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tlc-hscroll { overflow-x: auto; }
.tlc-fig { margin: 0; }
.tlc-art { display: block; width: 100%; height: auto; }
.tlc-fig figcaption { flex-wrap: wrap; }
.fn-body .tlc-fig { position: sticky; top: calc(var(--head-h) + 24px); }

/* 01: tabela źródeł danych na wzorze tabeli porównania */
.tlc-src thead th, .tlc-src thead th:nth-child(n) { width: auto; font: 13px/1.2 var(--tech); letter-spacing: .05em; color: var(--ink-2); padding: 0 14px 10px; border-bottom: 1.5px solid var(--ink); }
.tlc-src thead th:first-child { width: 19%; padding-left: 44px; }
.tlc-src thead th:last-child { width: 18%; color: var(--ink); }
.tlc-src tbody th { font-size: clamp(17px, 1.2vw, 20px); }
.tlc-src td { padding: 18px 14px 18px; }
.tlc-src .c-old { color: var(--ink); font-size: 16px; line-height: 1.45; }
.tlc-src .c-new { font-size: 15px; }
.tlc-src .c-new .tlc-tag { margin-right: 4px; }
.cmp-key .tlc-tag { margin-right: 2px; }

/* 02: przywieszka */
.tlc-wire { fill: none; stroke: var(--ink-2); stroke-width: 2; }
.tlc-plate { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.6; }
.tlc-plate-zn { fill: var(--paper-lo); }
.tlc-zn { fill: url(#h-dots); stroke: none; }
.tlc-hole { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.tlc-tlc { font-size: 13px; letter-spacing: .2em; fill: var(--ink); }
.tlc-emb { font-size: 34px; letter-spacing: .06em; fill: none; stroke: var(--ink); stroke-width: 1.1; }
.tlc-sticker { fill: #fff; stroke: var(--ink-2); stroke-width: 1; }
.tlc-qrm rect { fill: var(--ink); }
.tlc-sticker-gone { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.tlc-cap-b { font-size: 16px; fill: var(--ink); }
.tlc-facts dd { padding-bottom: 12px; line-height: 1.45; }
/* blaszka z cechowarki: wytłoczony napis = cień w prawo-dół, światło w lewo-górę, lico w kolorze blaszki */
.tlc-art .tlc-ptxt { font: 700 30px/1 Arial, "Helvetica Neue", "DejaVu Sans", sans-serif; letter-spacing: .1em; }
.tlc-relief { fill: var(--paper-hi); stroke: rgba(27, 33, 39, .55); stroke-width: .7; }
.tlc-relief-zn { fill: #c7cfd6; stroke: rgba(27, 33, 39, .55); stroke-width: .7; }
.tlc-relief-sh { fill: rgba(27, 33, 39, .55); }
.tlc-relief-hi { fill: #fff; }
/* po ocynku napis ma kolor blaszki: widać go głównie po wypukłości, słabszy cień i światło */
.tlc-plate-zn ~ .tlc-relief-sh { fill: rgba(27, 33, 39, .38); }
.tlc-plate-zn ~ .tlc-relief-hi { fill: rgba(255, 255, 255, .7); }
.tlc-brush { fill: none; stroke: rgba(27, 33, 39, .07); stroke-width: 1; }

/* 03: oś czasu zadania */
.tlc-grid path { stroke: var(--line-2); stroke-width: 1; }
.tlc-work { fill: var(--ink); }
.tlc-tap circle { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.5; }
.tlc-mark { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 5 3; }

/* 04: przebieg */
.tlc-run { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 2fr); margin: clamp(28px, 3.5vw, 48px) 0 20px; border: 1.5px solid var(--ink); background: var(--paper-hi); }
.tlc-run > div { padding: 9px 14px 11px; border-left: 1px solid var(--ink); min-width: 0; }
.tlc-run > div:first-child { border-left: 0; }
.tlc-run dt { font: 12px/1 var(--tech); letter-spacing: .04em; color: var(--ink-2); margin-bottom: 6px; }
.tlc-run dd { margin: 0; font-weight: 700; font-size: 19px; line-height: 1.2; }
.tlc-gantt { min-width: 720px; }
.tlc-gantt .g-axis { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 3; }
.tlc-gantt .g-base { stroke: var(--ink); stroke-width: 1; }
.tlc-gantt .g-line { fill: var(--ink); }
.tlc-gantt .g-hand { fill: var(--y); stroke: var(--ink); stroke-width: 1.2; }
.tlc-gantt .g-t { font-size: 12px; fill: var(--ink); }
.tlc-gantt .g-s { font-size: 11px; fill: var(--ink-2); }
.tlc-gantt .leader { stroke-width: 1; }
.tlc-key { display: inline-block; width: 22px; height: 10px; border: 1px solid var(--ink); vertical-align: middle; }
.tlc-key-hand { background: var(--y); }
.tlc-key-line { background: var(--ink); margin-left: 8px; }
.tlc-gantt-fig { margin-bottom: clamp(24px, 3vw, 40px); }
.tlc-gantt-fig + .tlc-two { margin-top: 0; }

/* tabele danych: ramka tuszem, nagłówki w liternictwie */
.tlc-t { width: 100%; min-width: 440px; border-collapse: collapse; border: 1.5px solid var(--ink); background: var(--paper-hi); font-size: 15px; line-height: 1.35; }
.tlc-t th, .tlc-t td { text-align: left; vertical-align: top; padding: 9px 12px 9px; }
.tlc-t thead th { font: 12px/1.2 var(--tech); letter-spacing: .04em; color: var(--ink-2); border-bottom: 1px solid var(--ink); background: var(--paper); font-weight: 400; }
.tlc-t tbody tr + tr > * { border-top: 1px solid var(--line-2); }
.tlc-t tbody th { font-weight: 700; }
.tlc-t tfoot > tr > * { border-top: 1px solid var(--ink); font-weight: 700; }
.tlc-t .r { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.tlc-t .num { font-variant-numeric: tabular-nums lining-nums; }
.tlc-t tbody tr:hover > * { background: #fff; }
.tlc-cams tbody th { white-space: nowrap; }
.tlc-cams .lg { width: 24px; height: 18px; vertical-align: -4px; margin-right: 8px; fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.tlc-tnote { align-items: flex-start; font-size: 15px; line-height: 1.45; font-weight: 400; color: var(--ink-2); margin-top: 16px; }
.tlc-tnote .rev-tri { margin-top: -2px; }

/* 05: kamery */
.tlc-store { margin: 0 0 28px; }
.tlc-law-h { margin-top: 4px; }
.tlc-law li { font-weight: 500; line-height: 1.4; }

/* 06: model danych */
.tlc-model { margin: clamp(28px, 3.5vw, 48px) 0 0; border: 1.5px solid var(--ink); background: var(--paper-hi); columns: 2; column-gap: 0; column-rule: 1px solid var(--ink); }
.tlc-model > div { break-inside: avoid; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); border-bottom: 1px solid var(--line-2); }
.tlc-model dt { padding: 11px 14px 12px; font: 16px/1.3 var(--tech); letter-spacing: .02em; border-right: 1px solid var(--line-2); }
.tlc-model dd { margin: 0; padding: 11px 14px 12px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.tlc-model dd small { display: block; font: 12px/1.3 var(--tech); color: var(--ink-2); margin-top: 3px; }

/* 07: legenda */
.tlc-legends { align-items: start; }
.tlc-legends .swatch { background: var(--paper-hi); overflow: hidden; }
.tlc-abbr b { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 26px; flex: none; border: 1px solid var(--ink); background: var(--paper-hi); font: 400 13px/1 var(--tech); letter-spacing: .04em; }

/* 08: pytania */
.tlc-open { margin-top: clamp(28px, 3.5vw, 48px); }

/* plac bez pól: pryzmy z jedną przywieszką; rysunek „gdzie wisi przywieszka” */
.tlc-heap rect { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.2; }
.tlc-heap-tag circle { fill: var(--y); stroke: var(--ink); stroke-width: 1.1; }
.tlc-part { fill: var(--paper-lo); stroke: var(--ink); stroke-width: 1.1; }
.tlc-band { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.tlc-wire-s { fill: none; stroke: var(--ink-2); stroke-width: 1.4; }
.tlc-tagm { fill: var(--y); stroke: var(--ink); stroke-width: 1.2; }
.tlc-where { min-width: 520px; }
.tlc-plain { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.tlc-life .tlc-t { min-width: 760px; }
.tlc-life .tlc-t th[scope="row"] { width: 17%; }

/* ==========================================================================
   SZEROKOŚCI
   ========================================================================== */
@media (max-width: 1180px) {
  .tlc-run { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tlc-run > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ink); }
}
@media (max-width: 1000px) {
  /* telefon: plan przewija się w bok w przypiętym okienku */
  .tlc-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; flex: none; }
  .tlc-plan { height: auto; min-width: 540px; }
  .ss-step .tlc-acts { display: none; }
  .tlc-two, .tlc-two-eq { grid-template-columns: minmax(0, 1fr); }
  .fn-body .tlc-fig { position: static; }
  .tlc-model { columns: 1; }
}
@media (max-width: 760px) {
  .tlc-src tbody th { padding-left: 40px; }
  .tlc-src td { padding: 10px 14px 12px; }
  .tlc-src .c-old { border-bottom: 1px solid var(--line-2); }
  .tlc-run { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tlc-run > div:nth-child(3) { border-left: 0; }
  .tlc-run > div:nth-child(n+3) { border-top: 1px solid var(--ink); }
}
@media (max-width: 760px) {
  /* cykl przywieszki: każdy etap jako karta z etykietami */
  .tlc-life .tlc-t { min-width: 0; }
  .tlc-life .tlc-t thead { display: none; }
  .tlc-life .tlc-t tr, .tlc-life .tlc-t th, .tlc-life .tlc-t td { display: block; }
  .tlc-life .tlc-t tbody tr + tr > * { border-top: 0; }
  .tlc-life .tlc-t tbody tr + tr { border-top: 1px solid var(--ink); }
  .tlc-life .tlc-t th[scope="row"] { padding-bottom: 2px; }
  .tlc-life .tlc-t td { padding-top: 4px; padding-bottom: 6px; }
  .tlc-life .tlc-t td::before { content: attr(data-l); display: block; font: 12px/1.3 var(--tech); letter-spacing: .04em; color: var(--ink-2); }
}
@media (max-width: 680px) {
  .tlc-rule { font-size: 14px; }
  .tlc-rule i { width: 20px; }
  .tlc-rule b { padding: 6px 7px 4px; }
  .tlc-model > div { grid-template-columns: minmax(0, 1fr); }
  .tlc-model dt { border-right: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
}

/* status modułu: „W planowaniu” jako znak wodny pod rysunkiem, na całą szerokość planu (rysunek leży nad nim) */
.plan-status { position: absolute; inset: 0; z-index: 0; margin: 0; pointer-events: none; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; text-align: center; }
.plan-status b { display: block; width: 100%; font: 400 clamp(40px, 5.6vw, 116px)/1 var(--tech); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: rgba(27, 33, 39, .13); transform: rotate(-6deg); }
.plan-status span { font: clamp(14px, 1.3vw, 22px)/1.2 var(--tech); letter-spacing: .08em; color: rgba(27, 33, 39, .3); transform: rotate(-6deg); }
.tlc-scene > .tlc-scroll { position: relative; z-index: 1; }
.tlc-scene > .st-badge { z-index: 2; }
/* teren hali przezroczysty, żeby znak wodny był widać między strefami */
#tlc-svg .site { fill: none; }
@media (max-width: 1000px) { .plan-status b { font-size: 34px; } }
