/* Receipt system layer (design pass, Nov 26 2026). Loads LAST on a page, after receipt.css or receipt-tokens.css.
   It adds no new look: it fixes the scales and the shared parts the pages draw differently today.
   1 scales  2 header  3 footer  4 long-page navigation  5 folds  6 code  7 tables  8 slips  9 cookie notice and help
   launcher  10 motion helpers. Everything is scoped to html.ag-receipt. Classes are prefixed ag- so nothing here
   collides with a page's own names. No fonts, images or scripts are loaded from this file. */

/* 1 ---------- scales ---------- */
.ag-receipt{
  --ag-s1:4px;--ag-s2:8px;--ag-s3:12px;--ag-s4:16px;--ag-s5:24px;--ag-s6:32px;--ag-s7:48px;--ag-s8:72px;
  --ag-gutter:20px;      /* page edge */
  --ag-sec:56px;         /* between sections */
  --ag-measure:68ch;     /* longest line of running text */
  --ag-tint:rgba(27,25,21,.07);
  --ag-h1:700 34px/1.06 var(--ag-display);
  --ag-h2:700 26px/1.12 var(--ag-display);
  --ag-h3:600 17px/1.35 var(--ag-sans);
  --ag-text:400 16px/1.6 var(--ag-sans);
  --ag-small:400 14px/1.55 var(--ag-sans);
  --ag-label:500 11px/1.45 var(--ag-mono);
  --ag-code:400 12.5px/1.6 var(--ag-mono);
  --ag-pre-bg:var(--ag-slip);
  --ag-agc-h:0px;        /* height of the cookie notice while it shows (set by receipt-system.js) */
}
@media (max-width:359.98px){.ag-receipt{--ag-gutter:16px}}
@media (min-width:900px){
  .ag-receipt{--ag-gutter:32px;--ag-sec:88px;--ag-h1:700 clamp(44px,4.55vw,60px)/1.04 var(--ag-display);--ag-h2:700 34px/1.12 var(--ag-display)}
}
.ag-receipt :where(section[id],h2[id],h3[id],details[id],[data-ag-anchor]){scroll-margin-top:calc(var(--ag-sticky-head,0px) + 68px)}
@media (prefers-reduced-motion:reduce){html.ag-receipt{scroll-behavior:auto!important}}

