/* The run panel (labrun.js) and the Process AI / Product AI / GTM pages (lab.js).
   Code steps are quiet grey, model steps violet, the person's gate ember, what this tier
   never does is dashed out; green is only for what is done, checked or verified. */

/* ------------------------------------------------------------------ the pipeline */
.lr-pipe { margin-top: 36px; padding: 22px 22px 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1); border: 1px solid var(--line-2); overflow: hidden; }
.lr-pipe ol { list-style: none; margin: 0; padding: 4px 2px 10px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.lr-pipe li { position: relative; flex: 1 0 128px; min-width: 128px; display: grid; justify-items: start; gap: 10px; padding-right: 18px; }
.lr-pipe li::after { content: ""; position: absolute; left: 44px; right: 6px; top: 19px; height: 2px; background: linear-gradient(90deg, var(--line-3), var(--line-2)); }
.lr-pipe li:last-child::after { display: none; }
.lr-pipe .pn { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); background: var(--node); border: 1px solid var(--line-3); }
.lr-pipe .pn .ic { width: 18px; height: 18px; }
.lr-pipe li.model .pn { color: var(--violet); border-color: rgb(var(--violet-rgb) / .45); background: rgb(var(--violet-rgb) / .08); }
.lr-pipe li.gate .pn { color: var(--on-accent); border-color: transparent; background: var(--accent); box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / .15); }
.lr-pipe li.off .pn { color: var(--text-3); border-style: dashed; background: transparent; }
.lr-pipe .pt { display: grid; gap: 3px; font-size: 13px; font-weight: 550; line-height: 1.3; }
.lr-pipe .pt small { font: 500 10.5px var(--mono); letter-spacing: .06em; color: var(--text-3); text-transform: uppercase; }
.lr-pipe li.model .pt small { color: var(--violet); } .lr-pipe li.gate .pt small { color: var(--accent-2); }
.lr-pipe li.off .pt { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgb(var(--tint-rgb) / .25); }
.pneeds { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.lr-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.lr-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lr-legend i { width: 9px; height: 9px; border-radius: 3px; border: 1px solid var(--line-3); background: var(--node); }
.lr-legend .model i { border-color: var(--violet); background: rgb(var(--violet-rgb) / .2); }
.lr-legend .gate i { border-color: var(--accent); background: var(--accent); }
.lr-legend .off i { border-style: dashed; background: transparent; }
.lr-legend .sbx i { border-color: var(--green-line); background: var(--green-soft); }
.lr-ran { display: flex; gap: 8px; align-items: flex-start; }
.lr-ran .ic { color: var(--green); flex: none; margin-top: 2px; }
.lr-sbx { margin: 18px 0; padding: 16px; border: 1px solid var(--green-line); border-radius: 14px; background: var(--green-soft); }
.lr-sbx h3 { margin: 4px 0 12px; font-size: 16px; }
.lr-sbx-sys { margin: 0 0 12px; }
.lr-sbx-sys > b { display: block; margin: 0 0 6px; font-size: 13px; text-transform: capitalize; }
.lr-sbx tr.written td, .lr-sbx tr.deleted td { font-weight: 600; }
.lr-state.done_in_sandbox::before, .lr-state.denied::before { background: var(--green); box-shadow: none; }

/* ------------------------------------------------------------------ the inputs */
.lr-form2 { margin-top: 16px; display: grid; gap: 14px; }
.lr-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.lr-in { display: grid; gap: 14px; align-content: start; padding: 20px; border-radius: 20px; border: 1.5px dashed var(--line-3); background: rgb(var(--tint-rgb) / .015); transition: border-color .3s, background .3s; min-width: 0; }
.lr-in:hover, .lr-in:focus-within { border-color: var(--accent-line); background: rgb(var(--accent-rgb) / .03); }
.lr-in.wide { grid-column: 1 / -1; }
.lr-in-head { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.lr-in-head > .ic { width: 40px; height: 40px; padding: 10px; border-radius: 12px; color: var(--accent-2); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.lr-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.lr-label span { font-weight: 400; color: var(--text-3); font-size: 13px; }
.lr-hint { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.5; overflow-wrap: anywhere; }
.lr-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lr-drop .btn { cursor: pointer; }
.lr-chosen { font: 500 12px var(--mono); color: var(--text-3); overflow-wrap: anywhere; }
.lr-chosen.set { color: var(--green); padding: 4px 10px; border-radius: 999px; background: var(--green-soft); border: 1px solid var(--green-line); }
.lr-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.lr-ex { cursor: pointer; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(var(--tint-rgb) / .03); color: var(--text-2); font-size: 13px; line-height: 1.4; min-height: 44px; transition: border-color .2s, color .2s; }
.lr-ex:hover { border-color: var(--accent-line); color: var(--text); }
.lr-form2 textarea, .lr-input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(var(--shade-rgb) / calc(.3 * var(--shade-k))); color: var(--text); font: inherit; }
.lr-form2 textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.lr-form2 textarea:focus, .lr-input:focus { outline: 0; border-color: var(--accent-line); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .12); }
.lr-go { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); }
.lr-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 0; max-width: 720px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.lr-privacy .ic { color: var(--green); margin-top: 1px; }

