/* "Try it yourself" (page /try/, js/try.js). Built as a prototype on 2026-10-14, a section of the landing page on
   2026-10-28, its own page with a sign-in for own input since the same evening. Everything is scoped to .tz-* (checked
   against site.css, skills.css and consent.css). Uses the page's tokens only. */

.tz-sec { padding-top: calc(var(--sec-pad) + 40px); }
.tz-lab {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 7px 14px 7px 8px; border-radius: 99px;
  border: 1.5px dashed rgba(var(--lav-rgb), 0.5); font-size: 13px; font-weight: 500; color: rgba(var(--fg-rgb), 0.75);
}
.tz-lab b { padding: 2px 9px; border-radius: 99px; background: var(--exception); color: #3b2c00; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- the card that holds all steps ---------- */
.tz {
  position: relative; margin-top: var(--head-gap); padding: clamp(20px, 3.2vw, 48px); border-radius: 24px; scroll-margin-top: 84px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(var(--shadow-rgb), calc(0.35 * var(--shadow-k))), 0 0 80px rgba(118, 86, 168, 0.12);
}
:root[data-theme="light"] .tz { box-shadow: 0 20px 60px rgba(40, 26, 80, 0.08); }

/* steps as a small process track: lit up to the current step, finished steps get a tick */
.tz-steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 620px; margin: 0 auto clamp(30px, 3.6vw, 48px); }
.tz-steps::before, .tz-steps::after { content: ""; position: absolute; left: 12.5%; top: 18px; height: 2px; margin-top: -1px; border-radius: 2px; }
.tz-steps::before { right: 12.5%; background: rgba(var(--lav-rgb), 0.25); }
.tz-steps::after { width: calc(var(--p) * 25%); background: linear-gradient(90deg, rgba(var(--lav-rgb), 0.35), var(--core)); box-shadow: 0 0 12px rgba(var(--lav-rgb), 0.7); transition: width 0.7s var(--ease); }
.tz-st-btn {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 0 2px 2px;
  font: inherit; color: rgba(var(--fg-rgb), 0.5); background: none; border: 0; border-radius: 10px; cursor: default;
}
.tz-st-btn:not(:disabled) { cursor: pointer; }
.tz-st-btn:not(:disabled):hover .tz-st-l { text-decoration: underline; text-underline-offset: 3px; }
.tz-st-hex { position: relative; width: 36px; height: 36px; }
.tz-st-hex > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tz-st-hex .on { opacity: 0; transition: opacity 0.4s; }
.tz-st-tick {
  position: absolute; right: -5px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center;
  background: var(--success); color: #12391d; scale: 0; transition: scale 0.35s var(--ease);
}
.tz-st-tick svg.i { width: 11px; height: 11px; stroke-width: 3.4; }
.tz-st-l { font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.tz-st[data-state="now"] .tz-st-btn, .tz-st[data-state="done"] .tz-st-btn { color: var(--fg); }
.tz-st[data-state="now"] .on, .tz-st[data-state="done"] .on { opacity: 1; }
.tz-st[data-state="now"] .tz-st-hex { filter: drop-shadow(0 0 14px rgba(var(--lav-rgb), 0.8)); }
.tz-st[data-state="done"] .tz-st-tick { scale: 1; }

/* ---------- panes ---------- */
.tz-pane { display: none; }
.tz-pane.is-active { display: block; animation: tzIn 0.45s var(--ease) both; }
@keyframes tzIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.tz-narrow { max-width: 760px; margin: 0 auto; }
.tz-h { font-size: clamp(22px, 2.1vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.tz-h:focus { outline: none; }
.tz-sub { margin-top: 6px; font-size: 16px; color: rgba(var(--fg-rgb), 0.7); }
.tz-k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tz-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 16px; margin-top: 30px; }
.tz-actions .tz-back { margin-right: auto; }
.tz .btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.tz .btn:disabled svg { transform: none; }
.tz-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: rgba(var(--fg-rgb), 0.8); background: none; border: 1px solid rgba(var(--lav-rgb), 0.32);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.tz-back:hover { color: var(--fg); border-color: var(--accent); background: rgba(118, 86, 168, 0.18); }
.tz-back svg.i { width: 17px; height: 17px; color: var(--accent); }

/* ---------- 1 · describe ---------- */
.tz-field { position: relative; margin-top: 20px; }
.tz-field textarea {
  display: block; width: 100%; min-height: 128px; resize: none; overflow: hidden; padding: 16px 18px 32px; border-radius: 16px;
  font: inherit; font-size: 17px; line-height: 1.5; color: var(--fg); background: rgba(var(--panel-rgb), 0.55);
  border: 1.5px solid rgba(var(--lav-rgb), 0.35); transition: border-color 0.2s, box-shadow 0.2s;
}
.tz-field textarea::placeholder { color: rgba(var(--fg-rgb), 0.42); }
.tz-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(118, 86, 168, 0.22); }
.tz-count { position: absolute; right: 14px; bottom: 10px; font-size: 12px; font-weight: 600; color: var(--muted); pointer-events: none; }
.tz-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.tz-examples .tz-k { margin-right: 4px; }
.tz-ex {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 99px; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--fg); background: rgba(var(--panel-rgb), 0.55);
  border: 1.5px solid rgba(var(--lav-rgb), 0.35); transition: border-color 0.2s, background 0.2s;
}
.tz-ex svg.i { width: 18px; height: 18px; color: var(--accent); }
.tz-ex:hover { border-color: rgba(var(--lav-rgb), 0.7); }
.tz-ex[aria-pressed="true"] { border-color: var(--accent); background: rgba(118, 86, 168, 0.24); }

