* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--tk-font);
  font-size: var(--tk-font-base);
  line-height: var(--tk-line);
  color: var(--tk-text-body);
  min-height: 100dvh;
  max-width: var(--tk-max-width);
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body.tk-view {
  background: var(--tk-bg);
  padding: 0;
}

.tk-app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 14px var(--tk-pad-x) 0;
}

.tk-header { margin-bottom: 12px; }

.tk-header__body { padding-top: 2px; }

.tk-variant-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--tk-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tk-compare-link {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
}

.tk-compare-link a {
  color: var(--tk-accent);
  font-weight: 600;
  text-decoration: none;
}

.tk-fm-bar {
  display: none;
}

.tk-article-id {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--tk-muted);
  background: var(--tk-surface-muted);
  border: 1px solid var(--tk-border);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.2;
  vertical-align: middle;
}

.tk-header__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.tk-fm-bar__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.tk-fm-bar__head .tk-fm-bar__title {
  margin: 0;
}

.tk-guide-header .tk-article-id {
  margin-bottom: 4px;
}

/* FM embed: templates/checklist-fm-embed.css (tk-embed-fm, tk-embed-sheet, tk-embed-full) */

.tk-main {
  flex: 1;
  background: var(--tk-surface);
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow-panel);
  border: 1px solid var(--tk-border);
  overflow: hidden;
  margin-bottom: 10px;
}

.tk-sticky-cta {
  position: sticky;
  bottom: 0;
  padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(240, 242, 245, 0) 0%, var(--tk-bg) 28%);
}

body:not(.tk-view) {
  background: var(--tk-bg);
  padding: var(--tk-pad-x);
}

/* Контекст операции — не кричит */
.tk-badge {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--tk-accent);
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0;
  background: none;
  border: none;
}

.tk-badge--operation,
.tk-badge--prep,
.tk-badge--qc,
.tk-badge--safety {
  color: var(--tk-accent);
}

.tk-badge--safety { color: var(--tk-danger); }

.tk-title {
  font-size: var(--tk-h1-size);
  font-weight: 700;
  color: var(--tk-text);
  line-height: 1.3;
  margin: 0 0 6px;
  text-transform: none;
  letter-spacing: -0.01em;
}

.tk-lead {
  font-size: 14px;
  color: var(--tk-muted);
  margin: 0;
  line-height: 1.45;
}

/* Media */
.tk-media { margin: 0 0 12px; }

.tk-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--tk-radius-sm);
  border: 1px solid var(--tk-border);
}

/* Cards */
.tk-card {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.tk-card--danger { background: var(--tk-danger-bg); border-color: #fed7d7; }
.tk-card--success { background: var(--tk-success-bg); }

.tk-callout--info {
  padding: 12px 14px;
  font-size: 14px;
  background: var(--tk-surface-muted);
  border-radius: var(--tk-radius-sm);
  margin-bottom: 12px;
  color: var(--tk-text-body);
}

/* Steps */
.tk-steps__heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--tk-muted);
  margin-bottom: 8px;
}

.tk-steps__list {
  padding-left: 1.2rem;
  list-style: decimal;
}