/* 2 ---------- header: one header for every page ---------- */
.ag-receipt .ag-head{position:relative;z-index:6;display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:60px;margin:0;padding:8px var(--ag-gutter);background:var(--ag-paper);border-bottom:1px solid var(--ag-ink)}
.ag-receipt .ag-head .brand{display:inline-flex;align-items:baseline;gap:0;margin-right:auto;font:700 21px/1 var(--ag-display);letter-spacing:-.01em;color:var(--ag-ink);text-decoration:none}
.ag-receipt .ag-head .brand img{display:none}
.ag-receipt .ag-head .brand .name,.ag-receipt .ag-head .brand span{font:inherit;letter-spacing:inherit;color:inherit}
.ag-receipt .ag-head .brand sup{position:relative;top:-.5em;margin-left:1px;font:500 .62em/1 var(--ag-sans);vertical-align:baseline;color:var(--ag-ink)}
.ag-receipt .ag-head .navlinks{display:flex;align-items:center;flex-wrap:nowrap;gap:24px;font:400 14.5px/1 var(--ag-sans)}
.ag-receipt .ag-head .navlinks a{min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;font:inherit;letter-spacing:0;text-transform:none;color:var(--ag-body);text-decoration:none}
.ag-receipt .ag-head .navlinks a:hover,.ag-receipt .ag-head .navlinks a[aria-current]{color:var(--ag-ink);text-decoration:underline;text-underline-offset:4px}
.ag-receipt .ag-head-cta{display:inline-flex;align-items:center;height:44px;padding:0 14px;border:1px solid var(--ag-ink);background:var(--ag-ink);color:var(--ag-slip);font:500 14px/1 var(--ag-sans);text-decoration:none;white-space:nowrap}
.ag-receipt .ag-head-cta:hover{background:#000;color:var(--ag-slip);text-decoration:none}
.ag-receipt .ag-head .nav-menu{display:none;align-items:center;height:44px;margin:0;padding:0 13px;border:1px solid var(--ag-ink);border-radius:0;background:transparent;color:var(--ag-ink);font:500 14px/1 var(--ag-sans);cursor:pointer}
.ag-receipt .ag-head .nav-menu[aria-expanded="true"]{background:var(--ag-ink);color:var(--ag-slip)}
@media (max-width:759.98px){
  .ag-receipt.ag-js .ag-head .nav-menu{display:inline-flex;order:2}
  .ag-receipt .ag-head-cta{order:1}
  .ag-receipt .ag-head .navlinks{order:3;flex:1 1 100%;flex-direction:column;align-items:stretch;gap:0;margin-top:4px;border-top:1px dashed var(--ag-ink)}
  .ag-receipt.ag-js .ag-head:not(.menu-open) .navlinks{display:none}
  .ag-receipt .ag-head .navlinks a{display:flex;align-items:center;min-height:48px;font-size:16px;border-bottom:1px dashed var(--ag-rule)}
  .ag-receipt .ag-head .navlinks a:last-child{border-bottom:0}
}
@media (min-width:760px){.ag-receipt .ag-head .navlinks{margin-right:20px}}
@media (max-width:419.98px){.ag-receipt .ag-head{gap:6px}.ag-receipt .ag-head-cta{padding:0 11px}.ag-receipt .ag-head .nav-menu{padding:0 11px}}
/* 320: the wordmark and Menu keep the row; the call to action opens with the menu (it shows without script) */
@media (max-width:359.98px){
  .ag-receipt .ag-head-cta{order:4;flex:1 1 100%;justify-content:center;margin:6px 0 4px}
  .ag-receipt.ag-js .ag-head:not(.menu-open) .ag-head-cta{display:none}
}
@media (min-width:900px){.ag-receipt .ag-head{min-height:72px}.ag-receipt .ag-head .brand{font-size:24px}.ag-receipt .ag-head-cta{padding:0 16px}}

/* 2b ---------- pages that drew their own header: the HTML now carries the shared parts (.ag-head, .brand, .navlinks,
   .ag-head-cta, .nav-menu) and the page's own nav rules are neutralised here, so no page style block has to change ---------- */
.ag-receipt .ag-head{flex-direction:row;justify-content:flex-start;width:auto;max-width:none;height:auto;top:auto;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.ag-receipt .ag-head,.ag-receipt .ag-head *,.ag-receipt .ag-foot,.ag-receipt .ag-foot *{box-sizing:border-box}   /* the shell does not rely on a page reset */
.ag-receipt .ag-head a.ag-head-cta{width:auto}   /* a page's phone rule for .btn must not stretch the header button */
.ag-receipt .ag-head .ag-head-in{display:contents}
.ag-receipt .ag-head .brand{min-height:0;margin:0 auto 0 0;padding:10px 0;text-transform:none}
.ag-receipt .ag-head div.brand{display:block;font-size:18px;line-height:1.3}
.ag-receipt .ag-head div.brand a{font:400 13px/1 var(--ag-sans);color:var(--ag-ink-2)}
.ag-receipt .ag-head .brand .tag{margin:0 0 0 8px;padding:0;border:0;background:none;font:var(--ag-label);letter-spacing:.08em;text-transform:uppercase;color:var(--ag-ink-2)}
.ag-receipt .ag-head .navlinks{margin-top:0;margin-bottom:0;margin-left:0;padding:0;width:auto}
.ag-receipt .ag-head a.ag-head-cta{margin:0;border:1px solid var(--ag-ink);border-radius:0;background:var(--ag-ink);color:var(--ag-slip);font:500 14px/1 var(--ag-sans);letter-spacing:0;text-transform:none;min-height:0}
.ag-receipt .ag-head .ag-head-plain{display:flex;align-items:center;gap:18px;margin:0;padding:0}
.ag-receipt .ag-head .ag-head-link{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:0;border:0;background:none;color:var(--ag-body);font:400 14.5px/1 var(--ag-sans);letter-spacing:0;text-transform:none;text-decoration:none}
.ag-receipt .ag-head .ag-head-link:hover{color:var(--ag-ink);text-decoration:underline;text-underline-offset:4px}
/* a page column that takes the system gutter (used where a section bar has to reach both edges) */
.ag-receipt .ag-page{padding-left:var(--ag-gutter);padding-right:var(--ag-gutter)}

/* 3 ---------- footer: one footer, left aligned, links on a grid of 44px rows ---------- */
.ag-receipt .ag-foot{display:block;margin:var(--ag-sec) 0 0;padding:20px 0 36px;border-top:1px solid var(--ag-ink);text-align:left;color:var(--ag-ink-2);font:400 13px/1.6 var(--ag-sans)}
.ag-receipt .ag-foot.ag-foot-bleed{margin-top:0;padding-inline:max(var(--ag-gutter),calc(50vw - var(--ag-page,560px)))}   /* a footer outside the page column lines up with it: set --ag-page to half the column */
.ag-receipt .ag-foot :where(.links,.fl){display:grid;grid-template-columns:repeat(auto-fill,minmax(136px,1fr));gap:0 20px;justify-content:start;margin:0 0 14px;padding:0;text-align:left}
.ag-receipt .ag-foot :where(.links,.fl) a{display:flex;align-items:center;min-height:44px;margin:0;padding:0;color:var(--ag-body);font:400 14px/1.3 var(--ag-sans);text-decoration:none;border-bottom:1px dashed var(--ag-rule)}
.ag-receipt .ag-foot :where(.links,.fl) a:hover{color:var(--ag-ink);text-decoration:underline;text-underline-offset:3px}
.ag-receipt .ag-foot p,.ag-receipt .ag-foot>div:not(.links):not(.fl){max-width:var(--ag-measure);margin:10px 0 0;text-align:left;font-size:13px;line-height:1.6;color:var(--ag-ink-2);opacity:1}
.ag-receipt .ag-foot sup{color:var(--ag-ink)}
.ag-receipt .ag-foot>a{display:inline-flex;align-items:center;min-height:44px;margin:0 18px 0 0;color:var(--ag-body)}
.ag-receipt .ag-foot.ag-foot-bleed{max-width:none}
.ag-receipt .ag-foot>div{padding-left:0;padding-right:0}
.ag-receipt :where(.footer).ag-foot-bleed{--ag-page:520px}

/* 4 ---------- long-page navigation: a bar that sticks under the header on a phone, a row or a side list on desktop ---------- */
.ag-receipt .ag-toc{position:sticky;top:var(--ag-sticky-head,0px);z-index:5;margin:0 calc(var(--ag-gutter) * -1);padding:0 var(--ag-gutter);background:var(--ag-paper);border-bottom:1px solid var(--ag-ink)}
.ag-receipt .ag-toc-btn{display:none}
.ag-receipt.ag-js .ag-toc-btn{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;margin:0;padding:0;border:0;border-radius:0;background:none;color:var(--ag-ink);font:500 14.5px/1.2 var(--ag-sans);text-align:left;cursor:pointer}
.ag-receipt .ag-toc-btn .k{flex:none;font:var(--ag-label);letter-spacing:.08em;text-transform:uppercase;color:var(--ag-ink-2)}
.ag-receipt .ag-toc-btn .cur{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ag-receipt .ag-toc-btn::after{content:"+";flex:none;width:20px;text-align:center;font:400 18px/1 var(--ag-mono)}
.ag-receipt .ag-toc-btn[aria-expanded="true"]::after{content:"\2212"}
.ag-receipt .ag-toc ol{list-style:none;margin:0;padding:0}
.ag-receipt .ag-toc>ol{max-height:62vh;overflow:auto;overscroll-behavior:contain;border-top:1px dashed var(--ag-ink)}
.ag-receipt .ag-toc ol ol{padding-left:16px}
.ag-receipt .ag-toc a{display:flex;align-items:center;min-height:44px;color:var(--ag-body);font:400 15px/1.3 var(--ag-sans);text-decoration:none;border-bottom:1px dashed var(--ag-rule)}
.ag-receipt .ag-toc a[aria-current]{color:var(--ag-ink);font-weight:600}
@media (max-width:899.98px){.ag-receipt.ag-js .ag-toc:not(.is-open)>ol{display:none}}
@media (min-width:900px){
  .ag-receipt .ag-toc-btn,.ag-receipt.ag-js .ag-toc-btn{display:none}
  .ag-receipt .ag-toc-bar>ol{display:flex;flex-wrap:wrap;gap:0 26px;max-height:none;overflow:visible;border-top:0}
  .ag-receipt .ag-toc-bar a{min-height:44px;border-bottom:0;font:500 12px/1 var(--ag-mono);letter-spacing:.04em;color:var(--ag-ink-2)}
  .ag-receipt .ag-toc-bar a:hover{color:var(--ag-ink)}
  .ag-receipt .ag-toc-bar a[aria-current]{color:var(--ag-ink);box-shadow:inset 0 -2px 0 var(--ag-ink)}
  .ag-receipt .ag-toc-side{top:24px;align-self:start;max-height:calc(100vh - 48px);overflow:auto;margin:0;padding:0;background:none;border-bottom:0}
  .ag-receipt .ag-toc-side>ol{max-height:none;overflow:visible;border-top:0;border-left:1px solid var(--ag-rule)}
  .ag-receipt .ag-toc-side a{min-height:0;margin-left:-1px;padding:6px 0 6px 14px;border-bottom:0;border-left:1px solid transparent;font-size:13.5px;line-height:1.35;color:var(--ag-ink-2)}
  .ag-receipt .ag-toc-side a:hover{color:var(--ag-ink)}
  .ag-receipt .ag-toc-side a[aria-current]{border-left-color:var(--ag-ink);color:var(--ag-ink)}
  .ag-receipt .ag-toc-side ol ol a{font-size:12.5px;padding-top:4px;padding-bottom:4px}
  .ag-receipt .ag-toc-side .k{display:block;margin:0 0 10px;font:var(--ag-label);letter-spacing:.08em;text-transform:uppercase;color:var(--ag-ink-2)}
}
@media (max-width:899.98px){.ag-receipt .ag-toc-side>.k{display:none}}

/* 5 ---------- folds: reference text closed behind its heading on a phone, open on desktop ---------- */
.ag-receipt .ag-fold{border-top:1px dashed var(--ag-ink)}
.ag-receipt .ag-fold:last-of-type{border-bottom:1px dashed var(--ag-ink)}
.ag-receipt .ag-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:6px 0;cursor:pointer;list-style:none}
.ag-receipt .ag-fold>summary::-webkit-details-marker{display:none}
.ag-receipt .ag-fold>summary::after{content:"+";flex:none;width:20px;text-align:center;font:400 18px/1 var(--ag-mono);color:var(--ag-ink)}
.ag-receipt .ag-fold[open]>summary::after{content:"\2212"}
.ag-receipt .ag-fold>summary :where(h2,h3,h4){margin:0}
.ag-receipt .ag-fold>summary h3{font:var(--ag-h3)}
.ag-receipt .ag-fold-body{padding:2px 0 24px}
.ag-receipt .ag-fold-body>:first-child{margin-top:0}
@media (min-width:900px){
  .ag-receipt.ag-js .ag-fold,.ag-receipt.ag-js .ag-fold:last-of-type{border:0}
  .ag-receipt.ag-js .ag-fold>summary{min-height:0;margin:40px 0 10px;padding:0;cursor:default}
  .ag-receipt.ag-js .ag-fold>summary::after{content:none}
  .ag-receipt.ag-js .ag-fold-body{padding:0}
}

/* 6 ---------- code: Plex Mono always, never wrapped mid-token, scrolls inside its own box with a dashed edge while more is hidden ---------- */
.ag-receipt :where(.ag-prose) pre{
  margin:14px 0 18px;padding:14px 16px;max-width:100%;border:0;border-radius:0;color:var(--ag-ink);
  font:var(--ag-code);white-space:pre;overflow-x:auto;tab-size:2;-webkit-overflow-scrolling:touch;
  background:
    linear-gradient(var(--ag-pre-bg),var(--ag-pre-bg)) right/10px 100% no-repeat local,
    repeating-linear-gradient(to bottom,var(--ag-ink) 0 4px,transparent 4px 8px) right/1px 100% no-repeat scroll,
    var(--ag-pre-bg);
}
.ag-receipt :where(.ag-prose) pre:focus-visible{outline:2px solid var(--ag-ink);outline-offset:2px}
.ag-receipt :where(.ag-prose) code{font-family:var(--ag-mono);font-size:.84em;color:var(--ag-ink);background:var(--ag-tint);border-radius:0;padding:1px 5px;overflow-wrap:anywhere}
.ag-receipt :where(.ag-prose) pre code{font-size:inherit;background:none;padding:0;overflow-wrap:normal}
.ag-receipt :where(.ag-prose) pre .c{color:var(--ag-ink-2)}
.ag-receipt .ag-prose pre{font-family:var(--ag-mono);white-space:pre;overflow-x:auto}   /* wins over a page's own pre rule (blog posts set code in the text face) */
.ag-receipt .ag-prose .cmd{font-family:var(--ag-mono);overflow-x:auto}   /* blog posts type code in div.cmd, set in the text face by the page */
.ag-receipt .ag-on-slip{--ag-pre-bg:var(--ag-paper)}
@media (max-width:640px){.ag-receipt :where(.ag-prose) pre{padding:12px 14px;font-size:12px}}

/* 7 ---------- tables: a ruled table on desktop, one stacked record per row on a phone (labels come from the header row) ---------- */
.ag-receipt table.ag-table{width:100%;margin:0;border-collapse:collapse;border:0;background:none;font:var(--ag-small);color:var(--ag-body)}
.ag-receipt .ag-table caption{caption-side:top;padding:0 0 6px;text-align:left;font:var(--ag-label);letter-spacing:.08em;text-transform:uppercase;color:var(--ag-ink-2)}
.ag-receipt .ag-table th{padding:8px 16px 8px 0;border:0;border-bottom:1px solid var(--ag-ink);background:none;text-align:left;vertical-align:bottom;font:var(--ag-label);letter-spacing:.08em;text-transform:uppercase;color:var(--ag-ink-2)}
.ag-receipt .ag-table td{padding:12px 16px 12px 0;border:0;border-bottom:1px dashed var(--ag-empty);background:none;vertical-align:top;color:var(--ag-body)}
.ag-receipt .ag-table td:first-child{color:var(--ag-ink)}
.ag-receipt .ag-table tbody th{padding:12px 16px 12px 0;border:0;border-bottom:1px dashed var(--ag-empty);vertical-align:top;font:inherit;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ag-ink)}
.ag-receipt .ag-table :where(th,td):last-child{padding-right:0}
@media (max-width:719.98px){
  .ag-receipt .ag-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .ag-receipt .ag-table,.ag-receipt .ag-table tbody,.ag-receipt .ag-table tr,.ag-receipt .ag-table td{display:block;width:auto}
  .ag-receipt .ag-table caption{display:block;width:auto}
  .ag-receipt table.ag-table{min-width:0!important;width:100%!important}   /* a page's own min-width made the stacked table wider than the phone */
  .ag-receipt .ag-table :where(td,th){white-space:normal}
  .ag-receipt .ag-table tbody{border-top:1px solid var(--ag-ink)}
  .ag-receipt .ag-table tr{padding:12px 0;border-bottom:1px dashed var(--ag-ink)}
  .ag-receipt .ag-table td{padding:0;border:0}
  .ag-receipt .ag-table tbody th{display:block;padding:0;border:0;white-space:normal}
  .ag-receipt .ag-table td:first-child{font-weight:600}
  .ag-receipt .ag-table tbody th+td{margin-top:8px}
  .ag-receipt .ag-table td+td{margin-top:8px}
  .ag-receipt .ag-table td[data-label]:not(:first-child)::before{content:attr(data-label);display:block;margin-bottom:1px;font:var(--ag-label);letter-spacing:.08em;text-transform:uppercase;color:var(--ag-ink-2)}
}

/* 8 ---------- slips: slip on paper, no border, no radius, no shadow; dashed ink rules inside; a torn edge only on a receipt ---------- */
.ag-receipt .ag-slip{background:var(--ag-slip);border:0;border-radius:0;box-shadow:none;--ag-pre-bg:var(--ag-paper)}
.ag-receipt .ag-perf{position:relative}
.ag-receipt .ag-perf::after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:5px;background:var(--ag-perf)}
.ag-receipt .ag-amt{font-weight:600;color:var(--ag-ink)}

