/* /discord-bots/ai-bot-builder (abp-). Loaded after builtin_services.css (pa-
   tokens, hero type, buttons, mock window bar, closing band) and
   all_in_one.css (aio- sections, fact tiles, perks, spec sheet, plans, FAQ,
   related links), both unchanged. Only what is new to this page lives here. */

.abp { --abp-ok: #34d399; --abp-kw: #c084fc; --abp-str: #6ee7b7; --abp-fn: #7cb4ff; --abp-dec: #fbbf24; --abp-num: #f9a8d4; }

/* ---- Shared mock pieces ---- */
.abp-mock { margin: 0; background: var(--yb-void); border: 1px solid var(--yb-border); border-radius: 12px; overflow: hidden; box-shadow: 0 22px 60px rgba(0,0,0,0.28); min-width: 0; }
.abp-zone { display: flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yb-cyan); }
.abp-zone b { color: var(--yb-gold-light); font-weight: 700; }
.abp-zone-sub { margin-top: 0.3rem; }
.abp-tick { position: relative; width: 13px; height: 13px; border-radius: 3px; background: var(--abp-ok); flex: none; }
.abp-tick::after { content: ''; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg); }
.abp-go { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--disp); font-weight: 600; font-size: 0.82rem; line-height: 1.2; color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb); border-radius: 8px; padding: 0.5rem 0.85rem; box-shadow: 0 6px 18px rgba(37,99,235,0.3); white-space: nowrap; }
.abp-go::before { content: ''; width: 0.42rem; height: 0.72rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(40deg) translateY(-2px); flex: none; }
.abp-go small { font-family: var(--mono); font-size: 0.62rem; font-weight: 500; background: rgba(255,255,255,0.2); border-radius: 4px; padding: 1px 5px; }
.abp-go-sm { font-size: 0.76rem; padding: 0.42rem 0.75rem; }
.abp-compose-go .abp-go::before { display: none; }
.abp-install-go .abp-go::before { display: none; }
.abp-btn-sec { font-size: 0.74rem; font-weight: 600; color: var(--yb-text); background: var(--yb-overlay-soft); border: 1px solid var(--yb-border2); border-radius: 6px; padding: 0.36rem 0.7rem; white-space: nowrap; }
.abp-input { display: block; font-size: 0.76rem; color: var(--yb-muted2); background: var(--yb-void); border: 1px solid var(--yb-border); border-radius: 6px; padding: 0.38rem 0.55rem; }
.abp-mock-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 0.8rem; flex-wrap: wrap; padding: 0.75rem 1.15rem; border-top: 1px solid var(--yb-border); background: var(--yb-depth); }
.abp-back { font-size: 0.78rem; color: var(--yb-muted); }
.abp-opts { font-family: var(--mono); font-size: 0.66rem; color: var(--yb-muted); }
.abp-box { position: relative; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--yb-border2); flex: none; }
.abp-box.on { background: var(--yb-gold); border-color: var(--yb-gold); }
.abp-box.on::after { content: ''; position: absolute; left: 3.5px; top: 0.5px; width: 3px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg); }
.abp-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: var(--yb-gold); animation: abp-blink 1.1s steps(1) infinite; }
@keyframes abp-blink { 50% { opacity: 0; } }

/* ---- Hero stage: the builder mascot behind the composer and its plan ---- */
.abp-stage { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 510px; padding-top: 150px; }
.abp-mascot { position: absolute; top: -26px; right: -8px; width: 236px; height: auto; z-index: 0; pointer-events: none; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.42)); }
.abp-win { position: relative; z-index: 1; width: 94%; background: var(--yb-void); border: 1px solid var(--yb-border); border-radius: 12px; overflow: hidden; box-shadow: 0 22px 60px rgba(0,0,0,0.3); }
.abp-compose { padding: 0.9rem 1rem 1rem; display: grid; gap: 0.55rem; }
.abp-prompt { font-size: 0.88rem; line-height: 1.58; color: var(--yb-text); background: var(--yb-overlay-soft); border: 1px solid var(--yb-gold-dim); border-radius: 10px; padding: 0.7rem 0.8rem; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.abp-prompt-foot { display: flex; justify-content: space-between; gap: 0.6rem; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yb-muted2); }
.abp-compose-go { display: flex; justify-content: flex-start; }
.abp-float { position: relative; z-index: 2; width: 66%; margin: -34px 0 0 auto; background: var(--yb-abyss); border: 1px solid var(--yb-gold-dim); border-radius: 12px; padding: 0.8rem 0.95rem 0.9rem; display: grid; gap: 0.4rem; box-shadow: 0 0 0 1px rgba(59,130,246,0.1), 0 18px 46px rgba(37,99,235,0.22); transform: rotate(1.2deg); }
.abp-float-head { display: flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--abp-ok); }
.abp-float-name { font-family: var(--disp); font-weight: 700; font-size: 1.08rem; color: var(--yb-text); }
.abp-float-cmd { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; font-size: 0.8rem; }
.abp-float-cmd code, .abp-cmd-row code { font-family: var(--mono); font-size: 0.78rem; color: var(--yb-gold-light); }
.abp-float-go { justify-self: start; margin-top: 0.25rem; }