.tk-steps__item { margin-bottom: 16px; }
.tk-step__heading { margin: 0 0 6px; }
.tk-step__body { margin: 0 0 10px; color: var(--tk-muted, #4a5568); }
.tk-step__figure img { width: 100%; border-radius: var(--tk-radius, 12px); }

.tk-step__figure--infographic {
  margin: 12px 0 4px;
  background: #fff;
  border: 1px solid var(--tk-border, #e2e8f0);
  border-radius: var(--tk-radius, 12px);
  padding: 8px;
}

.tk-step__figure--infographic img {
  border-radius: 8px;
  object-fit: contain;
}

/* Prep preview: infographic + static done marks */
.tk-preview-infographic {
  margin: 0 0 12px;
  background: #fff;
  border: 1px solid var(--tk-border, #e2e8f0);
  border-radius: var(--tk-radius, 12px);
  padding: 6px;
}

.tk-preview-infographic img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.tk-preview-infographic picture {
  display: block;
}

/* Slider lead — FM embed only (header with lead is hidden in sheet) */
.tk-slider-lead {
  display: none;
}

.tk-embed-sheet .tk-slider-lead {
  display: block;
  margin: 0;
  padding: 0 10px 8px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--tk-text-body);
}

.tk-preview-gallery {
  margin: 0 0 12px;
}

.tk-preview-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  border-radius: var(--tk-radius, 12px);
  scrollbar-width: none;
}

.tk-preview-gallery__track::-webkit-scrollbar {
  display: none;
}

.tk-preview-gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  background: #fff;
  border: 2px solid var(--tk-slide-color, var(--tk-border, #e2e8f0));
  border-radius: var(--tk-radius, 12px);
  padding: 4px;
  box-sizing: border-box;
}

.tk-preview-gallery__slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tk-preview-gallery__slide picture {
  display: block;
}

.tk-preview-gallery__label {
  margin: 6px 4px 4px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--tk-slide-color, var(--tk-text-body));
}

.tk-preview-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.tk-preview-gallery__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--tk-slide-color, #94a3b8);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.tk-preview-gallery__dot.is-active {
  background: var(--tk-slide-color, var(--tk-accent));
  border-color: var(--tk-slide-color, var(--tk-accent));
}

.tk-essentials {
  margin: 0 0 12px;
}

.tk-essentials__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tk-essentials__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.tk-essentials__mark {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.tk-essentials__text {
  flex: 1;
  color: var(--tk-text-body);
}

/* Interactive step accordion (operation — full article only) */
.tk-step-acc-wrap {
  margin: 0 0 12px;
  background: var(--tk-surface-muted, #f7f8fa);
  border-radius: var(--tk-radius, 10px);
  padding: 6px 10px 8px;
}

.tk-step-acc__progress {
  margin: 0 0 4px;
  padding: 4px 2px 6px;
  font-size: 13px;
  color: var(--tk-muted);
}

.tk-step-acc {
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid var(--tk-border, #e2e8f0);
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.tk-step-acc:last-child {
  border-bottom: none;
}

.tk-step-acc[open] {
  margin: 4px 0;
  border: 1px solid var(--tk-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.tk-step-acc[open] + .tk-step-acc {
  border-top: none;
}

.tk-step-acc__summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 4px 10px 0;
  cursor: pointer;
  list-style: none;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}

.tk-step-acc__summary::-webkit-details-marker { display: none; }

.tk-step-acc__num {
  flex: 0 0 32px;
  width: 32px;
  padding-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tk-accent);
  text-align: center;
  line-height: 1;
}

.tk-step-acc__head {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
}

.tk-step-acc__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--tk-text);
  line-height: 1.3;
}

.tk-step-acc__hint {
  font-size: 14px;
  color: var(--tk-muted);
  line-height: 1.35;
}

.tk-direction,
strong.tk-direction {
  color: var(--tk-navy);
  font-weight: 700;
  background: #e8f0fa;
  padding: 0 0.2em;
  border-radius: 3px;
}

.tk-direction-wrap {
  white-space: nowrap;
}

.tk-direction-wrap .tk-direction-ico {
  font-style: normal;
}

.tk-slider-lead .tk-direction,
.tk-lead .tk-direction,
.tk-rules .tk-direction,
.tk-step-acc__detail .tk-direction {
  color: var(--tk-navy);
}

.tk-step-acc__chev {
  flex-shrink: 0;
  margin-top: 8px;
  font-size: 20px;
  color: var(--tk-muted);
  line-height: 1;
  transition: transform 0.15s;
}

.tk-step-acc[open] .tk-step-acc__chev {
  transform: rotate(90deg);
  color: var(--tk-accent);
}

.tk-step-acc__body {
  padding: 0 8px 12px 42px;
}

.tk-step-acc__figure {
  margin: 0 0 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--tk-border, #e2e8f0);
}

.tk-step-acc__figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tk-step-acc__figure picture {
  display: block;
}

.tk-step-acc__detail {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--tk-text-body);
}

.tk-step-acc__more {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--tk-text-body);
}

/* Operation slider (preview.html) */
.tk-op-slider {
  padding: 4px 2px 0;
}

.tk-op-slider__lead {
  margin: 0 0 12px;
  padding: 0 8px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--tk-text-body);
}

