/* Kryphe · /tokenomics. Extends css/style.css; uses its :root tokens only. */

:root {
  --subnav-h: 48px;
  /* data colours: brand palette plus one sage step from the teal family */
  --d-cream: var(--cream);
  --d-amber: var(--amber);
  --d-tan: var(--tan);
  --d-sage: #8FB0A6;
  --d-ops: #5E7E7A;
}
html { scroll-padding-top: calc(var(--nav-h) + var(--subnav-h) + 16px); }
.tk-dim { color: var(--ink-muted); }

/* current page in the main nav */
.nav__links a[aria-current="page"] { color: var(--ink); }
@media (min-width: 961px) {
  .nav__links a[aria-current="page"]::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: -2px; height: 1px; background: var(--cream);
  }
}

/* ---------- sub-nav ---------- */
.tk-subnav {
  position: sticky; top: var(--nav-h); z-index: calc(var(--z-sticky) - 1);
  background: var(--night-deep); border-bottom: 1px solid var(--line);
}
.tk-subnav__inner { display: flex; align-items: center; gap: 20px; height: var(--subnav-h); }
.tk-subnav__label { color: var(--ink-muted); flex: none; }
.tk-subnav__list {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0;
  margin-inline: -6px; padding-inline: 6px;
}
.tk-subnav__list::-webkit-scrollbar { display: none; }
.tk-subnav__list a {
  display: block; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  color: var(--ink-muted); text-decoration: none; font-size: 0.86rem; font-weight: 500;
  border: 1px solid transparent; transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.tk-subnav__list a:hover { color: var(--ink); }
.tk-subnav__list a.is-current { color: var(--ink); border-color: var(--line-strong); background: var(--cream-wash); }

/* ---------- hero ---------- */
.tk-hero .hero__art img { object-position: 60% 55%; }
.tk-hero .hero__title { font-size: clamp(3.2rem, 1.5rem + 5.2vw, 5.6rem); }
.tk-hero .hero__sub { max-width: 36em; }

.tk-card { padding: 18px 20px 20px; }
.tk-card__head { position: relative; display: flex; align-items: center; gap: 10px; }
.tk-card__head img { width: 22px; height: 22px; flex: none; }
.tk-card__title { color: var(--ink); }
.tk-card__head .tag { margin-left: auto; }
.tk-card__lede { position: relative; margin-top: 16px; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.tk-card__lede strong { font-weight: 600; }

.tk-lamps {
  position: relative; margin-top: 18px;
  display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 6px;
  padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--night-deep);
}
.tk-lamp {
  aspect-ratio: 1 / 1.6; border-radius: 2px; background: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 180, 90, 0.12), 0 0 14px -2px rgba(242, 180, 90, 0.55);
  transition: background-color .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.tk-lamp.is-spent { background: var(--teal); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tk-lamps__key { position: relative; margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--ink-muted); }
.tk-lamps__per { margin-left: auto; }
.tk-key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; vertical-align: -1px; }
.tk-key + .tk-key, .tk-lamps__key .tk-key--spent { margin-left: 8px; }
.tk-key--lit { background: var(--amber); }
.tk-key--spent { background: var(--teal); box-shadow: inset 0 0 0 1px var(--line-strong); }

.tk-card__rows { position: relative; margin-top: 8px; }
.tk-card__rows > div:last-child { border-bottom: 0; }
.tk-card__rows dd { font-variant-numeric: tabular-nums; font-weight: 500; }

/* range + stepper */
.tk-range { position: relative; margin-top: 10px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(13, 33, 37, 0.6); }
.tk-range__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tk-range__top label { color: var(--ink); font-weight: 500; font-size: 0.92rem; }
.tk-range__top output { color: var(--ink-muted); }
.tk-range__row { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.tk-step {
  flex: none; width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 1.1rem; line-height: 1;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.tk-step:hover { border-color: var(--cream); }
.tk-step:active { background: var(--cream-wash); }

input[type="range"] {
  --fill: 50%;
  -webkit-appearance: none; appearance: none;
  flex: 1; min-width: 0; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--cream) 0 var(--fill), var(--line-strong) var(--fill) 100%);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--cream); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%;
  background: var(--cream); border: 4px solid var(--night); box-shadow: 0 0 0 1px var(--cream);
}
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--cream); border: 4px solid var(--night); box-shadow: 0 0 0 1px var(--cream); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--cream), 0 0 0 5px rgba(233, 216, 170, 0.35); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--cream), 0 0 0 5px rgba(233, 216, 170, 0.35); }

