/* LicenRoute brand for Central (panel + Market). Same tokens, type and shapes as licenroute.com; class names unchanged. */
/* Self-hosted fonts (SIL Open Font License 1.1). */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/BricolageGrotesque-700-latin-ext.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+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/BricolageGrotesque-700-latin.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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexMono-400-latin-ext.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+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexMono-400-latin.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: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexSans-400-latin-ext.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+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexSans-400-latin.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: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/IBMPlexSans-600-latin-ext.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+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/IBMPlexSans-600-latin.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; }

:root {
  --bg: oklch(97.5% 0.007 85); --surface: oklch(99.3% 0.004 85); --line: oklch(89.5% 0.010 85); --line-strong: oklch(62% 0.014 80);
  --text: oklch(21.5% 0.012 75); --muted: oklch(47% 0.016 75);
  --toll: #f2a516; --on-toll: oklch(21.5% 0.012 75); --toll-ink: #8a5600; --toll-tint: oklch(95% 0.045 85);
  --route: #0d7a62; --route-tint: oklch(94% 0.04 170); --deny: #c2362f; --deny-tint: oklch(94% 0.035 25);
  --ink-btn: oklch(21.5% 0.012 75); --on-ink-btn: oklch(97.5% 0.007 85);
  --code-bg: oklch(94.5% 0.008 85); --night: oklch(16% 0.008 75); --night-ink: oklch(91% 0.008 85);
  --focus: var(--toll-ink); --radius: 14px; --radius-md: 10px; --radius-sm: 6px;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-sans: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* legacy names kept for views */
  --border: var(--line); --accent: var(--toll-ink); --accent-text: var(--on-ink-btn); --danger: var(--deny); --ok: var(--route); --ok-bg: var(--route-tint); --err-bg: var(--deny-tint);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(17% 0.008 75); --surface: oklch(21.5% 0.009 75); --line: oklch(31% 0.010 75); --line-strong: oklch(52% 0.012 75);
    --text: oklch(94% 0.006 85); --muted: oklch(74% 0.012 80);
    --toll-ink: #f5b83d; --toll-tint: oklch(29% 0.045 80); --route: #3fc39e; --route-tint: oklch(28% 0.04 170); --deny: #ff7d72; --deny-tint: oklch(28% 0.05 25);
    --ink-btn: oklch(94% 0.006 85); --on-ink-btn: oklch(17% 0.008 75); --code-bg: oklch(25% 0.010 75); --night: oklch(13% 0.008 75);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; font: 400 16px/1.55 var(--font-sans); font-synthesis: none; -webkit-font-smoothing: antialiased; background: var(--bg); color: var(--text); }
a { color: var(--toll-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 40px; padding-bottom: 72px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-md); z-index: 10; }

