/* Templates page styles (route /templates). Shared tokens and components: /assets/k64.css.
   Every class here is prefixed tpl- (or tp- inside the SVG service graphs drawn by templates.js). */

/* ---------- hero ---------- */
.tpl-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6.5vh, 76px) 0 clamp(64px, 7vw, 96px); }
.tpl-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(48% 46% at 74% 34%, rgba(255, 106, 61, .085), transparent 70%), radial-gradient(40% 40% at 20% 90%, rgba(115, 198, 248, .035), transparent 70%), linear-gradient(180deg, transparent 78%, var(--bg)); }
.tpl-hero__grid { position: absolute; inset: 0; z-index: -2; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; background-position: calc(50% + 28px) -1px; -webkit-mask: radial-gradient(60% 62% at 72% 36%, #000, transparent 78%); mask: radial-gradient(60% 62% at 72% 36%, #000, transparent 78%); opacity: .55; }
.tpl-hero__top { display: grid; grid-template-columns: minmax(0, 1fr) 548px; gap: 56px; align-items: center; }
.tpl-hero__copy { min-width: 0; }
.tpl-pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; height: 32px; padding: 0 12px 0 11px; border-radius: 99px; font-size: 13px; color: var(--text-2); background: rgba(12, 13, 16, .6); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .2s, box-shadow .2s; }
.tpl-pill:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-3); }
.tpl-pill b { font-weight: 500; color: var(--text); white-space: nowrap; }
.tpl-pill__more { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-pill__dot { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--ember); box-shadow: 0 0 0 3px rgba(255, 106, 61, .2); }
.tpl-pill__sep { flex: none; width: 1px; height: 14px; background: var(--line-3); }
.tpl-pill svg.i { width: 14px; height: 14px; color: var(--text-3); transition: transform .25s var(--ease); }
.tpl-pill:hover svg.i { transform: translateX(2px); }
.tpl-hero__title { margin: 28px 0 0; font: 600 clamp(50px, 6.7vw, 98px)/.9 var(--font); letter-spacing: -.056em; }
.tpl-hero__lead { max-width: 31em; margin: 28px 0 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.tpl-facts { display: flex; margin: 34px 0 0; }
.tpl-facts > div { padding: 2px 28px; box-shadow: inset 1px 0 0 var(--line-2); }
.tpl-facts > div:first-child { padding-left: 0; box-shadow: none; }
.tpl-facts dt { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.tpl-facts dd { margin: 10px 0 0; font: 500 30px/1 var(--font); letter-spacing: -.04em; color: var(--text); }

/* the wall: one tile per template, like a table of elements */
.tpl-wall { padding: 16px 16px 14px; background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .03), transparent 60%), rgba(11, 12, 15, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tpl-wall::before { content: ''; position: absolute; inset: -6px; pointer-events: none; background: var(--cross) left top / 11px 11px no-repeat, var(--cross) right top / 11px 11px no-repeat, var(--cross) left bottom / 11px 11px no-repeat, var(--cross) right bottom / 11px 11px no-repeat; }
.tpl-wall__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; }
.tpl-wall__head .label { gap: 10px; }
.tpl-wall__sep { width: 18px; height: 1px; background: var(--line-3); }
.tpl-wall__head .num { color: var(--text-2); letter-spacing: .04em; }
.tpl-wall__hint { display: flex; align-items: center; gap: 4px; margin: 0; font: 400 11.5px/1 var(--font); color: var(--text-4); }
.tpl-wall__hint .kbd { height: 19px; padding: 0 5px; font-size: 10.5px; }
.tpl-wall__grid { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
.tpl-wall__grid::before { content: ''; position: absolute; inset: -16px; z-index: 0; pointer-events: none; border-radius: 16px; background: radial-gradient(180px circle at var(--wx, -300px) var(--wy, -300px), rgba(255, 150, 110, .14), transparent 70%); transition: opacity .3s; }
.tpl-wall__grid > * { z-index: 1; }
.js .tpl-wall.is-in:not(.is-landed) .tpl-tile { animation: tplTileIn .8s var(--ease) backwards; animation-delay: calc(var(--wi, 0) * 45ms + .2s); }
.tpl-wall__grid > .tpl-wall__sweep { position: absolute; inset: -4px; z-index: 3; overflow: hidden; border-radius: 12px; pointer-events: none; }
.tpl-wall__sweep i { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(105deg, transparent 10%, rgba(255, 255, 255, .045) 42%, rgba(255, 170, 130, .075) 50%, rgba(255, 255, 255, .045) 58%, transparent 90%); transform: translateX(-110%); animation: tplSweep 9s var(--ease) 1.5s infinite; will-change: transform; }
.tpl-wall.is-off .tpl-wall__sweep i { animation-play-state: paused; }
.tpl-tile { position: relative; display: block; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 10px; text-align: left; color: var(--text); background: color-mix(in srgb, var(--c) 7%, #0e1013); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 24%, transparent); cursor: pointer; transition: opacity .4s var(--ease), filter .4s var(--ease), background-color .25s, box-shadow .25s, translate .25s var(--ease); }
.tpl-tile:hover, .tpl-tile:focus-visible, .tpl-tile.is-cur { z-index: 2; background: color-mix(in srgb, var(--c) 15%, #0e1013); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 62%, transparent), 0 0 0 3px color-mix(in srgb, var(--c) 13%, transparent), 0 14px 30px -12px color-mix(in srgb, var(--c) 45%, transparent); translate: 0 -2px; }
.tpl-tile:focus-visible { outline: none; }
.tpl-tile__n { position: absolute; top: 7px; left: 8px; font: 500 9px/1 var(--mono); letter-spacing: .04em; color: var(--text-4); font-variant-numeric: tabular-nums; }
.tpl-tile__dots { position: absolute; top: 8px; right: 8px; display: flex; gap: 2.5px; }
.tpl-tile__dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--k, var(--text-3)); }
.tpl-tile__m { position: absolute; left: 8px; bottom: 18px; font: 500 21px/1 var(--font); letter-spacing: -.035em; color: var(--c); }
.tpl-tile__s { position: absolute; left: 8px; right: 5px; bottom: 7px; overflow: hidden; font: 400 9.5px/1 var(--mono); letter-spacing: 0; color: var(--text-3); text-overflow: clip; white-space: nowrap; }
.tpl-tile.is-dim { opacity: .2; filter: saturate(.15); }
.tpl-tile.is-dim:hover, .tpl-tile.is-dim:focus-visible { opacity: .6; }
.tpl-tile::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 1px var(--c), 0 0 18px 2px color-mix(in srgb, var(--c) 55%, transparent); opacity: 0; }
.tpl-tile.is-ping::after { animation: tplPing 1.6s var(--ease); }
.tpl-tile--empty { cursor: default; background: transparent; box-shadow: none; border: 1px dashed var(--line-2); }
.tpl-tile--you { display: grid; place-content: center; justify-items: center; gap: 5px; color: var(--text-3); cursor: pointer; border-color: var(--line-3); --c: #ff8a62; }
.tpl-tile--you svg.i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.tpl-tile--you em { font: normal 400 10.5px/1 var(--font); }
.tpl-tile--you:hover, .tpl-tile--you:focus-visible { color: var(--ember-2); border-color: rgba(255, 122, 82, .55); background: rgba(255, 106, 61, .06); box-shadow: 0 14px 30px -14px rgba(255, 106, 61, .45); translate: 0 -2px; outline: none; }
.tpl-tile--you:hover svg.i, .tpl-tile--you:focus-visible svg.i { transform: rotate(90deg); }
.tpl-tile--you { grid-column: span var(--sw, 1); }
.tpl-you__l { display: none; }
.tpl-tile--you.is-wide { aspect-ratio: auto; grid-auto-flow: column; align-items: center; gap: 9px; }
.tpl-tile--you.is-wide em { font-size: 11px; }
.tpl-tile--you.is-wide .tpl-you__s { display: none; }
.tpl-tile--you.is-wide .tpl-you__l { display: inline; }
.tpl-wall__read { display: flex; align-items: center; gap: 12px; height: 50px; margin-top: 14px; padding: 0 14px 0 10px; border-radius: 11px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--line); }
.tpl-wall__sym { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 8px; font: 500 15px/1 var(--font); letter-spacing: -.03em; color: var(--rc, var(--text-3)); background: color-mix(in srgb, var(--rc, #6f7581) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc, #6f7581) 32%, transparent); transition: color .2s, background-color .2s, box-shadow .2s; }
.tpl-wall__txt { display: grid; min-width: 0; gap: 3px; }
.tpl-wall__txt b { overflow: hidden; font-weight: 500; font-size: 13.5px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.tpl-wall__txt span { overflow: hidden; font: 400 11.5px/1.25 var(--font); color: var(--text-3); text-overflow: ellipsis; white-space: nowrap; }
.tpl-wall__gl { flex: none; margin-left: auto; }
.tpl-wall__gl:empty { display: none; }
.tpl-wall__gl .tpl-gl { width: 77px; height: 30px; animation: tplTagIn .3s var(--ease); }
.tpl-wall__go { flex: none; margin-left: auto; font: 400 11px/1 var(--mono); color: var(--text-3); }
.tpl-wall__gl:not(:empty) + .tpl-wall__go { margin-left: 4px; }
.tpl-wall__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 2px 0; padding: 0; list-style: none; font: 400 11px/1.4 var(--font); color: var(--text-3); }
.tpl-wall__legend li { display: inline-flex; align-items: center; gap: 6px; }
.tpl-wall__legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); }

/* service kinds (dots on tiles, chips, graphs) */
[data-k="web"], [data-k="static"], [data-k="tcp"] { --k: #ff8a62; }
[data-k="worker"] { --k: #a798ff; }
[data-k="cron"] { --k: #73c6f8; }
[data-k="volume"] { --k: #ffb547; }
[data-k="db"] { --k: #6ea0ff; }
[data-e="mysql"] { --k: #4fd1c5; }
[data-e="valkey"] { --k: #ff7a7a; }
[data-e="ferretdb"] { --k: #6fdc8c; }

/* the search console */
.tpl-console { margin-top: 48px; padding: 18px 20px 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01) 60%), rgba(11, 12, 15, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tpl-console__row { display: flex; align-items: center; gap: 20px; }
.tpl-search { position: relative; display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; height: 54px; padding: 0 10px 0 17px; border-radius: 13px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, background-color .2s; }
.tpl-search:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.tpl-search:focus-within { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 122, 82, .7), 0 0 0 4px rgba(255, 106, 61, .12); }
.tpl-search > svg.i { width: 19px; height: 19px; color: var(--text-3); }
.tpl-search__in { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; font: 400 17px/1 var(--font); letter-spacing: -.01em; color: var(--text); background: none; }
.tpl-search__in::placeholder { color: var(--text-4); }
.tpl-search__in::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.tpl-search__kbd { margin-right: 6px; }
.tpl-console__count { display: flex; flex: none; align-items: baseline; gap: 8px; min-width: 156px; margin: 0; }
.tpl-console__count b { min-width: 1.3em; font: 500 30px/1 var(--font); letter-spacing: -.04em; text-align: right; color: var(--text); }
.tpl-console__count span { font: 400 12.5px/1 var(--font); color: var(--text-3); }
.tpl-console__acts { display: flex; flex: none; gap: 8px; }
.tpl-console__clear.is-off { visibility: hidden; }
.tpl-see__m { display: none; }
.tpl-facets { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--line); }
.tpl-facet { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; }
.tpl-facet__k { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.tpl-facet__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-chip { height: 30px; padding: 0 6px 0 11px; gap: 7px; font-size: 12.5px; }
.tpl-chip b { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 5px; font: 500 10.5px/1 var(--mono); color: var(--text-3); background: rgba(255, 255, 255, .05); transition: color .2s, background-color .2s; }
.tpl-chip[aria-pressed="true"] b, .tpl-chip[aria-checked="true"] b { color: var(--ember-2); background: rgba(255, 106, 61, .14); }
.tpl-chip__dot { width: 6px; height: 6px; margin-right: 1px; border-radius: 2px; background: var(--c); }
.tpl-chip.is-zero:not([aria-pressed="true"]), .tpl-chip.is-zero:not([aria-checked="true"]) { opacity: .4; }

/* ---------- 01 featured ---------- */
.tpl-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tpl-feat { display: flex; flex-direction: column; grid-column: span 5; min-width: 0; overflow: hidden; }
.tpl-feat--wide { grid-column: span 7; }
.tpl-feat__stage { position: relative; height: 318px; margin: 1px 1px 0; overflow: hidden; border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; background-color: #090a0d; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: 20px 20px; background-position: 10px 10px; box-shadow: inset 0 -1px 0 var(--line); }
.tpl-feat__stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 70% at 50% 50%, transparent, rgba(9, 10, 13, .82)), radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--c) 9%, transparent), transparent 70%); }
.tpl-feat__stage .tpl-topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.tpl-feat__label { position: absolute; top: 16px; left: 18px; display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.tpl-feat__label .dot { width: 5px; height: 5px; box-shadow: 0 0 0 3px rgba(61, 220, 151, .14); }
.tpl-feat__geo { position: absolute; top: 16px; right: 18px; margin: 0; font: 400 11px/1 var(--mono); letter-spacing: .04em; color: var(--text-3); }
.tpl-feat__read { position: absolute; left: 18px; right: 18px; bottom: 14px; margin: 0; overflow: hidden; font: 400 12.5px/1.3 var(--font); color: var(--text-3); text-overflow: ellipsis; white-space: nowrap; opacity: 0; transition: color .2s, opacity .3s; }
.tpl-feat__read.is-on { color: var(--text-2); }
/* the traffic the graph replays: the newest line at the bottom, two older ones fading above it */
.tpl-feat__log { position: absolute; left: 18px; right: 18px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; font: 400 11.5px/17px var(--mono); pointer-events: none; transition: opacity .3s; }
.tpl-feat__log li { display: flex; gap: 10px; height: 17px; min-width: 0; color: var(--text-2); white-space: nowrap; transition: opacity .45s var(--ease); }
.tpl-feat__log li:nth-last-child(2) { opacity: .42; }
.tpl-feat__log li:nth-last-child(n + 3) { opacity: 0; }
.tpl-feat__log li:last-child { animation: tplLogIn .5s var(--ease); }
.tpl-feat__log time { flex: none; color: var(--text-4); font-variant-numeric: tabular-nums; }
.tpl-feat__log b { flex: none; min-width: var(--who, 7ch); font-weight: 500; color: var(--k, var(--text-2)); }
.tpl-feat__log span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tpl-feat__stage:hover .tpl-feat__read, .tpl-feat__stage:focus-within .tpl-feat__read, .tpl-feat__stage.is-reading .tpl-feat__read { opacity: 1; }
.tpl-feat__stage:hover .tpl-feat__log, .tpl-feat__stage:focus-within .tpl-feat__log, .tpl-feat__stage.is-reading .tpl-feat__log { opacity: 0; }
.tpl-feat__pin { margin-right: 10px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ember-2); }
.tpl-feat__read .mono { font-size: 12px; color: var(--text); }
.tpl-feat__text { display: flex; flex: 1; flex-direction: column; padding: 24px 28px 24px; }
.tpl-feat__k { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.tpl-feat__k i { width: 16px; height: 1px; background: var(--line-3); }
.tpl-feat__k .mono-tile { margin-right: 4px; letter-spacing: 0; }
.tpl-feat__name { margin: 18px 0 8px; font: 500 24px/1.15 var(--font); letter-spacing: -.03em; }
.tpl-feat__desc { max-width: 40em; margin: 0; font-size: 15px; color: var(--text-2); }
/* a command or a path inside a description (withCode() in src/data/templates.ts): mono, never split over two lines */
.tpl-code-in { font-size: .9em; color: var(--text); white-space: nowrap; }
.tpl-feat__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.tpl-feat__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--line); }
.tpl-feat__actions .btn--quiet svg { width: 13px; height: 13px; }

/* service chips */
.tpl-svc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tpl-svc li { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 8px; border-radius: 6px; font: 400 11.5px/1 var(--mono); color: var(--text-2); white-space: nowrap; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.tpl-svc i { width: 6px; height: 6px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--k) 18%, transparent); }

/* ---------- the service graph (SVG) ---------- */
.tpl-topo { display: block; overflow: visible; touch-action: auto; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.tpl-topo.is-drag { touch-action: none; }
.tpl-topo .tp-zone { fill: rgba(115, 198, 248, .028); stroke: rgba(115, 198, 248, .26); stroke-dasharray: 4 5; transition: x .3s, y .3s, width .3s, height .3s; }
.tpl-topo .tp-zl { fill: var(--sky); font: 500 9.5px var(--mono); letter-spacing: .09em; opacity: .9; }
.tpl-topo .tp-e { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 1.4; transition: stroke .25s, opacity .3s, stroke-width .25s; }
.tpl-topo .tp-e--pub { stroke: rgba(255, 138, 98, .42); }
.tpl-topo .tp-e--out { stroke: rgba(255, 138, 98, .34); stroke-dasharray: 2 4; }
.tpl-topo .tp-e--mount { stroke: rgba(255, 181, 71, .4); stroke-dasharray: 3 4; }
.tpl-topo .tp-e.is-hot { stroke: rgba(255, 138, 98, .85); stroke-width: 1.8; }
.tpl-topo .tp-e.is-dim, .tpl-topo .tp-pk.is-dim { opacity: .18; }
.tpl-topo .tp-e.is-off { opacity: 0; }
.tpl-topo .tp-pk { fill: var(--sky); transition: opacity .3s; }
.tpl-topo .tp-pk--pub, .tpl-topo .tp-pk--out { fill: var(--ember); }
.tpl-topo .tp-pk--mount { fill: var(--amber); }
.tpl-topo .tp-pk.is-off { opacity: 0; }
.tpl-topo .tp-n { cursor: default; transition: opacity .4s var(--ease); }
.tpl-topo.is-drag .tp-n { cursor: grab; }
.tpl-topo .tp-n.is-grab { cursor: grabbing; }
.tpl-topo .tp-b { fill: #121418; stroke: rgba(255, 255, 255, .12); transition: stroke .25s, fill .25s; }
.tpl-topo .tp-shadow { fill: #0e1013; stroke: rgba(255, 255, 255, .08); opacity: 0; transition: opacity .35s, transform .35s var(--ease); }
.tpl-topo .tp-n.is-copy .tp-shadow { opacity: 1; transform: translate(5px, 5px); }
.tpl-topo .tp-n:hover .tp-b, .tpl-topo .tp-n:focus-visible .tp-b { stroke: rgba(255, 255, 255, .26); }
.tpl-topo .tp-n:focus-visible { outline: none; }
.tpl-topo .tp-n:focus-visible .tp-b { stroke: var(--ember-2); stroke-width: 2; }
.tpl-topo:not(.is-drag) .tp-n:not(.tp-n--ghost) { cursor: pointer; }
.tpl-topo .tp-n.is-pin .tp-b { fill: #1a1512; stroke: var(--ember); stroke-width: 1.6; }
.tpl-topo .tp-n.is-hot .tp-b { stroke: rgba(255, 122, 82, .8); fill: #16171b; }
.tpl-topo .tp-n.is-dim { opacity: .4; }
.tpl-topo .tp-n--net .tp-b { fill: rgba(255, 106, 61, .07); stroke: rgba(255, 106, 61, .42); }
.tpl-topo .tp-n--ghost .tp-b { fill: rgba(255, 255, 255, .015); stroke: rgba(255, 255, 255, .2); stroke-dasharray: 3 4; }
.tpl-topo .tp-ic { fill: color-mix(in srgb, var(--c) 14%, transparent); stroke: color-mix(in srgb, var(--c) 34%, transparent); }
.tpl-topo .tp-i { color: var(--c); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tpl-topo .tp-t1 { fill: var(--text); font: 500 13px var(--font); letter-spacing: -.01em; }
.tpl-topo .tp-t2 { fill: var(--text-3); font: 400 11px var(--font); }
.tpl-topo .tp-el { fill: var(--text-3); font: 400 9.5px var(--mono); text-anchor: middle; paint-order: stroke; stroke: #090a0d; stroke-width: 4px; stroke-linejoin: round; transition: fill .25s, opacity .3s; pointer-events: none; }
.tpl-topo .tp-el.is-hot { fill: var(--ember-2); }
.tpl-topo .tp-el.is-dim { opacity: .25; }
.tpl-topo .tp-el.is-off { opacity: 0; }
.tpl-topo .tp-n--ghost .tp-t1 { fill: var(--text-3); }
.tpl-topo .tp-dot { fill: var(--green); transition: fill .3s; }
.tpl-topo .tp-dot.is-idle { fill: var(--text-4); }
.tpl-topo .tp-bar { fill: rgba(255, 255, 255, .08); }
.tpl-topo .tp-bar-i { fill: var(--amber); }
.tpl-topo .tp-n.is-pending { opacity: .22; }
.tpl-topo .tp-n.is-pending .tp-b { stroke-dasharray: 3 4; }
.tpl-topo .tp-n.is-creating .tp-dot, .tpl-topo .tp-n.is-building .tp-dot { fill: var(--amber); animation: blink 1s steps(2) infinite; }
.tpl-topo .tp-n.is-creating .tp-b { stroke: rgba(255, 181, 71, .5); }
.tpl-topo .tp-n.is-checking .tp-dot { fill: var(--sky); }
.tpl-topo .tp-n.is-new { animation: tplNodeIn .6s var(--ease); }
/* a request on its way: a bright packet with a halo, the wire it takes lights up, the service it reaches flashes */
.tpl-topo .tp-e.is-pulse { stroke-width: 1.8; }
.tpl-topo .tp-e--pub.is-pulse, .tpl-topo .tp-e--out.is-pulse { stroke: rgba(255, 138, 98, .9); }
.tpl-topo .tp-e--priv.is-pulse { stroke: rgba(115, 198, 248, .72); }
.tpl-topo .tp-e--mount.is-pulse { stroke: rgba(255, 181, 71, .8); }
.tpl-topo .tp-halo { opacity: .26; }
.tpl-topo .tp-n.is-ping .tp-b { stroke: color-mix(in srgb, var(--c) 75%, transparent); fill: color-mix(in srgb, var(--c) 7%, #121418); }
.tpl-topo .tp-n--net.is-ping .tp-b { fill: rgba(255, 106, 61, .14); stroke: rgba(255, 138, 98, .8); }

/* the stack glyph: the shape of a template (cards, the wall readout) */
.tpl-gl { display: block; flex: none; width: 92px; height: 36px; overflow: visible; }
.tpl-gl__e { fill: none; stroke: rgba(255, 255, 255, .17); stroke-width: 1; }
.tpl-gl__e--pub { stroke: rgba(255, 138, 98, .42); }
.tpl-gl__e--out { stroke: rgba(255, 138, 98, .36); stroke-dasharray: 1.5 2.5; }
.tpl-gl__e--mount { stroke: rgba(255, 181, 71, .42); stroke-dasharray: 2 2.5; }
.tpl-gl__f { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 1.4 7.6; opacity: 0; transition: opacity .3s; }
.tpl-gl__f--pub, .tpl-gl__f--out { stroke: #ffc2ab; }
.tpl-gl__f--priv { stroke: var(--sky); }
.tpl-gl__f--mount { stroke: var(--amber); }
.tpl-gl__n { fill: var(--c); opacity: .85; transition: opacity .3s; }
.tpl-gl__n--net { fill: rgba(255, 106, 61, .14); stroke: var(--c); stroke-width: 1.2; }
.tpl-gl__n--ghost { fill: none; stroke: var(--c); stroke-width: 1.1; stroke-dasharray: 1.6 1.6; }
.tpl-gl__n--volume { fill: color-mix(in srgb, var(--c) 16%, transparent); stroke: var(--c); stroke-width: 1.2; }
.tpl-gl--empty .tpl-gl__e { stroke: rgba(255, 255, 255, .16); stroke-dasharray: 2 2.5; }
.tpl-gl--empty .tpl-gl__f { stroke: var(--ember-2); }
.tpl-card:hover .tpl-gl__f, .tpl-card:focus-within .tpl-gl__f, .tpl-card--you:hover .tpl-gl__f, .tpl-card--you:focus-visible .tpl-gl__f, .tpl-wall__gl .tpl-gl__f { opacity: 1; animation: tplFlow 1.15s linear infinite; }
.tpl-card:hover .tpl-gl__n, .tpl-card:focus-within .tpl-gl__n, .tpl-wall__gl .tpl-gl__n { opacity: 1; }

/* the dotted board behind a graph */
.tpl-board { position: relative; overflow: hidden; border-radius: var(--r-md); background-color: #090a0d; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: 20px 20px; background-position: 10px 10px; box-shadow: inset 0 0 0 1px var(--line); }
.tpl-board::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(75% 75% at 50% 50%, transparent, rgba(9, 10, 13, .8)); }
.tpl-board .tpl-topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.tpl-board__hint { position: absolute; left: 14px; bottom: 12px; font: 400 11px/1 var(--font); color: var(--text-3); pointer-events: none; }
.tpl-board__geo { position: absolute; right: 14px; bottom: 12px; font: 400 10.5px/1 var(--mono); color: var(--text-4); pointer-events: none; }
.tpl-run__board .tpl-board__geo { left: 16px; right: auto; bottom: 14px; }
.tpl-run__short { display: none; }

/* ---------- 02 catalogue ---------- */
.tpl-resbar { position: sticky; top: calc(var(--nav) + 12px); z-index: 20; display: flex; align-items: center; gap: 16px; height: 56px; margin-bottom: 20px; padding: 0 10px 0 10px; border-radius: 14px; background: rgba(12, 13, 16, .8); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -24px rgba(0, 0, 0, .9); }
.tpl-resbar__search { display: flex; flex: none; align-items: center; gap: 9px; width: 260px; height: 36px; padding: 0 10px 0 12px; border-radius: 9px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background-color .2s; }
.tpl-resbar__search:focus-within { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 122, 82, .7), 0 0 0 3px rgba(255, 106, 61, .12); }
.tpl-resbar__search svg.i { width: 15px; height: 15px; color: var(--text-3); }
.tpl-resbar__in { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; font: 400 14px/1 var(--font); color: var(--text); background: none; }
.tpl-resbar__in::placeholder { color: var(--text-4); }
.tpl-resbar__in::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.tpl-resbar__n { flex: none; margin: 0; font: 400 12px/1 var(--mono); color: var(--text-3); white-space: nowrap; }
.tpl-resbar__n b { font-weight: 500; color: var(--text); }
.tpl-resbar__sl { display: none; }
.tpl-resbar__fc { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 2px; padding: 0 4px; border-radius: 9px; font: 600 10px/1 var(--mono); color: #190a04; background: var(--ember); box-shadow: 0 0 0 3px rgba(255, 106, 61, .16); animation: tplTagIn .3s var(--ease); }
.tpl-resbar__edit.is-on { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 122, 82, .4); }
.tpl-resbar__tags { display: flex; flex: 1; gap: 6px; min-width: 0; margin: 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.tpl-resbar__tags::-webkit-scrollbar { display: none; }
.tpl-tag { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border: 0; border-radius: 8px; font: 400 12px/1 var(--mono); color: var(--text); white-space: nowrap; background: rgba(255, 106, 61, .1); box-shadow: inset 0 0 0 1px rgba(255, 122, 82, .38); cursor: pointer; transition: background-color .2s, box-shadow .2s; animation: tplTagIn .3s var(--ease); }
.tpl-tag:hover { background: rgba(255, 106, 61, .16); box-shadow: inset 0 0 0 1px rgba(255, 122, 82, .6); }
.tpl-tag svg.i { width: 13px; height: 13px; color: var(--ember-2); }
.tpl-tag span { color: var(--text-3); }
.tpl-resbar__none { flex: none; font: 400 12.5px/1 var(--font); color: var(--text-4); white-space: nowrap; }
.tpl-resbar__edit { flex: none; margin-left: auto; }
.tpl-resbar__edit svg { width: 13px; height: 13px; }

.tpl-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tpl-card { display: flex; flex-direction: column; min-width: 0; padding: 20px 20px 16px; transition: translate .35s var(--ease), box-shadow .3s; }
.js .tpl-card[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease), translate .35s var(--ease), box-shadow .3s; }
.tpl-card:hover { translate: 0 -3px; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 60px -30px color-mix(in srgb, var(--c) 40%, transparent); }
.tpl-card:has(.tpl-card__btn:focus-visible) { outline: 2px solid var(--ember); outline-offset: 3px; }
.tpl-card__top { display: flex; align-items: center; gap: 12px; }
.tpl-card__top .mono-tile { transition: box-shadow .3s, background-color .3s; }
.tpl-card:hover .tpl-card__top .mono-tile { background: color-mix(in srgb, var(--c) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 0 24px -4px color-mix(in srgb, var(--c) 50%, transparent); }
.tpl-card__cat { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.tpl-card__gl { margin: -4px -2px -4px auto; }
.tpl-card__name { margin: 18px 0 8px; font: 500 17.5px/1.25 var(--font); letter-spacing: -.02em; }
.tpl-card__btn { padding: 0; border: 0; font: inherit; letter-spacing: inherit; text-align: left; color: inherit; background: none; cursor: pointer; }
.tpl-card__btn::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tpl-card__btn:focus-visible { outline: none; }
.tpl-card__desc { display: -webkit-box; flex: none; margin: 0 0 18px; overflow: hidden; font-size: 14px; line-height: 1.55; color: var(--text-2); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tpl-card .tpl-svc { min-height: 24px; margin-top: auto; margin-bottom: 16px; }
.tpl-card__foot { display: flex; align-items: center; gap: 10px; padding-top: 14px; font: 400 12px/1 var(--font); color: var(--text-3); box-shadow: inset 0 1px 0 var(--line); }
.tpl-card__rt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-card__go { width: 15px; height: 15px; color: var(--text-4); transition: transform .25s var(--ease), color .25s; }
.tpl-card:hover .tpl-card__go { color: var(--ember-2); transform: translateX(3px); }
.tpl-ghost { z-index: 0; pointer-events: none; }
.tpl-grid.is-clipped > [data-card]:nth-child(n + 9) { display: none; }
.tpl-more { margin-top: 14px; }
.tpl-more .btn svg { width: 15px; height: 15px; }
.tpl-empty { display: flex; align-items: center; gap: 20px; padding: 26px 28px; }
.tpl-empty__txt { flex: 1; min-width: 0; }
.tpl-empty__t { margin: 0 0 6px; font: 500 18px/1.3 var(--font); letter-spacing: -.02em; }
.tpl-empty__txt p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.tpl-empty__acts { display: flex; flex: none; flex-wrap: wrap; gap: 8px; }

/* ---------- steps (03 replay and the drawer) ---------- */
.tpl-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; }
.tpl-steps li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 13px 0; box-shadow: inset 0 1px 0 var(--line); }
.tpl-steps li:first-child { box-shadow: none; }
.tpl-steps__m { position: relative; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; font: 500 10px/1 var(--mono); color: var(--text-4); box-shadow: inset 0 0 0 1.5px var(--text-4); transition: background-color .3s, box-shadow .3s, color .3s; }
.tpl-steps li.is-on .tpl-steps__m { color: var(--amber); box-shadow: inset 0 0 0 1.5px var(--amber), 0 0 0 4px rgba(255, 181, 71, .14); }
.tpl-steps li.is-done .tpl-steps__m { color: transparent; background: var(--green); box-shadow: none; }
.tpl-steps li.is-done .tpl-steps__m::before { content: ''; position: absolute; left: 6.5px; top: 6.5px; width: 7px; height: 4px; border: solid #08130d; border-width: 0 0 1.8px 1.8px; transform: rotate(-45deg); }
.tpl-steps__b { min-width: 0; }
.tpl-steps__b b { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.35; color: var(--text-3); transition: color .3s; }
.tpl-steps__b span { display: block; margin-top: 3px; overflow: hidden; font: 400 12px/1.45 var(--font); color: var(--text-4); text-overflow: ellipsis; transition: color .3s; }
.tpl-steps li.is-on b, .tpl-steps li.is-done b { color: var(--text); }
.tpl-steps li.is-on span, .tpl-steps li.is-done span { color: var(--text-3); }
.tpl-steps__t { padding-top: 2px; font: 400 11.5px/1 var(--mono); color: var(--text-4); font-variant-numeric: tabular-nums; }
.tpl-steps li.is-done .tpl-steps__t { color: var(--text-3); }
.tpl-steps__p { display: block; height: 3px; margin-top: 9px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .07); }
.tpl-steps__p i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), #ffd28c); }
.tpl-steps li.is-done .tpl-steps__p i { background: var(--green); }

/* ---------- 03 the replay ---------- */
.tpl-run { position: relative; }
.tpl-run__bar { gap: 16px; height: 54px; padding: 0 14px 0 16px; }
.tpl-run__crumb { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13.5px; color: var(--text-3); white-space: nowrap; }
.tpl-run__crumb svg.i { width: 18px; height: 18px; stroke: none; }
.tpl-run__crumb i { font-style: normal; color: var(--text-4); }
.tpl-run__crumb b { overflow: hidden; font-weight: 500; color: var(--text); text-overflow: ellipsis; }
.tpl-run__pick { margin-left: auto; }
.tpl-run__pick button { white-space: nowrap; }
.tpl-run__bar > .state { flex: none; min-width: 78px; justify-content: center; }
.tpl-run__main { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.tpl-steps--run { padding: 14px 26px 14px; box-shadow: inset -1px 0 0 var(--line); }
.tpl-run__stage { display: grid; grid-template-rows: auto auto; min-width: 0; }
.tpl-run__board { height: 266px; margin-right: 1px; border-radius: 0; box-shadow: none; }
.tpl-run__box { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 8px; font: 500 12px/1 var(--mono); color: var(--text); background: rgba(14, 15, 19, .9); box-shadow: inset 0 0 0 1px rgba(255, 122, 82, .45), 0 10px 30px -10px rgba(255, 106, 61, .5); opacity: 0; transform: translateY(-6px) scale(.96); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.tpl-run__box svg.i { width: 14px; height: 14px; color: var(--ember-2); }
.tpl-run__box em { font-style: normal; font-weight: 400; color: var(--green); }
.tpl-run__box.is-on { opacity: 1; transform: none; }
.tpl-run__log { display: flex; flex-direction: column; justify-content: flex-end; height: 222px; padding: 16px 24px; overflow: hidden; font-size: 12.5px; line-height: 1.75; white-space: normal; background: rgba(0, 0, 0, .3); box-shadow: inset 0 1px 0 var(--line); -webkit-mask: linear-gradient(180deg, transparent, #000 22%); mask: linear-gradient(180deg, transparent, #000 22%); }
.tpl-run__log .t { color: var(--text-4); }
.tpl-run__scrub { display: grid; grid-template-columns: 38px minmax(0, 1fr) 72px; align-items: center; gap: 18px; padding: 16px 20px 6px; box-shadow: inset 0 1px 0 var(--line); }
.tpl-run__play { width: 38px; height: 38px; border-radius: 10px; color: var(--text); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.tpl-run__play:hover { background: rgba(255, 255, 255, .09); }
.tpl-run__track { position: relative; padding-bottom: 22px; }
.tpl-run__range { display: block; }
/* focus: a ring on the thumb instead of a box around the whole track */
.tpl-run__range:focus-visible { outline: none; }
.tpl-run__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #0b0c0f, 0 0 0 5px var(--ember), 0 0 18px 2px rgba(255, 106, 61, .45); }
.tpl-run__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px #0b0c0f, 0 0 0 5px var(--ember), 0 0 18px 2px rgba(255, 106, 61, .45); }
.tpl-run__ticks { position: absolute; left: 8px; right: 8px; top: 26px; height: 16px; margin: 0; padding: 0; list-style: none; }
.tpl-run__ticks li { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.tpl-run__ticks li::before { content: ''; position: absolute; left: 50%; top: -12px; width: 1px; height: 6px; background: var(--line-3); transition: background-color .25s; }
.tpl-run__ticks button { display: block; margin: -4px -7px; padding: 4px 7px; border: 0; border-radius: 6px; font: 400 11px/1 var(--font); color: var(--text-3); background: none; cursor: pointer; transition: color .25s, background-color .2s; }
.tpl-run__ticks button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.tpl-run__ticks button:focus-visible { outline: 2px solid var(--ember); outline-offset: 0; }
.tpl-run__ticks li.is-done button { color: var(--text-2); }
.tpl-run__ticks li.is-cur button { color: var(--ember-2); }
.tpl-run__ticks li.is-done::before { background: rgba(255, 138, 98, .6); }
.tpl-run__ticks li:first-child { transform: none; }
.tpl-run__ticks li:first-child::before { left: 0; }
.tpl-run__tk-s { display: none; }
.tpl-run__peek { position: absolute; bottom: calc(100% - 4px); left: 0; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 9px; border-radius: 7px; font: 400 11.5px/1 var(--font); color: var(--text-3); white-space: nowrap; pointer-events: none; background: rgba(16, 17, 21, .96); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 24px -12px rgba(0, 0, 0, .9); opacity: 0; transform: translate(-50%, 4px); transition: opacity .18s, transform .18s var(--ease); }
.tpl-run__peek b { font-weight: 500; color: var(--text); }
.tpl-run__peek.is-on { opacity: 1; transform: translate(-50%, 0); }
.tpl-run__t { font: 500 14px/1 var(--mono); text-align: right; color: var(--text); }
.tpl-run__note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 20px 16px 76px; font: 400 12px/1.4 var(--font); color: var(--text-3); }
.tpl-run__note svg.i { width: 14px; height: 14px; color: var(--text-3); }

/* ---------- 04 config ---------- */
.tpl-cfgsplit { align-items: start; }
.tpl-opts { margin: 34px 0 0; padding: 0; border: 0; }
.tpl-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; padding: 15px 0; cursor: pointer; box-shadow: inset 0 1px 0 var(--line); }
.tpl-opt:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.tpl-opt .switch { margin-top: 1px; }
.tpl-opt__txt b { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--text); }
.tpl-opt__txt > span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--text-3); }
.tpl-opt:hover .tpl-opt__txt > span { color: var(--text-2); }
.tpl-cfg { overflow: hidden; }
.tpl-cfg__bar { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 18px; box-shadow: inset 0 -1px 0 var(--line); }
.tpl-cfg__bar .label svg.i { color: var(--text-3); }
.tpl-cfg__repo { font: 400 12px/1 var(--mono); color: var(--text-4); }
.tpl-cfg__diff { margin-left: auto; font: 500 12.5px/1 var(--font); color: var(--text-4); transition: color .25s; }
.tpl-cfg__diff.is-on { color: var(--green); }
.tpl-cfg__board { height: 212px; margin: 0 1px; border-radius: 0; box-shadow: inset 0 -1px 0 var(--line); }
.tpl-cfg__kit { position: absolute; bottom: 12px; right: 12px; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 9px; border-radius: 7px; font: 500 11.5px/1 var(--mono); color: var(--ember-2); background: var(--ember-dim); box-shadow: inset 0 0 0 1px rgba(255, 106, 61, .3); animation: tplTagIn .35s var(--ease); }
.tpl-cfg__kit svg.i { width: 14px; height: 14px; }
.tpl-cfg__code { max-height: 352px; overflow-y: auto; border-radius: 0; box-shadow: none; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.tpl-cfg__foot { display: flex; align-items: center; gap: 14px; padding: 14px 18px 16px; box-shadow: inset 0 1px 0 var(--line); }
.tpl-cfg__foot .cmd { flex: none; width: auto; height: 38px; padding-right: 14px; }
.tpl-cfg__next { font: 400 12.5px/1.4 var(--font); color: var(--text-3); }

/* code with line numbers (drawer + config) */
.tpl-code { position: relative; margin: 0; padding: 12px 0; overflow-x: auto; border-radius: var(--r-sm); font: 400 12.5px/1.75 var(--mono); color: var(--text-2); background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line); tab-size: 2; }
.tpl-ln { position: relative; display: block; min-width: max-content; min-height: 1.75em; padding: 0 20px 0 52px; white-space: pre; transition: background-color .3s; }
.tpl-ln::before { content: attr(data-n); position: absolute; left: 0; width: 34px; text-align: right; color: var(--text-4); font-variant-numeric: tabular-nums; }
.tpl-ln.is-add { background: rgba(61, 220, 151, .06); }
.tpl-ln.is-add::after { content: '+'; position: absolute; left: 39px; color: var(--green); }
.tpl-ln.is-new { animation: tplLineIn .7s var(--ease); }
.tpl-ln.is-hot { background: rgba(255, 106, 61, .09); }
.tpl-ln.is-hot::before { color: var(--ember-2); }
.tpl-code .c-h { color: var(--ember-2); }
.tpl-code .c-q { color: var(--text-4); }
.tpl-code .c-s { color: var(--green); }
.tpl-code .c-n { color: var(--sky); }
.tpl-code .c-b { color: var(--violet); }
.tpl-code .c-c { color: var(--text-4); }

/* ---------- 05 submit ---------- */
.tpl-subsplit { align-items: center; }
.tpl-subsplit .lead code { white-space: nowrap; }
.tpl-sub__mail { margin: 22px 0 0; font-size: 14px; color: var(--text-3); }
.tpl-sub__mail .mono { color: var(--text-2); user-select: all; }
.tpl-pack { padding: 22px 24px 22px; }
.tpl-pack__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tpl-pack__list { margin: 16px 0 0; padding: 0; border: 0; }
.tpl-pack__item { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 14px 0; cursor: pointer; box-shadow: inset 0 1px 0 var(--line); }
.tpl-pack__item input { position: absolute; top: 15px; left: 0; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.tpl-pack__box { position: relative; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-3); transition: background-color .25s, box-shadow .25s, transform .25s var(--ease); }
.tpl-pack__box::after { content: ''; position: absolute; inset: 4px; background: #190a04; -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease); }
.tpl-pack__item input:checked + .tpl-pack__box { background: var(--ember); box-shadow: 0 0 0 4px rgba(255, 106, 61, .14); }
.tpl-pack__item input:checked + .tpl-pack__box::after { opacity: 1; transform: none; }
.tpl-pack__item input:focus-visible + .tpl-pack__box { outline: 2px solid var(--ember); outline-offset: 3px; }
.tpl-pack__item:hover .tpl-pack__box { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.tpl-pack__txt b { display: block; font-weight: 500; font-size: 15px; line-height: 1.35; }
.tpl-pack__txt span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--text-3); }
.tpl-pack__meter { height: 4px; margin: 6px 0 18px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .06); }
.tpl-pack__meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 106, 61, .5), var(--ember)); transition: width .5s var(--ease), background .3s; }
.tpl-pack.is-ready .tpl-pack__meter i { background: var(--green); }
.tpl-pack__row { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 12px 0 10px; border-radius: 12px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .35s, box-shadow .35s; }
.tpl-pack.is-ready .tpl-pack__row { background: rgba(61, 220, 151, .05); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, .25); }
/* the tile your template gets: it assembles as the list fills (dashed slot, frame, health dot, symbol, glow) */
.tpl-pack__tile { position: relative; flex: none; width: 44px; height: 44px; border-radius: 10px; --c: #ff8a62; background: transparent; box-shadow: inset 0 0 0 1px transparent; outline: 1px dashed var(--line-3); outline-offset: -1px; transition: background-color .45s var(--ease), box-shadow .45s var(--ease), outline-color .3s, translate .45s var(--ease); }
.tpl-pack__tn { position: absolute; top: 6px; left: 7px; font: 500 9px/1 var(--mono); letter-spacing: .04em; color: var(--text-4); transition: color .3s; }
.tpl-pack__tile i { position: absolute; top: 7px; width: 4px; height: 4px; border-radius: 50%; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); }
.tpl-pack__tile i:nth-of-type(1) { right: 7px; background: var(--k, #ff8a62); }
.tpl-pack__tile i:nth-of-type(2) { right: 13.5px; background: var(--green); }
.tpl-pack__tile b { position: absolute; left: 7px; bottom: 6px; font: 500 17px/1 var(--font); letter-spacing: -.035em; color: var(--c); opacity: 0; transform: translateY(5px); filter: blur(3px); transition: opacity .4s var(--ease), transform .45s var(--ease), filter .45s var(--ease); }
.tpl-pack__tile.is-1 { outline-color: transparent; background: color-mix(in srgb, var(--c) 7%, #0e1013); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 26%, transparent); }
.tpl-pack__tile.is-1 .tpl-pack__tn { color: var(--text-3); }
.tpl-pack__tile.is-1 i:nth-of-type(1), .tpl-pack__tile.is-2 i:nth-of-type(2) { opacity: 1; transform: none; }
.tpl-pack__tile.is-3 b { opacity: 1; transform: none; filter: none; }
.tpl-pack__tile.is-4 { translate: 0 -2px; background: color-mix(in srgb, var(--c) 15%, #0e1013); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 62%, transparent), 0 0 0 3px color-mix(in srgb, var(--c) 13%, transparent), 0 14px 30px -12px color-mix(in srgb, var(--c) 55%, transparent); }
.tpl-pack__msg { flex: 1; min-width: 0; }
.tpl-pack__msg b { display: block; font: 500 13.5px/1.3 var(--mono); }
.tpl-pack__msg span { display: block; overflow: hidden; font: 400 12px/1.45 var(--font); color: var(--text-3); text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 06 FAQ ---------- */
.tpl-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.tpl-faq__head { position: sticky; top: calc(var(--nav) + 40px); }
.tpl-faq__list p { text-wrap: pretty; }

/* ---------- closing ---------- */
.tpl-cta__mark { width: 52px; height: 52px; margin: 0 auto 32px; filter: drop-shadow(0 12px 30px rgba(255, 106, 61, .45)); }
.tpl-cta .lead code { white-space: nowrap; }
.tpl-cta__cmd { margin-top: 22px; }
.tpl-cta { padding-bottom: clamp(56px, 6vw, 80px); }
.tpl-rail { margin-top: clamp(72px, 8vw, 104px); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.tpl-rail__track { display: flex; width: max-content; animation: marquee 110s linear infinite; }
.tpl-rail__t { position: relative; display: grid; flex: none; align-content: end; width: 68px; height: 68px; margin-right: 10px; padding: 9px; border-radius: 12px; text-align: left; background: color-mix(in srgb, var(--c) 6%, #0d0e11); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent); }
.tpl-rail__t b { font: 500 21px/1 var(--font); letter-spacing: -.035em; color: color-mix(in srgb, var(--c) 80%, #0d0e11); }
.tpl-rail__t i { margin-top: 5px; overflow: hidden; font: normal 400 9.5px/1 var(--mono); color: var(--text-4); white-space: nowrap; }
.tpl-rail__t--you i { font: normal 400 10.5px/1 var(--font); }
.tpl-rail__t--you { display: flex; align-items: center; justify-content: center; gap: 8px; width: 146px; background: rgba(255, 106, 61, .04); box-shadow: none; outline: 1px dashed rgba(255, 122, 82, .5); outline-offset: -1px; }
.tpl-rail__t--you svg.i { width: 16px; height: 16px; color: var(--ember-2); }
.tpl-rail__t--you i { margin: 0; font-size: 11px; color: var(--ember-2); }

/* ---------- the drawer ---------- */
.tpl-drawer { position: fixed; inset: 0 0 0 auto; width: min(700px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; overflow: visible; color: var(--text); background: transparent; }
.tpl-drawer::backdrop { background: rgba(5, 6, 8, .64); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.tpl-drawer[open]::backdrop { animation: tplFade .35s var(--ease); }
.tpl-drawer[open] .tpl-drawer__panel { animation: tplSlide .5s var(--ease); }
.tpl-drawer.is-closing .tpl-drawer__panel { transform: translateX(48px); opacity: 0; transition: transform .26s var(--ease), opacity .26s; }
.tpl-drawer.is-closing::backdrop { opacity: 0; transition: opacity .26s; }
.tpl-drawer__panel { display: flex; flex-direction: column; height: 100%; background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 240px), #0b0c0f; box-shadow: inset 1px 0 0 var(--line-2), -50px 0 120px -30px rgba(0, 0, 0, .9); }
.tpl-drawer__head { display: flex; flex: none; align-items: center; gap: 14px; padding: 16px 16px 16px 24px; box-shadow: inset 0 -1px 0 var(--line); }
.tpl-drawer__head .mono-tile { width: 44px; height: 44px; border-radius: 12px; font-size: 14px; }
.tpl-drawer__id { flex: 1; min-width: 0; }
.tpl-drawer__k { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0 0 7px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.tpl-drawer__k > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-drawer__k .badge { flex: none; height: 20px; padding: 0 7px; font-size: 10.5px; letter-spacing: 0; text-transform: none; }
.tpl-drawer__name { margin: 0; overflow: hidden; font: 600 22px/1.15 var(--font); letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; outline: none; }
.tpl-drawer__nav { display: flex; flex: none; align-items: center; gap: 2px; }
.tpl-drawer__pos { margin-right: 8px; font: 400 11.5px/1 var(--mono); color: var(--text-4); }
.tpl-drawer__x { margin-left: 6px; box-shadow: inset 0 0 0 1px var(--line-2); }
.tpl-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 34px; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.tpl-drawer__body.is-swap { animation: tplSwap .4s var(--ease); }
.tpl-drawer__desc { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.tpl-drawer__stack { margin: 16px 0 0; padding: 0; list-style: none; }
.tpl-dsec { margin-top: 30px; }
.tpl-dsec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tpl-dsec__t { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.tpl-dsec__t span { color: var(--ember); }
.tpl-dsec__m { font: 400 12.5px/1 var(--font); color: var(--text-4); }
.tpl-board--drawer { height: 288px; }
.tpl-dsvc { margin: 10px 0 0; padding: 0; list-style: none; }
.tpl-dsvc li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 10px; box-shadow: inset 0 -1px 0 var(--line); transition: background-color .2s; }
.tpl-dsvc li:last-child { box-shadow: none; }
.tpl-dsvc li:hover, .tpl-dsvc li.is-hot { background: rgba(255, 255, 255, .03); }
.tpl-dsvc .mono-tile { width: 28px; height: 28px; border-radius: 8px; }
.tpl-dsvc .mono-tile svg.i { width: 14px; height: 14px; }
.tpl-dsvc__m { min-width: 0; }
.tpl-dsvc__m b { display: block; font: 500 14px/1.3 var(--font); color: var(--text); }
.tpl-dsvc__m span { display: block; overflow: hidden; font: 400 12px/1.45 var(--font); color: var(--text-3); text-overflow: ellipsis; white-space: nowrap; }
.tpl-dsvc em { font: normal 400 11.5px/1 var(--mono); color: var(--text-4); white-space: nowrap; }
.tpl-demo-note { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 400 12.5px/1.45 var(--font); color: var(--text-3); }
.tpl-demo-note svg.i { width: 14px; height: 14px; color: var(--text-3); }
.tpl-dmeter { height: 3px; margin: 4px 0 12px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .06); }
.tpl-dmeter i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, rgba(255, 106, 61, .45), var(--ember)); transition: background .4s; }
.tpl-dmeter.is-done i { background: var(--green); }
.tpl-dlog { display: flex; flex-direction: column; justify-content: flex-end; height: 178px; padding: 14px 18px; overflow: hidden; border-radius: var(--r-sm); font-size: 12px; line-height: 1.75; white-space: normal; box-shadow: inset 0 0 0 1px var(--line); -webkit-mask: linear-gradient(180deg, transparent, #000 24%); mask: linear-gradient(180deg, transparent, #000 24%); }
.tpl-dlog .t { color: var(--text-4); }
.tpl-lg { display: block; flex: none; padding-left: 7ch; text-indent: -7ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.tpl-run__log.is-empty, .tpl-dlog.is-empty { justify-content: center; align-items: center; background-image: radial-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1.2px); background-size: 14px 14px; -webkit-mask: none; mask: none; }
.tpl-lg--hint { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 0 12px; font: 400 13px/1.4 var(--font); color: var(--text-3); white-space: normal; text-align: left; text-wrap: balance; }
.tpl-lg--hint svg.i { flex: none; width: 22px; height: 22px; padding: 5px; border-radius: 50%; color: var(--ember); background: var(--ember-dim); }
.tpl-dctl { display: flex; align-items: flex-end; gap: 12px; margin-top: 14px; }
.tpl-dctl__region { flex: 1; min-width: 0; gap: 6px; }
.tpl-dctl__region label { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); }
.tpl-dctl .btn { flex: none; }
.tpl-dctl .btn svg { width: 13px; height: 13px; }
.tpl-drawer__foot { display: flex; flex: none; align-items: center; gap: 12px; padding: 14px 16px 14px 24px; background: rgba(9, 10, 12, .9); box-shadow: inset 0 1px 0 var(--line); }
.tpl-drawer__cmd { flex: 1; min-width: 0; margin: 0; }
html.tpl-lock { overflow: hidden; }
.tpl-nw { white-space: nowrap; }

/* the last slot of the catalogue: your stack */
.tpl-card--you { position: relative; padding: 19px 19px 15px; border: 1px dashed var(--line-3); border-radius: var(--r); color: var(--text); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .012) 0 8px, transparent 8px 16px); transition: translate .35s var(--ease), border-color .3s, background-color .3s, box-shadow .3s; }
.js .tpl-card--you[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease), translate .35s var(--ease), border-color .3s, background-color .3s, box-shadow .3s; }
.tpl-card--you:hover, .tpl-card--you:focus-visible { translate: 0 -3px; border-color: rgba(255, 122, 82, .55); background-color: rgba(255, 106, 61, .045); box-shadow: 0 30px 60px -34px rgba(255, 106, 61, .45); outline: none; }
.tpl-card--you .tpl-card__name { display: block; }
.tpl-card--you .tpl-card__desc { color: var(--text-3); }
.tpl-card--you .tpl-card__foot { margin-top: auto; }
.tpl-card--you .tpl-card__rt { color: var(--text-2); }
.tpl-card__plus { --c: var(--text-3); transition: color .3s, background-color .3s, box-shadow .3s; }
.tpl-card__plus svg.i { transition: transform .4s var(--ease); }
.tpl-card--you:hover .tpl-card__plus, .tpl-card--you:focus-visible .tpl-card__plus { --c: var(--ember-2); }
.tpl-card--you:hover .tpl-card__plus svg.i { transform: rotate(90deg); }
.tpl-card--you:hover .tpl-card__go, .tpl-card--you:focus-visible .tpl-card__go { color: var(--ember-2); transform: translateX(3px); }
.tpl-grid.is-clipped > .tpl-card--you { display: none; }

/* the featured row's pager (phones) */
.tpl-pager { display: none; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.tpl-pager__b { width: 36px; height: 36px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.tpl-pager__b:disabled { opacity: .35; pointer-events: none; }
.tpl-pager__dots { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.tpl-pager__dots button { display: grid; place-items: center; width: 22px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.tpl-pager__dots i { display: block; width: 6px; height: 6px; border-radius: 3px; background: var(--line-3); transition: width .35s var(--ease), background-color .35s; }
.tpl-pager__dots [aria-current="true"] i { width: 18px; background: var(--ember); }
.tpl-pager__dots button:focus-visible { outline: 2px solid var(--ember); outline-offset: -4px; border-radius: 8px; }
.tpl-pager__n { min-width: 40px; font: 400 11.5px/1 var(--mono); color: var(--text-3); text-align: center; }

/* hints that read differently with a finger */
.tpl-tap { display: none; }
@media (hover: none) {
  .tpl-hov { display: none; }
  .tpl-tap { display: inline; }
}

/* ---------- keyframes ---------- */
@keyframes tplTileIn { from { opacity: 0; transform: translateY(10px) scale(.92); filter: blur(4px); } }
@keyframes tplSweep { 0% { transform: translateX(-110%); } 36%, 100% { transform: translateX(260%); } }
@keyframes tplPing { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tplNodeIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes tplLineIn { 0% { background: rgba(61, 220, 151, .22); } 100% { background: rgba(61, 220, 151, .06); } }
@keyframes tplTagIn { from { opacity: 0; transform: scale(.92); } }
@keyframes tplFade { from { opacity: 0; } }
@keyframes tplSlide { from { transform: translateX(56px); opacity: 0; } }
@keyframes tplSwap { from { opacity: .3; transform: translateY(6px); } }
@keyframes tplFlow { to { stroke-dashoffset: -18; } }
@keyframes tplLogIn { from { opacity: 0; transform: translateX(-6px); } }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .tpl-hero__top { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .tpl-feat, .tpl-feat--wide { grid-column: span 6; }
  .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tpl-run__main { grid-template-columns: minmax(0, 1fr); }
  .tpl-steps--run { box-shadow: inset 0 -1px 0 var(--line); }
  .tpl-run__board { margin: 0 1px; }
  .tpl-run__crumb { display: none; }
  .tpl-run__pick { margin-left: 0; }
  .tpl-faq { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tpl-faq__head { position: static; }
}
@media (min-width: 861px) and (max-width: 1120px) {
  .tpl-card--you { display: none; }
  .tpl-hero__top { grid-template-columns: minmax(0, 1fr) 456px; gap: 40px; }
  .tpl-hero__title { font-size: clamp(54px, 7vw, 76px); }
  .tpl-wall__hint { display: none; }
  /* tiles are about 55px here: no caption (the readout names the tile), the symbol sits in the middle */
  .tpl-tile__s { display: none; }
  .tpl-tile__m { left: 0; right: 0; bottom: auto; top: 50%; font-size: 19px; text-align: center; transform: translateY(-38%); }
  .tpl-tile--you em { display: none; }
  .tpl-facts > div { padding: 2px 20px; }
  .tpl-facts dt { letter-spacing: .08em; white-space: nowrap; }
  .tpl-wall__legend { display: grid; grid-template-columns: repeat(4, max-content); justify-content: space-between; }
}
@media (min-width: 861px) and (max-width: 980px) {
  .tpl-pill__sep, .tpl-pill__more { display: none; }
}
@media (max-width: 860px) {
  .tpl-feat, .tpl-feat--wide { grid-column: span 12; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-console__row { flex-wrap: wrap; gap: 12px 16px; }
  .tpl-search { flex-basis: 100%; }
  .tpl-console__acts { margin-left: auto; }
  .tpl-run__bar { flex-wrap: wrap; height: auto; padding: 12px; }
  .tpl-run__bar .dots { display: none; }
  .tpl-run__pick { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .tpl-run__pick::-webkit-scrollbar { display: none; }
}
@media (max-width: 720px) {
  .tpl-hero { padding-top: 32px; }
  .tpl-hero__title { margin-top: 24px; font-size: clamp(44px, 12.6vw, 64px); line-height: .92; }
  .tpl-hero__lead { margin-top: 22px; }
  .tpl-pill__sep, .tpl-pill__more { display: none; }
  .tpl-facts { margin-top: 28px; }
  .tpl-facts > div { flex: 1; padding: 2px 12px; }
  .tpl-facts dt { letter-spacing: .06em; white-space: nowrap; }
  .tpl-facts dd { font-size: 26px; }
  .tpl-wall { padding: 12px 12px 12px; }
  .tpl-wall__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin-top: 12px; }
  .tpl-tile--you { grid-column: span var(--sp, 1); }
  .tpl-tile--you.is-wide:not(.is-wide-p) { aspect-ratio: 1; grid-auto-flow: row; gap: 5px; }
  .tpl-tile--you.is-wide:not(.is-wide-p) em { font-size: 9.5px; }
  .tpl-tile--you.is-wide:not(.is-wide-p) .tpl-you__s { display: inline; }
  .tpl-tile--you.is-wide:not(.is-wide-p) .tpl-you__l { display: none; }
  .tpl-tile--you.is-wide-p { aspect-ratio: auto; grid-auto-flow: column; align-items: center; gap: 8px; }
  .tpl-tile--you.is-wide-p em { font-size: 11px; }
  .tpl-tile--you.is-wide-p .tpl-you__s { display: none; }
  .tpl-tile--you.is-wide-p .tpl-you__l { display: inline; }

  .tpl-wall__hint { display: none; }
  .tpl-wall__read { height: 48px; margin-top: 12px; }
  .tpl-wall__go { display: none; }
  .tpl-wall__legend { display: grid; grid-template-columns: repeat(4, max-content); justify-content: space-between; gap: 6px 12px; font-size: 10px; }
  .tpl-console { margin-top: 36px; padding: 14px 14px 16px; }
  .tpl-search { height: 50px; padding-left: 14px; }
  .tpl-search__in { font-size: 16px; }
  .tpl-search__kbd { display: none; }
  .tpl-console__count { min-width: 0; }
  .tpl-console__count b { min-width: 0; font-size: 24px; text-align: left; }
  .tpl-console__acts { display: contents; }
  .tpl-console__clear { margin-left: auto; }
  .tpl-see { display: none; order: 9; flex: 1 1 100%; justify-content: center; height: 42px; color: var(--text); background: var(--ember-dim); box-shadow: inset 0 0 0 1px rgba(255, 122, 82, .42); }
  .tpl-console.is-active .tpl-see { display: inline-flex; animation: tplTagIn .35s var(--ease); }
  .tpl-see__d { display: none; }
  .tpl-see__m { display: inline; }
  .tpl-facets { gap: 14px; margin-top: 14px; padding-top: 14px; }
  .tpl-facet { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tpl-facet__chips { flex-wrap: nowrap; margin: 0 -14px; padding: 0 14px 2px; overflow-x: auto; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); }
  .tpl-facet__chips::-webkit-scrollbar { display: none; }
  .tpl-chip { flex: none; }
  .tpl-bento { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .tpl-bento::-webkit-scrollbar { display: none; }
  .tpl-feat, .tpl-feat--wide { grid-column: auto; scroll-snap-align: start; }
  .tpl-feat__stage { height: 312px; }
  .tpl-feat__log { left: 16px; right: 16px; }
  .tpl-feat__log li:nth-last-child(2) { opacity: 0; }
  .tpl-feat__log time { display: none; }
  .tpl-wall__gl { display: none; }
  .tpl-feat__text { position: relative; }
  .tpl-feat__foot .badge { position: absolute; top: 24px; right: 20px; }
  .tpl-pager { display: flex; }
  .tpl-feat__text { padding: 20px 20px 20px; }
  .tpl-feat__name { margin-top: 16px; font-size: 21px; }
  .tpl-feat__desc { font-size: 14.5px; }
  .tpl-feat__foot { flex-wrap: wrap; }
  .tpl-feat__actions .btn { flex: 1 1 auto; }
  .tpl-resbar { gap: 10px; height: 52px; margin-inline: -6px; padding: 0 6px 0 8px; top: calc(var(--nav) + 8px); }
  .tpl-resbar__search { flex: 1; width: auto; min-width: 0; }
  .tpl-resbar__edit { padding: 0 8px; }
  .tpl-resbar__n { font-size: 11.5px; }
  .tpl-resbar__of { display: none; }
  .tpl-resbar__sl { display: inline; color: var(--text-4); }
  .tpl-resbar__tags { display: none; }
  .tpl-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tpl-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px 16px 14px; }
  .tpl-card__top { display: contents; }
  .tpl-card__top .mono-tile { grid-row: 1 / span 2; grid-column: 1; }
  .tpl-card__cat { grid-column: 2; grid-row: 2; align-self: start; margin-top: 4px; font-size: 10.5px; }
  .tpl-card__gl { position: absolute; top: 20px; right: 14px; width: 77px; height: 30px; margin: 0; }
  .tpl-card__name { grid-column: 2; grid-row: 1; align-self: end; margin: 0; padding-right: 84px; font-size: 16.5px; }
  .tpl-card__desc { grid-column: 1 / -1; margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; }
  .tpl-card .tpl-svc { grid-column: 1 / -1; margin: 14px 0 14px; }
  .tpl-card--you { padding: 15px 15px 13px; }
  .tpl-card--you .tpl-card__foot { margin-top: 14px; }
  .tpl-card__foot { grid-column: 1 / -1; padding-top: 12px; }
  .tpl-empty { flex-direction: column; align-items: flex-start; padding: 22px; }
  .tpl-run__pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .tpl-run__pick button { justify-content: center; padding: 0 6px; font-size: 12px; }
  .tpl-run__full { display: none; }
  .tpl-run__short { display: inline; }
  .tpl-steps--run { padding: 8px 18px; }
  .tpl-run__board { height: 260px; }
  .tpl-run__log { height: 176px; padding: 14px 16px; font-size: 11px; }
  .tpl-run__scrub { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 16px 14px 4px; }
  .tpl-run__t { display: none; }
  .tpl-run__ticks button { font-size: 9.5px; margin: -6px -8px; padding: 6px 8px; }
  .tpl-run__tk-l { display: none; }
  .tpl-run__tk-s { display: inline; }
  .tpl-run__note { padding: 4px 14px 14px; }
  .tpl-opt { gap: 14px; }
  .tpl-cfg__repo { display: none; }
  .tpl-cfg__board { height: 196px; }
  .tpl-code { font-size: 11.5px; }
  /* phones: long lines wrap with a hanging indent, so nothing hides past the card edge */
  .tpl-ln { min-width: 0; padding-left: calc(44px + 2ch); padding-right: 14px; text-indent: -2ch; white-space: pre-wrap; overflow-wrap: anywhere; }
  .tpl-ln::before { width: 28px; }
  .tpl-ln.is-add::after { left: 32px; }
  .tpl-cfg__foot { flex-wrap: wrap; }
  .tpl-cfg__foot .cmd { flex: 1 1 100%; width: 100%; min-width: 0; }
  .tpl-pack { padding: 18px 18px 18px; }
  .tpl-pack__row { height: auto; min-height: 64px; padding: 10px 12px 10px 10px; }
  .tpl-pack__msg span { white-space: normal; }
  .tpl-drawer { width: 100vw; }
  .tpl-drawer__head { padding: 12px 10px 12px 16px; gap: 12px; }
  .tpl-drawer__head .mono-tile { width: 38px; height: 38px; }
  .tpl-drawer__pos { display: none; }
  .tpl-drawer__name { font-size: 19px; white-space: normal; text-wrap: balance; }
  .tpl-drawer__body { padding: 18px 16px 28px; }
  .tpl-board--drawer { height: 276px; }
  .tpl-board--drawer .tpl-board__geo { display: none; }
  .tpl-dsvc li { grid-template-columns: 28px minmax(0, 1fr); row-gap: 3px; }
  .tpl-dsvc li .mono-tile { grid-row: span 2; align-self: start; margin-top: 2px; }
  .tpl-dsvc em { grid-column: 2; overflow: hidden; color: var(--text-3); text-overflow: ellipsis; }
  .tpl-drawer__k { flex-wrap: wrap; row-gap: 6px; }
  .tpl-drawer__k > span:first-child { white-space: normal; }
  .tpl-dctl { flex-wrap: wrap; }
  .tpl-dctl .btn { flex: 1 1 100%; }
  .tpl-drawer__foot { flex-wrap: wrap; padding: 12px 16px; }
  .tpl-drawer__foot .btn { flex: 1 1 100%; }
  /* the longest slug does not fit on one line at 390: the command wraps after --template */
  .tpl-drawer__cmd { flex-basis: 100%; align-items: flex-start; height: auto; min-height: 44px; padding: 7px 6px 7px 12px; }
  .tpl-drawer__cmd .cmd__p { padding-top: 7px; font-size: 12px; line-height: 1.45; }
  .tpl-drawer__cmd code { padding-top: 7px; padding-bottom: 7px; font-size: 12px; line-height: 1.45; white-space: normal; overflow: visible; }
}
@media (max-width: 540px) {
  .tpl-tile { border-radius: 8px; }
  .tpl-tile__n, .tpl-tile__s { display: none; }
  .tpl-tile__dots { top: 6px; right: 6px; gap: 2px; }
  .tpl-tile__dots i { width: 3px; height: 3px; }
  .tpl-tile__m { left: 0; right: 0; bottom: auto; top: 50%; font-size: 16px; text-align: center; transform: translateY(-40%); }
  .tpl-tile--you:not(.is-wide-p) em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tpl-tile, .tpl-card { transition: none; }
}
/* captures and reduced motion: final frames, no entrance animations */
.static .tpl-tile, .static .tpl-tag, .static .tpl-cfg__kit, .static .tpl-ln, .static .tpl-topo .tp-n, .static .tpl-drawer__panel, .static .tpl-drawer__body, .static .tpl-drawer::backdrop, .static .tpl-tile--you svg.i, .static .tpl-resbar__fc, .static .tpl-see { animation: none !important; }
.static .tpl-pack__tile, .static .tpl-pack__tile * { transition: none !important; }
.static .tpl-wall__sweep { display: none; }
.static .tpl-gl__f, .static .tpl-feat__log li, .static .tpl-wall__gl .tpl-gl, .static .tpl-rail__track { animation: none !important; }
.tpl-more .btn:hover svg:last-child:not(:first-child) { transform: translateY(2px); }
