/* V2Lens page: content of the app window in the hero (frame in /assets/product.css),
   plus the HL7 path and anonymizer blocks. */
.mtab .badge { font-style: normal; font-size: 10px; padding: 0 6px; border-radius: 999px; background: var(--bg4); color: var(--fg3); }
.modes { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.modes b { font-weight: 600; padding: 3px 10px; border-radius: 6px; color: var(--fg3); }
.modes b.on { background: color-mix(in srgb, #a78bfa 22%, transparent); color: var(--fg); }

.v2-body { display: grid; grid-template-columns: 190px 1fr 220px; min-height: 360px; }
.tree-row { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; color: var(--fg2); white-space: nowrap; overflow: hidden; }
.tree-row.dir { color: var(--fg); font-weight: 600; }
.tree-row.file { padding-left: 22px; }
.tree-row.active { background: var(--bg4); color: var(--fg); }
.tree-row i { margin-left: auto; font-style: normal; font-size: 10px; padding: 0 6px; border-radius: 999px; background: var(--bg3); color: var(--fg3); }

.v2-editor { display: flex; flex-direction: column; min-width: 0; }
.editor-bar { display: flex; gap: 16px; padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--fg3); font-size: 12px; white-space: nowrap; overflow: hidden; }
.editor-bar span:last-child { margin-left: auto; color: #a78bfa; }
.mock pre.hl7 { flex: 1; padding: 12px 14px; font-size: 12.5px; line-height: 1.85; white-space: pre; overflow: hidden; color: var(--fg); }
.hl7 .ln { display: inline-block; width: 20px; color: var(--fg3); opacity: .6; user-select: none; }
.hl7 .seg { color: var(--tok-key); font-weight: 700; }
.hl7 .d { color: #ef6aa8; }
.hl7 .alt { background: color-mix(in srgb, var(--fg) 6%, transparent); border-radius: 3px; }
.hl7 .cur { background: color-mix(in srgb, #a78bfa 26%, transparent); outline: 1px solid color-mix(in srgb, #a78bfa 60%, transparent); border-radius: 3px; }
.ack { display: flex; flex-wrap: wrap; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg3); }
.ack .aa { color: #3ccf7f; font-weight: 700; }
.ack .anon { margin-left: auto; color: #ef6aa8; }

.inspector { border-left: 1px solid var(--line); padding: 12px 10px; background: var(--bg2); }
.inspector .side-h { padding-left: 2px; }
.inspector dl + .side-h { margin-top: 16px; }
.inspector .path {
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 7px;
  font: 600 12.5px/1.4 var(--mono);
  color: #a78bfa;
  background: color-mix(in srgb, #a78bfa 12%, transparent);
}
.inspector dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: 12px; }
.inspector dt { color: var(--fg3); }
.inspector dd { margin: 0; color: var(--fg); text-align: right; white-space: nowrap; }
.struct { display: flex; padding: 3px 4px; font: 12px/1.5 var(--mono); color: var(--fg2); }
.struct i { margin-left: auto; font-style: normal; color: var(--fg3); }
.struct.warn, .struct.warn i { color: var(--warn); }

@media (max-width: 1000px) {
  .v2-body { grid-template-columns: 190px 1fr; }
  .inspector { display: none; }
}
@media (max-width: 900px) { .v2-body { grid-template-columns: 1fr; min-height: 0; } }
@media (max-width: 640px) { .modes b:not(.on) { display: none; } }

/* HL7 path cheat sheet */
.tree.paths { margin: 0; font-size: .9rem; line-height: 1.9; }
.tree.paths .p { color: var(--tok-key); font-weight: 600; }

/* anonymizer actions */
.actions { display: grid; gap: 8px; margin-top: 20px; }
.actions > div { display: flex; gap: 14px; align-items: baseline; padding: 10px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.actions b { flex: 0 0 92px; font-family: var(--mono); font-size: .88rem; color: #ef6aa8; }
.actions span { color: var(--fg2); font-size: .94rem; }

/* variables: ENV chip, {{var}} tints (shared by the hero window and the demo) */
.envchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font: 600 11.5px/1.4 var(--mono);
  white-space: nowrap;
  color: var(--fg);
  background: color-mix(in srgb, #4ea1ff 14%, transparent);
  border: 1px solid color-mix(in srgb, #4ea1ff 40%, transparent);
}
.envchip i { width: 7px; height: 7px; border-radius: 50%; background: #4ea1ff; }
.mock-titlebar .envchip { margin-right: 4px; }
.hl7 .var { color: #4ea1ff; background: color-mix(in srgb, #4ea1ff 14%, transparent); border-radius: 3px; }
.hl7 .var.undef {
  color: var(--bad);
  background: none;
  text-decoration: underline wavy var(--bad);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.hl7 .filled { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-radius: 3px; }
@media (max-width: 760px) { .mock-titlebar .envchip { display: none; } }

/* the variables demo card */
.vars-demo {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 13px;
}
.vd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; background: var(--bg3); border-bottom: 1px solid var(--line); }
.vd-title { font-weight: 600; }
.vd-count { color: var(--fg3); font: 12px/1.4 var(--mono); }
.vd-count b { color: var(--bad); font-weight: 600; }
.vd-bar .envchip { margin-left: auto; }
pre.vd-code { margin: 0; padding: 12px 14px; font: 12.5px/1.8 var(--mono); color: var(--fg); white-space: pre; overflow-x: auto; }
.vd-code .seg { color: var(--tok-key); font-weight: 700; }
.vd-code .seg.filled { color: var(--ok); }
.vd-code .d { color: #ef6aa8; }
.vd-env { margin: 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.vd-h { margin-bottom: 6px; color: var(--fg3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.vd-h b { color: #4ea1ff; text-transform: none; letter-spacing: 0; font-family: var(--mono); }
.vd-env dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; font: 12px/1.6 var(--mono); }
.vd-env dt { color: #4ea1ff; }
.vd-env dd { margin: 0; color: var(--fg2); overflow-wrap: anywhere; }
.vd-arrow { padding: 10px 14px 0; color: var(--fg3); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.vd-out { border-top: 0; }
.vd-warn { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.vd-warn code { font-size: 11.5px; }
.vd-warn span { margin-left: auto; color: var(--fg2); }
