/* /work — portfolio. Page-only styles; tokens + components come from site.css. */

.work-hero { padding: var(--hero-pad) 0 clamp(36px, 5vw, 56px); }
.work-hero .display { max-width: 12ch; }
.work-hero .lede { margin-top: 22px; }
.work-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 32px; }
.work-jump a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--sheet);
  color: var(--accent); font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}
.work-jump a:hover { border-color: var(--accent); background: var(--accent-wash); }

/* ─── Groups ──────────────────────────────────────────────── */
.wgroup { position: relative; padding: clamp(40px, 6vw, 72px) 0; }
.wgroup::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--pen-1, 1px); background: var(--ink);
  transform-origin: left center; transition: transform var(--t-rule, 700ms) var(--ease-pen, cubic-bezier(.65, 0, .35, 1));
}
html.ink .wgroup:has(.wgroup-head[data-ink]:not(.is-inked))::before { transform: scaleX(0); }
.wgroup:last-of-type { padding-bottom: clamp(72px, 9vw, 120px); }
.wgroup-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.wgroup-head { position: sticky; top: 96px; display: grid; gap: 12px; }
.wgroup-head .h2 { font-size: var(--step-2); }
.wgroup-head p { color: var(--ink-2); max-width: 24ch; }
.wcases { list-style: none; border-top: 1px solid var(--line-2); }
.wcase {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(24px, 3vw, 40px);
  padding: 32px 0 36px; border-bottom: 1px solid var(--line-2); align-items: start;
}
.wcase:first-child { border-top: 0; }
.wcase-text { display: grid; gap: 12px; align-content: start; }
.wcase-text p { color: var(--ink-2); }
.shows { color: var(--ink); font-weight: 560; padding-left: 14px; border-left: 2px solid var(--ink); font-size: 0.9375rem; line-height: 1.45; }
.wcase-stack { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--ink-3); font-size: 0.75rem; line-height: 1.5; }
.wcase-text .link { margin-top: 2px; }

/* websites strip */
.wsites { display: grid; gap: 22px; }
.wsites-row { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wsites-row figure { margin: 0; }
.wsites-row .browser { box-shadow: var(--shadow-sheet); border-color: var(--line); }
.wsites-row .browser-bar { display: none; }
.wsite-pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; background: var(--paper-2); }
.wsite-pic > picture, .wsite-pic > picture > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.wsites-row figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; font-size: 0.8125rem; font-weight: 600; }
.wsites-row .tag { height: 22px; padding: 0 6px; font-size: 0.6875rem; letter-spacing: 0.02em; }
.wsites .link { justify-self: start; }
.wcase-ask { font-size: 0.9375rem; }

/* ─── Plate (the little drawing on each case) ─────────────── */
.plate {
  margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start;
  background: var(--sheet); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 14px 16px 18px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px;
}
.plate-cap { display: flex; justify-content: space-between; gap: 12px; font: 600 0.8125rem/1.3 var(--font); color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: 8px; background: var(--sheet); margin: 0 -2px; padding-inline: 2px; }

.plate-cap .fig { font: 500 0.6875rem/1.3 var(--mono); letter-spacing: .04em; }

.nodes { --g: 20px; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--g); }
.nodes li, .box {
  position: relative; padding: 5px 8px; border: 1px solid var(--ink-3); border-radius: 5px; background: var(--sheet);
  font: 550 0.75rem/1.3 var(--font); color: var(--ink-2);
}
.nodes li:not(:last-child)::after { content: ""; position: absolute; right: calc(3px - var(--g)); top: 50%; width: calc(var(--g) - 7px); height: 1px; background: var(--ink-3); }
.nodes li:not(:last-child)::before {
  content: ""; position: absolute; right: calc(2px - var(--g)); top: calc(50% - 2.5px); width: 5px; height: 5px;
  border-top: 1px solid var(--ink-3); border-right: 1px solid var(--ink-3); transform: rotate(45deg);
}
.nodes li.is-end, .box.is-ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.box.is-key, .nodes li.is-key { border-color: var(--ink); color: var(--sheet); background: var(--ink); }

