/*
 * Strona publiczna (R23, docs/reference/WEB_PUBLIC_SITE.md; system wyglądu WEB_DESIGN_SYSTEM.md sekcje 3, 7 i 17).
 * Samodzielny arkusz stron statycznych: na stronach publicznych ładowane są wyłącznie tokens.css i ten plik.
 * Wyłącznie tokeny z tokens.css; bez literałów kolorów (strażnik WebPage.Tests/Design).
 * Celowo bez @layer: w sklepie (strona interaktywna) obok jest Tailwind (app.css), który jest poza warstwami.
 * Ruch: przejścia z tokenów czasu (0 ms przy prefers-reduced-motion), sceny przez js/site/core.js; stan spoczynkowy
 * każdej sceny jest pełną, czytelną kompozycją bez JavaScriptu.
 */

/* Inter na stronach publicznych i w sklepie (MainLayout, .tm-site): podzbiór znaków PL/EN, wagi 400-800 z osią opsz
   (47 KB zamiast 213 KB; licencja SIL OFL 1.1, fonts/OFL.txt). Osobna rodzina, więc panel (ten sam arkusz w nagłówku
   interaktywnym) i metryki wykresów (ChartTextMetrics) zostają przy pełnym pliku; znak spoza podzbioru (np. wąska spacja)
   bierze glif z pełnego Inter, który przeglądarka pobiera dopiero wtedy (mobilny LCP). Reguła @font-face rodziny
   'Inter Site' (wagi 100-900 jak pełny Inter, bez syntetycznego pogrubienia; plik ma oś 400-800) jest w nagłówku
   Components/App.razor z adresem z odciskiem (P6). */

.tm-site {
  --tm-font-sans: 'Inter Site', 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--tm-font-sans);
}

/* --------------------------------------------------------------------------
 * Baza (niski priorytet :where, aby nie przesłaniać panelu i sklepu)
 * ------------------------------------------------------------------------ */
:where(html) {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--tm-layout-public-topbar) + 1rem);
}

:where(*, *::before, *::after) { box-sizing: border-box; }

:where(body) {
  margin: 0;
  background: var(--tm-canvas);
  color: var(--tm-text);
  font-family: var(--tm-font-sans);
  font-size: var(--tm-text-body);
  line-height: var(--tm-leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(.tm-site) :where(h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote) { margin: 0; }
:where(.tm-site) :where(ul, ol) { padding: 0; }
:where(.tm-site) :where(img, svg) { display: block; max-width: 100%; }
:where(.tm-site) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.tm-site) :where(a) { color: inherit; }

.tm-site :focus-visible {
  outline: var(--tm-focus-width) solid var(--tm-focus);
  outline-offset: var(--tm-focus-offset);
  box-shadow: var(--tm-focus-halo);
  border-radius: var(--tm-radius-sm);
}

.tm-site h1:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tm-skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: var(--tm-z-tooltip);
  padding: .75rem 1rem;
  border-radius: var(--tm-radius-md);
  background: var(--tm-primary);
  color: var(--tm-on-primary);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--tm-dur) var(--tm-ease);
}

.tm-skip-link:focus { transform: none; }

.tm-link {
  color: var(--tm-primary-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.tm-link:hover { text-decoration-thickness: 2px; }

/* --------------------------------------------------------------------------
 * Kontener, główna treść, typografia
 * ------------------------------------------------------------------------ */
.tm-site-container {
  width: 100%;
  max-width: calc(var(--tm-layout-public-max) + 2 * var(--tm-layout-public-gutter));
  margin-inline: auto;
  padding-inline: var(--tm-layout-public-gutter);
}

.tm-site-container--narrow { max-width: calc(48rem + 2 * var(--tm-layout-public-gutter)); }
.tm-site-container--wide { max-width: calc(var(--tm-layout-public-max-wide) + 2 * var(--tm-layout-public-gutter)); }

.tm-site-main {
  display: block;
  min-height: 60vh;
  background: var(--tm-canvas);
  color: var(--tm-text);
}

.tm-site-main:focus { outline: none; }

.tm-site-overline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .875rem;
  color: var(--tm-primary-text);
  font-size: var(--tm-text-overline);
  font-weight: 700;
  line-height: var(--tm-leading-overline);
  letter-spacing: var(--tm-tracking-overline);
  text-transform: uppercase;
}

.tm-site-overline svg { width: 1rem; height: 1rem; }
.tm-site-overline + .tm-site-eyebrow { margin-inline-start: .75rem; }

.tm-site-display-xl,
.tm-site-display,
.tm-site-title {
  margin: 0;
  color: var(--tm-text);
  font-weight: 700;
  text-wrap: balance;
}

.tm-site-display-xl {
  font-size: var(--tm-text-display-xl);
  line-height: var(--tm-leading-display-xl);
  letter-spacing: var(--tm-tracking-display-xl);
}

.tm-site-display {
  font-size: var(--tm-text-display);
  line-height: var(--tm-leading-display);
  letter-spacing: var(--tm-tracking-display);
}

.tm-site-title {
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: var(--tm-tracking-h1);
}

.tm-site-accent { color: var(--tm-primary-text); }

.tm-site-lead {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--tm-text-2);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: var(--tm-leading-body-lg);
  text-wrap: pretty;
}

.tm-site-text {
  color: var(--tm-text-2);
  font-size: var(--tm-text-body-lg);
  line-height: var(--tm-leading-body-lg);
  text-wrap: pretty;
}

.tm-site-small { color: var(--tm-text-3); font-size: var(--tm-text-body-sm); line-height: var(--tm-leading-body-sm); }

.tm-site-mono { font-family: var(--tm-font-mono); font-size: .92em; }

/* --------------------------------------------------------------------------
 * Pasek stanu nad nagłówkiem
 * ------------------------------------------------------------------------ */
.tm-site-ribbon {
  position: relative;
  z-index: calc(var(--tm-z-topbar) + 1);
  background: var(--tm-paper-3);
  color: var(--tm-text-2);
  font-size: var(--tm-text-body-sm);
  line-height: 1.4;
}

.tm-site-ribbon--launched { background: var(--tm-success-tonal); color: var(--tm-success-text); }

.tm-site-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.25rem;
  padding-block: .375rem;
  text-align: center;
}

.tm-site-ribbon__inner svg { flex: none; width: 1rem; height: 1rem; }
.tm-site-ribbon a { color: inherit; font-weight: 600; text-underline-offset: .2em; }

/* --------------------------------------------------------------------------
 * Nagłówek
 * ------------------------------------------------------------------------ */
.tm-site-header {
  position: sticky;
  top: 0;
  z-index: var(--tm-z-topbar);
  background: rgb(var(--tm-paper-ch) / .9);
  border-bottom: 1px solid var(--tm-border-subtle);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow var(--tm-dur) var(--tm-ease);
}

.tm-site-header.is-scrolled { box-shadow: var(--tm-shadow-overlay); }

@media (prefers-reduced-transparency: reduce) {
  .tm-site-header { background: var(--tm-paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.tm-site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--tm-layout-public-topbar);
}

.tm-site-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .625rem;
  color: var(--tm-text);
  text-decoration: none;
}

.tm-site-brand__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--tm-radius-md);
  background: var(--tm-brand-siopka);
  color: var(--tm-on-brand-siopka);
}

.tm-site-brand__mark svg { width: 1.25rem; height: 1.25rem; }

.tm-site-brand__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tm-site-brand__name span { color: var(--tm-brand-siopka); }

.tm-site-nav { flex: 1; display: none; }

.tm-site-nav__list {
  display: flex;
  align-items: center;
  gap: .125rem;
  list-style: none;
}

.tm-site-nav__item { position: relative; }

.tm-site-nav__link,
.tm-site-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 2.5rem;
  padding: .5rem .75rem;
  border: 0;
  border-radius: var(--tm-radius-md);
  background: transparent;
  color: var(--tm-text-2);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--tm-dur-fast) var(--tm-ease), color var(--tm-dur-fast) var(--tm-ease);
}

.tm-site-nav__link:hover,
.tm-site-nav__toggle:hover,
.tm-site-nav__toggle[aria-expanded="true"] { background: rgb(var(--tm-text-ch) / .05); color: var(--tm-text); }

.tm-site-nav__link[aria-current="page"] { color: var(--tm-primary-text); }

.tm-site-nav__toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--tm-dur) var(--tm-ease);
}

.tm-site-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.tm-site-mega {
  position: absolute;
  top: calc(100% + .5rem);
  left: 50%;
  width: min(40rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-paper);
  box-shadow: var(--tm-shadow-overlay);
  transform: translateX(-50%);
  transform-origin: top center;
}

.tm-site-mega[hidden] { display: none; }

.tm-site-mega.is-entering { animation: tm-site-pop var(--tm-dur) var(--tm-ease-out); }

@keyframes tm-site-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(.98); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.tm-site-mega__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem;
  list-style: none;
}

.tm-site-mega__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem .75rem;
  padding: .75rem;
  border-radius: var(--tm-radius-md);
  color: var(--tm-text);
  text-decoration: none;
  transition: background-color var(--tm-dur-fast) var(--tm-ease);
}

.tm-site-mega__item:hover { background: var(--tm-primary-tonal); }

.tm-site-mega__icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--tm-radius-md);
  background: var(--tm-primary-tonal);
  color: var(--tm-primary-text);
}

.tm-site-mega__icon svg { width: 1.25rem; height: 1.25rem; }
.tm-site-mega__title { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 600; }
.tm-site-mega__desc { color: var(--tm-text-2); font-size: var(--tm-text-body-sm); line-height: 1.45; }

.tm-site-mega__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .75rem;
  padding: .75rem .75rem 0;
  border-top: 1px solid var(--tm-border-subtle);
  color: var(--tm-text-2);
  font-size: var(--tm-text-body-sm);
}

.tm-site-header__actions {
  display: none;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

.tm-site-lang {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 2.5rem;
  padding: .5rem .625rem;
  border-radius: var(--tm-radius-md);
  color: var(--tm-text-2);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}

.tm-site-lang:hover { background: rgb(var(--tm-text-ch) / .05); color: var(--tm-text); }
.tm-site-lang svg { width: 1rem; height: 1rem; }

.tm-site-menu-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-md);
  background: var(--tm-paper-2);
  color: var(--tm-text);
  cursor: pointer;
}

.tm-site-menu-btn svg { width: 1.25rem; height: 1.25rem; }

@media (min-width: 1200px) {
  .tm-site-nav { display: block; }
  .tm-site-header__actions { display: flex; margin-left: 0; }
  .tm-site-menu-btn { display: none; }
}

/* Szuflada mobilna: <dialog> z pułapką fokusu przeglądarki (showModal), Escape zamyka. */
.tm-site-drawer {
  width: min(26rem, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--tm-paper);
  color: var(--tm-text);
  box-shadow: var(--tm-shadow-dialog);
}