/* ---- 01 Two builders ---- */
.abp-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.abp-builder { position: relative; display: flex; flex-direction: column; gap: 0.5rem; background: var(--yb-abyss); border: 1px solid var(--yb-border); border-radius: 16px; padding: 1.4rem 1.5rem 1.25rem; overflow: hidden; min-width: 0; }
.abp-builder::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--yb-cyan), var(--yb-gold)); opacity: 0.8; }
.abp-builder-top { display: flex; align-items: center; gap: 0.7rem; }
.abp-builder-ic { width: 44px; height: 44px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--yb-cyan-bg); border: 1px solid var(--yb-cyan-dim); color: var(--yb-cyan); }
.abp-builder-ic svg { width: 21px; height: 21px; }
.abp-builder-k { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yb-cyan); }
.abp-builder-badge { margin-left: auto; }
.abp-builder-name { font-family: var(--disp); font-weight: 700; font-size: 1.55rem; line-height: 1.1; margin-top: 0.35rem; }
.abp-builder-t { font-family: var(--disp); font-weight: 600; font-size: 1.02rem; color: var(--yb-gold-light); }
.abp-builder-x { font-size: 0.92rem; line-height: 1.62; color: var(--yb-muted); }
.abp-builder-pts { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.abp-builder-pts li { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yb-text); padding: 3px 8px; border-radius: 3px; border: 1px solid var(--yb-border2); background: var(--yb-overlay-soft); box-shadow: 2px 2px 0 rgba(96,128,210,0.14); }
.abp-builder-links { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.9rem; border-top: 1px dashed rgba(96,128,210,0.2); }
.abp-builder-go { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yb-gold-light); text-decoration: none; }
.abp-builder-more { font-size: 0.86rem; color: var(--yb-text); text-decoration: none; }
.abp-builder-go:hover, .abp-builder-more:hover, .abp-inline:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- 02 The plan card ---- */
.abp-split { align-items: start; }
.abp-plan-body { padding: 1rem 1.15rem 1.05rem; display: grid; gap: 0.5rem; }
.abp-plan-name { font-family: var(--disp); font-weight: 700; font-size: 1.15rem; color: var(--yb-text); }
.abp-plan-sum { font-size: 0.8rem; line-height: 1.5; color: var(--yb-muted); margin-top: -0.3rem; }
.abp-cmd-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.55rem; font-size: 0.8rem; padding: 0.42rem 0.6rem; border: 1px solid var(--yb-border); border-radius: 8px; background: var(--yb-abyss); }
.abp-cmd-x { color: var(--yb-text); }
.abp-meta { font-family: var(--mono); font-size: 0.66rem; color: var(--yb-muted); }
.abp-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.abp-page { display: grid; gap: 0.3rem; align-content: start; border: 1px dashed var(--yb-gold-dim); border-radius: 8px; padding: 0.5rem 0.6rem; min-width: 0; }
.abp-page-t { font-weight: 600; font-size: 0.8rem; color: var(--yb-text); }
.abp-widget { font-size: 0.72rem; line-height: 1.4; color: var(--yb-text); background: var(--yb-gold-bg); border-radius: 4px; padding: 0.25rem 0.45rem; }
.abp-action { font-size: 0.72rem; color: var(--yb-text); border: 1px dashed var(--yb-border2); border-radius: 4px; padding: 0.25rem 0.45rem; }
.abp-action::before { content: '\25B8'; margin-right: 0.35rem; color: var(--yb-muted2); }
.abp-q { display: grid; gap: 0.35rem; margin-top: 0.2rem; padding: 0.6rem 0.75rem 0.7rem; background: var(--yb-gold-bg); border-left: 3px solid var(--yb-gold); border-radius: 6px; font-size: 0.78rem; }
.abp-q b { color: var(--yb-text); font-weight: 700; }
.abp-q-t { font-size: 0.8rem; color: var(--yb-text); }
.abp-replan { display: grid; gap: 0.35rem; }
.abp-replan-row { display: flex; gap: 0.5rem; }
.abp-replan-row .abp-input { flex: 1; min-width: 0; }