/* 9 ---------- the cookie notice and the help launcher ----------
   Today the notice is a 360px box over the lower left of the first screen and the launcher a square at the right
   edge, mid height; both sit on text. Here the notice is one strip along the bottom edge, the page keeps that much
   room under the footer, and the launcher docks above it. Wording and the two equal buttons are untouched.
   Checked against agentguard-consent.js (#agc > p, .choice > .eq x2, .panel) and widget/help.js (.agh-launch, .agh-panel).
   Both scripts inject their CSS as a string; neither script is edited. These page rules win by specificity
   (.ag-receipt #agc beats #agc) and by !important where help.js writes an inline bottom. */
.ag-receipt body{padding-bottom:var(--ag-agc-h)}
.ag-receipt #agc{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:auto!important;max-width:none!important;margin:0!important;padding:10px var(--ag-gutter) calc(10px + env(safe-area-inset-bottom,0px))!important;border-width:1px 0 0!important;font:400 12.5px/1.45 var(--ag-sans);z-index:40}
.ag-receipt #agc .eq{min-height:44px}
@media (min-width:760px){
  .ag-receipt #agc{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 28px;font-size:13px}
  .ag-receipt #agc>*{margin:0}
  .ag-receipt #agc .panel{grid-column:1/-1}
  .ag-receipt #agc .eq{min-width:120px}
}
/* widget/help.js lifts its panel only when the launcher overlaps the notice; with the notice as a strip it never does, so the panel is placed here */
.ag-receipt .agh-panel{bottom:calc(72px + var(--ag-agc-h))!important;max-height:calc(100vh - 96px - var(--ag-agc-h))!important}
/* "Back to top" on the legal pages: a sticky strip over the last lines of text today; here it is the last line of the page (the section bar covers the job while reading) */
.ag-receipt .back-top{position:static!important;justify-content:flex-start!important;margin:32px 0!important;padding:0!important;background:none!important}
.ag-receipt .agh-launch{top:auto!important;right:12px!important;bottom:calc(12px + var(--ag-agc-h))!important;width:48px;height:48px;transform:none!important}