.tm-site-drawer::backdrop { background: var(--tm-scrim); }
.tm-site-drawer[open] { display: flex; flex-direction: column; animation: tm-site-slide-in var(--tm-dur-slow) var(--tm-ease-out); }

@keyframes tm-site-slide-in {
  from { transform: translateX(100%); }
  to { transform: none; }
}

.tm-site-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--tm-border-subtle);
}

.tm-site-drawer__body { flex: 1; overflow-y: auto; padding: .5rem 1rem 1rem; }

.tm-site-drawer__group { padding-block: .75rem; border-bottom: 1px solid var(--tm-border-subtle); }

.tm-site-drawer__heading {
  margin: 0 0 .375rem;
  padding-inline: .5rem;
  color: var(--tm-text-3);
  font-size: var(--tm-text-overline);
  font-weight: 700;
  letter-spacing: var(--tm-tracking-overline);
  text-transform: uppercase;
}

.tm-site-drawer__list { list-style: none; }

.tm-site-drawer__link {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  padding: .5rem;
  border-radius: var(--tm-radius-md);
  color: var(--tm-text);
  font-weight: 600;
  text-decoration: none;
}

.tm-site-drawer__link:hover { background: var(--tm-primary-tonal); }
.tm-site-drawer__link svg { flex: none; width: 1.125rem; height: 1.125rem; color: var(--tm-primary-text); }

.tm-site-drawer__actions {
  display: grid;
  gap: .5rem;
  padding: 1rem;
  border-top: 1px solid var(--tm-border-subtle);
  background: var(--tm-paper-2);
}

/* --------------------------------------------------------------------------
 * Przyciski, etykiety, przycisk ikonowy
 * ------------------------------------------------------------------------ */
.tm-site-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: var(--tm-control-md);
  padding: .5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--tm-radius-md);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--tm-dur-fast) var(--tm-ease), border-color var(--tm-dur-fast) var(--tm-ease),
    color var(--tm-dur-fast) var(--tm-ease), transform var(--tm-dur-fast) var(--tm-ease), box-shadow var(--tm-dur) var(--tm-ease);
}

.tm-site-btn svg { flex: none; width: 1.125rem; height: 1.125rem; }
.tm-site-btn:active { transform: translateY(1px); }

.tm-site-btn--lg { min-height: var(--tm-control-lg); padding: .75rem 1.375rem; font-size: 1rem; }
.tm-site-btn--block { width: 100%; }

.tm-site-btn--primary { background: var(--tm-primary); color: var(--tm-on-primary); box-shadow: var(--tm-shadow-primary); }
.tm-site-btn--primary:hover { background: var(--tm-primary-hover); }

.tm-site-btn--secondary { border-color: var(--tm-border); background: var(--tm-paper); color: var(--tm-text); }
.tm-site-btn--secondary:hover { border-color: var(--tm-primary); color: var(--tm-primary-text); }

.tm-site-btn--ghost { background: transparent; color: var(--tm-primary-text); }
.tm-site-btn--ghost:hover { background: var(--tm-primary-tonal); }

.tm-site-btn .tm-site-btn__arrow { transition: transform var(--tm-dur) var(--tm-ease); }
.tm-site-btn:hover .tm-site-btn__arrow { transform: translateX(3px); }

.tm-site-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-md);
  background: var(--tm-paper-2);
  color: var(--tm-text-2);
  cursor: pointer;
}

.tm-site-icon-btn:hover { color: var(--tm-text); }
.tm-site-icon-btn svg { width: 1.125rem; height: 1.125rem; }

.tm-site-chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .1875rem .625rem;
  border-radius: var(--tm-radius-pill);
  background: var(--tm-neutral-tonal);
  color: var(--tm-neutral-text);
  font-size: var(--tm-text-caption);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  /* A chip keeps its own width inside grid and flex-column cards (no stretched pill). */
  justify-self: start;
  align-self: start;
}

.tm-site-chip::before {
  content: "";
  width: .4375rem;
  height: .4375rem;
  border-radius: 50%;
  background: currentColor;
}

.tm-site-chip--plain::before { display: none; }
.tm-site-chip--success { background: var(--tm-success-tonal); color: var(--tm-success-text); }
.tm-site-chip--info { background: var(--tm-info-tonal); color: var(--tm-info-text); }
.tm-site-chip--warning { background: var(--tm-warning-tonal); color: var(--tm-warning-text); }
.tm-site-chip--brand { background: var(--tm-primary-tonal-solid); color: var(--tm-primary-text); }

/* --------------------------------------------------------------------------
 * Hero strony głównej i nagłówki podstron
 * ------------------------------------------------------------------------ */
.tm-site-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 6vw, 7rem);
  background: var(--tm-paper);
  border-bottom: 1px solid var(--tm-border-subtle);
  isolation: isolate;
}

.tm-site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--tm-gradient-glow), var(--tm-gradient-grid);
  background-size: 100% 100%, 3rem 3rem, 3rem 3rem;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, black 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, black 30%, transparent 85%);
}

.tm-site-hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1rem + 4vw, 4rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .tm-site-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

.tm-site-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.tm-site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.tm-site-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: 1.75rem;
  list-style: none;
  color: var(--tm-text-2);
  font-size: var(--tm-text-body-sm);
  font-weight: 500;
}

.tm-site-facts li { display: inline-flex; align-items: center; gap: .375rem; }
.tm-site-facts svg { width: 1rem; height: 1rem; color: var(--tm-success); }

.tm-site-pagehero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.5rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  background: var(--tm-paper);
  border-bottom: 1px solid var(--tm-border-subtle);
  isolation: isolate;
}

.tm-site-pagehero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--tm-gradient-grid);
  background-size: 3rem 3rem;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 90%);
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  opacity: .7;
}

.tm-site-pagehero__grid { display: grid; gap: 2rem; align-items: center; }

@media (min-width: 1024px) {
  .tm-site-pagehero__grid--art { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

.tm-site-crumbs { margin-bottom: 1.25rem; }

.tm-site-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  list-style: none;
  color: var(--tm-text-3);
  font-size: var(--tm-text-body-sm);
}

.tm-site-crumbs li { display: inline-flex; align-items: center; gap: .25rem; }
.tm-site-crumbs li + li::before { content: "/"; color: var(--tm-text-3); }
.tm-site-crumbs a { color: var(--tm-text-2); text-decoration: none; }
.tm-site-crumbs a:hover { color: var(--tm-primary-text); text-decoration: underline; }
.tm-site-crumbs [aria-current] { color: var(--tm-text); font-weight: 600; }

/* --------------------------------------------------------------------------
 * Sekcje i siatki
 * ------------------------------------------------------------------------ */
.tm-site-section {
  padding-block: var(--tm-layout-section-pad-y);
  background: var(--tm-canvas);
}

.tm-site-section--compact { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.tm-site-section--paper { background: var(--tm-paper); }
.tm-site-section--canvas { background: var(--tm-canvas); }

.tm-site-section--ink {
  background: var(--tm-ink);
  color: var(--tm-text);
}

[data-theme="dark"] .tm-site-section--ink,
.tm-site-section--ink[data-theme="dark"] {
  border-block: 1px solid var(--tm-border-subtle);
}

.tm-site-section--brand {
  background: var(--tm-gradient-hero);
  color: var(--tm-text);
}

.tm-site-section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.tm-site-section-head--center { margin-inline: auto; text-align: center; }
.tm-site-section-head--center .tm-site-lead { margin-inline: auto; }

.tm-site-grid { display: grid; gap: var(--tm-layout-card-gap); }

@media (min-width: 700px) {
  .tm-site-grid--2,
  .tm-site-grid--3,
  .tm-site-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .tm-site-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tm-site-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tm-site-split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .tm-site-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tm-site-split--reverse > :first-child { order: 2; }
  .tm-site-split--top { align-items: start; }
}

.tm-site-sticky { position: sticky; top: calc(var(--tm-layout-public-topbar) + 1.5rem); }

/* --------------------------------------------------------------------------
 * Karty
 * ------------------------------------------------------------------------ */
.tm-site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-paper);
  box-shadow: var(--tm-shadow-card);
  color: var(--tm-text);
}

.tm-site-card--flat { box-shadow: none; }
.tm-site-card--tonal { border-color: transparent; background: var(--tm-primary-tonal); box-shadow: none; }

a.tm-site-card {
  text-decoration: none;
  transition: transform var(--tm-dur) var(--tm-ease), box-shadow var(--tm-dur) var(--tm-ease), border-color var(--tm-dur) var(--tm-ease);
}

a.tm-site-card:hover { transform: translateY(-3px); border-color: rgb(var(--tm-primary-ch) / .45); box-shadow: var(--tm-shadow-raised); }

.tm-site-card__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--tm-radius-md);
  background: var(--tm-primary-tonal);
  color: var(--tm-primary-text);
}

.tm-site-card__icon svg { width: 1.5rem; height: 1.5rem; }

.tm-site-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }

.tm-site-card__title {
  margin: 0;
  color: var(--tm-text);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.tm-site-card__text { color: var(--tm-text-2); line-height: 1.6; }
.tm-site-card__text + .tm-site-card__text { margin-top: -.25rem; }

.tm-site-card__more {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: auto;
  padding-top: .5rem;
  color: var(--tm-primary-text);
  font-weight: 600;
}

.tm-site-card__more svg { width: 1rem; height: 1rem; transition: transform var(--tm-dur) var(--tm-ease); }
a.tm-site-card:hover .tm-site-card__more svg { transform: translateX(3px); }

/* Karta produktu z pasem marki i ilustracją */
.tm-site-product {
  overflow: hidden;
  padding: 0;
}

.tm-site-product__art {
  display: grid;
  place-items: center;
  min-height: 11rem;
  padding: 1.5rem;
  background: var(--tm-primary-tonal);
  border-bottom: 1px solid var(--tm-border-subtle);
}

.tm-site-product__body { display: flex; flex: 1; flex-direction: column; gap: .75rem; padding: 1.5rem; }

/* Listy */
.tm-site-checks { display: grid; gap: .75rem; list-style: none; }

.tm-site-checks li {
  display: grid;
  grid-template-columns: 1.375rem 1fr;
  gap: .625rem;
  color: var(--tm-text-2);
  line-height: 1.55;
}

.tm-site-checks svg { width: 1.375rem; height: 1.375rem; margin-top: .0625rem; color: var(--tm-success); }
.tm-site-checks strong { color: var(--tm-text); font-weight: 600; }

.tm-site-kv { display: grid; gap: .5rem 1.5rem; }

@media (min-width: 600px) { .tm-site-kv { grid-template-columns: minmax(10rem, auto) 1fr; } }

.tm-site-kv dt { color: var(--tm-text-3); font-size: var(--tm-text-body-sm); font-weight: 600; }
.tm-site-kv dd { margin: 0; color: var(--tm-text); }

/* Liczby i fakty */
.tm-site-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.tm-site-stat {
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-paper);
}