/* ------------------------------------------------------------------ the run */
.lr-run { margin-top: 20px; display: grid; gap: 16px; }
.lr-run > *, .lr-time > *, .lr-gate2 > *, .lr-seal2 > * { min-width: 0; }
.lr-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lr-meter > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; color: var(--text-2); background: rgb(var(--tint-rgb) / .03); border: 1px solid var(--line-2); }
.lr-meter > span b { color: var(--text); font-weight: 600; }
.lr-meter .ic { width: 14px; height: 14px; }
.lr-meter .sends { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }
.lr-meter .sends b { color: var(--green); }
.lr-state { font-weight: 600 !important; color: var(--text) !important; }
.lr-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.lr-state.running::before, .lr-state.queued::before, .lr-state.approved::before { background: var(--violet); box-shadow: none; animation: blink 1.2s ease-in-out infinite; }
.lr-state.awaiting_decision { border-color: var(--accent-line) !important; background: var(--accent-soft) !important; }
.lr-state.awaiting_decision::before { background: var(--accent); box-shadow: none; animation: blink 1.6s ease-in-out infinite; }
.lr-state.boundary_reached::before, .lr-state.completed::before, .lr-state.sealed::before { background: var(--green); box-shadow: none; }
.lr-state.failed::before, .lr-state.rejected::before { background: var(--rose); }

.lr-time { list-style: none; margin: 0; padding: 0; display: grid; }
.lr-time > li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding-bottom: 14px; }
.lr-time > li::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 0; width: 2px; background: var(--line-2); }
.lr-time > li:last-child::before { display: none; }
.lr-time > li.done::before { background: linear-gradient(var(--green-line), var(--line-2)); }
.tn { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); background: var(--node); border: 1px solid var(--line-3); }
.tn .ic { width: 16px; height: 16px; }
.done .tn { color: var(--green); border-color: var(--green-line); background: color-mix(in srgb, var(--green) 10%, var(--node)); }
.wait .tn { color: var(--on-accent); border-color: transparent; background: var(--accent); box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / .15); animation: pulse 2.4s ease-in-out infinite; }
.run .tn { color: var(--violet); border-color: rgb(var(--violet-rgb) / .5); }
.fail .tn { color: var(--rose); border-color: var(--rose-line); }
.tb { min-width: 0; padding: 7px 18px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.pend .tb { background: transparent; border-style: dashed; }
.tb header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 22px; margin-top: 2px; }
.tb header b { font-size: 14.5px; }
.who { font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; color: var(--text-3); border: 1px solid var(--line-2); }
.who.model { color: var(--violet); border-color: rgb(var(--violet-rgb) / .4); }
.who.gate { color: var(--accent-2); border-color: var(--accent-line); }
.who.off { border-style: dashed; }
.off .tn { border-style: dashed; background: transparent; }
.off .tb { background: transparent; border-style: dashed; }
.off .tb header b { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgb(var(--tint-rgb) / .25); }
.st { margin-left: auto; font-size: 12px; color: var(--text-3); }
.done .st { color: var(--green); } .wait .st { color: var(--accent-2); } .fail .st { color: var(--rose); }