.tk-card__cap { position: relative; margin-top: 14px; font-size: 0.9rem; color: var(--ink-body); line-height: 1.5; }

/* ---------- contract strip ---------- */
.tk-strip .strip__inner { gap: 14px clamp(16px, 3vw, 36px); }
.tk-strip .strip__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.tk-strip__addr { font-size: 0.76rem; }
.tk-strip__act { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* ---------- roles ---------- */
.tk-flow {
  margin: clamp(36px, 4vw, 52px) 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden;
}
.tk-flow li {
  position: relative; padding: 16px 20px 16px 22px; color: var(--ink); font-size: 0.95rem; line-height: 1.4;
  display: flex; flex-direction: column; gap: 4px;
}
.tk-flow li + li { border-left: 1px solid var(--line); }
.tk-flow li + li::before {
  content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong);
  background: var(--night); transform: rotate(45deg);
}
.tk-flow .mono { color: var(--tan); }
.tk-flow li:last-child { background: var(--cream-wash); }

.tk-roles__grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-role { padding: 4px clamp(20px, 3vw, 40px) 0; }
.tk-role:first-child { padding-left: 0; }
.tk-role:last-child { padding-right: 0; }
.tk-role + .tk-role { border-left: 1px solid var(--line); }
.tk-role__g { font-family: var(--f-display); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--tan); }
.tk-role h3 { margin-top: 18px; font-family: var(--f-display); font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem); line-height: 1.05; }
.tk-role__line { margin-top: 8px; color: var(--ink); font-weight: 500; }
.tk-role__line + p { margin-top: 12px; max-width: 32em; }
.tk-role__facts { margin: 22px 0 0; border-top: 1px solid var(--line); }
.tk-role__facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.tk-role__facts dt { color: var(--ink-muted); }
.tk-role__facts dd { margin: 0; color: var(--ink); text-align: right; }

/* ---------- holder credits ---------- */
.tk-credits { background: linear-gradient(180deg, var(--night) 0%, var(--teal) 16%, var(--teal) 84%, var(--night) 100%); }
.tk-credits__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.tk-credits__p { margin-top: 18px; max-width: 36em; }
.tk-caveat { margin-top: 28px; background: rgba(9, 23, 25, 0.5); border-color: var(--line-strong); }
.tk-caveat .note__title { display: flex; align-items: center; gap: 10px; }
.tk-caveat .note__title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 180, 90, 0.14); flex: none; }

.tk-calc {
  margin: 0; background: var(--night); border: 1px solid var(--line-strong); border-radius: 20px;
  padding: clamp(20px, 3vw, 30px); box-shadow: 0 40px 90px -50px #000;
  position: sticky; top: calc(var(--nav-h) + var(--subnav-h) + 24px);
}
.tk-calc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.tk-calc__title { color: var(--ink); }
.tk-select select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  font: inherit; font-size: 0.86rem; font-weight: 500; color: var(--ink);
  padding: 7px 34px 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--night-raise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23B8986A' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 13px center;
}
.tk-select select:hover { border-color: var(--cream); }
.tk-field { margin-top: 18px; display: grid; gap: 8px; }
.tk-field > label { color: var(--ink); font-weight: 500; font-size: 0.92rem; }
.tk-field input[type="number"] {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--night-deep); color: var(--ink);
  font-family: var(--f-mono); font-size: 0.95rem; font-variant-numeric: tabular-nums;
  transition: border-color .3s var(--ease-out);
}
.tk-field input[type="number"]:hover { border-color: rgba(233, 216, 170, 0.4); }
.tk-field input[type="number"]:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; border-color: var(--cream); border-radius: 10px; }
.tk-field .tk-range__top { margin-bottom: -4px; }
.tk-field__hint { font-size: 0.84rem; color: var(--ink-muted); line-height: 1.5; }