.tk-op-slider__cta {
  padding: 0 6px 8px;
}

.tk-op-slider__link {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

body.tk-embed-fm .tk-step-acc__figure img {
  max-height: 220px;
  object-fit: cover;
}

.tk-list { padding-left: 1.2rem; }
.tk-list li { margin-bottom: 8px; }

.tk-forbidden__title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--tk-danger-text);
}

.tk-forbidden__list { list-style: none; padding: 0; }

.tk-forbidden__list li {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--tk-danger-text);
  line-height: 1.45;
}

/* Checklist — быстрый справочник */
.tk-checklist { margin: 0; }

.tk-checklist__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 8px;
}

.tk-checklist__heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--tk-muted);
  margin: 0;
  padding: 0;
}

.tk-scan-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: var(--tk-surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--tk-navy);
  cursor: pointer;
}

.tk-scan-btn__icon {
  width: 16px;
  height: 16px;
  background:
    linear-gradient(var(--tk-navy), var(--tk-navy)) center/100% 2px no-repeat,
    linear-gradient(var(--tk-navy), var(--tk-navy)) center/2px 100% no-repeat;
  opacity: 0.85;
}

.tk-checklist__group {
  border: none;
  border-top: 1px solid var(--tk-border);
  margin: 0;
  background: transparent;
}

.tk-checklist__group:first-of-type { border-top: none; }

.tk-checklist__summary {
  padding: 11px 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  color: var(--tk-text);
  background: var(--tk-surface-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tk-checklist__summary::after {
  content: "›";
  font-size: 18px;
  font-weight: 400;
  color: var(--tk-muted);
  transform: rotate(90deg);
  transition: transform 0.15s;
}

.tk-checklist__group[open] .tk-checklist__summary::after {
  transform: rotate(-90deg);
}

.tk-checklist__summary::-webkit-details-marker { display: none; }

.tk-checklist__note {
  padding: 0 14px 8px;
  font-size: 13px;
  color: var(--tk-muted);
  background: var(--tk-surface-muted);
}

.tk-checklist__items { padding: 4px 10px 10px; }

/* Item cards */
.tk-item-card {
  margin-bottom: 6px;
  border-bottom: 1px solid var(--tk-border);
  padding-bottom: 6px;
}

.tk-item-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tk-item-card__row {
  display: flex;
  align-items: stretch;
  min-height: 52px;
  position: relative;
}

.tk-item-card--has-color .tk-item-card__row {
  padding-left: 6px;
}

.tk-item-card__tone {
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 3px;
  background: var(--tk-item-color, var(--tk-accent));
}

.tk-item-card--has-color .tk-item-card__thumb {
  box-shadow: 0 0 0 2px var(--tk-item-color);
  border-color: transparent;
}

.tk-item-card.is-checked .tk-check__label { color: var(--tk-muted); }

.tk-item-card--qty-ok .tk-qty__expected { color: var(--tk-success); }
.tk-item-card--qty-low .tk-qty__expected { color: var(--tk-danger); }

.tk-item-card__check {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  padding: 12px 6px 0 2px;
  cursor: pointer;
}

.tk-item-card__check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tk-item-card__open {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 8px 8px 8px 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tk-item-card__open--static { cursor: default; padding-right: 4px; }

.tk-item-card--has-guide .tk-item-card__open:active { background: var(--tk-surface-muted); }

.tk-item-card__thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: 4px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tk-surface-muted);
  border: 1px solid var(--tk-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk-item-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tk-item-card__thumb-swatch { width: 100%; height: 100%; display: block; }

.tk-item-card__thumb-empty {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--tk-border);
}

.tk-item-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tk-item-card__arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--tk-muted);
  padding-top: 10px;
  line-height: 1;
}