.note { font: 500 0.75rem/1.4 var(--font); color: var(--ink-3); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 3px 8px; border: 1px dashed var(--ink-3); border-radius: 4px; font: 500 0.75rem/1.3 var(--font); color: var(--ink-2); background: var(--sheet); }

/* shop flow: four stations on one line. A sequence, nothing measured */
.track { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 6px; padding-top: 20px; }
.track::before {
  content: ""; position: absolute; left: 4px; right: calc(25% - 6px); top: 4px; height: var(--pen-1, 1px); background: var(--ink-3);
  transform-origin: left center; transition: transform var(--t-rule, 700ms) var(--ease-pen, cubic-bezier(.65, 0, .35, 1)) 150ms;
}
.track li { position: relative; font: 550 0.75rem/1.3 var(--font); color: var(--ink-2); }
.track li::before {
  content: ""; position: absolute; left: 0; top: -20px; width: 9px; height: 9px; border-radius: 50%;
  border: var(--pen-2, 1.5px) solid var(--ink); background: var(--sheet);
  transition: opacity var(--t-tap, 120ms) ease calc(var(--n, 0) * 175ms + 200ms);
}
.track li:nth-child(2) { --n: 1; } .track li:nth-child(3) { --n: 2; } .track li:nth-child(4) { --n: 3; }
.track li.is-end { color: var(--ink); font-weight: 650; }
.track li.is-end::before { border-radius: 2px; background: var(--ink); }

/* answer grid: every prompt goes to every model; one cell is one answer */
.agrid { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: center; font: 550 0.75rem/1.3 var(--font); color: var(--ink-2); }
.agrid .ag-h { padding: 0 0 6px; text-align: center; color: var(--ink-3); }
.agrid .ag-r { padding: 0 10px 0 0; white-space: nowrap; }
.agrid i { height: 26px; border: solid var(--ink-3); border-width: var(--pen-1, 1px) 0 0 var(--pen-1, 1px); background: var(--sheet); }
.agrid i:nth-child(4n) { border-right-width: var(--pen-1, 1px); }
.agrid i:nth-last-child(-n+3) { border-bottom-width: var(--pen-1, 1px); }
.agrid i.is-key, .ag-sw { background: var(--accent-wash); box-shadow: inset 0 0 0 var(--pen-2, 1.5px) var(--accent); }
.ag-note { display: flex; align-items: center; gap: 8px; }
.ag-sw { width: 14px; height: 10px; flex: none; }
.sov-rows { list-style: none; display: grid; gap: 4px; }
.sov-rows li { display: flex; justify-content: space-between; gap: 12px; font: 500 0.8125rem/1.4 var(--font); color: var(--ink-2); padding: 4px 0; border-top: 1px solid var(--line); }

/* ops: trigger -> ai -> actions */
.ops { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 0 28px; }
.ops-col { position: relative; display: grid; gap: 8px; }
.ops-col::before { content: ""; position: absolute; left: -14px; top: 14px; bottom: 14px; width: 1px; background: var(--ink-3); }
.ops .link-h { position: relative; }
.ops .box { position: relative; }
.ops > .box::after { content: ""; position: absolute; left: 100%; top: 50%; width: 28px; height: 1px; background: var(--ink-3); }
.ops-col .box { position: relative; min-height: 28px; display: flex; align-items: center; }
.ops-col .box::before { content: ""; position: absolute; right: 100%; top: 50%; width: 14px; height: 1px; background: var(--ink-3); }

/* chat */
.chat { display: grid; gap: 8px; }
.bub { max-width: 82%; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 0.8125rem; line-height: 1.4; background: var(--sheet); color: var(--ink-2); }
.bub.me { justify-self: end; background: var(--ink); border-color: var(--ink); color: var(--on-ink); border-bottom-right-radius: 3px; }
.bub.bot { border-bottom-left-radius: 3px; }
.flagrow { display: flex; align-items: center; gap: 8px; font: 600 0.8125rem/1.3 var(--font); color: var(--warn); padding: 7px 10px; border: 1px solid var(--warn); border-radius: 6px; background: var(--warn-wash); }

