/* V2Mirror page: content of the app window in the hero (frame in /assets/product.css),
   plus the rules demo, the path cheat sheet and the figures card. */
:root { --vm: #3cc4ce; }
@media (prefers-color-scheme: light) { :root { --vm: #0e8790; } }
.hero-logo { box-shadow: 0 18px 50px -12px rgba(60, 196, 206, .55); }

/* title bar: search, ACK chips, pause */
.mock-search { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-left: 14px; padding: 5px 10px; border-radius: 8px; background: var(--bg2); border: 1px solid color-mix(in srgb, var(--vm) 50%, var(--line)); font: 12px/1.4 var(--mono); color: var(--fg); white-space: nowrap; overflow: hidden; }
.mock-search .mode { color: var(--fg3); font-size: 11px; }
.mchips { display: flex; gap: 4px; font: 600 11px/1 var(--mono); white-space: nowrap; }
.mchips b { padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg3); font-weight: 600; }
.mchips b.on { color: var(--fg); border-color: #f5a524; background: color-mix(in srgb, #f5a524 16%, transparent); }
.pausebtn { padding: 4px 10px; border-radius: 7px; border: 1px solid var(--line); font-size: 12px; color: var(--fg2); white-space: nowrap; }

.vm-body { display: grid; grid-template-columns: 200px 1fr 270px; min-height: 340px; }

/* listeners */
.lst { display: grid; grid-template-columns: 12px 1fr; gap: 0 8px; padding: 7px 8px; border-radius: 8px; border-left: 3px solid transparent; }
.lst.on { background: color-mix(in srgb, var(--vm) 14%, transparent); border-left-color: var(--vm); }
.lst b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lst span { grid-column: 2; font: 11px/1.5 var(--mono); color: var(--fg3); white-space: nowrap; }
.lst span em { font-style: normal; color: var(--ok); border: 1px solid var(--ok); border-radius: 3px; padding: 0 3px; font-size: 9.5px; }
.lst span.err { color: var(--bad); }
.ld { width: 9px; height: 9px; border-radius: 50%; align-self: center; }
.ld.ok { background: var(--vm); }
.ld.conn { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.ld.off { border: 2px solid var(--fg3); }
.ld.bad { background: var(--bad); }
.envpill { margin: 14px 4px 0; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font: 11.5px/1.4 var(--mono); color: var(--fg2); white-space: nowrap; overflow: hidden; }
.envpill b { font: 600 9.5px/1 var(--sans, inherit); letter-spacing: .08em; color: var(--fg3); margin-right: 4px; }

/* log table */
.vm-log { min-width: 0; display: flex; flex-direction: column; }
.lrow { display: grid; grid-template-columns: 74px minmax(70px, 1fr) 74px minmax(70px, 1fr) 70px 64px; align-items: center; padding: 0 6px; height: 30px; font: 12px/1 var(--mono); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); white-space: nowrap; }
.lrow > span { padding: 0 6px; overflow: hidden; text-overflow: ellipsis; color: var(--fg2); line-height: 30px; }
.lrow > span:last-child { text-align: right; color: var(--fg3); }
.lrow .t { color: var(--tok-key); font-weight: 700; }
.lrow.head { font: 600 10px/1 inherit; height: 32px; text-transform: uppercase; letter-spacing: .06em; background: var(--bg3); }
.lrow.head > span { color: var(--fg3); font-family: var(--sans, inherit); }
.lrow.warn { background: color-mix(in srgb, #f5a524 10%, transparent); }
.lrow.bad { background: color-mix(in srgb, #f2555a 11%, transparent); }
.lrow.cur { box-shadow: inset 3px 0 0 var(--vm); background: color-mix(in srgb, var(--vm) 18%, transparent); }
.lrow em { font-style: normal; color: #f5a524; }
.ak { display: inline-block; font: 700 10.5px/1.3 var(--mono); font-style: normal; padding: 1px 6px; vertical-align: middle; border-radius: 5px; border: 1px solid currentColor; }
.ak.ok { color: var(--ok); }
.ak.warn { color: #f5a524; }
.ak.bad { color: var(--bad); }
.ak.none { color: var(--fg3); font-weight: 600; }

/* details */
.vm-detail { border-left: 1px solid var(--line); padding: 12px; background: var(--bg2); min-width: 0; }
.vm-detail .dt { display: flex; align-items: center; gap: 8px; font: 12px/1.4 var(--mono); color: var(--fg3); }
.vm-detail .dt b { font-size: 14px; color: var(--tok-key); }
.vm-detail .dt .ak { margin-left: auto; }
.dtabs { display: flex; margin: 12px 0 10px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; font-size: 10.5px; white-space: nowrap; }
.dtabs b { flex: auto; text-align: center; padding: 4px 5px; font-weight: 500; color: var(--fg3); }
.dtabs b + b { border-left: 1px solid var(--line); }
.dtabs b.on { background: var(--bg4); color: var(--fg); }
.mock .vm-detail pre.hl7 { font-size: 11.5px; line-height: 1.75; white-space: pre; overflow: hidden; color: var(--fg); }
.hl7 .seg { color: var(--tok-key); font-weight: 700; }
.hl7 .d { color: #ef6aa8; }
.vm-detail .dr { margin-top: 14px; padding: 8px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--vm) 45%, transparent); background: color-mix(in srgb, var(--vm) 8%, transparent); font-size: 12px; color: var(--fg2); line-height: 1.5; }
.vm-detail .dr b { color: var(--fg); font-weight: 600; }

@media (max-width: 1060px) {
  .vm-body { grid-template-columns: 190px 1fr; }
  .vm-detail { display: none; }
}
@media (max-width: 900px) { .vm-body { grid-template-columns: 1fr; min-height: 0; } .mchips { display: none; } }
@media (max-width: 640px) {
  .pausebtn { display: none; }
  .lrow { grid-template-columns: 90px 70px 1fr 52px; }
  .lrow > span:nth-child(2), .lrow > span:nth-child(6) { display: none; }
}

/* rules demo */
.rules-demo { min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-size: 13px; padding-bottom: 14px; }
.rd-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 11px 14px; background: var(--bg3); border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.rd-bar span { color: var(--fg3); font-size: 12px; }
.rd-rule { display: flex; align-items: center; gap: 10px; margin: 0 12px 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg2); }
.rd-rule.off { opacity: .5; }
.rd-rule .grip { font-style: normal; color: var(--fg3); font-size: 11px; letter-spacing: -2px; }
.rd-rule .cb { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--fg3); flex: none; }
.rd-rule .cb.on { background: var(--vm); border-color: var(--vm); box-shadow: inset 0 0 0 2px var(--bg2); }
.rd-rule div { min-width: 0; display: flex; flex-direction: column; }
.rd-rule b { font-weight: 600; }
.rd-rule div span { color: var(--fg3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-test { margin: 12px 12px 0; padding: 10px 12px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--vm) 50%, transparent); background: color-mix(in srgb, var(--vm) 7%, transparent); font-size: 12.5px; color: var(--fg2); }
.rd-test b { color: var(--fg); font-weight: 600; }
.rd-test pre.hl7 { margin: 8px 0 0; padding: 8px 10px; border-radius: 7px; background: var(--bg); font: 11.5px/1.7 var(--mono); color: var(--fg); white-space: pre; overflow-x: auto; }

/* 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; }

/* figures */
.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: var(--vm); }
.actions span { color: var(--fg2); font-size: .94rem; }
