/* The signed-in portal's stylesheet: the account sections, the organization
   pages and the top-up flow. Portal pages link it after app.css, so the
   landing's payload never carries it; the tokens it reads are app.css's. */
.mp-num{font-family:var(--mono);font-variant-numeric:tabular-nums}
.mp-top-email{color:var(--muted);font-size:14px;max-width:22ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mp-main{max-width:var(--max);margin:0 auto;padding:32px 24px 72px}
.ui-shell .mp-main{max-width:1280px;padding-inline:32px}
@media(max-width:767px){.ui-shell .mp-main{padding-inline:16px}}
.mp-section[hidden]{display:none}
.mp-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 20px}
.mp-h1{font-size:clamp(26px,3.4vw,34px);font-weight:700;letter-spacing:-.015em;line-height:1.2;margin:0}
.mp-h2{font-size:19px;font-weight:600;letter-spacing:-.01em;margin:0 0 12px}
.mp-sub{color:var(--muted);font-size:15px;margin:6px 0 0}
.mp-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.mp-stat dt{font-size:14px;font-weight:500;color:var(--muted);margin:0}
.mp-stat dd{margin:10px 0 0}
.mp-amount{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:clamp(26px,3vw,34px);font-weight:600;line-height:1.1;display:block}
.mp-stat-note{display:block;margin-top:12px;font-size:14px;color:var(--faint)}
.mp-quick{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
/* --- money pairs in tables --- */
.mp-money{display:inline-flex;flex-direction:column;align-items:flex-end;gap:2px;font-family:var(--mono);font-variant-numeric:tabular-nums}
.mp-money-alt{color:var(--muted);font-size:13px}
.mp-cache-cost{font-family:var(--sans);font-size:12px;line-height:1.35;max-width:24ch;white-space:normal}
.mp-inline-form{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 20px}
.mp-key-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:0 0 8px}
.mp-key-filters label{display:grid;flex:1 1 180px;min-width:0;gap:6px}
.mp-key-filters input,.mp-key-filters select{width:100%;min-width:0;max-width:100%;contain:paint}
.mp-key-count{margin:0 0 16px;color:var(--muted)}
.mp-key-actions summary{cursor:pointer}
.mp-key-actions[open] form{margin-top:8px}
.ui-drawer-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:auto;padding-top:16px;border-top:1px solid var(--ui-border)}
.ui-settings-name-form{display:grid;gap:16px}
.ui-settings-name-form .ui-field{max-width:560px}
.ui-settings-name-actions{display:flex;justify-content:flex-end;padding-top:12px;border-top:1px solid var(--ui-border)}
.ui-settings-name-actions .ui-btn:disabled{opacity:.55;cursor:not-allowed}
.mp-key-actions>summary{list-style:none}
.mp-key-actions>summary::-webkit-details-marker{display:none}
.mp-key-create-form{display:flex;flex-direction:column;align-items:stretch;gap:16px}
.mp-key-create-form>[data-payer-field]{display:flex;flex-direction:column;gap:6px;min-width:0}
.mp-key-create-form .ui-input,.mp-key-create-form .ui-select{width:100%}
.mp-key-create-form>button{align-self:flex-start}
.mp-secret{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.mp-secret code{flex:1 1 260px;min-width:0;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:15px;overflow-wrap:anywhere}
/* --- segmented control --- */
.mp-seg{display:inline-flex;gap:2px;padding:3px;background:var(--surface-2);border:1px solid var(--line);border-radius:10px}
.mp-seg a,.mp-seg button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap}
@media(min-width:1024px){.mp-seg a,.mp-seg button{min-height:32px}}
.mp-seg a:hover,.mp-seg button:hover{color:var(--ink)}
.mp-seg a[aria-current],.mp-seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.06)}
/* Without `min-width:0` a long name widens the page. */
.mp-scope{flex-wrap:wrap;max-width:100%;margin:0 0 8px}
.mp-scope a{min-width:0}
.mp-scope a>span{max-width:16rem;overflow:hidden;text-overflow:ellipsis}
.mp-scope-note{margin:0 0 20px}
/* --- tables --- */
.mp-table-wrap{position:relative;overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.mp-table{width:100%;border-collapse:collapse;font-size:15px}
.mp-table th,.mp-table td{text-align:left;padding:14px 16px;border-bottom:1px solid var(--line);white-space:nowrap}
.mp-table thead th{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--faint);background:var(--surface-2)}
.mp-table tbody tr:last-child th,.mp-table tbody tr:last-child td{border-bottom:0}
.mp-table .mp-right{text-align:right}
/* Portal prices: the unit headers wrap; ids and names keep `nowrap`. */
.mp-portal-models thead .mp-right{white-space:normal}
.mp-table tfoot th,.mp-table tfoot td{padding:14px 16px;border-top:1px solid var(--line-strong);font-weight:600;background:var(--surface-2)}
.mp-tag{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:600;border:1px solid var(--line-strong);color:var(--muted)}
.mp-tag.is-revoked{color:var(--faint)}
tr.is-revoked td:not(.mp-actions){opacity:.62}
/* --- usage charts (server-rendered SVG, themed through the tokens) --- */
.mp-charts{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start;gap:20px;margin:0 0 28px}
.mp-chart{margin:0;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px}
.mp-chart figcaption{font-size:14px;font-weight:600;color:var(--muted);margin:0 0 14px}
.mp-chart-days{display:block;width:100%;height:120px}
.mp-chart-bar{fill:var(--accent-quiet)}
.mp-chart-axis{display:flex;justify-content:space-between;margin:10px 0 0;font-size:12px;color:var(--faint);font-family:var(--mono)}
.mp-chart-shares{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.mp-chart-shares li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px}
.mp-chart-share-name{font-size:13px;color:var(--muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mp-chart-share-value{font-size:13px;color:var(--muted);text-align:right}
.mp-chart-track{grid-column:1/-1;display:block;width:100%;height:8px;background:var(--surface-2);border-radius:4px}
/* --- unavailable-rate note and empty state --- */
.mp-fx{margin:14px 0 0;font-size:13px;color:var(--faint)}
.mp-empty{border:1px dashed var(--line-strong);border-radius:14px;padding:40px 24px;text-align:center;color:var(--muted)}
.mp-empty h3{margin:0 0 8px;font-size:17px;font-weight:600;color:var(--ink)}
.mp-empty p{margin:0}
.mp-badge{display:inline-block;padding:2px 8px;border:1px solid var(--line);border-radius:999px;font-size:13px;color:var(--muted)}
.mp-badge-ok{border-color:var(--ok);color:var(--ink)}
@media(min-width:1024px){
.mp-portal-models :is(th,td){padding-inline:8px}
}
@media(max-width:720px){
/* The address is the one piece of header text that can be arbitrarily long. */
.mp-top-email{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.mp-top-email{display:none}
.mp-main{padding:24px 16px 64px}
.mp-stats{grid-template-columns:minmax(0,1fr)}
.mp-charts{grid-template-columns:minmax(0,1fr);gap:14px;margin-bottom:22px}
.mp-chart{padding:14px}
.mp-chart-days{height:96px}
/* Stacked, the history's row header keeps its column label like every other
   cell: the header row is hidden here, and a bare date would be the one column
   that lost its label. */
.mp-topup-history tbody th::before{content:attr(data-label);color:var(--muted);font-size:13px;font-weight:500;text-align:left;flex:none}
/* Stacked, the credit time goes on its own line under the amount it belongs to:
   beside a five-digit amount it made the card wider than a 320 px screen in
   Russian and Spanish, and breaking the date inside a number is unreadable. */
.mp-topup-credited{flex-wrap:wrap}
.mp-topup-credited .mp-topup-note{flex-basis:100%}
.mp-table-wrap{border:0;background:transparent;overflow-x:visible}
.mp-table{font-size:15px}
.mp-table thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mp-table,.mp-table tbody,.mp-table tfoot,.mp-table tr,.mp-table td,.mp-table th{display:block;width:100%}
.mp-table tbody tr,.mp-table tfoot tr{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin:0 0 10px}
.mp-table td,.mp-table th,.mp-table tfoot td,.mp-table tfoot th{border:0;border-bottom:0;padding:7px 0;display:flex;align-items:baseline;justify-content:space-between;gap:16px;text-align:right;white-space:normal}
.mp-table td::before,.mp-table tfoot td::before{content:attr(data-label);color:var(--muted);font-size:13px;font-weight:500;text-align:left;flex:none}
/* A price stays on one line; its card label wraps instead. */
.mp-portal-models td.mp-num{white-space:nowrap}
.mp-portal-models td.mp-num::before{flex:0 1 auto;white-space:normal}
.mp-table td:empty{display:none}
.mp-table .mp-money{align-items:flex-end}
}
@supports selector(:popover-open){
  /* The e-mail is the one header text of any length: in a menu it wraps whole. */
  [data-portal] .mp-account .mp-top-email{display:block;max-width:100%;overflow:visible;white-space:normal;
    overflow-wrap:anywhere;color:var(--muted);font-size:14px}
  /* Open at any width (no script closes a menu across 1024px). The bar is
     65px: 64px row + 1px rule, pinned by the suite. */
  [data-portal] .mp-account:popover-open{position:fixed;inset:auto;top:71px;
    inset-inline-end:max(24px,calc((100% - var(--max)) / 2 + 24px));display:grid;gap:4px;
    width:max-content;min-width:220px;max-width:min(360px,calc(100% - 48px));height:auto;margin:0;padding:8px;
    border:1px solid var(--line-strong);border-radius:14px;background:var(--surface);color:var(--ink);
    box-shadow:0 10px 30px rgba(0,0,0,.28)}
  [data-portal] .mp-account:popover-open .mp-top-email{margin-bottom:4px;padding:6px 10px 10px;border-bottom:1px solid var(--line)}
}
/* «Пополнить». The QR box has a floor rather than a percentage width: below about
   160 CSS px a phone camera starts failing to resolve the code, and a misread
   receiver address is unrecoverable money. `max-width:100%` keeps that floor from
   becoming a source of horizontal page scroll on a 360 px screen — the box shrinks
   its padding, never its code. */
.mp-topup{display:grid;gap:16px}
.mp-topup-state{margin:0;justify-self:start;font-weight:600;border-color:var(--ui-accent);color:var(--ui-text)}
.mp-topup-instruction{margin:0;font-size:16px;line-height:1.5}
.mp-topup-note{margin:0;font-size:14px;color:var(--muted)}
.mp-topup-grid{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.mp-topup-qr{flex:0 0 auto}
.mp-qr{display:block;width:min(200px,100%);min-width:160px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff}
.mp-qr svg{display:block;width:100%;height:auto}
.mp-topup-fields{flex:1 1 260px;min-width:0;margin:0;display:grid;gap:6px}
.mp-topup-fields dt{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.mp-topup-fields dd{margin:0 0 12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
/* The address and the amount are selected and copied by hand when the clipboard is
   unavailable, so they wrap rather than overflow and stay selectable text. */
.mp-topup-value{display:inline-block;max-width:100%;overflow-wrap:anywhere;word-break:break-all;font-size:15px;padding:6px 8px;border-radius:8px;background:var(--surface-2);border:1px solid var(--line)}
.mp-topup-cents{font-weight:800;text-decoration:underline;text-underline-offset:3px}
.mp-topup-warning{margin:0;padding:10px 12px;border-left:3px solid var(--ui-warning);border-radius:8px;background:var(--ui-hover);font-size:14px;line-height:20px}
.mp-topup-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.mp-topup-actions form{margin:0}
.mp-topup-find{border-top:1px solid var(--line);padding-top:12px}
.mp-topup-find summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
.mp-topup-form{display:grid;gap:8px;max-width:420px}
.mp-topup-form label{font-size:14px;font-weight:600}
.mp-topup-form input{min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:16px;width:100%;box-sizing:border-box}
.mp-topup-form button{justify-self:start}
.mp-topup-before{display:grid;grid-template-columns:minmax(0,720px) minmax(220px,1fr);gap:20px;align-items:start}
.mp-topup-before>.mp-card{min-width:0}
.mp-topup-before .mp-topup-amount-form{max-width:720px}
.mp-topup-method{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 8px}
.mp-topup-method div,.mp-topup-summary dl div{min-width:0}
.mp-topup-method dt,.mp-topup-summary dt{font-size:12px;color:var(--muted)}
.mp-topup-method dd,.mp-topup-summary dd{margin:0;font-weight:600}
.mp-topup-presets{display:flex;flex-wrap:wrap;gap:8px}
.mp-topup-presets .mp-btn{min-height:44px}
.ui-shell .mp-topup-presets .mp-btn{border-color:var(--ui-border);background:var(--ui-hover);color:var(--ui-text);font-size:12px;font-weight:500}
.ui-shell .mp-topup-presets .mp-btn:hover{border-color:var(--ui-control)}
.ui-billing-form-title{margin:0 0 4px}
.ui-billing-form-actions{display:flex;justify-content:flex-start;margin-top:8px;padding-top:12px;border-top:1px solid var(--ui-border)}
.mp-topup-summary{display:grid;gap:12px}
.mp-topup-summary .mp-h2,.mp-topup-summary p{margin:0}
.mp-topup-summary-value{font-size:28px;font-weight:650;font-variant-numeric:tabular-nums}
.mp-topup-summary dl{display:grid;gap:8px;margin:0}
.mp-topup-summary dl div{display:flex;justify-content:space-between;gap:8px}
@media (max-width:850px){.mp-topup-before{grid-template-columns:minmax(0,1fr)}}
/* Every interactive element in the section clears the 44 px touch target,
   copy controls included. */
.mp-topup .mp-copy{min-height:44px}
/* Keep all five facts in the table from 721 px; below that the shared
   table rules turn every row into a labelled card. */
.mp-topup-history th,.mp-topup-history td{white-space:normal}
.mp-topup-transaction{display:inline-flex;align-items:center;gap:4px;max-width:100%}
.mp-topup-txid{white-space:nowrap;font-family:var(--mono);font-size:13px}
.mp-topup-history .mp-copy{min-width:44px;min-height:44px;padding:0}
@media(max-width:720px){
  .mp-topup-history td:last-child{display:block;text-align:left}
  .mp-topup-history td:last-child::before{display:block;margin-bottom:4px}
}
@media(min-width:721px){.mp-topup-history th,.mp-topup-history td{padding:10px 6px;font-size:13px}}
@media (max-width: 520px){
  .mp-topup-grid{gap:14px}
  .mp-topup-actions form{width:100%}
}
/* Organizations. The header's badge is hidden from screen readers, which hear
   the count in words beside it. The tab bar wraps rather than scrolls, so no
   tab is out of view on a phone. */
.mp-nav-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-inline-start:6px;padding:0 6px;border-radius:999px;background:var(--accent);color:var(--bg);font-size:12px;font-weight:700}
.mp-org-crumb{margin:0 0 6px;font-size:14px}
.mp-org-tabs{display:flex;flex-wrap:wrap;margin:0 0 24px}
.mp-org-block{margin:0 0 28px}
.mp-org-block .mp-sub,.mp-org-block .mp-secret{margin:0 0 12px}
.mp-member-role-inline{display:none}
.mp-member-actions-hint{display:none}
.mp-org-cards{list-style:none;margin:0;padding:0;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.mp-org-cards h3{margin:0 0 8px;font-size:17px}
.mp-org .mp-h1,.mp-org-email,.mp-org-cards h3{overflow-wrap:anywhere}
.mp-org-form{align-items:flex-end}
.mp-org summary{display:inline-flex;align-items:center;min-height:40px;cursor:pointer}
@media(max-width:1023px){.mp-org summary{min-height:44px}}
.mp-org-facts{display:grid;grid-template-columns:max-content 1fr;gap:8px 16px;margin:0 0 24px}
.mp-org-facts dd{margin:0}
@media(max-width:767px){
  .mp-org-facts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .mp-org [data-settings-keys] .ui-btn{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
}
/* Organization charts: each provider's series takes a token of the one theme,
   and its legend repeats it; the KPI figures and the top lists are cards that
   wrap. A wide table keeps its columns at every width and scrolls inside its
   own frame, never the page: below 720 px it does not stack into cards as the
   other tables do. */
.mp-chart-bar.is-openai{fill:var(--accent)}
.mp-chart-bar.is-anthropic{fill:var(--ok)}
.mp-chart-bar.is-zai{fill:var(--ink)}
.mp-chart-bar.is-other{fill:var(--faint)}
.mp-chart-legend{list-style:none;display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 0 0;padding:0;font-size:13px;color:var(--muted)}
.mp-chart-legend li{display:inline-flex;align-items:center;gap:6px}
.mp-chart-key{display:block;width:10px;height:10px;flex:none}
.mp-org-period{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 20px}
.mp-org-period .mp-seg{flex-wrap:wrap}
.mp-org-period .mp-sub{margin:0}
.mp-org-kpis{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));margin:0 0 28px}
.mp-org-kpis dt{margin:0 0 6px;font-size:13px;color:var(--muted)}
.mp-org-kpis dd{margin:0;font-size:22px;font-weight:600;overflow-wrap:anywhere}
.mp-org-tops{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));margin:0 0 28px}
.mp-org-tops .mp-h2{margin:0 0 10px;font-size:17px}
.mp-org-top{display:grid;gap:8px;margin:0;padding:0 0 0 20px}
.mp-org-top li{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
.mp-org-top .mp-org-email{flex:1 1 12ch;min-width:0}
.mp-org-note{margin:10px 0 0}
.mp-org-next{margin:12px 0 0}
.mp-sort{color:inherit;text-decoration:none}
.mp-sort:hover{color:var(--ink);text-decoration:underline}
[data-chart-table] summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer}
/* The OpenRouter savings estimate, on organization pages and the Overview:
   `.mp-amount`'s figure, but never one the currency control counts, since it
   is always dollars. */
.mp-savings-amount{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:clamp(26px,3vw,34px);font-weight:600;line-height:1.1;display:block;overflow-wrap:anywhere}
.mp-savings-days{margin-top:12px;font-size:14px;color:var(--muted)}
.mp-savings-days summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--ink)}
.mp-savings-days ol{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.mp-savings-days li{overflow-wrap:anywhere}
/* The Models table's image row names each rate: its class on a line of its
   own, which wraps, and the price beneath it, which does not. */
.mp-image-rates{display:block}.mp-image-rate{display:block;white-space:normal;color:var(--muted);font-size:13px}
/* The key form's "Paid by", shown to an organization's member: the caption
   beside its select on the form's one control line. A long organization name
   shrinks inside the select rather than widening the page; WebKit lets a
   narrowed select's option text overflow the page unless its paint is
   contained. */
.mp-inline-form>[data-payer-field]{flex-wrap:nowrap;min-width:0;max-width:100%}
.mp-inline-form>[data-payer-field]>span{flex:none;white-space:nowrap}
.mp-inline-form>[data-payer-field] select{width:auto;min-width:0;flex:0 1 auto;contain:paint}
@media (max-width: 720px){
.mp-table-wrap.mp-wide-wrap{overflow-x:auto;border:1px solid var(--line);background:var(--surface)}
.mp-table.mp-wide{display:table;width:100%}
.mp-table.mp-wide thead{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:nowrap;display:table-header-group}
.mp-table.mp-wide tbody{display:table-row-group}
.mp-table.mp-wide tfoot{display:table-footer-group}
.mp-table.mp-wide tr,.mp-table.mp-wide tbody tr,.mp-table.mp-wide tfoot tr{display:table-row;width:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent}
.mp-table.mp-wide th,.mp-table.mp-wide td,.mp-table.mp-wide tfoot th,.mp-table.mp-wide tfoot td{display:table-cell;width:auto;padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.mp-table.mp-wide .mp-right{text-align:right}
.mp-table.mp-wide td::before,.mp-table.mp-wide tfoot td::before{content:none}
.mp-table.mp-wide td:empty{display:table-cell}
.mp-table.mp-wide[data-members] td:first-child{position:sticky;left:0;z-index:2;min-width:190px;max-width:210px;white-space:normal;overflow-wrap:anywhere;background:var(--ui-surface)}
.mp-table.mp-wide[data-members] .mp-member-role-inline{display:block;margin-top:4px;color:var(--ui-text-2);font-size:12px;line-height:18px}
.mp-table.mp-wide[data-members] :is(th,td):nth-child(2){display:none}
.mp-table.mp-wide[data-members] td:last-child{position:sticky;right:0;z-index:2;min-width:100px;background:var(--ui-surface);box-shadow:-1px 0 var(--ui-border)}
.mp-member-actions-hint{display:block;margin:0 0 8px;color:var(--ui-text-2);font-size:12px;line-height:18px}
@media(max-width:480px){
  .mp-table.mp-wide[data-members] td:first-child{position:static;min-width:260px;max-width:280px}
  .mp-table.mp-wide[data-members] .mp-org-email{text-wrap:balance}
  .mp-table.mp-wide[data-members] td:last-child{position:static;box-shadow:none}
}
}

/* The shell: a 64px top bar and a 48px section bar, each including a 1px rule.
   Native popovers around one copy of each item: from 1024px the top-bar menu
   and the section list stand in their bars and only the switcher and the
   account open; below, the menu and the section list open as panels under the
   bars. Without popover support every item stands in its bar and bars wrap. */
.ui-shell{container-type:inline-size;min-height:100vh;background:var(--ui-bg);color:var(--ui-text);font-size:14px;line-height:20px}
/* The older portal controls share the same palette until their markup is
   replaced. Keep these aliases inside customer pages, away from the site. */
.ui-shell,.ui-auth{
  --bg:var(--ui-bg);--surface:var(--ui-surface);--surface-2:var(--ui-hover);
  --field:var(--ui-bg);--hover:var(--ui-hover);--ink:var(--ui-text);
  --muted:var(--ui-text-2);--faint:var(--ui-text-2);
  --line:var(--ui-border);--line-strong:var(--ui-control);
  --accent:var(--ui-text);--accent-quiet:var(--ui-text-2);
  --ok:var(--ui-accent);--danger:var(--ui-error);
  --btn-ink-fg:var(--ui-bg);--btn-ink-hover:var(--ui-text-2)
}
.ui-shell .mp-card,.ui-auth .mp-card{padding:16px;border-color:var(--ui-border);border-radius:10px;background:var(--ui-surface)}
.ui-shell .mp-table-wrap{border-color:var(--ui-border);border-radius:10px;background:var(--ui-surface)}
.ui-shell .mp-table thead th{border-color:var(--ui-border);background:var(--ui-hover);color:var(--ui-text-2);font-size:12px;line-height:18px}
.ui-shell .mp-table :is(th,td){border-color:var(--ui-border);padding:10px 12px;font-size:14px;line-height:20px}
.ui-shell .mp-table tfoot :is(th,td){background:var(--ui-hover)}
.ui-shell .mp-sub{color:var(--ui-text-2);font-size:14px;line-height:20px}
.ui-shell .mp-input,.ui-shell .mp-topup-form input{box-sizing:border-box;min-height:44px;border-color:var(--ui-control);border-radius:8px;background:var(--ui-bg);color:var(--ui-text);font-size:14px;line-height:20px}
.ui-shell .mp-btn{min-height:44px;padding:0 16px;border-color:var(--ui-control);border-radius:8px;background:transparent;color:var(--ui-text);font-size:14px;line-height:20px;font-weight:500}
.ui-shell .mp-btn.is-primary{border-color:var(--ui-text);background:var(--ui-text);color:var(--ui-bg)}
.ui-shell .mp-btn.is-danger{border-color:var(--ui-error);color:var(--ui-error)}
.ui-shell .mp-tag.is-active{border-color:var(--ui-accent);color:var(--ui-accent)}
.ui-shell .ui-badge.mp-tag{border-color:var(--ui-border);border-radius:999px;background:transparent;color:var(--ui-text-2);font-size:12px;line-height:20px}
.ui-shell .ui-badge.is-success.mp-tag{border-color:var(--ui-accent);color:var(--ui-accent)}
.ui-shell .mp-status-dot{background:var(--ui-accent)}
.ui-shell .mp-topup-instruction{font-size:14px;line-height:20px}
.ui-shell .mp-topup-fields dt{font-size:12px;line-height:18px;color:var(--ui-text-2)}
.ui-shell .mp-topup-value{font-size:14px;background:var(--ui-hover);border-color:var(--ui-border)}
.ui-shell .ui-section-item[aria-current="page"]::after{background:var(--ui-text)}
.ui-shell #ui-keys .mp-table :is(th,td){padding:6px 10px}
.ui-shell #ui-keys .mp-key-actions>summary{width:40px;height:40px}
.ui-shell .mp-portal-models .mp-id{min-height:28px;gap:4px}
.ui-shell .mp-portal-models .mp-copy-id{width:28px;height:28px}
.ui-shell .mp-portal-models :is(th,td){padding:6px 8px}
.ui-shell .mp-portal-models thead th{padding:5px 8px;line-height:18px}
.ui-shell .mp-portal-models .mp-model-name{line-height:20px}
.ui-shell .mp-portal-models .mp-model-identity code{line-height:18px}
.ui-shell :where(a,button,summary,input,select,textarea,[tabindex]):focus-visible,
.ui-auth :where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--ui-text);outline-offset:2px}
@media (min-width:1024px){.ui-shell .mp-input,.ui-shell .mp-topup-form input,.ui-shell .mp-btn{min-height:40px}}
@media (max-width:1023px){.ui-shell .mp-portal-models .mp-id{min-height:44px}.ui-shell .mp-portal-models .mp-copy-id{width:44px;height:44px}}
.ui-shell .mp-h1{font-size:30px;line-height:38px}
.ui-shell .mp-h2{font-size:18px;line-height:26px}
.ui-topbar,.ui-sectionbar{background:var(--ui-surface);border-bottom:1px solid var(--ui-border)}
.ui-topbar{height:64px}
.ui-sectionbar{height:48px}
.ui-bar-inner{display:flex;flex-wrap:wrap;align-items:center;gap:12px;max-width:1280px;margin:0 auto;padding:0 32px}
.ui-topbar .ui-bar-inner{height:63px;min-height:0}
.ui-sectionbar .ui-bar-inner{height:47px;min-height:0}
.ui-topbar .mp-lang-trigger{min-height:30px}
:is(.ui-switcher-toggle,.ui-topmenu-toggle,.ui-account-toggle,.ui-sections-toggle){display:inline-flex;align-items:center;
  justify-content:center;gap:8px;flex:none;min-width:40px;min-height:40px;padding:0 10px;border:1px solid transparent;
  border-radius:8px;background:transparent;color:var(--ui-text);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
:is(.ui-switcher-toggle,.ui-topmenu-toggle,.ui-account-toggle,.ui-sections-toggle):hover{background:var(--ui-hover)}
.ui-switcher-toggle{flex:0 1 auto;min-width:0;max-width:280px;border-color:var(--ui-control)}
.ui-shell .mp-input:not(:focus),.ui-shell .mp-topup-form input:not(:focus),
.ui-shell .mp-btn:not(.is-primary):not(.is-ghost):not(:hover),
.ui-shell .mp-copy-id:not(.is-copied):not(:hover){border-color:var(--ui-control)}
.ui-switcher-toggle:hover{border-color:var(--ui-border-strong)}
.ui-switcher-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ui-account-toggle{padding:0;border-radius:999px}
.ui-avatar{display:inline-grid;place-items:center;flex:none;width:26px;height:26px;border:1px solid var(--ui-border-strong);
  border-radius:999px;background:var(--ui-hover);font-size:12px;font-weight:600;line-height:1}
.ui-chevron{flex:none;color:var(--ui-text-2)}
.ui-topbar-link{display:inline-flex;align-items:center;min-height:40px;padding:0 10px;border-radius:8px;color:var(--ui-text-2);
  font-size:14px;font-weight:500}
.ui-topbar-link:hover{background:var(--ui-hover);color:var(--ui-text)}
.ui-topmenu,.ui-account{display:contents}
.ui-switcher-toggle,.ui-topmenu-toggle,.ui-account-toggle,.ui-sections-toggle{display:none}
.ui-sections{display:block;position:static;inset:auto;flex:1 1 auto;min-width:0;width:auto;height:auto;margin:0;padding:0;border:0;
  background:none;color:inherit;overflow-x:auto;scrollbar-width:none}
.ui-section-list{display:flex;gap:4px;margin:0;padding:0;list-style:none}
.ui-section-item{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:47px;padding:0 12px;
  color:var(--ui-text-2);font-size:14px;font-weight:500;white-space:nowrap}
.ui-section-item:hover,.ui-section-item[aria-current="page"]{color:var(--ui-text)}
.ui-section-item[aria-current="page"]{font-weight:600}
.ui-section-item[aria-current="page"]::after{content:"";position:absolute;inset:auto 12px 0;height:2px;background:var(--ui-accent)}
@media (min-width:1024px) and (max-width:1199px){
  .ui-section-list{gap:2px}
  .ui-section-item{padding-inline:5px}
  .ui-section-item[aria-current="page"]::after{inset-inline:5px}
}
/* Each label also lays out its text at the current item's weight, unseen and
   unread, so the heavier current item is no wider than it is otherwise. */
.ui-section-label{display:inline-flex;flex-direction:column}
.ui-section-label::after{content:attr(data-label);content:attr(data-label) / "";height:0;overflow:hidden;visibility:hidden;
  font-weight:600;pointer-events:none;user-select:none}
.ui-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border:1px solid var(--ui-border-strong);
  border-radius:999px;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ui-text)}