.tk-calc__out { margin: 22px 0 0; border-top: 1px solid var(--line-strong); }
.tk-calc__out > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 0.93rem; }
.tk-calc__out dt { color: var(--ink-muted); }
.tk-calc__out dd { margin: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.tk-calc__out .tk-calc__result { border-bottom: 0; padding-top: 16px; }
.tk-calc__result dt { color: var(--ink); font-weight: 600; }
.tk-calc__result dd { font-family: var(--f-display); font-size: 2rem; line-height: 1; font-weight: 600; }
.tk-calc__result dd .tk-dim { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 400; }
.tk-calc__note { margin-top: 10px; font-size: 0.88rem; color: var(--ink-body); min-height: 3em; }

/* ---------- settlement ---------- */
.tk-tabs__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tk-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tk-panel:focus-visible { outline-offset: -4px; border-radius: 0 0 20px 20px; }
.tk-panel__col { padding: clamp(22px, 3.4vw, 40px); min-width: 0; }
.tk-panel__col + .tk-panel__col { border-left: 1px solid var(--line); background: rgba(9, 23, 25, 0.35); }
.tk-h { font-family: var(--f-display); font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem); line-height: 1.1; font-weight: 500; }
.tk-h--sub { margin-top: 30px; }

.tk-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 0.93rem; font-variant-numeric: tabular-nums; }
.tk-table th, .tk-table td { padding: 11px 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.tk-table th { color: var(--ink); font-weight: 500; }
.tk-table td { text-align: right; color: var(--ink); white-space: nowrap; padding-left: 14px; }
.tk-table thead th { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 400; color: var(--ink-muted); padding-top: 0; border-bottom: 1px solid var(--line-strong); }
.tk-table thead th:not(:first-child) { text-align: right; }
.tk-table__sub { display: block; font-family: var(--f-mono); font-size: 0.7rem; font-weight: 400; color: var(--ink-muted); margin-top: 2px; }
.tk-table .tk-row--muted th, .tk-table .tk-row--muted td { color: var(--ink-body); }
.tk-table .tk-row--total th, .tk-table .tk-row--total td { border-bottom: 0; border-top: 1px solid var(--line-strong); padding-top: 14px; font-weight: 600; }
.tk-table .tk-row--total td:last-child { font-family: var(--f-display); font-size: 1.5rem; line-height: 1; }
.tk-table .tk-row--total.is-neg td { color: var(--amber); }
.tk-table tr.is-off th, .tk-table tr.is-off td { color: var(--ink-muted); }
.tk-table tr.is-held td { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--tan); }

.tk-bar { position: relative; margin-top: 20px; height: 14px; display: flex; gap: 2px; border-radius: 4px; }
.tk-bar__seg { flex-basis: 0; min-width: 2px; border-radius: 3px; transition: flex-grow .7s var(--ease-expo); }
.tk-bar__seg--gas { background: var(--d-tan); }
.tk-bar__seg--ops { background: var(--d-ops); }
.tk-bar__seg--surplus { background: var(--d-cream); }
.tk-bar__short {
  position: absolute; top: -3px; bottom: -3px; right: 0; border-radius: 3px;
  border: 1px dashed var(--amber);
  background: repeating-linear-gradient(135deg, rgba(242, 180, 90, 0.35) 0 3px, transparent 3px 7px);
}
.tk-bar__rev { position: absolute; top: -8px; bottom: -8px; width: 1px; background: var(--cream); }
.tk-bar__rev .mono { position: absolute; top: 100%; right: 0; margin-top: 4px; white-space: nowrap; color: var(--ink); font-size: 0.68rem; }
.tk-bar__key { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--ink-muted); }
.tk-bar__key .tk-key { margin-left: 8px; }
.tk-bar__key .tk-key:first-child { margin-left: 0; }
.tk-key--gas { background: var(--d-tan); }
.tk-key--ops { background: var(--d-ops); }
.tk-key--surplus { background: var(--d-cream); }
.tk-key--deficit { border: 1px dashed var(--amber); background: repeating-linear-gradient(135deg, rgba(242, 180, 90, 0.5) 0 2px, transparent 2px 4px); }
.tk-panel__note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--ink); }