/* ---- 03 The live build ---- */
.abp-build { margin-top: 0.4rem; }
.abp-build-body { padding: 1rem 1.15rem 1.15rem; display: grid; gap: 0.7rem; }
.abp-build-head { display: flex; align-items: center; gap: 0.6rem; }
.abp-live-badge { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yb-gold-light); border: 1px solid var(--yb-gold-dim); background: var(--yb-gold-bg); padding: 3px 9px; border-radius: 3px; box-shadow: 2px 2px 0 rgba(59,130,246,0.16); }
.abp-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--abp-ok); box-shadow: 0 0 0 3px rgba(52,211,153,0.2); animation: abp-pulse 2s ease-in-out infinite; }
@keyframes abp-pulse { 50% { box-shadow: 0 0 0 6px rgba(52,211,153,0.04); } }
.abp-elapsed { margin-left: auto; font-family: var(--mono); font-size: 0.7rem; color: var(--yb-muted); }
.abp-phases { list-style: none; margin: 0; padding: 0.75rem 0.6rem 0.65rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--yb-border); border-radius: 10px; background: var(--yb-abyss); }
.abp-ph { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; min-width: 0; }
.abp-ph + .abp-ph::before { content: ''; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: var(--yb-border2); z-index: 0; }
.abp-ph.done::before, .abp-ph.now::before { background: var(--abp-ok) !important; }
.abp-ph-n { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.7rem; color: var(--yb-muted2); background: var(--yb-void); border: 2px solid var(--yb-border2); }
.abp-ph.done .abp-ph-n { color: var(--abp-ok); border-color: var(--abp-ok); background: color-mix(in srgb, var(--abp-ok) 14%, var(--yb-void)); }
.abp-ph.now .abp-ph-n { color: #fff; border-color: var(--yb-gold); background: var(--yb-gold); box-shadow: 0 0 0 4px rgba(59,130,246,0.2); }
.abp-ph-l { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yb-muted2); }
.abp-ph.done .abp-ph-l { color: var(--abp-ok); }
.abp-ph.now .abp-ph-l { color: var(--yb-text); }
.abp-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; color: var(--yb-text); }
.abp-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--yb-gold-dim); border-top-color: var(--yb-gold); flex: none; animation: abp-spin 0.9s linear infinite; }
@keyframes abp-spin { to { transform: rotate(360deg); } }
.abp-meter { height: 6px; border-radius: 999px; background: var(--yb-overlay-soft); overflow: hidden; }
.abp-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--yb-cyan), var(--yb-gold)); }
.abp-meter-l { margin-top: -0.35rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; color: var(--yb-muted); }
.abp-build-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.75fr); gap: 0.8rem; align-items: start; }
.abp-card { min-width: 0; border: 1px solid var(--yb-border); border-radius: 10px; background: var(--yb-abyss); overflow: hidden; }
.abp-card-head { display: flex; justify-content: space-between; gap: 0.6rem; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yb-muted); padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--yb-border); background: var(--yb-depth); }
.abp-code { margin: 0; padding: 0.75rem 0.85rem 0.85rem; font-family: var(--mono); font-size: 0.72rem; line-height: 1.62; color: var(--yb-text); white-space: pre; overflow-x: auto; tab-size: 4; }
.abp-code code { font: inherit; }
.abp-t-k { color: var(--abp-kw); }
.abp-t-s { color: var(--abp-str); }
.abp-t-f { color: var(--abp-fn); }
.abp-t-d { color: var(--abp-dec); }
.abp-t-n { color: var(--abp-num); }
.abp-t-c { color: var(--yb-muted2); font-style: italic; }
.abp-build-rail { display: grid; gap: 0.7rem; min-width: 0; }
.abp-kv { padding: 0.55rem 0.75rem 0.7rem; display: grid; gap: 0.5rem; }
.abp-kv-row { display: grid; gap: 0.12rem; min-width: 0; }
.abp-kv-k { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yb-muted2); }
.abp-kv-v { font-size: 0.8rem; color: var(--yb-text); }
.abp-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.abp-chips code { font-family: var(--mono); font-size: 0.68rem; color: var(--yb-gold-light); border: 1px solid var(--yb-gold-dim); background: var(--yb-gold-bg); border-radius: 999px; padding: 1px 8px; }
.abp-files { list-style: none; margin: 0; padding: 0.55rem 0.75rem 0.7rem; display: grid; gap: 0.32rem; font-family: var(--mono); font-size: 0.7rem; color: var(--yb-muted); }
.abp-files li.on { color: var(--yb-text); font-weight: 700; }

