/* =========================================================
   Ticketing — product page
   Self-contained by design: every page keeps its own stylesheet.
   The product-page foundation (type, sections, buttons, the
   product-UI kit, FAQ) is copied from the other product pages
   so they read as one system; blocks only this page uses are
   prefixed .tk-.
   Loaded after /index.css (palette, fonts, nav, footer, --u).
     --u  page layout and type
     --k  the inside of a product screen (= --u on desktop,
          fixed below 1180px)
   ========================================================= */

.cos {
  --k: var(--u);
  --pad: calc(67 * var(--u));

  --ui-line:  #eaeaea;
  --ui-soft:  #f6f6f3;
  --ui-text:  #2a2a2a;
  --ui-muted: #6d6d6d;
  --ui-faint: #9a9a9a;
  --lime-tint: #effcb5;
  --lime-ink:  #3f5a00;
  --lime-wash: #fbfff0;
  --amber:  #fff1d2;  --amber-ink:  #8a5600;
  --rose:   #ffe8e4;  --rose-ink:   #b23a2c;
  --cyan:   #ddf4fa;  --cyan-ink:   #0e7490;
  --violet: #efe6fa;  --violet-ink: #6b3fa0;
  --wa:     #e3f6e8;  --wa-ink:     #1e7f45;
  --ui-shadow: 0 1px 2px rgba(17, 19, 24, .04), 0 32px 64px -40px rgba(17, 19, 24, .26);
  --ease: cubic-bezier(.2, .8, .2, 1);

  display: block;
}

.cos section[id] { scroll-margin-top: calc(40 * var(--u)); }
.cos figure { margin: 0; }      /* UA default is 1em 40px; figures needing a margin use figure.<class> */
.cos .i {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.cos .btn .i { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.cos .sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================
   TYPE
   ========================================================= */
.cos-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--u));
  margin: 0 0 calc(24 * var(--u));
  font-size: calc(15 * var(--u));
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lime-ink);
}
.cos-eyebrow::before {
  content: "";
  width: calc(9 * var(--u));
  height: calc(9 * var(--u));
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 calc(3 * var(--u)) var(--lime-tint);
}

.cos-h1, .cos-h2, .cos-h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
}
.cos-h1 { font-size: calc(80 * var(--u)); line-height: calc(86 * var(--u)); letter-spacing: -0.04em; }
.cos-h2 { font-size: calc(56 * var(--u)); line-height: calc(64 * var(--u)); letter-spacing: -0.035em; }
.cos-h3 { font-size: calc(36 * var(--u)); line-height: calc(44 * var(--u)); letter-spacing: -0.03em; }
.cos .dim { color: #8c8c8c; }
.cos-body {
  margin: calc(14 * var(--u)) 0 0;
  font-size: calc(18 * var(--u));
  line-height: calc(29 * var(--u));
  color: var(--muted);
}

.cos-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(20 * var(--u)) calc(20 * var(--u));
  margin-top: calc(36 * var(--u));
}
.cos-link {
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--u));
  padding-bottom: calc(3 * var(--u));
  border-bottom: 1px solid currentColor;
  font-size: calc(19 * var(--u));
  font-weight: 500;
  color: var(--ink);
}
.cos-link .i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); transition: transform .2s var(--ease); }
.cos-link:hover .i { transform: translateX(3px); }
.os-link { margin-top: calc(22 * var(--u)); }

/* outline button — on the brand sheet; lives here until a second page needs it */
.btn--line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #d9d9d9;
}
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* "Start free. Pay as you use." */
.os-note {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--u));
  margin: calc(22 * var(--u)) 0 0;
  font-size: calc(16 * var(--u));
  font-weight: 500;
  color: var(--muted);
}
.os-note .i {
  width: calc(18 * var(--u)); height: calc(18 * var(--u));
  padding: calc(3 * var(--u));
  border-radius: 50%;
  background: var(--lime-tint);
  color: var(--lime-ink);
  stroke-width: 2.4;
}

/* a closing statement under a visual */
.os-say {
  max-width: calc(900 * var(--u));
  margin: calc(88 * var(--u)) 0 0;
  font-family: var(--font-head);
  font-size: calc(36 * var(--u));
  line-height: calc(44 * var(--u));
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.os-say--center { margin-left: auto; margin-right: auto; text-align: center; }

/* heading left, copy right — the opener every section uses */
.sec-head,
.os-keyline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(470 * var(--u));
  column-gap: calc(80 * var(--u));
  align-items: end;
}
.sec-head .cos-h2 { max-width: calc(820 * var(--u)); }
.sec-head__copy > :first-child { margin-top: 0; }

/* =========================================================
   SECTIONS
   ========================================================= */
.cos-sec {
  position: relative;
  padding: calc(136 * var(--u)) var(--pad);
  border-top: 1px solid var(--rule);
}
figure.os-figure { margin-top: calc(88 * var(--u)); }


/* ---------- 01 hero ---------- */
.cos-hero {
  position: relative;
  padding: calc(104 * var(--u)) var(--pad) calc(128 * var(--u));
}
.cos-hero__grid {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(620 * var(--u));
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: calc(100% / 11) calc(620 * var(--u) / 5);
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.cos-hero__intro {
  max-width: calc(760 * var(--u));
  margin: calc(34 * var(--u)) 0 0;
  font-size: calc(24 * var(--u));
  line-height: calc(34 * var(--u));
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cos-hero .cos-cta { margin-top: calc(44 * var(--u)); }

/* ---------- small labels row ---------- */

/* ---------- 13 FAQ ---------- */
.os-faq {
  display: grid;
  grid-template-columns: calc(440 * var(--u)) minmax(0, 1fr);
  column-gap: calc(80 * var(--u));
  align-items: start;
}
.os-faq__intro { position: sticky; top: calc(56 * var(--u)); }
.os-faq__intro .cos-body { margin-top: calc(22 * var(--u)); }
.os-faq__intro .os-link { margin-top: calc(10 * var(--u)); }
.os-qa { border-bottom: 1px solid var(--rule); }
.os-qa:first-child { border-top: 1px solid var(--rule); }
.os-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(24 * var(--u));
  padding: calc(26 * var(--u)) 0;
  font-family: var(--font-head);
  font-size: calc(22 * var(--u));
  line-height: calc(30 * var(--u));
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.os-qa summary::-webkit-details-marker { display: none; }
.os-qa summary:focus-visible { outline: 2px solid var(--lime-ico); outline-offset: 4px; border-radius: 4px; }
.os-qa__icon {
  position: relative;
  flex: none;
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
  border: 1px solid var(--rule);
  border-radius: 50%;
  transition: background-color .2s ease, border-color .2s ease, transform .3s var(--ease);
}
.os-qa__icon::before,
.os-qa__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: calc(12 * var(--u));
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.os-qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.os-qa summary:hover .os-qa__icon { border-color: var(--lime-ico); }
.os-qa[open] .os-qa__icon { transform: rotate(45deg); background: var(--lime); border-color: var(--lime); }
.os-qa__a p {
  max-width: calc(760 * var(--u));
  margin: 0;
  padding: 0 calc(60 * var(--u)) calc(28 * var(--u)) 0;
  font-size: calc(18 * var(--u));
  line-height: calc(29 * var(--u));
  color: var(--muted);
}

/* ---------- 14 final call to action ---------- */
.cos-final {
  position: relative;
  isolation: isolate;
  padding: calc(152 * var(--u)) var(--pad) calc(160 * var(--u));
  border-top: 1px solid var(--rule);
  text-align: center;
}
.cos-final__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: calc(100% / 11) calc(100% / 5);
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(58% 70% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(58% 70% at 50% 50%, #000, transparent);
}
.cos-final .cos-h2 { font-size: calc(68 * var(--u)); line-height: calc(74 * var(--u)); }
.cos-final .cos-body { max-width: calc(720 * var(--u)); margin: calc(20 * var(--u)) auto 0; font-size: calc(21 * var(--u)); }
.cos-final .cos-cta { justify-content: center; margin-top: calc(44 * var(--u)); }

/* =========================================================
   PRODUCT UI — shared pieces. Every size inside a screen is --k.
   ========================================================= */
.app {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: calc(18 * var(--k));
  background: #fff;
  box-shadow: var(--ui-shadow);
  font-family: var(--font-body);
  font-size: calc(14 * var(--k));
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ui-text);
  text-align: left;
}
.app p { margin: 0; }
.app__top {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--k));
  height: calc(58 * var(--k));
  padding: 0 calc(18 * var(--k));
  border-bottom: 1px solid var(--ui-line);
}
.app__top--slim { height: calc(52 * var(--k)); }
.app__crumb { display: inline-flex; align-items: center; gap: calc(6 * var(--k)); font-size: calc(13 * var(--k)); color: var(--ui-muted); white-space: nowrap; }
.app__crumb b { color: var(--ink); font-weight: 600; }
.app__crumb .i { width: calc(13 * var(--k)); height: calc(13 * var(--k)); color: var(--ui-faint); }

.av {
  display: inline-grid; place-items: center; flex: none;
  width: calc(28 * var(--k)); height: calc(28 * var(--k));
  border-radius: 50%; background: #eeeeea;
  font-size: calc(10.5 * var(--k)); font-weight: 700; letter-spacing: 0; color: var(--ui-text);
}
.av--lime   { background: var(--lime-tint); color: var(--lime-ink); }
.av--cyan   { background: var(--cyan);      color: var(--cyan-ink); }
.av--violet { background: var(--violet);    color: var(--violet-ink); }

.tag {
  display: inline-flex; align-items: center; gap: calc(5 * var(--k));
  height: calc(24 * var(--k)); padding: 0 calc(9 * var(--k));
  border-radius: 999px; background: #f1f1ed;
  font-size: calc(12 * var(--k)); font-weight: 500; color: var(--ui-text); white-space: nowrap;
}
.tag .i { width: calc(12 * var(--k)); height: calc(12 * var(--k)); }
.tag--lime  { background: var(--lime-tint); color: var(--lime-ink); }
.tag--amber { background: var(--amber);     color: var(--amber-ink); }