.tm-site-stat__value {
  display: block;
  color: var(--tm-text);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tm-site-stat__label { display: block; margin-top: .5rem; color: var(--tm-text-2); font-size: var(--tm-text-body-sm); line-height: 1.45; }

/* --------------------------------------------------------------------------
 * Kroki procesu (oś czasu)
 * ------------------------------------------------------------------------ */
.tm-site-steps {
  position: relative;
  display: grid;
  gap: 1rem;
  list-style: none;
  counter-reset: tm-step;
}

.tm-site-step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-paper);
  counter-increment: tm-step;
  transition: border-color var(--tm-dur-slow) var(--tm-ease), box-shadow var(--tm-dur-slow) var(--tm-ease);
}

.tm-site-step::before {
  content: counter(tm-step);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--tm-paper-3);
  color: var(--tm-text);
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--tm-dur-slow) var(--tm-ease), color var(--tm-dur-slow) var(--tm-ease);
}

.tm-site-step.is-active { border-color: rgb(var(--tm-primary-ch) / .5); box-shadow: var(--tm-shadow-raised); }
.tm-site-step.is-active::before,
.tm-site-step.is-done::before { background: var(--tm-primary); color: var(--tm-on-primary); }

.tm-site-step__title { margin: .25rem 0 .375rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.tm-site-step__text { color: var(--tm-text-2); line-height: 1.6; }
.tm-site-step__meta { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .75rem; }

@media (min-width: 900px) {
  .tm-site-steps--rail { gap: 0; padding-left: 0; }
  .tm-site-steps--rail .tm-site-step { border: 0; border-radius: 0; background: transparent; padding: 0 0 2.25rem; box-shadow: none; }
  .tm-site-steps--rail .tm-site-step::after {
    content: "";
    position: absolute;
    top: 3.25rem;
    bottom: .25rem;
    left: 1.5rem;
    width: 2px;
    background: var(--tm-border);
    transform: translateX(-50%);
  }
  .tm-site-steps--rail .tm-site-step:last-child::after { display: none; }
  .tm-site-steps--rail .tm-site-step.is-done::after { background: var(--tm-primary); }
  .tm-site-steps--rail .tm-site-step.is-active { box-shadow: none; }
}

/* --------------------------------------------------------------------------
 * Pytania (details/summary), notatki, tabele
 * ------------------------------------------------------------------------ */
.tm-site-faq { display: grid; gap: .75rem; }

.tm-site-faq details {
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-paper);
  transition: border-color var(--tm-dur) var(--tm-ease);
}

.tm-site-faq details[open] { border-color: rgb(var(--tm-primary-ch) / .4); }

.tm-site-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.tm-site-faq summary::-webkit-details-marker { display: none; }
.tm-site-faq summary svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--tm-text-3); transition: transform var(--tm-dur) var(--tm-ease); }
.tm-site-faq details[open] summary svg { transform: rotate(180deg); color: var(--tm-primary-text); }
.tm-site-faq__answer { padding: 0 1.25rem 1.25rem; color: var(--tm-text-2); line-height: 1.65; }
.tm-site-faq__answer p + p { margin-top: .75rem; }

.tm-site-note {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: .75rem;
  padding: 1rem 1.125rem;
  border: 1px solid rgb(var(--tm-info-ch) / .25);
  border-radius: var(--tm-radius-md);
  background: var(--tm-info-tonal);
  color: var(--tm-info-text);
  line-height: 1.55;
}

.tm-site-note svg { width: 1.25rem; height: 1.25rem; margin-top: .125rem; }
.tm-site-note strong { display: block; margin-bottom: .125rem; }
.tm-site-note a { color: inherit; font-weight: 700; }
.tm-site-note--success { border-color: rgb(var(--tm-success-ch) / .3); background: var(--tm-success-tonal); color: var(--tm-success-text); }
.tm-site-note--warning { border-color: rgb(var(--tm-warning-ch) / .4); background: var(--tm-warning-tonal); color: var(--tm-warning-text); }
.tm-site-note--danger { border-color: rgb(var(--tm-danger-ch) / .3); background: var(--tm-danger-tonal); color: var(--tm-danger-text); }
.tm-site-note--neutral { border-color: var(--tm-border-subtle); background: var(--tm-paper-2); color: var(--tm-text-2); }

.tm-site-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-paper);
}

.tm-site-table { width: 100%; border-collapse: collapse; font-size: var(--tm-text-body-sm); line-height: 1.5; }
.tm-site-table caption { padding: 1rem 1.25rem 0; color: var(--tm-text-2); font-weight: 600; text-align: left; }

.tm-site-table th,
.tm-site-table td { padding: .875rem 1.25rem; border-bottom: 1px solid var(--tm-border-subtle); text-align: left; vertical-align: top; }

.tm-site-table thead th {
  color: var(--tm-text-2);
  font-size: var(--tm-text-overline);
  font-weight: 700;
  letter-spacing: var(--tm-tracking-overline);
  text-transform: uppercase;
  white-space: nowrap;
}

.tm-site-table tbody th { color: var(--tm-text); font-weight: 600; }
.tm-site-table td { color: var(--tm-text-2); }
.tm-site-table tr:last-child > * { border-bottom: 0; }

/* --------------------------------------------------------------------------
 * Wezwanie do działania
 * ------------------------------------------------------------------------ */
.tm-site-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  border-radius: var(--tm-radius-xl);
  background: var(--tm-ink);
  color: var(--tm-text);
}

@media (min-width: 900px) { .tm-site-cta { grid-template-columns: 1fr auto; } }

.tm-site-cta .tm-site-display { color: var(--tm-text); }
.tm-site-cta .tm-site-lead { color: var(--tm-text-2); margin-top: .75rem; }
.tm-site-cta .tm-site-actions { margin-top: 0; }

/* --------------------------------------------------------------------------
 * Cennik
 * ------------------------------------------------------------------------ */
.tm-site-price { gap: 1rem; }
.tm-site-price--featured { border-color: rgb(var(--tm-primary-ch) / .55); box-shadow: var(--tm-shadow-raised); }

.tm-site-price__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .375rem;
  color: var(--tm-text);
}

.tm-site-price__value { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1; }
.tm-site-price__unit { color: var(--tm-text-2); font-size: var(--tm-text-body-sm); }

/* --------------------------------------------------------------------------
 * Dokumenty (regulaminy, polityki)
 * ------------------------------------------------------------------------ */
.tm-site-doc { display: grid; gap: 2.5rem; padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--tm-layout-section-pad-y); }

/* A grid item defaults to min-width: auto and would grow to its widest table; the table region scrolls instead (390 px). */
:where(.tm-site-doc, .tm-ed-body, .tm-ed-open__grid, .tm-site-pagehero__grid, .tm-site-grid, .tm-ed-aside) > * { min-width: 0; }

@media (min-width: 1100px) { .tm-site-doc.has-toc { grid-template-columns: 15rem minmax(0, 1fr); } }

.tm-site-toc { align-self: start; font-size: var(--tm-text-body-sm); }

@media (min-width: 1100px) { .tm-site-toc { position: sticky; top: calc(var(--tm-layout-public-topbar) + 1.5rem); } }

.tm-site-toc p { margin: 0 0 .75rem; color: var(--tm-text-3); font-size: var(--tm-text-overline); font-weight: 700; letter-spacing: var(--tm-tracking-overline); text-transform: uppercase; }
.tm-site-toc ol { display: grid; gap: .25rem; list-style: none; }
.tm-site-toc a { display: block; padding: .375rem .625rem; border-left: 2px solid var(--tm-border-subtle); color: var(--tm-text-2); text-decoration: none; }
.tm-site-toc a:hover { border-color: var(--tm-primary); color: var(--tm-text); }

.tm-site-prose { max-width: 46rem; color: var(--tm-text-2); font-size: var(--tm-text-body-lg); line-height: 1.75; }
.tm-site-prose > * + * { margin-top: 1rem; }
.tm-site-prose :where(h2) { margin-top: 2.75rem; color: var(--tm-text); font-size: 1.5rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.tm-site-prose :where(h3) { margin-top: 2rem; color: var(--tm-text); font-size: 1.1875rem; font-weight: 700; line-height: 1.35; }
.tm-site-prose :where(h4) { margin-top: 1.5rem; color: var(--tm-text); font-size: 1.0625rem; font-weight: 700; }
.tm-site-prose :where(ul, ol) { padding-left: 1.5rem; }
.tm-site-prose :where(li + li) { margin-top: .375rem; }
.tm-site-prose :where(a) { color: var(--tm-primary-text); font-weight: 600; text-underline-offset: .2em; }
.tm-site-prose :where(strong) { color: var(--tm-text); font-weight: 600; }
.tm-site-prose :where(table) { width: 100%; border-collapse: collapse; font-size: var(--tm-text-body-sm); }
.tm-site-prose :where(th, td) { padding: .625rem .75rem; border: 1px solid var(--tm-border-subtle); text-align: left; vertical-align: top; }
.tm-site-prose :where(th) { background: var(--tm-paper-2); color: var(--tm-text); }
.tm-site-prose :where(section[id]) { scroll-margin-top: calc(var(--tm-layout-public-topbar) + 1.5rem); }
.tm-site-prose :where(.tm-site-note, .tm-site-table-wrap) { font-size: var(--tm-text-body); }

/* --------------------------------------------------------------------------
 * Formularze (natywne pola, walidacja serwera; bez JavaScriptu też działają)
 * ------------------------------------------------------------------------ */
.tm-site-form { display: grid; gap: 1.25rem; }
.tm-site-form__row { display: grid; gap: 1.25rem; }

@media (min-width: 640px) { .tm-site-form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tm-site-field { display: grid; gap: .375rem; }
.tm-site-field > label,
.tm-site-field__label { color: var(--tm-text); font-size: var(--tm-text-label); font-weight: 600; line-height: var(--tm-leading-label); }
.tm-site-field__optional { color: var(--tm-text-3); font-weight: 500; }
.tm-site-field__hint { color: var(--tm-text-3); font-size: var(--tm-text-body-sm); line-height: 1.45; }

.tm-site-input {
  width: 100%;
  min-height: var(--tm-control-lg);
  padding: .625rem .875rem;
  border: 1px solid var(--tm-border-control);
  border-radius: var(--tm-radius-sm);
  background: var(--tm-paper-2);
  color: var(--tm-text);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--tm-dur-fast) var(--tm-ease), box-shadow var(--tm-dur-fast) var(--tm-ease);
}

textarea.tm-site-input { min-height: 9rem; resize: vertical; }
select.tm-site-input { appearance: none; padding-right: 2.5rem; background-image: none; }
.tm-site-input::placeholder { color: var(--tm-text-3); }
.tm-site-input:focus { border-color: var(--tm-primary); outline: none; box-shadow: var(--tm-focus-halo); }
.tm-site-input[aria-invalid="true"] { border-color: var(--tm-danger-text); }

.tm-site-select { position: relative; }
.tm-site-select svg { position: absolute; top: 50%; right: .875rem; width: 1rem; height: 1rem; color: var(--tm-text-2); pointer-events: none; transform: translateY(-50%); }

.tm-site-field__error { display: flex; align-items: flex-start; gap: .375rem; color: var(--tm-danger-text); font-size: var(--tm-text-body-sm); font-weight: 600; line-height: 1.45; }
.tm-site-field__error svg { flex: none; width: 1rem; height: 1rem; margin-top: .125rem; }

.tm-site-check { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; align-items: start; color: var(--tm-text-2); font-size: var(--tm-text-body-sm); line-height: 1.55; }
.tm-site-check input { width: 1.25rem; height: 1.25rem; margin: .125rem 0 0; accent-color: var(--tm-primary); }

.tm-site-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.tm-site-form__summary { padding: 1rem 1.125rem; border: 1px solid rgb(var(--tm-danger-ch) / .3); border-radius: var(--tm-radius-md); background: var(--tm-danger-tonal); color: var(--tm-danger-text); }
.tm-site-form__summary:focus { outline: var(--tm-focus-width) solid var(--tm-danger-text); outline-offset: 2px; }
.tm-site-form__summary ul { margin-top: .5rem; padding-left: 1.25rem; }
.tm-site-form__summary a { color: inherit; font-weight: 600; }

.tm-site-choice { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(11rem, calc(50% - .25rem)), 1fr)); }