.ui-sectionbar-end{display:flex;align-items:center;gap:12px;flex:none;margin-inline-start:auto}
.ui-balance{margin:0;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ui-menu-title{margin:0;padding:6px 10px;color:var(--ui-text-2);font-size:12px}
.ui-menu-list{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;margin:0;padding:0;list-style:none}
.ui-menu-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:36px;padding:0 10px;
  border:0;border-radius:8px;background:none;color:var(--ui-text);font:inherit;font-size:14px;text-align:start;cursor:pointer}
.ui-menu-item:hover,.ui-menu-item[aria-current]{background:var(--ui-hover)}
.ui-menu-item[aria-current]{font-weight:600}
.ui-menu-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ui-menu-meta{flex:none;color:var(--ui-text-2);font-size:12px;font-weight:400}
.ui-account-email{margin:0;padding:6px 10px 10px;color:var(--ui-text-2);font-size:14px;overflow-wrap:anywhere}
@supports selector(:popover-open){
  .ui-bar-inner{flex-wrap:nowrap}
  .ui-topbar{position:sticky;top:0;z-index:50}
  .ui-sectionbar{position:sticky;top:64px;z-index:49}
  .ui-switcher-toggle,.ui-account-toggle{display:inline-flex}
  .ui-account:not(:popover-open){display:none}
  /* Open at any width: no script closes a menu across 1024px. */
  .ui-menu:popover-open{position:fixed;inset:auto;top:70px;display:grid;grid-template-columns:minmax(0,1fr);gap:4px;
    width:max-content;min-width:220px;max-width:min(360px,calc(100% - 32px));height:auto;max-height:calc(100% - 86px);
    margin:0;padding:6px;overflow-y:auto;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);
    color:var(--ui-text)}
  /* A menu hangs from its control's edge. One that would come within 16px
     of the screen's edge there keeps to the bar's content edge, as every
     menu does where anchors are not supported. */
  .ui-switcher:popover-open{inset-inline-start:max(32px,calc((100% - 1280px) / 2 + 32px));margin-inline-end:16px}
  .ui-account:popover-open{inset-inline-end:max(32px,calc((100% - 1280px) / 2 + 32px))}
  @supports (anchor-name:--ui-switcher){
    .ui-switcher-toggle{anchor-name:--ui-switcher}
    .ui-account-toggle{anchor-name:--ui-account}
    .ui-switcher:popover-open{position-anchor:--ui-switcher;inset-inline-start:anchor(start);
      position-try-fallbacks:--ui-bar-start}
    .ui-account:popover-open{position-anchor:--ui-account;inset-inline-end:anchor(end)}
  }
  .ui-account:popover-open .ui-account-email{margin-bottom:4px;border-bottom:1px solid var(--ui-border)}
  .ui-topbar-link{margin-inline-start:auto}
  @container (max-width: 1023px){
    .ui-bar-inner{gap:8px;padding-inline:16px}
    :is(.ui-switcher-toggle,.ui-topmenu-toggle,.ui-sections-toggle,.ui-menu-item){min-height:44px}
    .ui-topmenu-toggle{display:inline-flex;min-width:44px;margin-inline-start:auto}
    .ui-sections-toggle{display:inline-flex;flex:0 1 auto;min-width:0;padding:0 8px}
    .ui-sections-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .ui-switcher-toggle{padding:0 8px}
    .ui-switcher-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
    .ui-account-toggle,.ui-topmenu:not(:popover-open),.ui-sections:not(:popover-open){display:none}
    .ui-account:not(:popover-open){display:contents}
    /* The panels sit under the bars: 64px, and 112px with the section bar. */
    :is(.ui-topmenu,.ui-sections):popover-open{position:fixed;inset:64px 0 0;display:flex;flex-direction:column;
      align-items:stretch;gap:2px;width:auto;height:auto;margin:0;padding:8px 16px 24px;overflow-y:auto;
      overscroll-behavior:contain;border:0;background:var(--ui-surface);color:var(--ui-text)}
    .ui-sections:popover-open{inset:112px 0 0}
    .ui-topmenu:popover-open{
      .ui-topbar-link,.mp-lang-trigger{justify-content:flex-start;width:100%;min-height:44px;margin:0;padding:0 14px;
        border:0;border-radius:8px;font-size:15px;font-weight:500}
      .mp-prefs{position:static;display:grid;gap:2px;width:auto;margin:8px 0 0;padding:8px 0 0;border:0;
        border-top:1px solid var(--ui-border);border-radius:0;background:none;color:inherit}
      .mp-lang-list{position:static;padding:0;border:0;box-shadow:none}
      .mp-lang-option{min-height:44px;padding-inline-start:36px;font-size:15px}
      .mp-lang+.mp-currency{margin:0;padding:0;border:0}
      .ui-account-email{margin-top:8px;padding:12px 14px 4px;border-top:1px solid var(--ui-border)}
      .ui-menu-item{padding:0 14px;font-size:15px}
    }
    .ui-sections:popover-open{
      .ui-section-list{flex-direction:column;gap:2px}
      .ui-section-item{width:100%;min-height:44px;padding:0 14px;border-radius:8px;font-size:15px}
      .ui-section-item[aria-current="page"]{background:var(--ui-hover)}
      .ui-section-item[aria-current="page"]::after{inset:10px auto 10px 0;width:2px;height:auto}
    }
  }
}
@media (max-width: 767px){
  .ui-bar-inner{gap:8px;padding:0 16px}
  .ui-sectionbar-end{gap:8px}
  .ui-switcher:popover-open{position-try-fallbacks:--ui-bar-start-phone}
  @supports not (anchor-name:--ui-switcher){
    .ui-switcher:popover-open{inset-inline-start:16px}
  }
}
@media (max-width: 359px){
  .ui-sectionbar .ui-bar-inner{gap:4px;padding-inline:8px}
  .ui-sectionbar-end{gap:4px}
  .ui-sections-toggle{padding-inline:4px}
}
@position-try --ui-bar-start{inset-inline-start:max(32px,calc((100% - 1280px) / 2 + 32px))}
@position-try --ui-bar-start-phone{inset-inline-start:16px}
/* A region being replaced keeps its content and geometry, dimmed under a
   skeleton sheen, and takes no input until the new content arrives; a region
   whose update failed keeps the old content under a stale note with Retry. */
