/* Partner portal. Tokens mirror public/partners.css so the portal reads as part of the partner pages. */
:root { --ink: #132849; --page: #edf6fa; --surface: #fff; --line: #cbdde8; --accent: #006779; --link: #075b7e; --muted: #38536a; --soft: #e6f5f4; --focus: #1576c5; --alert: #a12721; --alert-soft: #fdeeed;
 color: var(--ink); background: var(--page); font: 16px/1.55 system-ui,sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); overflow-x: hidden; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.portal-top, .portal { width: min(56rem,100% - 2rem); margin-inline: auto; }
.portal-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.portal-logo { display: inline-flex; align-items: center; min-height: 44px; }
.portal-top img { display: block; height: auto; max-width: 100%; }
.portal-links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.portal-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; font-weight: 650; text-decoration: none; border-radius: .55rem; }
.portal-links a:hover { text-decoration: underline; }
.lang-switch { border: 1px solid var(--line); background: var(--surface); padding-inline: .8rem !important; }
.portal { padding: clamp(1rem,4vw,2.5rem) 0 3rem; }

h1, h2, h3 { line-height: 1.2; margin: .4rem 0 .6rem; }
h1 { font-size: clamp(1.6rem,6vw,2.3rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.25rem,4vw,1.55rem); letter-spacing: -.015em; }
h3 { font-size: 1.05rem; }
p { margin: .4rem 0 .9rem; max-width: 62ch; }
.brand { margin: 0 0 .25rem; color: var(--accent); font-size: .78rem; letter-spacing: .1em; font-weight: 800; text-transform: uppercase; }
.muted, small { color: var(--muted); }
small { display: block; font-weight: 400; font-size: .88rem; }
code { font: 700 .95rem ui-monospace,SFMono-Regular,Consolas,monospace; padding: .15rem .45rem; border-radius: .4rem; background: var(--soft); color: var(--accent); }

.portal-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.portal-head p { margin-bottom: .5rem; }
.portal-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.portal-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; color: var(--link); background: var(--surface); border: 1px solid var(--line); border-radius: .7rem; font-weight: 650; text-decoration: none; }
.portal-nav a:hover { border-color: var(--accent); }

section { padding: clamp(1rem,3.5vw,1.6rem); margin: 1rem 0; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--surface); scroll-margin-top: 1rem; }
section > :last-child { margin-bottom: 0; }
article { padding-top: 1rem; }
article + article { margin-top: 1rem; border-top: 1px solid var(--line); }
article p { margin: .25rem 0 .6rem; }

label { display: block; font-weight: 650; }
input, select { width: 100%; min-height: 44px; padding: .6rem .7rem; margin: .25rem 0; border: 1px solid #829cac; border-radius: .5rem; font: inherit; color: inherit; background: var(--surface); }
input[readonly] { background: var(--page); font-size: .92rem; text-overflow: ellipsis; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: .4rem; padding: .55rem 1rem; border: 1px solid transparent; border-radius: .7rem;
 font: inherit; font-weight: 750; color: #fff; background: var(--accent); cursor: pointer; text-decoration: none; }
button:hover, .button:hover { filter: brightness(1.08); }
.secondary { color: var(--accent); background: var(--surface); border-color: var(--accent); }
.alert { padding: .7rem .9rem; border-radius: .6rem; color: var(--alert); background: var(--alert-soft); font-weight: 650; }

.signin { max-width: 32rem; margin: clamp(.5rem,4vw,2rem) auto; }
.stack-form { display: grid; gap: .2rem; }
.stack-form button { justify-self: start; }
.divider { display: flex; align-items: center; gap: .75rem; margin: 1.2rem 0; color: var(--muted); font-size: .9rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.aside { margin-top: 1.2rem; font-size: .95rem; }
.aside a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }

.empty { padding: 1rem 1.1rem; border: 1px dashed var(--line); border-radius: .8rem; background: var(--page); }
.empty p { margin: 0 0 .35rem; }
.empty .button { margin-top: .5rem; }

dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap: .6rem; margin: .5rem 0 1rem; }
dl div { padding: .8rem .95rem; background: var(--page); border-radius: .75rem; }
dt { color: var(--muted); font-size: .85rem; font-weight: 700; }
dd { margin: .2rem 0 0; font-weight: 750; overflow-wrap: anywhere; }
dd small { display: inline; }
details { margin-top: 1rem; }
summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 700; cursor: pointer; }
.terms { margin-top: .5rem; }

.builder { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem 1rem; max-width: 40rem; }
.builder .wide { grid-column: 1 / -1; }
.result { margin-top: 1rem; padding: 1rem; border-radius: .8rem; background: var(--soft); }
.copy-row { display: flex; gap: .5rem; align-items: center; }
.copy-row input { flex: 1; min-width: 0; }
.copy-row button { margin-top: 0; flex: none; }
.price { color: var(--muted); }
.price strong { color: var(--ink); }
.was { white-space: nowrap; }

ul { padding: 0; list-style: none; margin: .5rem 0; }
.counts li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.counts li span { overflow-wrap: anywhere; }
.codes { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.codes li { display: grid; gap: .2rem; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--page); }
.codes code { justify-self: start; }
.orders li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.orders li > div { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; }
.state { padding: .1rem .55rem; border-radius: 999px; background: var(--soft); color: var(--accent); font-size: .85rem; font-weight: 700; }
.state-cancelled, .state-refunded, .state-disputed { background: var(--alert-soft); color: var(--alert); }

.table { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: start; font-weight: 700; padding-bottom: .4rem; }
th, td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
thead th { white-space: nowrap; color: var(--muted); font-size: .85rem; }
th[scope=row] { overflow-wrap: anywhere; }

@media (max-width: 40rem) {
 .builder { grid-template-columns: minmax(0,1fr); }
 .portal-top img { width: 116px; }
 .copy-row { flex-direction: column; align-items: stretch; }
 .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
 .stack, .stack caption, .stack tbody, .stack tr, .stack th, .stack td { display: block; }
 .stack caption { width: 100%; white-space: nowrap; }
 .stack tr { margin-bottom: .6rem; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--page); }
 .stack th[scope=row] { padding: .45rem 0; border: 0; font-size: 1rem; }
 .stack td { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 0; border-top: 1px solid var(--line); }
 .stack td::before { content: attr(data-label); color: var(--muted); font-weight: 650; }
 .stack td:empty { display: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Copy feedback (motion 18-11-2026): check state plus a polite announcement. */
.pp-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.copy.is-copied { background: #e7f6ef; border-color: #17694c; color: #17694c; }
@media (prefers-reduced-motion: no-preference) { .copy.is-copied { animation: pp-pop 200ms cubic-bezier(.2,.7,.3,1); } @keyframes pp-pop { from { opacity: .6; transform: scale(.96); } } }