.tm-site-choice label {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-height: var(--tm-control-lg);
  padding: .625rem .875rem;
  border: 1px solid var(--tm-border-control);
  border-radius: var(--tm-radius-md);
  background: var(--tm-paper-2);
  color: var(--tm-text);
  font-size: var(--tm-text-body-sm);
  font-weight: 600;
  cursor: pointer;
}

.tm-site-choice input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--tm-primary); }
.tm-site-choice label:has(input:checked) { border-color: var(--tm-primary); background: var(--tm-primary-tonal); }
.tm-site-choice label:has(input:focus-visible) { outline: var(--tm-focus-width) solid var(--tm-focus); outline-offset: 2px; }

/* --------------------------------------------------------------------------
 * Stopka
 * ------------------------------------------------------------------------ */
.tm-site-footer {
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  background: var(--tm-ink);
  color: var(--tm-text-2);
  font-size: var(--tm-text-body-sm);
}

.tm-site-footer__grid { display: grid; gap: 2.5rem; }

@media (min-width: 900px) { .tm-site-footer__grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); } }

.tm-site-footer__about { display: grid; gap: 1rem; align-content: start; max-width: 22rem; }
.tm-site-footer__about .tm-site-brand { color: var(--tm-text); }
/* WCAG 2.5.8: stand-alone contact links get a 24 px target. */
.tm-site-footer__contact { display: grid; justify-items: start; gap: .25rem; }
.tm-site-footer__contact a { display: inline-flex; align-items: center; min-height: 1.5rem; }
.tm-site-footer h2 { margin: 0 0 1rem; color: var(--tm-text); font-size: var(--tm-text-overline); font-weight: 700; letter-spacing: var(--tm-tracking-overline); text-transform: uppercase; }
.tm-site-footer ul { display: grid; gap: .625rem; list-style: none; }
.tm-site-footer a { color: var(--tm-text-2); text-decoration: none; }
.tm-site-footer a:hover { color: var(--tm-text); text-decoration: underline; text-underline-offset: .2em; }

.tm-site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tm-border-subtle);
}

.tm-site-footer__legal { display: grid; gap: .25rem; color: var(--tm-text-3); }
.tm-site-footer__controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

.tm-site-linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--tm-text-2);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

.tm-site-linkbtn:hover { color: var(--tm-text); }

/* Przełącznik segmentowy (wygląd) */
.tm-site-segment {
  display: inline-flex;
  gap: .125rem;
  margin: 0;
  padding: .1875rem;
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-pill);
  background: var(--tm-paper-2);
}

.tm-site-segment legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.tm-site-segment label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 2rem;
  padding: .25rem .75rem;
  border-radius: var(--tm-radius-pill);
  color: var(--tm-text-2);
  font-size: var(--tm-text-caption);
  font-weight: 600;
  cursor: pointer;
}

.tm-site-segment input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tm-site-segment svg { width: .875rem; height: .875rem; }
.tm-site-segment label:has(input:checked) { background: var(--tm-paper); color: var(--tm-text); box-shadow: var(--tm-shadow-card); }
.tm-site-segment label:has(input:focus-visible) { outline: var(--tm-focus-width) solid var(--tm-focus); outline-offset: 1px; }

/* Przycisk wstrzymania animacji (WCAG 2.2.2) */
.tm-site-motion-btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 2rem;
  padding: .25rem .75rem;
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-pill);
  background: var(--tm-paper-2);
  color: var(--tm-text-2);
  font-size: var(--tm-text-caption);
  font-weight: 600;
  cursor: pointer;
}

.tm-site-motion-btn svg { width: .875rem; height: .875rem; }
.tm-site-motion-btn [data-when] { display: none; }
html:not([data-motion="paused"]) .tm-site-motion-btn [data-when="running"],
html[data-motion="paused"] .tm-site-motion-btn [data-when="paused"] { display: inline-flex; align-items: center; gap: .375rem; }

@media (prefers-reduced-motion: reduce) { .tm-site-motion-btn { display: none; } }

/* --------------------------------------------------------------------------
 * Baner zgody na cookies i okno ustawień
 * ------------------------------------------------------------------------ */
.tm-site-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--tm-z-overlay);
  padding: 1rem;
  border-top: 1px solid var(--tm-border-subtle);
  background: var(--tm-paper);
  box-shadow: var(--tm-shadow-dialog);
}

.tm-site-consent[hidden] { display: none; }

.tm-site-consent__inner { display: grid; gap: 1rem; align-items: center; }

@media (min-width: 1024px) { .tm-site-consent__inner { grid-template-columns: 1fr auto; } }

.tm-site-consent__title { margin: 0 0 .25rem; color: var(--tm-text); font-size: 1rem; font-weight: 700; }
.tm-site-consent__text { color: var(--tm-text-2); font-size: var(--tm-text-body-sm); line-height: 1.55; }
.tm-site-consent__actions { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }

@media (min-width: 1024px) { .tm-site-consent__actions { grid-template-columns: repeat(3, auto); } }

.tm-site-dialog {
  width: min(36rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-xl);
  background: var(--tm-paper);
  color: var(--tm-text);
  box-shadow: var(--tm-shadow-dialog);
}

.tm-site-dialog::backdrop { background: var(--tm-scrim); }
.tm-site-dialog[open] { animation: tm-site-fade-up var(--tm-dur-slow) var(--tm-ease-out); }

@keyframes tm-site-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.tm-site-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--tm-border-subtle); }
.tm-site-dialog__head h2 { font-size: 1.125rem; font-weight: 700; }
.tm-site-dialog__body { display: grid; gap: 1rem; padding: 1.25rem 1.5rem; overflow-y: auto; color: var(--tm-text-2); }
.tm-site-dialog__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--tm-border-subtle); background: var(--tm-paper-2); }

.tm-site-toggle-row { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: center; padding: 1rem; border: 1px solid var(--tm-border-subtle); border-radius: var(--tm-radius-md); }
.tm-site-toggle-row strong { color: var(--tm-text); }
.tm-site-toggle-row p { grid-column: 1; font-size: var(--tm-text-body-sm); }

.tm-site-switch { position: relative; display: inline-flex; grid-row: span 2; width: 2.75rem; height: 1.5rem; }
.tm-site-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.tm-site-switch span { width: 100%; height: 100%; border: 1px solid var(--tm-border-control); border-radius: var(--tm-radius-pill); background: var(--tm-paper-3); transition: background-color var(--tm-dur) var(--tm-ease); }
.tm-site-switch span::after { content: ""; position: absolute; top: .1875rem; left: .1875rem; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--tm-text-2); transition: transform var(--tm-dur) var(--tm-ease), background-color var(--tm-dur) var(--tm-ease); }
.tm-site-switch input:checked + span { border-color: var(--tm-primary); background: var(--tm-primary); }
.tm-site-switch input:checked + span::after { background: var(--tm-on-primary); transform: translateX(1.25rem); }
.tm-site-switch input:disabled { cursor: not-allowed; }
.tm-site-switch input:disabled + span { opacity: .6; }
.tm-site-switch input:focus-visible + span { outline: var(--tm-focus-width) solid var(--tm-focus); outline-offset: 2px; }

/* --------------------------------------------------------------------------
 * Ruch: wejście sekcji (tylko gdy JS włączył .tm-motion i ruch jest dozwolony)
 * ------------------------------------------------------------------------ */
.tm-motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--tm-ease-out), transform 620ms var(--tm-ease-out);
  transition-delay: calc(var(--tm-reveal-index, 0) * 70ms);
}

.tm-motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .tm-motion [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
 * Sceny (ilustracje z tokenów, odgrywane przez js/site/core.js)
 * Stan spoczynkowy = kompozycja końcowa; dane przykładowe podpisane.
 * ------------------------------------------------------------------------ */
.tm-scene { position: relative; width: 100%; color: var(--tm-text); }
.tm-scene__caption { margin-top: .75rem; color: var(--tm-text-3); font-size: var(--tm-text-caption); }

/* Telefon z kasą */
.tm-scene-phone {
  position: relative;
  width: min(17rem, 72vw);
  aspect-ratio: 9 / 18.5;
  padding: .625rem;
  border-radius: 2.25rem;
  background: var(--tm-inverse);
  box-shadow: var(--tm-shadow-dialog);
}

.tm-scene-phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1.75rem;
  background: var(--tm-paper);
}

.tm-scene-phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1rem .5rem;
  font-size: .6875rem;
  font-weight: 700;
}

.tm-scene-phone__bar span:last-child { display: inline-flex; gap: .25rem; color: var(--tm-text-3); }
.tm-scene-phone__bar svg { width: .75rem; height: .75rem; }

.tm-scene-phone__app {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem .75rem;
  border-bottom: 1px solid var(--tm-border-subtle);
}