/* Quantity stepper */
.tk-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 8px 6px 40px;
}

.tk-qty__label {
  font-size: 12px;
  color: var(--tk-muted);
  min-width: 42px;
}

.tk-qty__control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--tk-border-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--tk-surface);
}

.tk-qty__btn {
  width: 36px;
  min-height: 36px;
  border: none;
  background: var(--tk-surface-muted);
  color: var(--tk-navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.tk-qty__btn:active { background: var(--tk-border); }

.tk-qty__input {
  width: 44px;
  min-height: 36px;
  border: none;
  border-left: 1px solid var(--tk-border);
  border-right: 1px solid var(--tk-border);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--tk-text);
  background: #fff;
  -moz-appearance: textfield;
}

.tk-qty__input::-webkit-outer-spin-button,
.tk-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tk-qty__unit,
.tk-qty__expected {
  font-size: 12px;
  color: var(--tk-muted);
}

.tk-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 8px;
  border-radius: var(--tk-radius-sm);
  cursor: pointer;
  min-height: 44px;
  background: transparent;
  border: none;
  transition: background 0.12s;
}

.tk-check:hover { background: var(--tk-surface-muted); }

.tk-check.is-checked { background: #f0f6fc; }

.tk-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tk-check__mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid var(--tk-border-strong);
  border-radius: 5px;
  background: #fff;
  position: relative;
}

.tk-check.is-checked .tk-check__mark,
.tk-item-card.is-checked .tk-check__mark {
  background: var(--tk-accent);
  border-color: var(--tk-accent);
}

.tk-check.is-checked .tk-check__mark::after,
.tk-item-card.is-checked .tk-check__mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tk-check__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tk-check__label {
  font-weight: 600;
  font-size: var(--tk-font-base);
  line-height: 1.35;
  color: var(--tk-text);
}

.tk-check.is-checked .tk-check__label { color: var(--tk-muted); }

.tk-item-card.is-checked .tk-check__label { color: var(--tk-muted); }

.tk-swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  border: 1px solid rgba(0,0,0,0.1);
}

.tk-swatch--lg {
  width: 11px;
  height: 11px;
  margin-right: 6px;
}

.tk-color-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tk-item-color, var(--tk-accent));
  background: var(--tk-surface-muted);
  border: 1px solid var(--tk-item-color, var(--tk-border-strong));
  vertical-align: middle;
}

.tk-check__hint {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 13px;
  color: var(--tk-muted);
}

.tk-check__detail {
  display: none;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--tk-text-body);
  background: var(--tk-surface-muted);
  border-radius: 6px;
}

.tk-line { display: block; }

.tk-progress-wrap {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--tk-border);
  background: var(--tk-surface-muted);
}

.tk-progress-bar {
  height: 3px;
  background: var(--tk-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.tk-progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--tk-accent);
  transition: width 0.2s;
}

.tk-progress {
  font-size: 12px;
  font-weight: 500;
  color: var(--tk-muted);
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}

.tk-progress__reset {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--tk-muted);
  background: #fff;
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}

/* CTA */
.tk-cta { margin: 0; }

.tk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--tk-radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}

.tk-btn--primary {
  background: var(--tk-navy);
  color: #fff;
}

.tk-btn--ghost {
  background: var(--tk-surface);
  color: var(--tk-navy);
  border: 1px solid var(--tk-border-strong);
}

.tk-safe { height: var(--tk-pad-bottom-safe); }

.tk-footer {
  font-size: 11px;
  color: var(--tk-muted);
  text-align: center;
  padding: 14px 0;
}

body.tk-view--slider .tk-title { display: none; }

/* Legacy articles */
.tk-article {
  max-width: var(--tk-max-width);
  margin: 0 auto;
  background: var(--tk-surface);
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow-panel);
  overflow: hidden;
}