.chip {
  display: inline-flex; align-items: center; gap: calc(6 * var(--k));
  height: calc(30 * var(--k)); padding: 0 calc(10 * var(--k));
  border: 1px solid var(--ui-line); border-radius: calc(8 * var(--k));
  background: #fff; font-size: calc(12.5 * var(--k)); color: var(--ui-text); white-space: nowrap;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.chip .i { width: calc(14 * var(--k)); height: calc(14 * var(--k)); color: var(--ui-faint); }
.chip.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip.is-on .i { color: var(--lime); }

.mini-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(7 * var(--k));
  height: calc(34 * var(--k)); padding: 0 calc(13 * var(--k));
  border-radius: calc(9 * var(--k)); background: var(--ink); color: var(--lime);
  font-size: calc(13 * var(--k)); font-weight: 500; white-space: nowrap;
}
.mini-btn .i { width: calc(15 * var(--k)); height: calc(15 * var(--k)); }
.mini-btn--lime { background: var(--lime); color: var(--ink); }

.ch {
  display: inline-grid; place-items: center; flex: none;
  width: calc(26 * var(--k)); height: calc(26 * var(--k));
  border-radius: calc(7 * var(--k)); background: #f2f2ef; color: var(--ui-muted);
}
.ch .i { width: calc(14 * var(--k)); height: calc(14 * var(--k)); }
.muted { color: var(--ui-muted); }
.proc__bar { display: block; height: calc(6 * var(--k)); border-radius: 99px; background: #eeeeea; overflow: hidden; }
.proc__bar i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--lime-ico); }

/* chat */

/* chat column, composer and highlighted numbers (from the Customer OS screens) */
.os-compose {
  display: flex; align-items: center; justify-content: space-between;
  height: calc(46 * var(--k)); margin: 0 calc(18 * var(--k)) calc(18 * var(--k)); padding: 0 calc(6 * var(--k)) 0 calc(14 * var(--k));
  border: 1px solid var(--ui-line); border-radius: calc(12 * var(--k)); background: #fff;
  font-size: calc(13 * var(--k)); color: var(--ui-faint);
}
.os-compose .mini-btn { width: calc(34 * var(--k)); padding: 0; }

.av--lg { width: calc(40 * var(--k)); height: calc(40 * var(--k)); font-size: calc(13 * var(--k)); }


/* =========================================================
   TICKETING — page blocks
   One reading order everywhere: eyebrow → heading → copy →
   actions, stacked. Each section uses its own composition;
   every visual is a real support screen or a real customer
   moment. Lime marks the selected ticket, the resolved state
   and the one action that matters.
   ========================================================= */
.tk .sec-head { display: block; }
.tk .sec-head .cos-h2 { max-width: calc(980 * var(--u)); }
.tk .sec-head__copy { max-width: calc(780 * var(--u)); margin-top: calc(22 * var(--u)); }
.tk-link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime-ico); text-underline-offset: 3px; }
.tk-fine { margin: calc(28 * var(--u)) 0 0; font-size: calc(14 * var(--u)); line-height: calc(22 * var(--u)); color: var(--muted); }
.tk-fine--c { text-align: center; }
html:not(.cos-js) .tk [data-until] { display: none; }
.cos-js .tk [data-at]:not(.is-shown),
.cos-js .tk [data-until]:not(.is-shown) { display: none; }

/* kit additions */
.ui-label { display: flex; align-items: center; gap: calc(8 * var(--k)); margin-bottom: calc(12 * var(--k)) !important; font-size: calc(11 * var(--k)); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ui-faint); }
.ui-label .i { width: calc(13 * var(--k)); height: calc(13 * var(--k)); color: var(--lime-ink); }
.tk-tabs { display: inline-flex; padding: calc(3 * var(--k)); border-radius: calc(9 * var(--k)); background: #f2f2ef; margin-left: calc(20 * var(--k)); }
.tk-tabs > * { padding: calc(4 * var(--k)) calc(10 * var(--k)); border-radius: calc(7 * var(--k)); font-size: calc(12 * var(--k)); font-weight: 500; color: var(--ui-muted); }
.tk-tabs b { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.tk-bar { display: block; flex: 1; height: calc(8 * var(--k)); border-radius: 99px; background: #eeeeea; overflow: hidden; }
.tk-bar i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--lime-ico); transform-origin: left; }
.tk-finding { display: flex; align-items: flex-start; gap: calc(10 * var(--k)); margin-top: calc(18 * var(--k)) !important; padding: calc(14 * var(--k)) calc(16 * var(--k)); border-radius: calc(12 * var(--k)); background: var(--lime-wash); font-family: var(--font-head); font-size: calc(16 * var(--k)); line-height: 1.4; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.tk-finding .i { width: calc(18 * var(--k)); height: calc(18 * var(--k)); margin-top: calc(2 * var(--k)); color: var(--lime-ink); }

/* status pills: always text, never colour alone */
.tk-st { display: inline-flex; align-items: center; gap: calc(5 * var(--k)); height: calc(22 * var(--k)); padding: 0 calc(8 * var(--k)); border-radius: 999px; background: #f1f1ed; font-size: calc(11.5 * var(--k)); font-weight: 600; color: var(--ui-muted); white-space: nowrap; }
.tk-st::before { content: ""; width: calc(6 * var(--k)); height: calc(6 * var(--k)); border-radius: 50%; background: currentColor; }
.tk-st .i { width: calc(12 * var(--k)); height: calc(12 * var(--k)); stroke-width: 2.4; }
.tk-st--done::before, .tk-st--due::before, .tk-st--over::before { display: none; }
.tk-st--new  { background: var(--cyan);      color: var(--cyan-ink); }
.tk-st--asg  { background: var(--violet);    color: var(--violet-ink); }
.tk-st--prog { background: var(--amber);     color: var(--amber-ink); }
.tk-st--done { background: var(--lime-tint); color: var(--lime-ink); }
.tk-st--due  { background: var(--amber);     color: var(--amber-ink); }
.tk-st--over { background: var(--rose);      color: var(--rose-ink); }
.tk-pr { display: inline-flex; align-items: center; gap: calc(4 * var(--k)); font-size: calc(11.5 * var(--k)); font-weight: 600; color: var(--ui-muted); white-space: nowrap; }
.tk-pr .i { width: calc(12 * var(--k)); height: calc(12 * var(--k)); }
.tk-pr--high { color: var(--rose-ink); }
.tk-pr--med  { color: var(--amber-ink); }

/* conversation pieces (inbox, workspace, collaboration) */
.tk-msg { margin: 0; max-width: 88%; padding: calc(10 * var(--k)) calc(12 * var(--k)); border-radius: calc(12 * var(--k)); font-size: calc(13 * var(--k)); line-height: 1.45; color: var(--ink); }
.tk-msg b { display: block; margin-bottom: calc(3 * var(--k)); font-size: calc(11.5 * var(--k)); font-weight: 600; color: var(--ui-muted); }
.tk-msg em { display: block; margin-top: calc(4 * var(--k)); font-style: normal; font-size: calc(10.5 * var(--k)); color: var(--ui-faint); }
.tk-msg--in  { justify-self: start; background: #f4f4f0; border-bottom-left-radius: calc(4 * var(--k)); }
.tk-msg--out { justify-self: end; border: 1px solid var(--ui-line); background: #fff; border-bottom-right-radius: calc(4 * var(--k)); }
.tk-sys { justify-self: center; display: inline-flex; align-items: center; gap: calc(6 * var(--k)); margin: 0; padding: calc(5 * var(--k)) calc(12 * var(--k)); border-radius: 999px; background: #f4f4f0; font-size: calc(11.5 * var(--k)); color: var(--ui-muted); }
.tk-sys .i { width: calc(12 * var(--k)); height: calc(12 * var(--k)); }
.tk-sys em { margin-left: calc(4 * var(--k)); font-style: normal; color: var(--ui-faint); }
.tk-conv__h { display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--k)); padding: calc(14 * var(--k)) calc(18 * var(--k)); border-bottom: 1px solid var(--ui-line); }
.tk-conv__h b { display: block; font-family: var(--font-head); font-size: calc(16 * var(--k)); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.tk-conv__h span:not(.tk-st) { display: block; margin-top: calc(2 * var(--k)); font-size: calc(12 * var(--k)); color: var(--ui-muted); }
.tk-conv__log { display: grid; align-content: start; gap: calc(10 * var(--k)); padding: calc(18 * var(--k)); }
.tk-kv { display: grid; gap: calc(9 * var(--k)); margin: 0 0 calc(18 * var(--k)); }
.tk-kv div { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--k)); font-size: calc(12.5 * var(--k)); }
.tk-kv dt { color: var(--ui-muted); }
.tk-kv dd { display: flex; align-items: center; gap: calc(6 * var(--k)); margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.tk-kv .av { width: calc(20 * var(--k)); height: calc(20 * var(--k)); font-size: calc(8.5 * var(--k)); }

/* ---------- 01 hero: copy | the inbox ---------- */
.tk-hero__split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) calc(720 * var(--u)); column-gap: calc(64 * var(--u)); align-items: center; }
.tk-hero .cos-h1 { font-size: calc(72 * var(--u)); line-height: calc(78 * var(--u)); }
.tk-hero .cos-hero__intro { max-width: calc(560 * var(--u)); font-size: calc(20 * var(--u)); line-height: calc(31 * var(--u)); }
.tk-inbox__count { margin-left: auto; }
.tk-inbox__body { display: grid; grid-template-columns: calc(262 * var(--k)) minmax(0, 1fr); height: calc(540 * var(--k)); }
.tk-list { position: relative; display: grid; align-content: start; gap: calc(4 * var(--k)); padding: calc(8 * var(--k)); border-right: 1px solid var(--ui-line); background: #fcfcfb; }
.tk-row { display: grid; gap: calc(6 * var(--k)); width: 100%; padding: calc(12 * var(--k)); border-radius: calc(12 * var(--k)); text-align: left; cursor: pointer; transition: background-color .25s ease, box-shadow .25s ease; }
.tk-row:hover { background: #f4f4f0; }
.tk-row[aria-selected="true"] { background: var(--lime-wash); box-shadow: inset 3px 0 0 var(--lime); }
.tk-row:focus-visible { outline: 2px solid var(--lime-ico); outline-offset: 2px; }
.tk-row__top { display: flex; justify-content: space-between; gap: calc(8 * var(--k)); }
.tk-row__top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13.5 * var(--k)); font-weight: 600; color: var(--ink); }
.tk-row__top em { flex: none; font-style: normal; font-size: calc(11.5 * var(--k)); color: var(--ui-faint); }
.tk-row__who { font-size: calc(12 * var(--k)); color: var(--ui-muted); }
.tk-row__tags { display: flex; flex-wrap: wrap; align-items: center; gap: calc(8 * var(--k)); }
.tk-detail { min-width: 0; padding: calc(18 * var(--k)) calc(20 * var(--k)); }
.tk-pane { display: none; }
.tk-pane.is-on { display: flex; flex-direction: column; height: 100%; }
.tk-ref { display: flex; align-items: center; gap: calc(6 * var(--k)); font-size: calc(12 * var(--k)); color: var(--ui-muted); }
.tk-ref .i { width: calc(13 * var(--k)); height: calc(13 * var(--k)); }
.tk-subj { margin-top: calc(6 * var(--k)) !important; font-family: var(--font-head); font-size: calc(20 * var(--k)); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.tk-props { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(8 * var(--k)); margin: calc(14 * var(--k)) 0 0; }
.tk-props div { padding: calc(9 * var(--k)) calc(10 * var(--k)); border: 1px solid var(--ui-line); border-radius: calc(10 * var(--k)); }
.tk-props dt { font-size: calc(10.5 * var(--k)); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ui-faint); }
.tk-props dd { display: flex; align-items: center; gap: calc(6 * var(--k)); min-height: calc(22 * var(--k)); margin: calc(5 * var(--k)) 0 0; font-size: calc(13 * var(--k)); font-weight: 600; color: var(--ink); white-space: nowrap; }
.tk-props .av { width: calc(20 * var(--k)); height: calc(20 * var(--k)); font-size: calc(8.5 * var(--k)); }
.tk-thread { display: grid; gap: calc(8 * var(--k)); margin-top: calc(14 * var(--k)); }
.tk-act { margin: calc(14 * var(--k)) 0 calc(14 * var(--k)); padding: calc(12 * var(--k)) 0 0; border-top: 1px solid var(--ui-line); list-style: none; }
.tk-act li { display: flex; align-items: center; gap: calc(8 * var(--k)); font-size: calc(12 * var(--k)); color: var(--ui-muted); }
.tk-act li + li { margin-top: calc(7 * var(--k)); }
.tk-act .i { width: calc(13 * var(--k)); height: calc(13 * var(--k)); color: var(--ui-faint); }
.tk-act em { margin-left: auto; font-style: normal; font-size: calc(11 * var(--k)); color: var(--ui-faint); }
.tk-next { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--k)); margin-top: auto !important; padding: calc(10 * var(--k)) calc(10 * var(--k)) calc(10 * var(--k)) calc(14 * var(--k)); border: 1px solid var(--lime-ico); border-radius: calc(12 * var(--k)); background: var(--lime-wash); font-size: calc(13 * var(--k)); color: var(--ink); }
.tk-next b { margin-right: calc(6 * var(--k)); font-size: calc(10.5 * var(--k)); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--lime-ink); }