[data-swap]{position:relative}
[data-swap][aria-busy="true"]{pointer-events:none}
[data-swap][aria-busy="true"]>*{opacity:.45}
[data-swap][aria-busy="true"]::after{content:"";position:absolute;inset:0;border-radius:12px;
  background:linear-gradient(90deg,transparent 0,var(--ui-hover) 50%,transparent 100%);background-size:200% 100%;opacity:.6}
[data-swap].is-stale>:not([data-swap-error]){opacity:.6}
.ui-stale{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 16px;
  padding:10px 14px;border:1px solid var(--ui-warning);border-radius:10px;background:var(--ui-surface);color:var(--ui-text);font-size:14px}
.ui-stale .mp-btn{min-height:36px;padding:0 14px}
/* A form whose request is in flight. */
[aria-disabled="true"].is-busy{cursor:progress;opacity:.7}
@media (prefers-reduced-motion: no-preference){
  [data-swap]>*{transition:opacity .15s ease}
  [data-swap][aria-busy="true"]::after{animation:ui-sheen 1.2s linear infinite}
}
@keyframes ui-sheen{from{background-position:100% 0}to{background-position:-100% 0}}
/* Shared components: buttons, fields, field groups, tabs and the filter
   bar. Controls are 40px tall from 1024px and 44px below, where they are
   touch targets; inputs and buttons take an 8px radius. */