.tk-gate { margin-top: 22px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--night); }
.tk-gate .switch { align-items: flex-start; text-align: left; padding: 2px; }
.tk-gate .switch__track { flex: none; margin-top: 1px; }
.tk-gate .switch__label { line-height: 1.4; }
.tk-gate__list { margin-top: 14px; }
.tk-gate__list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px;
  padding: 9px 0; border-top: 1px dashed var(--line); font-size: 0.86rem; line-height: 1.45; color: var(--ink-body);
}
.tk-gate__mark { width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 1px dashed var(--tan); transition: background-color .35s var(--ease-out), border-color .35s; }
.tk-gate__state { color: var(--ink-muted); white-space: nowrap; padding-top: 2px; }
.tk-gate__list li.is-met { color: var(--ink); }
.tk-gate__list li.is-met .tk-gate__mark { border: 0; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%230D2125' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
.tk-gate__list li.is-met .tk-gate__state { color: var(--cream); }

/* ---------- supply ---------- */
.tk-supply { border-top: 1px solid var(--line); }
.tk-supply__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.tk-supply__art {
  margin: 36px 0 0; aspect-ratio: 4 / 3.4; border-radius: 20px; border: 1px solid var(--line);
  display: grid; align-items: end; padding: clamp(16px, 2.4vw, 26px);
}
.tk-supply__art > img { position: absolute; inset: 0; z-index: -1; object-position: 50% 40%; }
.tk-supply__facts { position: relative; z-index: 2; margin: 0; width: min(100%, 360px); }
.tk-supply__facts > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.tk-supply__facts > div:last-child { border-bottom: 0; }
.tk-supply__facts dt { color: var(--ink-muted); }
.tk-supply__facts dd { margin: 0; }

.tk-supply__intro { margin-top: 12px; max-width: 38em; }
.tk-stack { margin-top: 26px; display: flex; gap: 3px; height: 46px; }
.tk-stack__seg {
  flex-basis: 0; min-width: 0; border-radius: 6px; display: flex; align-items: center; padding-inline: 10px;
  color: var(--night); transition: opacity .35s var(--ease-out);
}
.tk-stack__seg .mono { font-weight: 500; }
.tk-stack[data-active] .tk-stack__seg:not(.is-active) { opacity: .35; }
.tk-c0 { background: var(--d-cream); }
.tk-c1 { background: var(--d-amber); }
.tk-c2 { background: var(--d-tan); }
.tk-c3 { background: var(--d-sage); }

.tk-buckets { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.tk-buckets li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; row-gap: 4px; align-items: baseline;
  padding: 16px 4px; border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease-out);
}
.tk-buckets li:hover { background: var(--cream-wash); }
.tk-bucket__sw { width: 10px; height: 10px; border-radius: 3px; transform: translateY(-1px); }
.tk-bucket__name { color: var(--ink); font-weight: 600; }
.tk-bucket__share { color: var(--ink); font-size: 0.85rem; }
.tk-bucket__rule { grid-column: 2 / -1; font-size: 0.93rem; max-width: 40em; }