/* ---------- 02 the workspace, full width ---------- */
.tk-search { display: flex; align-items: center; gap: calc(8 * var(--k)); flex: 1; max-width: calc(440 * var(--k)); height: calc(36 * var(--k)); padding: 0 calc(12 * var(--k)); border: 1px solid var(--ui-line); border-radius: calc(10 * var(--k)); background: #fafaf9; font-size: calc(13 * var(--k)); color: var(--ui-faint); }
.tk-search .i { width: calc(15 * var(--k)); height: calc(15 * var(--k)); }
.tk-ws__new { margin-left: auto; }
.tk-ws__body { display: grid; grid-template-columns: calc(200 * var(--k)) calc(350 * var(--k)) minmax(0, 1fr) calc(290 * var(--k)); min-height: calc(560 * var(--k)); }
.tk-side { padding: calc(16 * var(--k)) calc(12 * var(--k)); border-right: 1px solid var(--ui-line); background: #fcfcfb; }
.tk-side__i { display: flex; align-items: center; gap: calc(9 * var(--k)); padding: calc(8 * var(--k)) calc(10 * var(--k)); border-radius: calc(9 * var(--k)); font-size: calc(13 * var(--k)); color: var(--ui-text); }
.tk-side__i .i { width: calc(14 * var(--k)); height: calc(14 * var(--k)); color: var(--ui-faint); }
.tk-side__i em { margin-left: auto; font-style: normal; font-size: calc(11.5 * var(--k)); color: var(--ui-faint); }
.tk-side__i.is-on { background: var(--lime-tint); color: var(--lime-ink); font-weight: 600; }
.tk-side__i.is-on .i, .tk-side__i.is-on em { color: var(--lime-ink); }
.tk-side__i--warn .i, .tk-side__i--warn em { color: var(--rose-ink); }
.tk-side__k { margin-top: calc(20 * var(--k)) !important; }
.tk-wl { border-right: 1px solid var(--ui-line); }
.tk-wl__h { display: flex; align-items: baseline; justify-content: space-between; gap: calc(10 * var(--k)); padding: calc(14 * var(--k)) calc(16 * var(--k)); border-bottom: 1px solid var(--ui-line); }
.tk-wl__h b { font-family: var(--font-head); font-size: calc(15 * var(--k)); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.tk-wl__h span { font-size: calc(12 * var(--k)); color: var(--ui-faint); }
.tk-wl__r { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--k)); padding: calc(13 * var(--k)) calc(16 * var(--k)); border-bottom: 1px solid var(--ui-line); transition: background-color .45s ease, box-shadow .45s ease; }
.tk-wl__s { min-width: 0; }
.tk-wl__s b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13.5 * var(--k)); font-weight: 600; color: var(--ink); }
.tk-wl__s small { display: block; margin-top: calc(2 * var(--k)); font-size: calc(12 * var(--k)); color: var(--ui-muted); }
.tk-wl__m { display: flex; flex: none; align-items: center; gap: calc(10 * var(--k)); }
.tk-wl__m .av { width: calc(24 * var(--k)); height: calc(24 * var(--k)); font-size: calc(9 * var(--k)); }
.tk-wl__r.is-sel { background: var(--lime-wash); box-shadow: inset 3px 0 0 var(--lime); }
.tk-conv { display: flex; flex-direction: column; min-width: 0; transition: opacity .5s ease; }
.tk-conv .tk-conv__log { flex: 1; }
.tk-compose { display: flex; align-items: center; gap: calc(12 * var(--k)); margin: 0 calc(18 * var(--k)) calc(18 * var(--k)) !important; padding: calc(6 * var(--k)) calc(6 * var(--k)) calc(6 * var(--k)) calc(8 * var(--k)); border: 1px solid var(--ui-line); border-radius: calc(12 * var(--k)); }
.tk-compose__mode { display: inline-flex; flex: none; padding: calc(3 * var(--k)); border-radius: calc(8 * var(--k)); background: #f2f2ef; }
.tk-compose__mode > * { padding: calc(4 * var(--k)) calc(9 * var(--k)); border-radius: calc(6 * var(--k)); font-size: calc(11.5 * var(--k)); font-weight: 500; color: var(--ui-muted); }
.tk-compose__mode b { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.tk-compose__ph { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(12.5 * var(--k)); color: var(--ui-faint); }
.tk-info { padding: calc(16 * var(--k)); border-left: 1px solid var(--ui-line); background: #fcfcfb; transition: opacity .5s ease; }
.tk-info__who { display: flex; align-items: center; gap: calc(10 * var(--k)); margin-bottom: calc(16 * var(--k)); padding-bottom: calc(16 * var(--k)); border-bottom: 1px solid var(--ui-line); }
.tk-info__who b { display: block; font-size: calc(14 * var(--k)); font-weight: 600; color: var(--ink); }
.tk-info__who span { display: block; margin-top: calc(2 * var(--k)); font-size: calc(12 * var(--k)); color: var(--ui-muted); }
.tk-hist { margin: 0; padding: 0; list-style: none; }
.tk-hist li { position: relative; padding-left: calc(16 * var(--k)); font-size: calc(12.5 * var(--k)); color: var(--ui-muted); }
.tk-hist li + li { margin-top: calc(9 * var(--k)); }
.tk-hist li::before { content: ""; position: absolute; left: 0; top: calc(5 * var(--k)); width: calc(7 * var(--k)); height: calc(7 * var(--k)); border-radius: 50%; background: #d6d6d0; }
.tk-hist li.is-now::before { background: var(--lime-ico); }
.tk-hist b { font-weight: 600; color: var(--ink); }
.tk-hist em { display: block; font-style: normal; font-size: calc(11 * var(--k)); color: var(--ui-faint); }
.tk-caps { display: flex; flex-wrap: wrap; gap: calc(10 * var(--u)) calc(28 * var(--u)); margin: calc(40 * var(--u)) 0 0; padding: 0; list-style: none; }
.tk-caps li { display: inline-flex; align-items: center; gap: calc(10 * var(--u)); font-size: calc(14 * var(--u)); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tk-caps li::before { content: ""; width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: var(--lime-ico); }

/* ---------- 03 support page → confirmation → ticket ---------- */
.tk-journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(56 * var(--u)); margin: calc(72 * var(--u)) 0 0; padding: 0; list-style: none; }
.tk-stage { position: relative; display: flex; flex-direction: column; }
/* a quiet chevron between stages: the only directional cue */
.tk-stage + .tk-stage::before { content: ""; position: absolute; left: calc(-46 * var(--u)); top: 55%; width: calc(36 * var(--u)); height: calc(36 * var(--u)); border: 1px solid var(--rule); border-radius: 50%; background: #fff; }
.tk-stage + .tk-stage::after { content: ""; position: absolute; left: calc(-32 * var(--u)); top: calc(55% + 13 * var(--u)); width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-top: 1.6px solid var(--ink); border-right: 1.6px solid var(--ink); transform: rotate(45deg); }
.tk-stage__k { display: flex; align-items: center; gap: calc(12 * var(--u)); margin: 0 0 calc(18 * var(--u)); font-size: calc(17 * var(--u)); font-weight: 600; color: var(--ink); }
.tk-stage__k span { font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: 0.08em; color: var(--ui-faint); }
.tk-stage .app { display: flex; flex-direction: column; flex: 1; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.tk-url { display: flex; align-items: center; gap: calc(6 * var(--k)); height: calc(40 * var(--k)); padding: 0 calc(14 * var(--k)); border-bottom: 1px solid var(--ui-line); background: #fafaf8; font-size: calc(12 * var(--k)); color: var(--ui-muted); }
.tk-url .i { width: calc(12 * var(--k)); height: calc(12 * var(--k)); color: var(--ui-faint); }
.tk-form__body { display: grid; gap: calc(11 * var(--k)); padding: calc(20 * var(--k)) calc(22 * var(--k)) calc(22 * var(--k)); }
.tk-brand { display: flex; align-items: center; gap: calc(9 * var(--k)); font-size: calc(13 * var(--k)); font-weight: 600; color: var(--ink); }
.tk-brand__logo { display: grid; place-items: center; width: calc(26 * var(--k)); height: calc(26 * var(--k)); border-radius: calc(7 * var(--k)); background: var(--ink); font-size: calc(10 * var(--k)); font-weight: 700; color: var(--lime); }
.tk-form__t { margin: calc(4 * var(--k)) 0 calc(2 * var(--k)) !important; font-family: var(--font-head); font-size: calc(22 * var(--k)); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.tk-f { display: grid; gap: calc(5 * var(--k)); }
.tk-f span { font-size: calc(11.5 * var(--k)); font-weight: 600; color: var(--ui-muted); }
.tk-f b { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--k)); padding: calc(10 * var(--k)) calc(12 * var(--k)); border: 1px solid #e2e2dc; border-radius: calc(10 * var(--k)); font-size: calc(13.5 * var(--k)); font-weight: 500; color: var(--ink); }
.tk-f b .i { width: calc(14 * var(--k)); height: calc(14 * var(--k)); color: var(--ui-faint); }
.tk-f--area b { align-items: flex-start; min-height: calc(78 * var(--k)); font-weight: 400; line-height: 1.45; }
.tk-f--file b { justify-content: flex-start; border-style: dashed; background: #fafaf8; font-weight: 500; color: var(--ui-text); }
.tk-submit { display: grid; place-items: center; height: calc(42 * var(--k)); margin-top: calc(4 * var(--k)); border-radius: calc(10 * var(--k)); background: var(--lime); font-size: calc(14 * var(--k)); font-weight: 600; color: var(--ink); transition: transform .2s ease, box-shadow .25s ease; }
.tk-ok__body { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: calc(30 * var(--k)) calc(24 * var(--k)); text-align: center; }
.tk-ok__mark { display: grid; place-items: center; width: calc(56 * var(--k)); height: calc(56 * var(--k)); border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 calc(8 * var(--k)) var(--lime-tint); color: var(--ink); }
.tk-ok__mark .i { width: calc(26 * var(--k)); height: calc(26 * var(--k)); stroke-width: 2.6; }
.tk-ok__t { margin-top: calc(22 * var(--k)) !important; font-family: var(--font-head); font-size: calc(20 * var(--k)); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.tk-ok__p { max-width: calc(300 * var(--k)); margin-top: calc(8 * var(--k)) !important; font-size: calc(13.5 * var(--k)); line-height: 1.5; color: var(--ui-muted); }
.tk-ok__ref { margin-top: calc(20 * var(--k)) !important; padding: calc(12 * var(--k)) calc(22 * var(--k)); border: 1px dashed var(--lime-ico); border-radius: calc(12 * var(--k)); background: var(--lime-wash); }
.tk-ok__ref span { display: block; font-size: calc(11 * var(--k)); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ui-faint); }
.tk-ok__ref b { display: block; margin-top: calc(2 * var(--k)); font-family: var(--font-head); font-size: calc(22 * var(--k)); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.tk-ok__sum { display: grid; gap: calc(7 * var(--k)); width: 100%; margin: calc(20 * var(--k)) 0 0; padding-top: calc(14 * var(--k)); border-top: 1px solid var(--ui-line); }
.tk-ok__sum div { display: flex; justify-content: space-between; font-size: calc(12.5 * var(--k)); }
.tk-ok__sum dt { color: var(--ui-muted); }
.tk-ok__sum dd { margin: 0; font-weight: 600; color: var(--ink); }
.tk-arr__list { display: grid; gap: calc(8 * var(--k)); padding: calc(12 * var(--k)); }
.tk-arr__new { padding: calc(14 * var(--k)); border: 1px solid var(--lime-ico); border-radius: calc(12 * var(--k)); background: var(--lime-wash); box-shadow: 0 0 0 calc(4 * var(--k)) rgba(199, 243, 104, .25); }
.tk-arr__top { display: flex; align-items: center; justify-content: space-between; }
.tk-arr__top em { font-style: normal; font-size: calc(11.5 * var(--k)); color: var(--ui-faint); }
.tk-arr__s { margin-top: calc(10 * var(--k)) !important; font-size: calc(14.5 * var(--k)); font-weight: 600; color: var(--ink); }
.tk-arr__who { margin-top: calc(3 * var(--k)) !important; font-size: calc(12 * var(--k)); color: var(--ui-muted); }
.tk-arr__kv { display: grid; gap: calc(8 * var(--k)); margin: calc(12 * var(--k)) 0 0; padding-top: calc(11 * var(--k)); border-top: 1px solid #dcefb0; }
.tk-arr__kv div { display: flex; align-items: center; justify-content: space-between; min-height: calc(22 * var(--k)); font-size: calc(12.5 * var(--k)); }
.tk-arr__kv dt { color: var(--ui-muted); }
.tk-arr__kv dd { display: flex; align-items: center; gap: calc(6 * var(--k)); margin: 0; font-weight: 600; color: var(--ink); }
.tk-arr__kv .av { width: calc(20 * var(--k)); height: calc(20 * var(--k)); font-size: calc(8.5 * var(--k)); }
.tk-arr__wait { font-weight: 500; color: var(--ui-faint); }
.tk-arr__old { padding: calc(12 * var(--k)) calc(14 * var(--k)); border: 1px solid var(--ui-line); border-radius: calc(12 * var(--k)); }
.tk-arr__old b { display: block; font-size: calc(13.5 * var(--k)); font-weight: 600; color: var(--ink); }
.tk-arr__old span { display: block; margin-top: calc(2 * var(--k)); font-size: calc(12 * var(--k)); color: var(--ui-muted); }

/* ---------- 04 routing: one request, one rule, the right team ---------- */
figure.tk-route { --k: var(--u); max-width: calc(1160 * var(--u)); margin: calc(72 * var(--u)) auto 0; text-align: center; }
.tk-try { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: calc(6 * var(--u)); padding: calc(5 * var(--u)); border: 1px solid var(--rule); border-radius: calc(14 * var(--u)); background: #fafaf8; }
.tk-try__b { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); height: calc(42 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: calc(10 * var(--u)); cursor: pointer; font-size: calc(15 * var(--u)); font-weight: 500; color: var(--muted); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.tk-try__b .i { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.tk-try__b:hover { color: var(--ink); }
.tk-try__b[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--rule), 0 1px 2px rgba(0, 0, 0, .08); }
.tk-try__b[aria-selected="true"] .i { color: var(--lime-ink); }
.tk-try__b:focus-visible { outline: 2px solid var(--lime-ico); outline-offset: 2px; }
.tk-route__stage { margin-top: calc(40 * var(--u)); }
.tk-req { max-width: calc(620 * var(--u)); margin: 0 auto; padding: calc(22 * var(--u)) calc(26 * var(--u)); border: 1px solid var(--rule); border-radius: calc(18 * var(--u)); background: #fff; box-shadow: var(--ui-shadow); text-align: left; }
.tk-req__k { display: flex; align-items: center; gap: calc(8 * var(--u)); margin: 0; font-size: calc(12 * var(--u)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime-ink); }
.tk-req__k .i { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.tk-req__c { display: none; }
.tk-req__c b { display: block; margin-top: calc(12 * var(--u)); font-family: var(--font-head); font-size: calc(22 * var(--u)); line-height: calc(30 * var(--u)); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.tk-req__c span { display: block; margin-top: calc(8 * var(--u)); font-size: calc(14 * var(--u)); color: var(--muted); }
.tk-rule { display: flex; align-items: center; justify-content: center; gap: calc(12 * var(--u)); width: fit-content; margin: calc(30 * var(--u)) auto 0; padding: calc(8 * var(--u)) calc(18 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: calc(15 * var(--u)); color: var(--ink); }
.tk-rule__k { padding: calc(4 * var(--u)) calc(10 * var(--u)); border-radius: 999px; background: var(--ink); font-size: calc(11.5 * var(--u)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
.tk-rule__c { display: none; align-items: center; gap: calc(8 * var(--u)); }
.tk-rule__c b { font-weight: 600; }
.tk-rule__c .i { width: calc(15 * var(--u)); height: calc(15 * var(--u)); color: var(--lime-ink); }
.tk-route[data-sc="1"] [data-for="1"].tk-req__c, .tk-route[data-sc="2"] [data-for="2"].tk-req__c,
.tk-route[data-sc="3"] [data-for="3"].tk-req__c, .tk-route[data-sc="4"] [data-for="4"].tk-req__c { display: block; }
.tk-route[data-sc="1"] [data-for="1"].tk-rule__c, .tk-route[data-sc="2"] [data-for="2"].tk-rule__c,
.tk-route[data-sc="3"] [data-for="3"].tk-rule__c, .tk-route[data-sc="4"] [data-for="4"].tk-rule__c { display: inline-flex; }
/* the fork: a stem from the rule, a bar, four drops; the chosen branch is lime */
.tk-fork { position: relative; height: calc(64 * var(--u)); }
.tk-fork::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: calc(32 * var(--u)); margin-left: -1px; background: var(--lime-ico); }
.tk-fork::after { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: calc(32 * var(--u)); height: 1px; background: #d6d6d0; }
.tk-fork b { position: absolute; top: calc(32 * var(--u)); width: 1px; height: calc(32 * var(--u)); background: #d6d6d0; transition: background-color .3s ease; }
.tk-fork b:nth-of-type(1) { left: 12.5%; }
.tk-fork b:nth-of-type(2) { left: 37.5%; }
.tk-fork b:nth-of-type(3) { left: 62.5%; }
.tk-fork b:nth-of-type(4) { left: 87.5%; }
.tk-fork__lit { position: absolute; z-index: 1; top: calc(32 * var(--u) - .5px); height: 2px; background: var(--lime-ico); transition: left .45s var(--ease), right .45s var(--ease); }
.tk-route[data-sc="1"] .tk-fork__lit { left: 12.5%; right: 50%; }
.tk-route[data-sc="2"] .tk-fork__lit { left: 37.5%; right: 50%; }
.tk-route[data-sc="3"] .tk-fork__lit { left: 50%;   right: 37.5%; }
.tk-route[data-sc="4"] .tk-fork__lit { left: 50%;   right: 12.5%; }
.tk-route[data-sc="1"] .tk-fork b:nth-of-type(1), .tk-route[data-sc="2"] .tk-fork b:nth-of-type(2),
.tk-route[data-sc="3"] .tk-fork b:nth-of-type(3), .tk-route[data-sc="4"] .tk-fork b:nth-of-type(4) { width: 2px; margin-left: -.5px; background: var(--lime-ico); }
.tk-dests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(16 * var(--u)); margin: 0; padding: 0; list-style: none; text-align: left; }
.tk-dest { padding: calc(18 * var(--u)); border: 1px solid var(--rule); border-radius: calc(14 * var(--u)); background: #fff; opacity: .62; transition: border-color .3s ease, box-shadow .3s ease, opacity .3s ease; }
.tk-dest__h { display: flex; align-items: center; gap: calc(10 * var(--u)); margin: 0; }
.tk-dest__h b { font-size: calc(16 * var(--u)); font-weight: 600; color: var(--ink); }
.tk-dest__ico { display: grid; place-items: center; flex: none; width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: calc(10 * var(--u)); background: #f2f2ef; color: var(--ink); transition: background-color .3s ease; }
.tk-dest__ico .i { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.tk-dest__idle { margin: calc(14 * var(--u)) 0 0; font-size: calc(13.5 * var(--u)); color: var(--muted); }
.tk-dest__got { display: none; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); margin: calc(12 * var(--u)) 0 0; font-size: calc(13 * var(--u)); font-weight: 600; color: var(--ink); }
.tk-dest__got > span:last-child { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); }
.tk-dest__got .av { width: calc(22 * var(--u)); height: calc(22 * var(--u)); font-size: calc(9 * var(--u)); }
.tk-route[data-sc="1"] .tk-dest[data-for="1"], .tk-route[data-sc="2"] .tk-dest[data-for="2"],
.tk-route[data-sc="3"] .tk-dest[data-for="3"], .tk-route[data-sc="4"] .tk-dest[data-for="4"] { opacity: 1; border-color: var(--lime-ico); box-shadow: 0 0 0 calc(4 * var(--u)) rgba(199, 243, 104, .3); }
.tk-route[data-sc="1"] .tk-dest[data-for="1"] .tk-dest__ico, .tk-route[data-sc="2"] .tk-dest[data-for="2"] .tk-dest__ico,
.tk-route[data-sc="3"] .tk-dest[data-for="3"] .tk-dest__ico, .tk-route[data-sc="4"] .tk-dest[data-for="4"] .tk-dest__ico { background: var(--lime); }
.tk-route[data-sc="1"] .tk-dest[data-for="1"] .tk-dest__idle, .tk-route[data-sc="2"] .tk-dest[data-for="2"] .tk-dest__idle,
.tk-route[data-sc="3"] .tk-dest[data-for="3"] .tk-dest__idle, .tk-route[data-sc="4"] .tk-dest[data-for="4"] .tk-dest__idle { display: none; }
.tk-route[data-sc="1"] .tk-dest[data-for="1"] .tk-dest__got, .tk-route[data-sc="2"] .tk-dest[data-for="2"] .tk-dest__got,
.tk-route[data-sc="3"] .tk-dest[data-for="3"] .tk-dest__got, .tk-route[data-sc="4"] .tk-dest[data-for="4"] .tk-dest__got { display: flex; }

/* ---------- 05 lifecycle: four stages on one line ---------- */
ol.tk-life { --k: var(--u); --p: 1; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(24 * var(--u)); margin: calc(72 * var(--u)) 0 0; padding: 0; list-style: none; }
.tk-life::before, .tk-life::after { content: ""; position: absolute; left: calc(10 * var(--u)); right: 0; top: calc(9 * var(--u)); height: 2px; border-radius: 2px; background: #ececE6; }
.tk-life::after { background: var(--lime-ico); transform: scaleX(var(--p)); transform-origin: left; transition: transform .6s var(--ease); }
.tk-life li { position: relative; padding-top: calc(40 * var(--u)); }
.tk-life__dot { position: absolute; z-index: 1; left: 0; top: 0; width: calc(20 * var(--u)); height: calc(20 * var(--u)); border: 2px solid var(--lime-ico); border-radius: 50%; background: var(--lime-ico); transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.tk-life li.is-on .tk-life__dot { border-color: var(--lime-ico); background: var(--lime); box-shadow: 0 0 0 calc(5 * var(--u)) rgba(199, 243, 104, .3); }
.tk-life b { display: block; margin-top: calc(14 * var(--u)); font-family: var(--font-head); font-size: calc(22 * var(--u)); line-height: calc(29 * var(--u)); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.tk-life__ui { display: flex; align-items: center; gap: calc(8 * var(--u)); margin: calc(14 * var(--u)) 0 0; padding: calc(10 * var(--u)) calc(12 * var(--u)); border: 1px solid var(--rule); border-radius: calc(12 * var(--u)); background: #fff; font-size: calc(13.5 * var(--u)); color: var(--ui-text); transition: opacity .4s ease, border-color .3s ease, background-color .3s ease; }
.tk-life__ui .i { width: calc(15 * var(--u)); height: calc(15 * var(--u)); color: var(--ui-faint); }
.tk-life__ui .av { width: calc(22 * var(--u)); height: calc(22 * var(--u)); font-size: calc(9 * var(--u)); }
.tk-life__ui em { margin-left: auto; font-style: normal; font-size: calc(12 * var(--u)); color: var(--ui-faint); white-space: nowrap; }
.tk-life__end .tk-life__ui { border-color: var(--lime-ico); background: var(--lime-wash); }
.tk-life__end .tk-life__ui .i { color: var(--lime-ink); }

/* ---------- 06 follow-ups: one ticket, its events ---------- */
figure.tk-esc { --sla: 1; display: grid; grid-template-columns: calc(470 * var(--u)) calc(72 * var(--u)) minmax(0, 1fr); align-items: center; margin: calc(72 * var(--u)) 0 0; }
.tk-tc { padding: calc(22 * var(--k)); }
.tk-tc__top { display: flex; align-items: center; justify-content: space-between; min-height: calc(22 * var(--k)); }
.tk-tc__top > span:first-child { font-size: calc(12.5 * var(--k)); font-weight: 600; color: var(--ui-muted); }
.tk-tc__s { margin-top: calc(12 * var(--k)) !important; font-family: var(--font-head); font-size: calc(22 * var(--k)); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.tk-tc__who { margin-top: calc(4 * var(--k)) !important; font-size: calc(13 * var(--k)); color: var(--ui-muted); }
.tk-sla { margin-top: calc(18 * var(--k)); padding: calc(14 * var(--k)); border-radius: calc(12 * var(--k)); background: #f7f7f4; }
.tk-sla p { display: flex; justify-content: space-between; font-size: calc(12.5 * var(--k)); }
.tk-sla p span { color: var(--ui-muted); }
.tk-sla p b { font-weight: 600; color: var(--ink); }
.tk-sla__bar { display: block; height: calc(8 * var(--k)); margin-top: calc(10 * var(--k)); border-radius: 99px; background: #e6e6e0; overflow: hidden; }
.tk-sla__bar i { display: block; height: 100%; width: calc(var(--sla) * 100%); border-radius: inherit; background: var(--rose-ink); transition: width .8s var(--ease), background-color .4s ease; }
.cos-js .tk-esc { --sla: .06; }
.tk-esc.st-1 { --sla: .3; }
.tk-esc.st-3 { --sla: .72; }
.tk-esc.st-4 { --sla: .9; }
.tk-esc.st-5 { --sla: 1; }
.cos-js .tk-esc:not(.st-4) .tk-sla__bar i { background: var(--lime-ico); }
.cos-js .tk-esc.st-4:not(.st-5) .tk-sla__bar i { background: var(--amber-ink); }
.tk-tc__kv { margin: calc(16 * var(--k)) 0 0; }
.tk-tc__kv dd > span { display: inline-flex; align-items: center; gap: calc(6 * var(--k)); }
.tk-esc__arr { display: grid; place-items: center; justify-self: center; width: calc(44 * var(--u)); height: calc(44 * var(--u)); border: 1px solid var(--rule); border-radius: 50%; color: var(--muted); }
.tk-esc__arr .i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.tk-ev { display: grid; gap: calc(10 * var(--u)); margin: 0; padding: 0; list-style: none; }
.tk-ev li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: calc(14 * var(--u)); padding: calc(14 * var(--u)) calc(18 * var(--u)); border: 1px solid var(--rule); border-radius: calc(14 * var(--u)); background: #fff; transition: opacity .45s ease, border-color .3s ease; }
.tk-ev__i { display: grid; place-items: center; width: calc(38 * var(--u)); height: calc(38 * var(--u)); border-radius: calc(11 * var(--u)); background: var(--lime-tint); color: var(--lime-ink); }
.tk-ev__i .i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.tk-ev__i--warn { background: var(--amber); color: var(--amber-ink); }
.tk-ev__i--esc { background: var(--rose); color: var(--rose-ink); }
.tk-ev p { margin: 0; }
.tk-ev small { display: block; font-size: calc(13.5 * var(--u)); color: var(--muted); }
.tk-ev b { display: block; margin-top: calc(2 * var(--u)); font-size: calc(17 * var(--u)); font-weight: 600; color: var(--ink); }
.tk-ev em { font-style: normal; font-size: calc(13 * var(--u)); color: var(--ui-faint); white-space: nowrap; }
.tk-ev--esc { border-color: #f1c9c2 !important; }

/* ---------- 07 customer updates: the chat, with the ticket beside it ---------- */
figure.tk-upd { --k: var(--u); display: grid; grid-template-columns: minmax(0, 1fr) calc(500 * var(--u)) minmax(0, 1fr); column-gap: calc(36 * var(--u)); max-width: calc(1240 * var(--u)); margin: calc(72 * var(--u)) auto 0; }
.tk-upd__k { margin: 0; }
.tk-upd__k--l, .tk-upd__k--r { align-self: end; padding-bottom: calc(18 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-faint); }
.tk-upd__k--l { text-align: right; }
/* the centre column is one WhatsApp window (customer's phone: business in, customer out),
   split into grid cells so each message row lines up with its ticket event */
.tk-upd__wa { --p: calc(1.15 * var(--u)); font-family: -apple-system, "SF Pro Text", "Helvetica Neue", var(--font-body); font-size: calc(16 * var(--p)); line-height: 1.3; letter-spacing: 0; color: #111b21; text-align: left; }
.tk-upd__wa p { margin: 0; }
.tk-upd__k--c { border: 1px solid var(--rule); border-bottom-color: #e5e5e5; border-radius: calc(18 * var(--u)) calc(18 * var(--u)) 0 0; overflow: hidden; }
.tk-upd__k--c .wa-top { padding-top: calc(10 * var(--p)); }
.tk-upd__row { display: contents; }
.tk-upd__row > * { transition: opacity .5s ease; }
.tk-upd__sys { display: flex; align-items: center; justify-content: flex-end; gap: calc(10 * var(--u)); margin: 0; font-size: calc(14 * var(--u)); color: var(--muted); text-align: right; }
.tk-upd__sys::after, .tk-upd__type::before { content: ""; flex: none; width: calc(28 * var(--u)); height: 1px; background: var(--divider); }
.tk-upd__type { display: flex; align-items: center; gap: calc(10 * var(--u)); margin: 0; font-size: calc(13 * var(--u)); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.tk-upd__chat.wa-body { justify-content: center; padding: calc(8 * var(--p)) calc(16 * var(--p)); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); overflow: visible; }
.tk-upd__k--r + .tk-upd__row .tk-upd__chat { padding-top: calc(18 * var(--p)); }
.tk-upd__chat .wa-msg { transition: opacity .5s ease; }
.tk-upd__in.wa-input { grid-column: 2; padding-bottom: calc(10 * var(--p)); border: 1px solid var(--rule); border-top-color: #e5e5e5; border-radius: 0 0 calc(18 * var(--u)) calc(18 * var(--u)); }
.tk-upd__foot { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); margin: 0; padding: calc(14 * var(--u)) 0 0; font-size: calc(13 * var(--u)); color: var(--muted); }
.tk-upd__foot .i { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }

/* ---------- 08 collaboration: three layers of one ticket ---------- */
figure.tk-co { position: relative; height: calc(620 * var(--u)); margin: calc(72 * var(--u)) 0 0; }
.tk-co__main { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; width: calc(900 * var(--u)); min-height: calc(560 * var(--k)); }
/* the side layers overlap the main panel's edge only; its content stops short of them */
.tk-co__main .tk-conv__h, .tk-co__main .tk-conv__log { padding-right: calc(110 * var(--k)); }
.tk-co__prev { margin-top: auto; padding: calc(14 * var(--k)) calc(18 * var(--k)); border-top: 1px solid var(--ui-line); background: #fcfcfb; }
.tk-co__prev p:last-child { display: flex; align-items: center; gap: calc(8 * var(--k)); font-size: calc(13 * var(--k)); color: var(--ui-muted); }
.tk-co__prev .i { width: calc(14 * var(--k)); height: calc(14 * var(--k)); color: var(--ui-faint); }
.tk-co__prev b { font-weight: 600; color: var(--ink); }
.tk-co__as { position: absolute; z-index: 2; right: 0; top: calc(-24 * var(--u)); width: calc(480 * var(--u)); padding: calc(18 * var(--k)); }
.tk-co__who { display: flex; align-items: center; gap: calc(12 * var(--k)); padding: calc(12 * var(--k)); border: 1px solid var(--ui-line); border-radius: calc(12 * var(--k)); }
.tk-co__from, .tk-co__to { display: flex; align-items: center; gap: calc(10 * var(--k)); }
.tk-co__who .av { width: calc(32 * var(--k)); height: calc(32 * var(--k)); font-size: calc(11 * var(--k)); }
.tk-co__who b { display: block; font-size: calc(14 * var(--k)); font-weight: 600; color: var(--ink); }
.tk-co__who small { display: block; font-size: calc(12 * var(--k)); color: var(--ui-muted); }
.tk-co__who .mini-btn { margin-left: auto; }
.tk-co__st { display: flex; align-items: center; justify-content: space-between; margin-top: calc(12 * var(--k)) !important; padding: 0 calc(4 * var(--k)); font-size: calc(13 * var(--k)); color: var(--ui-muted); }
.tk-co__notes { position: absolute; z-index: 2; right: 0; top: calc(214 * var(--u)); width: calc(480 * var(--u)); }
.tk-co__nh { display: flex; align-items: center; gap: calc(8 * var(--k)); padding: calc(13 * var(--k)) calc(18 * var(--k)); border-bottom: 1px solid #f3e3bd; background: var(--amber); color: var(--amber-ink); }
.tk-co__nh .i { width: calc(15 * var(--k)); height: calc(15 * var(--k)); }
.tk-co__nh b { font-size: calc(14 * var(--k)); font-weight: 600; }
.tk-co__nh span { margin-left: auto; font-size: calc(12 * var(--k)); }
.tk-note { padding: calc(14 * var(--k)) calc(18 * var(--k)); }
.tk-note + .tk-note { border-top: 1px solid var(--ui-line); }
.tk-note__by { display: flex; align-items: center; gap: calc(8 * var(--k)); }
.tk-note__by .av { width: calc(24 * var(--k)); height: calc(24 * var(--k)); font-size: calc(9 * var(--k)); }
.tk-note__by b { font-size: calc(13 * var(--k)); font-weight: 600; color: var(--ink); }
.tk-note__by em { margin-left: auto; font-style: normal; font-size: calc(11.5 * var(--k)); color: var(--ui-faint); }
.tk-note p:last-child { margin-top: calc(8 * var(--k)); font-size: calc(13.5 * var(--k)); line-height: 1.5; color: var(--ink); }
.tk-at { padding: 0 calc(3 * var(--k)); border-radius: calc(4 * var(--k)); background: var(--cyan); font-weight: 600; color: var(--cyan-ink); }

/* ---------- 09 views: kanban · list · calendar ---------- */
.tk-vsw { display: none; }
.tk-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(24 * var(--u)); margin: calc(72 * var(--u)) 0 0; }
figure.tk-view { display: flex; flex-direction: column; margin: 0; }
.tk-view figcaption { display: flex; align-items: center; gap: calc(10 * var(--u)); margin: 0 0 calc(16 * var(--u)); }
.tk-view figcaption .i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); color: var(--lime-ink); }
.tk-view figcaption b { font-size: calc(17 * var(--u)); font-weight: 600; color: var(--ink); }
.tk-view figcaption span { margin-left: auto; font-size: calc(13.5 * var(--u)); color: var(--muted); }
.tk-view .app { flex: 1; min-height: calc(320 * var(--k)); }
.tk-kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(8 * var(--k)); padding: calc(12 * var(--k)); background: #fafaf8 !important; }
.tk-kb__col { display: grid; align-content: start; gap: calc(7 * var(--k)); padding: calc(8 * var(--k)); border-radius: calc(10 * var(--k)); background: #f0f0eb; }
.tk-kb__h { display: flex; justify-content: space-between; margin: calc(2 * var(--k)) calc(2 * var(--k)) calc(3 * var(--k)) !important; font-size: calc(11 * var(--k)); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ui-muted); }
.tk-kb__h em { font-style: normal; color: var(--ui-faint); }
.tk-kb__c { padding: calc(10 * var(--k)); border: 1px solid transparent; border-radius: calc(8 * var(--k)); background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.tk-kb__c b { display: block; font-size: calc(12.5 * var(--k)); line-height: 1.35; font-weight: 600; color: var(--ink); }
.tk-kb__c > span { display: flex; align-items: center; justify-content: space-between; gap: calc(6 * var(--k)); margin-top: calc(8 * var(--k)); }
.tk-kb__c .av { width: calc(20 * var(--k)); height: calc(20 * var(--k)); font-size: calc(8.5 * var(--k)); }
.tk-kb__c.is-hot { border-color: var(--lime-ico); box-shadow: 0 0 0 calc(3 * var(--k)) var(--lime-tint); }
.tk-lv { padding: calc(6 * var(--k)) calc(12 * var(--k)); }
.tk-lv__r { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr) minmax(0, 1fr) auto; align-items: center; gap: calc(8 * var(--k)); padding: calc(11 * var(--k)) calc(4 * var(--k)); border-bottom: 1px solid var(--ui-line); font-size: calc(12.5 * var(--k)); }
.tk-lv__r:last-child { border-bottom: 0; }
.tk-lv__r--h { font-size: calc(10.5 * var(--k)); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ui-faint); }
.tk-lv__r b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.tk-lv__r .av { width: calc(22 * var(--k)); height: calc(22 * var(--k)); font-size: calc(8.5 * var(--k)); }
.tk-cv { padding: calc(14 * var(--k)); }
.tk-cv__h { display: flex; align-items: baseline; justify-content: space-between; }
.tk-cv__h b { font-family: var(--font-head); font-size: calc(16 * var(--k)); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.tk-cv__h span { font-size: calc(12 * var(--k)); color: var(--ui-muted); }
.tk-cv__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: calc(244 * var(--k)); margin-top: calc(12 * var(--k)); border: 1px solid var(--ui-line); border-radius: calc(10 * var(--k)); overflow: hidden; }
.tk-cv__grid > div { display: flex; flex-direction: column; gap: calc(6 * var(--k)); padding: calc(8 * var(--k)) calc(5 * var(--k)); border-right: 1px solid var(--ui-line); }
.tk-cv__grid > div:last-child { border-right: 0; }
.tk-cv__grid p { margin-bottom: calc(2 * var(--k)) !important; font-size: calc(11 * var(--k)); font-weight: 600; color: var(--ui-faint); text-align: center; }
.tk-cv__grid p b { display: block; font-family: var(--font-head); font-size: calc(17 * var(--k)); color: var(--ink); }
.tk-cv__grid .is-today { background: var(--lime-wash); }
.tk-cv__grid .is-today p b { color: var(--lime-ink); }
.tk-cv__e { display: block; padding: calc(6 * var(--k)) calc(6 * var(--k)); border-left: 3px solid var(--lime-ico); border-radius: calc(6 * var(--k)); background: #fff; box-shadow: 0 0 0 1px var(--ui-line); font-size: calc(10.5 * var(--k)); line-height: 1.35; color: var(--ui-muted); }
.tk-cv__e b { display: block; font-size: calc(11.5 * var(--k)); font-weight: 600; color: var(--ink); }
.tk-cv__e--due { border-left-color: var(--rose-ink); background: var(--rose); box-shadow: none; }

/* ---------- 10 analytics: one support report ---------- */
.tk-an__ill { margin-left: auto; }
.tk-an__body { padding: calc(22 * var(--k)); }
.tk-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(10 * var(--k)); }
.tk-kpis div { padding: calc(14 * var(--k)) calc(16 * var(--k)); border: 1px solid var(--ui-line); border-radius: calc(12 * var(--k)); }
.tk-kpis span { display: block; font-size: calc(12.5 * var(--k)); color: var(--ui-muted); }
.tk-kpis b { display: block; margin-top: calc(8 * var(--k)); font-family: var(--font-head); font-size: calc(28 * var(--k)); line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-kpis b span { display: inline; font-size: inherit; color: inherit; }
.tk-kpis em { display: flex; align-items: center; gap: calc(4 * var(--k)); margin-top: calc(6 * var(--k)); font-style: normal; font-size: calc(12 * var(--k)); font-weight: 600; color: var(--rose-ink); }
.tk-kpis em .i { width: calc(12 * var(--k)); height: calc(12 * var(--k)); }
.tk-kpis .is-warn { border-color: #f1c9c2; }
.tk-kpis .is-warn b { color: var(--rose-ink); }
.tk-an__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: calc(14 * var(--k)); margin-top: calc(14 * var(--k)); }
.tk-cat, .tk-bystat { padding: calc(18 * var(--k)); border: 1px solid var(--ui-line); border-radius: calc(14 * var(--k)); }
.tk-hb { display: grid; gap: calc(12 * var(--k)); margin: 0; padding: 0; list-style: none; }
.tk-hb li { display: grid; grid-template-columns: calc(150 * var(--k)) minmax(0, 1fr) calc(48 * var(--k)); align-items: center; gap: calc(14 * var(--k)); font-size: calc(14 * var(--k)); color: var(--ui-muted); }
.tk-hb b { text-align: right; font-weight: 600; color: var(--ui-text); font-variant-numeric: tabular-nums; }
.tk-hb .tk-bar i { background: #d6d6d0; }
.tk-hb .is-top { font-weight: 600; color: var(--ink); }
.tk-hb .is-top .tk-bar i { background: var(--lime-ico); }
.tk-hb .is-top b { color: var(--lime-ink); }
.tk-stack { display: flex; gap: calc(3 * var(--k)); height: calc(26 * var(--k)); border-radius: calc(8 * var(--k)); overflow: hidden; }
.tk-stack i { flex: calc(var(--v) * 100) 1 0; transform-origin: left; }
.tk-stack i:nth-child(1), .tk-legend .k1 { background: var(--cyan-ink); }
.tk-stack i:nth-child(2), .tk-legend .k2 { background: var(--violet-ink); }
.tk-stack i:nth-child(3), .tk-legend .k3 { background: var(--lime-ico); }
.tk-stack i:nth-child(4), .tk-legend .k4 { background: #c9c9c3; }
.tk-legend { display: grid; gap: calc(9 * var(--k)); margin: calc(16 * var(--k)) 0 0; padding: 0; list-style: none; }
.tk-legend li { display: flex; align-items: center; gap: calc(8 * var(--k)); font-size: calc(13 * var(--k)); color: var(--ui-muted); }
.tk-legend i { width: calc(10 * var(--k)); height: calc(10 * var(--k)); border-radius: calc(3 * var(--k)); }
.tk-legend b { margin-left: auto; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-bystat__team { display: flex; justify-content: space-between; margin-top: calc(16 * var(--k)) !important; padding-top: calc(14 * var(--k)); border-top: 1px solid var(--ui-line); font-size: calc(12.5 * var(--k)); }
.tk-bystat__team span { color: var(--ui-muted); }
.tk-bystat__team b { font-weight: 600; color: var(--ink); }

/* ---------- closing: one resolved ticket ---------- */
.tk-done { --k: var(--u); display: inline-flex; align-items: center; gap: calc(10 * var(--u)); margin: calc(44 * var(--u)) 0 0; padding: calc(7 * var(--u)) calc(18 * var(--u)) calc(7 * var(--u)) calc(7 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: calc(14 * var(--u)); color: var(--muted); }
.tk-done b { font-weight: 600; color: var(--ink); }
.tk-done__i { display: grid; place-items: center; width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: 50%; background: var(--lime); color: var(--ink); }
.tk-done__i .i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); stroke-width: 2.6; }

/* =========================================================
   MOTION — opt-in, and only when the visitor allows it.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .cos-js .rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .cos-js .rv.is-in { opacity: 1; transform: none; }
  .cos-js .is-shown { animation: osSettle .45s var(--ease) both; }
  @keyframes osSettle { from { opacity: 0; transform: translateY(6px); } }

  /* hero: the chosen ticket's detail settles in */
  .cos-js .tk-pane.is-on { animation: osSettle .45s var(--ease) both; }

  /* workspace: the selection lands, then its context fills in */
  .cos-js .tk-ws:not(.st-1) .tk-wl__r.is-sel { background: transparent; box-shadow: none; }
  .cos-js .tk-ws:not(.st-1) .tk-conv, .cos-js .tk-ws:not(.st-1) .tk-info { opacity: .3; }

  /* submission: submit → confirmation → ticket */
  .cos-js .tk-journey:not(.st-2) .tk-stage--2 .app,
  .cos-js .tk-journey:not(.st-3) .tk-stage--3 .app { opacity: .35; transform: translateY(8px); }
  .cos-js .tk-journey.st-1:not(.st-2) .tk-submit { transform: scale(.97); box-shadow: 0 0 0 calc(4 * var(--k)) rgba(199, 243, 104, .45); }

  /* lifecycle: stages light in turn */
  .cos-js .tk-life { --p: 0; }
  .cos-js .tk-life li:not(.is-past):not(.is-on) .tk-life__dot { border-color: #d6d6d0; background: #fff; }
  .cos-js .tk-life li:not(.is-past):not(.is-on) .tk-life__ui { opacity: .4; }
  .cos-js .tk-life__end:not(.is-on) .tk-life__ui { border-color: var(--rule); background: #fff; }

  /* follow-ups and customer updates: each event lights as it happens */
  .cos-js .tk-ev li:not(.is-lit) { opacity: .3; }
  .cos-js .tk-upd__row:not(.is-lit) > :not(.tk-upd__chat),
  .cos-js .tk-upd__row:not(.is-lit) .wa-msg { opacity: .22; }

  /* report bars grow when they come into view */
  .cos-js .rv:not(.is-in) .tk-bar i, .cos-js .rv:not(.is-in) .tk-stack i { transform: scaleX(0); }
  .cos-js .tk-bar i, .cos-js .tk-stack i { transition: transform 1s var(--ease) .3s; }

  .os-qa[open] .os-qa__a { animation: osSettle .35s var(--ease); }
}

/* =========================================================
   BELOW 1180px — one column.
   ========================================================= */
@media (max-width: 1179px) {
  .cos { --k: .86px; --pad: 22px; }

  .cos-eyebrow { font-size: 12px; margin-bottom: 16px; gap: 8px; }
  .cos-eyebrow::before { width: 7px; height: 7px; box-shadow: 0 0 0 3px var(--lime-tint); }
  .cos-h1, .tk-hero .cos-h1 { font-size: 40px; line-height: 44px; }
  .cos-h2 { font-size: 32px; line-height: 38px; }
  .cos-h1 br, .cos-h2 br, .os-say br { display: none; }
  .cos-hero__intro, .tk-hero .cos-hero__intro { font-size: 17px; line-height: 26px; }
  .cos-body { font-size: 16px; line-height: 26px; }
  .cos-cta { gap: 12px; margin-top: 28px; }
  .cos-link { font-size: 16px; gap: 8px; }
  .cos-link .i, .cos .btn .i { width: 18px; height: 18px; }
  .cos .btn--lg { height: 52px; padding: 0 20px; gap: 10px; font-size: 17px; }
  .os-link { margin-top: 16px; }

  .cos-sec { padding: 64px 22px; }
  .cos-hero { padding: 44px 22px 64px; }
  .cos-hero__grid { display: none; }
  .tk .sec-head__copy { margin-top: 16px; }
  figure.os-figure { margin-top: 32px; }
  .app { font-size: 13px; }
  .tk-fine { margin-top: 20px; font-size: 13px; line-height: 20px; }

  /* hero: copy, then the inbox; tickets scroll sideways above the detail */
  .tk-hero__split { display: block; }
  figure.tk-inbox { margin-top: 36px; }
  .tk-inbox__body { grid-template-columns: minmax(0, 1fr); height: auto; }
  .tk-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px; border-right: 0; border-bottom: 1px solid var(--ui-line); }
  .tk-list::-webkit-scrollbar { display: none; }
  .tk-row { flex: none; width: 216px; border: 1px solid var(--ui-line); }
  .tk-row[aria-selected="true"] { border-color: var(--lime-ico); }
  .tk-detail { padding: 16px 14px; }
  .tk-pane.is-on { height: auto; }
  .tk-next { margin-top: 0 !important; }
  .tk-props { grid-template-columns: 1fr 1fr; }
  .tk-props div:last-child { grid-column: 1 / -1; }

  /* workspace: the list and the open ticket; views and details fold away */
  .tk-ws .app__top { flex-wrap: wrap; height: auto; padding: 12px 14px; row-gap: 10px; }
  .tk-search, .tk-ws .chip { display: none; }
  .tk-ws__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tk-side { display: none; }
  .tk-wl { border-right: 0; border-bottom: 1px solid var(--ui-line); }
  .tk-wl__r:nth-child(n+6) { display: none; }
  .tk-info { border-left: 0; border-top: 1px solid var(--ui-line); }
  .tk-caps { gap: 10px 20px; margin-top: 28px; }
  .tk-caps li { gap: 8px; font-size: 12px; }
  .tk-caps li::before { width: 7px; height: 7px; }

  /* submission: a vertical sequence with a downward cue */
  .tk-journey { grid-template-columns: minmax(0, 1fr); gap: 64px; margin-top: 36px; }
  .tk-stage + .tk-stage::before { left: 50%; top: -50px; width: 36px; height: 36px; margin-left: -18px; }
  .tk-stage + .tk-stage::after { left: 50%; top: -40px; width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(135deg); }
  .tk-stage__k { gap: 10px; margin-bottom: 14px; font-size: 16px; }
  .tk-stage__k span { font-size: 12px; }

  /* routing */
  figure.tk-route { margin-top: 32px; }
  .tk-try { display: grid; grid-template-columns: 1fr 1fr; width: 100%; padding: 4px; gap: 4px; border-radius: 12px; }
  .tk-try__b { justify-content: center; height: 42px; padding: 0 8px; border-radius: 9px; font-size: 13.5px; }
  .tk-try__b .i { width: 15px; height: 15px; }
  .tk-route__stage { margin-top: 24px; }
  .tk-req { padding: 18px; border-radius: 16px; }
  .tk-req__c b { font-size: 18px; line-height: 25px; }
  .tk-req__c span { font-size: 13px; }
  .tk-rule { flex-wrap: wrap; margin-top: 20px; font-size: 13.5px; border-radius: 14px; }
  .tk-fork { height: 28px; }
  .tk-fork::before { height: 28px; }
  .tk-fork::after, .tk-fork b, .tk-fork__lit { display: none; }
  .tk-dests { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tk-dest { padding: 14px; border-radius: 12px; }
  .tk-dest__h b { font-size: 14px; }
  .tk-dest__got { flex-wrap: wrap; }

  /* lifecycle: a vertical line */
  ol.tk-life { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
  .tk-life::before, .tk-life::after { left: 9px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .tk-life::after { transform: scaleY(var(--p)); transform-origin: top; }
  .tk-life li { padding: 0 0 0 40px; }
  .tk-life b { margin-top: 10px; font-size: 19px; line-height: 25px; }
  .tk-life__ui { font-size: 13.5px; }

  /* follow-ups: the ticket, then its events */
  figure.tk-esc { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
  .tk-esc > .app { width: 100%; }
  .tk-esc__arr { transform: rotate(90deg); width: 40px; height: 40px; }
  .tk-ev { width: 100%; }
  .tk-ev li { gap: 12px; padding: 12px 14px; }
  .tk-ev small { font-size: 12.5px; }
  .tk-ev b { font-size: 15px; }
  .tk-ev em { display: none; }

  /* customer updates: one chat column; ticket changes sit inside it */
  figure.tk-upd { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .tk-upd__k--l, .tk-upd__k--r, .tk-upd__type { display: none; }
  .tk-upd__wa { --p: min(calc((100vw - 34px) / 402), 1.02px); }
  .tk-upd__k--c { border-radius: 16px 16px 0 0; }
  .tk-upd__sys { justify-content: center; gap: 8px; padding: 14px 14px 2px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); background: #f9f9f9; font-size: 12.5px; }
  .tk-upd__sys::after { display: none; }
  .tk-upd__chat.wa-body, .tk-upd__k--r + .tk-upd__row .tk-upd__chat { padding: calc(8 * var(--p)) calc(14 * var(--p)); }
  .tk-upd__in.wa-input { grid-column: 1; border-radius: 0 0 16px 16px; }
  .tk-upd__foot { grid-column: 1; padding: 12px 0 0; font-size: 12.5px; }

  /* collaboration: the layers stack in reading order */
  figure.tk-co { display: flex; flex-direction: column; gap: 14px; height: auto; margin-top: 32px; }
  .tk-co__main, .tk-co__as, .tk-co__notes { position: static; width: auto; min-height: 0; }
  .tk-co__main .tk-conv__h, .tk-co__main .tk-conv__log { padding-right: 18px; }
  .tk-co__as { order: 2; }
  .tk-co__notes { order: 3; }
  .tk-co__nh span { display: none; }

  /* views: pick one at a time */
  .tk-vsw { display: flex; gap: 6px; margin-top: 28px; padding: 4px; border: 1px solid var(--rule); border-radius: 12px; background: #fafaf8; }
  .tk-vsw__b { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--muted); }
  .tk-vsw__b .i { width: 16px; height: 16px; }
  .tk-vsw__b[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--rule), 0 1px 2px rgba(0, 0, 0, .08); }
  .tk-vsw__b:focus-visible { outline: 2px solid var(--lime-ico); outline-offset: 2px; }
  html:not(.cos-js) .tk-vsw { display: none; }
  .tk-views { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 18px; }
  .cos-js .tk-view:not(.is-on) { display: none; }
  .tk-view figcaption { gap: 8px; margin-bottom: 12px; }
  .tk-view figcaption b { font-size: 15px; }
  .tk-view figcaption span { font-size: 13px; }

  /* analytics */
  .tk-an .app__top { flex-wrap: wrap; height: auto; padding: 12px 14px; row-gap: 10px; }
  .tk-tabs { order: 3; margin-left: 0; }
  .tk-an__body { padding: 14px; }
  .tk-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tk-kpis div:last-child { grid-column: 1 / -1; }
  .tk-kpis b { font-size: 22px; }
  .tk-an__row { grid-template-columns: minmax(0, 1fr); }
  .tk-hb li { grid-template-columns: 112px minmax(0, 1fr) 40px; gap: 8px; font-size: 13px; }
  .tk-finding { font-size: 14.5px; }

  /* FAQ */
  .os-faq { display: block; }
  .os-faq__intro { position: static; margin-bottom: 24px; }
  .os-faq__intro .cos-body { margin-top: 14px; }
  .os-qa summary { gap: 16px; padding: 18px 0; font-size: 17px; line-height: 24px; }
  .os-qa__icon { width: 30px; height: 30px; }
  .os-qa__icon::before, .os-qa__icon::after { width: 11px; }
  .os-qa__a p { padding: 0 0 20px; font-size: 15px; line-height: 24px; }

  /* final */
  .cos-final { padding: 80px 22px 88px; }
  .cos-final .cos-h2 { font-size: 32px; line-height: 38px; }
  .cos-final .cos-body { font-size: 16px; }
  .cos-final .cos-cta { flex-direction: column; align-items: stretch; }
  .tk-done { margin-top: 32px; font-size: 13px; }
}