.tm-scene-phone__logo { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: .5rem; background: var(--tm-primary); color: var(--tm-on-primary); }
.tm-scene-phone__logo svg { width: 1rem; height: 1rem; }
.tm-scene-phone__title { font-size: .8125rem; font-weight: 700; line-height: 1.2; }
.tm-scene-phone__title small { display: block; color: var(--tm-text-3); font-size: .6875rem; font-weight: 500; }

.tm-scene-lines { display: grid; gap: .5rem; padding: .875rem 1rem; list-style: none; }
.tm-scene-line { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; }
.tm-scene-line span:first-child { color: var(--tm-text-2); }
.tm-scene-line span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }

.tm-scene-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: auto 1rem 0;
  padding: .75rem 0;
  border-top: 1px dashed var(--tm-border);
  font-weight: 700;
}

.tm-scene-total span:first-child { color: var(--tm-text-2); font-size: .75rem; font-weight: 600; }
.tm-scene-total span:last-child { font-size: 1.375rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.tm-scene-phone__cta {
  margin: .5rem 1rem 1rem;
  padding: .625rem;
  border-radius: .75rem;
  background: var(--tm-primary);
  color: var(--tm-on-primary);
  font-size: .8125rem;
  font-weight: 700;
  text-align: center;
}

/* Paragon wychodzący z kasy */
.tm-scene-receipt {
  position: relative;
  width: 11.5rem;
  padding: .875rem .875rem 1.25rem;
  background: var(--tm-paper);
  border: 1px solid var(--tm-border-subtle);
  box-shadow: var(--tm-shadow-raised);
  font-family: var(--tm-font-mono);
  font-size: .625rem;
  line-height: 1.5;
  color: var(--tm-text-2);
  -webkit-mask: radial-gradient(circle .35rem at .5rem 100%, transparent 98%, black) 0 0 / 1rem 100% repeat-x;
  mask: radial-gradient(circle .35rem at .5rem 100%, transparent 98%, black) 0 0 / 1rem 100% repeat-x;
}

.tm-scene-receipt__head { margin-bottom: .375rem; color: var(--tm-text); font-family: var(--tm-font-sans); font-size: .6875rem; font-weight: 700; text-align: center; letter-spacing: .04em; }
.tm-scene-receipt__row { display: flex; justify-content: space-between; gap: .5rem; }
.tm-scene-receipt__row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-scene-receipt__row span:last-child { flex: none; }
.tm-scene-receipt__sum { display: flex; justify-content: space-between; margin-top: .375rem; padding-top: .375rem; border-top: 1px dashed var(--tm-border); color: var(--tm-text); font-weight: 700; font-size: .75rem; }
.tm-scene-receipt__qr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; width: 3.25rem; margin: .625rem auto 0; }
.tm-scene-receipt__qr i { aspect-ratio: 1; background: var(--tm-text); }
.tm-scene-receipt__qr i:nth-child(3n),
.tm-scene-receipt__qr i:nth-child(7n + 2) { background: transparent; }
.tm-scene-receipt__plf { margin-top: .375rem; color: var(--tm-text); font-family: var(--tm-font-sans); font-size: .625rem; font-weight: 700; text-align: center; letter-spacing: .1em; }

/* Węzły i ścieżki przepływu */
.tm-scene-node {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem .875rem;
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-md);
  background: var(--tm-paper);
  box-shadow: var(--tm-shadow-card);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.25;
}

.tm-scene-node small { display: block; color: var(--tm-text-3); font-size: .6875rem; font-weight: 500; }
.tm-scene-node__icon { display: grid; flex: none; place-items: center; width: 2rem; height: 2rem; border-radius: .625rem; background: var(--tm-primary-tonal); color: var(--tm-primary-text); }
.tm-scene-node__icon svg { width: 1.125rem; height: 1.125rem; }
.tm-scene-node--ok .tm-scene-node__icon { background: var(--tm-success-tonal); color: var(--tm-success-text); }
.tm-scene-node--mf .tm-scene-node__icon { background: var(--tm-info-tonal); color: var(--tm-info-text); }

.tm-scene-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .125rem .5rem;
  border-radius: var(--tm-radius-pill);
  background: var(--tm-success-tonal);
  color: var(--tm-success-text);
  font-size: .6875rem;
  font-weight: 700;
}

.tm-scene-badge svg { width: .75rem; height: .75rem; }

/* Kompozycja hero: telefon i wydany paragon */
.tm-scene-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 30rem;
}

.tm-scene-hero__phone { position: relative; z-index: 2; }

.tm-scene-hero__receipt {
  position: absolute;
  z-index: 3;
  /* Over the empty middle of the phone screen, clear of the sale lines and of the total. */
  right: max(0rem, calc(50% - 15.5rem));
  top: 38%;
  transform: rotate(4deg);
}

@media (max-width: 599px) {
  .tm-scene-hero__receipt { display: none; }
  .tm-scene-phone { width: min(14rem, 62vw); }
  /* Without the receipt overlay the phone is only as tall as the sale: no empty screen in the middle. */
  .tm-scene-hero { min-height: 0; }
  .tm-scene-hero .tm-scene-phone { aspect-ratio: auto; }
  .tm-scene-hero .tm-scene-total { margin-top: .5rem; }
}

/* Scena przepływu poziomego (dokument: zapis, podpis, MF, wydanie) */
.tm-scene-flow {
  display: grid;
  gap: .75rem;
  padding: 1.25rem;
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-xl);
  background: var(--tm-paper);
  box-shadow: var(--tm-shadow-card);
  list-style: none;
}

@media (min-width: 900px) { .tm-scene-flow { grid-template-columns: repeat(var(--tm-flow-count, 4), minmax(0, 1fr)); gap: 0; } }

.tm-scene-flow__step {
  position: relative;
  display: grid;
  gap: .5rem;
  justify-items: start;
  padding: .75rem;
  border-radius: var(--tm-radius-md);
  transition: background-color var(--tm-dur-slow) var(--tm-ease);
}

@media (min-width: 900px) {
  .tm-scene-flow__step { justify-items: center; text-align: center; padding: .75rem 1rem; }
  .tm-scene-flow__step + .tm-scene-flow__step::before {
    content: "";
    position: absolute;
    top: 2.0rem;
    right: calc(50% + 1.75rem);
    left: calc(-50% + 1.75rem);
    height: 2px;
    background: linear-gradient(to right, var(--tm-primary) var(--tm-flow-fill, 0%), var(--tm-border) var(--tm-flow-fill, 0%));
  }
  .tm-scene-flow__step.is-done + .tm-scene-flow__step::before,
  .tm-scene-flow__step.is-active::before { --tm-flow-fill: 100%; }
}

.tm-scene-flow__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--tm-paper-3);
  color: var(--tm-text-2);
  transition: background-color var(--tm-dur-slow) var(--tm-ease), color var(--tm-dur-slow) var(--tm-ease), transform var(--tm-dur-slow) var(--tm-ease-out);
}

.tm-scene-flow__icon svg { width: 1.25rem; height: 1.25rem; }
.tm-scene-flow__title { color: var(--tm-text); font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.tm-scene-flow__text { color: var(--tm-text-2); font-size: var(--tm-text-body-sm); line-height: 1.5; }

.tm-scene-flow__step.is-active .tm-scene-flow__icon,
.tm-scene-flow__step.is-done .tm-scene-flow__icon { background: var(--tm-primary); color: var(--tm-on-primary); }
.tm-scene-flow__step.is-active .tm-scene-flow__icon { transform: scale(1.08); }
.tm-scene-flow__step.is-active { background: var(--tm-primary-tonal); }

/* Kolejka offline: dokumenty czekają i odchodzą po powrocie sieci */
.tm-scene-queue { display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid var(--tm-border-subtle); border-radius: var(--tm-radius-xl); background: var(--tm-paper); box-shadow: var(--tm-shadow-card); }
.tm-scene-queue__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.tm-scene-queue__net { display: inline-flex; align-items: center; gap: .375rem; font-size: var(--tm-text-body-sm); font-weight: 700; }
.tm-scene-queue__net svg { width: 1rem; height: 1rem; }
.tm-scene-queue__list { display: grid; gap: .5rem; list-style: none; }
.tm-scene-queue__item { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .625rem .75rem; border: 1px solid var(--tm-border-subtle); border-radius: var(--tm-radius-md); background: var(--tm-paper-2); font-size: var(--tm-text-body-sm); }
.tm-scene-queue__item svg { width: 1rem; height: 1rem; color: var(--tm-text-3); }
.tm-scene-queue__item .tm-site-chip { justify-self: end; }

/* Łańcuch dokumentów (skrót poprzedniego w następnym) */
.tm-scene-chain { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; padding: 1.25rem; list-style: none; }
.tm-scene-chain__doc { display: grid; gap: .25rem; min-width: 6.75rem; padding: .75rem; border: 1px solid var(--tm-border-subtle); border-radius: var(--tm-radius-md); background: var(--tm-paper); box-shadow: var(--tm-shadow-card); font-size: .75rem; }
.tm-scene-chain__doc b { color: var(--tm-text); font-size: .8125rem; }
.tm-scene-chain__doc code { color: var(--tm-text-3); font-family: var(--tm-font-mono); font-size: .6875rem; }
.tm-scene-chain__link { display: grid; place-items: center; color: var(--tm-primary-text); }
.tm-scene-chain__link svg { width: 1.25rem; height: 1.25rem; }

/* Licznik taksometru (SiopTAK) */
.tm-scene-meter { display: grid; gap: .75rem; padding: 1rem; }
.tm-scene-meter__fare { color: var(--tm-text); font-size: 2.25rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1; text-align: center; }
.tm-scene-meter__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.tm-scene-meter__cell { padding: .5rem .625rem; border-radius: .625rem; background: var(--tm-paper-2); font-size: .6875rem; }
.tm-scene-meter__cell b { display: block; color: var(--tm-text); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.tm-scene-meter__cell b svg { width: .875em; height: .875em; vertical-align: -.05em; color: var(--tm-success-text); }
.tm-scene-meter__route { position: relative; height: 4.5rem; border-radius: .75rem; background: var(--tm-paper-3); overflow: hidden; }
.tm-scene-meter__route svg { width: 100%; height: 100%; }
.tm-scene-meter__route path { fill: none; stroke: var(--tm-primary); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* Szkielet drukarki (Siop Printer) */
.tm-scene-printer { display: grid; justify-items: center; gap: 0; }
.tm-scene-printer__body { width: 13rem; padding: .875rem 1rem; border-radius: 1rem 1rem .5rem .5rem; background: var(--tm-inverse); color: var(--tm-on-inverse); font-size: .75rem; font-weight: 700; box-shadow: var(--tm-shadow-raised); }
.tm-scene-printer__body span { display: inline-flex; align-items: center; gap: .375rem; }
.tm-scene-printer__body svg { width: 1rem; height: 1rem; }
.tm-scene-printer__slot { width: 12rem; height: .375rem; border-radius: 0 0 .25rem .25rem; background: var(--tm-text-2); }
.tm-scene-printer .tm-scene-receipt { width: 10.5rem; margin-top: -.125rem; }

/* Stanowiska zdalne: kasa w centrum, stanowiska dookoła */
.tm-scene-stations { position: relative; display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; justify-items: center; padding: 1.5rem; border: 1px solid var(--tm-border-subtle); border-radius: var(--tm-radius-xl); background: var(--tm-paper); }
.tm-scene-stations__center { grid-column: 2; grid-row: 2; }
.tm-scene-stations .tm-scene-node { font-size: .75rem; }

@media (max-width: 599px) {
  .tm-scene-stations { grid-template-columns: 1fr; }
  .tm-scene-stations__center { grid-column: 1; grid-row: auto; }
}

/* --------------------------------------------------------------------------
 * Wydruk
 * ------------------------------------------------------------------------ */
@media print {
  .tm-site-header,
  .tm-site-ribbon,
  .tm-site-footer,
  .tm-site-consent,
  .tm-skip-link,
  .tm-site-motion-btn { display: none !important; }
  .tm-site-main { background: none; }
}

/* --------------------------------------------------------------------------
 * Wymuszone kolory
 * ------------------------------------------------------------------------ */
@media (forced-colors: active) {
  .tm-site-card,
  .tm-site-step,
  .tm-site-faq details,
  .tm-site-input,
  .tm-site-chip,
  .tm-site-note { border: 1px solid CanvasText; }
  .tm-site-btn { border: 1px solid ButtonText; }
  .tm-site-choice label:has(input:checked),
  .tm-site-segment label:has(input:checked) { outline: 2px solid Highlight; }
}

/* ==========================================================================
 * Układ redakcyjny (R23, kierunek właściciela 14.11.2026): strona jako wyjaśnienie w rozdziałach-pytaniach,
 * typografia i marginesy zamiast ozdobników, przypisy ze źródłami na marginesie, schematy rysowane dla produktu.
 * ======================================================================== */

/* Otwarcie strony: bez poświaty i siatki, sama typografia i dokument */
.tm-ed-open {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(2.5rem, 1.5rem + 4vw, 5rem);
  background: var(--tm-paper);
  border-bottom: 1px solid var(--tm-border-subtle);
}

.tm-ed-open__grid { display: grid; gap: clamp(2.5rem, 1rem + 4vw, 4.5rem); align-items: start; }

@media (min-width: 1100px) { .tm-ed-open__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } }

.tm-ed-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .875rem;
  margin-bottom: 1.5rem;
  color: var(--tm-text-2);
  font-size: var(--tm-text-body-sm);
  font-weight: 600;
}

.tm-ed-title {
  max-width: 15ch;
  margin: 0;
  color: var(--tm-text);
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tm-ed-title em { color: var(--tm-primary-text); font-style: normal; }

.tm-ed-lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--tm-text-2);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Spis pytań: rozdziały strony jako jej plan */
.tm-ed-index {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--tm-border);
  list-style: none;
  counter-reset: tm-ed-q;
}