.ui-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;
  border:1px solid var(--ui-control);border-radius:8px;background:transparent;color:var(--ui-text);font:inherit;
  font-size:14px;font-weight:500;line-height:20px;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer}
.ui-btn:hover{border-color:var(--ui-border-strong);background:var(--ui-hover)}
.ui-btn.is-primary{border-color:var(--ui-text);background:var(--ui-text);color:var(--ui-bg)}
.ui-btn.is-primary:hover{border-color:var(--ui-text-2);background:var(--ui-text-2)}
.ui-btn.is-danger{border-color:var(--ui-error);color:var(--ui-error)}
.ui-btn.is-danger:hover{background:var(--ui-error);color:var(--ui-bg)}
.ui-btn.is-ghost{border-color:transparent;color:var(--ui-text-2)}
.ui-btn.is-ghost:hover{background:var(--ui-hover);color:var(--ui-text)}
.ui-btn.is-small{padding:0 12px;font-size:13px}
.ui-btn[aria-disabled="true"],.ui-btn:disabled{cursor:not-allowed;opacity:.6}
.ui-icon-btn{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:1px solid transparent;
  border-radius:8px;background:transparent;color:var(--ui-text-2);cursor:pointer}
.ui-icon-btn:hover{background:var(--ui-hover);color:var(--ui-text)}
.ui-field{display:grid;gap:6px;min-width:0}
.ui-label{color:var(--ui-text);font-size:14px;font-weight:500;line-height:20px}
.ui-input,.ui-select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:0 12px;border:1px solid var(--ui-control);
  border-radius:8px;background:var(--ui-bg);color:var(--ui-text);font:inherit;font-size:14px;line-height:20px}
.ui-select{padding-inline-end:32px;appearance:none;contain:paint;
  background-image:linear-gradient(45deg,transparent 50%,var(--ui-text-2) 50%),linear-gradient(135deg,var(--ui-text-2) 50%,transparent 50%);
  background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px;background-repeat:no-repeat}
.ui-input:hover,.ui-select:hover{border-color:var(--ui-text-2)}
.ui-input::placeholder{color:var(--ui-text-2)}
.ui-field.is-invalid :is(.ui-input,.ui-select){border-color:var(--ui-error)}
.ui-field-help,.ui-field-error{margin:0;font-size:12px;line-height:18px}
.ui-field-help{color:var(--ui-text-2)}
.ui-field-error{color:var(--ui-error)}
.ui-fieldset{display:grid;gap:16px;min-width:0;margin:0;padding:16px;border:1px solid var(--ui-border);border-radius:10px}
.ui-legend{padding:0 4px;color:var(--ui-text);font-size:14px;font-weight:600}
.ui-tabs{max-width:100%;overflow-x:auto;border-bottom:1px solid var(--ui-border)}
.ui-tabs ul{display:flex;gap:4px;margin:0;padding:0;list-style:none}
.ui-tab{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;color:var(--ui-text-2);
  font-size:14px;font-weight:500;text-decoration:none;white-space:nowrap}