/* ---------- 2 · the agent is built ---------- */
.tz-build { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 980px; margin: 0 auto; }
.tz-agent { display: grid; justify-items: center; text-align: center; }
.tz-build .tz-agent { width: 220px; }
.tz-core {
  --charge: 1; position: relative; width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(var(--panel-rgb), 0.25), rgba(var(--panel-rgb), 0.85)); border: 1px solid rgba(var(--lav-rgb), 0.28);
  box-shadow: 0 0 0 10px rgba(118, 86, 168, 0.07), 0 0 90px rgba(118, 86, 168, calc(0.15 + 0.3 * var(--charge)));
  transition: box-shadow 0.4s, scale 0.55s ease;
}
:root[data-theme="light"] .tz-core { background: radial-gradient(circle, #fff, #ece8f8); }
.tz-hex {
  width: 64%; height: 64%; transition: filter 0.35s, opacity 0.35s;
  filter: grayscale(calc(1 - var(--charge))) brightness(calc(0.6 + 0.4 * var(--charge))) drop-shadow(0 0 18px rgba(var(--lav-rgb), calc(0.4 * var(--charge))));
  opacity: calc(0.55 + 0.45 * var(--charge));
}
/* the agent at work: a light runs around the core */
.tz-core::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; opacity: 0; transition: opacity 0.3s;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(var(--lav-rgb), 0.95) 88%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.tz-agent.is-busy .tz-core::before { opacity: 1; animation: tzSpin 1.15s linear infinite; }
@keyframes tzSpin { to { rotate: 360deg; } }
.tz-core.pulse { animation: tzPulse 0.42s ease-out; }
@keyframes tzPulse { 45% { scale: 1.05; } }
.tz-tick {
  position: absolute; right: 8%; bottom: 8%; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--success); color: #12391d; box-shadow: 0 0 0 4px var(--chip-solid), 0 0 24px rgba(141, 232, 157, 0.5); scale: 0;
  transition: scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tz-tick svg.i { width: 18px; height: 18px; stroke-width: 3.2; }
.tz-agent.is-ready .tz-tick { scale: 1; }
.tz-aname { margin-top: 18px; font-size: 19px; font-weight: 700; line-height: 1.25; }
.tz-asub { margin-top: 2px; font-size: 13.5px; color: var(--muted); }

.tz-quote {
  margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--violet); font-size: 15px; font-style: italic; line-height: 1.5;
  color: rgba(var(--fg-rgb), 0.7); overflow-wrap: anywhere;
}
.tz-k-fields { margin-top: 24px; }
.tz-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; min-height: 40px; }
.tz-chip {
  display: inline-flex; align-items: center; gap: 2px; min-height: 40px; max-width: 100%; padding: 4px 4px 4px 14px; border-radius: 12px;
  background: rgba(var(--panel-rgb), 0.95); border: 1.5px solid rgba(var(--lav-rgb), 0.5); font-size: 14.5px; font-weight: 600; line-height: 1.25;
  box-shadow: 0 8px 22px rgba(var(--shadow-rgb), calc(0.3 * var(--shadow-k)));
}
:root[data-theme="light"] .tz-chip { box-shadow: 0 6px 16px rgba(40, 26, 80, 0.08); }
.tz-chip > span { min-width: 0; overflow-wrap: anywhere; }
.tz-chip button {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; cursor: pointer;
  background: none; border: 0; color: var(--muted); transition: color 0.2s, background 0.2s;
}
.tz-chip button::after { content: ""; position: absolute; inset: -6px -4px; } /* 44 px touch target */
.tz-chip button:hover { color: var(--fg); background: rgba(118, 86, 168, 0.22); }
.tz-chip button svg.i { width: 16px; height: 16px; }
.tz-chip.is-new { animation: tzChip 0.45s var(--ease) both; }
@keyframes tzChip { 0% { opacity: 0; scale: 0.6; } 70% { opacity: 1; scale: 1.06; } 100% { opacity: 1; scale: 1; } }
.tz-chip.is-out { animation: tzChipOut 0.22s ease both; }
@keyframes tzChipOut { to { opacity: 0; scale: 0.7; } }
.tz-add { margin-top: 12px; }
.tz-addbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--accent); background: none; border: 1.5px dashed rgba(var(--lav-rgb), 0.55);
  transition: border-color 0.2s, background 0.2s;
}
.tz-addbtn:hover:not(:disabled) { border-color: var(--accent); background: rgba(118, 86, 168, 0.14); }
.tz-addbtn:disabled { opacity: 0.45; cursor: not-allowed; }
.tz-addbtn svg.i { width: 18px; height: 18px; }
.tz-addbox { display: inline-flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.tz-addbox[hidden] { display: none; }
.tz-addbox input {
  min-height: 44px; width: 220px; max-width: 100%; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 16px; color: var(--fg);
  background: rgba(var(--panel-rgb), 0.6); border: 1.5px solid var(--accent);
}
.tz-addbox input:focus { outline: none; box-shadow: 0 0 0 4px rgba(118, 86, 168, 0.22); }
.tz-addok {
  min-height: 44px; padding: 0 18px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700;
  color: var(--btn-fg); background: var(--btn-bg); border: 0;
}
.tz-hint { margin-top: 12px; min-height: 1.5em; font-size: 14px; color: var(--muted); }
.tz-build .tz-actions { justify-content: flex-start; }
.tz-build .tz-actions .tz-back { margin-right: 0; }
/* during the build the fields cannot be edited yet */
.tz-build.is-building .tz-chip button, .tz-build.is-building .tz-add { visibility: hidden; }

/* ---------- 3 · document ---------- */
.tz-docgrid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); margin-top: 22px; }
.tz-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 28px 20px; border-radius: 18px; text-align: center;
  border: 2px dashed rgba(var(--lav-rgb), 0.45); background: rgba(118, 86, 168, 0.08); transition: border-color 0.2s, background 0.2s;
}
.tz-drop.is-over { border-color: var(--accent); background: rgba(118, 86, 168, 0.22); }
.tz-drop-ic { width: 50px; height: 50px; margin-bottom: 6px; border-radius: 14px; display: grid; place-items: center; background: rgba(118, 86, 168, 0.22); color: var(--accent); }
.tz-drop-ic svg.i { width: 24px; height: 24px; }
.tz-drop-t { font-size: 17px; font-weight: 700; }
.tz-touch { display: none; }
.tz-filebtn {
  display: inline-flex; align-items: center; gap: 0.3em; min-height: 44px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 600; border: 1px solid rgba(var(--lav-rgb), 0.45); transition: border-color 0.2s, background 0.2s;
}
.tz-filebtn:hover { border-color: var(--accent); background: rgba(118, 86, 168, 0.18); }
.tz-filebtn:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.tz-or { color: var(--muted); font-weight: 500; }
.tz-limits { margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (hover: none) { .tz-hover, .tz-or { display: none; } .tz-touch { display: inline; } }

.tz-sgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.tz-sample {
  position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 8px 8px 10px; border-radius: 14px; cursor: pointer;
  font: inherit; color: var(--fg); text-align: left; background: rgba(var(--panel-rgb), 0.55); border: 1.5px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.tz-sample:hover { border-color: rgba(var(--lav-rgb), 0.6); transform: translateY(-2px); }
.tz-sample[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(var(--lav-rgb), 0.35), 0 0 30px rgba(118, 86, 168, 0.35); }
.tz-sname { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.tz-sname svg.i { width: 15px; height: 15px; color: var(--accent); }
/* "Fits your agent"; on phones the short form "Best fit" */
.tz-fit .s { display: none; }
.tz-fit {
  position: absolute; left: 50%; top: -10px; translate: -50% 0; padding: 2px 8px; border-radius: 99px; white-space: nowrap;
  background: var(--success); color: #12391d; font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em;
}
.tz-sel {
  position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--btn-fg); scale: 0; transition: scale 0.3s var(--ease);
}
:root:not([data-theme="light"]) .tz-sel { color: #161029; }
.tz-sel svg.i { width: 13px; height: 13px; stroke-width: 3.2; }
.tz-sample[aria-pressed="true"] .tz-sel { scale: 1; }
.tz-fict { margin-top: 12px; font-size: 13px; color: var(--muted); }

.tz-err { margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: rgba(242, 201, 76, 0.18); color: var(--fg); font-size: 14.5px; font-weight: 600; }
.tz-err[hidden], .tz-chosen[hidden], .tz-consent[hidden], .tz-proto[hidden], .tz-tip[hidden] { display: none; }
.tz-chosen {
  display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 10px 10px 10px 12px; border-radius: 14px;
  background: rgba(118, 86, 168, 0.14); border: 1px solid rgba(var(--lav-rgb), 0.35);
}
.tz-chosen-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: rgba(118, 86, 168, 0.25); color: var(--accent); }
.tz-chosen-ic img { width: 100%; height: 100%; object-fit: cover; }
.tz-chosen-t { flex: 1; min-width: 0; }
.tz-chosen-t b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-chosen-t span { font-size: 13px; color: var(--muted); }
.tz-chosen button { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; background: none; border: 0; color: var(--muted); }
.tz-chosen button:hover { color: var(--fg); background: rgba(118, 86, 168, 0.2); }
.tz-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.tz-consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--violet); cursor: pointer; }
.tz-privacy { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; font-weight: 600; color: rgba(var(--fg-rgb), 0.75); }
.tz-privacy svg.i { width: 18px; height: 18px; color: var(--accent); }