.tk-hero__figure img,
.tk-step__figure img {
  width: 100%;
  display: block;
}

.tk-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--tk-accent);
}

.tk-hero h1 {
  font-size: 1.25rem;
  color: var(--tk-text);
  margin: 0.25rem 0 0.5rem;
}

.tk-hero__text { padding: 14px var(--tk-pad-x); }

.tk-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--tk-muted);
  padding: 12px var(--tk-pad-x) 8px;
}

.tk-equipment ul {
  padding: 0 var(--tk-pad-x) 12px;
  list-style: none;
}

.tk-step {
  display: flex;
  gap: 12px;
  padding: 12px var(--tk-pad-x);
  border-top: 1px solid var(--tk-border);
}

.tk-step__num {
  width: 26px;
  height: 26px;
  background: var(--tk-navy);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.tk-callout--warning {
  padding: 10px 14px;
  margin: 0;
  font-size: 14px;
  background: var(--tk-danger-bg);
  color: var(--tk-danger-text);
  border-top: 1px solid #fed7d7;
}

.tk-warnings { border-top: 1px solid var(--tk-border); }

/* Safety pictograms (ISO 7010 style) */
.tk-safety-pictograms {
  padding: 10px 12px 4px;
}

.tk-safety-pictograms__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 8px;
}

.tk-safety-pictogram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.tk-safety-pictogram__svg {
  width: 56px;
  height: 56px;
  display: block;
  flex-shrink: 0;
}

.tk-safety-pictogram__label {
  font-size: 11px;
  line-height: 1.3;
  color: var(--tk-text-body);
  font-weight: 600;
}

.tk-embed-sheet .tk-safety-pictograms {
  padding: 4px 8px 2px;
}

.tk-embed-sheet .tk-safety-pictogram__svg {
  width: 48px;
  height: 48px;
}

.tk-embed-sheet .tk-safety-pictogram__label {
  font-size: 10px;
}

.tk-safety-pictograms--panel {
  margin: 6px 10px 10px;
  padding: 12px 14px;
  border: 2px solid var(--tk-border-strong);
  border-radius: var(--tk-radius);
  background: var(--tk-surface);
  box-shadow: var(--tk-shadow);
}

.tk-safety-pictograms--panel .tk-safety-pictograms__list {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}

.tk-embed-sheet .tk-safety-pictograms--panel {
  margin: 4px 8px 8px;
  padding: 10px 12px;
}

.tk-embed-sheet .tk-safety-pictograms--panel .tk-safety-pictogram__svg {
  width: 52px;
  height: 52px;
}

.tk-embed-sheet .tk-rules,
.tk-embed-sheet .tk-forbidden {
  margin-bottom: 6px;
}

.tk-embed-sheet .tk-card {
  padding: 10px 12px;
}

.tk-embed-sheet .tk-list,
.tk-embed-sheet .tk-forbidden__list {
  font-size: 14px;
}

/* Guide screens */
.tk-guide-layer[hidden],
.tk-guide-screen[hidden],
.tk-qr[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.tk-guide-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  max-width: var(--tk-max-width);
  margin: 0 auto;
  background: var(--tk-bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}

.tk-guide-layer[hidden] {
  pointer-events: none !important;
}

body.tk-guide-open .tk-app,
body.tk-guide-open > .tk-footer {
  display: none;
}

.tk-guide-screen {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 var(--tk-pad-x) 12px;
  position: relative;
}

.tk-guide-screen[hidden] {
  display: none !important;
}

.tk-guide-header {
  padding: 8px 0 8px;
  border-bottom: 1px solid var(--tk-border);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.tk-guide-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--tk-accent);
  cursor: pointer;
}

.tk-guide-back__icon { font-size: 16px; }

.tk-guide-body {
  flex: 1;
  padding-bottom: 8px;
  position: relative;
}