/* agents */
.agents { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; justify-items: center; }
.agents .box { text-align: center; }
.agents-row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; padding-top: 22px; margin-top: 0; }
.agents-row::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 11px; height: 1px; background: var(--ink-3); }
.agents-row .box { position: relative; text-align: center; padding-inline: 4px; }
.agents-row .box::before { content: ""; position: absolute; left: 50%; top: -11px; height: 11px; width: 1px; background: var(--ink-3); }
.agents-top { position: relative; padding-bottom: 11px; }
.agents-top::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 11px; width: 1px; background: var(--ink-3); }
.agents-base { width: 100%; margin-top: 12px; display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px dashed var(--ink-3); border-radius: 5px; font: 500 0.75rem/1.3 var(--font); color: var(--ink-2); background: var(--sheet); }

/* invoice title block */
.inv { border: 1px solid var(--ink); border-radius: 2px; background: var(--sheet); display: grid; grid-template-columns: 1fr 1fr; font-size: 0.8125rem; }
.inv > div { padding: 8px 12px 9px; border-top: 1px solid var(--ink); min-width: 0; }
.inv > div:nth-child(-n+2) { border-top: 0; }
.inv > div:nth-child(even) { border-left: 1px solid var(--ink); }
.inv .tb-k { display: block; font-family: var(--font); font-weight: 600; font-size: 0.75rem; color: var(--ink-3); margin-bottom: 2px; }
.inv .tb-v { display: block; font-weight: 620; color: var(--ink); }
.inv .tb-v.mono { font-size: 0.8125rem; }
.inv .is-wide { grid-column: 1 / -1; border-left: 0 !important; }
.inv .okline { display: flex; align-items: center; gap: 6px; color: var(--ok); }
.okline svg { width: 16px; height: 16px; }

/* checklist rows */
.rows { list-style: none; display: grid; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--sheet); overflow: hidden; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 0.875rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows li svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rows .ok svg { color: var(--ok); }
.rows .bad { background: var(--warn-wash); color: var(--ink); }
.rows .bad svg { color: var(--warn); }
.rows .mono { margin-left: auto; color: var(--ink-3); font-size: 0.6875rem; white-space: nowrap; }

.meter { display: grid; gap: 6px; }
.meter-track { position: relative; height: 10px; border: 1px solid var(--ink); border-radius: 2px; background: linear-gradient(90deg, var(--ok-wash), var(--paper-2), var(--warn-wash)); }
.meter-track i { position: absolute; top: -5px; bottom: -5px; left: var(--at); width: 2px; background: var(--ink); }
.meter-scale { display: flex; justify-content: space-between; font: 600 0.75rem/1 var(--font); color: var(--ink-3); }

/* trading */
.trade { display: grid; gap: 12px; }