.ui-tab:hover,.ui-tab[aria-current="page"]{color:var(--ui-text)}
.ui-tab[aria-current="page"]::after{content:"";position:absolute;inset:auto 12px -1px;height:2px;background:var(--ui-text)}
.ui-filterbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0 0 16px}
.ui-filterbar>.ui-field{flex:1 1 200px}
.ui-filterbar>.ui-field.is-narrow{flex:0 1 180px}
@media (min-width: 1024px){
  .ui-btn,.ui-input,.ui-select{min-height:40px}
  .ui-btn.is-small{min-height:36px}
  .ui-icon-btn{width:40px;height:40px}
}
@media (max-width: 767px){
  .ui-filterbar>*,.ui-filterbar>.ui-field.is-narrow{flex:1 1 100%}
  .ui-filterbar>.ui-btn{width:100%}
}

/* KPI cards. */
.ui-stat{display:flex;flex-direction:column;gap:4px;min-width:0;padding:16px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface)}
.ui-stat-label,.ui-stat-meta{margin:0;color:var(--ui-text-2);font-size:12px;line-height:18px}
.ui-shell .ui-stat-value{margin:0;font-size:24px;line-height:32px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ui-stat-unavailable{margin:0;color:var(--ui-text-2);font-size:14px;line-height:20px}

/* Charts. A series is a class that sets the colour of its marks and legend
   keys. The eight hues are one set, ordered so neighbours in a stack stay
   apart for colour-blind readers, each at least 3:1 on the surface; seven
   name the period's top models, the eighth is spare, and "Other" is neutral. */
.ui-series-1{--ui-series:#3987E5}
.ui-series-2{--ui-series:#D95926}
.ui-series-3{--ui-series:#199E70}
.ui-series-4{--ui-series:#C98500}
.ui-series-5{--ui-series:#D55181}
.ui-series-6{--ui-series:#008300}
.ui-series-7{--ui-series:#9085E9}
.ui-series-8{--ui-series:#E66767}
.ui-series-other{--ui-series:#71717A}
.ui-chart{min-width:0;margin:0;padding:16px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface)}
.ui-chart-title{margin:0 0 12px;font-size:14px;line-height:20px;font-weight:600}
/* The value labels sit beside the grid: their column is the plot's height
   plus one line, so each label's middle meets its line. */
.ui-chart-plot{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:start}
.ui-chart-y{display:flex;flex-direction:column;justify-content:space-between;height:176px;margin:0;padding:0;list-style:none;
  color:var(--ui-text-2);font-size:12px;line-height:16px;text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}
.ui-chart-svg{display:block;overflow:visible}
.ui-chart-grid,.ui-chart-base{stroke-width:1px;shape-rendering:crispEdges}
.ui-chart-grid{stroke:var(--ui-border)}
.ui-chart-base{stroke:var(--ui-border-strong)}
.ui-chart-hit{fill:transparent}
.ui-chart-hit:hover{fill:var(--ui-hover)}
.ui-chart-mark{fill:var(--ui-series,var(--ui-control))}
.ui-chart-tick{fill:var(--ui-text-2);font-size:12px;font-variant-numeric:tabular-nums}
.ui-chart-legend{display:flex;flex-wrap:wrap;gap:4px 16px;margin:12px 0 0;padding:0;list-style:none;color:var(--ui-text-2);font-size:12px;line-height:18px}
.ui-chart-legend li{display:inline-flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}
.ui-chart-key{flex:none;width:10px;height:10px;border-radius:2px;background:var(--ui-series)}
.ui-shares{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}
.ui-share{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:start;font-size:14px;line-height:20px}
.ui-share-name{min-width:0;overflow-wrap:anywhere}
.ui-share-value{color:var(--ui-text-2);font-variant-numeric:tabular-nums;text-align:end}
.ui-share-track{display:block;grid-column:1/-1;border-radius:2px;background:var(--ui-hover)}
.ui-share-rest summary{cursor:pointer}
.ui-overview-charts,.ui-usage-charts{align-items:start}
.ui-share-rest ol{display:flex;flex-direction:column;gap:4px;margin:8px 0 0;padding:0;list-style:none;color:var(--ui-text-2);font-size:12px;line-height:18px}
.ui-share-rest li{display:flex;justify-content:space-between;gap:12px}

/* Tables. The frame scrolls within the page in both directions, holding its
   header row and first column in view; numbers align right on tabular
   figures, and the totals row closes the table. */
.ui-table-wrap{max-width:100%;max-height:min(70vh,720px);overflow:auto;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface)}
.ui-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;line-height:20px}
.ui-table :is(th,td){padding:10px 12px;border-bottom:1px solid var(--ui-border);background:var(--ui-surface);text-align:start;vertical-align:top}
.ui-table thead th{position:sticky;top:0;z-index:2;color:var(--ui-text-2);font-size:12px;font-weight:500;line-height:18px;white-space:nowrap}
.ui-table tr>:first-child{position:sticky;left:0;z-index:1}
.ui-table thead tr>:first-child{z-index:3}
.ui-table tbody tr:last-child>*{border-bottom:0}
.ui-table tfoot :is(th,td){border-top:1px solid var(--ui-border-strong);border-bottom:0;font-weight:600}
.ui-table .ui-num{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}
.ui-row-detail>summary{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--ui-text-2);font-size:12px;cursor:pointer;list-style:none}
.ui-row-detail>summary::-webkit-details-marker{display:none}
.ui-row-detail>summary::before{content:"";flex:none;border-block:4px solid transparent;border-inline-start:5px solid currentColor}
.ui-row-detail[open]>summary::before{transform:rotate(90deg)}
.ui-row-detail-body{display:flex;flex-direction:column;gap:2px;padding-bottom:4px;color:var(--ui-text-2);font-size:12px;line-height:18px}
@media (min-width:1024px){.ui-row-detail>summary{min-height:28px}}
@media (max-width:720px){
  .ui-table-wrap.is-cards{max-height:none;overflow:visible;border:0;border-radius:0;background:none}
  .ui-table-wrap.is-cards .ui-table,.ui-table-wrap.is-cards .ui-table :is(tbody,tfoot,tr){display:block}
  .ui-table-wrap.is-cards .ui-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .ui-table-wrap.is-cards .ui-table tr{margin-bottom:12px;overflow:hidden;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface)}
  .ui-table-wrap.is-cards .ui-table :is(th,td){position:static;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;border-top:0;border-bottom:1px solid var(--ui-border);text-align:end}
  .ui-table-wrap.is-cards .ui-table :is(th,td)[data-label]::before{content:attr(data-label);color:var(--ui-text-2);font-weight:400;text-align:start}
  .ui-table-wrap.is-cards .ui-table tr>:last-child{border-bottom:0}
}

/* Status badges: the words say the state, the dot repeats it in colour. */
.ui-badge{display:inline-flex;align-items:center;gap:6px;flex:none;max-width:100%;padding:0 8px;border:1px solid var(--ui-border-strong);border-radius:999px;
  color:var(--ui-text);font-size:12px;font-weight:500;line-height:20px;white-space:nowrap}
.ui-badge::before{content:"";flex:none;width:6px;height:6px;border-radius:999px;background:var(--ui-badge,var(--ui-text-2))}
.ui-badge.is-success{--ui-badge:var(--ui-accent)}
.ui-badge.is-warning{--ui-badge:var(--ui-warning)}
.ui-badge.is-error{--ui-badge:var(--ui-error)}

/* Entity rows. */
.ui-entities{display:flex;flex-direction:column;margin:0;padding:0;list-style:none;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface)}
.ui-entity{display:flex;align-items:center;gap:12px;min-width:0;padding:12px 16px;border-bottom:1px solid var(--ui-border)}
.ui-entity:last-child{border-bottom:0}
.ui-entity>.ui-avatar{width:32px;height:32px;font-size:13px}
.ui-entity-main{display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
.ui-entity-name{flex:0 1 auto;min-width:0;max-width:100%;margin:0;overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.ui-entity-meta{flex-basis:100%;margin:0;color:var(--ui-text-2);font-size:12px;line-height:18px;font-variant-numeric:tabular-nums}
.ui-entity-actions{display:flex;flex:none;align-items:center;gap:8px}
.ui-entity-actions:empty{display:none}
@media (max-width:720px){
  .ui-entity{flex-wrap:wrap}
  .ui-entity-main{flex-basis:calc(100% - 44px)}
  .ui-entity-actions{flex-basis:100%;flex-wrap:wrap}
}

/* Empty states, placeholders and results. */
.ui-empty{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:32px 24px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface)}
.ui-empty-title{margin:0;font-size:18px;line-height:26px;font-weight:600}
.ui-empty-text{max-width:60ch;margin:0;color:var(--ui-text-2);font-size:14px;line-height:20px}
.ui-empty>:is(.ui-btn,a,form){margin-top:8px}
.ui-skeleton{display:flex;flex-direction:column;gap:12px;padding:16px}
.ui-skeleton>span{display:block;height:12px;border-radius:6px;background:var(--ui-hover)}
.ui-skeleton>span:nth-child(2){width:80%}
.ui-skeleton>span:nth-child(3){width:55%}
@media (prefers-reduced-motion:no-preference){
  .ui-skeleton>span{background:linear-gradient(90deg,var(--ui-hover) 0,var(--ui-border) 50%,var(--ui-hover) 100%);background-size:200% 100%;animation:ui-sheen 1.2s linear infinite}
}
.ui-toast{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--ui-border);border-inline-start:3px solid var(--ui-toast,var(--ui-accent));
  border-radius:10px;background:var(--ui-surface);color:var(--ui-text);font-size:14px;line-height:20px}
.ui-toast>svg{flex:none;margin-top:2px;color:var(--ui-toast,var(--ui-accent))}
.ui-toast.is-warning{--ui-toast:var(--ui-warning)}
.ui-toast.is-error{--ui-toast:var(--ui-error)}
.ui-toast-text{flex:1 1 auto;min-width:0;margin:0}

/* Copy fields: the identifier shortened in its middle, shown whole while the
   field holds focus; the control swaps its icon while it reports a copy. */
.ui-copy-field{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-width:0;vertical-align:middle}
.ui-copy-value{min-width:0;font-family:var(--mono);font-size:13px;overflow-wrap:anywhere}
.ui-copy-field:focus-within .ui-copy-value>[aria-hidden="true"]{display:none}
.ui-copy-field:focus-within .ui-copy-value>.mp-visually-hidden{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}
.ui-copy .ui-copy-check,.ui-copy.is-copied .ui-copy-icon{display:none}
.ui-copy.is-copied .ui-copy-check{display:inline;color:var(--ui-accent)}

/* Dialogs. One the script opens is modal above an inert page; one the
   address opened stays a panel in the page while no script runs. Below
   768px a modal fills the screen. */
.ui-dialog{width:min(480px,calc(100% - 32px));max-height:calc(100% - 32px);padding:0;overflow:auto;border:1px solid var(--ui-border);border-radius:12px;
  background:var(--ui-surface);color:var(--ui-text)}
.ui-dialog::backdrop{background:rgba(0,0,0,.6)}
.ui-dialog[open]:not(:modal){position:static;width:auto;max-width:640px;max-height:none;margin:0 0 24px}
.ui-dialog.is-drawer:modal{width:min(480px,100%);height:100%;max-height:none;margin:0 0 0 auto;border-radius:12px 0 0 12px}
.ui-dialog.is-drawer:modal{display:flex;flex-direction:column}
.ui-dialog.is-drawer:modal .ui-dialog-body{flex:1;min-height:0}
.ui-dialog.is-drawer:modal .mp-key-create-form{flex:1}
.ui-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 0 24px}
.ui-dialog-title{min-width:0;margin:0;font-size:18px;line-height:26px;font-weight:600;overflow-wrap:anywhere}
.ui-dialog-body{display:flex;flex-direction:column;gap:16px;padding:16px 24px 24px}
@media (min-width:768px){.ui-dialog.is-drawer:modal{min-width:400px}}
@media (max-width:767px){
  .ui-dialog:modal,.ui-dialog.is-drawer:modal{width:100%;max-width:none;height:100%;max-height:none;margin:0;border:0;border-radius:0}
}

/* Confirmations: the explanation and the form under a disclosure, or in a
   modal once the script runs. Only the action itself wears the error colour. */
.ui-confirm{display:inline-block;max-width:100%}
.ui-confirm[open]{display:block}
.ui-confirm>summary{list-style:none}
.ui-confirm>summary::-webkit-details-marker{display:none}
.ui-confirm-panel{display:flex;flex-direction:column;gap:12px;margin-top:8px;padding:16px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface)}
.ui-dialog.is-confirm .ui-confirm-panel{margin:0;padding:24px;border:0;border-radius:0;background:none}
.ui-confirm-panel>form{display:flex;flex-direction:column;gap:12px}
.ui-confirm-title{margin:0;font-size:16px;line-height:24px;font-weight:600;overflow-wrap:anywhere}
.ui-confirm-panel p{margin:0;color:var(--ui-text-2);font-size:14px;line-height:20px}
.ui-confirm-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
@media (max-width:767px){.ui-confirm-actions>*{flex:1 1 100%}}

/* Personal Overview: four equal KPIs, a two-thirds daily chart and a
   one-third share chart. The header wraps before its actions crowd the period. */
.ui-overview-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:24px}
.ui-overview-header>div:first-child{min-width:0;flex:1 1 220px}
.ui-overview-actions{display:flex;flex-wrap:wrap;gap:8px}
.ui-overview-stats,.ui-usage-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.ui-overview-stats .ui-stat,.ui-usage-stats .ui-stat{min-height:0}
.ui-overview-stats .ui-stat .ui-stat-meta,.ui-usage-stats .ui-stat .ui-stat-meta{margin-top:auto}
.ui-open-request{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:-8px 0 16px;padding:10px 14px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);font-size:12px;line-height:18px}
.ui-open-request h2,.ui-open-request p{margin:0;font-size:inherit;font-weight:500}
.ui-open-request p{font-weight:400}
.ui-open-request a{margin-inline-start:auto}
.ui-overview-charts{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;margin-bottom:24px}
.ui-overview-savings{padding:20px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface)}
.ui-overview-savings .mp-stat-note{margin-top:8px}
.ui-overview-savings .mp-savings-days{margin-top:14px}
.ui-overview-savings .mp-savings-days h3{font-size:14px}
.ui-overview-error{margin:0 0 24px;color:var(--ui-text-2)}
@media(max-width:1023px){
  .ui-overview-stats,.ui-usage-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ui-overview-charts{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:767px){
  .ui-overview-header{align-items:stretch}
  .ui-overview-header .mp-seg{max-width:100%;overflow-x:auto}
  .ui-overview-actions{width:100%}
  .ui-overview-actions .ui-btn{flex:1 1 100%}
  .ui-overview-stats,.ui-usage-stats{grid-template-columns:minmax(0,1fr);gap:12px}
}

.ui-usage-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.ui-usage-timezone{align-self:center;color:var(--ui-text-2);font-size:12px;white-space:nowrap}
.ui-usage-tabs{margin-bottom:0}
.ui-usage-tabs{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}
.ui-usage-count{font-size:12px;line-height:18px;color:var(--ui-text-2);white-space:nowrap;padding:0 8px}
.ui-usage-summary{display:flex;flex-wrap:wrap;gap:4px 16px;margin:8px 0;color:var(--ui-text-2);font-size:12px;line-height:18px}
.ui-usage-summary strong{color:var(--ui-text);font-weight:600;font-variant-numeric:tabular-nums}
.ui-usage-scroll-hint{margin:0 0 6px;color:var(--ui-text-2);font-size:12px;line-height:18px}
[data-usage-table]{max-height:min(64vh,640px);overflow:auto}
[data-usage-table]::before{content:"";position:sticky;top:0;z-index:100;display:block;height:24px;margin-bottom:-24px;background:var(--ui-surface-2);pointer-events:none}
[data-usage-table] .mp-table{border-collapse:separate;border-spacing:0}
[data-usage-table] .mp-table thead{position:static;background:var(--ui-surface-2)}
[data-usage-table] .mp-table thead tr{position:sticky;top:0;z-index:10;background:var(--ui-surface-2);isolation:isolate}
[data-usage-table] .mp-table thead th{position:static;padding-top:28px;background:var(--ui-surface-2)}
@media(max-width:767px){
  #ui-usage .ui-filterbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:8px}
  #ui-usage .ui-filterbar>.ui-field{min-width:0}
  #ui-usage .ui-filterbar .mp-scope{grid-column:1/-1;margin:0}
  #ui-usage .ui-filterbar>.ui-btn{grid-column:1/-1;width:100%;min-width:0}
  #ui-usage .ui-usage-actions{margin-bottom:8px}
  #ui-usage .ui-usage-actions>*{flex:1 1 0;min-width:0}
  #ui-usage .mp-scope-note{margin-bottom:8px}
}
@media(max-width:359px){
  #ui-usage .ui-filterbar{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
}
@media(max-width:720px){
  [data-usage-table]{max-height:min(64vh,640px);border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface)}
  [data-usage-table] .mp-table{display:table;min-width:720px;width:100%}
  [data-usage-table] .mp-table thead{position:static;display:table-header-group;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}
  [data-usage-table] .mp-table tbody{display:table-row-group}
  [data-usage-table] .mp-table tfoot{display:table-footer-group}
  [data-usage-table] .mp-table tr,[data-usage-table] .mp-table tbody tr,[data-usage-table] .mp-table tfoot tr{display:table-row;width:auto;margin:0;padding:0;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;background:transparent}
  [data-usage-table] .mp-table th,[data-usage-table] .mp-table td,[data-usage-table] .mp-table tfoot th,[data-usage-table] .mp-table tfoot td{display:table-cell;width:auto;padding:10px 12px;text-align:left;white-space:nowrap}
  [data-usage-table] .mp-table td::before,[data-usage-table] .mp-table tfoot td::before{content:none}
  [data-usage-table] .mp-table .mp-right{text-align:right}
  [data-usage-table] .mp-table tr>:first-child{position:sticky;left:0;background:var(--ui-surface);z-index:1;max-width:190px;white-space:normal;overflow-wrap:anywhere}
  [data-usage-table] .mp-table thead th{position:static;background:var(--ui-surface-2)}
  [data-usage-table] .mp-table thead tr>:first-child{position:sticky;left:0;z-index:5;background:var(--ui-surface-2)}
}