/* outputs */
.lr-note { margin: 10px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; overflow-wrap: anywhere; }
.lr-note b { color: var(--text); }
.lr-crew { font-size: 13px; }
.lr-crew-problems { margin: 6px 0 0; padding-left: 18px; }
.lr-rejected { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.lr-rejected summary { cursor: pointer; }
.lr-rejected p { margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line); overflow-wrap: anywhere; }
.lr-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; }
.lr-field2 { display: grid; gap: 5px; align-content: start; padding: 12px 14px; border-radius: 12px; background: rgb(var(--shade-rgb) / calc(.25 * var(--shade-k))); border: 1px solid var(--line); min-width: 0; }
.fk { font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.fv { font-size: 15px; overflow-wrap: anywhere; }
.fv em { color: var(--text-3); font-weight: 400; }
.fq { font-size: 12.5px; font-style: italic; color: var(--text-2); padding-left: 9px; border-left: 2px solid var(--accent); quotes: "“" "”"; overflow-wrap: anywhere; }
.fq.none { border-left-color: var(--line-3); font-style: normal; }
.lr-yes, .lr-no { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; }
.lr-yes { color: var(--green); } .lr-no { color: var(--text-3); }
.lr-yes .ic, .lr-no .ic { width: 13px; height: 13px; }
.lr-checks2 { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.lr-checks2 li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgb(var(--shade-rgb) / calc(.2 * var(--shade-k))); font-size: 13.5px; }
.lr-checks2 li .ic { width: 18px; height: 18px; margin-top: 1px; }
.lr-checks2 li.pass .ic { color: var(--green); } .lr-checks2 li.fail .ic { color: var(--rose); }
.lr-checks2 li.fail { background: rgb(var(--rose-rgb) / .06); }
.lr-checks2 b { font-weight: 550; }
.lr-checks2 span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
/* Demo runs (the Engine's own): a decision that waits for a person, one not done, the sample bar, warnings. */
.lr-checks2 li.wait .ic { color: var(--person); } .lr-checks2 li.off .ic { color: var(--text-3); }
.lr-checks2 li.wait { background: rgb(var(--tint-rgb) / .05); }
.lr-sample { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lr-warn { margin: 10px 0 0; padding: 10px 14px 10px 30px; font-size: 12.5px; }
.lr-sources { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.lr-sources li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgb(var(--shade-rgb) / calc(.2 * var(--shade-k))); min-width: 0; }
.lr-sources a { font-size: 13px; font-weight: 550; color: var(--accent-2); overflow-wrap: anywhere; }
.lr-sources q { font-size: 12.5px; font-style: italic; color: var(--text-2); overflow-wrap: anywhere; }
.lr-failed { color: var(--rose); }
.lr-answer2 { margin-top: 12px; padding: 18px 20px; border-radius: 14px; background: var(--violet-soft); border: 1px solid rgb(var(--violet-rgb) / .25); }
.lr-answer2 p { margin: 0; font-size: 16px; line-height: 1.6; }
.lr-nums { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lr-nums li { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 6px; padding: 10px 14px; border-radius: 12px; background: rgb(var(--shade-rgb) / calc(.3 * var(--shade-k))); border: 1px solid var(--line-2); }
.lr-nums b { font: 640 24px/1 var(--sans); letter-spacing: -.03em; }
.lr-nums span { font-size: 13px; color: var(--text-2); }
.lr-nums small { grid-column: 1 / -1; font-size: 11.5px; color: var(--text-3); }
.lr-prose { margin: 10px 0 0; padding: 12px 14px; border-radius: 10px; background: rgb(var(--shade-rgb) / calc(.22 * var(--shade-k))); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.lr-prose small { display: block; margin-bottom: 4px; font-size: 11.5px; color: var(--text-3); }
.lr-gate2 ul.callout { display: grid; gap: 4px; margin: 0; padding: 12px 16px 12px 34px; list-style: disc; }
.lr-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 12px 0 0; }
.lr-kv div { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; background: rgb(var(--shade-rgb) / calc(.22 * var(--shade-k))); border: 1px solid var(--line); min-width: 0; }
.lr-kv dt { font-size: 11.5px; color: var(--text-3); }
.lr-kv dd { margin: 0; font: 600 14px var(--mono); overflow-wrap: anywhere; }
.lr-kv dd.good { color: var(--green); }
.lr-kv code { font: inherit; }
.lr-scroll { max-width: 100%; overflow-x: auto; margin-top: 12px; border-radius: 12px; border: 1px solid var(--line); }
.lr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lr-table th, .lr-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lr-table tr:last-child td { border-bottom: 0; }
.lr-table.cs td:nth-child(2) { white-space: nowrap; }   /* a record's id reads as one word */
.lr-table th { color: var(--text-3); font-weight: 600; font-size: 11.5px; letter-spacing: .02em; background: rgb(var(--tint-rgb) / .025); white-space: nowrap; }
.lr-table td.why { color: var(--text-2); font-size: 12.5px; min-width: 200px; }
.lr-table td.old { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgb(var(--rose-rgb) / .6); }
.lr-table td.new { color: var(--green); font-weight: 550; }
.lr-table select { max-width: 220px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--accent-line); background: var(--surface); color: var(--text); font-size: 12.5px; }
.lr-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }
.lr-conflict td { background: rgb(var(--accent-rgb) / .06); }
.lr-cand { display: grid; gap: 1px; margin-bottom: 6px; }
.lr-cand small { font: 500 10.5px var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.conflict-tag { display: inline-block; margin-right: 4px; padding: 1px 7px; border-radius: 6px; font: 600 10.5px var(--mono); text-transform: uppercase; color: var(--accent-2); background: var(--accent-soft); border: 1px solid var(--accent-line); }

/* ------------------------------------------------------------------ the gate */
.lr-gate2 { position: relative; display: grid; gap: 18px; padding: 26px; border-radius: 24px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--accent-line); background: var(--surface);
  box-shadow: 0 40px 90px -50px rgb(var(--accent-rgb) / .7); animation: rise .6s var(--ease); }
.gate-head { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; }
.gate-orb { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent); background: var(--accent);
  box-shadow: 0 0 0 7px rgb(var(--accent-rgb) / .15); animation: pulse 2.4s ease-in-out infinite; }
