/* Generic SEADS CSS reused from seads-pay/apps/portal-shells/styles.css. Product financial styles excluded. */
@import url('/ui/tokens.css');
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  color-scheme: light;
  --font-ui: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-code: ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-xs: .75rem; --text-sm: .875rem; --text-base: 1rem; --text-lg: 1.25rem; --text-xl: 1.5rem; --text-2xl: 2rem;
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --rail-width: 15rem; --header-height: 4.5rem;
  --shadow-menu: 0 8px 24px hsl(var(--ink) / .12);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: var(--text-sm)/1.5 var(--font-ui); background: hsl(var(--surface)); color: hsl(var(--ink)); }
a { color: hsl(var(--brand)); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 2px solid hsl(var(--brand)); outline-offset: 3px; }
.skip { position: fixed; top: -100px; left: var(--space-4); padding: var(--space-3); background: hsl(var(--surface)); z-index: 60; }
.skip:focus { top: var(--space-4); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
h1 { font-size: var(--text-xl); line-height: 1.25; font-weight: 600; letter-spacing: -.025em; margin: 0 0 var(--space-2); }
h2 { font-size: var(--text-base); font-weight: 600; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-4); }
.muted, .subhead { color: hsl(var(--muted)); }
.shell { min-height: 100dvh; }
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail-width); display: flex; flex-direction: column; overflow-y: auto; background: hsl(var(--panel)); border-right: 1px solid hsl(var(--border)); padding: var(--space-6) var(--space-4); z-index: 30; }
.brand { display: flex; align-items: center; gap: var(--space-3); color: hsl(var(--ink)); font-size: var(--text-base); font-weight: 600; padding: var(--space-2); margin-bottom: var(--space-5); }
.brand img { flex-shrink: 0; object-fit: contain; }
.brand small { display: block; font-size: var(--text-xs); font-weight: 400; color: hsl(var(--muted)); margin-top: var(--space-1); }
.nav-group { font-size: var(--text-xs); color: hsl(var(--muted)); margin: var(--space-5) var(--space-3) var(--space-2); }
.rail nav { display: grid; gap: var(--space-1); }
.rail nav a { color: hsl(var(--muted)); padding: var(--space-2) var(--space-3); min-height: 40px; border-radius: var(--radius); }
.rail nav a:hover { background: hsl(var(--surface)); color: hsl(var(--ink)); }
.rail nav a[aria-current='page'] { color: hsl(var(--brand)); background: hsl(var(--brand-tint)); font-weight: 600; }
.rail-foot { margin-top: auto; padding: var(--space-6) var(--space-3) 0; font-size: var(--text-xs); color: hsl(var(--muted)); }
.rail-foot p { margin: var(--space-2) 0 0; }
.main { margin-left: var(--rail-width); min-width: 0; }
.topbar { min-height: var(--header-height); border-bottom: 1px solid hsl(var(--border)); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); padding: var(--space-4) var(--space-8); }
.breadcrumb, .top-actions { display: flex; align-items: center; gap: var(--space-3); }
.breadcrumb { color: hsl(var(--muted)); font-size: var(--text-xs); }
.top-actions { flex-wrap: wrap; }
.language { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: hsl(var(--muted)); }
select { padding: var(--space-2); background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); min-height: 40px; }
.dropdown { position: relative; }
.dropdown summary { border-radius: var(--radius); padding: var(--space-2) var(--space-3); border: 1px solid hsl(var(--border)); min-height: 40px; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + var(--space-2)); min-width: 220px; background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: var(--space-2); box-shadow: var(--shadow-menu); z-index: 40; }
.dropdown-menu a { display: block; padding: var(--space-3); border-radius: var(--radius); }
.dropdown-menu a:hover { background: hsl(var(--panel)); }
.content { padding: var(--space-6) var(--space-8) var(--space-10); }
.page-heading, .market-title { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.page-heading { margin-bottom: var(--space-6); }
.subhead { margin-bottom: 0; }
.notice { border: 1px solid hsl(var(--border)); background: hsl(var(--panel)); color: hsl(var(--muted)); padding: var(--space-3) var(--space-4); border-radius: var(--radius); margin-bottom: var(--space-6); }
.badge { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-2); border: 1px solid hsl(var(--border)); border-radius: var(--space-1); font-size: var(--text-xs); color: hsl(var(--muted)); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.info { color: hsl(var(--brand)); background: hsl(var(--brand-tint)); }
.badge.success { color: hsl(var(--success)); }
.badge.warning { color: hsl(var(--warning)); }
.badge.danger { color: hsl(var(--danger)); }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-4); }
.metric, .card { border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--surface)); padding: var(--space-6); }
.metric > span, .metric small { color: hsl(var(--muted)); display: block; font-size: var(--text-xs); }
.money { display: block; font-size: var(--text-2xl); font-weight: 600; font-variant-numeric: tabular-nums; margin: var(--space-2) 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin: var(--space-8) 0 var(--space-3); }
.section-head h2 { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid hsl(var(--border)); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: var(--text-sm); }
th, td { padding: var(--space-4) var(--space-5); border-bottom: 1px solid hsl(var(--border)); }
th { font-size: var(--text-xs); font-weight: 500; color: hsl(var(--muted)); background: hsl(var(--panel)); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.empty-state { text-align: center; border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: var(--space-10) var(--space-6); margin: var(--space-4) 0; }
td .empty-state { border: 0; margin: 0; }
.empty-state p { color: hsl(var(--muted)); max-width: 460px; margin: var(--space-2) auto 0; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: var(--space-2) var(--space-4); min-height: 40px; gap: var(--space-2); border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--surface)); color: hsl(var(--ink)); font-weight: 500; }
.button:hover { background: hsl(var(--panel)); }
.button.primary { background: hsl(var(--brand)); border-color: hsl(var(--brand)); color: hsl(var(--surface)); }
.button.primary:hover { background: hsl(var(--brand-dark)); }
[data-panel] > .button { margin-top: var(--space-4); }
.code { font: var(--text-xs)/1.6 var(--font-code); padding: var(--space-5); background: hsl(var(--panel)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow-x: auto; }