.abp-perks3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.6rem; margin-top: 1.6rem; }
.abp-perks3 .aio-perk { border-top: none; padding-top: 0.2rem; }

/* ---- Cards (checks, run it) ---- */
.abp-sub { margin: 2.4rem 0 0.9rem; font-size: 1.2rem; }
.abp-cards { display: grid; gap: 0.8rem; }
.abp-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.abp-cards-gap { margin-top: 1.6rem; }
.abp-card-x { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; background: var(--yb-abyss); border: 1px solid var(--yb-border); border-radius: 12px; padding: 1rem 1.05rem 1.1rem; }
.abp-card-ic { width: 34px; height: 34px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.2rem; background: var(--yb-cyan-bg); border: 1px solid var(--yb-cyan-dim); color: var(--yb-cyan); }
.abp-card-ic svg { width: 17px; height: 17px; }
.abp-card-t { font-family: var(--disp); font-weight: 600; font-size: 1rem; line-height: 1.25; color: var(--yb-text); }
.abp-card-p { font-size: 0.86rem; line-height: 1.56; color: var(--yb-muted); }

/* ---- 04 Run it: the install card and the sandbox sheet ---- */
.abp-install-body { padding: 1rem 1.15rem 1.1rem; display: grid; gap: 0.75rem; }
.abp-pass { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.8rem; line-height: 1.45; color: var(--yb-text); background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.3); border-left-width: 3px; border-radius: 8px; padding: 0.55rem 0.7rem; }
.abp-pass .abp-tick { margin-top: 2px; }
.abp-install-card { display: grid; gap: 0.5rem; border: 1px solid var(--yb-border); border-radius: 10px; background: var(--yb-abyss); padding: 0.85rem 0.95rem 0.9rem; }
.abp-install-t { font-family: var(--disp); font-weight: 700; font-size: 1.02rem; color: var(--yb-text); }
.abp-install-x { font-size: 0.78rem; line-height: 1.5; color: var(--yb-muted); }
.abp-field { display: flex; align-items: center; gap: 0.6rem; }
.abp-field-k { font-size: 0.78rem; font-weight: 600; color: var(--yb-text); }
.abp-select { position: relative; font-size: 0.8rem; color: var(--yb-text); background: var(--yb-void); border: 1px solid var(--yb-border2); border-radius: 6px; padding: 0.3rem 1.8rem 0.3rem 0.6rem; }
.abp-select::after { content: ''; position: absolute; right: 0.65rem; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--yb-muted); border-bottom: 1.5px solid var(--yb-muted); transform: translateY(-70%) rotate(45deg); }
.abp-caps-h { margin-top: 0.3rem; font-size: 0.78rem; font-weight: 600; color: var(--yb-text); }
.abp-caps-x { margin-top: -0.3rem; font-size: 0.7rem; color: var(--yb-muted); }
.abp-cap { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--yb-text); }
.abp-install-go { margin-top: 0.3rem; }
.abp-install-note { font-size: 0.7rem; color: var(--yb-muted); }
.abp-spec { align-self: stretch; }
.abp-spec .aio-spec-cap { margin-top: auto; padding-top: 0.9rem; }