.gate-orb .ic { width: 24px; height: 24px; }
.gate-head h3 { margin: 10px 0 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; letter-spacing: -.02em; }
.gate-you { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 14px; color: var(--accent-2); }
.gate-you .ic { margin-top: 2px; }
.gate-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.gate-facts span { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--text-2); background: rgb(var(--shade-rgb) / calc(.25 * var(--shade-k))); border: 1px solid var(--line-2); overflow-wrap: anywhere; }
.gate-facts span.good { color: var(--green); border-color: var(--green-line); }
.gate-facts span.bad { color: var(--rose); border-color: var(--rose-line); }
.gate-facts b { color: var(--text); }
.gate-means { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gate-means > div { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: 16px; background: rgb(var(--shade-rgb) / calc(.28 * var(--shade-k))); border: 1px solid var(--line-2); }
.gate-means .yes > .ic { color: var(--green); } .gate-means .no > .ic { color: var(--rose); }
.gate-means .ic { width: 20px; height: 20px; margin-top: 1px; }
.gate-means b { font-size: 14px; }
.gate-means p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; overflow-wrap: anywhere; }
.lr-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ the seal */
.lr-seal2 { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px; border-radius: 24px;
  border: 1px solid var(--green-line); background: var(--surface); animation: rise .6s var(--ease); }
.seal-copy h3 { margin: 8px 0 0; font-size: 19px; letter-spacing: -.02em; }
.lr-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.lr-files .btn { text-decoration: none; }
.ic.flip { transform: rotate(180deg); }