/* Keep the header and totals outside the vertical scroller. The horizontal
   scroller still contains the whole table, so columns stay aligned. */
[data-usage-table]{max-height:none;overflow-x:auto;overflow-y:hidden}
[data-usage-table]::before{display:none}
[data-usage-table] .mp-table{display:block;min-width:900px;width:100%;border-collapse:separate}
[data-usage-table] .mp-table :is(thead,tbody,tfoot){display:block;width:100%}
[data-usage-table] .mp-table tbody{max-height:min(54vh,540px);overflow-y:auto;overflow-x:hidden}
[data-usage-table] .mp-table tr,[data-usage-table] .mp-table tbody tr,[data-usage-table] .mp-table tfoot tr{display:grid;width:100%;grid-template-columns:minmax(180px,2fr) repeat(5,minmax(92px,1fr)) minmax(130px,1fr);margin:0;padding:0;border:0;border-radius:0}
[data-usage-table="day"] .mp-table tr,[data-usage-table="day"] .mp-table tbody tr{grid-template-columns:minmax(110px,1fr) minmax(180px,2fr) repeat(5,minmax(92px,1fr)) minmax(130px,1fr)}
[data-usage-table] .mp-table :is(th,td),[data-usage-table] .mp-table tfoot :is(th,td){position:static;display:block;width:auto;min-width:0;padding:10px 12px;white-space:nowrap;background:var(--ui-surface);text-align:left}
[data-usage-table] .mp-table thead tr{position:static;isolation:auto}
[data-usage-table] .mp-table thead th{position:static;padding:10px 12px;background:var(--ui-surface-2);white-space:normal;overflow-wrap:anywhere}
[data-usage-table] .mp-table .mp-right{text-align:right}
.mp-cost-model{display:none}
@media(max-width:720px){
  [data-usage-table] .mp-table tr>:first-child,[data-usage-table] .mp-table thead tr>:first-child{position:static}
  [data-usage-table] .mp-cost-model{display:block;margin-bottom:4px;color:var(--ui-text-2);font-size:12px;line-height:18px;text-align:left;white-space:normal;overflow-wrap:anywhere}
}