/* ---- 05 Keep it or sell it ---- */
.abp-publish { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 1rem; align-items: stretch; }
.abp-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.abp-path { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; background: var(--yb-abyss); border: 1px solid var(--yb-border); border-radius: 14px; padding: 1.15rem 1.2rem 1.2rem; }
.abp-path-k { align-self: flex-start; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yb-cyan); border: 1px solid var(--yb-cyan-dim); background: var(--yb-cyan-bg); padding: 2px 7px; border-radius: 3px; box-shadow: 2px 2px 0 rgba(96,128,210,0.14); }
.abp-path-pub .abp-path-k { color: #f5c542; border-color: rgba(250,204,21,0.38); background: rgba(250,204,21,0.1); box-shadow: 2px 2px 0 rgba(250,204,21,0.16); }
.abp-path-x { font-size: 0.88rem; line-height: 1.6; color: var(--yb-muted); }
.abp-tiers { margin: 0; display: flex; flex-direction: column; gap: 0.9rem; background: var(--yb-void); border: 1px solid var(--yb-border2); border-radius: 14px; padding: 1.15rem 1.2rem 1.05rem; }
.abp-tier-bars { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 9rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; align-items: end; }
.abp-tier-bars li { height: calc(34% + var(--i) * 16%); display: flex; justify-content: center; padding-top: 0.45rem; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #3b82f6, rgba(59,130,246,0.22)); }
.abp-tier-bars li:last-child { background: linear-gradient(180deg, #f5c542, rgba(250,204,21,0.22)); }
.abp-tier-v { font-family: var(--disp); font-weight: 700; font-size: 1rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.abp-tiers-cap { font-size: 0.84rem; line-height: 1.55; color: var(--yb-muted); }

/* ---- 06 Start Your Server: the review list ---- */
.abp-syt-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; padding: 0.75rem 1.1rem 0.1rem; }
.abp-tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.abp-tab { font-size: 0.74rem; color: var(--yb-muted); padding: 0.26rem 0.7rem; border-radius: 999px; border: 1px solid var(--yb-border); }
.abp-tab.on { color: var(--yb-text); border-color: var(--yb-gold-dim); background: var(--yb-gold-bg); }
.abp-safe { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--abp-ok); border: 1px solid rgba(52,211,153,0.35); background: rgba(52,211,153,0.08); border-radius: 4px; padding: 3px 8px; }
.abp-safe .abp-tick { width: 11px; height: 11px; }
.abp-safe .abp-tick::after { left: 3px; top: 0; }
.abp-syt-body { padding: 0.75rem 1.1rem 0.95rem; display: grid; gap: 0.6rem; }
.abp-syt-intro { font-size: 0.78rem; line-height: 1.5; color: var(--yb-muted); }
.abp-syt-g { display: grid; gap: 0.3rem; }
.abp-syt-item { display: flex; align-items: center; gap: 0.5rem; min-width: 0; font-size: 0.84rem; padding: 0.36rem 0.55rem; border: 1px solid var(--yb-border); border-radius: 7px; background: var(--yb-abyss); }
.abp-kind { width: 1.1rem; flex: none; text-align: center; font-weight: 700; color: var(--yb-muted); }
.abp-arrow + .abp-kind { width: auto; }
.abp-kind-role { color: #8ea1ff; }
.abp-kind-service { color: var(--yb-cyan); }
.abp-syt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--yb-text); }
.abp-arrow { color: var(--yb-gold-light); margin: 0 0.15rem; }
.abp-tag { margin-left: auto; flex: none; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yb-muted2); border: 1px solid var(--yb-border2); border-radius: 3px; padding: 1px 5px; }
.abp-syt-note { font-size: 0.74rem; }
.abp-inline { color: var(--yb-gold-light); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---- 07 The cost ledger ---- */
.abp-ledger { margin: 0 0 1.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.4rem; background: var(--yb-void); border: 1px solid var(--yb-border2); border-radius: 14px; padding: 0.5rem 1.4rem 0.7rem; }
.abp-ledger-row { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.62rem 0; border-bottom: 1px dashed rgba(96,128,210,0.16); min-width: 0; }
.abp-ledger-row::after { content: ''; order: 2; flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 1px dotted var(--yb-border2); transform: translateY(-0.25em); }
.abp-ledger-row dt { order: 1; font-size: 0.9rem; color: var(--yb-text); }
.abp-ledger-row dd { order: 3; margin: 0; font-family: var(--mono); font-size: 0.72rem; color: var(--yb-gold-light); text-align: right; }
.abp-plans { margin-top: 0.4rem; }

/* ---- Closing band ---- */
.abp-close .aio-close-art { max-width: 300px; }
/* No one-word last lines on the long headings and ledes. */
.abp .aio-h2, .abp-close .pa-close-title { text-wrap: balance; }
.abp .pa-lede, .abp .aio-sec-lede { text-wrap: pretty; }

/* ---- Light theme ---- */
[data-theme="light"] .abp { --abp-ok: #0f9f6e; --abp-kw: #8b3fd9; --abp-str: #0b8a5f; --abp-fn: #1d5fd6; --abp-dec: #a86500; --abp-num: #c0266f; }
[data-theme="light"] .abp-mock, [data-theme="light"] .abp-win { box-shadow: 0 16px 40px rgba(30,41,80,0.12); }
[data-theme="light"] .abp-float { box-shadow: 0 0 0 1px rgba(37,99,235,0.08), 0 14px 34px rgba(37,99,235,0.14); }
[data-theme="light"] .abp-mascot { filter: drop-shadow(0 14px 22px rgba(20,30,60,0.22)); }
/* Cyan and light-blue small labels fall under 4.5:1 on the light page; the
   deeper accent passes. */
[data-theme="light"] .abp-zone, [data-theme="light"] .abp-builder-k, [data-theme="light"] .abp-builder-go,
[data-theme="light"] .abp-live-badge, [data-theme="light"] .abp-inline, [data-theme="light"] .abp-builder-t,
[data-theme="light"] .abp-path-k, [data-theme="light"] .abp-ledger-row dd,
[data-theme="light"] .abp-float-cmd code, [data-theme="light"] .abp-cmd-row code, [data-theme="light"] .abp-chips code { color: var(--yb-gold); }
[data-theme="light"] .abp-path-pub .abp-path-k { color: #9a6b00; }
[data-theme="light"] .abp-kind-role { color: #4752c4; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .abp-perks3 { grid-template-columns: 1fr; }
  .abp-perks3 .aio-perk { border-top: 1px dashed rgba(96,128,210,0.18); padding-top: 1.1rem; }
  .abp-perks3 .aio-perk:first-child { border-top: none; padding-top: 0.2rem; }
}
@media (max-width: 980px) {
  .abp-stage { justify-self: center; max-width: 540px; }
  .abp-duo, .abp-publish, .abp-build-grid { grid-template-columns: 1fr; }
  .abp-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .abp-ledger { grid-template-columns: 1fr; }
  .abp-tier-bars { min-height: 8rem; }
}
@media (max-width: 760px) {
  .abp-stage { padding-top: 124px; }
  .abp-mascot { width: 196px; top: -18px; }
  .abp-builder { padding: 1.2rem 1.15rem 1.1rem; }
  .abp-builder-name { font-size: 1.35rem; }
  /* Mono labels: legible floor on a phone, nothing below ~10px. */
  .abp-zone, .abp-prompt-foot, .abp-float-head, .abp-builder-k, .abp-builder-pts li, .abp-builder-go, .abp-live-badge, .abp-ph-l,
  .abp-meter-l, .abp-card-head, .abp-kv-k, .abp-path-k, .abp-safe, .abp-tag, .abp-opts, .abp-meta { font-size: 0.66rem; }
}
@media (max-width: 560px) {
  .abp-win { width: 100%; }
  .abp-float { width: 90%; margin-top: -24px; }
  /* The card covers the window's last 24px: keep the Plan it button above it. */
  .abp-compose { padding-bottom: 2.1rem; }
  .abp-mascot { width: 168px; }
  .abp-stage { padding-top: 108px; }
  .abp-cards-3, .abp-paths, .abp-pages { grid-template-columns: 1fr; }
  .abp-phases { padding-left: 0.3rem; padding-right: 0.3rem; }
  .abp-ph-l { font-size: 0.62rem; letter-spacing: 0.02em; }
  .abp-code { font-size: 0.66rem; }
  .abp-ledger { padding: 0.4rem 1rem 0.6rem; }
  .abp-ledger-row { flex-wrap: wrap; gap: 0.2rem 0.6rem; }
  .abp-ledger-row::after { display: none; }
  .abp-ledger-row dd { flex-basis: 100%; text-align: left; }
  .abp-mock-foot .abp-go { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .abp-caret, .abp-spin, .abp-live-dot { animation: none; }
}
