/* Axon Hub — Track reports (the canvas is the source, views/trackreport.js): "From your canvas" on Track (`tk-canvas`,
   `tr-card`), the report page #/track/w/:id (`tr-`), and the "Open canvas" button beside a tracked call's row
   (`tk-th-canvas`). Tokens from base.css; loaded after track.css, whose crosshair (`ck-`) and legend swatches it
   reuses. The headline is the accent line; a run is a small ring on it, a run started by field data a filled one; up
   is blue and down orange, always with an arrow. */

/* ------------------------------------------------------------------ "From your canvas" on Track */
.tk-canvas { margin-bottom: 28px; }
.tk-canvas-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tk-canvas-head .tk-now-h { margin-bottom: 0; }
.tk-canvas-n { font-size: 12px; font-weight: 650; color: var(--ink-3); background: var(--wash); border-radius: 999px; padding: 1px 8px; letter-spacing: 0; }
.tr-board { padding-top: 8px; padding-bottom: 8px; }
/* a straight hairline between cards, inside their padding (a shadow would follow the rounded corners) */
.tr-list > li + li::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 0.5px; background: var(--hair-2); }
.tr-list > li:hover::before, .tr-list > li:hover + li::before { opacity: 0; }
.tr-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px 224px; gap: 28px; align-items: center;
  padding: 20px 14px; margin: 0 -14px; border-radius: 18px; transition: background var(--t-1) var(--ease);
}
.tr-card:hover { background: var(--s2); }
.tr-card-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tr-card-t { font-size: 16.5px; font-weight: 620; line-height: 1.35; letter-spacing: -0.01em; min-width: 0; }
.tr-card-link { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* the whole card opens the report; the canvas button sits above that */
.tr-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tr-card-link:focus-visible { outline: none; }
.tr-card:has(.tr-card-link:focus-visible) { box-shadow: 0 0 0 2px var(--accent); }
.tr-card-d { font-size: var(--fs-small); color: var(--ink-3); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.tr-card-meta .pill { height: 24px; padding: 0 10px; font-size: 12px; }
.tr-card-time { font-size: var(--fs-cap); color: var(--ink-4); margin-left: 2px; }
.tr-canvas-btn { position: relative; z-index: 1; margin-left: auto; height: 28px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.tr-canvas-btn svg { width: 14px; height: 14px; }
.tr-state .dot { margin-right: 2px; }
.tr-card-spark { min-width: 0; }
.tr-spark { display: block; width: 100%; height: 40px; overflow: visible; }
.tr-spark-l { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.tr-spark-a { fill: var(--accent); opacity: 0.06; stroke: none; }
.tr-spark-d { fill: var(--accent); }
.tr-card-fig { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; min-width: 0; }
.tr-card-l { font-size: 11px; font-weight: 650; color: var(--accent-ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-card-num { font-size: 36px; font-weight: 650; letter-spacing: -0.035em; line-height: 1; color: var(--ink); white-space: nowrap; }
.tr-card-num small { font-size: 0.48em; font-weight: 600; color: var(--ink-3); margin-left: 2px; letter-spacing: 0; }
.tr-card-num.is-none { color: var(--ink-4); }
.tr-card-num.is-long { font-size: 26px; letter-spacing: -0.025em; }
.tr-card-num.is-long small { font-size: 0.55em; }
.tr-card-num.is-masked, .tr-big-n.is-masked { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 550; letter-spacing: 0; color: var(--ink-3); white-space: normal; }
.tr-card-num.is-masked svg { width: 15px; height: 15px; flex: none; }
.tr-card-w { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-cap); color: var(--ink-3); }
.tr-delta { height: 22px; padding: 0 8px; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.tr-delta svg { width: 11px; height: 11px; stroke-width: 2; }
.tr-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 18px 22px; }
.tr-empty p { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: var(--fs-body); }
.tr-empty p svg { width: 18px; height: 18px; color: var(--ink-3); }

/* a tracked call's row and, beside it, its canvas */
.tk-th-li { display: flex; align-items: center; gap: 6px; }
.tk-th-li > .tk-th { flex: 1 1 auto; min-width: 0; }
.tk-th-list > li + li > .tk-th { box-shadow: 0 -0.5px 0 var(--hair-2); }
.tk-th-canvas { flex: none; color: var(--ink-3); margin-right: -6px; }
.tk-th-canvas:hover { color: var(--ink); }

/* ------------------------------------------------------------------ the report page */
.tr-page { max-width: 1120px; }
.tr-page > * + * { margin-top: 18px; }
.tr-page .card { padding: 26px 28px; }
.tr-head { padding: 4px 0 10px; }
.tr-head .n-back { margin: 0 0 14px -4px; }
.tr-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 32px; }
.tr-head-t { min-width: 0; }
.tr-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-small); font-weight: 600; color: var(--accent-ink); margin-bottom: 10px; }
.tr-eyebrow svg { width: 15px; height: 15px; }
.tr-title { font-size: var(--fs-title); font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; max-width: 42ch; overflow-wrap: anywhere; text-wrap: balance; }
:lang(zh) .tr-title, .tr-title:lang(zh) { letter-spacing: 0; }
.tr-desc { margin-top: 12px; max-width: 72ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.tr-head-act { flex: none; display: flex; gap: 8px; padding-top: 30px; }
.tr-open-canvas { gap: 8px; }
.tr-open-canvas svg { width: 16px; height: 16px; }
.tr-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 20px; font-size: var(--fs-small); color: var(--ink-3); }
.tr-status .pill { height: 26px; padding: 0 11px; font-size: 12.5px; }
.tr-status-i { display: inline-flex; align-items: center; gap: 7px; }
.tr-status-i svg { width: 14px; height: 14px; flex: none; }
.tr-hidden { align-items: center; }

/* the headline: the number large, its own words, its move; the curve across runs. A faint accent light behind the
   number lifts the card from the canvas without a border. */
.tr-hero { background: radial-gradient(ellipse 60% 70% at 0% 0%, var(--accent-wash), transparent 70%), var(--s1); }
.tr-hero-top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-bottom: 22px; }
.tr-fig { min-width: 0; }
.tr-fig-l { font-size: var(--fs-small); font-weight: 600; color: var(--accent-ink); margin-bottom: 8px; }
.tr-big-n { display: inline-block; font-size: clamp(60px, 7vw, 92px); font-weight: 650; letter-spacing: -0.045em; line-height: 0.95; color: var(--ink); }
.tr-big-n small { font-size: 0.4em; font-weight: 600; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.tr-big-n.is-none { color: var(--ink-4); }
.tr-big-n.is-long { font-size: clamp(44px, 5vw, 64px); }
.tr-big-n.is-masked { font-size: var(--fs-lead); gap: 10px; }
.tr-big-n.is-masked svg { width: 20px; height: 20px; }
.tr-words { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 14px; }
.tr-word { font-size: var(--fs-lead); font-weight: 600; color: var(--ink-2); }
.tr-meta { font-size: var(--fs-small); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tr-fig-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-bottom: 6px; }
.tr-delta-line { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; max-width: 100%; }
.tr-fig-side .tr-delta { height: 30px; padding: 0 13px; font-size: 14px; gap: 6px; }
.tr-fig-side .tr-delta svg { width: 13px; height: 13px; }
.tr-delta-w { font-size: var(--fs-small); color: var(--ink-3); }
.tr-outdated { display: inline-flex; align-items: center; gap: 4px; max-width: 34ch; text-align: right; }

.tr-chart { position: relative; height: 300px; }
.tr-plot { position: absolute; left: 0; right: 60px; top: 12px; bottom: 30px; }
.tr-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.tr-grid { stroke: var(--hair-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tr-line {
  fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 40%, transparent));
}
.tr-band { fill: var(--accent); opacity: 0.06; stroke: none; }
.tr-band-e { fill: none; stroke: var(--accent); stroke-opacity: 0.32; stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.tr-area { fill: var(--accent); opacity: 0.06; stroke: none; }
.tr-marks { position: absolute; inset: 0; pointer-events: none; }
.tr-mark { position: absolute; width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--s1); box-shadow: 0 0 0 1.5px var(--accent); }
.tr-marks.is-crowded .tr-mark:not(.is-field):not(:last-child) { display: none; }
.tr-mark.is-field { width: 10px; height: 10px; background: var(--accent); box-shadow: 0 0 0 2.5px var(--s1), 0 0 0 4px var(--accent); }
.tr-yax { position: absolute; right: 0; top: 12px; bottom: 30px; width: 56px; }
.tr-yax > span { position: absolute; right: 0; transform: translateY(-50%); font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-yax > .tr-end { right: -2px; padding: 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--accent); color: var(--on-accent); z-index: 1; }
.tr-xax { position: absolute; left: 0; right: 60px; bottom: 0; display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-4); }
.tr-chart-wait { padding: 28px 0 8px; }
.tr-chart-wait .cap { display: inline-flex; align-items: center; gap: 6px; }
.tr-chart-wait svg { width: 14px; height: 14px; }
.tr-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: var(--fs-cap); color: var(--ink-3); }
.tr-legend li { display: inline-flex; align-items: center; gap: 7px; }
.tr-legend i { display: inline-block; flex: none; }
.tr-lg-band { width: 14px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.tr-lg-run { width: 8px; height: 8px; border-radius: 50%; background: var(--s1); box-shadow: 0 0 0 1.5px var(--accent); }
.tr-lg-run.is-field { width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 0 2px var(--s1), 0 0 0 3.5px var(--accent); }
.tr-also { margin-top: 20px; padding-top: 14px; box-shadow: inset 0 0.5px 0 var(--hair-2); }
.tr-also ul { margin-top: 6px; }
.tr-also-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 72px; gap: 16px; align-items: center; padding: 8px 0; color: var(--ink-2); font-size: var(--fs-small); }
.tr-also-row:hover { color: var(--ink); }
.tr-also-row .tr-spark { height: 28px; }
.tr-also-row .tr-spark-l { stroke: var(--ink-3); stroke-width: 1.5; }
.tr-also-row .tr-spark-a { display: none; }
.tr-also-row .tr-spark-d { fill: var(--ink-3); }
.tr-also-row b { text-align: right; color: var(--ink); font-weight: 650; }
.tr-also-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* what changed, run by run */
.tr-runs > li + li { box-shadow: inset 0 0.5px 0 var(--hair-2); }
.tr-run { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px 22px; align-items: start; padding: 13px 0; }
.tr-run-when { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-small); color: var(--ink-2); }
.tr-run-when time { white-space: nowrap; }
.tr-trg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.tr-trg svg { width: 12px; height: 12px; flex: none; }
.tr-trg.is-field { color: var(--accent-ink); font-weight: 600; }
.tr-run-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 1px; }
.tr-run-body .pill { height: 22px; font-size: 12px; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-chips > li { max-width: 100%; min-width: 0; }
.tr-chip-t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-chip { display: block; max-width: 100%; padding: 3px 10px; border-radius: 999px; background: var(--wash); color: var(--ink-2); font-size: 12.5px; line-height: 1.4; transition: background var(--t-1) var(--ease), color var(--t-1) var(--ease); }
.tr-chip:hover { background: var(--wash-2); color: var(--ink); }
.tr-run-fail { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; line-height: 1.45; color: var(--crit); }
.tr-run-fail svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.tr-run-fail a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tr-run-v { display: flex; align-items: center; justify-content: flex-end; gap: 10px; white-space: nowrap; }
.tr-run-v b { font-size: 15px; font-weight: 650; color: var(--ink); }
.tr-more { margin-top: 8px; }

/* the report, section by section as Studio draws it */
.tr-sec-h { font-size: var(--fs-h2); letter-spacing: -0.02em; margin: 34px 0 14px; }
.tr-report > .tr-rep + .tr-rep { margin-top: 16px; }
.tr-rep-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tr-rep-head .eyebrow { display: inline-flex; align-items: center; gap: 7px; }
.tr-rep-head .eyebrow svg { width: 13px; height: 13px; }
.tr-node-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 550; color: var(--accent-ink); }
.tr-node-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tr-node-link svg { width: 14px; height: 14px; }
.tr-rep-none { display: flex; flex-direction: column; align-items: center; }
.tr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 20px; }
.tr-tile { background: var(--s2); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.tr-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tr-tile-head h4 { font-size: 14px; font-weight: 600; }

/* field data: each task's progress and what came in */
.tr-field .card-title, .tr-approvals .card-title { display: inline-flex; align-items: center; gap: 8px; }
.tr-field .card-title svg, .tr-approvals .card-title svg { width: 16px; height: 16px; color: var(--accent-ink); }
.tr-task + .tr-task { margin-top: 20px; padding-top: 20px; box-shadow: inset 0 0.5px 0 var(--hair-2); }
.tr-task-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.tr-task-t { font-size: 15.5px; font-weight: 620; }
.tr-task-head .btn svg { width: 13px; height: 13px; }
.tr-steps { display: flex; margin: 16px 0 12px; }
.tr-steps li { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--ink-3); }
.tr-steps li::before { content: ""; position: absolute; top: 10px; left: 26px; right: 6px; height: 2px; border-radius: 1px; background: var(--hair-2); }
.tr-steps li:last-child::before { display: none; }
.tr-steps li.is-done::before { background: var(--accent); }
.tr-steps i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--wash-2); color: var(--on-accent); }
.tr-steps i svg { width: 12px; height: 12px; stroke-width: 2.4; }
.tr-steps li.is-done i { background: var(--accent); }
.tr-steps li.is-next i { background: var(--s1); box-shadow: inset 0 0 0 2px var(--accent); }
.tr-steps li.is-done span { color: var(--ink); font-weight: 550; }
.tr-steps span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-task-meta { margin-bottom: 4px; }
.tr-task-appr { margin-top: 10px; }
.tr-task-appr a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tr-dels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.tr-del { background: var(--s2); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.tr-del-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; font-size: var(--fs-small); }
.tr-del-head .pill { height: 22px; font-size: 11.5px; margin-left: auto; }
.tr-vals { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 16px; font-size: 13px; }
.tr-vals dt { color: var(--ink-3); }
.tr-vals dt::first-letter { text-transform: uppercase; }
.tr-vals dd { text-align: right; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.tr-vals dd.is-text { text-align: left; font-weight: 500; line-height: 1.45; }
.tr-del-check { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; padding-top: 10px; box-shadow: inset 0 0.5px 0 var(--hair-2); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.tr-del-check .ai-label { flex: none; }

/* tracking: the workflow's triggers and alerts */
.tr-trgs > li + li { box-shadow: inset 0 0.5px 0 var(--hair-2); }
.tr-trg-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.tr-trg-row > svg { width: 17px; height: 17px; flex: none; color: var(--accent-ink); }
.tr-trg-row.is-off { opacity: 0.6; }
.tr-trg-row.is-off > svg { color: var(--ink-3); }
.tr-trg-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tr-trg-t b { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tr-trg-t span { font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.tr-trg-n { white-space: nowrap; text-align: right; }
.tr-off { max-width: 70ch; }
.tr-sub-h { font-size: var(--fs-small); font-weight: 600; color: var(--ink-3); margin: 18px 0 2px; }
.tr-alerts .list-row { align-items: center; padding: 10px 0; color: var(--ink); font-size: 14px; }
.tr-alerts .list-row svg { width: 15px; height: 15px; flex: none; color: var(--ink-3); }
.tr-alerts > li + li { box-shadow: inset 0 0.5px 0 var(--hair-2); }
.tr-approvals .list-row { align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 14px; color: var(--ink); }
.tr-approvals .list-row > .grow { flex: 1 1 260px; min-width: 0; line-height: 1.5; }

.tr-fail { margin-top: 12px; }
.tr-fail p { color: var(--ink-2); font-size: var(--fs-body); }
.tr-fail-act { justify-content: center; gap: 8px; margin-top: 14px; }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 760px) {
  .tr-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main main" "spark fig"; gap: 14px 18px; padding: 16px 10px; margin: 0 -10px; }
  .tr-card-main { grid-area: main; }
  .tr-card-spark { grid-area: spark; align-self: end; }
  .tr-card-fig { grid-area: fig; align-self: end; }
  .tr-card-num { font-size: 30px; }
  .tr-canvas-btn { margin-left: 0; }
  .tk-th-canvas { align-self: flex-start; margin-top: 10px; }
  .tr-page .card { padding: 20px 16px; }
  .tr-title { font-size: 26px; }
  .tr-desc { font-size: 15px; }
  .tr-head-row { flex-direction: column; }
  .tr-head-act { padding-top: 0; }
  .tr-status { gap: 8px 14px; }
  .tr-hero-top { align-items: flex-start; }
  .tr-fig-side { align-items: flex-start; max-width: 100%; }
  .tr-delta-line { justify-content: flex-start; }
  .tr-outdated { text-align: left; }
  .tr-big-n { font-size: 60px; }
  .tr-big-n.is-long { font-size: 38px; }
  .tr-card-num.is-long { font-size: 22px; }
  .tr-chart { height: 220px; }
  .tr-plot, .tr-xax { right: 52px; }
  .tr-yax { width: 48px; }
  .tr-also-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tr-also-row .tr-spark { display: none; }
  /* a run on a phone: when and what started it, then the value and its move, then what changed — never a squeezed date */
  .tr-run { grid-template-columns: minmax(0, 1fr); grid-template-areas: "when" "v" "body"; gap: 6px; }
  .tr-run-when { grid-area: when; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .tr-run-v { grid-area: v; justify-content: flex-start; }
  .tr-marks.is-dense .tr-mark:not(.is-field):not(:last-child) { display: none; }
  .tr-card { grid-template-columns: minmax(0, 1fr) min(196px, 62%); }
  .tr-card-fig { max-width: 196px; }
  .tr-run-body { grid-area: body; }
  .tr-steps li { font-size: 11px; }
  .tr-steps li::before { left: 24px; right: 2px; }
  .tr-dels { grid-template-columns: minmax(0, 1fr); }
  .tr-tiles { grid-template-columns: minmax(0, 1fr); }
  .tr-trg-row { flex-wrap: wrap; }
  .tr-trg-n { white-space: normal; text-align: left; flex-basis: 100%; padding-left: 31px; }
}

/* ------------------------------------------------------------------ touch: every small link is at least 40 px to tap */
@media (max-width: 760px), (pointer: coarse) {
  /* buttons grow to 40 px; links keep their look and take a taller, invisible hit area (vertical only, so nothing
     they sit in gets wider) */
  .tr-canvas-btn, .tr-more { min-height: 40px; height: auto; }
  .tr-chip, .tr-node-link, .tr-task-appr a, .tk-th-canvas { position: relative; }
  .tr-chip::before, .tr-node-link::before, .tr-task-appr a::before, .tk-th-canvas::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 40px; transform: translateY(-50%);
  }
}