.tm-ed-index li { counter-increment: tm-ed-q; border-bottom: 1px solid var(--tm-border-subtle); }

.tm-ed-index a {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: .75rem;
  align-items: baseline;
  padding: .875rem 0;
  color: var(--tm-text);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}

.tm-ed-index a::before {
  content: counter(tm-ed-q, decimal-leading-zero);
  color: var(--tm-text-3);
  font-size: var(--tm-text-body-sm);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.tm-ed-index a svg { width: 1rem; height: 1rem; color: var(--tm-text-3); transition: transform var(--tm-dur) var(--tm-ease), color var(--tm-dur) var(--tm-ease); }
.tm-ed-index a:hover { color: var(--tm-primary-text); }
.tm-ed-index a:hover svg { color: var(--tm-primary-text); transform: translateY(2px); }

/* Rozdział: numer, pytanie, treść i margines na przypisy */
.tm-ed-chapter { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); background: var(--tm-canvas); border-bottom: 1px solid var(--tm-border-subtle); }
.tm-ed-chapter--paper { background: var(--tm-paper); }
.tm-ed-chapter[data-theme="dark"] { background: var(--tm-ink); }

.tm-ed-chapter__head { display: grid; gap: .5rem; max-width: 48rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }

.tm-ed-chapter__num {
  color: var(--tm-primary-text);
  font-size: var(--tm-text-body-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tm-tracking-overline);
  text-transform: uppercase;
}

.tm-ed-chapter__title {
  margin: 0;
  color: var(--tm-text);
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.tm-ed-chapter__answer { margin-top: .75rem; color: var(--tm-text-2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; text-wrap: pretty; }
.tm-ed-chapter__answer strong { color: var(--tm-text); }

.tm-ed-body { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }

@media (min-width: 1100px) {
  .tm-ed-body--margin { grid-template-columns: minmax(0, 1fr) 18rem; }
}

.tm-ed-prose { max-width: 42rem; color: var(--tm-text-2); font-size: var(--tm-text-body-lg); line-height: 1.7; }
.tm-ed-prose > * + * { margin-top: 1rem; }
.tm-ed-prose strong { color: var(--tm-text); font-weight: 600; }
.tm-ed-prose h3 { margin-top: 2rem; color: var(--tm-text); font-size: 1.1875rem; font-weight: 700; line-height: 1.35; }

/* Przypisy na marginesie */
.tm-ed-aside { display: grid; gap: 1rem; align-content: start; }

.tm-ed-footnote {
  padding-left: .875rem;
  border-left: 2px solid var(--tm-border);
  color: var(--tm-text-2);
  font-size: var(--tm-text-body-sm);
  line-height: 1.55;
}

.tm-ed-footnote b { display: block; margin-bottom: .125rem; color: var(--tm-text); font-size: var(--tm-text-caption); letter-spacing: var(--tm-tracking-overline); text-transform: uppercase; }
.tm-ed-footnote a { color: var(--tm-primary-text); font-weight: 600; }

/* Liczba z podpisem (fakty, które da się sprawdzić) */
.tm-ed-figures { display: grid; gap: 0; border-top: 1px solid var(--tm-border); }

/* Progressive disclosure of a long figure (home, question 3): a heading row that opens the content. */
.tm-ed-more { border-top: 1px solid var(--tm-border); border-bottom: 1px solid var(--tm-border-subtle); }
.tm-ed-more summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem 1rem;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
}
.tm-ed-more summary::-webkit-details-marker { display: none; }
.tm-ed-more summary h3 { margin: 0; }
.tm-ed-more__hint { grid-column: 1; color: var(--tm-text-2); font-size: var(--tm-text-body-sm); line-height: 1.5; }
.tm-ed-more summary svg { grid-column: 2; grid-row: 1 / span 2; width: 1.5rem; height: 1.5rem; color: var(--tm-primary-text); transition: transform var(--tm-dur) var(--tm-ease); }
.tm-ed-more[open] summary svg { transform: rotate(180deg); }
.tm-ed-more summary:focus-visible { outline: var(--tm-focus-width) solid var(--tm-focus); outline-offset: 4px; border-radius: var(--tm-radius-sm); }
.tm-ed-more__body { padding-bottom: 2rem; }
@media (prefers-reduced-motion: reduce) { .tm-ed-more summary svg { transition: none; } }

@media (min-width: 800px) { .tm-ed-figures { grid-template-columns: repeat(var(--tm-figures, 3), minmax(0, 1fr)); } }

.tm-ed-figure { padding: 1.25rem 1.5rem 1.25rem 0; border-bottom: 1px solid var(--tm-border-subtle); }

@media (min-width: 800px) {
  .tm-ed-figure { padding-left: 1.5rem; border-bottom: 0; border-left: 1px solid var(--tm-border-subtle); }
  .tm-ed-figure:first-child { padding-left: 0; border-left: 0; }
}

.tm-ed-figure__value { display: block; color: var(--tm-text); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.035em; line-height: 1; }
.tm-ed-figure__label { display: block; max-width: 26ch; margin-top: .625rem; color: var(--tm-text-2); font-size: var(--tm-text-body-sm); line-height: 1.5; }

/* --------------------------------------------------------------------------
 * Anatomia paragonu: prawdziwy układ paragonu taxi z numerami elementów i objaśnieniem z podstawą prawną
 * ------------------------------------------------------------------------ */
.tm-anatomy { display: grid; gap: 1.5rem; align-items: start; }

@media (min-width: 720px) { .tm-anatomy { grid-template-columns: 17.5rem minmax(0, 1fr); } }

.tm-anatomy__paper {
  position: relative;
  width: 100%;
  max-width: 17.5rem;
  margin-inline: auto;
  padding: 1.25rem 1rem 1.75rem;
  background: var(--tm-paper);
  border: 1px solid var(--tm-border-subtle);
  box-shadow: var(--tm-shadow-raised);
  color: var(--tm-text);
  font-family: var(--tm-font-mono);
  font-size: .6875rem;
  line-height: 1.55;
  -webkit-mask: radial-gradient(circle .4rem at .55rem 100%, transparent 98%, black) 0 0 / 1.1rem 100% repeat-x;
  mask: radial-gradient(circle .4rem at .55rem 100%, transparent 98%, black) 0 0 / 1.1rem 100% repeat-x;
}

[data-theme="dark"] .tm-anatomy__paper { background: var(--tm-paper-2); }

.tm-anatomy__part { position: relative; padding: .25rem .25rem .25rem 1.625rem; border-radius: .375rem; transition: background-color var(--tm-dur-slow) var(--tm-ease); }
.tm-anatomy__part + .tm-anatomy__part { margin-top: .25rem; }
.tm-anatomy__part.is-active { background: var(--tm-primary-tonal); }
.tm-anatomy__row { display: flex; justify-content: space-between; gap: .5rem; }
.tm-anatomy__center { text-align: center; }
.tm-anatomy__strong { font-weight: 700; }
.tm-anatomy__big { font-size: .8125rem; font-weight: 700; }
.tm-anatomy__rule { margin: .375rem 0; border-top: 1px dashed var(--tm-border); }
.tm-anatomy__qr { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px; width: 4.25rem; margin: .375rem auto 0; }
.tm-anatomy__qr i { aspect-ratio: 1; background: var(--tm-text); }
.tm-anatomy__qr i:nth-child(4n + 1),
.tm-anatomy__qr i:nth-child(7n + 3) { background: transparent; }
.tm-anatomy__logo { display: inline-grid; place-items: center; width: 1.375rem; height: 1.375rem; margin-right: .375rem; border: 2px solid var(--tm-text); border-radius: 50%; font-family: var(--tm-font-sans); font-size: .5rem; font-weight: 800; vertical-align: middle; }

.tm-anatomy__pin,
.tm-anatomy__legend li::before {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--tm-primary);
  color: var(--tm-on-primary);
  font-family: var(--tm-font-sans);
  font-size: .6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tm-anatomy__pin { position: absolute; top: .3rem; left: .125rem; }

.tm-anatomy__legend { display: grid; gap: .25rem; list-style: none; counter-reset: tm-anatomy; }

.tm-anatomy__legend li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: .25rem .75rem;
  padding: .625rem .75rem;
  border-radius: var(--tm-radius-md);
  counter-increment: tm-anatomy;
  transition: background-color var(--tm-dur-slow) var(--tm-ease);
}