/* ------------------------------------------------------------------ lab pages */
.lab-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding-top: 20px; }
.lab-hero .media { position: relative; }
.lab-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; max-width: 560px; }
.lab-points li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; font-size: 15px; color: var(--text-2); line-height: 1.55; }
.lab-points .ic { width: 26px; height: 26px; padding: 5px; border-radius: 8px; color: var(--green); background: var(--green-soft); }
.lab-hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.lab-hero .actions .btn { text-decoration: none; }
.never-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.never-list div { padding: 20px; border-radius: 18px; border: 1px solid var(--rose-line); background: rgb(var(--rose-rgb) / .04); }
.never-list .ic { width: 22px; height: 22px; color: var(--rose); }
.never-list b { display: block; margin: 12px 0 6px; font-size: 15.5px; }
.never-list p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.55; }

@media (max-width: 1100px) {
  .lab-hero { grid-template-columns: 1fr; }
  .never-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lr-pipe { padding: 16px 14px 12px; margin-left: -4px; margin-right: -4px; }
  .lr-inputs { grid-template-columns: 1fr; }
  .lr-in, .lr-gate2, .lr-seal2 { padding: 16px; }
  .gate-means { grid-template-columns: 1fr; }
  .gate-head { grid-template-columns: 1fr; }
  .lr-seal2 { grid-template-columns: 1fr; justify-items: start; }
  .lr-seal2 .stamp { width: 120px; height: 120px; }
  .tb { padding: 7px 12px 12px; }
  .lr-time > li { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .tn { width: 30px; height: 30px; }
  .lr-time > li::before { left: 14px; top: 32px; }
}

/* the hero's picture and the numbered notes on it */
.lab-hero .media .shot { margin-right: -60px; }
.callouts.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; }
.callouts.wide li { padding-top: 18px; border-top: 1px solid var(--line-2); }

/* GTM: a radar sweeping for buyers, pins dropping onto a map of events (illustrations) */
.radar { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden;
  background: repeating-radial-gradient(circle, transparent 0 17.5%, var(--line-2) 17.5% calc(17.5% + 1px)), var(--surface); border: 1px solid var(--line-3); box-shadow: var(--shadow-2); }
.radar::before, .radar::after { content: ""; position: absolute; background: var(--line-2); }
.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; } .radar::after { top: 50%; left: 0; right: 0; height: 1px; }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgb(var(--accent-rgb) / .16), rgb(var(--accent-rgb) / .03) 18%, transparent 26%); animation: spin 5s linear infinite; }
.radar b { position: absolute; left: var(--x); top: var(--y); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface);
  opacity: 0; animation: blip 5s ease-out infinite; animation-delay: var(--dl); }
@keyframes blip { 0% { opacity: 0; transform: scale(.4); } 6% { opacity: 1; transform: scale(1.25); } 30% { opacity: .9; transform: scale(1); } 90%, 100% { opacity: 0; } }
.rcore { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center; color: var(--btn-fg);
  background: var(--btn-bg); box-shadow: 0 0 0 6px var(--surface); }