.tk-guide-hero {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tk-guide-hero__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tk-guide-hero__thumb {
  flex-shrink: 0;
  width: 160px;
  align-self: stretch;
  min-height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tk-surface-muted);
  border: 1px solid var(--tk-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk-guide-screen--has-color .tk-guide-hero__thumb {
  box-shadow: 0 0 0 2px var(--tk-item-color);
  border-color: transparent;
}

.tk-guide-hero__thumb .tk-item-card__thumb-img,
.tk-guide-hero__thumb .tk-item-card__thumb-swatch {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tk-guide-hero__thumb .tk-item-card__thumb-swatch {
  border-radius: 0;
}

.tk-guide-hero__thumb .tk-item-card__thumb-empty {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.tk-guide-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tk-guide-hero__tag { align-self: flex-start; }

.tk-guide-hero__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tk-text);
  line-height: 1.3;
  margin: 0;
}

.tk-qty--guide {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  align-self: flex-start;
}

.tk-qty--guide .tk-qty__label {
  display: none;
}

.tk-qty--guide .tk-qty__control {
  align-items: stretch;
}

.tk-qty--guide .tk-qty__field {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border-left: 1px solid var(--tk-border-strong);
  border-right: 1px solid var(--tk-border-strong);
  min-width: 52px;
}

.tk-qty--guide .tk-qty__field .tk-qty__input {
  border: none;
  border-radius: 0;
  min-height: 36px;
  padding: 4px 2px;
  text-align: center;
}

.tk-qty--guide .tk-qty__field .tk-qty__expected {
  display: block;
  width: 100%;
  padding: 0 4px 3px;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.tk-guide-copy {
  margin-top: 2px;
}

.tk-guide-copy--has-color {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.tk-guide-copy__tone {
  flex-shrink: 0;
  width: 4px;
  border-radius: 3px;
  background: var(--tk-item-color, var(--tk-accent));
}

.tk-guide-copy__inner {
  flex: 1;
  min-width: 0;
}

.tk-guide-screen--has-color .tk-guide-list li {
  border-left: none;
  padding-left: 0;
  background: transparent;
}

.tk-guide-screen--qty-ok .tk-qty__expected { color: var(--tk-success); }
.tk-guide-screen--qty-low .tk-qty__expected { color: var(--tk-danger); }

.tk-guide-lead {
  font-size: 14px;
  color: var(--tk-muted);
  margin: 0 0 12px;
  line-height: 1.45;
}

.tk-guide-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.tk-guide-list li {
  padding: 8px 0 8px 14px;
  border-left: 3px solid var(--tk-accent);
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.45;
  background: var(--tk-surface);
}

.tk-guide-forbidden { margin-top: 8px; margin-bottom: 0; }

.tk-return-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tk-accent);
  text-decoration: none;
}

/* QR scanner */
.tk-qr {
  position: fixed;
  inset: 0;
  z-index: 300;
  max-width: var(--tk-max-width);
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
}

body:not(.tk-qr-open) .tk-qr[hidden] { display: none; }

.tk-qr__panel {
  width: 100%;
  background: var(--tk-surface);
  border-radius: var(--tk-radius) var(--tk-radius) 0 0;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.tk-qr__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--tk-border);
}

.tk-qr__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  background: var(--tk-surface-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--tk-muted);
}

.tk-qr__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--tk-text);
}

.tk-qr__viewport {
  position: relative;
  margin: 12px 0;
  border-radius: var(--tk-radius-sm);
  overflow: hidden;
  background: #111;
  aspect-ratio: 1 / 1;
  max-height: 52vh;
}

.tk-qr__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tk-qr__frame {
  position: absolute;
  inset: 18%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  pointer-events: none;
}

.tk-qr__hint,
.tk-qr__status {
  font-size: 13px;
  color: var(--tk-muted);
  line-height: 1.4;
  margin: 0 0 8px;
}

.tk-qr__status { color: var(--tk-accent); min-height: 1.2em; }

.tk-qr__fallback { margin-top: 4px; }