.tm-anatomy__legend li::before { content: counter(tm-anatomy); margin-top: .125rem; }
.tm-anatomy__legend li.is-active { background: var(--tm-primary-tonal); }
.tm-anatomy__legend strong { display: block; color: var(--tm-text); font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.tm-anatomy__legend span { color: var(--tm-text-2); font-size: var(--tm-text-body-sm); line-height: 1.5; }
.tm-anatomy__legend small { display: block; margin-top: .125rem; color: var(--tm-text-3); font-size: var(--tm-text-caption); }
.tm-anatomy__caption { grid-column: 1 / -1; color: var(--tm-text-3); font-size: var(--tm-text-caption); }

/* --------------------------------------------------------------------------
 * Wybór działalności: odpowiedź bez JavaScriptu (radio + :has)
 * ------------------------------------------------------------------------ */
.tm-chooser { display: grid; gap: 1.25rem; }
.tm-chooser fieldset { margin: 0; padding: 0; border: 0; }
.tm-chooser legend { margin-bottom: .75rem; color: var(--tm-text); font-size: 1rem; font-weight: 700; }
.tm-chooser__answers { display: grid; gap: 1rem; }

.tm-chooser__answer {
  display: grid;
  gap: .625rem;
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--tm-border-subtle);
  border-left: 4px solid var(--tm-primary);
  border-radius: var(--tm-radius-md);
  background: var(--tm-paper);
}

.tm-chooser__answer .tm-chooser__verdict { color: var(--tm-text); font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.tm-chooser__answer p { color: var(--tm-text-2); line-height: 1.6; }
.tm-chooser__answer a { color: var(--tm-primary-text); font-weight: 600; }

@supports selector(:has(*)) {
  .tm-chooser__answer { display: none; }
  .tm-chooser:has(input[value="taxi"]:checked) .tm-chooser__answer[data-answer="taxi"],
  .tm-chooser:has(input[value="bilety"]:checked) .tm-chooser__answer[data-answer="bilety"],
  .tm-chooser:has(input[value="myjnia"]:checked) .tm-chooser__answer[data-answer="myjnia"],
  .tm-chooser:has(input[value="automaty"]:checked) .tm-chooser__answer[data-answer="automaty"],
  .tm-chooser:has(input[value="gastronomia"]:checked) .tm-chooser__answer[data-answer="gastronomia"],
  .tm-chooser:has(input[value="hotel"]:checked) .tm-chooser__answer[data-answer="hotel"],
  .tm-chooser:has(input[value="inna"]:checked) .tm-chooser__answer[data-answer="inna"] { display: grid; animation: tm-site-fade-up var(--tm-dur-slow) var(--tm-ease-out); }
}

/* --------------------------------------------------------------------------
 * Dzień pracy kasy: oś czasu z dokumentami i przerwą w sieci (przykład z godzinami)
 * ------------------------------------------------------------------------ */
.tm-day { position: relative; display: grid; gap: 0; list-style: none; }

.tm-day__row {
  position: relative;
  display: grid;
  grid-template-columns: 3.75rem 1.5rem minmax(0, 1fr);
  gap: 0 .75rem;
  padding-bottom: 1.25rem;
}

.tm-day__time { padding-top: .125rem; color: var(--tm-text); font-size: .9375rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.tm-day__dot {
  position: relative;
  z-index: 1;
  width: .875rem;
  height: .875rem;
  margin: .3rem auto 0;
  border: 2px solid var(--tm-primary);
  border-radius: 50%;
  background: var(--tm-paper);
  transition: background-color var(--tm-dur-slow) var(--tm-ease), transform var(--tm-dur-slow) var(--tm-ease-out);
}

.tm-day__row::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: 0;
  left: calc(3.75rem + .75rem + .75rem);
  width: 2px;
  background: var(--tm-border);
  transform: translateX(-50%);
}

.tm-day__row:last-child::after { display: none; }
.tm-day__row--offline::after { background: repeating-linear-gradient(to bottom, var(--tm-warning) 0 4px, transparent 4px 8px); }
.tm-day__row.is-active .tm-day__dot { background: var(--tm-primary); transform: scale(1.25); }
.tm-day__row--offline .tm-day__dot { border-color: var(--tm-warning); }
.tm-day__row--offline.is-active .tm-day__dot { background: var(--tm-warning); }

.tm-day__event { display: grid; gap: .25rem; padding: .125rem 0 0; }
.tm-day__title { color: var(--tm-text); font-weight: 600; line-height: 1.4; }
.tm-day__text { color: var(--tm-text-2); font-size: var(--tm-text-body-sm); line-height: 1.55; }
.tm-day__docs { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .25rem; }

.tm-doc-tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .0625rem .5rem;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-xs);
  background: var(--tm-paper);
  color: var(--tm-text);
  font-family: var(--tm-font-mono);
  font-size: .6875rem;
  font-weight: 600;
}

.tm-doc-tag--mf { border-color: rgb(var(--tm-info-ch) / .4); background: var(--tm-info-tonal); color: var(--tm-info-text); }
.tm-doc-tag--ok { border-color: rgb(var(--tm-success-ch) / .4); background: var(--tm-success-tonal); color: var(--tm-success-text); }
.tm-doc-tag--wait { border-color: rgb(var(--tm-warning-ch) / .5); background: var(--tm-warning-tonal); color: var(--tm-warning-text); }

/* --------------------------------------------------------------------------
 * Schemat drogi dokumentu: kasa, łańcuch, MF, nabywca (rysowany dla produktu)
 * ------------------------------------------------------------------------ */
.tm-route { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 1px solid var(--tm-border-subtle); border-radius: var(--tm-radius-xl); background: var(--tm-paper); }
.tm-route__lanes { display: grid; gap: 1rem; list-style: none; }

@media (min-width: 900px) { .tm-route__lanes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } }

.tm-route__stage { position: relative; display: grid; gap: .5rem; align-content: start; padding: 1rem; border-radius: var(--tm-radius-md); transition: background-color var(--tm-dur-slow) var(--tm-ease); }

@media (min-width: 900px) {
  .tm-route__stage + .tm-route__stage { border-left: 1px dashed var(--tm-border); }
}

.tm-route__stage.is-active { background: var(--tm-primary-tonal); }
.tm-route__label { color: var(--tm-text-3); font-size: var(--tm-text-caption); font-weight: 700; letter-spacing: var(--tm-tracking-overline); text-transform: uppercase; }
.tm-route__title { color: var(--tm-text); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.tm-route__text { color: var(--tm-text-2); font-size: var(--tm-text-body-sm); line-height: 1.55; }
.tm-route__note { color: var(--tm-text-3); font-size: var(--tm-text-caption); }

/* Krok startu (od zakupu do paragonu) jako lista numerowana z czasem */
.tm-start { display: grid; gap: 0; border-top: 1px solid var(--tm-border); list-style: none; counter-reset: tm-start; }
.tm-start li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--tm-border-subtle); counter-increment: tm-start; }
.tm-start li::before { content: counter(tm-start); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tm-paper-3); color: var(--tm-text); font-weight: 700; }
.tm-start strong { display: block; color: var(--tm-text); font-weight: 600; }
.tm-start span { display: block; margin-top: .125rem; color: var(--tm-text-2); font-size: var(--tm-text-body-sm); line-height: 1.55; }

/* Katalog profili jako tabela (zamiast ściany kart) */
.tm-catalog { width: 100%; border-collapse: collapse; }
.tm-catalog th, .tm-catalog td { padding: 1rem .75rem; border-bottom: 1px solid var(--tm-border-subtle); text-align: left; vertical-align: middle; }
.tm-catalog thead th { color: var(--tm-text-3); font-size: var(--tm-text-overline); font-weight: 700; letter-spacing: var(--tm-tracking-overline); text-transform: uppercase; }
.tm-catalog tbody th a { display: inline-flex; align-items: center; gap: .625rem; color: var(--tm-text); font-weight: 700; text-decoration: none; }
.tm-catalog tbody th a:hover { color: var(--tm-primary-text); text-decoration: underline; }
.tm-catalog tbody th svg { width: 1.25rem; height: 1.25rem; color: var(--tm-primary-text); }
.tm-catalog td { color: var(--tm-text-2); font-size: var(--tm-text-body-sm); }

@media (max-width: 759px) {
  .tm-catalog thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .tm-catalog tr { display: grid; gap: .25rem; padding: .875rem 0; border-bottom: 1px solid var(--tm-border-subtle); }
  .tm-catalog th, .tm-catalog td { padding: 0; border: 0; }
  .tm-catalog td[data-label]::before { content: attr(data-label) ": "; color: var(--tm-text-3); font-weight: 600; }
}

/* --------------------------------------------------------------------------
 * Q7i: pokaz SiopKA i SiopTAK (/pokaz) i wydruk pokazowy (/pokaz/wydruk).
 * Ekrany aplikacji rysowane tokenami; znak „Pokaz” i „WZÓR” zawsze widoczny.
 * ------------------------------------------------------------------------ */
.tm-show-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 760px) { .tm-show-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tm-show-picker__group { padding: 1rem; border: 1px solid var(--tm-border-subtle); border-radius: var(--tm-radius-lg); background: var(--tm-paper); }
.tm-show-picker__label { margin: 0 0 .5rem; color: var(--tm-primary-text); font-size: var(--tm-text-overline); font-weight: 700; letter-spacing: var(--tm-tracking-overline); text-transform: uppercase; }
.tm-show-picker ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tm-show-picker__link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .875rem; border: 1px solid var(--tm-border); border-radius: 999px; color: var(--tm-text); font-size: var(--tm-text-body-sm); font-weight: 600; text-decoration: none; }
.tm-show-picker__link:hover { border-color: var(--tm-primary); color: var(--tm-primary-text); }
.tm-show-picker__link[aria-current="page"] { border-color: var(--tm-primary); background: var(--tm-primary); color: var(--tm-on-primary); }