.rcore .ic { width: 26px; height: 26px; }
.pins { position: relative; width: min(460px, 100%); aspect-ratio: 1.15; margin: 0 auto; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(rgb(var(--tint-rgb) / .09) 1px, transparent 1.4px) 0 0 / 18px 18px, var(--deep-2); }
.pins span { position: absolute; left: var(--x); top: var(--y); color: var(--accent-2); animation: pindrop 5s var(--ease) infinite; animation-delay: var(--dl); }
.pins span .ic { width: 34px; height: 34px; margin: -34px 0 0 -17px; }
@keyframes pindrop { 0% { transform: translateY(-40px); opacity: 0; } 10% { transform: none; opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.pins .route { position: absolute; inset: 22% 18% 26% 16%; border: 2px dashed rgb(var(--accent-2-rgb) / .35); border-radius: 40% 30% 45% 35%; }
.gtm-row { margin-top: 130px; }
.gtm-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.gtm-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); }
.gtm-steps li > .ic { width: 40px; height: 40px; padding: 10px; border-radius: 12px; color: var(--text-2); background: rgb(var(--tint-rgb) / .05); }
.gtm-steps li.gate { border-color: var(--accent-line); background: var(--surface); }
.gtm-steps li.gate > .ic { color: var(--accent-2); background: var(--accent-soft); }
.gtm-steps b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.gtm-steps span { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.gtm-row .mono-note { margin-top: 12px; }
.gtm-form { display: grid; gap: 18px; margin-top: 36px; max-width: 860px; }
.gtm-note { margin: 22px 0 0; }
@media (max-width: 1100px) {
  .lab-hero .media .shot { margin-right: 0; }
  .callouts.wide { grid-template-columns: 1fr; gap: 18px; }
}

/* GTM hero: sources narrowing to a shortlist a person acts on (an illustration) */
.funnel { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto auto; align-items: center; gap: 0 16px; padding: 30px 26px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); }
.funnel .src { display: grid; gap: 22px; }
.funnel .src span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 10px; font-size: 13px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line-2); white-space: nowrap; }
.funnel .src .ic { color: var(--text-3); }
.funnel .lines { width: 100%; height: 150px; overflow: visible; }
.funnel .lines path { fill: none; stroke: rgb(var(--accent-2-rgb) / .55); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.funnel .short { display: grid; gap: 8px; width: 150px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--accent-line); }
.funnel .short small, .funnel .decide small { font: 500 10.5px/1.35 var(--mono); color: var(--text-3); }
.funnel .short i { display: block; height: 9px; border-radius: 4px; background: linear-gradient(90deg, rgb(var(--tint-rgb) / .16), rgb(var(--tint-rgb) / .06)); position: relative; }
.funnel .short i::after { content: ""; position: absolute; right: -2px; top: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: none; }
.funnel .short i:nth-of-type(2) { width: 80%; } .funnel .short i:nth-of-type(3) { width: 64%; }
.funnel .decide { display: grid; justify-items: center; gap: 10px; width: 110px; text-align: center; }
.src-links { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.src-links a { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; transition: color .2s, padding .3s var(--ease); }
.src-links a:hover { color: var(--accent-2); padding-left: 10px; }
.src-links .ic { color: var(--text-3); }
.src-links b { color: var(--text-3); font-weight: 400; }
@media (max-width: 640px) {
  .funnel { grid-template-columns: 1fr; justify-items: center; gap: 14px; padding: 22px 16px; }
  .funnel .lines { display: none; }
  .funnel .src { grid-auto-flow: row; gap: 8px; justify-items: center; }
  .funnel .short, .funnel .decide { width: min(260px, 100%); }
}

/* Why a run stopped at the gate, in the owner's terms (the rule and the facts that decided it). */
.gate-why { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(var(--tint-rgb) / .03); }
.gate-why .eyebrow2 { margin-bottom: 8px; }
.gate-why ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.gate-why b { color: var(--text); font-weight: 600; }

/* After a run: three plain lines, then proof, connect, edit. */
.after-run { margin-top: 18px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); display: grid; gap: 12px; }
.ar-sum { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ar-sum li { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; }
.ar-sum .ic { width: 18px; height: 18px; flex: none; }
.ar-sum li.ok .ic { color: var(--green); }
.ar-sum li.no .ic { color: var(--rose); }
.after-run p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.after-run .btn { text-decoration: none; }

/* An example page says what it is: one kind of work the one engine does. */
.ex-note { margin: 16px 0 0; max-width: 560px; font-size: 13.5px; color: var(--text-3); line-height: 1.55; }

/* One line on top of a run: what waits for the visitor, or what happened (labrun.js story()). */
.lr-story { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card, rgba(255,255,255,.03)); font-size: 14px; line-height: 1.5; }
.lr-story p { margin: 0; }
.lr-story .ic { flex: none; margin-top: 3px; }
.lr-story.wait { border-color: var(--amber-line, rgba(255,190,90,.35)); }
.lr-story.ok { border-color: var(--green-line, rgba(90,200,140,.35)); }
.lr-story.bad { border-color: rgba(230,90,90,.4); }
.lr-story a { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
#lr-gate { display: block; position: relative; top: -90px; }
