/* ontara.ch v5 — re-created product UI and source documents, shared by A and B.
   Sizes are design pixels; each scene is scaled as a whole, nothing re-flows mid-animation. */

/* ---------- small parts ---------- */
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; font: 600 10px/1 var(--mono); letter-spacing: 0.04em; color: #fff; white-space: nowrap; }
.tag--pdf { background: var(--tag-pdf); }
.tag--xlsx { background: var(--tag-xlsx); }
.tag--reqif { background: var(--tag-reqif); }
.tag--eml { background: var(--tag-eml); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 11.5px/1 var(--sans); white-space: nowrap; }
.pill--warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.pill--danger { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-line); }
.pill--ok { color: var(--ok); padding: 0; height: auto; font-weight: 500; }
.pill--muted { color: var(--muted-2); padding: 0; height: auto; font-weight: 500; }
.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; }
.dot--ok { background: #16a34a; }
.dot--warn { background: #d98a0b; }
.dot--bad { background: #dc2626; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- register table ---------- */
.rgt { font-size: 13px; }
.rgt__row {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
}
.rgt__row > * { position: relative; padding: 0 10px; }
.rgt__head { min-height: 34px; font: 600 10.5px/1 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2); }
.rgt__id { font: 500 11.5px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.rgt__t { font-weight: 560; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rgt__src { display: flex; align-items: center; gap: 4px; }
.rgt__hl { position: absolute; inset: 0; padding: 0; background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }

/* ---------- source documents (paper cards) ---------- */
.doc {
  position: absolute;
  width: 240px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 18px 40px -18px rgba(0, 0, 0, 0.45);
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-2);
  overflow: clip;
}
.doc__bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.doc__name { font: 500 11px/1 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc__body { position: relative; padding: 12px 12px 14px; }
.doc__foot { display: flex; justify-content: space-between; padding: 7px 12px; border-top: 1px solid var(--line); font: 500 10px/1 var(--mono); color: var(--muted-2); }
.tx { display: block; height: 6px; margin: 7px 0; border-radius: 3px; background: #e6ebf2; }
.tx--h { width: 55%; height: 8px; margin-bottom: 10px; background: #cfd8e4; }
.tx--90 { width: 90%; } .tx--75 { width: 75%; } .tx--60 { width: 60%; } .tx--40 { width: 40%; }
.tx-table { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 3px; margin-top: 10px; }
.tx-table i { height: 12px; border-radius: 2px; background: #eef2f7; }
.tx-table i:nth-child(-n + 3) { background: #dde4ee; }
.tx-grid { display: grid; grid-template-columns: 26px 64px 1fr 44px; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tx-grid span { height: 17px; padding: 0 4px; background: #fff; font: 9.5px/17px var(--mono); color: var(--muted-2); overflow: hidden; white-space: nowrap; }
.tx-grid .hd { background: #f1f4f8; color: var(--muted); font-weight: 600; }
.tx-grid .rn { background: #f7f9fb; text-align: right; }
.tx-grid .amber { background: #fff1c7; color: #7a5200; }
.tx-code { margin: 0; font: 10px/1.65 var(--mono); color: var(--muted); white-space: pre; }
.tx-code .k { color: var(--tag-reqif); }
.tx-mail { margin: 0; font-size: 10.5px; color: var(--muted); }
.tx-mail div { display: flex; gap: 6px; }
.tx-mail dt { min-width: 44px; color: var(--muted-2); }
.tx-mail dd { margin: 0; }
.tx-mail .subj { color: var(--ink); font-weight: 600; }
.mark { position: relative; display: block; margin: 8px -4px; padding: 5px 6px; border-radius: 6px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--ink); font-size: 11px; line-height: 1.4; }
.mark b { color: var(--accent-deep); font-weight: 650; }
.mark--warn { background: var(--warn-soft); box-shadow: inset 0 0 0 1px var(--warn-line); }
.mark--warn b { color: var(--warn); }
.hit { position: relative; border-radius: 3px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--ink); padding: 0 2px; }
.note { position: absolute; padding: 7px 10px; border-radius: 6px; background: #fffbe8; border: 1px solid #efd98a; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.35); font-size: 11px; color: #6b4e00; }

/* extracted fragment */
.frag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--accent-line);
  box-shadow: 0 10px 24px -10px rgba(11, 107, 214, 0.45);
  font-size: 13px;
  font-weight: 560;
  color: var(--ink);
  white-space: nowrap;
}
.frag .tag { border-radius: 999px; }
.frag--warn { border-color: var(--warn-line); }
