/* The merchant portal's own few rules (the design system is /app.css). */
.portal-signin { max-width: 560px; margin: 8vh auto; padding: 0 16px; }
.portal-signin input[type="email"] { flex: 1 1 240px; min-width: 0; }
.top #who { margin-left: auto; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 640px) { .top #who { display: none; } }
textarea.evidence { width: 100%; min-height: 14rem; font: inherit; line-height: 1.5; margin: .6rem 0; }
.side .sidelink { display: block; padding: .55rem .85rem; border-radius: var(--r-sm); color: var(--ink-2); font-size: .92rem; font-weight: 500; text-decoration: none; }
.side .sidelink:hover { background: var(--panel); color: var(--ink); }
.side .sidelink::after { content: " \2197"; color: var(--gold-l); }
.side .sidelink[hidden] { display: none; }

/* /connect/ sits in the portal's frame: its side links and the Stripe group (tmathson 2026-11-17) */
.side .sidelink.in::after { content: ""; }
.side a.navlink { display: flex; align-items: center; gap: .6rem; padding: .55rem .85rem; border-radius: var(--r-sm); color: var(--ink-2); font-size: .92rem; font-weight: 500; text-decoration: none; }
.side a.navlink:hover { background: var(--panel); color: var(--ink); }
.stripe-tabs { display: grid; gap: .1rem; }
.stripe-tabs button { text-align: left; background: none; border: 0; padding: .5rem .85rem .5rem 2.35rem; border-radius: var(--r-sm); color: var(--ink-2); font: 500 .92rem var(--sans); cursor: pointer; }
.stripe-tabs button:hover { background: var(--panel); color: var(--ink); }
.stripe-tabs button[aria-current="true"] { background: var(--gold-wash); color: var(--gold-l); }
.stripe-pane { min-height: 22rem; }
@media (max-width: 760px) { /* the side bar is a scrolling row on a phone; on /connect/ the Stripe screens come first in it */
  .side a.navlink { flex-shrink: 0; white-space: nowrap; }
  .stripe-tabs { display: flex; flex-shrink: 0; order: -1; gap: .1rem; }
  .stripe-tabs button { padding: .5rem .75rem; white-space: nowrap; }
}