/* ─── Ink: the connectors inside a plate are ruled when the plate arrives ─── */
.nodes li:not(:last-child)::after, .ops > .box::after, .ops-col .box::before {
  transform-origin: left center;
  transition: transform var(--t-lay, 320ms) var(--ease-pen, cubic-bezier(.65, 0, .35, 1)) calc(var(--n, 0) * 110ms + 150ms);
}
.nodes li:nth-child(2), .ops > .box:nth-child(2) { --n: 1; } .nodes li:nth-child(3) { --n: 2; } .nodes li:nth-child(4) { --n: 3; }
.nodes li:not(:last-child)::before { transition: opacity var(--t-tap, 120ms) ease calc(var(--n, 0) * 110ms + 400ms); }
.ops-col::before, .agents-top::after, .agents-row .box::before {
  transform-origin: center top;
  transition: transform var(--t-set, 240ms) var(--ease-pen, cubic-bezier(.65, 0, .35, 1)) calc(var(--n, 0) * 110ms + 150ms);
}
.ops-col { --n: 3; } .ops-col .box { --n: 5; } .agents-row .box { --n: 4; }
.agents-row::before { transition: transform var(--t-lay, 320ms) var(--ease-pen, cubic-bezier(.65, 0, .35, 1)) 330ms; }
html.ink .plate[data-ink]:not(.is-inked) :is(.nodes li, .ops > .box)::after,
html.ink .plate[data-ink]:not(.is-inked) :is(.ops-col .box, .agents-row, .track)::before { transform: scaleX(0); }
html.ink .plate[data-ink]:not(.is-inked) .ops-col::before,
html.ink .plate[data-ink]:not(.is-inked) .agents-top::after,
html.ink .plate[data-ink]:not(.is-inked) .agents-row .box::before { transform: scaleY(0); }
html.ink .plate[data-ink]:not(.is-inked) :is(.nodes li, .track li)::before { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .wgroup::before, .plate *::before, .plate *::after { transition: none !important; }
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1060px) {
  .wgroup-grid { grid-template-columns: minmax(0, 1fr); }
  .wgroup-head { position: static; }
  .wgroup-head p { max-width: 48ch; }
}
@media (max-width: 760px) {
  .wsites-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wcase { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .ops { gap: 0 20px; }
}
@media (max-width: 720px) {
  .work-jump a { height: auto; min-height: 44px; }
}
@media (max-width: 480px) {
  .agrid .ag-r { padding-right: 8px; }
  .trade .nodes { --g: 12px; flex-wrap: nowrap; gap: 0 var(--g); }
  .trade .nodes li { padding: 5px 6px; font-size: 0.6875rem; white-space: nowrap; }
}
@media (max-width: 420px) {
  .plate-cap .cap-aux { display: none; }
}

/* ─── Tally: a project's real counts, set like a parts schedule ─── */
.tally {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0;
  border: var(--pen-1, 1px) solid var(--ink); border-radius: 4px; overflow: hidden; background: var(--line-2);
}
.tally div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; min-width: 0; padding: 10px 11px 11px; background: var(--sheet); }
.tally dt { font: 500 0.75rem/1.3 var(--font); color: var(--ink-3); }
/* four counts sit two by two, so no cell is left empty */
.tally:has(> div:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tally dd { margin: 0; font: 600 clamp(1.0625rem, 0.9rem + 0.9vw, 1.25rem)/1.1 var(--mono); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Nine modules around one login */
.mods { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mods .box { justify-content: center; text-align: center; }
.work-tally { max-width: 620px; margin-top: 26px; }
@media (max-width: 520px) { .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tally > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ─── Built in n8n: four working systems, shown with their real screenshots ───
   Each system is a text column and its proof (video, call trace, page), with the
   n8n canvas laid underneath full width and dimensioned by its stages. */
.nx-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 18px clamp(32px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.nx-head .h2, .nx-head p { grid-column: 1; }
.nx-head p { color: var(--ink-2); max-width: 54ch; }
.nx-tally { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
html.ink .nx-group:has(.nx-head[data-ink]:not(.is-inked))::before { transform: scaleX(0); }

.nx-list { border-top: 1px solid var(--line-2); }
.nx {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(28px, 4vw, 56px); align-items: start;
  padding: clamp(32px, 4vw, 48px) 0 clamp(36px, 4.5vw, 56px); border-bottom: 1px solid var(--line-2);
}
.nx-text { display: grid; gap: 14px; align-content: start; }
.nx-text > p:not([class]) { color: var(--ink-2); }
.nx-text > .note { margin-bottom: -6px; }
.nx-rows li { padding: 8px 12px; }
.nx-media { display: grid; gap: 12px; align-content: start; }

/* the ad, as it plays on a phone */
.nx-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
.nx-phone { margin: 0; display: grid; gap: 10px; align-content: start; }
.nx-phone video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border: var(--pen-2) solid var(--ink); border-radius: 16px; background: var(--ink);
}
.nx-phone figcaption { display: flex; gap: 10px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.nx-phone figcaption b {
  flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-top: -1px;
  border: var(--pen-1) solid var(--ink); border-radius: 4px; font: 600 0.75rem/1 var(--mono); color: var(--ink);
}

/* a page the system serves, framed like the concept plates */
.nx-shot { margin: 0; }
.nx-shot picture { display: block; background: #f4f3ef; }
.nx-shot img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; object-position: top; }

/* one tool call: what the voice agent asks and what it will say */
.nx-trace { gap: 12px; }
.nx-step { display: grid; gap: 6px; }
.nx-k { font: 600 0.75rem/1.3 var(--font); color: var(--ink-3); }
.nx-code {
  display: block; padding: 8px 10px; border: var(--pen-1) solid var(--ink-3); border-radius: 5px; background: var(--sheet);
  font: 500 0.8125rem/1.55 var(--mono); color: var(--ink);
}
.nx-say { margin: 0; padding: 10px 13px; border-radius: 12px 12px 12px 3px; background: var(--ink); color: var(--on-ink); font-size: 0.9375rem; line-height: 1.45; }

/* the canvas: a dark screenshot on the light sheet, captioned and dimensioned */
.nx-canvas { grid-column: 1 / -1; margin: 0; border: var(--pen-2) solid var(--ink); border-radius: var(--r-lg); overflow: hidden; background: var(--sheet); }
.nx-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 4px 5px 4px 14px;
  border-bottom: var(--pen-1) solid var(--ink); font: 600 0.8125rem/1.3 var(--font); color: var(--ink-3);
}
.nx-cap .fig { font: 500 0.6875rem/1.3 var(--mono); letter-spacing: .04em; }
.nx-zoom {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border: var(--pen-1) solid var(--line-2); border-radius: 8px; background: var(--sheet); color: var(--accent);
  font: 600 0.875rem/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: border-color var(--t-ui) ease, background-color var(--t-ui) ease;
}
.nx-zoom:hover { border-color: var(--accent); background: var(--accent-wash); }
.nx-zoom svg { width: 16px; height: 16px; }
.nx-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--ink-3) var(--paper-2); }
.nx-scroll:focus-visible { outline-offset: -4px; border-radius: 0; }
.nx-draw { min-width: max(100%, 1160px); }
.nx-pic { display: block; background: #171717; cursor: zoom-in; }
.nx-pic img { display: block; width: 100%; height: auto; }
.nx-ruler {
  list-style: none; position: relative; height: 38px; border-top: var(--pen-1) solid var(--ink);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px;
}
.nx-ruler li { position: absolute; top: 12px; left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1%); gap: 4px; color: var(--ink-2); }
.nx-ruler li::before, .nx-ruler li::after { min-width: 6px; }

/* the receptionist's canvas is nearly square: it stands beside the text */
.nx--side .nx-canvas { grid-column: 2; grid-row: 1; }
.nx-canvas--tall .nx-draw { min-width: 0; }

/* full size, in place: a sheet over the page that pans in both directions */
.sheet-dialog.nx-viewer { width: calc(100vw - 32px); height: calc(100vh - 32px); height: calc(100dvh - 32px); max-height: none; overflow: hidden; }
.sheet-dialog.nx-viewer[open] { display: flex; flex-direction: column; }
.nx-viewer .sd-head { flex: none; }
.nx-viewer-hint { font: 500 0.8125rem/1.3 var(--font); color: var(--ink-3); }
.nx-viewer-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #171717; cursor: grab; }
.nx-viewer-body.is-dragging { cursor: grabbing; user-select: none; }
.nx-viewer-body img { display: block; max-width: none; height: auto; }
.nx-viewer-body:focus-visible { outline-offset: -4px; }

@media (max-width: 1060px) {
  .nx-head { grid-template-columns: minmax(0, 1fr); }
  .nx-tally { grid-column: 1; grid-row: auto; max-width: 520px; }
}
@media (max-width: 900px) {
  .nx { grid-template-columns: minmax(0, 1fr); }
  .nx--side .nx-canvas { grid-column: 1; grid-row: auto; }
}
@media (max-width: 720px) {
  .sheet-dialog.nx-viewer { width: auto; margin: 8px; height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: none; }
  .nx-viewer-hint { display: none; }
}
@media (max-width: 480px) {
  .nx-cap { padding-left: 10px; }
  .nx-zoom { padding: 0 10px; }
  .nx-phone figcaption { font-size: 0.8125rem; }
}
