/* Templates, the template builder and lists (docs/app-v2.md §4).
   One flow language for both builders: a start marker, cards joined by a thin
   connector with a small node at each card, an end marker. Read top to bottom.
   Tokens only. The one loud element is the small forest "Live" marker. */

/* ---------- the page head that stays in reach (builder and lists) ---------- */
.gv-bld { max-width: 1360px; padding-left: var(--s-8); padding-right: var(--s-8); }
.gv-bld-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5);
  margin: 0 calc(var(--s-2) * -1) var(--s-5); padding: var(--s-3) var(--s-2);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.gv-bld-title { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--s-3); }
.gv-bld-title .gv-page-title { min-width: 0; }
.gv-bld-name { display: inline-flex; align-items: center; gap: var(--s-2); max-width: 100%; min-width: 0; text-align: left; font-weight: inherit; letter-spacing: inherit; line-height: inherit; }
.gv-bld-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-bld-name > svg { flex: none; color: var(--ink-4); transition: color var(--d-2) var(--ease); }
.gv-bld-name:hover > svg { color: var(--ink-2); }
.gv-bld-name[disabled] { cursor: default; }
.gv-bld-name[disabled] > svg { display: none; }
.gv-bld-acts { flex: none; display: flex; align-items: center; gap: var(--s-2); }
.gv-bld-mark { display: inline-flex; align-items: center; }
.gv-bld-mark:empty { display: none; }
.gv-bld-saved { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-12); color: var(--ink-3); white-space: nowrap; }
.gv-bld-saved svg { color: var(--ok); }
.gv-bld-sub { margin: calc(var(--s-1) * -1) 0 var(--s-6); }
.gv-bld-notice { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.gv-bld-notice:empty { display: none; }
.gv-bld-in > * { animation: gv-rise var(--d-4) var(--ease) backwards; }
.gv-bld-in > *:nth-child(2) { animation-delay: 60ms; }
.gv-bld-in > *:nth-child(3) { animation-delay: 120ms; }

/* ---------- templates: one row each, with its path in small ---------- */
.gv-tpl-list { overflow: hidden; }
.gv-tpl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--s-1) var(--s-5); padding: var(--s-4) var(--s-5); transition: background-color var(--d-2) var(--ease); }
.gv-tpl-row + .gv-tpl-row { border-top: 1px solid var(--line); }
.gv-tpl-row:hover { background: var(--surface-2); }
.gv-tpl-row:focus-visible { border-radius: 0; box-shadow: inset var(--ring); }
.gv-tpl-main { min-width: 0; }
.gv-tpl-name { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-1) var(--s-2); font-size: var(--t-15); font-weight: 500; letter-spacing: -0.012em; }
.gv-tpl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); margin-top: var(--s-2); font-size: var(--t-13); color: var(--ink-3); }
.gv-tpl-dots { display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(var(--line-3), var(--line-3)) center / 100% 1px no-repeat; }
.gv-tpl-dots i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.gv-tpl-dots i.is-optional { background: var(--surface); border: 1.5px solid var(--sage); }
.gv-tpl-use { font-size: var(--t-13); color: var(--ink-3); white-space: nowrap; }
.gv-tpl-row > svg { color: var(--ink-4); }
.gv-tpl-lock { margin-bottom: var(--s-5); }
/* Scrolls when an agency has many templates; the padding keeps focus rings from being clipped. */
.gv-tpl-start { display: grid; gap: var(--s-2); max-height: min(46vh, 380px); overflow-y: auto; overscroll-behavior: contain; padding: 3px; margin: -3px; }
.gv-tpl-start .gv-choice { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 14px; }
.gv-tpl-start .gv-choice > span:first-child:empty { display: none; }
.gv-tpl-start .gv-choice-title { font-size: var(--t-14); }