/* ---------- verify + launch ---------- */
.tk-verify { border-top: 1px solid var(--line); }
.tk-verify__grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.tk-checks { border-top: 1px solid var(--line-strong); }
.tk-checks li { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tk-checks p { font-size: 0.93rem; color: var(--ink-body); }
.tk-checks strong { display: block; color: var(--ink); font-weight: 500; font-size: 1rem; margin-bottom: 2px; }
.tk-checks .tag { flex: none; margin-top: 3px; }

.tk-launch { padding: clamp(22px, 3vw, 32px); border-radius: 20px; border: 1px solid var(--line-strong); background: var(--night-raise); }
.tk-steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; }
.tk-steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.tk-steps li::before {
  content: counter(step); grid-row: 1 / span 2;
  font-family: var(--f-display); font-style: italic; font-size: 2.4rem; line-height: 0.9; color: var(--cream);
}
.tk-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 0.62rem; top: 58px; bottom: -6px; width: 1px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 3px, transparent 3px 7px);
}
.tk-steps h4 { margin: 0; color: var(--ink); font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.tk-steps p { margin-top: 4px; font-size: 0.93rem; }

.tk-credits__risk { margin-top: 18px; color: var(--ink-muted); font-size: 0.86rem; line-height: 1.55; max-width: 62ch; }
.tk-disclaimer { margin-top: clamp(40px, 5vw, 64px); padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 0.78rem; }

.tk-arrow-r { display: inline-block; }
.btn:hover .tk-arrow-r { transform: translateX(3px); }

.tk-noscript { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-toast); background: var(--cream); color: var(--night); padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .tk-lamp, .tk-bar__seg, .tk-stack__seg { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .tk-credits__grid, .tk-supply__grid, .tk-verify__grid { grid-template-columns: 1fr; }
  .tk-calc { position: relative; top: 0; }
  .tk-panel { grid-template-columns: 1fr; }
  .tk-panel__col + .tk-panel__col { border-left: 0; border-top: 1px solid var(--line); }
  .tk-supply__art { aspect-ratio: 16 / 10; max-width: 720px; }
  .tk-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-flow li:nth-child(3) { border-left: 0; }
  .tk-flow li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tk-flow li:nth-child(3)::before { display: none; }
}
@media (max-width: 860px) {
  .tk-roles__grid { grid-template-columns: 1fr; }
  .tk-role, .tk-role:first-child, .tk-role:last-child { padding: 28px 0 0; }
  .tk-role:first-child { padding-top: 0; }
  .tk-role + .tk-role { border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
  .tk-role h3 { margin-top: 12px; }
}
@media (max-width: 640px) {
  :root { --subnav-h: 44px; }
  .tk-subnav__label { display: none; }
  .tk-subnav__list { gap: 0; mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .tk-subnav__list a { padding: 5px 8px; font-size: 0.8rem; }
  .tk-hero .hero__title { font-size: clamp(2.9rem, 13.6vw, 3.8rem); }
  .tk-card { padding: 14px 12px 16px; }
  .tk-lamps { gap: 3px; padding: 10px; }
  .tk-lamps__per { margin-left: 0; width: 100%; }
  .tk-strip__act { margin-left: 0; width: 100%; }
  .tk-strip__addr { width: 100%; }
  .tk-flow { grid-template-columns: 1fr; }
  .tk-flow li + li { border-left: 0; border-top: 1px solid var(--line); }
  .tk-flow li + li::before { display: block; left: 22px; top: -6px; margin-top: 0; transform: rotate(135deg); }
  .tk-flow li:nth-child(3)::before { display: block; }
  .tk-tabs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs__list.tk-tabs__list button + button { border-left: 0; }
  .tabs__list.tk-tabs__list button:nth-child(even) { border-left: 1px solid var(--line); }
  .tabs__list.tk-tabs__list button:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tk-panel__col { padding: 20px 16px 24px; }
  .tk-table { font-size: 0.88rem; }
  .tk-gate { padding: 14px 12px; }
  .tk-gate__list li { grid-template-columns: auto minmax(0, 1fr); }
  .tk-gate__state { grid-column: 2; padding-top: 0; }
  .tk-stack { height: 40px; }
  .tk-stack__seg { padding-inline: 6px; }
  .tk-stack__seg .mono { font-size: 0.66rem; }
  .tk-checks li { flex-direction: column; gap: 8px; }
  .tk-checks .tag { margin-top: 0; }
  .tk-launch { padding: 18px 16px; }
}