/* Top bar */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.brand img { width: 32px; height: auto; }
.brand small { font: 600 14px/1 var(--font-sans); letter-spacing: 0; color: var(--muted); padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; }
.nav { display: flex; gap: 4px 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom-color: var(--toll); }
.topbar__account { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.org-pill { border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; text-decoration: none; color: var(--text); font-weight: 600; }
.org-pill:hover { border-color: var(--text); }
.muted { color: var(--muted); }

/* Type */
h1 { font: 700 clamp(30px, 3.4vw, 40px)/1.08 var(--font-display); letter-spacing: -0.025em; margin: 0 0 20px; text-wrap: balance; }
h2 { font: 700 clamp(22px, 2vw, 26px)/1.15 var(--font-display); letter-spacing: -0.015em; margin: 36px 0 14px; text-wrap: balance; }
h3 { font: 600 18px/1.3 var(--font-sans); margin: 20px 0 8px; }
p { max-width: 75ch; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.card > :first-child { margin-top: 0; }
.card--narrow { max-width: 460px; margin: 56px auto; padding: 32px; }
.card--narrow h1 { font-size: 32px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { font: 700 40px/1.05 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 4px 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }

/* Messages */
.flash { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 20px; }
.flash--notice { background: var(--route-tint); color: var(--text); border-left: 0; }
.flash--alert, .errors { background: var(--deny-tint); color: var(--text); }
.errors { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 20px; }
.errors ul { margin: 4px 0 0; padding-left: 20px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
label { font-weight: 600; font-size: 15px; }
.hint { font-size: 14px; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=datetime-local], select, textarea {
  font: inherit; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--text); width: 100%;
}
input:hover, select:hover, textarea:hover { border-color: var(--text); }
input[type=checkbox], input[type=radio] { accent-color: var(--toll-ink); width: 18px; height: 18px; margin-top: 2px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-md); margin: 0 0 18px; padding: 14px 16px; }

/* Buttons: ink by default; toll only for the one primary action (.btn--primary) */
.btn, input[type=submit], button {
  font: 600 15px/1 var(--font-sans); cursor: pointer; border-radius: var(--radius-md); min-height: 44px; padding: 0 18px; border: 1px solid var(--ink-btn);
  background: var(--ink-btn); color: var(--on-ink-btn); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}
.btn:hover, input[type=submit]:hover, button:hover { background: var(--toll-ink); border-color: var(--toll-ink); color: var(--on-ink-btn); }
.btn--primary, .btn--primary:hover { background: var(--toll); border-color: var(--toll); color: var(--on-toll); }
.btn--primary:hover { filter: brightness(.95); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; color: var(--text); border-color: var(--text); }
.btn--danger { background: transparent; color: var(--deny); border-color: var(--deny); }
.btn--danger:hover { background: var(--deny); color: var(--on-ink-btn); border-color: var(--deny); }
button[disabled], input[type=submit][disabled] { opacity: .5; cursor: not-allowed; }
form.button_to { display: inline; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font: 600 13px/1.3 var(--font-sans); color: var(--muted); background: var(--bg); }
tbody tr:hover td { background: color-mix(in oklch, var(--bg) 60%, transparent); }
tr.is-disabled td { opacity: .55; }

/* Code */
code, .token { font-family: var(--font-mono); background: var(--code-bg); padding: 1px 6px; border-radius: var(--radius-sm); font-size: .9em; }
.token { display: block; padding: 16px 18px; word-break: break-all; user-select: all; background: var(--night); color: var(--night-ink); border-radius: var(--radius-md); line-height: 1.6; }
.code-block { font-family: var(--font-mono); font-size: 14px; line-height: 1.65; background: var(--night); color: var(--night-ink); padding: 16px 18px; border-radius: var(--radius-md); overflow-x: auto; }

/* Status: always a word next to the colour */
.badge { display: inline-block; font: 600 13px/1.5 var(--font-sans); padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.badge--active, .badge--allow, .badge--approved, .badge--paid { color: var(--route); border-color: currentColor; }
.badge--disabled, .badge--revoked, .badge--block, .badge--rate_limit, .badge--rejected, .badge--refunded { color: var(--deny); border-color: currentColor; }
.badge--warn, .badge--pending { color: var(--toll-ink); border-color: currentColor; }
.empty { text-align: center; color: var(--muted); padding: 40px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tabs */
.tabs { display: flex; gap: 4px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs a { padding: 10px 0; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom-color: var(--toll); }
.filters { align-items: flex-end; }
.filters .field { margin-bottom: 0; }

/* Bars */
.bar-cell { min-width: 160px; white-space: nowrap; }
.bar { display: inline-block; height: 10px; border-radius: 5px; vertical-align: middle; }
.bar--allow { background: var(--route); }
.bar--block { background: var(--deny); }
.bar--rate_limit { background: var(--toll); }

/* Footer */
body > footer.wrap { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); }
@media (max-width: 1500px) { .topbar__account .muted { display: none; } }

/* Market v2, B3: listing facts */
.listing__summary { font-size: 1.15em; }
.listing__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 12px 0; }
pre.token { white-space: pre-wrap; overflow-x: auto; font-size: 14px; }