.mp-portal-models .mp-price-unit{text-align:center}
.mp-model-identity{min-width:0;background:var(--surface);position:sticky;left:0;z-index:1}
.mp-model-name{display:block;font-weight:600;white-space:normal}
.mp-model-identity .mp-id{min-width:0}
.mp-model-identity code{font-size:12px;white-space:normal;overflow-wrap:anywhere}
.mp-image-detail summary{cursor:pointer;min-height:44px;display:flex;align-items:center;white-space:normal}
.mp-image-detail div{display:grid;gap:4px;font-size:13px;font-weight:400;white-space:normal}
.mp-badge-ok{display:inline-flex;align-items:center;gap:6px}
.mp-status-dot{width:7px;height:7px;border-radius:50%;background:var(--ok);flex:none}
.mp-model-status{display:inline-flex;align-items:center;gap:6px;color:var(--ui-text-2);font-size:12px;white-space:nowrap}
@media(max-width:720px){.mp-model-identity{position:static;text-align:left!important}.mp-model-identity::before{display:none}.mp-model-identity .mp-id{justify-content:flex-start}}

/* Organization list: content and the shared billing explanation. */
.mp-org-list-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,280px);gap:24px;align-items:start}
.mp-org-create-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px}
.mp-org-create-head p{margin:0;color:var(--ui-text-2);font-size:12px;line-height:18px}
.mp-org-create-head #org-create-cap{flex-basis:100%;text-align:right}
.mp-org-create-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.mp-org-search{display:flex;align-items:end;gap:8px;margin:0 0 16px}
.mp-org-search .ui-field{flex:1}
.mp-org-shared p{margin:8px 0 0;color:var(--ui-text-2)}
.ui-entity-name:focus{white-space:normal;overflow:visible;text-overflow:clip}
@media (max-width:767px){.mp-org-list-layout{grid-template-columns:minmax(0,1fr)}.mp-org-create-head{justify-content:flex-start}.mp-org-create-head #org-create-cap{text-align:left}}

@media (min-width:1024px){
  .mp-org-settings-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:16px 24px;align-items:start}
  .mp-org-settings-grid>[data-settings-name],.mp-org-settings-grid>[data-settings-keys],.mp-org-settings-grid>[data-settings-usage],.mp-org-settings-grid>.ui-confirm,.mp-org-settings-grid>[data-org-owner-note]{grid-column:1}
  .mp-org-settings-grid>[data-settings-balance],.mp-org-settings-grid>[data-settings-role]{grid-column:2}
  .mp-org-settings-grid>[data-settings-balance]{grid-row:1}
  .mp-org-settings-grid>[data-settings-role]{grid-row:2}
  .mp-org-settings-grid>.mp-org-block{margin:0}
}

@media(max-width:1023px){
  :is(.ui-shell,.ui-auth) a[href]{display:inline-flex;align-items:center;min-width:44px;min-height:44px;max-width:100%}
  :is(.ui-shell,.ui-auth) summary{min-width:44px;min-height:44px}
  .ui-shell .mp-copy-id{min-width:44px;min-height:44px}
  .ui-auth .mp-auth-top .mp-lang-trigger{min-height:44px}
}

/* Authentication cards use the portal palette and controls on all four
   anonymous account pages. The brand path and security forms stay shared. */
.ui-auth{grid-template-columns:minmax(0,1fr);background:var(--ui-bg);color:var(--ui-text)}
.ui-auth .mp-brand{color:var(--lp-text-primary)}
.ui-auth-panel{padding:32px;border-color:var(--ui-border);border-radius:10px;background:var(--ui-surface)}
.ui-auth .mp-auth-card h1{color:var(--ui-text);font-size:30px;line-height:38px}
.ui-auth .mp-auth-lead,.ui-auth .mp-auth-alt{color:var(--ui-text-2);font-size:14px;line-height:20px}
.ui-auth .mp-field>span{color:var(--ui-text);font-size:14px;line-height:20px}
.ui-auth .mp-hint{color:var(--ui-text-2)}
.ui-auth .mp-auth-meta a,.ui-auth .mp-auth-alt a{color:var(--ui-text-2)}
.ui-auth .mp-auth-meta a:hover,.ui-auth .mp-auth-alt a:hover{color:var(--ui-text)}
.ui-auth .mp-notice{border-color:var(--ui-border);border-radius:10px;background:var(--ui-hover);color:var(--ui-text)}
.ui-auth .mp-notice.is-error{border-left-color:var(--ui-error)}
.ui-auth .mp-notice.is-ok{border-left-color:var(--ui-accent)}
@media(max-width:720px){.ui-auth-panel{padding:24px 16px}}