/* ---------- sample documents (fictional), drawn in HTML. The box sets the size: 30em = the document's width ---------- */
.tz-thumb, .tz-src, .tz-preview { container-type: inline-size; }
.tz-thumb { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #e6e2f2; }
.tz-thumb .dc { font-size: calc(100cqw / 32); }
.dc { position: relative; flex: none; color: #26213a; line-height: 1.35; text-align: left; letter-spacing: 0; }
.dc p, .dc span, .dc b { margin: 0; }
.dc [data-f] { border-radius: 0.35em; transition: box-shadow 0.25s, background 0.25s; }
.dc .is-ev { background: rgba(118, 86, 168, 0.09); box-shadow: 0 0 0 0.2em rgba(118, 86, 168, 0.35); }
.dc .is-ev.is-chk { background: rgba(242, 201, 76, 0.2); box-shadow: 0 0 0 0.2em rgba(214, 160, 20, 0.7); }
.dc .is-hl { background: rgba(118, 86, 168, 0.3); box-shadow: 0 0 0 0.4em #7656a8, 0 0 2.4em rgba(118, 86, 168, 0.8); }
.dc .is-hl.is-chk { background: rgba(242, 201, 76, 0.4); box-shadow: 0 0 0 0.4em #d6a014, 0 0 2.4em rgba(214, 160, 20, 0.8); }

/* ID card */
.dc-id {
  width: 30em; height: 18.9em; padding: 1.2em 1.4em; border-radius: 1.1em; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, rgba(196, 181, 232, 0.55), transparent 60%), linear-gradient(135deg, #f6f2fd, #e3ecf2 55%, #f5eee6);
  box-shadow: 0 0.4em 1.4em rgba(20, 10, 40, 0.22);
}
.dc-id::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 78% 70%, transparent 0 0.9em, rgba(118, 86, 168, 0.06) 0.9em 1em); }
.dc-id-top { position: relative; display: flex; align-items: baseline; gap: 1em; }
.dc-id-top b { font-size: 0.8em; font-weight: 800; letter-spacing: 0.14em; color: #4b3f78; }
.dc-id-top span { font-size: 0.55em; font-weight: 800; letter-spacing: 0.3em; color: #b0435a; }
.dc-id-no { position: absolute; right: 1.4em; top: 1.05em; padding: 0.1em 0.3em; font-size: 0.85em; font-weight: 800; letter-spacing: 0.08em; color: #8a2f45; }
.dc-id-no span { margin-right: 0.4em; font-size: 0.6em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6489; }
.dc-glare { position: absolute; right: -0.6em; top: -0.5em; width: 3.2em; height: 2.2em; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6) 55%, transparent); }
.dc-id-body { position: relative; display: grid; grid-template-columns: 7.4em minmax(0, 1fr); gap: 1.2em; margin-top: 1em; }
.dc-photo { height: 9.4em; border-radius: 0.5em; overflow: hidden; display: grid; align-items: end; justify-items: center; background: linear-gradient(180deg, #d9d3ea, #c3bbdc); }
.dc-photo svg { width: 82%; height: auto; fill: #8e86ad; }
.dc-id-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55em 0.8em; }
.dc-id-data > div { display: flex; flex-direction: column; padding: 0.05em 0.2em; }
.dc-id-data .dc-row2 { grid-column: 1 / -1; flex-direction: row; gap: 0.8em; }
.dc-id-data .dc-row2 > div { flex: 1; display: flex; flex-direction: column; }
.dc-id-data span { font-size: 0.48em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6489; }
.dc-id-data b { font-size: 0.78em; font-weight: 700; letter-spacing: 0.03em; color: #1f1f1f; }
.dc-id .dc-sig { position: absolute; left: 1.4em; bottom: 1em; width: 7.4em; height: 2.4em; }
.dc-sig svg { display: block; width: 100%; height: 100%; fill: none; stroke: #2b2c6e; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* A4 paper: invoice, pay slip, letter */
.dc-paper {
  display: flex; flex-direction: column; width: 30em; height: 42.4em; padding: 2.4em 2.5em; overflow: hidden;
  background: #fff; box-shadow: 0 0.4em 1.4em rgba(20, 10, 40, 0.2);
}
.dc-paper p, .dc-line { font-size: 0.62em; }
.dc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; }
.dc-logo { display: flex; align-items: center; gap: 0.7em; padding: 0.15em 0.3em; }
.dc-logo i { width: 2.2em; height: 2.2em; border-radius: 0.5em; background: linear-gradient(135deg, #3d6fb4, #67b0c9); }
.dc-logo b { display: block; font-size: 0.95em; font-weight: 800; letter-spacing: -0.01em; color: #1d2b4a; }
.dc-logo p { font-size: 0.55em; color: #5b6478; }
.dc-paper .dc-contact { font-size: 0.52em; line-height: 1.6; text-align: right; color: #5b6478; }
.dc-contact span { padding: 0 0.2em; }
.dc-paper .dc-to { margin-top: 3.2em; padding: 0.2em 0.3em; align-self: flex-start; line-height: 1.5; }
.dc-paper .dc-title { margin-top: 2.6em; font-size: 1.15em; font-weight: 800; letter-spacing: -0.01em; color: #1d2b4a; align-self: flex-start; padding: 0 0.2em; }
.dc-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5em 1.2em; margin-top: 1.1em; }
.dc-meta p { display: flex; justify-content: space-between; gap: 1em; padding: 0.15em 0.35em; }
.dc-meta span { color: #5b6478; }
.dc-items { margin-top: 1.8em; border-top: 0.12em solid #1d2b4a; }
.dc-line { display: grid; grid-template-columns: minmax(0, 1fr) 4.5em 6em; gap: 0.6em; padding: 0.55em 0.35em; border-bottom: 0.06em solid #dfe2ea; }
.dc-line > :not(:first-child) { text-align: right; }
.dc-line.dc-th { font-weight: 700; color: #5b6478; }
.dc-line.dc-subt { font-weight: 700; }
.dc-sum { display: grid; justify-items: end; gap: 0.35em; margin-top: 1.2em; }
.dc-sum p { display: flex; justify-content: space-between; gap: 2em; width: 15em; padding: 0.15em 0.35em; }
.dc-sum span { color: #5b6478; }
.dc-paper .dc-total { margin-top: 0.3em; padding-block: 0.4em; font-size: 0.75em; font-weight: 800; border-top: 0.1em solid #1d2b4a; width: 14em; white-space: nowrap; }
.dc-total span { color: #1d2b4a; }
.dc-paper .dc-pay { margin-top: auto; line-height: 1.6; color: #3a4155; }
.dc-pay span { padding: 0.1em 0.2em; }
.dc-paper .dc-foot { margin-top: 0.8em; padding: 0.1em 0.3em; font-size: 0.5em; color: #8a90a2; align-self: flex-start; }
/* letter */
.dc-letter { padding-top: 3em; }
.dc-paper .dc-from { line-height: 1.6; align-self: flex-start; }
.dc-from span { padding: 0.1em 0.2em; }
.dc-letter .dc-to { margin-top: 2.4em; }
.dc-paper .dc-date { margin-top: 2.4em; align-self: flex-end; padding: 0.1em 0.3em; }
.dc-paper .dc-subj { margin-top: 1.6em; font-weight: 800; color: #1d2b4a; align-self: flex-start; padding: 0.1em 0.3em; }
.dc-paper .dc-body { margin-top: 1em; line-height: 1.65; }
.dc-body span { padding: 0.08em 0.15em; }
.dc-letter .dc-sig { width: 9em; height: 3em; margin-top: 0.6em; padding: 0.1em; }

/* ---------- 4a · the agent is built for this request ---------- */
/* the six segments of the hexagon fly in one after the other, out of the middle */
.tz-hexb path { transform-box: view-box; transform-origin: 50% 50%; }
.tz-core.assemble .tz-hexb path { animation: tzSeg 0.62s cubic-bezier(0.34, 1.4, 0.64, 1) backwards; }
.tz-core.assemble .tz-hexb path:nth-child(1) { animation-delay: 0.06s; }
.tz-core.assemble .tz-hexb path:nth-child(2) { animation-delay: 0.36s; }
.tz-core.assemble .tz-hexb path:nth-child(3) { animation-delay: 0.66s; }
.tz-core.assemble .tz-hexb path:nth-child(4) { animation-delay: 0.96s; }
.tz-core.assemble .tz-hexb path:nth-child(5) { animation-delay: 1.26s; }
.tz-core.assemble .tz-hexb path:nth-child(6) { animation-delay: 1.56s; }
@keyframes tzSeg { from { opacity: 0; rotate: -38deg; scale: 0.25; } to { opacity: 1; rotate: 0deg; scale: 1; } }
/* the agent stands: one calm pulse before it starts reading */
.tz-core.set { animation: tzSet 0.9s cubic-bezier(0.33, 1, 0.68, 1); }
@keyframes tzSet { 40% { scale: 1.07; } }
/* "temporary, for this one run" appears once the agent stands */
.tz-atemp { margin-top: 4px; font-size: 12.5px; color: var(--muted); opacity: 0; transition: opacity 0.5s; }
.tz-atemp.is-on { opacity: 1; }
/* what is being set up, in the place where the result card will stand */
.tz-blist { grid-column: 5; grid-row: 1; align-self: center; display: grid; gap: 11px; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.tz-stage.is-build .tz-blist { opacity: 1; }
.tz-bi { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.3; color: rgba(var(--fg-rgb), 0.42); transition: color 0.35s; }
.tz-bi .ic { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(118, 86, 168, 0.16); color: transparent; transition: background 0.35s, color 0.35s; }
.tz-bi .ic svg.i { width: 12px; height: 12px; stroke-width: 3.4; }
.tz-bi.is-on { color: rgba(var(--fg-rgb), 0.92); }
.tz-bi.is-on .ic { background: rgba(141, 232, 157, 0.55); color: var(--success-on-light); }
/* the document and the result card only arrive once the agent stands */
.tz-src, .tz-flow, .tz-out { transition: opacity 0.55s ease, translate 0.55s ease; }
.tz-stage.is-build .tz-out { opacity: 0; translate: 18px; }
@media (min-width: 861px) {
  .tz-stage.is-build .tz-src { opacity: 0; translate: -18px; }
  .tz-stage.is-build .tz-flow { opacity: 0; }
  .tz-stage.is-build .tz-agent-run .tz-core { scale: 1.08; }
}

/* ---------- 4a · the agent at work ---------- */
.tz-stage {
  position: relative; display: grid; grid-template-columns: 170px minmax(24px, 1fr) auto minmax(24px, 1fr) minmax(0, 380px); align-items: center;
  margin-top: 30px; min-height: 360px;
}
.tz-src { position: relative; display: grid; place-items: center; }
.tz-src .dc { font-size: calc(100cqw / 30); }
.tz-src-file { display: grid; justify-items: center; gap: 10px; width: 100%; padding: 26px 12px; border-radius: 14px; text-align: center; background: rgba(var(--panel-rgb), 0.9); border: 1.5px solid rgba(var(--lav-rgb), 0.45); }
.tz-src-file svg.i { width: 34px; height: 34px; color: var(--accent); }
.tz-src-file b { max-width: 100%; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-src-file span { font-size: 12px; color: var(--muted); }
.tz-src img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 26px rgba(20, 10, 40, 0.25); }
/* a light line reads down the page */
.tz-scan {
  position: absolute; left: -4%; right: -4%; top: 0; height: 2px; border-radius: 2px; background: var(--core); opacity: 0;
  box-shadow: 0 0 14px 4px rgba(var(--lav-rgb), 0.8), 0 -24px 30px rgba(118, 86, 168, 0.25);
}
.tz-stage.is-reading .tz-scan { animation: tzScan 1.7s ease-in-out infinite alternate; }
@keyframes tzScan { 0% { top: 4%; opacity: 0.9; } 100% { top: 96%; opacity: 0.9; } }
.tz-flow span { position: relative; display: block; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(var(--lav-rgb), 0.55) 0 10px, transparent 10px 18px); }
.tz-flow span::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; opacity: 0;
  background: var(--core); box-shadow: 0 0 10px 3px rgba(var(--lav-rgb), 0.85);
}
.tz-stage.is-reading .tz-flow.in span::after { animation: tzDot 0.9s ease-in-out infinite; }
.tz-stage.is-writing .tz-flow.out span::after { animation: tzDot 0.5s ease-in-out infinite; }
@keyframes tzDot { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.tz-agent-run { padding-inline: 6px; }
.tz-agent-run .tz-core { width: 140px; height: 140px; }
.tz-agent-run .tz-aname { margin-top: 14px; font-size: 16px; }
.tz-out {
  grid-column: 5; grid-row: 1; align-self: center; padding: 16px 18px 12px; border-radius: 16px; color: var(--ink); background: var(--card);
  box-shadow: 0 30px 70px rgba(var(--shadow-rgb), calc(0.5 * var(--shadow-k))), 0 0 60px rgba(118, 86, 168, 0.22);
}
:root[data-theme="light"] .tz-out, :root[data-theme="light"] .tz-rcard { box-shadow: 0 18px 50px rgba(40, 26, 80, 0.14), 0 0 0 1px rgba(70, 63, 106, 0.08); }
.tz-out-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(70, 63, 106, 0.14); }
.tz-out-h b { font-size: 15px; }
.tz-out-h span { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #6a4c9c; }
.tz-orow { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; font-size: 13.5px; }
.tz-orow + .tz-orow { border-top: 1px solid rgba(70, 63, 106, 0.08); }
.tz-orow .l { flex: none; width: 42%; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-orow .v { flex: 1; min-width: 0; font-weight: 700; color: #2a2540; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-orow .v:empty::before { content: ""; display: block; width: 70%; height: 8px; border-radius: 4px; background: rgba(118, 86, 168, 0.14); }
.tz-orow .v.none { color: #8a80ad; font-weight: 500; font-style: italic; }
.tz-orow.is-in { animation: tzRowIn 0.7s ease-out; }
@keyframes tzRowIn { 0% { background: rgba(118, 86, 168, 0.28); } 100% { background: transparent; } }
.tz-st-ic, .tz-pill .ic { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; line-height: 1; }
.tz-st-ic svg.i, .tz-pill .ic svg.i { width: 12px; height: 12px; stroke-width: 3.4; }
.tz-st-ic.ok, .tz-pill.ok .ic { background: rgba(141, 232, 157, 0.55); color: var(--success-on-light); }
.tz-st-ic.chk, .tz-pill.chk .ic { background: var(--exception); color: #5a4300; }
.tz-st-ic.none, .tz-pill.none .ic { background: rgba(118, 86, 168, 0.16); color: #6a4c9c; }
.tz-orow .tz-st-ic { visibility: hidden; }
.tz-orow.is-done .tz-st-ic { visibility: visible; }
/* the finding pops above the agent and is thrown into the card (positioned by try.js) */
.tz-pill {
  position: absolute; left: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 10px;
  background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; pointer-events: none;
  box-shadow: 0 14px 34px rgba(var(--shadow-rgb), calc(0.45 * var(--shadow-k))), 0 0 24px rgba(118, 86, 168, 0.3);
}
.tz-pill.chk { background: #fff4d6; }

/* ---------- 4b · result ---------- */
.tz-rtop { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.tz-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tz-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 7px; border-radius: 99px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.tz-badge .tz-st-ic { width: 22px; height: 22px; }
.tz-badge.ok { background: rgba(141, 232, 157, 0.22); color: var(--success-fg); }
.tz-badge.chk { background: rgba(242, 201, 76, 0.2); color: var(--exception); }
/* the badge for the table rows is a button: it jumps to the table below the fields */
.tz-badge-go { border: 0; font-family: inherit; cursor: pointer; transition: background 0.2s, scale 0.15s; }
.tz-badge-go:hover { background: rgba(141, 232, 157, 0.4); }
.tz-badge-go:active { scale: 0.97; }
.tz-badge-go .tz-down { width: 14px; height: 14px; margin-left: -2px; rotate: 90deg; opacity: 0.65; }
:root[data-theme="light"] .tz-badge.chk { color: #7a5a00; }
.tz-proto, .tz-tip { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; }
.tz-proto { border: 1.5px dashed rgba(var(--lav-rgb), 0.5); color: rgba(var(--fg-rgb), 0.8); }
.tz-proto svg.i { width: 18px; height: 18px; color: var(--accent); }
.tz-tip { flex-wrap: wrap; background: rgba(118, 86, 168, 0.16); }
.tz-tip button { min-height: 40px; padding: 0 14px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; color: var(--btn-fg); background: var(--btn-bg); border: 0; }
.tz-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: 24px; }
.tz-rcard { padding: clamp(14px, 1.6vw, 22px) clamp(16px, 1.8vw, 26px); border-radius: 20px; color: var(--ink); background: var(--card); box-shadow: 0 30px 70px rgba(var(--shadow-rgb), calc(0.45 * var(--shadow-k))), 0 0 60px rgba(118, 86, 168, 0.2); }
.tz-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tz-table th:nth-child(1) { width: 19%; } .tz-table th:nth-child(2) { width: 27%; } .tz-table th:nth-child(3) { width: 118px; }
.tz-table th { padding: 6px 10px 12px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #6a4c9c; border-bottom: 1px solid rgba(70, 63, 106, 0.16); }
.tz-table td { padding: 13px 10px; vertical-align: top; border-bottom: 1px solid rgba(70, 63, 106, 0.1); }
.tz-table tbody tr { cursor: default; transition: background 0.2s; }
.tz-table tbody tr:hover, .tz-table tbody tr.is-hl { background: rgba(118, 86, 168, 0.09); }
.tz-table tbody tr:focus-visible { outline: 2px solid #7656a8; outline-offset: -2px; border-radius: 0; }
.tz-fn { font-weight: 700; color: #2a2540; }
.tz-val { font-weight: 600; color: #1f1f1f; overflow-wrap: anywhere; }
.tz-val.none { color: #8a80ad; font-weight: 500; font-style: italic; }
.tz-conf { white-space: nowrap; }
.tz-conf > span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.tz-bar { display: inline-block; width: 52px; height: 6px; border-radius: 99px; background: rgba(118, 86, 168, 0.18); overflow: hidden; }
.tz-bar i { display: block; height: 100%; border-radius: 99px; background: var(--violet); }
.tz-bar.high i { width: 92%; } .tz-bar.med i { width: 64%; } .tz-bar.low i { width: 32%; background: #d6a014; }
.tz-check { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 8px 2px 4px; border-radius: 99px; background: #fff0c2; color: #6b4e00; font-size: 11.5px; font-weight: 700; }
.tz-check .tz-st-ic { width: 16px; height: 16px; font-size: 10px; }
.tz-ev { font-size: 13.5px; line-height: 1.45; color: #4a4466; overflow-wrap: anywhere; }
.tz-ev .pg { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(118, 86, 168, 0.12); color: #6a4c9c; font-size: 11px; font-weight: 700; }
.tz-ev mark { padding: 0 2px; border-radius: 3px; background: rgba(118, 86, 168, 0.2); color: #1f1f1f; font-weight: 600; }
.tz-ev .note { display: block; margin-top: 3px; font-size: 12.5px; font-style: italic; color: #6b6489; }
.tz-human { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 0 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.tz-human svg.i { width: 17px; height: 17px; color: #6a4c9c; }
.tz-preview { position: sticky; top: 92px; margin: 0; padding: 7%; border-radius: 16px; background: #e6e2f2; display: grid; justify-items: center; gap: 12px; }
.tz-preview .dc { font-size: calc(100cqw / 30); }
.tz-preview img { display: block; max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 8px 26px rgba(20, 10, 40, 0.25); }
.tz-preview figcaption { font-size: 12.5px; font-weight: 600; color: #4a4466; text-align: center; }

.tz-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 32px; padding: clamp(20px, 2.4vw, 30px);
  border-radius: 18px; background: linear-gradient(140deg, rgba(118, 86, 168, 0.35), rgba(var(--panel-rgb), 0.5)); border: 1px solid rgba(var(--lav-rgb), 0.35);
}
.tz-cta-t { font-size: clamp(19px, 1.7vw, 24px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.tz-cta-s { margin-top: 4px; font-size: 15px; color: rgba(var(--fg-rgb), 0.75); }
.tz-again { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .tz-stage { grid-template-columns: 140px minmax(18px, 1fr) auto minmax(18px, 1fr) minmax(0, 330px); }
  .tz-agent-run .tz-core { width: 120px; height: 120px; }
}
@media (max-width: 960px) {
  .tz-res { grid-template-columns: minmax(0, 1fr); }
  .tz-preview { position: static; max-width: 420px; width: 100%; justify-self: center; }
}
@media (max-width: 860px) {
  .tz-build { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .tz-build .tz-agent { width: auto; }
  .tz-docgrid { grid-template-columns: minmax(0, 1fr); }
  /* the agent at work: document and agent side by side, the result card below */
  .tz-stage { grid-template-columns: 96px minmax(20px, 1fr) auto; row-gap: 30px; min-height: 0; }
  .tz-flow.out { display: none; }
  .tz-out, .tz-blist { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .tz-blist { align-self: start; }
}
@media (max-width: 640px) {
  .tz { border-radius: 20px; }
  .tz-steps { margin-bottom: 28px; }
  .tz-st-l { font-size: 11.5px; letter-spacing: 0; }
  .tz-core { width: 124px; height: 124px; }
  .tz-agent-run .tz-core { width: 104px; height: 104px; }
  .tz-tick { width: 28px; height: 28px; }
  .tz-tick svg.i { width: 15px; height: 15px; }
  .tz-aname { margin-top: 12px; font-size: 17px; }
  .tz-sub { font-size: 15px; }
  .tz-field textarea { min-height: 140px; padding: 14px 14px 30px; font-size: 16px; }
  .tz-examples .tz-k { flex-basis: 100%; }
  .tz-ex { font-size: 14px; padding-inline: 10px 13px; }
  .tz-actions { gap: 12px; }
  .tz-actions .btn { flex: 1 1 auto; justify-content: center; }
  .tz-sgrid { gap: 8px; }
  .tz-sample { padding: 5px 5px 8px; border-radius: 12px; gap: 6px; }
  .tz-sname { font-size: 11.5px; }
  .tz-sname svg.i { display: none; }
  .tz-fit { font-size: 9.5px; padding: 1px 6px; }
  .tz-fit .l { display: none; }
  .tz-fit .s { display: inline; }
  .tz-drop { padding: 22px 16px; }
  /* result table: one small card per field */
  .tz-table thead { display: none; }
  .tz-table, .tz-table tbody { display: block; }
  .tz-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 4px; border-bottom: 1px solid rgba(70, 63, 106, 0.12); }
  .tz-table td { display: block; padding: 0; border: 0; }
  .tz-table td.tz-fn { grid-column: 1; grid-row: 1; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #6a4c9c; }
  .tz-table td.tz-conf { grid-column: 2; grid-row: 1 / span 2; align-self: start; text-align: right; }
  .tz-table td.tz-val { grid-column: 1; grid-row: 2; font-size: 16px; }
  .tz-table td.tz-ev { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
  .tz-conf > span:first-child { flex-direction: column-reverse; align-items: flex-end; gap: 4px; font-size: 12px; }
  .tz-check { margin-top: 4px; }
  .tz-human { padding: 0 4px; align-items: flex-start; }
  .tz-cta .btn { width: 100%; justify-content: center; }
  .tz-again .tz-back { flex: 1 1 auto; justify-content: center; }
  .tz-pill { font-size: 11.5px; padding: 5px 10px 5px 5px; gap: 6px; }
  .tz-pill .ic { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .tz-pane.is-active, .tz-chip.is-new, .tz-chip.is-out, .tz-orow.is-in, .tz-core.pulse, .tz-core.set { animation: none; }
  .tz-tbl.is-jump { animation: none; }
  .tz-agent.is-busy .tz-core::before, .tz-stage .tz-scan, .tz-stage .tz-flow span::after { animation: none !important; opacity: 0; }
  .tz-core.assemble .tz-hexb path { animation: none; }
  .tz-src, .tz-flow, .tz-out, .tz-blist, .tz-atemp, .tz-core { transition: none; }
  .tz-stage.is-build .tz-src, .tz-stage.is-build .tz-flow, .tz-stage.is-build .tz-out { opacity: 1; translate: none; }
  .tz-steps::after, .tz-hex, .tz-tick, .tz-st-tick { transition: none; }
}

/* ---------- variant B (try-live.html): three steps, the agent chooses its fields while it reads ---------- */
.tz-steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 480px; }
.tz-steps-3::before { left: 16.667%; right: 16.667%; }
.tz-steps-3::after { left: 16.667%; width: calc(var(--p) * 33.333%); }
.tz-stage[hidden], .tz-edit[hidden], .tz-fail[hidden] { display: none; }
/* empty rows while the agent has not chosen its fields yet */
.tz-orow.tz-skel .l::before, .tz-orow.tz-skel .v::before {
  content: ""; display: block; height: 8px; border-radius: 4px; background: rgba(118, 86, 168, 0.14); animation: tzSkel 1.4s ease-in-out infinite;
}
.tz-orow.tz-skel .l::before { width: 70%; }
.tz-orow.tz-skel .v::before { width: 55%; animation-delay: 0.2s; }
@keyframes tzSkel { 50% { opacity: 0.45; } }
.tz-orow.is-new { animation: tzRowNew 0.4s var(--ease) both; }
@keyframes tzRowNew { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.tz-fail { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: rgba(242, 201, 76, 0.16); border: 1px solid rgba(242, 201, 76, 0.45); }
.tz-fail p { font-size: 16px; font-weight: 600; }
.tz-fail .tz-again { margin-top: 14px; }
.tz-edit { margin-top: 22px; padding: clamp(18px, 2vw, 26px); border-radius: 18px; background: rgba(118, 86, 168, 0.12); border: 1px solid rgba(var(--lav-rgb), 0.35); }
.tz-edit .tz-again { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .tz-orow.tz-skel .l::before, .tz-orow.tz-skel .v::before, .tz-orow.is-new { animation: none; } }


/* ---------- live result (section #try on the page): Cognaio's confidence and the evidence on the page images ---------- */
.tz-table th:nth-child(1) { width: 24%; } .tz-table th:nth-child(2) { width: auto; } .tz-table th:nth-child(3) { width: 140px; } .tz-table th:nth-child(4) { width: 112px; }
.tz-table[hidden] { display: none !important; }
.tz-num {
  display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 7px; border-radius: 50%; vertical-align: 1px;
  background: #7656a8; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1;
}
.tz-conf > .tz-cline, .tz-gconf > .tz-cline { display: flex; align-items: center; gap: 8px; }
.tz-cnum { font-size: 14px; font-weight: 800; color: #2a2540; font-variant-numeric: tabular-nums; }
.tz-cnum.low { color: #8a6400; }
.tz-cnum.none { color: #8a80ad; font-weight: 500; }
.tz-bar i { width: 50%; transition: width 0.6s var(--ease); }
.tz-conf > .tz-basis, .tz-gconf > .tz-basis { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 600; color: #6b6489; letter-spacing: 0.01em; white-space: nowrap; }
.tz-conf .tz-check, .tz-gconf .tz-check { display: flex; width: max-content; }
.tz-empty { padding: 22px 10px !important; font-size: 15px; font-weight: 600; color: #4a4466; }
.tz-legend { margin-top: 6px; padding: 0 10px; font-size: 12.5px; line-height: 1.45; color: rgba(var(--fg-rgb), 0.62); }
.tz-rcard .tz-legend { color: #6b6489; }

/* the document as COGNAiO read it: pages stacked, a numbered mark on every value; the column scrolls on its own */
.tz-res:has(.tz-doc) { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr); }
.tz-preview.tz-doc { padding: 12px; gap: 10px; }
.tz-pages {
  width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow: auto; overscroll-behavior: contain;
  display: grid; gap: 12px; padding: 2px; scrollbar-width: thin;
}
.tz-page { position: relative; width: 100%; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 6px 22px rgba(20, 10, 40, 0.22); }
.tz-page img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; border-radius: 0; box-shadow: none; }
.tz-pno { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(42, 37, 64, 0.75); color: #fff; font-size: 11px; font-weight: 700; }
.tz-box {
  position: absolute; border: 2px solid #7656a8; border-radius: 3px; background: rgba(118, 86, 168, 0.13); cursor: pointer;
  transition: opacity 0.2s, background 0.2s, box-shadow 0.2s;
}
.tz-box b {
  position: absolute; left: -3px; bottom: calc(100% + 2px); display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; /* above the mark, never on the value */
  background: #7656a8; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; box-shadow: 0 1px 4px rgba(20, 10, 40, 0.35);
}
.tz-box.chk { border-color: #d6a014; background: rgba(242, 201, 76, 0.2); }
.tz-box.chk b { background: #d6a014; color: #2b1f00; }
.tz-doc.has-hl .tz-box:not(.is-hl) { opacity: 0.22; }
.tz-box.is-hl { background: rgba(118, 86, 168, 0.28); box-shadow: 0 0 0 4px rgba(118, 86, 168, 0.3), 0 0 22px rgba(118, 86, 168, 0.55); z-index: 1; }
.tz-box.chk.is-hl { background: rgba(242, 201, 76, 0.38); box-shadow: 0 0 0 4px rgba(214, 160, 20, 0.35), 0 0 22px rgba(214, 160, 20, 0.6); }

/* side by side only where the table keeps room for its values (German labels are long); below, the document follows
   the table */
@media (max-width: 1199px) {
  .tz-res:has(.tz-doc) { grid-template-columns: minmax(0, 1fr); }
  .tz-preview.tz-doc { max-width: 560px; }
  .tz-pages { max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .tz-conf > .tz-basis { text-align: right; }
  /* the value gets the full width under the label; the confidence stands beside the label */
  .tz-table td.tz-conf { grid-row: 1; }
  .tz-table td.tz-val { grid-column: 1 / -1; grid-row: 2; margin-top: 2px; }
  .tz-conf .tz-check { margin-left: auto; }
  .tz-conf > .tz-cline { flex-direction: row-reverse; }
  .tz-empty { display: block; }
}
@media (prefers-reduced-motion: reduce) { .tz-bar i, .tz-box { transition: none; } }


/* evidence = where it stands: page + a button that opens the document large at that place */
.tz-show {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 8px 3px 4px; border: 0; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700; color: #6a4c9c; background: transparent; white-space: nowrap; transition: background 0.2s;
}
.tz-show .pg { margin: 0; }
.tz-show svg.i { width: 13px; height: 13px; }
.tz-show:hover, .tz-show:focus-visible { background: rgba(118, 86, 168, 0.12); }
.tz-show:focus-visible { outline: 2px solid #7656a8; outline-offset: 1px; }
.tz-ev { white-space: nowrap; }

/* the table the visitor asked for */
.tz-tbl { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(70, 63, 106, 0.16); }
.tz-tbl.is-jump { animation: tzJump 1.5s ease-out; }
@keyframes tzJump { 0%, 25% { background: rgba(118, 86, 168, 0.14); } 100% { background: transparent; } }
.tz-tbl-h { display: flex; align-items: baseline; gap: 10px; padding: 0 10px 8px; }
.tz-tbl-h b { font-size: 15px; color: #2a2540; }
.tz-tbl-h span { font-size: 12.5px; font-weight: 600; color: #6b6489; }
.tz-tbl-scroll { overflow-x: auto; scrollbar-width: thin; }
.tz-grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tz-grid th { padding: 6px 10px 10px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6a4c9c; white-space: nowrap; border-bottom: 1px solid rgba(70, 63, 106, 0.16); }
.tz-grid td { padding: 10px; vertical-align: top; font-weight: 600; color: #1f1f1f; border-bottom: 1px solid rgba(70, 63, 106, 0.1); }
.tz-grid td.none { color: #8a80ad; font-weight: 500; }
.tz-grid td.chk { box-shadow: inset 0 -2px 0 #d6a014; background: rgba(242, 201, 76, 0.12); }
.tz-grid .tz-gno { width: 28px; color: #8a80ad; font-weight: 700; }
.tz-grid .tz-gconf { width: 1%; white-space: nowrap; }
.tz-grid .tz-gconf .tz-cnum { font-size: 13px; }
.tz-grid .tz-gev { width: 1%; white-space: nowrap; }
.tz-grid tbody tr { transition: background 0.2s; }
.tz-grid tbody tr:hover, .tz-grid tbody tr.is-hl { background: rgba(118, 86, 168, 0.09); }
.tz-grid tbody tr:focus-visible { outline: 2px solid #7656a8; outline-offset: -2px; }
.tz-tbl .tz-legend { margin-top: 8px; }

/* marks of table rows: quieter than the numbered fields until their row is picked */
.tz-box.row { border-width: 1.5px; border-style: dashed; background: transparent; opacity: 0.55; }
.tz-box.row.is-hl { opacity: 1; border-style: solid; }
.tz-box.is-pulse { animation: tzPulse 1.2s ease-out 2; }
@keyframes tzPulse { 0% { box-shadow: 0 0 0 0 rgba(118, 86, 168, 0.75); } 100% { box-shadow: 0 0 0 16px rgba(118, 86, 168, 0); } }
.tz-box.chk.is-pulse { animation-name: tzPulseChk; }
@keyframes tzPulseChk { 0% { box-shadow: 0 0 0 0 rgba(214, 160, 20, 0.8); } 100% { box-shadow: 0 0 0 16px rgba(214, 160, 20, 0); } }

/* "Open large" on the document */
.tz-preview.tz-doc { position: sticky; }
.tz-preview .tz-pages { cursor: zoom-in; }
.tz-enlarge {
  position: absolute; top: 20px; right: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px 0 10px;
  border: 0; border-radius: 99px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: rgba(42, 37, 64, 0.82);
  box-shadow: 0 6px 18px rgba(20, 10, 40, 0.3); transition: background 0.2s;
}
.tz-enlarge svg.i { width: 15px; height: 15px; }
.tz-enlarge:hover, .tz-enlarge:focus-visible { background: #7656a8; }
.tz-enlarge:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- the document large (a modal dialog): pages left, findings right; on phones the findings sit below ---------- */
html.tz-lb-open { overflow: hidden; }
.tz-lb {
  width: min(1500px, 96vw); height: 94vh; height: 94dvh; max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 18px;
  color: var(--ink); background: var(--card); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55); overflow: hidden;
}
.tz-lb::backdrop { background: rgba(10, 6, 22, 0.72); backdrop-filter: blur(3px); }
.tz-lb-in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: 100%; }
.tz-lb-doc { overflow: auto; background: #dcd7ec; padding: 22px; overscroll-behavior: contain; }
.tz-lb-doc .tz-pages { max-height: none; overflow: visible; width: 100%; max-width: none; margin: 0 auto; cursor: default; gap: 18px; }
.tz-lb-doc .tz-page { box-shadow: 0 10px 34px rgba(20, 10, 40, 0.28); }
.tz-lb-doc .tz-box b { width: 20px; height: 20px; font-size: 11px; }
.tz-lb.has-hl .tz-box:not(.is-hl) { opacity: 0.2; }
.tz-lb-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid rgba(70, 63, 106, 0.14); }
.tz-lb-top { display: flex; align-items: center; gap: 10px; padding: 16px 16px 8px 20px; }
.tz-lb-top h3 { flex: 1; font-size: 18px; font-weight: 800; color: #2a2540; }
.tz-lb-zoom { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 99px; background: rgba(118, 86, 168, 0.12); }
.tz-lb-zoom button { width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer; font: inherit; font-size: 18px; font-weight: 700; color: #4a3a73; background: transparent; }
.tz-lb-zoom button:hover, .tz-lb-zoom button:focus-visible { background: #fff; }
.tz-lb-zoom span { min-width: 46px; text-align: center; font-size: 12.5px; font-weight: 700; color: #4a4466; font-variant-numeric: tabular-nums; }
.tz-lb-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; color: #2a2540; background: rgba(118, 86, 168, 0.12); }
.tz-lb-x svg.i { width: 20px; height: 20px; }
.tz-lb-x:hover, .tz-lb-x:focus-visible { background: rgba(118, 86, 168, 0.25); }
.tz-lb-hint { padding: 0 20px 10px; font-size: 13px; color: #6b6489; }
.tz-lb-list { flex: 1; overflow: auto; padding: 0 12px 20px; overscroll-behavior: contain; }
.tz-lb-list .tz-k { margin: 14px 8px 6px; color: #6a4c9c; }
.tz-lb-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tz-lb-it {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 10px;
  border: 1.5px solid transparent; border-radius: 12px; cursor: pointer; text-align: left; font: inherit; color: inherit; background: transparent; transition: background 0.2s, border-color 0.2s;
}
.tz-lb-it:hover { background: rgba(118, 86, 168, 0.08); }
.tz-lb-it.is-on { background: rgba(118, 86, 168, 0.14); border-color: #7656a8; }
.tz-lb-it:focus-visible { outline: 2px solid #7656a8; outline-offset: 1px; }
.tz-lb-it:disabled { cursor: default; opacity: 0.6; }
.tz-lb-it .tz-num { margin: 0; }
.tz-lb-it.chk .tz-num { background: #d6a014; color: #2b1f00; }
.tz-lb-it .t { display: grid; min-width: 0; }
.tz-lb-it .l { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6a4c9c; }
.tz-lb-it .v { font-size: 14.5px; font-weight: 600; color: #1f1f1f; overflow-wrap: anywhere; }
.tz-lb-it .c { font-size: 12.5px; font-weight: 700; color: #4a4466; font-variant-numeric: tabular-nums; }
.tz-lb-it.chk .c { color: #8a6400; }
.tz-num.row { background: transparent; color: #6a4c9c; box-shadow: inset 0 0 0 1.5px #7656a8; }

@media (max-width: 860px) {
  .tz-lb { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .tz-lb-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 40%); }
  .tz-lb-doc { padding: 12px; }
  .tz-lb-side { border-left: 0; border-top: 1px solid rgba(70, 63, 106, 0.18); }
  .tz-lb-top { padding: 10px 12px 4px 16px; }
  .tz-lb-hint { display: none; }
  .tz-enlarge { top: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) { .tz-box.is-pulse { animation: none; } }

/* ---------- its own page (/try/): the title is the page's h1, the terms of the demo below it ---------- */
.tz-sec .sec-head h1 { font-size: clamp(34px, 4.2vw, 60px); font-weight: 700; line-height: 1.06; letter-spacing: -0.026em; text-wrap: balance; }
.tz-terms { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 26px; padding: 0; list-style: none; }
.tz-terms li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.4; color: rgba(var(--fg-rgb), 0.76); }
.tz-terms b { color: var(--fg); font-weight: 700; }
.tz-terms svg.i { color: var(--accent); }

/* ---------- sign-in: only for own requests, documents and fields ---------- */
.tz-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; margin: -4px 0 16px; font-size: 13.5px; color: rgba(var(--fg-rgb), 0.72); }
.tz-who svg.i { width: 17px; height: 17px; color: var(--accent); }
.tz-who b { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.tz-link {
  min-height: 32px; padding: 4px 2px; font: inherit; font-weight: 600; color: var(--fg); background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px;
}
.tz-link:hover { text-decoration-thickness: 2px; }
.tz-link:disabled { opacity: 0.5; cursor: default; }
.tz-gate { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: rgba(var(--fg-rgb), 0.8); }
.tz-gate svg.i { width: 18px; height: 18px; color: var(--accent); }
.tz-drop-gate {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 5px 12px 5px 9px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; color: var(--fg); background: rgba(118, 86, 168, 0.18); border: 1px solid rgba(var(--lav-rgb), 0.35);
}
.tz-drop-gate svg.i { width: 15px; height: 15px; color: var(--accent); }
.tz-who[hidden], .tz-gate[hidden], .tz-drop-gate[hidden], .tz-auth-form[hidden] { display: none; }

.tz-auth-form { margin-top: 28px; }
.tz-auth-form .tz-k { display: block; margin-bottom: 10px; }
.tz-auth-row { display: flex; gap: 12px; }
.tz-auth-row .btn { flex: none; }
.tz-in {
  flex: 1; min-width: 0; min-height: 54px; padding: 0 18px; border-radius: 14px; font: inherit; font-size: 17px; color: var(--fg);
  background: rgba(var(--panel-rgb), 0.55); border: 1.5px solid rgba(var(--lav-rgb), 0.35); transition: border-color 0.2s, box-shadow 0.2s;
}
.tz-in::placeholder { color: rgba(var(--fg-rgb), 0.4); }
.tz-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(118, 86, 168, 0.22); }
.tz-in-code { flex: 0 1 230px; font-size: 26px; font-weight: 700; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.tz-auth-note { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: rgba(var(--fg-rgb), 0.66); }
.tz-auth-to { margin-bottom: 12px; font-size: 15px; line-height: 1.45; color: rgba(var(--fg-rgb), 0.78); }
.tz-auth-to b { color: var(--fg); overflow-wrap: anywhere; }
.tz-auth-test { margin-bottom: 12px; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; background: rgba(242, 201, 76, 0.18); border: 1px dashed rgba(242, 201, 76, 0.6); }
.tz-auth-test[hidden] { display: none; }
.tz-auth-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .tz-auth-row { flex-direction: column; }
  .tz-in-code { flex: none; }
  .tz-auth-row .btn { justify-content: center; }
  .tz-who { justify-content: flex-start; }
}