/* ---------- the flow: markers, connector, nodes ---------- */
.gv-flow { --flow-gap: 22px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.gv-flow-mark { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-2); font-size: var(--t-12); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.gv-flow-mark .gv-dot { width: 6px; height: 6px; }
.gv-flow-mark--live { background: var(--forest); border-color: var(--forest); color: var(--ink-inv); }
.gv-flow-mark--live .gv-dot { color: var(--mint); }
.gv-flow-list { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--flow-gap); margin-top: var(--flow-gap); }
.gv-flow-item { position: relative; min-width: 0; scroll-margin: 96px 0 var(--s-12); }
.gv-flow-tail { position: relative; margin-top: var(--flow-gap); display: grid; justify-items: center; }
/* the connector into each card, and the node where it lands */
.gv-flow-item::before, .gv-flow-tail::before, .gv-flow-none::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: var(--flow-gap); background: var(--line-3); pointer-events: none; }
.gv-flow-none::before { margin-bottom: 1px; }
.gv-flow-item::after { content: ""; position: absolute; z-index: 1; left: 50%; top: 0; width: 9px; height: 9px; margin: -5px 0 0 -4px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-3); pointer-events: none; transition: background-color var(--d-2) var(--ease), border-color var(--d-2) var(--ease); }
.gv-flow-item.is-on::after { background: var(--forest); border-color: var(--forest); }
.gv-flow-none { position: relative; display: grid; justify-items: center; gap: var(--s-1); padding: var(--s-6) var(--s-5); border: 1px dashed var(--line-3); border-radius: var(--r-14); text-align: center; font-size: var(--t-13); color: var(--ink-3); }
.gv-flow-none .gv-h3 { color: var(--ink); }
.gv-flow-none p { max-width: 40ch; }
.gv-flow-none .gv-btn { margin-top: var(--s-3); }
.gv-flow-note { margin-top: var(--s-5); max-width: 46ch; text-align: center; font-size: var(--t-12); line-height: 1.5; color: var(--ink-3); }
.gv-flow-problem { margin-top: var(--s-3); text-align: center; }

/* dragging: the lifted copy, the dimmed source, the line where it will land */
.gv-drop-line { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 2px; margin-top: -1px; border-radius: var(--r-pill); background: var(--forest); pointer-events: none; opacity: 0; transition: opacity var(--d-1) var(--ease); }
.gv-drop-line.is-on { opacity: 1; }
.gv-drop-line::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4px; border-radius: 50%; background: var(--forest); }
.gv-flow-item.is-drag-source > *, .gv-lib-row.is-drag-source { opacity: 0.35; }
.gv-drag-ghost { position: fixed; z-index: 90; left: 0; top: 0; pointer-events: none; will-change: transform; }
.gv-drag-ghost .gv-flow-item::before, .gv-drag-ghost .gv-flow-item::after { content: none; }
.gv-drag-ghost .gv-flow-card, .gv-drag-ghost .gv-listcard, .gv-drag-ghost .gv-lib-row { box-shadow: var(--float); border-color: var(--line-3); }
.gv-is-dragging, .gv-is-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }

/* ---------- a step on the path ---------- */
.gv-flow-card { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: start; column-gap: var(--s-2); padding: 14px 10px 14px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14); cursor: pointer; user-select: none; -webkit-user-select: none; transition: border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease); }
.gv-flow-card:hover { border-color: var(--line-3); }
.gv-flow-card.is-invalid { border-color: var(--bad); }
.gv-flow-card.is-on { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.gv-flow-card:focus-visible { border-radius: var(--r-14); box-shadow: var(--ring); }
.gv-flow-card.is-on:focus-visible { box-shadow: inset 0 0 0 1px var(--forest), var(--ring); }
.gv-drag-handle { position: relative; flex: none; width: 22px; height: 28px; display: grid; place-items: center; border-radius: var(--r-6); color: var(--ink-4); cursor: grab; touch-action: none; transition: color var(--d-2) var(--ease), background-color var(--d-2) var(--ease); }
.gv-drag-handle::after { content: ""; position: absolute; inset: -8px -4px; }
.gv-drag-handle:hover { color: var(--ink-2); background: var(--wash); }
.gv-drag-handle:focus-visible { border-radius: var(--r-6); }
.gv-drag-handle.is-off { visibility: hidden; }
.gv-flow-num { flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; display: grid; place-items: center; background: var(--wash-2); color: var(--ink-2); font-size: var(--t-12); font-weight: 500; }
.gv-flow-main { min-width: 0; padding: 3px 0 0 var(--s-1); }
.gv-flow-title { font-size: var(--t-14); font-weight: 500; line-height: 1.4; letter-spacing: -0.006em; color: var(--ink); overflow-wrap: anywhere; }
.gv-flow-title.is-blank { color: var(--ink-4); }
.gv-flow-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); }
.gv-flow-chip { display: inline-block; max-width: 100%; height: 20px; padding: 0 var(--s-2); border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: var(--t-12); line-height: 18px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-flow-chip--custom { border-color: transparent; background: var(--wash-mint); color: var(--forest); font-weight: 500; }
.gv-flow-chip--quiet { border-color: transparent; background: var(--mute-bg); color: var(--mute); }
.gv-flow-acts { display: flex; align-items: center; gap: 2px; margin-top: -1px; }
.gv-flow-acts .gv-btn { color: var(--ink-4); }
.gv-flow-card:hover .gv-flow-acts .gv-btn, .gv-flow-card:focus-within .gv-flow-acts .gv-btn { color: var(--ink-2); }
.gv-flow-card .gv-error { margin-top: var(--s-2); }

/* ---------- the builder: library, path, inspector ---------- */
.gv-bld-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.gv-bld[data-cols="3"] .gv-bld-grid { grid-template-columns: clamp(232px, 24%, 280px) minmax(0, 1fr) clamp(272px, 28%, 320px); gap: 28px; }
.gv-bld[data-cols="2"] .gv-bld-grid { grid-template-columns: minmax(0, 1fr) clamp(272px, 40%, 320px); }
.gv-bld-slot { display: none; min-width: 0; }
.gv-bld[data-cols="3"] .gv-bld-slot, .gv-bld[data-cols="2"] .gv-bld-slot--inspect {
  display: block; position: sticky; top: 81px; max-height: calc(100dvh - 105px);
  margin: calc(var(--s-1) * -1); padding: var(--s-1); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.gv-bld-path { min-width: 0; }
.gv-bld-path .gv-flow { max-width: 560px; margin: 0 auto; }
.gv-bld[data-cols="3"] .gv-flow-tail--add { display: none; }

.gv-lib { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.gv-lib-head { margin-bottom: 2px; }
.gv-lib-head .gv-small { margin-top: 2px; }
.gv-lib-group { margin-top: var(--s-3); padding: 0 2px; font-size: var(--t-12); color: var(--ink-3); }
.gv-lib-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); min-height: 52px; padding: var(--s-2) var(--s-2) var(--s-2) 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-10); cursor: pointer; user-select: none; -webkit-user-select: none; transition: border-color var(--d-2) var(--ease), background-color var(--d-2) var(--ease); }
.gv-lib-row:hover { border-color: var(--line-3); }
.gv-lib-row.is-added { background: transparent; border-style: dashed; border-color: var(--line-2); }
.gv-lib-row.is-added .gv-lib-label { font-weight: 400; color: var(--ink-3); }
.gv-lib-row.is-added .gv-drag-handle, .gv-lib-row.is-static .gv-drag-handle { visibility: hidden; }
.gv-lib-row.is-static { cursor: default; }
.gv-lib-row.is-static:hover { border-color: var(--line); }
.gv-lib-label { font-size: var(--t-13); font-weight: 500; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-lib-blurb { font-size: var(--t-12); line-height: 1.35; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-lib-add { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); transition: color var(--d-2) var(--ease), background-color var(--d-2) var(--ease); }
.gv-lib-add:focus-visible { border-radius: 50%; }
.gv-lib-row:hover .gv-lib-add { background: var(--wash-2); color: var(--ink); }
.gv-lib-state { display: inline-flex; align-items: center; gap: var(--s-1); padding-right: var(--s-1); font-size: var(--t-12); color: var(--ink-3); white-space: nowrap; }
.gv-lib-custom { display: grid; gap: var(--s-2); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }

.gv-inspect { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14); }
.gv-inspect-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-3) 14px 18px; border-bottom: 1px solid var(--line); }
.gv-inspect-head .gv-h3 { margin-top: 2px; overflow-wrap: anywhere; }
.gv-inspect-head .gv-flow-chips { margin-top: var(--s-2); }
.gv-inspect-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) 18px 18px; }
.gv-inspect-sec + .gv-inspect-sec { border-top: 1px solid var(--line); }
.gv-inspect-k { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); font-size: var(--t-13); font-weight: 500; color: var(--ink); }
.gv-inspect-k small { font-size: var(--t-12); font-weight: 400; color: var(--ink-3); }
.gv-inspect-quiet { font-size: var(--t-13); line-height: 1.5; color: var(--ink-3); overflow-wrap: anywhere; }
.gv-inspect-quiet b { font-weight: 500; color: var(--ink-2); }
.gv-inspect .gv-choices { gap: 6px; }
.gv-inspect .gv-choice { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); padding: 10px var(--s-3); border-radius: var(--r-10); }
.gv-inspect .gv-choice > span:first-child:empty { display: none; }
.gv-inspect .gv-choice-title { font-size: var(--t-14); }
.gv-inspect .gv-choice-text { font-size: var(--t-12); line-height: 1.4; }
.gv-inspect .gv-choice-mark { width: 18px; height: 18px; }
.gv-inspect .gv-choice.is-static { pointer-events: none; }
.gv-inspect .gv-tabs { justify-self: start; }
.gv-inspect .gv-tab[disabled] { cursor: default; }
.gv-inspect-qs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); justify-items: start; }
.gv-inspect-q { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-1); }
.gv-inspect-q .gv-input { height: 36px; }
.gv-inspect-guide { display: grid; gap: 10px; }
.gv-inspect-guide li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; font-size: var(--t-13); line-height: 1.45; color: var(--ink-2); }
.gv-inspect-guide svg { margin-top: 2px; color: var(--ink-3); }