/* Compact usage figures and one complete savings summary in every portal scope. */
.ui-shell .mp-savings-amount{color:var(--ui-text);font-size:24px;line-height:32px;display:flex;flex-wrap:wrap;column-gap:8px}
.ui-shell .mp-savings-percent{white-space:nowrap}
.ui-shell .mp-savings-percent.is-positive{color:var(--ui-accent)}
.ui-shell .ui-stat .mp-stat-note{margin-top:4px;font-size:12px;line-height:18px}
.ui-shell .ui-stat .mp-savings-days{font-size:12px;line-height:18px;min-width:0}
.ui-shell [data-tab-panel="teams"] .ui-team-actions{justify-content:flex-end}
.ui-shell [data-team-create]{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;margin-bottom:0}
.ui-shell [data-team-create] .mp-field{min-width:0}
.ui-shell [data-team-create] input{width:100%;min-width:0}
@media(max-width:767px){.ui-shell .ui-stat-value,.ui-shell .mp-savings-amount{font-size:20px;line-height:28px}}
/* Partner program (`/dashboard/partners`): the portal's cards, stats, fields and buttons. */
.ui-shell .mp-partner-state{margin:10px 0 0}
.ui-shell .mp-partner-alert{margin:0 0 16px}
.ui-shell .mp-partner-apply{max-width:640px}
.ui-shell .mp-partner-form{display:grid;gap:16px}
.ui-shell .mp-partner-form .mp-h2{margin:0}
.ui-shell textarea.ui-input{min-height:96px;padding:10px 12px;line-height:20px;resize:vertical}
.ui-shell .mp-partner-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:16px;margin:0 0 24px}
.ui-shell .mp-partner-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:16px;align-items:start;margin:0 0 24px}
.ui-shell .mp-partner-block{margin:0 0 24px}
.ui-shell .mp-partner-inline{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.ui-shell .mp-partner-inline .ui-field{flex:1 1 220px}
.ui-shell .mp-partner-divider{margin-top:16px;padding-top:16px;border-top:1px solid var(--ui-border)}
.ui-shell .mp-partner-meta{margin:12px 0 0;color:var(--ui-text-2);font-size:14px}
.ui-shell .mp-partner-meta strong{color:var(--ui-text)}
.ui-shell .mp-partner-clients{display:grid;gap:12px;margin:16px 0 0}
.ui-shell .mp-partner-client{padding:16px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-bg)}
.ui-shell .mp-partner-client-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}
.ui-shell .mp-partner-client-head h3{margin:0;font-size:15px;font-weight:600;overflow-wrap:anywhere}
.ui-shell .mp-partners .ui-entity:last-child{border-bottom:0}
/* Partner landing (`/dashboard/partners` before an application): hero with a CSS-only 3D scene, steps and features. */
.ui-shell .mp-plp-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:24px;align-items:center;margin:0 0 40px;padding:44px 40px;border:1px solid var(--ui-border);border-radius:18px;background:radial-gradient(640px 420px at 82% 42%,rgba(80,227,164,.16),transparent 62%),radial-gradient(520px 360px at 4% 115%,rgba(57,135,229,.12),transparent 60%),var(--ui-surface);overflow:hidden;isolation:isolate}
.ui-shell .mp-plp-hero::before{content:"";position:absolute;inset:0;z-index:-1;background-image:radial-gradient(rgba(250,250,250,.07) 1px,transparent 1px);background-size:22px 22px;-webkit-mask-image:linear-gradient(90deg,#000,transparent 70%);mask-image:linear-gradient(90deg,#000,transparent 70%)}
.ui-shell .mp-plp-kicker{display:inline-flex;align-items:center;margin:0 0 18px;padding:4px 12px;border:1px solid rgba(80,227,164,.35);border-radius:999px;background:rgba(80,227,164,.08);color:var(--ui-accent);font-size:13px;font-weight:600;line-height:20px;letter-spacing:.01em}
.ui-shell .mp-plp-title{margin:0;color:var(--ui-text);font-size:clamp(30px,4.2vw,48px);font-weight:700;line-height:1.08;letter-spacing:-.025em;text-wrap:balance}
.ui-shell .mp-plp-lead{max-width:56ch;margin:18px 0 0;color:var(--ui-text-2);font-size:16px;line-height:24px}
.ui-shell .mp-plp-actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 0}
.ui-shell .mp-plp-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:32px 0 0;padding:20px 0 0;border-top:1px solid var(--ui-border)}
.ui-shell .mp-plp-facts div{min-width:0}
.ui-shell .mp-plp-facts dt{color:var(--ui-accent);font-family:var(--mono);font-size:26px;font-weight:600;line-height:32px}
.ui-shell .mp-plp-facts dd{margin:4px 0 0;color:var(--ui-text-2);font-size:13px;line-height:18px}
.ui-shell .mp-plp-scene{position:relative;height:380px;perspective:1000px;perspective-origin:50% 35%}
.ui-shell .mp-plp-glow{position:absolute;left:50%;top:42%;width:280px;height:280px;margin:-140px 0 0 -140px;border-radius:50%;background:radial-gradient(circle,rgba(80,227,164,.46),rgba(80,227,164,0) 66%);filter:blur(12px)}
.ui-shell .mp-plp-stage{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateX(-8deg) rotateY(-14deg)}
.ui-shell .mp-plp-floor{position:absolute;left:-35%;right:-35%;top:60%;height:440px;transform:rotateY(-14deg) rotateX(76deg);transform-origin:50% 0;background-image:linear-gradient(rgba(80,227,164,.24) 1px,transparent 1px),linear-gradient(90deg,rgba(80,227,164,.24) 1px,transparent 1px);background-size:40px 40px;-webkit-mask-image:radial-gradient(ellipse 50% 45% at 50% 18%,#000 25%,transparent 75%);mask-image:radial-gradient(ellipse 50% 45% at 50% 18%,#000 25%,transparent 75%)}
.ui-shell .mp-plp-orbit{position:absolute;left:50%;top:46%;width:300px;height:300px;margin:-150px 0 0 -150px;transform-style:preserve-3d;transform:rotateX(74deg)}
.ui-shell .mp-plp-orbit::before{content:"";position:absolute;inset:0;border:1px solid rgba(80,227,164,.5);border-radius:50%;box-shadow:0 0 28px rgba(80,227,164,.28),inset 0 0 28px rgba(80,227,164,.16)}
.ui-shell .mp-plp-orbit::after{content:"";position:absolute;inset:44px;border:1px dashed rgba(161,161,170,.32);border-radius:50%}
.ui-shell .mp-plp-spin{position:absolute;inset:0;transform-style:preserve-3d;animation:mp-plp-spin 18s linear infinite}
.ui-shell .mp-plp-node{position:absolute;width:0;height:0;transform-style:preserve-3d}
.ui-shell .mp-plp-node.is-a{left:50%;top:0}
.ui-shell .mp-plp-node.is-b{left:100%;top:50%}
.ui-shell .mp-plp-node.is-c{left:50%;top:100%}
.ui-shell .mp-plp-node.is-d{left:0;top:50%}
.ui-shell .mp-plp-node i{position:absolute;left:-18px;top:-36px;width:36px;height:36px;border-radius:50%;transform-origin:50% 100%;transform:rotateX(-74deg);animation:mp-plp-counter 18s linear infinite;background:radial-gradient(circle at 35% 30%,#fff 0,#b6f5da 16%,#50E3A4 46%,#17583f 100%);box-shadow:0 10px 20px rgba(0,0,0,.5),0 0 18px rgba(80,227,164,.4)}
.ui-shell .mp-plp-node.is-b i{background:radial-gradient(circle at 35% 30%,#fff 0,#bcd7fb 16%,#3987E5 46%,#173a66 100%);box-shadow:0 10px 20px rgba(0,0,0,.5),0 0 18px rgba(57,135,229,.45)}
.ui-shell .mp-plp-node.is-c i{background:radial-gradient(circle at 35% 30%,#fff 0,#d6d2fb 16%,#9085E9 46%,#3b3478 100%);box-shadow:0 10px 20px rgba(0,0,0,.5),0 0 18px rgba(144,133,233,.45)}
.ui-shell .mp-plp-node.is-d i{background:radial-gradient(circle at 35% 30%,#fff 0,#fbe4b0 16%,#FBBF24 46%,#7a5300 100%);box-shadow:0 10px 20px rgba(0,0,0,.5),0 0 18px rgba(251,191,36,.4)}
.ui-shell .mp-plp-node i::before{content:"";position:absolute;left:13px;top:8px;width:10px;height:10px;border-radius:50%;background:rgba(9,9,11,.55)}
.ui-shell .mp-plp-node i::after{content:"";position:absolute;left:9px;top:20px;width:18px;height:9px;border-radius:9px 9px 3px 3px;background:rgba(9,9,11,.55)}
.ui-shell .mp-plp-coin{position:absolute;left:50%;top:38%;width:124px;height:124px;margin:-62px 0 0 -62px;transform-style:preserve-3d;animation:mp-plp-coin 8s ease-in-out infinite}
.ui-shell .mp-plp-coin-layer{position:absolute;inset:0;border-radius:50%;background:#1f8a5e}
.ui-shell .mp-plp-coin-layer:nth-child(1){transform:translateZ(-6px)}
.ui-shell .mp-plp-coin-layer:nth-child(2){transform:translateZ(-3px)}
.ui-shell .mp-plp-coin-layer:nth-child(3){transform:translateZ(0)}
.ui-shell .mp-plp-coin-layer:nth-child(4){transform:translateZ(3px)}
.ui-shell .mp-plp-coin-layer:nth-child(5){transform:translateZ(6px)}
.ui-shell .mp-plp-coin-face{position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;color:#073523;font-family:var(--mono);font-size:54px;font-weight:700;line-height:1;background:radial-gradient(circle at 32% 28%,#effff7 0,#a9f3d3 20%,#50E3A4 55%,#239766 100%);box-shadow:inset 0 0 0 6px rgba(255,255,255,.28),inset 0 -10px 18px rgba(0,0,0,.25);transform:translateZ(8px);backface-visibility:hidden}
.ui-shell .mp-plp-coin-face.is-back{transform:rotateY(180deg) translateZ(8px)}
.ui-shell .mp-plp-card{position:absolute;display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid rgba(80,227,164,.3);border-radius:12px;background:rgba(16,16,18,.82);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 18px 40px rgba(0,0,0,.5);color:var(--ui-text);font-size:13px;font-weight:500;white-space:nowrap}
.ui-shell .mp-plp-card b{color:var(--ui-accent);font-family:var(--mono);font-weight:600}
.ui-shell .mp-plp-card.is-client{left:0;top:10%;transform:translateZ(70px) rotateY(16deg);animation:mp-plp-float 6s ease-in-out infinite}
.ui-shell .mp-plp-card.is-commission{right:0;bottom:14%;transform:translateZ(100px) rotateY(-10deg);animation:mp-plp-float 6s ease-in-out -3s infinite}
.ui-shell .mp-plp-avatar{width:22px;height:22px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0,#bcd7fb 18%,#3987E5 55%,#173a66 100%)}
.ui-shell .mp-plp-pulse{width:10px;height:10px;border-radius:50%;background:var(--ui-accent);box-shadow:0 0 0 4px rgba(80,227,164,.2),0 0 12px rgba(80,227,164,.7)}
@keyframes mp-plp-spin{to{transform:rotateZ(360deg)}}
@keyframes mp-plp-counter{from{transform:rotateZ(0deg) rotateX(-74deg)}to{transform:rotateZ(-360deg) rotateX(-74deg)}}
@keyframes mp-plp-coin{0%{transform:translateY(0) rotateY(0deg)}50%{transform:translateY(-14px) rotateY(180deg)}100%{transform:translateY(0) rotateY(360deg)}}
@keyframes mp-plp-float{0%,100%{translate:0 0}50%{translate:0 -10px}}
@media (prefers-reduced-motion:reduce){.ui-shell .mp-plp-spin,.ui-shell .mp-plp-node i,.ui-shell .mp-plp-coin,.ui-shell .mp-plp-card{animation:none}}
.ui-shell .mp-plp-section-title{margin:0 0 16px}
.ui-shell #partner-how,.ui-shell #partner-apply{scroll-margin-top:120px}
.ui-shell .mp-plp-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 40px;padding:0;list-style:none}
.ui-shell .mp-plp-steps li{position:relative;padding:22px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-surface);overflow:hidden}
.ui-shell .mp-plp-steps li::after{content:"";position:absolute;right:-50px;top:-50px;width:140px;height:140px;border-radius:50%;background:radial-gradient(circle,rgba(80,227,164,.14),transparent 70%)}
.ui-shell .mp-plp-step-num{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;margin:0 0 14px;border:1px solid rgba(80,227,164,.35);border-radius:10px;background:rgba(80,227,164,.08);color:var(--ui-accent);font-family:var(--mono);font-size:13px;font-weight:600}
.ui-shell .mp-plp-steps h3{margin:0 0 6px;font-size:17px;font-weight:600}
.ui-shell .mp-plp-steps p{margin:0;color:var(--ui-text-2);font-size:14px;line-height:20px}
.ui-shell .mp-plp-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 40px;padding:0;list-style:none}
.ui-shell .mp-plp-features li{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-surface);font-size:14px;line-height:20px}
.ui-shell .mp-plp-icon{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:rgba(80,227,164,.1);color:var(--ui-accent)}
.ui-shell .mp-partner-apply .mp-sub{margin:6px 0 0;font-size:14px}
@media (max-width:900px){.ui-shell .mp-plp-features{grid-template-columns:minmax(0,1fr)}}
@media (max-width:900px){.ui-shell .mp-plp-hero{grid-template-columns:minmax(0,1fr);padding:28px 20px}.ui-shell .mp-plp-scene{height:320px}.ui-shell .mp-plp-steps{grid-template-columns:minmax(0,1fr)}}
@media (max-width:600px){.ui-shell .mp-plp-facts{grid-template-columns:minmax(0,1fr);gap:12px}.ui-shell .mp-plp-features{grid-template-columns:minmax(0,1fr)}.ui-shell .mp-plp-scene{height:280px;transform:scale(.82);margin:-20px -10% -10px}}
.ui-shell .mp-partner-apply.mp-plp-apply{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:40px;align-items:start;max-width:none;padding:36px 40px;border-radius:18px;background:radial-gradient(560px 320px at 0% 0%,rgba(80,227,164,.12),transparent 62%),var(--ui-surface)}
.ui-shell .mp-plp-apply .mp-h2{margin:0;font-size:26px;line-height:32px;letter-spacing:-.015em}
.ui-shell .mp-plp-apply .mp-sub{margin:12px 0 0;font-size:15px;line-height:22px}
.ui-shell .mp-plp-apply-steps{display:grid;gap:10px;margin:24px 0 0;padding:0;list-style:none}
.ui-shell .mp-plp-apply-steps li{display:flex;align-items:center;gap:12px;color:var(--ui-text);font-size:14px;font-weight:500}
.ui-shell .mp-plp-apply-steps span{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;border:1px solid rgba(80,227,164,.35);border-radius:9px;background:rgba(80,227,164,.08);color:var(--ui-accent);font-family:var(--mono);font-size:12px;font-weight:600}
.ui-shell .mp-plp-apply .mp-partner-form{padding:24px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-bg)}
.ui-shell .mp-plp-apply .ui-billing-form-actions{margin-top:0}
@media (max-width:900px){.ui-shell .mp-partner-apply.mp-plp-apply{grid-template-columns:minmax(0,1fr);gap:24px;padding:24px 20px}.ui-shell .mp-plp-apply .mp-partner-form{padding:18px}}