/* 10 ---------- motion helpers ---------- */
@keyframes ag-print{from{opacity:0;clip-path:inset(0 0 100% 0)}to{opacity:1;clip-path:inset(0)}}
@keyframes ag-stamp-in{from{opacity:0;transform:rotate(-6deg) scale(1.3)}to{opacity:1;transform:rotate(-6deg) scale(1)}}
@keyframes ag-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* the gate strip: three requests reach the limit and come back run, held or refused, and a receipt cell is sealed for each.
   Still by default (no script, or reduced motion): every row shows its outcome. With script it plays once when 60% in view. */
.ag-receipt .ag-gate{position:relative;margin:20px 0 0;padding:14px 16px 16px;background:var(--ag-slip)}
.ag-receipt .ag-gate-row{display:grid;grid-template-columns:minmax(0,1fr) 22px;align-items:center;gap:12px;padding:12px 0;border-bottom:1px dashed var(--ag-ink)}
.ag-receipt .ag-gate-row p{margin:0;font:400 15px/1.45 var(--ag-sans);color:var(--ag-ink)}
.ag-receipt .ag-gate-cell{position:relative;width:22px;height:22px;border:1px solid var(--ag-ink);background:var(--ag-ink)}
.ag-receipt .ag-gate-row[data-out="hold"] .ag-gate-cell{background:transparent;border-width:2px}
.ag-receipt .ag-gate-row[data-out="refuse"] .ag-gate-cell{background:var(--ag-stamp);border-color:var(--ag-stamp)}
.ag-receipt .ag-gate-track{grid-column:1/-1;position:relative;height:9px;margin:-2px 0 0}
.ag-receipt .ag-gate-track::before{content:"";position:absolute;left:0;right:34px;top:4px;border-top:1px dashed var(--ag-empty)}
.ag-receipt .ag-gate-track::after{content:"";position:absolute;right:34px;top:-3px;bottom:-3px;border-left:2px dashed var(--ag-ink)}
.ag-receipt .ag-gate-row[data-out="refuse"] .ag-gate-track::after{border-left-color:var(--ag-stamp)}
.ag-receipt .ag-gate-dot{position:absolute;top:0;left:calc(100% - 9px);width:9px;height:9px;background:var(--ag-ink)}
.ag-receipt .ag-gate-row[data-out="hold"] .ag-gate-dot{left:calc(100% - 48px);background:var(--ag-slip);box-shadow:inset 0 0 0 2px var(--ag-ink)}
.ag-receipt .ag-gate-row[data-out="refuse"] .ag-gate-dot{left:calc(100% - 48px);background:var(--ag-stamp)}
.ag-receipt .ag-gate-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:12px 0 0}
.ag-receipt .ag-gate-foot p{margin:0;font:400 12.5px/1.5 var(--ag-mono);color:var(--ag-ink)}
.ag-receipt .ag-gate-chain{display:flex;gap:3px;flex:none}
.ag-receipt .ag-gate-chain i{width:14px;height:14px;border:1px solid var(--ag-ink);background:var(--ag-ink)}
.ag-receipt .ag-gate-chain i:nth-child(2){background:transparent;border-width:2px}
.ag-receipt .ag-gate-chain i:nth-child(3){background:var(--ag-stamp);border-color:var(--ag-stamp)}
@media (prefers-reduced-motion:no-preference){
  @keyframes ag-gate-go{from{left:0}to{left:calc(100% - 9px)}}
  @keyframes ag-gate-stop{from{left:0}to{left:calc(100% - 48px)}}
  @keyframes ag-gate-seal{from{opacity:0}to{opacity:1}}
  .ag-receipt.ag-js .ag-gate[data-ag-play]:not(.is-in) :where(.ag-gate-dot,.ag-gate-cell,.ag-gate-chain i){opacity:0}
  .ag-receipt.ag-js .ag-gate.is-in .ag-gate-dot{animation:ag-gate-go .9s cubic-bezier(.3,0,.2,1) both;animation-delay:calc(var(--i) * 1.2s + .2s)}
  .ag-receipt.ag-js .ag-gate.is-in .ag-gate-row:not([data-out="run"]) .ag-gate-dot{animation-name:ag-gate-stop}
  .ag-receipt.ag-js .ag-gate.is-in .ag-gate-cell{animation:ag-gate-seal .15s linear both;animation-delay:calc(var(--i) * 1.2s + 1.1s)}
  .ag-receipt.ag-js .ag-gate.is-in .ag-gate-chain i{animation:ag-gate-seal .15s linear both;animation-delay:calc(var(--i) * 1.2s + 1.25s)}
}

/* Nov 26 2026: code written into a div.codeblock (/docs/integrations, /docs/capabilities, /proof) keeps its own line breaks and scrolls inside its box */
.ag-receipt .codeblock{white-space:pre;overflow-x:auto;-webkit-overflow-scrolling:touch}