/* the library and the inspector as a sheet, where there is no room beside the path */
.gv-scrim.gv-sheet-scrim { place-items: end center; padding: 0; }
.gv-sheet { width: min(560px, 100%); max-height: min(86dvh, 760px); display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-18) var(--r-18) 0 0; box-shadow: var(--float); animation: gv-rise var(--d-3) var(--ease); }
.gv-sheet:focus-visible { border-radius: var(--r-18) var(--r-18) 0 0; box-shadow: var(--float); }
.gv-sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); }
.gv-sheet-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-4) var(--s-4) calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); }
.gv-sheet .gv-inspect-close { display: none; }

/* ---------- lists: checked from the top, the first fit wins ---------- */
.gv-lists .gv-flow { --flow-gap: 20px; }
.gv-listcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14); transition: border-color var(--d-2) var(--ease); }
.gv-listcard:focus-visible { border-radius: var(--r-14); }
.gv-listcard.is-invalid { border-color: var(--bad); }
.gv-listcard-head { display: flex; align-items: center; gap: var(--s-2); padding: 10px 10px 10px 6px; border-bottom: 1px solid var(--line); user-select: none; -webkit-user-select: none; }
.gv-listcard-head .gv-flow-num { margin-top: 0; }
.gv-listcard-name { flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 var(--s-2); border: 1px solid transparent; border-radius: var(--r-8); background: transparent; font-size: var(--t-15); font-weight: 500; letter-spacing: -0.012em; color: var(--ink); user-select: text; -webkit-user-select: text; transition: border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), background-color var(--d-2) var(--ease); }
.gv-listcard-name::placeholder { font-weight: 400; color: var(--ink-4); }
.gv-listcard-name:hover { border-color: var(--line-2); }
.gv-listcard-name:focus { border-color: var(--sage-600); background: var(--surface); box-shadow: var(--ring); }
.gv-listcard-name.is-invalid { border-color: var(--bad); }
.gv-listcard-name[disabled] { border-color: transparent; }
.gv-listcard-count { flex: none; padding: 0 var(--s-1); font-size: var(--t-13); color: var(--ink-3); white-space: nowrap; transition: opacity var(--d-2) var(--ease); }
.gv-listcard-count b { font-weight: 500; color: var(--ink); }
.gv-listcard-count.is-stale { opacity: 0.45; }
.gv-listcard-count .gv-skel { display: block; width: 64px; height: 12px; }
.gv-listcard-body { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; gap: 14px var(--s-4); padding: var(--s-4) 18px 18px; }
.gv-listcard-k { padding-top: 5px; font-size: var(--t-13); color: var(--ink-3); }
.gv-listcard-v { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.gv-listcard-v .gv-select { height: 36px; max-width: 420px; }
.gv-cond-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s-2); }
.gv-cond { display: inline-flex; align-items: stretch; max-width: 100%; height: 28px; border-radius: var(--r-pill); background: var(--wash-sage); color: var(--ink); font-size: var(--t-13); }
.gv-cond-text { min-width: 0; display: inline-flex; align-items: center; gap: 5px; padding: 0 var(--s-3); border-radius: var(--r-pill); font-size: inherit; color: inherit; text-align: left; transition: background-color var(--d-2) var(--ease); }
.gv-cond-text > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-cond-text > svg { flex: none; color: var(--ink-3); }
button.gv-cond-text:hover { background: var(--wash-2); }
button.gv-cond-text:focus-visible, .gv-cond-x:focus-visible, .gv-cond-add:focus-visible { border-radius: var(--r-pill); }
.gv-cond-x { flex: none; width: 26px; display: grid; place-items: center; margin-left: -6px; border-radius: var(--r-pill); color: var(--ink-3); transition: color var(--d-2) var(--ease), background-color var(--d-2) var(--ease); }
.gv-cond-x:hover { background: var(--wash-2); color: var(--ink); }
.gv-cond.is-missing { background: var(--warn-bg); color: var(--warn); }
.gv-cond.is-missing svg { color: var(--warn); }
.gv-cond-and { font-size: var(--t-12); color: var(--ink-3); }
.gv-cond-add { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 var(--s-3) 0 var(--s-2); border-radius: var(--r-pill); border: 1px dashed var(--line-3); font-size: var(--t-13); color: var(--ink-2); transition: color var(--d-2) var(--ease), border-color var(--d-2) var(--ease), background-color var(--d-2) var(--ease); }
.gv-cond-add:hover { border-color: var(--ink-3); background: var(--wash); color: var(--ink); }
.gv-cond-pop { display: grid; gap: var(--s-3); padding: 6px 10px 10px; }
.gv-cond-pop .gv-check { font-size: var(--t-13); }
.gv-cond-pop .gv-input { height: 36px; }
.gv-cond-opts { display: grid; gap: 10px; max-height: 264px; padding: 2px; overflow-y: auto; }
.gv-cond-inline { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-13); color: var(--ink-2); }
.gv-cond-inline .gv-input { width: 88px; }
.gv-lists-limit { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin-top: var(--s-3); font-size: var(--t-13); color: var(--ink-3); text-align: center; }
.gv-lists-foot { margin-top: var(--s-3); max-width: 46ch; text-align: center; font-size: var(--t-13); line-height: 1.5; color: var(--ink-3); transition: opacity var(--d-2) var(--ease); }
.gv-lists-foot.is-stale { opacity: 0.45; }

/* ---------- small screens ---------- */
@media (min-width: 720px) {
  .gv-scrim.gv-sheet-scrim { place-items: center; padding: var(--s-5); }
  .gv-sheet { border-bottom: 1px solid var(--line); border-radius: var(--r-18); }
  .gv-sheet:focus-visible { border-radius: var(--r-18); }
}
@media (max-width: 860px) {
  .gv-bld { padding-left: 18px; padding-right: 18px; }
  .gv-bld-head { top: 54px; }
}
@media (max-width: 640px) {
  .gv-bld-mark .gv-badge > span { display: none; }
  .gv-bld-mark .gv-badge { padding: 0 7px; }
  .gv-bld-saved > span { display: none; }
  .gv-tpl-row { grid-template-columns: minmax(0, 1fr) auto; }
  .gv-tpl-main { grid-column: 1; grid-row: 1; }
  .gv-tpl-use { grid-column: 1; grid-row: 2; }
  .gv-tpl-row > svg { grid-column: 2; grid-row: 1 / span 2; }
  .gv-listcard-body { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 14px var(--s-4); }
  .gv-listcard-k { padding-top: 0; }
  .gv-listcard-v + .gv-listcard-k { margin-top: var(--s-2); }
}