/* Accounts, an account's own page, the business profile and the brand kit (tmathson, 2026-11-17) */
.portal .card:not(.ch) > .card-h:first-child { padding: 0 0 .75rem; gap: .8rem; flex-wrap: wrap; }
.s-ok { color: var(--good); border-color: rgba(111, 191, 142, .35); background: rgba(111, 191, 142, .07); }
.s-na, .s-test-mode, .s-sandbox { color: var(--mute); }
.s-live { color: var(--gold-l); border-color: rgba(168, 132, 27, .4); background: var(--gold-wash); }
.crumbs { display: flex; gap: .45rem; align-items: center; color: var(--mute); font-size: .85rem; margin-bottom: .6rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold-l); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(226, 192, 101, .35); text-underline-offset: 3px; }
.ph-id { display: flex; gap: .9rem; align-items: center; min-width: 0; }
.ph-id .sub { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ph-mark { display: inline-flex; }
/* partner marks: a letter on the account's own series colour (the colour it has on every chart) */
.pmark { display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; font: 700 .95rem/1 var(--sans); color: #16150f; }
.pmark.z22 { width: 22px; height: 22px; border-radius: 6px; font-size: .7rem; }
.pmark.c0 { background: var(--s0); } .pmark.c1 { background: var(--s1); } .pmark.c2 { background: var(--s2); } .pmark.c3 { background: var(--s3); } .pmark.c4 { background: var(--s4); } .pmark.c5 { background: var(--s5); }
.acct-link { display: inline-flex; gap: .55rem; align-items: center; color: var(--ink); text-decoration: none; } .acct-link:hover { color: var(--gold-l); }
/* account cards */
.accts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.acct { display: grid; gap: .9rem; color: var(--ink); text-decoration: none; transition: border-color .12s, transform .08s; }
.acct:hover, .acct:focus-visible { border-color: rgba(168, 132, 27, .5); outline: none; }
.acct:active { transform: translateY(1px); }
.acct-h { display: flex; gap: .7rem; align-items: center; } .acct-t { display: grid; flex: 1; min-width: 0; } .acct-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .acct-t .muted { font-size: .8rem; }
.acct-n { display: flex; gap: 1.3rem; align-items: flex-end; } .acct-n > div { display: grid; } .acct-n b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.acct-n .k, .k-lbl { color: var(--mute); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.k-lbl { margin: .2rem 0 .5rem; } .k-lbl ~ .k-lbl { margin-top: 1rem; }
.acct-f { display: grid; gap: .3rem; font-size: .8rem; } .acct-f .meter { margin: 0; }
svg.spark { width: 120px; height: 32px; margin-left: auto; overflow: visible; }
svg.spark .dot { stroke: var(--panel); stroke-width: 1.5; }
svg .dot.c0 { fill: var(--s0); } svg .dot.c1 { fill: var(--s1); } svg .dot.c2 { fill: var(--s2); } svg .dot.c3 { fill: var(--s3); } svg .dot.c4 { fill: var(--s4); } svg .dot.c5 { fill: var(--s5); }
.meter i.warn { background: var(--warn); } .meter i.bad { background: var(--bad); }
.tile .n .meter { margin: .15rem 0 .3rem; }
/* a partner's screens: inside Athanor Pay, and on the partner's own site */
.surf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .5rem; }
.surf-i { display: grid; gap: .15rem; padding: .65rem .8rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); color: var(--ink); text-decoration: none; font-size: .9rem; }
.surf-i span { color: var(--mute); font-size: .78rem; line-height: 1.4; }
a.surf-i:hover, a.surf-i:focus-visible { border-color: var(--gold); background: var(--panel-2); outline: none; }
a.surf-i b::after { content: " \2192"; color: var(--gold-l); } a.surf-i.ext b::after { content: " \2197"; }
.surf-i.static { border-style: dashed; }
dl.kv { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .5rem 1.2rem; font-size: .92rem; } dl.kv dt { color: var(--mute); } dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
ul.bl { list-style: none; display: grid; gap: .1rem; }
ul.bl li { display: grid; grid-template-columns: 9.5rem 1fr; gap: .9rem; align-items: start; padding: .7rem 0; border-top: 1px solid var(--line); }
ul.bl li:first-child { border-top: 0; padding-top: .2rem; } ul.bl li > div { display: grid; gap: .15rem; } ul.bl .pill { justify-self: start; margin-top: .1rem; }
ul.bl .muted { font-size: .84rem; }
.vals { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .25rem; } .val { display: inline-flex; gap: .4rem; align-items: center; font-size: .84rem; }
i.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); vertical-align: -2px; }
.portal code { font: .85em var(--mono); background: var(--raise); padding: .05rem .35rem; border-radius: 4px; }
ul.ppl { list-style: none; display: grid; gap: .7rem; } ul.ppl li { display: flex; gap: .7rem; align-items: center; } ul.ppl li > div { display: grid; min-width: 0; } ul.ppl .muted { font-size: .82rem; overflow-wrap: anywhere; }
.ini { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--raise); border: 1px solid var(--line-2); color: var(--ink-2); font-size: .78rem; font-weight: 650; flex-shrink: 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.acct-chip { display: inline-flex; gap: .5rem; align-items: center; padding: .35rem .7rem .35rem .4rem; border: 1px solid var(--line-2); border-radius: 99px; background: var(--bg-2); color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.acct-chip:hover { border-color: var(--gold); }
.ws-dot.ws-mono { background: none; border: 0; width: 30px; height: 30px; }
/* the brand kit: the form, and a live preview of the checkout and of Stripe's screens */
.bk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.2rem; align-items: start; }
.bk-form { display: grid; gap: .95rem; } .bk-form > label, .bk-form fieldset { display: grid; gap: .35rem; font-size: .86rem; color: var(--ink-2); font-weight: 550; }
.bk-form fieldset { border: 0; padding: 0; margin: 0; } .bk-form legend { padding: 0; margin-bottom: .35rem; }
.bk-form input:not([type]), .bk-form input[type="url"] { width: 100%; }
.bk-color { display: flex; gap: .5rem; align-items: center; }
.bk-color input[type="color"] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r-xs); background: var(--bg-2); cursor: pointer; }
.bk-color #bkHex { width: 8.5rem; font-family: var(--mono); text-transform: uppercase; }
.bk-range { display: flex; gap: .7rem; align-items: center; } .bk-range input { flex: 1; accent-color: var(--gold); } .bk-range output { min-width: 3rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.f-serif { font-family: var(--serif); } .f-system { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.bk-check { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; min-height: 1.6rem; } .bk-check .note { flex-basis: 100%; margin: 0; }
.bk-prev { position: sticky; top: 76px; display: grid; gap: .3rem; }
.bk-page { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; font-family: var(--sans); color: var(--ink); }
.bk-page.branded { background: radial-gradient(600px 300px at 50% -20%, var(--gold-wash), transparent 70%), var(--bg); }
.bk-pay.paybox { width: 100%; padding: 1.4rem 1.3rem 1.2rem; }
.bk-pay .m { pointer-events: none; } .bk-pay .amt-big { font-size: 2.1rem; }
.bk-tagline { font-size: .82rem; margin: .2rem 0 0; } .bk-tagline:empty { display: none; }
.bk-go { width: 100%; margin-top: 1rem; padding: .7rem 1rem; pointer-events: none; }
[data-surface="light"] .bk-pay.paybox { box-shadow: 0 24px 50px -34px rgba(40, 30, 10, .35); }
.bk-stripe { display: grid; gap: .7rem; background: var(--panel); border-radius: var(--r); }
.bk-s-row { display: flex; justify-content: space-between; align-items: center; } .bk-s-badge { font-size: .74rem; padding: .1rem .5rem; border-radius: 6px; background: rgba(46, 125, 79, .10); color: var(--good); border: 1px solid rgba(46, 125, 79, .35); }
.bk-s-line { height: 10px; border-radius: 5px; background: var(--raise); } .bk-s-line.short { width: 60%; }
.bk-s-btn { background: var(--gold); color: var(--gold-ink); padding: .35rem .9rem; border-radius: var(--r-sm); font-size: .84rem; font-weight: 600; } .bk-s-link { color: var(--gold-l); font-size: .84rem; font-weight: 550; }
@media (max-width: 900px) { .bk { grid-template-columns: 1fr; } .bk-prev { position: static; } }
@media (max-width: 640px) {
  ul.bl li { grid-template-columns: 1fr; gap: .4rem; }
  dl.kv { grid-template-columns: 1fr; gap: .1rem; } dl.kv dd { margin-bottom: .5rem; }
  .phead > .rseg, .phead > .row { width: 100%; }
  .acct-n { gap: 1rem; } svg.spark { width: 96px; }
}
.bk-form .rseg { justify-self: start; }

/* Cards (auctusclan, 2026-11-17): a card face in the suite's ink and gold; frozen and cancelled cards fade. No inline styles. */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: .6rem 0 1rem; }
.cface { aspect-ratio: 1.586; border-radius: 14px; padding: 1rem 1.1rem; display: grid; grid-template-rows: auto 1fr auto; color: #f6f1e6;
  background: radial-gradient(120% 140% at 0% 0%, #2b2618, #16150f 60%); border: 1px solid rgba(168, 132, 27, .5); box-shadow: 0 18px 36px -24px rgba(40, 30, 10, .6); }
.cface.ath { background: radial-gradient(120% 140% at 100% 0%, #3a2f12, #16150f 62%); }
.cface.off { filter: grayscale(.8); opacity: .65; }
.cf-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; } .cf-top b { font: 600 1rem/1.2 var(--serif); color: #e2c065; } .cf-top span { font-size: .72rem; opacity: .8; text-transform: capitalize; }
.cf-chip { width: 38px; height: 28px; border-radius: 6px; margin-top: .8rem; background: linear-gradient(135deg, #e2c065, #a8841b); }
.cf-foot { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; opacity: .9; }
.cform { padding: 1.2rem 1.3rem; margin-top: 1rem; } .cform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem; margin: .7rem 0; }
.cform label { display: grid; gap: .3rem; font-size: .85rem; color: var(--ink-2); }
.cform input, .cform select { font: inherit; padding: .55rem .65rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel); color: var(--ink); }
/* Brand kit, 2026-11-23: logo and icon uploads, more colours, the live preview frame */
.bk-imgs { display: grid; grid-template-columns: 1.6fr 1fr; gap: .7rem; } .bk-img { display: grid; gap: .4rem; align-content: start; }
.bk-img-box { height: 76px; display: grid; place-items: center; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); overflow: hidden; padding: .4rem; }
.bk-img-box img { max-width: 100%; max-height: 64px; object-fit: contain; } .bk-img[data-kind="icon"] .bk-img-box img { max-height: 56px; }
.bk-up { cursor: pointer; justify-self: start; } .bk-img .btn { justify-self: start; }
.bk-pal { display: flex; flex-wrap: wrap; gap: .4rem .7rem; } .bk-pc { display: inline-flex; align-items: center; gap: .25rem; }
.bk-pchip { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 1px solid var(--line-2); border-radius: 99px; padding: .15rem .55rem .15rem .25rem; cursor: pointer; color: var(--ink); font-size: .78rem; }
.bk-palin { width: 7.5rem; font-family: var(--mono); text-transform: uppercase; }
.linkbtn { background: none; border: 0; padding: 0 .15rem; color: var(--gold-l); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; }
.bk-tabs { display: flex; flex-wrap: wrap; gap: .3rem; } .bk-tab { background: none; border: 1px solid var(--line-2); border-radius: 99px; padding: .25rem .7rem; font-size: .8rem; color: var(--ink-2); cursor: pointer; }
.bk-tab.on { background: var(--gold-wash); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.bk-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
@media (max-width: 900px) { .bk-frame { height: 600px; } .bk-imgs { grid-template-columns: 1fr; } }
/* Sell to AI agents (auctusclan 2026-11-23) */
#agProd, #agSet, #agTok { display: flex; flex-wrap: wrap; gap: .6rem .8rem; align-items: flex-end; margin-top: .8rem; }
#agProd label, #agSet label, #agTok label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; min-width: 0; }
#agProd label.grow, #agSet label.grow, #agTok label.grow { flex: 1 1 14rem; }
#agSet label.chk, #agTok label.chk, form.row label.chk { flex-direction: row; align-items: center; gap: .4rem; }
#agTokMsg { overflow-wrap: anywhere; flex-basis: 100%; }
@media (max-width: 620px) { #agProd label, #agSet label, #agTok label { flex: 1 1 100%; } }
/* the side's links look like its buttons (icon, size, weight); the ↗ stays only on links that leave Pay (auctusclan 2026-11-23) */
.side a.sidelink { display: flex; align-items: center; gap: .65rem; font-size: .9rem; padding: .5rem .75rem; color: var(--ink-2); font-weight: 500; }
.side a.sidelink .ic { color: var(--mute); } .side a.sidelink:hover .ic { color: var(--gold-l); }
.side a.sidelink[hidden] { display: none; }
/* Sell to AI agents: the test agent's steps */
.ag-steps { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .45rem; }
.ag-steps li { display: grid; gap: .1rem; padding: .55rem .75rem; border-radius: var(--r-sm); background: var(--panel); border-left: 3px solid var(--line); }
.ag-steps li.ok { border-left-color: #1f9d6b; } .ag-steps li.bad { border-left-color: #d0473b; } .ag-steps .mono { font-size: .8rem; overflow-wrap: anywhere; }
.side button[hidden] { display: none; }