.tm-show-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 900px) { .tm-show-stage { grid-template-columns: auto minmax(0, 1fr); gap: 3rem; } }
.tm-show-stage__text { display: grid; gap: .75rem; min-width: 0; }
.tm-show-stage__count { margin: .5rem 0 0; color: var(--tm-text-3); font-size: var(--tm-text-body-sm); font-weight: 600; }
.tm-show-stage__step { margin: 0; color: var(--tm-text); font-size: 1.125rem; font-weight: 700; }
.tm-show-stage__nav { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.tm-show-steps ol { display: grid; gap: .25rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.tm-show-steps a { display: flex; align-items: center; gap: .625rem; min-height: 2.5rem; padding: .25rem .5rem; border-radius: var(--tm-radius-md); color: var(--tm-text-2); font-size: var(--tm-text-body-sm); text-decoration: none; }
.tm-show-steps a:hover { background: var(--tm-paper-2); color: var(--tm-text); }
.tm-show-steps a[aria-current="step"] { background: var(--tm-primary-tonal); color: var(--tm-primary-text); font-weight: 700; }
.tm-show-steps__n { display: grid; flex: none; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--tm-paper-3); color: var(--tm-text-2); font-size: .75rem; font-weight: 700; }
.tm-show-steps a[aria-current="step"] .tm-show-steps__n { background: var(--tm-primary); color: var(--tm-on-primary); }
.tm-show-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 900px) { .tm-show-more { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tm-show-list { display: grid; gap: .5rem; margin: 1rem 0; padding-left: 1.25rem; color: var(--tm-text-2); }

.tm-show { margin: 0 auto; }
.tm-show__phone { width: min(19rem, 86vw); margin-inline: auto; padding: .625rem; border-radius: 2.25rem; background: var(--tm-inverse); box-shadow: var(--tm-shadow-dialog); }
.tm-show__screen { position: relative; display: flex; flex-direction: column; min-height: 36rem; overflow: hidden; border-radius: 1.75rem; background: var(--tm-paper); color: var(--tm-text); }
.tm-show__mark { position: absolute; z-index: 3; top: .75rem; left: 50%; transform: translateX(-50%); padding: .125rem .625rem; border-radius: 999px; background: var(--tm-warning-tonal); color: var(--tm-warning-text); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tm-show__bar { display: flex; align-items: center; justify-content: space-between; padding: .875rem 1rem .5rem; font-size: .6875rem; font-weight: 700; }
.tm-show__bar span:last-child { display: inline-flex; gap: .25rem; color: var(--tm-text-3); }
.tm-show__bar svg { width: .75rem; height: .75rem; }
.tm-show__app { display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem .75rem; border-bottom: 1px solid var(--tm-border-subtle); }
.tm-show__logo { display: grid; flex: none; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: .5rem; background: var(--tm-primary); color: var(--tm-on-primary); }
.tm-show__logo svg { width: 1rem; height: 1rem; }
.tm-show__title { min-width: 0; font-size: .875rem; font-weight: 700; line-height: 1.2; }
.tm-show__title small { display: block; color: var(--tm-text-3); font-size: .6875rem; font-weight: 500; }
.tm-show__body { display: grid; flex: 1; gap: .625rem; align-content: start; padding: .875rem 1rem; font-size: .75rem; }
.tm-show__hero { display: grid; gap: .125rem; padding: .875rem; border-radius: .875rem; background: var(--tm-primary); color: var(--tm-on-primary); }
.tm-show__hero strong { font-size: .875rem; }
.tm-show__hero--dark { background: var(--tm-inverse); color: var(--tm-on-inverse); }
.tm-show__amount { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.15; }
.tm-show__heading { margin: .25rem 0 0; font-size: .8125rem; font-weight: 700; }
.tm-show__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.tm-show__tile { display: grid; justify-items: center; gap: .25rem; padding: .625rem .25rem; border: 1px solid var(--tm-border-subtle); border-radius: .75rem; font-weight: 600; text-align: center; }
.tm-show__tile svg { width: 1.125rem; height: 1.125rem; color: var(--tm-primary-text); }
.tm-show__rows { display: grid; gap: .375rem; margin: 0; }
.tm-show__rows div { display: flex; justify-content: space-between; gap: .75rem; }
.tm-show__rows dt { color: var(--tm-text-2); }
.tm-show__rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.tm-show__rows--caps div { display: grid; gap: .125rem; }
.tm-show__rows--caps dt { color: var(--tm-text-3); font-size: .625rem; font-weight: 700; letter-spacing: .06em; }
.tm-show__rows--caps dd { text-align: left; }
.tm-show__field { display: grid; gap: .25rem; }
.tm-show__label { color: var(--tm-text-2); font-size: .6875rem; }
.tm-show__input { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 2.25rem; padding: .375rem .625rem; border: 1px solid var(--tm-border-control); border-radius: .5rem; background: var(--tm-paper-2); font-size: .8125rem; }
.tm-show__input svg { width: .875rem; height: .875rem; color: var(--tm-text-3); }
.tm-show__item { display: flex; align-items: center; gap: .625rem; padding: .5rem; border: 1px solid var(--tm-border-subtle); border-radius: .75rem; }
.tm-show__avatar { display: grid; flex: none; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--tm-primary-tonal); color: var(--tm-primary-text); font-size: .6875rem; font-weight: 700; }
.tm-show__item-text { display: grid; flex: 1; min-width: 0; }
.tm-show__item-text small { color: var(--tm-text-3); }
.tm-show__chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.tm-show__chip { display: inline-flex; padding: .125rem .5rem; border-radius: 999px; background: var(--tm-paper-3); color: var(--tm-text-2); font-size: .6875rem; font-weight: 700; line-height: 1.5; }
.tm-show__chip--success { background: var(--tm-success-tonal); color: var(--tm-success-text); }
.tm-show__chip--warning { background: var(--tm-warning-tonal); color: var(--tm-warning-text); }
.tm-show__chip--danger { background: var(--tm-danger-tonal); color: var(--tm-danger-text); }
.tm-show__buttons { display: flex; flex-wrap: wrap; gap: .375rem; }
.tm-show__button { display: inline-flex; align-items: center; min-height: 2rem; padding: .25rem .625rem; border: 1px solid var(--tm-primary); border-radius: .625rem; color: var(--tm-primary-text); font-weight: 600; }
.tm-show__button.is-selected { background: var(--tm-primary-tonal); }
.tm-show__button--danger { border-color: var(--tm-danger-text); background: var(--tm-danger-text); color: var(--tm-on-status-strong); }
.tm-show__note { margin: 0; color: var(--tm-text-2); }
.tm-show__pin { display: grid; justify-items: center; gap: .875rem; }
.tm-show__dots { display: flex; gap: .625rem; }
.tm-show__dots i { width: .75rem; height: .75rem; border: 2px solid var(--tm-primary); border-radius: 999px; }
.tm-show__dots i.is-on { background: var(--tm-primary); }
.tm-show__keys { display: grid; grid-template-columns: repeat(3, 3rem); gap: .5rem; }
.tm-show__keys span { display: grid; place-items: center; height: 2.5rem; border-radius: .75rem; background: var(--tm-paper-2); font-size: 1rem; font-weight: 600; }
.tm-show__cta { margin: .5rem 1rem; padding: .625rem; border-radius: .75rem; background: var(--tm-primary); color: var(--tm-on-primary); font-size: .8125rem; font-weight: 700; text-align: center; }
.tm-show__tabs { display: flex; justify-content: space-around; padding: .5rem .5rem .75rem; border-top: 1px solid var(--tm-border-subtle); color: var(--tm-text-3); font-size: .6875rem; font-weight: 600; }
.tm-show__tabs .is-active { color: var(--tm-primary-text); }
.tm-show__scrim { position: absolute; z-index: 1; inset: 0; background: rgb(var(--tm-ink-ch) / .55); }
.tm-show__dialog { position: absolute; z-index: 2; top: 50%; right: 1rem; left: 1rem; display: grid; gap: .5rem; padding: 1rem; border-radius: 1rem; background: var(--tm-paper); color: var(--tm-text); box-shadow: var(--tm-shadow-dialog); font-size: .8125rem; transform: translateY(-50%); }
.tm-show__dialog strong { font-size: .9375rem; }
.tm-show__dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .25rem; font-weight: 700; }
.tm-show__dialog-actions span { padding: .375rem .75rem; border-radius: .625rem; color: var(--tm-primary-text); }
.tm-show__dialog-actions .is-main { background: var(--tm-primary); color: var(--tm-on-primary); }
.tm-show__dialog-actions .is-main.is-danger { background: var(--tm-danger-text); color: var(--tm-on-status-strong); }

.tm-print-frame { margin-top: 1.25rem; padding: 1rem; border: 1px solid var(--tm-border-subtle); border-radius: var(--tm-radius-lg); background: var(--tm-paper); }
.tm-print-frame__head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--tm-border-subtle); }
.tm-print-frame__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .625rem; background: var(--tm-primary); color: var(--tm-on-primary); }
.tm-print-frame__icon svg { width: 1.25rem; height: 1.25rem; }
.tm-print-frame__title { flex: 1; min-width: 12rem; font-weight: 700; }
.tm-print-frame__title small { display: block; color: var(--tm-text-3); font-size: var(--tm-text-caption); font-weight: 500; }
.tm-print-frame__pages { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0; background: var(--tm-paper-2); border-radius: var(--tm-radius-md); margin-top: 1rem; }
@media (min-width: 760px) { .tm-print-frame__pages { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 1rem; } }
.tm-print-frame__note { margin: 1rem 0 0; color: var(--tm-text-2); font-size: var(--tm-text-body-sm); }
.tm-print { margin: 0; padding-inline: 1rem; }
.tm-print__paper { position: relative; max-width: 19rem; margin-inline: auto; overflow: hidden; padding: 1.25rem 1rem 1.5rem; background: var(--tm-paper); border: 1px solid var(--tm-border-subtle); box-shadow: var(--tm-shadow-raised); color: var(--tm-text); font-family: var(--tm-font-mono); font-size: .75rem; line-height: 1.55; }
[data-theme="dark"] .tm-print__paper { background: var(--tm-paper-3); }
.tm-print__watermark { position: absolute; top: 45%; left: 50%; color: var(--tm-danger-text); font-family: var(--tm-font-sans); font-size: 4.5rem; font-weight: 800; letter-spacing: .1em; opacity: .14; transform: translate(-50%, -50%) rotate(-30deg); pointer-events: none; }
.tm-print__row { display: flex; justify-content: space-between; gap: .75rem; }
.tm-print__row span:last-child { text-align: right; }
.tm-print__center { text-align: center; }
.tm-print__strong { font-weight: 700; }
.tm-print__title { font-size: .9375rem; font-weight: 800; letter-spacing: .06em; }
.tm-print__gap { margin-top: .5rem; }
.tm-print__rule { margin: .375rem 0; border-top: 1px dotted var(--tm-border); }
.tm-print__rule--solid { border-top-style: solid; }
