@charset "UTF-8";
:root {
  --bg:#f5f6f8;
  --surface:#fff;
  --surface-soft:#f8f9fb;
  --ink:#17243a;
  --muted:#748094;
  --line:#e6eaf0;
  --blue:#315df5;
  --blue-soft:#edf1ff;
  --teal:#199986;
  --teal-soft:#e8f6f1;
  --orange:#dd9456;
  --red:#cf5362;
  --sidebar:#111c2e;
  --sidebar-muted:#8390a6;
  --shadow:0 8px 30px #182a4510;
  --radius:5px;
  --sidebar-width:280px;
  --focus:#315df5;
  --scroll-track:#edf0f5;
  --scroll-thumb:#a8b3c3;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  font-size:14px;
  color-scheme:light
}

:root[data-theme=dark] {
  --focus:#91aaff;
  --scroll-track:#172131;
  --scroll-thumb:#536681;
  --bg:#131b28;
  --surface:#1b2637;
  --surface-soft:#202d40;
  --ink:#e9eef7;
  --muted:#96a4b9;
  --line:#2b394e;
  --blue:#7291ff;
  --blue-soft:#263758;
  --teal:#4cc8ae;
  --teal-soft:#203e3c;
  --orange:#e6a36e;
  --red:#f08490;
  --sidebar:#0c1422;
  --shadow:0 8px 30px #0002;
  color-scheme:dark
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  color:var(--ink);
  background:var(--bg);
  font-weight:400;
  line-height:1.5
}

button,input,select {
  font:inherit
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent
}

button {
  cursor:pointer
}

button:disabled {
  opacity:.45;
  cursor:not-allowed
}

a {
  color:var(--blue);
  text-decoration:none
}

button {
  color:inherit
}

:focus-visible {
  outline:none;
  box-shadow:inset 0 0 0 1px var(--focus)
}
input:focus-visible,select:focus-visible {
  border-color:var(--focus);
  box-shadow:none
}

input,select {
  color:var(--ink);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:5px
}

input {
  width:100%;
  padding:11px 12px
}

select {
  padding:9px 32px 9px 11px;
  max-width:100%
}

h1,h2,h3,p {
  margin:0
}

h2 {
  font-size:15px;
  letter-spacing:-.35px;
  font-weight:650
}

h3 {
  font-size:16px;
  letter-spacing:-.4px
}

svg {
  display:block
}

.icon {
  flex:none;
  width:19px;
  height:19px
}

button .icon {
  pointer-events:none
}

[hidden] {
  display:none!important
}

.skip-link {
  position:fixed;
  top:-100px;
  left:20px;
  background:var(--blue);
  color:#fff;
  padding:10px;
  z-index:100
}

.skip-link:focus {
  top:10px
}

.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebar-width);
  background:var(--sidebar);
  color:#fff;
  z-index:30;
  display:flex;
  flex-direction:column;
  padding:30px 17px 0
}

.brand {
  display:flex;
  align-items:center;
  gap:11px;
  font-size:31px;
  line-height:1;
  color:#fff;
  font-weight:750;
  letter-spacing:-1.5px;
  padding:0 12px
}

.brand-dot {
  color:#6c8bff
}

.brand-mark {
  display:grid;
  place-items:center;
  width:33px;
  height:33px;
  background:#315df5;
  border-radius:5px;
  color:#fff
}

.brand-mark svg {
  width:31px;
  height:31px;
  stroke:currentColor;
  stroke-width:1.4
}

.workspace {
  display:flex;
  align-items:center;
  gap:10px;
  margin:34px 0 28px;
  padding:12px 9px;
  border:1px solid #ffffff15;
  border-radius:5px
}

.workspace-avatar {
  background:#28374e;
  border:1px solid #40516d;
  border-radius:4px;
  width:30px;
  height:32px;
  display:grid;
  place-items:center;
  font-size:12px;
  color:#cdd9eb;
  font-weight:600
}

.workspace strong {
  font-size:12px;
  font-weight:550;
  display:block
}

.workspace div>span {
  display:block;
  font-size:12px;
  color:#8e9cb1;
  margin-top:2px
}

.workspace-check {
  margin-left:auto;
  color:#91a2ba;
  font-size:12px
}

.nav-label {
  padding:0 13px;
  font-size:12px;
  letter-spacing:1.7px;
  font-weight:600;
  color:#718099;
  margin-bottom:11px
}

.nav-label-secondary {
  margin-top:31px
}

.nav-item {
  width:100%;
  border:0;
  background:none;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 12px;
  color:#9eacc0;
  border-radius:5px;
  text-align:left;
  font-size:12px;
  font-weight:500;
  margin-bottom:5px;
  min-height:43px;
  transition:background .15s,color .15s
}

.nav-item:hover {
  background:#ffffff08;
  color:#fff
}

.nav-item.active {
  background:#273f76;
  color:#e8efff
}

.nav-item .icon {
  width:17px;
  height:17px;
  color:#8195b2
}

.nav-item.active .icon {
  color:#92b0ff
}

.nav-active-dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#8eacff;
  margin-left:auto
}

.nav-count,.version-tag {
  margin-left:auto;
  border-radius:3px;
  color:#97a9c6;
  background:#ffffff0a;
  font-size:12px;
  min-width:18px;
  text-align:center;
  padding:1px 4px
}

.version-tag {
  font-family:Consolas,monospace
}

.sidebar-bottom {
  margin-top:auto
}

.connection-note {
  border:1px solid #ffffff13;
  background:linear-gradient(135deg,#20345266,#19283c33);
  border-radius:5px;
  margin:28px 2px 23px;
  padding:16px 13px
}

.small-radar {
  font-size:27px;
  color:#7094df;
  line-height:1;
  display:block;
  margin-bottom:12px
}

.connection-note strong {
  font-size:12px;
  line-height:1.7;
  font-weight:500;
  display:block;
  max-width:145px
}

.connection-note p {
  font-size:12px;
  line-height:1.8;
  color:#7e90aa;
  margin:8px 0 15px
}

.text-button {
  border:0;
  background:transparent;
  padding:0;
  font-size:12px;
  font-weight:550;
  color:inherit;
  display:inline-flex;
  align-items:center;
  gap:8px
}

.text-button .icon {
  width:14px;
  height:14px
}

.connection-note .text-button {
  color:#b3c8fb;
  font-size:12px
}

.sidebar-user {
  display:flex;
  align-items:center;
  gap:9px;
  padding:20px 2px;
  border-top:1px solid #ffffff12
}

.user-avatar {
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:50%;
  font-size:12px;
  font-weight:600;
  background:#eadfd1;
  color:#7e6652
}

.sidebar-user strong {
  font-size:12px;
  display:block;
  font-weight:500;
  max-width:108px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

.sidebar-user div>span {
  font-size:12px;
  display:block;
  color:#7d8da6
}

.sidebar-user form,.sidebar-user>a {
  margin-left:auto
}

.sidebar-user .logout {
  color:#8c9bb0;
  padding:5px;
  width:27px
}

.app-shell {
  margin-left:var(--sidebar-width);
  min-height:100vh
}

.topbar {
  height:68px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 37px
}

.breadcrumb {
  display:flex;
  align-items:center;
  gap:13px;
  font-size:12px
}

.breadcrumb-root {
  color:var(--muted)
}

.breadcrumb-slash {
  color:#b8c2d0;
  font-size:13px
}

.breadcrumb strong {
  font-weight:550
}

.topbar-actions {
  display:flex;
  align-items:center;
  gap:17px
}

.private-badge {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--muted)
}

.private-badge .icon {
  width:13px;
  height:13px;
  color:#6c857e
}

.topbar-divider {
  width:1px;
  height:17px;
  background:var(--line)
}

.language-button {
  font-size:12px;
  font-weight:600;
  border:0;
  background:none;
  padding:6px 0;
  display:flex;
  gap:6px;
  align-items:center
}

.language-button>span {
  color:var(--muted)
}

.icon-button {
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  width:30px;
  height:30px;
  border-radius:4px;
  color:var(--muted);
  padding:5px
}

.icon-button:hover {
  background:var(--surface-soft);
  color:var(--ink)
}

.mobile-menu {
  display:none
}

.demo-banner {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 37px;
  background:#faf3e2;
  color:#8d7340;
  border-bottom:1px solid #e9dfc7;
  font-size:12px
}

.demo-label {
  font-size:12px;
  font-weight:700;
  letter-spacing:1.1px;
  border:1px solid #decc9f;
  padding:2px 5px;
  border-radius:3px
}

.demo-banner a {
  display:flex;
  align-items:center;
  gap:9px;
  margin-left:auto;
  white-space:nowrap;
  font-weight:600;
  color:#876a34
}

.demo-banner a:hover {
  text-decoration:underline
}

:root[data-theme=dark] .demo-banner {
  background:#312e23;
  border-color:#4c4330;
  color:#caba93
}

:root[data-theme=dark] .demo-banner a {
  color:#dfc38b
}

:root[data-theme=dark] .demo-label {
  border-color:#6f5d38
}

main {
  padding:32px 37px 0;
  max-width:1720px;
  margin:0 auto
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:27px
}

.eyebrow {
  font-size:12px;
  font-weight:650;
  letter-spacing:1.9px;
  color:var(--muted);
  margin-bottom:9px
}

h1 {
  font-size:29px;
  letter-spacing:-1.25px;
  line-height:1.2;
  font-weight:600
}

.title-dot {
  color:var(--blue)
}

.page-heading p {
  font-size:12px;
  color:var(--muted);
  margin-top:10px
}

.heading-actions {
  display:flex;
  gap:9px;
  align-items:center;
  padding-top:9px
}

.button {
  border-radius:5px;
  min-height:37px;
  border:1px solid transparent;
  padding:9px 13px;
  font-size:12px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  line-height:1.5;
  white-space:nowrap;
  transition:background .15s,box-shadow .15s
}

.button .icon {
  width:14px;
  height:14px
}

.button-primary {
  background:#315df5;
  color:#fff;
  border-color:#315df5;
  box-shadow:0 2px 3px #315df515
}

.button-primary:hover {
  background:#244bda;
  border-color:#244bda
}

.button-secondary {
  background:var(--surface);
  border-color:var(--line);
  color:var(--ink);
  box-shadow:0 1px 2px #11254305
}

.button-secondary:hover {
  background:var(--surface-soft);
  border-color:#c3cede
}

.button-danger {
  background:#bd3e4d;
  color:#fff
}

.button-danger:hover {
  background:#a42b3a
}

.button-small {
  min-height:30px;
  padding:6px 10px;
  font-size:12px
}

.filter-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:11px 0 18px;
  gap:16px
}

.filters {
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0
}

.filter-control {
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0
}

.filter-control>.icon {
  width:14px;
  height:14px;
  color:var(--muted)
}

.filter-control select {
  background:transparent;
  border:0;
  padding:3px 21px 3px 0;
  font-size:12px;
  font-weight:550;
  max-width:180px;
  cursor:pointer
}

.currency-symbol {
  font-size:14px;
  color:var(--muted);
  width:11px
}

.filter-divider {
  height:17px;
  width:1px;
  background:var(--line)
}

.live-status {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap
}

.status-dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--teal);
  box-shadow:0 0 0 3px #19998610
}

.live-status.offline .status-dot {
  background:var(--orange)
}

.live-status button {
  background:none;
  border:0;
  font-size:15px;
  color:var(--muted);
  padding:0 1px 1px 5px
}

.metrics-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:21px
}

.metric-card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:5px;
  padding:19px 18px 17px;
  position:relative;
  overflow:hidden;
  min-width:0
}

.metric-card:first-child {
  border-top:2px solid var(--teal);
  padding-top:18px
}

.metric-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
  font-size:12px;
  font-weight:500
}

.metric-symbol {
  background:var(--surface-soft);
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  border-radius:4px;
  color:#8a97ac;
  font-size:13px
}

.metric-value {
  font-size:28px;
  letter-spacing:-1.3px;
  font-weight:600;
  line-height:1.25;
  margin:13px 0 13px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap
}

.metric-card:first-child .metric-symbol {
  background:var(--teal-soft);
  color:var(--teal)
}

.metric-footer {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap
}

.metric-change {
  display:inline-flex;
  gap:3px;
  font-weight:550;
  border-radius:3px;
  padding:2px 4px;
  background:var(--teal-soft);
  color:var(--teal);
  font-size:12px
}

.metric-change.negative {
  background:#f9ebed;
  color:var(--red)
}

.metric-change.neutral {
  background:var(--surface-soft);
  color:var(--muted)
}

:root[data-theme=dark] .metric-change.negative {
  background:#492d3b
}

.mini-sparkline {
  position:absolute;
  width:67px;
  height:22px;
  right:18px;
  bottom:19px;
  opacity:.65;
  display:none
}

.chart-grid {
  display:grid;
  grid-template-columns:minmax(0,1.83fr) minmax(270px,1fr);
  gap:20px;
  margin-bottom:21px
}

.panel {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:5px;
  overflow:hidden;
  min-width:0
}

.panel-heading {
  padding:21px 21px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px
}

.panel-heading p {
  font-size:12px;
  color:var(--muted);
  margin-top:5px
}

.unit-label {
  font-size:12px;
  border:1px solid var(--line);
  border-radius:3px;
  padding:3px 6px;
  color:var(--muted);
  letter-spacing:.5px
}

.chart-legend {
  display:flex;
  align-items:center;
  gap:17px;
  padding:21px 21px 9px;
  font-size:12px;
  color:var(--muted)
}

.chart-legend>span {
  display:flex;
  align-items:center;
  gap:5px
}

.legend-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  display:inline-block;
  flex:none
}

.teal {
  background:var(--teal)
}

.orange {
  background:var(--orange)
}

.chart-range {
  margin-left:auto;
  font-size:12px
}

.flow-chart {
  height:237px;
  padding:0 18px 0 10px;
  position:relative
}

.flow-chart svg {
  width:100%;
  height:100%;
  overflow:visible
}

.chart-axis-text {
  font:12px "Segoe UI",Arial,sans-serif;
  fill:var(--muted)
}

.chart-gridline {
  stroke:var(--line);
  stroke-dasharray:3 4;
  stroke-width:1
}

.chart-footnote {
  margin:5px 21px 0;
  padding:14px 0;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:12px
}

.note-icon {
  color:var(--teal);
  font-size:12px
}

.distribution-panel {
  display:flex;
  flex-direction:column
}

.donut-chart {
  height:173px;
  display:grid;
  place-items:center;
  padding-top:6px
}

.donut-wrap {
  width:161px;
  height:161px;
  position:relative
}

.donut-wrap svg {
  width:100%;
  height:100%;
  transform:rotate(-90deg)
}

.donut-center {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  pointer-events:none
}

.donut-center span {
  font-size:12px;
  color:var(--muted)
}

.donut-center strong {
  font-size:21px;
  letter-spacing:-.8px;
  font-weight:600;
  margin-top:4px;
  font-variant-numeric:tabular-nums
}

.donut-legend {
  padding:4px 21px 13px;
  display:grid;
  gap:8px
}

.donut-legend-row {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px
}

.donut-legend-row>span:nth-child(2) {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:45%
}

.donut-legend-row strong {
  font-size:12px;
  font-weight:550;
  margin-left:auto;
  font-variant-numeric:tabular-nums
}

.donut-percent {
  color:var(--muted);
  font-size:12px;
  min-width:27px;
  text-align:right
}

.panel-bottom-link {
  border:0;
  border-top:1px solid var(--line);
  background:var(--surface);
  padding:12px 21px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  color:var(--muted);
  margin-top:auto
}

.panel-bottom-link:hover {
  color:var(--blue);
  background:var(--surface-soft)
}

.panel-bottom-link .icon {
  width:13px;
  height:13px
}

.activity-grid {
  display:grid;
  grid-template-columns:minmax(0,1.83fr) minmax(270px,1fr);
  gap:20px
}

.blue {
  color:var(--blue)
}

.recent-panel .panel-heading {
  padding-bottom:20px
}

.recent-panel h2,.pulse-panel h2 {
  font-size:14px
}

.recent-panel .text-button {
  font-size:12px;
  margin-top:3px;
  white-space:nowrap
}

.table-container {
  overflow-x:auto
}

table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:12px
}

th {
  font-size:12px;
  letter-spacing:.7px;
  text-transform:uppercase;
  font-weight:550;
  color:var(--muted);
  padding:11px 20px;
  background:var(--surface-soft);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  white-space:nowrap
}

td {
  border-bottom:1px solid var(--line);
  padding:13px 20px;
  white-space:nowrap;
  color:var(--muted)
}

tr:last-child td {
  border-bottom:0
}

th.amount-cell,td.amount-cell {
  text-align:right
}

.amount-cell {
  font-variant-numeric:tabular-nums;
  font-weight:550;
  color:var(--ink)
}

td.amount-positive {
  color:var(--teal)
}

td.amount-negative {
  color:var(--red)
}

.event-cell {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:145px
}

.event-icon {
  width:30px;
  height:31px;
  border:1px solid var(--line);
  background:var(--surface-soft);
  border-radius:4px;
  display:grid;
  place-items:center;
  flex:none;
  font-size:13px;
  font-weight:550;
  color:var(--teal)
}

.event-label {
  display:block;
  color:var(--ink);
  font-weight:550;
  font-size:12px;
  max-width:235px;
  overflow:hidden;
  text-overflow:ellipsis
}

.event-reference {
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
  max-width:235px;
  overflow:hidden;
  text-overflow:ellipsis
}

.source-cell {
  display:flex;
  align-items:center;
  gap:6px
}

.status-badge {
  font-size:12px;
  font-weight:500;
  border-radius:3px;
  padding:3px 5px;
  display:inline-flex;
  background:var(--teal-soft);
  color:var(--teal);
  white-space:nowrap
}

.status-badge.expense {
  background:#fcf1e5;
  color:#b58047
}

.status-badge.refund,.status-badge.revoked {
  background:#f9ebed;
  color:var(--red)
}

.status-badge.order,.status-badge.subscription {
  background:var(--blue-soft);
  color:var(--blue)
}

:root[data-theme=dark] .status-badge.expense {
  background:#493b2c;
  color:#e6b78d
}

:root[data-theme=dark] .status-badge.refund,:root[data-theme=dark] .status-badge.revoked {
  background:#492d3b
}

.pulse-icon {
  color:var(--blue);
  font-size:18px
}

.pulse-row {
  display:flex;
  align-items:center;
  gap:11px;
  padding:16px 0;
  border-bottom:1px solid var(--line)
}

.pulse-row:last-child {
  border:0
}

.pulse-body {
  padding:7px 21px 4px
}

.pulse-row-icon {
  background:var(--blue-soft);
  border-radius:5px;
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  color:var(--blue);
  font-size:15px
}

.pulse-row-text strong {
  display:block;
  font-size:12px;
  font-weight:550
}

.pulse-row-text span {
  font-size:12px;
  color:var(--muted);
  display:block;
  margin-top:3px
}

.pulse-row-value {
  font-size:20px;
  font-weight:550;
  letter-spacing:-.5px;
  margin-left:auto;
  font-variant-numeric:tabular-nums
}

.pulse-row-value.money {
  font-size:17px
}

.pulse-footer {
  background:var(--surface-soft);
  padding:14px 21px;
  display:flex;
  gap:10px;
  align-items:center;
  border-top:1px solid var(--line);
  font-size:12px;
  color:var(--muted);
  line-height:1.7
}

.pulse-footer .icon {
  color:#8a9b91;
  width:19px;
  height:19px
}

.page-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--muted);
  padding:27px 0 22px;
  font-size:12px;
  gap:20px
}

.page-footer>span:first-child {
  display:flex;
  align-items:center;
  gap:12px
}

.footer-brand {
  font-size:14px;
  letter-spacing:-.6px;
  font-weight:650;
  color:#9aa5b6
}

.alert {
  border:1px solid;
  border-radius:5px;
  padding:12px 15px;
  font-size:12px;
  margin:0 0 20px
}

.alert-error {
  border-color:#e2bcc4;
  background:#fff0f2;
  color:#a83748
}

.alert-info {
  border-color:#cad6ff;
  background:var(--blue-soft);
  color:var(--blue)
}

:root[data-theme=dark] .alert-error {
  background:#492d3b;
  color:#f2a2ac
}

.empty-state {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  padding:48px 24px;
  text-align:center;
  min-height:190px
}

.empty-symbol {
  font-size:24px;
  color:var(--muted);
  margin-bottom:12px
}

.empty-state strong {
  font-weight:550;
  font-size:13px
}

.empty-state p {
  font-size:12px;
  color:var(--muted);
  margin-top:7px;
  max-width:330px
}

.empty-state .button {
  margin-top:19px
}

.transaction-tools {
  display:flex;
  align-items:center;
  gap:15px;
  padding:20px
}

.search-box {
  position:relative;
  display:flex;
  align-items:center;
  flex:1;
  max-width:350px
}

.search-box>.icon {
  position:absolute;
  left:11px;
  color:var(--muted);
  width:16px;
  height:16px
}

.search-box input {
  padding:9px 12px 9px 35px;
  font-size:12px;
  background:var(--surface-soft)
}

.transaction-tools>select,.panel-heading>select {
  font-size:12px;
  padding-top:9px;
  padding-bottom:9px
}

.result-count {
  font-size:12px;
  color:var(--muted);
  margin-left:auto
}

.pagination {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  padding:15px 20px;
  font-size:12px;
  color:var(--muted);
  gap:15px
}

.pagination>div {
  display:flex;
  gap:7px
}

.settings-pagination { padding:16px 0 0; margin-top:16px }
.history-heading { display:flex; align-items:center; justify-content:space-between; gap:16px }
.history-heading h2 { margin-bottom:0 }

.data-note {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  margin-top:15px;
  max-width:860px
}

.section-callout {
  display:flex;
  align-items:center;
  gap:15px;
  border:1px solid var(--line);
  background:var(--surface);
  padding:22px;
  margin:3px 0 23px;
  border-radius:5px
}

.callout-icon {
  display:grid;
  place-items:center;
  background:var(--blue-soft);
  color:var(--blue);
  width:43px;
  height:43px;
  border-radius:5px;
  flex:none
}

.section-callout strong {
  font-size:13px;
  font-weight:550
}

.section-callout p {
  font-size:12px;
  margin-top:5px;
  color:var(--muted)
}

.section-callout .text-button {
  margin-left:auto;
  white-space:nowrap;
  font-size:12px
}

.sources-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px
}

.source-card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:5px;
  padding:21px;
  min-width:0
}

.source-card-top {
  display:flex;
  align-items:center;
  gap:12px
}

.source-monogram {
  width:40px;
  height:40px;
  border-radius:5px;
  display:grid;
  place-items:center;
  font-size:16px;
  font-weight:600;
  background:var(--surface-soft);
  flex:none
}

.source-card-top h3 {
  font-size:15px;
  overflow-wrap:anywhere
}

.source-card-top p {
  font-size:12px;
  color:var(--muted);
  margin-top:4px
}

.source-card-top .status-badge {
  margin-left:auto
}

.source-stats {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:25px 0 21px
}

.source-stats span {
  display:block;
  font-size:12px;
  color:var(--muted)
}

.source-stats strong {
  display:block;
  font-size:19px;
  font-weight:550;
  margin-top:6px;
  letter-spacing:-.7px
}

.source-meta {
  font-size:12px;
  color:var(--muted);
  padding:12px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:8px
}

.source-meta code {
  font-size:12px;
  color:var(--ink)
}

.source-meta:last-of-type {
  border-bottom:1px solid var(--line);
  padding-top:0;
  border-top:0
}

.source-actions {
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:17px
}

.source-actions button {
  font-size:12px
}

.danger-text {
  color:var(--red)
}

.subscription-metrics {
  grid-template-columns:repeat(3,minmax(0,1fr))
}

.settings-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}

.settings-card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:5px;
  padding:25px
}

.settings-card h2 {
  margin-bottom:7px
}

.settings-card>p {
  font-size:12px;
  color:var(--muted);
  line-height:1.8
}

.settings-card form {
  margin-top:22px
}

.form-field {
  display:block;
  font-size:12px;
  font-weight:550;
  margin-bottom:17px
}

.form-field>input,.form-field>select,.form-field>.password-field {
  display:block;
  margin-top:7px
}

.form-field input {
  font-size:12px
}

.form-hint {
  font-size:12px;
  color:var(--muted);
  margin-top:-7px;
  margin-bottom:18px;
  line-height:1.7
}

.settings-detail {
  display:flex;
  justify-content:space-between;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:12px;
  gap:15px
}

.settings-detail span {
  color:var(--muted)
}

.settings-detail strong {
  font-weight:500;
  overflow-wrap:anywhere;
  text-align:right
}

.security-status {
  display:flex;
  gap:12px;
  align-items:center;
  background:var(--surface-soft);
  border:1px solid var(--line);
  border-radius:5px;
  padding:16px;
  margin:23px 0
}

.security-status .security-icon {
  font-size:23px;
  color:var(--teal)
}

.security-status strong {
  display:block;
  font-size:12px
}

.security-status p {
  font-size:12px;
  color:var(--muted);
  margin-top:3px
}

.settings-actions {
  display:flex;
  gap:9px;
  margin-top:20px
}

.audit-card {
  margin-top:20px
}

.audit-list {
  list-style:none;
  margin:14px 0 0;
  padding:0
}

.audit-list li {
  display:flex;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding:11px 0;
  gap:20px;
  font-size:12px
}

.audit-list li:last-child {
  border:0
}

.audit-list time {
  color:var(--muted);
  white-space:nowrap
}

.docs-grid {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);
  gap:22px
}

.docs-card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:5px;
  padding:25px;
  margin-bottom:20px
}

.docs-card h2 {
  font-size:17px;
  margin-bottom:12px
}

.docs-card h3 {
  font-size:12px;
  margin:24px 0 10px
}

.docs-card p,.docs-card li {
  font-size:12px;
  color:var(--muted);
  line-height:1.9
}

.docs-card ul,.docs-card ol {
  padding-left:19px;
  margin:10px 0
}

.docs-card li {
  margin-bottom:8px
}

.endpoint {
  background:var(--surface-soft);
  border:1px solid var(--line);
  border-radius:5px;
  padding:12px;
  display:flex;
  gap:11px;
  align-items:center;
  font-size:12px;
  margin:17px 0
}

.endpoint span {
  color:var(--teal);
  font-weight:650;
  font-size:12px
}

.endpoint code {
  overflow-wrap:anywhere
}

.code-container {
  position:relative;
  margin:16px 0
}

.code-container pre,pre.token-block {
  background:#111c2e;
  color:#d1dcf0;
  border-radius:5px;
  padding:21px;
  font-family:Consolas,"Courier New",monospace;
  font-size:12px;
  line-height:1.9;
  overflow-x:auto;
  white-space:pre;
  tab-size:2;
  margin:0
}

.code-copy {
  position:absolute;
  top:8px;
  right:8px;
  background:#22314a;
  border:1px solid #344565;
  border-radius:3px;
  color:#bfcde3;
  font-size:12px;
  padding:4px 7px
}

.docs-card .mini-table th,.docs-card .mini-table td {
  padding:9px 8px;
  white-space:normal;
  font-size:12px
}

.docs-card .mini-table th {
  font-size:12px
}

.docs-card code {
  font-family:Consolas,monospace;
  font-size:12px
}

.docs-note {
  background:var(--teal-soft);
  border-left:2px solid var(--teal);
  padding:12px 14px;
  font-size:12px;
  line-height:1.8;
  color:var(--teal);
  margin-top:17px
}

.doc-number {
  width:23px;
  height:23px;
  border-radius:4px;
  background:var(--blue-soft);
  color:var(--blue);
  display:inline-grid;
  place-items:center;
  margin-right:8px;
  font-size:12px
}

dialog {
  padding:25px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--surface);
  color:var(--ink);
  max-width:490px;
  width:calc(100% - 32px);
  box-shadow:0 25px 100px #0003;
  max-height:90vh;
  overflow-y:auto
}

dialog::backdrop {
  background:#101c2da6;
  backdrop-filter:blur(3px)
}

.modal-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:15px;
  margin-bottom:22px
}

.modal-header h2 {
  font-size:21px;
  letter-spacing:-.65px
}

.modal-header .icon-button {
  font-size:25px;
  line-height:1;
  margin-top:-7px;
  margin-right:-7px
}

.modal-description {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  margin-bottom:20px
}

.modal-actions {
  display:flex;
  justify-content:flex-end;
  gap:9px;
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:23px
}

.color-field {
  display:flex;
  gap:10px;
  align-items:center
}

.color-field input {
  width:46px;
  height:34px;
  padding:3px;
  cursor:pointer
}

.color-field span {
  font-size:12px;
  color:var(--muted)
}

.form-error {
  font-size:12px;
  color:var(--red);
  margin:12px 0;
  line-height:1.7
}

.token-block {
  word-break:break-all;
  white-space:pre-wrap!important;
  margin:17px 0!important;
  font-size:12px!important
}

.token-warning {
  font-size:12px;
  color:var(--orange);
  padding:12px 14px;
  background:var(--surface-soft);
  border:1px solid var(--line);
  border-radius:5px;
  line-height:1.8
}

.toast {
  position:fixed;
  right:25px;
  bottom:25px;
  z-index:70;
  background:var(--ink);
  color:var(--surface);
  border-radius:5px;
  padding:13px 19px;
  box-shadow:var(--shadow);
  font-size:12px;
  max-width:420px
}

.chart-empty-overlay {
  position:absolute;
  inset:20px 50px 30px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:7px
}

.chart-empty-overlay strong {
  font-size:12px;
  font-weight:550
}

.chart-empty-overlay span {
  font-size:12px;
  color:var(--muted)
}

.chart-tooltip {
  position:absolute;
  z-index:4;
  pointer-events:none;
  background:var(--ink);
  color:var(--surface);
  border-radius:4px;
  padding:9px 12px;
  font-size:12px;
  box-shadow:var(--shadow);
  line-height:1.8;
  min-width:130px
}

.chart-tooltip strong {
  display:block;
  font-size:12px;
  margin-bottom:3px
}

.chart-hover-line {
  stroke:var(--muted);
  stroke-width:1;
  stroke-dasharray:3 3
}

.loader-line {
  height:10px;
  width:60%;
  background:var(--line);
  border-radius:3px;
  animation:loading 1.5s ease-in-out infinite
}

.metric-value .loader-line {
  height:27px;
  width:80%;
  margin:14px 0
}

.loading-panel {
  height:220px;
  display:grid;
  place-items:center
}

.loading-panel .loader-line {
  max-width:200px
}

@keyframes loading {
  50% {
    opacity:.4
  }
}

.sidebar-overlay {
  position:fixed;
  inset:0;
  background:#0e182980;
  z-index:29;
  border:0
}

.auth-body {
  min-height:100vh;
  background:var(--surface)
}

.auth-layout {
  display:grid;
  grid-template-columns:minmax(390px,46%) 1fr;
  min-height:100vh
}

.auth-story {
  background:#111c2e;
  color:#fff;
  padding:45px 55px;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column
}

.auth-story .brand {
  padding:0
}

.auth-story-content {
  margin:auto 0;
  position:relative;
  z-index:1;
  max-width:450px;
  padding:65px 0
}

.auth-story .eyebrow {
  color:#7c96c2;
  font-size:12px;
  margin-bottom:18px
}

.auth-story h1 {
  font-size:45px;
  font-weight:500;
  letter-spacing:-2px;
  line-height:1.16
}

.auth-story h1 span {
  color:#829fff
}

.auth-story p {
  font-size:13px;
  line-height:1.9;
  color:#9bacc5;
  max-width:350px;
  margin-top:24px
}

.auth-features {
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:35px;
  font-size:12px;
  color:#b4c2d8
}

.auth-features>span {
  display:flex;
  align-items:center;
  gap:10px
}

.auth-features i {
  width:18px;
  height:18px;
  border:1px solid #415774;
  border-radius:4px;
  display:grid;
  place-items:center;
  font-size:12px;
  font-style:normal;
  color:#8ed1c0
}

.auth-story-footer {
  font-size:12px;
  color:#617791;
  display:flex;
  align-items:center;
  gap:9px;
  z-index:1
}

.auth-orbit {
  position:absolute;
  width:480px;
  height:480px;
  bottom:-130px;
  right:-240px;
  border:1px solid #405c8a36;
  border-radius:50%;
  pointer-events:none
}

.auth-orbit::before,.auth-orbit::after {
  content:"";
  position:absolute;
  border:1px solid #405c8a36;
  border-radius:50%;
  inset:70px
}

.auth-orbit::after {
  inset:140px
}

.auth-main {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:70px 50px;
  position:relative
}

.auth-controls {
  position:absolute;
  top:30px;
  right:38px;
  display:flex;
  gap:18px;
  align-items:center
}

.auth-form-wrap {
  width:100%;
  max-width:365px
}

.auth-form-wrap .eyebrow {
  font-size:12px
}

.auth-form-wrap h2 {
  font-size:29px;
  font-weight:600;
  letter-spacing:-1px
}

.auth-subtitle {
  font-size:12px;
  line-height:1.9;
  color:var(--muted);
  margin:12px 0 29px
}

.auth-form .form-field {
  font-size:12px;
  margin-bottom:19px
}

.auth-form input {
  padding:12px;
  font-size:12px
}

.password-field {
  position:relative
}

.password-field input {
  padding-right:44px
}

.password-toggle {
  position:absolute;
  right:7px;
  top:6px;
  border:0;
  background:none;
  color:var(--muted);
  width:31px;
  height:31px;
  font-size:16px;
  display:grid;
  place-items:center
}

.auth-form .button {
  width:100%;
  font-size:12px;
  padding:12px;
  margin-top:4px;
  min-height:43px
}

.auth-divider {
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--muted);
  font-size:12px;
  margin:27px 0 20px
}

.auth-divider::before,.auth-divider::after {
  content:"";
  flex:1;
  height:1px;
  background:var(--line)
}

.auth-demo-link {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid var(--line);
  border-radius:5px;
  padding:13px 15px;
  color:var(--ink);
  font-size:12px;
  background:var(--surface-soft)
}

.auth-demo-link:hover {
  border-color:var(--blue)
}

.auth-demo-link span:last-child {
  color:var(--blue);
  font-size:17px
}

.auth-bottom-note {
  display:flex;
  align-items:flex-start;
  gap:8px;
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
  margin-top:24px
}

.auth-bottom-note svg {
  width:13px;
  height:13px;
  flex:none;
  margin-top:2px
}

.auth-link {
  font-size:12px;
  text-align:center;
  margin-top:21px
}

.auth-legal {
  position:absolute;
  bottom:28px;
  left:50px;
  right:50px;
  text-align:center;
  font-size:12px;
  color:var(--muted)
}

@media(min-width:1500px) {
  main {
    padding-top:40px
  }
  .page-heading {
    margin-bottom:35px
  }
  .metric-card {
    padding:23px 23px 21px
  }
  .metric-card:first-child {
    padding-top:22px
  }
  .metric-value {
    font-size:34px;
    margin-top:16px
  }
  .metric-footer {
    font-size:12px
  }
  .mini-sparkline {
    display:block
  }
  .flow-chart {
    height:276px
  }
  .donut-chart {
    height:197px
  }
  .donut-wrap {
    width:180px;
    height:180px
  }
  .panel-heading {
    padding-top:24px
  }
  .donut-legend {
    gap:10px
  }
  .chart-footnote {
    padding:17px 0
  }
  .metric-top {
    font-size:12px
  }
  .panel-heading h2 {
    font-size:16px
  }
  td {
    padding-top:16px;
    padding-bottom:16px
  }
  .source-card {
    padding:26px
  }
}

@media(max-width:1200px) {
  .sidebar {
    width:206px;
    padding-left:12px;
    padding-right:12px
  }
  .app-shell {
    margin-left:206px
  }
  .topbar {
    padding-left:26px;
    padding-right:26px
  }
  main {
    padding-left:26px;
    padding-right:26px
  }
  .demo-banner {
    padding-left:26px;
    padding-right:26px
  }
  .metric-card {
    padding-left:14px;
    padding-right:14px
  }
  .metric-value {
    font-size:24px
  }
  .metric-footer {
    font-size:12px;
    gap:4px
  }
  .chart-grid,.activity-grid {
    grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr);
    gap:16px
  }
  .metrics-grid {
    gap:12px
  }
  .panel-heading {
    padding-left:17px;
    padding-right:17px
  }
  .panel-heading h2 {
    font-size:13px
  }
  .chart-range {
    display:none
  }
  .source-filter select {
    max-width:140px
  }
  .chart-footnote {
    font-size:12px
  }
  .recent-panel td,.recent-panel th {
    padding-left:15px;
    padding-right:15px
  }
  .recent-panel .date-column {
    display:none
  }
  .sources-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .auth-story {
    padding:40px
  }
  .auth-story h1 {
    font-size:39px
  }
  .auth-main {
    padding-left:40px;
    padding-right:40px
  }
  .demo-banner {
    font-size:12px
  }
}

@media(max-width:1000px) {
  .sidebar {
    width:190px;
    padding-left:10px;
    padding-right:10px
  }
  .app-shell {
    margin-left:190px
  }
  .brand {
    font-size:28px;
    gap:9px
  }
  .workspace {
    padding-left:7px;
    padding-right:7px;
    gap:7px
  }
  .workspace strong {
    font-size:12px
  }
  .nav-item {
    font-size:12px;
    gap:9px;
    padding-left:10px;
    padding-right:10px
  }
  .nav-item .icon {
    width:16px;
    height:16px
  }
  .nav-label {
    font-size:12px
  }
  .heading-actions {
    gap:7px
  }
  .button {
    padding:8px 10px;
    font-size:12px
  }
  .page-heading {
    gap:13px
  }
  .page-heading h1 {
    font-size:26px
  }
  .page-heading p {
    font-size:12px
  }
  .metrics-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .metric-card {
    padding:17px
  }
  .metric-card:first-child {
    padding-top:16px
  }
  .metric-value {
    font-size:27px;
    margin:10px 0
  }
  .metric-footer {
    font-size:12px
  }
  .chart-grid,.activity-grid {
    grid-template-columns:minmax(0,1fr)
  }
  .distribution-panel {
    display:grid;
    grid-template-columns:190px 1fr;
    grid-template-rows:auto 1fr auto
  }
  .distribution-panel .panel-heading {
    grid-column:1/-1
  }
  .donut-chart {
    height:190px
  }
  .donut-legend {
    padding-top:20px;
    align-content:center
  }
  .panel-bottom-link {
    grid-column:1/-1
  }
  .pulse-panel .pulse-body {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:15px;
    padding-top:18px;
    padding-bottom:18px
  }
  .pulse-row {
    border:0;
    padding:0;
    display:block
  }
  .pulse-row-icon {
    display:none
  }
  .pulse-row-value {
    display:block;
    margin-top:8px
  }
  .pulse-footer {
    padding-top:10px;
    padding-bottom:10px
  }
  .pulse-footer br {
    display:none
  }
  .filter-bar {
    align-items:flex-start
  }
  .filters {
    flex-wrap:wrap;
    gap:9px
  }
  .live-status {
    padding-top:5px
  }
  .filter-control select {
    font-size:12px;
    max-width:145px
  }
  .demo-banner {
    flex-wrap:wrap;
    gap:6px
  }
  .demo-banner a {
    display:none
  }
  .sources-grid {
    gap:15px
  }
  .source-card {
    padding:17px
  }
  .source-card-top {
    gap:9px
  }
  .source-card-top h3 {
    font-size:13px
  }
  .source-card-top .status-badge {
    font-size:12px
  }
  .source-monogram {
    width:32px;
    height:32px
  }
  .source-stats strong {
    font-size:17px
  }
  .settings-grid,.docs-grid {
    grid-template-columns:1fr
  }
  .subscription-metrics {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .subscription-metrics .metric-value {
    font-size:23px
  }
  .subscription-metrics .metric-footer {
    white-space:normal
  }
  .section-callout .text-button {
    display:none
  }
}

@media(max-width:960px) {
  .sidebar {
    transform:translateX(-100%);
    width:var(--sidebar-width);
    transition:transform .2s;
    padding:26px 17px 0
  }
  .sidebar.open {
    transform:translateX(0)
  }
  .app-shell {
    margin-left:0
  }
  .topbar {
    height:59px;
    padding:0 20px
  }
  .mobile-menu {
    display:grid;
    margin-left:-6px
  }
  .breadcrumb {
    gap:9px;
    font-size:12px
  }
  .breadcrumb-root,.breadcrumb-slash {
    display:none
  }
  .topbar-actions {
    gap:12px
  }
  .private-badge,.topbar-divider {
    display:none
  }
  .demo-banner {
    padding:9px 20px;
    font-size:12px;
    gap:8px
  }
  .demo-banner>span:nth-child(2) {
    flex:1;
    min-width:180px;
    line-height:1.7
  }
  .demo-label {
    font-size:12px;
    padding:2px 4px
  }
  main {
    padding:26px 20px 0
  }
  .page-heading {
    align-items:flex-start;
    flex-wrap:wrap;
    gap:18px;
    margin-bottom:19px
  }
  .page-heading h1 {
    font-size:28px
  }
  .page-heading p {
    font-size:12px;
    max-width:330px;
    line-height:1.8;
    margin-top:9px
  }
  .eyebrow {
    font-size:12px;
    letter-spacing:1.5px
  }
  .heading-actions {
    padding-top:0;
    width:100%;
    justify-content:flex-end
  }
  .heading-actions .button {
    font-size:12px;
    padding:9px 12px;
    min-height:36px
  }
  .heading-actions .button-primary {
    flex:1
  }
  .heading-actions .button-secondary {
    min-width:103px
  }
  .filter-bar {
    padding-top:0;
    padding-bottom:17px;
    flex-wrap:wrap;
    gap:10px
  }
  .filters {
    gap:11px;
    flex:1 0 100%;
    justify-content:space-between;
    padding:11px 0;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line)
  }
  .filter-control {
    gap:5px
  }
  .filter-control select {
    max-width:133px;
    font-size:12px;
    padding-right:15px
  }
  .filter-divider {
    display:none
  }
  .filter-control.source-filter select {
    max-width:120px
  }
  .filter-control>.icon {
    width:12px;
    height:12px
  }
  .currency-symbol {
    font-size:12px
  }
  .live-status {
    margin-left:auto;
    padding:0;
    font-size:12px
  }
  .metrics-grid {
    gap:11px;
    margin-bottom:17px
  }
  .metric-card {
    padding:15px 13px
  }
  .metric-card:first-child {
    padding-top:14px
  }
  .metric-top {
    font-size:12px
  }
  .metric-symbol {
    width:19px;
    height:19px;
    font-size:12px
  }
  .metric-value {
    font-size:26px;
    margin:12px 0
  }
  .metric-footer {
    font-size:12px;
    gap:4px;
    flex-wrap:wrap
  }
  .metric-change {
    font-size:12px
  }
  .chart-grid,.activity-grid {
    gap:17px;
    margin-bottom:17px
  }
  .panel-heading {
    padding:19px 17px 0
  }
  .panel-heading h2 {
    font-size:14px
  }
  .panel-heading p {
    font-size:12px
  }
  .chart-legend {
    padding:19px 17px 8px;
    font-size:12px
  }
  .flow-chart {
    height:215px;
    padding-left:5px;
    padding-right:11px
  }
  .chart-footnote {
    font-size:12px;
    margin-left:17px;
    margin-right:17px;
    line-height:1.7
  }
  .distribution-panel {
    grid-template-columns:45% 55%
  }
  .donut-wrap {
    width:147px;
    height:147px
  }
  .donut-chart {
    height:184px
  }
  .donut-center strong {
    font-size:19px
  }
  .donut-legend {
    padding-left:5px;
    padding-right:17px;
    gap:13px
  }
  .donut-legend-row {
    gap:5px;
    font-size:12px;
    flex-wrap:wrap
  }
  .donut-legend-row strong {
    font-size:12px
  }
  .donut-percent {
    font-size:12px;
    min-width:23px
  }
  .recent-panel .source-column {
    display:none
  }
  .recent-panel td,.recent-panel th {
    padding-left:16px;
    padding-right:16px
  }
  .event-cell {
    min-width:145px
  }
  .event-label {
    max-width:180px
  }
  .event-reference {
    max-width:170px
  }
  .pulse-panel .pulse-body {
    gap:15px
  }
  .pulse-row-text strong {
    font-size:12px
  }
  .pulse-row-text span {
    font-size:12px;
    max-width:95px
  }
  .pulse-row-value {
    font-size:20px
  }
  .pulse-row-value.money {
    font-size:17px
  }
  .pulse-footer {
    font-size:12px
  }
  .page-footer {
    font-size:12px;
    padding-top:6px;
    align-items:flex-start
  }
  .page-footer>span:first-child {
    gap:7px
  }
  .page-footer>span:last-child {
    text-align:right
  }
  .footer-brand {
    font-size:12px
  }
  .transaction-tools {
    flex-wrap:wrap;
    padding:15px;
    gap:12px
  }
  .search-box {
    max-width:none;
    flex:1 0 100%
  }
  .transaction-tools>select {
    flex:1
  }
  .result-count {
    font-size:12px
  }
  .pagination {
    font-size:12px;
    padding:13px 15px
  }
  .pagination .button {
    font-size:12px;
    padding:6px 8px
  }
  .sources-grid {
    grid-template-columns:1fr
  }
  .source-card {
    padding:22px
  }
  .source-card-top h3 {
    font-size:16px
  }
  .source-card-top .status-badge {
    font-size:12px
  }
  .source-card-top p {
    font-size:12px
  }
  .source-stats strong {
    font-size:24px
  }
  .source-monogram {
    width:41px;
    height:41px
  }
  .source-meta {
    font-size:12px
  }
  .source-actions button {
    font-size:12px
  }
  .section-callout {
    padding:16px;
    gap:12px
  }
  .section-callout strong {
    font-size:12px
  }
  .section-callout p {
    font-size:12px;
    line-height:1.8
  }
  .section-callout .callout-icon {
    width:34px;
    height:34px
  }
  .subscription-metrics {
    grid-template-columns:1fr
  }
  .subscription-metrics .metric-card {
    padding:18px
  }
  .subscription-metrics .metric-value {
    font-size:30px
  }
  .subscription-metrics .metric-footer {
    font-size:12px
  }
  .settings-card,.docs-card {
    padding:20px
  }
  .settings-detail {
    font-size:12px
  }
  .audit-list li {
    flex-wrap:wrap;
    gap:4px
  }
  .audit-list time {
    font-size:12px
  }
  .toast {
    left:16px;
    right:16px;
    bottom:16px;
    font-size:12px
  }
  .auth-layout {
    grid-template-columns:1fr
  }
  .auth-story {
    min-height:auto;
    padding:28px
  }
  .auth-story-content {
    padding:32px 0 12px;
    max-width:none
  }
  .auth-story h1 {
    font-size:31px;
    letter-spacing:-1.2px;
    max-width:400px
  }
  .auth-story p,.auth-features,.auth-story-footer {
    display:none
  }
  .auth-story .eyebrow {
    font-size:12px;
    margin-bottom:12px
  }
  .auth-story .brand {
    font-size:29px
  }
  .auth-main {
    padding:38px 26px 75px;
    min-height:650px;
    justify-content:flex-start
  }
  .auth-controls {
    top:-60px;
    right:25px;
    color:#bdcbe0
  }
  .auth-controls .icon-button {
    color:#bdcbe0
  }
  .auth-controls .icon-button:hover {
    background:#ffffff10
  }
  .auth-form-wrap h2 {
    font-size:26px
  }
  .auth-subtitle {
    font-size:12px
  }
  .auth-legal {
    bottom:23px;
    left:26px;
    right:26px;
    font-size:12px
  }
  .auth-orbit {
    width:350px;
    height:350px;
    right:-80px;
    bottom:-250px
  }
}

@media(max-width:390px) {
  main {
    padding-left:14px;
    padding-right:14px
  }
  .topbar {
    padding-left:14px;
    padding-right:14px
  }
  .demo-banner {
    padding-left:14px;
    padding-right:14px
  }
  .metric-value {
    font-size:23px
  }
  .metric-top {
    font-size:12px
  }
  .filter-control select {
    max-width:118px;
    font-size:12px
  }
  .filter-control.source-filter select {
    max-width:107px
  }
  .filters {
    gap:5px
  }
  .donut-wrap {
    width:131px;
    height:131px
  }
  .donut-center strong {
    font-size:17px
  }
  .event-label {
    max-width:125px
  }
  .event-reference {
    max-width:125px
  }
  .recent-panel td,.recent-panel th {
    padding-left:12px;
    padding-right:12px
  }
  .recent-panel .event-cell {
    min-width:123px;
    gap:7px
  }
  .recent-panel .event-icon {
    width:26px
  }
  .pulse-row-value.money {
    font-size:15px
  }
  .page-footer>span:first-child>span:last-child {
    display:none
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important
  }
}

/* Reading and interaction sizes remain comfortable at every viewport. */
body {
  font-size:14px
}

.sidebar {
  overflow-y:auto;
  scrollbar-width:thin
}

.workspace strong,.sidebar-user strong {
  font-size:14px
}

.workspace div>span,.sidebar-user div>span {
  font-size:12px
}

.workspace {
  padding:13px 8px;
  gap:9px
}

.workspace-avatar {
  width:33px;
  height:35px
}

.nav-label {
  font-size:11px;
  letter-spacing:1.35px
}

.nav-item {
  font-size:14px;
  line-height:1.45;
  gap:10px;
  padding:12px 10px;
  min-height:46px
}

.nav-item .icon {
  width:18px;
  height:18px
}

.nav-count,.version-tag {
  font-size:11px
}

.connection-note strong {
  font-size:14px;
  max-width:170px;
  line-height:1.6
}

.connection-note p,.connection-note .text-button {
  font-size:12px
}

.connection-note .text-button {
  line-height:1.5;
  text-align:left
}

.sidebar-user strong {
  max-width:105px
}

.sidebar-user .logout {
  width:32px;
  height:36px
}

.breadcrumb,.language-button,.private-badge {
  font-size:12px
}

.language-button {
  min-height:36px;
  min-width:36px
}

.topbar-actions {
  gap:14px
}

.icon-button {
  min-width:34px;
  min-height:34px
}

.topbar .icon-button .icon {
  width:19px;
  height:19px
}

.demo-banner {
  font-size:12px;
  line-height:1.7;
  padding-top:10px;
  padding-bottom:10px
}

.demo-label {
  font-size:10px;
  letter-spacing:.8px;
  white-space:nowrap
}

.demo-banner a {
  font-size:12px
}

.eyebrow {
  font-size:11px;
  letter-spacing:1.4px
}

.page-heading p {
  font-size:14px;
  line-height:1.75
}

.page-heading {
  align-items:center;
  gap:22px
}

.heading-actions {
  flex-shrink:0
}

.button {
  font-size:13px;
  min-height:40px;
  padding:10px 14px
}

.button .icon {
  width:16px;
  height:16px
}

.button-small {
  font-size:12px;
  min-height:36px;
  padding:8px 11px
}

.text-button {
  font-size:13px;
  min-height:30px;
  line-height:1.5
}

.text-button .icon {
  width:16px;
  height:16px
}

.filter-bar {
  gap:16px;
  flex-wrap:wrap
}

.filters {
  gap:16px
}

.filter-control select {
  font-size:14px;
  max-width:205px;
  min-height:35px;
  padding-right:25px
}

.filter-control>.icon {
  width:16px;
  height:16px
}

.currency-symbol {
  font-size:15px
}

.source-filter select {
  max-width:210px
}

.filter-divider {
  height:22px
}

.live-status {
  font-size:12px;
  min-height:32px;
  margin-left:auto
}

.live-status button {
  font-size:21px;
  min-width:32px;
  min-height:32px;
  padding:0
}

.metrics-grid {
  gap:16px
}

.metric-card {
  padding:20px 18px
}

.metric-card:first-child {
  padding-top:19px
}

.metric-top {
  font-size:13px;
  gap:9px;
  align-items:flex-start;
  min-height:24px
}

.metric-symbol {
  width:25px;
  height:25px;
  font-size:15px;
  flex:none
}

.metric-value {
  font-size:30px;
  margin:13px 0 14px;
  letter-spacing:-1.1px
}

.metric-footer {
  font-size:12px;
  white-space:normal;
  flex-wrap:wrap;
  gap:5px;
  line-height:1.6
}

.metric-change {
  font-size:12px;
  padding:2px 5px
}

.mini-sparkline {
  display:none
}

.panel-heading h2,.recent-panel h2,.pulse-panel h2 {
  font-size:16px;
  line-height:1.45;
  letter-spacing:-.35px
}

.panel-heading p {
  font-size:12px;
  line-height:1.65
}

.unit-label {
  font-size:11px;
  padding:4px 7px
}

.chart-legend {
  font-size:12px;
  gap:18px;
  flex-wrap:wrap;
  padding-top:19px
}

.chart-range {
  font-size:12px
}

.chart-axis-text {
  font-size:12px
}

.flow-chart {
  height:263px
}

.chart-footnote {
  font-size:12px;
  line-height:1.7;
  margin-top:8px;
  align-items:flex-start
}

.note-icon {
  font-size:15px;
  flex:none
}

.chart-footnote>span:last-child {
  min-width:0
}

.donut-chart {
  height:195px
}

.donut-wrap {
  width:180px;
  height:180px
}

.donut-center span {
  font-size:12px
}

.donut-center strong {
  font-size:23px
}

.donut-legend {
  gap:12px;
  padding-bottom:17px
}

.donut-legend-row,.donut-legend-row strong,.donut-percent {
  font-size:12px
}

.donut-percent {
  min-width:37px
}

.donut-legend-row {
  gap:8px
}

.donut-legend-row>span:nth-child(2) {
  max-width:44%
}

.panel-bottom-link {
  font-size:12px;
  min-height:46px
}

.panel-bottom-link .icon {
  width:16px;
  height:16px
}

.recent-panel .text-button {
  font-size:12px;
  min-height:30px;
  margin:0
}

.chart-grid,.activity-grid {
  grid-template-columns:minmax(0,1.9fr) minmax(310px,1fr)
}

table {
  font-size:14px
}

th {
  font-size:11px;
  padding:13px 18px;
  letter-spacing:.6px
}

td {
  font-size:13px;
  padding:15px 18px
}

.event-icon {
  width:35px;
  height:36px;
  font-size:17px
}

.event-label {
  font-size:13px;
  max-width:210px
}

.event-reference {
  font-size:12px;
  max-width:210px
}

.event-cell {
  gap:10px
}

.source-cell {
  gap:7px
}

.status-badge {
  font-size:12px;
  padding:4px 7px
}

.pulse-row {
  gap:11px;
  padding:19px 0
}

.pulse-row-icon {
  width:35px;
  height:35px;
  font-size:18px;
  flex:none
}

.pulse-row-text strong {
  font-size:13px
}

.pulse-row-text span {
  font-size:12px;
  line-height:1.6
}

.pulse-row-value {
  font-size:24px
}

.pulse-row-value.money {
  font-size:20px;
  white-space:nowrap
}

.pulse-footer {
  font-size:12px;
  line-height:1.7;
  align-items:flex-start;
  padding:17px 21px
}

.pulse-footer .icon {
  flex:none;
  margin-top:3px
}

.page-footer {
  font-size:12px;
  line-height:1.7;
  gap:20px
}

.footer-brand {
  font-size:15px
}

.page-footer>span:first-child {
  flex-shrink:0
}

.page-footer>span:last-child {
  text-align:right
}

.alert {
  font-size:14px;
  line-height:1.7
}

.empty-state strong {
  font-size:15px
}

.empty-state p {
  font-size:14px;
  line-height:1.7
}

.empty-state {
  padding:44px 25px
}

.data-note {
  font-size:12px;
  line-height:1.85
}

.search-box input,.transaction-tools>select,.panel-heading>select {
  font-size:14px;
  min-height:41px
}

.result-count,.pagination {
  font-size:12px
}

.transaction-tools {
  flex-wrap:wrap
}

.result-count {
  white-space:nowrap
}

.section-callout strong {
  font-size:15px
}

.section-callout p {
  font-size:14px;
  line-height:1.7
}

.section-callout .text-button {
  font-size:13px;
  white-space:normal;
  flex-shrink:0
}

.source-card-top h3 {
  font-size:17px
}

.source-card-top p {
  font-size:12px
}

.source-card-top .status-badge {
  font-size:12px
}

.source-monogram {
  width:43px;
  height:43px
}

.source-stats span {
  font-size:12px
}

.source-stats strong {
  font-size:23px
}

.source-meta,.source-meta code {
  font-size:12px
}

.source-meta {
  line-height:1.7;
  flex-wrap:wrap
}

.source-actions button {
  font-size:13px;
  min-height:35px
}

.source-actions {
  flex-wrap:wrap
}

.settings-card h2 {
  font-size:18px
}

.settings-card>p,.form-field,.settings-detail {
  font-size:14px
}

.settings-card>p {
  line-height:1.75
}

.form-field>input,.form-field>select,.form-field input {
  font-size:14px;
  min-height:43px
}

.form-field {
  line-height:1.6
}

.form-hint {
  font-size:12px;
  line-height:1.8
}

.settings-detail strong {
  max-width:67%
}

.security-status strong {
  font-size:14px
}

.security-status p {
  font-size:12px;
  line-height:1.8
}

.security-status .security-icon {
  flex:none
}

.audit-list li {
  font-size:13px;
  line-height:1.7
}

.audit-list time {
  font-size:12px
}

.docs-card h2 {
  font-size:19px
}

.docs-card h3 {
  font-size:15px
}

.docs-card p,.docs-card li {
  font-size:14px;
  line-height:1.85
}

.docs-card code {
  font-size:13px
}

.endpoint {
  font-size:14px
}

.endpoint span {
  font-size:12px
}

.code-container pre {
  font-size:13px;
  line-height:1.8;
  padding-top:42px
}

.code-copy {
  font-size:12px;
  min-height:28px;
  padding:5px 8px
}

.docs-card .mini-table th {
  font-size:11px
}

.docs-card .mini-table td {
  font-size:13px;
  line-height:1.7
}

.docs-note {
  font-size:13px;
  line-height:1.8
}

.modal-description {
  font-size:14px
}

.modal-header h2 {
  font-size:22px
}

.modal-actions {
  flex-wrap:wrap
}

.color-field input {
  width:48px;
  height:38px;
  min-height:38px
}

.color-field span {
  font-size:12px
}

.form-error,.token-warning {
  font-size:13px;
  line-height:1.8
}

.token-block {
  font-size:14px!important
}

.toast {
  font-size:14px
}

.chart-empty-overlay strong {
  font-size:14px
}

.chart-empty-overlay span {
  font-size:12px
}

.chart-tooltip {
  font-size:12px
}

.chart-tooltip strong {
  font-size:12px
}

.auth-main {
  max-width:none;
  margin:0
}

.auth-story h1 .auth-title-main {
  color:#fff
}

.auth-story p {
  font-size:15px;
  line-height:1.9
}

.auth-story .eyebrow {
  font-size:11px
}

.auth-features {
  font-size:14px;
  gap:18px;
  line-height:1.75
}

.auth-features i {
  width:21px;
  height:21px;
  font-size:12px;
  flex:none
}

.auth-story-footer {
  font-size:12px;
  line-height:1.8
}

.auth-form-wrap {
  max-width:390px
}

.auth-form-wrap .eyebrow {
  font-size:11px
}

.auth-subtitle {
  font-size:14px;
  line-height:1.85
}

.auth-form .form-field {
  font-size:14px
}

.auth-form input {
  font-size:14px;
  min-height:45px
}

.password-toggle {
  width:35px;
  height:35px;
  top:5px
}

.auth-form .button {
  font-size:14px;
  min-height:45px
}

.auth-divider {
  font-size:11px;
  letter-spacing:.5px
}

.auth-demo-link {
  font-size:14px;
  min-height:47px
}

.auth-bottom-note {
  font-size:12px;
  line-height:1.8
}

.auth-bottom-note svg {
  width:16px;
  height:16px
}

.auth-link {
  font-size:14px;
  line-height:1.8
}

.auth-legal {
  font-size:12px
}

.auth-controls .icon-button {
  width:36px;
  height:36px
}

@media(min-width:1500px) {
  .metric-card {
    padding:24px
  }
  .metric-card:first-child {
    padding-top:23px
  }
  .metric-value {
    font-size:34px
  }
  .chart-grid,.activity-grid {
    grid-template-columns:minmax(0,1.9fr) minmax(360px,1fr)
  }
  .flow-chart {
    height:290px
  }
  .panel-heading {
    padding-top:24px
  }
  .donut-chart {
    height:215px
  }
  .donut-wrap {
    width:195px;
    height:195px
  }
  .donut-center strong {
    font-size:25px
  }
}

@media(max-width:1280px) {
  .page-heading {
    flex-wrap:wrap;
    gap:17px
  }
  .heading-actions {
    margin-left:auto
  }
  .chart-grid,.activity-grid {
    grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr)
  }
  .chart-range {
    display:none
  }
  .metric-value {
    font-size:27px
  }
  .metric-card {
    padding-left:15px;
    padding-right:15px
  }
  .metric-top {
    font-size:13px
  }
  .source-filter select {
    max-width:180px
  }
  .recent-panel .date-column {
    display:none
  }
  .recent-panel .source-column {
    display:none
  }
  .source-stats strong {
    font-size:21px
  }
  .sidebar {
    width:var(--sidebar-width)
  }
  .app-shell {
    margin-left:var(--sidebar-width)
  }
  .nav-item {
    font-size:14px
  }
  .panel-heading h2 {
    font-size:15px
  }
  .pulse-row-value.money {
    font-size:18px
  }
  .pulse-row-text strong {
    font-size:13px
  }
  .pulse-row-icon {
    width:31px;
    height:31px
  }
  .pulse-body {
    padding-left:17px;
    padding-right:17px
  }
}

@media(max-width:1080px) {
  .metrics-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .metric-value {
    font-size:30px
  }
  .chart-grid,.activity-grid {
    grid-template-columns:minmax(0,1fr)
  }
  .distribution-panel {
    display:grid;
    grid-template-columns:220px 1fr;
    grid-template-rows:auto 1fr auto
  }
  .distribution-panel .panel-heading {
    grid-column:1/-1
  }
  .distribution-panel .donut-legend {
    align-content:center;
    padding-top:15px;
    gap:15px
  }
  .donut-chart {
    height:214px
  }
  .donut-legend-row>span:nth-child(2) {
    max-width:44%
  }
  .panel-bottom-link {
    grid-column:1/-1
  }
  .pulse-panel .pulse-body {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
    padding-top:21px;
    padding-bottom:21px
  }
  .pulse-row {
    display:block;
    border:0;
    padding:0
  }
  .pulse-row-icon {
    display:none
  }
  .pulse-row-value {
    display:block;
    margin-top:10px
  }
  .pulse-row-value.money {
    font-size:22px
  }
  .pulse-row-text strong {
    font-size:13px
  }
  .pulse-row-text span {
    font-size:12px;
    max-width:none
  }
  .pulse-footer br {
    display:none
  }
  .filters {
    flex-wrap:wrap;
    gap:10px 18px
  }
  .filter-control select {
    font-size:14px;
    max-width:215px
  }
  .filter-divider {
    display:none
  }
  .subscription-metrics {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .subscription-metrics .metric-value {
    font-size:25px
  }
  .subscription-metrics .metric-top {
    font-size:12px;
    min-height:42px
  }
  .settings-grid,.docs-grid {
    grid-template-columns:1fr
  }
  .section-callout .text-button {
    display:none
  }
  .source-card-top {
    flex-wrap:wrap
  }
  .source-card-top .status-badge {
    margin-left:0
  }
  .source-card-top>div {
    flex:1
  }
  .sources-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .source-stats {
    flex-wrap:wrap
  }
  .auth-story {
    padding:35px
  }
  .auth-story h1 {
    font-size:39px
  }
  .auth-story p {
    font-size:14px
  }
  .auth-features {
    font-size:13px
  }
  .auth-main {
    padding-left:35px;
    padding-right:35px
  }
  .auth-form-wrap h2 {
    font-size:27px
  }
}

@media(max-width:960px) {
  .sidebar {
    width:var(--sidebar-width)
  }
  .app-shell {
    margin-left:0
  }
  .sidebar .nav-item {
    min-height:46px;
    font-size:14px
  }
  .sidebar .workspace strong {
    font-size:14px
  }
  .sidebar .workspace-avatar {
    font-size:14px
  }
  .sidebar .workspace {
    margin-top:27px;
    margin-bottom:22px
  }
  .sidebar .nav-label {
    font-size:11px
  }
  .sidebar .sidebar-user strong {
    font-size:14px
  }
  .sidebar .sidebar-user div>span {
    font-size:12px
  }
  .sidebar .connection-note {
    margin-top:18px;
    margin-bottom:19px
  }
  .topbar {
    min-height:61px
  }
  .topbar-actions {
    gap:10px
  }
  .icon-button,.language-button {
    min-height:40px;
    min-width:40px
  }
  .breadcrumb {
    font-size:13px
  }
  .demo-banner {
    font-size:12px;
    gap:10px;
    padding-top:11px;
    padding-bottom:11px
  }
  .demo-label {
    font-size:10px
  }
  .demo-banner>span:nth-child(2) {
    min-width:180px
  }
  .page-heading {
    gap:20px
  }
  .page-heading p {
    font-size:14px;
    max-width:100%
  }
  .page-heading h1 {
    font-size:28px
  }
  .page-heading .eyebrow {
    font-size:10px
  }
  .heading-actions {
    margin-left:0;
    gap:10px;
    width:100%
  }
  .heading-actions .button {
    min-height:43px;
    font-size:13px;
    padding:10px 13px
  }
  .heading-actions .button-secondary {
    min-width:110px
  }
  .button,.button-small {
    min-height:40px;
    font-size:13px;
    padding:10px 12px
  }
  .filter-bar {
    gap:8px
  }
  .filters {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px 12px;
    padding:12px 0;
    align-items:center
  }
  .filter-control {
    gap:7px;
    min-width:0
  }
  .filter-control select {
    font-size:14px;
    max-width:none;
    width:100%;
    min-height:41px;
    padding-right:20px
  }
  .filter-control.source-filter {
    grid-column:1/-1
  }
  .filter-control.source-filter select {
    max-width:none;
    width:auto;
    flex:1
  }
  .filter-control>.icon {
    width:16px;
    height:16px
  }
  .currency-symbol {
    font-size:15px;
    flex:none;
    width:16px
  }
  .live-status {
    font-size:12px;
    white-space:normal;
    line-height:1.6;
    min-height:32px
  }
  .live-status button {
    min-width:40px;
    min-height:40px
  }
  .metrics-grid {
    gap:12px
  }
  .metric-card {
    padding:16px 13px
  }
  .metric-card:first-child {
    padding-top:15px
  }
  .metric-top {
    font-size:12px;
    gap:6px;
    min-height:24px;
    line-height:1.5
  }
  .metric-symbol {
    width:22px;
    height:22px;
    font-size:14px
  }
  .metric-value {
    font-size:26px;
    letter-spacing:-1px;
    margin:13px 0
  }
  .metric-footer {
    font-size:12px;
    gap:4px;
    line-height:1.6
  }
  .metric-change {
    font-size:12px
  }
  .panel-heading {
    padding:20px 18px 0;
    gap:10px
  }
  .panel-heading h2,.recent-panel h2,.pulse-panel h2 {
    font-size:16px
  }
  .panel-heading p {
    font-size:12px;
    line-height:1.75
  }
  .panel-heading .text-button {
    font-size:12px;
    min-height:40px
  }
  .chart-legend {
    padding:18px 18px 10px;
    font-size:12px;
    gap:16px
  }
  .flow-chart {
    height:224px;
    padding-left:1px;
    padding-right:13px
  }
  .chart-footnote {
    font-size:12px;
    line-height:1.7;
    margin-left:18px;
    margin-right:18px;
    padding-top:14px;
    padding-bottom:16px;
    gap:8px
  }
  .distribution-panel {
    display:flex
  }
  .donut-chart {
    height:209px;
    padding-top:10px
  }
  .donut-wrap {
    width:193px;
    height:193px
  }
  .donut-center span {
    font-size:12px
  }
  .donut-center strong {
    font-size:25px
  }
  .distribution-panel .donut-legend {
    padding:10px 22px 21px;
    gap:14px
  }
  .donut-legend-row {
    font-size:14px;
    flex-wrap:nowrap;
    gap:8px
  }
  .donut-legend-row>span:nth-child(2) {
    max-width:44%;
    font-size:14px
  }
  .donut-legend-row strong {
    font-size:13px
  }
  .donut-percent {
    font-size:12px;
    min-width:38px
  }
  .panel-bottom-link {
    min-height:48px;
    font-size:13px
  }
  .recent-panel td,.recent-panel th {
    padding-left:15px;
    padding-right:15px
  }
  .event-icon {
    width:32px;
    height:34px;
    font-size:16px
  }
  .event-cell {
    gap:8px;
    min-width:160px
  }
  .event-label {
    font-size:13px;
    max-width:180px
  }
  .event-reference {
    font-size:12px;
    max-width:180px
  }
  .recent-panel .event-cell {
    min-width:155px
  }
  .recent-panel td.amount-cell {
    font-size:13px
  }
  .pulse-panel .pulse-body {
    grid-template-columns:1fr;
    gap:0;
    padding:2px 20px
  }
  .pulse-row {
    display:flex;
    align-items:center;
    gap:12px;
    padding:18px 0;
    border-bottom:1px solid var(--line)
  }
  .pulse-row:last-child {
    border:0
  }
  .pulse-row-icon {
    display:grid;
    width:34px;
    height:34px
  }
  .pulse-row-text strong {
    font-size:14px
  }
  .pulse-row-text span {
    font-size:12px;
    max-width:180px
  }
  .pulse-row-value {
    margin-top:0;
    font-size:25px;
    margin-left:auto
  }
  .pulse-row-value.money {
    font-size:21px
  }
  .pulse-footer {
    font-size:12px;
    padding:17px 20px
  }
  .page-footer {
    font-size:12px;
    flex-direction:column;
    align-items:flex-start;
    gap:9px;
    padding-top:8px;
    padding-bottom:24px
  }
  .page-footer>span:first-child {
    gap:9px
  }
  .page-footer>span:last-child {
    text-align:left
  }
  .footer-brand {
    font-size:16px
  }
  .transaction-tools {
    padding:17px;
    gap:13px
  }
  .search-box input,.transaction-tools>select,.panel-heading>select {
    font-size:14px;
    min-height:43px
  }
  .transaction-tools .result-count {
    font-size:12px
  }
  .pagination {
    font-size:12px;
    padding:15px;
    align-items:flex-start;
    flex-wrap:wrap
  }
  .pagination .button {
    font-size:13px;
    min-height:40px;
    padding:9px 11px
  }
  .pagination>div {
    margin-left:auto
  }
  .section-callout {
    padding:18px;
    align-items:flex-start;
    gap:12px
  }
  .section-callout strong {
    font-size:15px
  }
  .section-callout p {
    font-size:14px;
    line-height:1.8
  }
  .callout-icon {
    margin-top:3px
  }
  .sources-grid {
    grid-template-columns:1fr
  }
  .source-card {
    padding:22px
  }
  .source-card-top h3 {
    font-size:18px
  }
  .source-card-top p,.source-card-top .status-badge {
    font-size:12px
  }
  .source-monogram {
    width:43px;
    height:43px
  }
  .source-card-top .status-badge {
    margin-left:auto
  }
  .source-stats span {
    font-size:12px
  }
  .source-stats strong {
    font-size:26px
  }
  .source-meta,.source-meta code {
    font-size:12px
  }
  .source-actions button {
    font-size:14px;
    min-height:42px
  }
  .subscription-metrics {
    grid-template-columns:1fr
  }
  .subscription-metrics .metric-card {
    padding:20px
  }
  .subscription-metrics .metric-top {
    font-size:14px;
    min-height:24px
  }
  .subscription-metrics .metric-value {
    font-size:31px
  }
  .subscription-metrics .metric-footer {
    font-size:12px
  }
  .settings-card>p,.settings-detail {
    font-size:14px
  }
  .settings-detail {
    gap:12px;
    flex-wrap:wrap
  }
  .audit-list li {
    font-size:13px
  }
  .audit-list time {
    font-size:12px
  }
  .settings-actions {
    flex-wrap:wrap
  }
  .docs-card h2 {
    font-size:19px
  }
  .docs-card h3 {
    font-size:15px
  }
  .docs-card p,.docs-card li {
    font-size:14px
  }
  .docs-card .mini-table td {
    font-size:13px
  }
  .docs-card code {
    font-size:12px
  }
  .docs-card .mini-table th {
    font-size:11px
  }
  .code-copy {
    min-height:34px;
    font-size:12px
  }
  .modal-actions .button {
    flex:1
  }
  .modal-header .eyebrow {
    font-size:10px
  }
  .modal-description {
    font-size:14px
  }
  .toast {
    font-size:14px
  }
  .auth-story {
    padding:28px
  }
  .auth-story h1 {
    font-size:31px
  }
  .auth-story .eyebrow {
    font-size:10px
  }
  .auth-story-content {
    padding-top:33px
  }
  .auth-form-wrap h2 {
    font-size:28px
  }
  .auth-form-wrap .eyebrow {
    font-size:10px
  }
  .auth-subtitle {
    font-size:14px
  }
  .auth-main {
    padding:38px 26px 85px;
    min-height:720px
  }
  .auth-controls {
    top:-62px;
    right:23px;
    gap:10px
  }
  .auth-controls .language-button {
    font-size:13px
  }
  .auth-form .form-field {
    font-size:14px
  }
  .auth-form input {
    font-size:16px;
    min-height:47px
  }
  .auth-form .button {
    font-size:14px;
    min-height:46px
  }
  .auth-demo-link {
    font-size:14px;
    min-height:48px
  }
  .auth-bottom-note {
    font-size:12px
  }
  .auth-link {
    font-size:14px
  }
  .auth-legal {
    font-size:12px;
    bottom:26px
  }
  .auth-divider {
    font-size:10px;
    gap:11px;
    letter-spacing:.35px
  }
  .password-toggle {
    min-height:40px;
    min-width:40px;
    top:3px;
    right:3px
  }
}

@media(max-width:390px) {
  .metric-card {
    padding-left:11px;
    padding-right:11px
  }
  .metric-value {
    font-size:24px
  }
  .metric-top {
    font-size:12px
  }
  .metric-symbol {
    display:none
  }
  .metric-footer,.metric-change {
    font-size:12px
  }
  .recent-panel td,.recent-panel th {
    padding-left:12px;
    padding-right:12px
  }
  .recent-panel .event-cell {
    min-width:143px;
    gap:8px
  }
  .event-label,.event-reference {
    max-width:152px
  }
  .recent-panel .event-icon {
    width:29px
  }
  .pulse-row-value.money {
    font-size:19px
  }
  .pulse-row-text strong {
    font-size:13px
  }
  .pulse-row-text span {
    max-width:150px
  }
  .page-footer>span:first-child>span:last-child {
    display:inline
  }
  .filter-control select {
    font-size:14px
  }
  .filter-control.source-filter select {
    font-size:14px
  }
  .auth-main {
    padding-left:22px;
    padding-right:22px
  }
  .auth-form-wrap h2 {
    font-size:26px
  }
}

/* Workspace identity and native controls. */
.sidebar { --focus:#91aaff; --scroll-track:var(--sidebar); --scroll-thumb:#40516b; max-width:calc(100vw - 32px) }
.nav-item>span[data-i18n] { white-space:nowrap }
.workspace>div { min-width:0; flex:1 }
.workspace strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.workspace-avatar { flex:0 0 33px; padding:0; overflow:hidden; cursor:pointer }
.workspace-avatar:hover { border-color:#91aaff; background:#334762 }
.workspace-avatar img { width:100%; height:100%; object-fit:contain; display:block }
.logo-preview { width:96px; height:96px; margin:20px auto; padding:8px; display:grid; place-items:center; background:var(--surface-soft); border:1px solid var(--line); border-radius:5px; color:var(--muted); font-size:32px }
.logo-preview img { width:100%; height:100%; min-height:0; object-fit:contain }
.logo-remove { margin-top:16px; color:var(--red) }
.totp-qr { display:block; width:240px; height:auto; max-width:100%; margin:18px auto; background:white; border:1px solid var(--line); border-radius:5px; image-rendering:pixelated }
.totp-code { margin-top:20px }
dialog.dialog-totp { width:640px; max-width:calc(100vw - 32px) }
.totp-provision { display:grid; grid-template-columns:200px minmax(0,1fr); align-items:center; gap:24px; margin:20px 0 }
.totp-provision .totp-qr { width:200px; margin:0 auto }
.totp-provision .token-block { white-space:pre-wrap; overflow-wrap:anywhere; padding:14px; margin:10px 0 }
.totp-provision .secret-label { margin-top:0 }
@media(max-width:540px) {
  .totp-provision { grid-template-columns:1fr; gap:18px }
  .totp-provision .totp-qr { width:180px }
}
.secret-label { font-size:13px; font-weight:600; margin:18px 0 6px }
.modal-status { margin-top:16px; padding:11px 14px; color:var(--ink); background:var(--blue-soft); border:1px solid var(--blue); border-radius:5px; font-size:13px; overflow-wrap:anywhere }
input[type=file] { width:100%; padding:8px; font-size:13px }
input::file-selector-button { font:inherit; margin-right:12px; padding:7px 10px; background:var(--surface-soft); color:var(--ink); border:1px solid var(--line); border-radius:5px; cursor:pointer }
* { scrollbar-width:thin; scrollbar-color:var(--scroll-thumb) var(--scroll-track) }
::-webkit-scrollbar { width:10px; height:10px }
::-webkit-scrollbar-track { background:var(--scroll-track) }
::-webkit-scrollbar-thumb { background:var(--scroll-thumb); border:2px solid var(--scroll-track); border-radius:5px }
::-webkit-scrollbar-thumb:hover { background:var(--muted) }
::-webkit-scrollbar-corner { background:var(--scroll-track) }
/* Inset strokes do not alter element dimensions, including SVG chart targets. */
:where(button,a,[tabindex]):focus-visible { outline:none; box-shadow:inset 0 0 0 1px var(--focus) }
.button-primary:focus-visible,.button-danger:focus-visible { box-shadow:inset 0 0 0 1px #fff }
:root[data-theme=dark] .button-primary:focus-visible { box-shadow:inset 0 0 0 1px #111c2e }
@media(forced-colors:active) {
  * { scrollbar-color:auto }
  :focus-visible { outline:1px solid Highlight; outline-offset:-1px; box-shadow:none }
  .totp-qr { forced-color-adjust:none }
}

/* Read-only details stay above the page in the native dialog layer. */
.event-detail-link { border:0; border-radius:5px; background:none; padding:3px 5px; margin:-3px -5px; text-align:left; white-space:nowrap; max-width:100% }
.event-detail-link:hover { color:var(--blue); text-decoration:underline; text-underline-offset:3px }
.event-interactive { cursor:pointer }
dialog.detail-drawer { position:fixed; inset:0 0 0 auto; margin:0; width:620px; max-width:100%; height:100%; height:100dvh; max-height:100%; padding:0; border-radius:5px 0 0 5px; overscroll-behavior:contain }
.detail-drawer .modal-header { position:sticky; top:0; padding:24px 28px; margin:0; background:var(--surface); border-bottom:1px solid var(--line); z-index:2 }
.detail-drawer .modal-header > div { min-width:0; overflow-wrap:anywhere }
.detail-drawer #modal-title:focus { outline:none; box-shadow:none }
html:has(dialog.detail-drawer[open]) { overflow:hidden; scrollbar-gutter:stable }
.detail-drawer .modal-header .icon-button { flex-shrink:0 }
.detail-drawer #modal-content { min-width:0; padding:24px 28px 28px }
.detail-drawer .modal-status { position:fixed; right:28px; bottom:18px; width:calc(min(620px, 100vw) - 56px); z-index:3; box-shadow:var(--shadow) }
.detail-drawer button,.detail-drawer input { scroll-margin-block:115px 65px }
.detail-drawer h3 { font-size:15px; font-weight:650; letter-spacing:-.2px }
.detail-loading { color:var(--muted); padding:36px 0 }
.detail-back { margin:0 0 20px; text-align:left }
.detail-event-header { padding:22px; border:1px solid var(--line); border-radius:5px; background:var(--surface-soft) }
.detail-event-header h3 { font-size:18px; margin-top:14px; overflow-wrap:anywhere; line-height:1.4 }
.detail-amount { font-size:34px; font-weight:650; letter-spacing:-1px; margin:14px 0 0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums }
.detail-fields { display:grid; grid-template-columns:minmax(120px, .8fr) minmax(0,1.2fr); gap:18px 20px; margin:24px 0 14px; font-size:13px }
.detail-fields dt { color:var(--muted) }
.detail-fields dd { margin:0; overflow-wrap:anywhere; min-width:0 }
.detail-fields .source-cell { white-space:normal }
.detail-identifier code { display:block; font-size:12px; overflow-wrap:anywhere }
.detail-identifier button { font-size:12px; margin-top:7px }
.detail-section { margin-top:25px; padding-top:24px; border-top:1px solid var(--line) }
.detail-section-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:12px }
.detail-section .data-note { margin:8px 0 0; font-size:12px; line-height:1.65 }
.refund-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:16px 0; border:1px solid var(--line); border-radius:5px; background:var(--surface-soft) }
.refund-stats > div { padding:15px 12px; min-width:0 }
.refund-stats > div + div { border-left:1px solid var(--line) }
.refund-stats span { display:block; font-size:11px; color:var(--muted); margin-bottom:9px; min-height:33px }
.refund-stats strong { font-size:17px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere }
.refund-stats > div:last-child strong { color:var(--blue) }
.refund-state,.history-total { font-size:11px; background:var(--surface-soft); border:1px solid var(--line); border-radius:5px; padding:4px 7px }
.refund-partial { color:var(--orange) }
.refund-full { color:var(--teal) }
.original-payment { display:flex; flex-direction:column; align-items:flex-start; gap:4px; font-size:12px; margin:14px 0 }
.original-payment > span { color:var(--muted) }
.original-payment button { text-align:left; overflow-wrap:anywhere }
.detail-history,.source-error-list { list-style:none; padding:0; margin:14px 0 0 }
.detail-history li + li { border-top:1px solid var(--line) }
.history-event { display:grid; grid-template-columns:minmax(0,1fr) auto 12px; align-items:center; gap:12px; width:100%; border:0; background:none; padding:15px 5px; text-align:left; border-radius:5px }
.history-event:hover { background:var(--surface-soft) }
.history-event strong { display:block; font-size:13px; font-weight:550; overflow-wrap:anywhere }
.history-event code { display:block; font-size:10px; margin:4px 0; color:var(--muted); overflow-wrap:anywhere }
.history-event time { display:block; color:var(--muted); font-size:11px }
.history-event-amount { text-align:right; font-size:13px; font-weight:550; font-variant-numeric:tabular-nums }
.history-event-amount small { display:block; font-size:10px; font-weight:400; color:var(--muted); margin-top:4px }
.history-event > span:last-child { color:var(--blue) }
.detail-empty { padding:16px 0 5px; font-size:13px; color:var(--muted) }
.detail-pagination { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:12px; font-size:12px; color:var(--muted) }
.detail-toolbar { display:flex; align-items:center; justify-content:space-between; gap:15px; border-top:1px solid var(--line); margin-top:28px; padding-top:18px }
.detail-toolbar .data-note { margin:0; font-size:11px }
.detail-toolbar button { font-size:12px; flex-shrink:0 }
.health-overview { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:22px; border:1px solid var(--line); border-radius:5px; background:var(--surface); padding:20px 22px }
.health-overview h2 { font-size:16px; margin-bottom:4px }
.health-overview .data-note { margin:0; font-size:12px }
.health-counts { display:flex; gap:25px; flex-wrap:wrap }
.health-count { display:flex; flex-direction:column; gap:2px }
.health-count strong { font-size:22px; font-weight:600; font-variant-numeric:tabular-nums }
.health-count span { color:var(--muted); font-size:11px }
.health-warning strong { color:var(--orange) }
.source-health-card { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:17px 0; margin-bottom:16px }
.source-health-card + .source-meta { border:0; padding-top:0 }
.source-health-card > button { font-size:12px; margin-top:12px }
.source-health-card .data-note { font-size:11px; margin:0 }
.health-badge { display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:550; color:var(--muted) }
.health-badge i { display:block; width:6px; height:6px; background:currentColor; border-radius:2px; flex-shrink:0 }
.health-receiving { color:var(--teal) }
.health-error { color:var(--red) }
.health-silent { color:var(--orange) }
.source-health-dates { display:grid; grid-template-columns:1fr; gap:3px; font-size:11px; margin:15px 0 }
.source-health-dates dt { color:var(--muted) }
.source-health-dates dd { margin:0 0 8px; font-size:12px; overflow-wrap:anywhere }
.source-health-dates dd:last-child { margin-bottom:0 }
.health-event-link { margin-top:12px; text-align:left; font-size:12px }
.monitoring-controls { display:flex; align-items:flex-end; gap:14px; margin:18px 0 12px }
.monitoring-controls .form-field { flex:1; margin:0 }
.monitoring-controls button { flex:1; min-height:44px; font-size:12px }
.monitoring-controls input { height:44px }
.source-error-list { max-height:320px; overflow-y:auto; overscroll-behavior:contain }
.source-error-list li { display:flex; align-items:center; gap:12px; padding:12px 4px; border-bottom:1px solid var(--line) }
.source-error-list li:last-child { border-bottom:0 }
.source-error-list strong { display:block; font-size:12px; font-weight:550 }
.source-error-list time { display:block; font-size:11px; margin-top:3px; color:var(--muted) }
.error-http { padding:4px 6px; border:1px solid var(--line); border-radius:5px; font-family:monospace; color:var(--red); font-size:12px }
@media(max-width:540px) {
  dialog.detail-drawer { border-radius:0 }
  .detail-drawer .modal-header { padding:20px 18px }
  .detail-drawer #modal-content { padding:20px 18px 24px }
  .detail-drawer .modal-status { right:18px; width:calc(100vw - 36px) }
  .detail-fields { grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr); gap:17px 12px; font-size:12px }
  .detail-amount { font-size:29px }
  .detail-event-header { padding:18px }
  .detail-event-header h3 { font-size:16px }
  .refund-stats { grid-template-columns:1fr }
  .refund-stats > div { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:13px }
  .refund-stats > div + div { border-left:0; border-top:1px solid var(--line) }
  .refund-stats span { margin:0; min-height:0 }
  .refund-stats strong { font-size:17px; text-align:right }
  .health-counts { width:100%; justify-content:space-between; gap:12px }
  .health-count { max-width:32% }
  .health-overview { padding:18px }
  .history-event { grid-template-columns:minmax(0,1fr) minmax(75px,105px) 10px; gap:8px }
  .history-event-amount { overflow-wrap:anywhere }
  .detail-toolbar { flex-wrap:wrap }
}

.backup-card { margin-top:20px; min-width:0 }
.backup-card>p { max-width:850px }
.backup-status { display:flex; align-items:center; gap:12px; padding:18px; margin-top:22px; border:1px solid var(--line); border-radius:5px; background:var(--surface-soft) }
.backup-status>i { flex:0 0 7px; height:7px; border-radius:2px; background:var(--muted) }
.backup-ready>i { background:var(--teal) }
.backup-failed>i,.backup-unavailable>i,.backup-damaged>i { background:var(--red) }
.backup-running>i { background:var(--blue) }
.backup-status strong { font-size:14px; font-weight:600 }
.backup-status time { display:block; margin-top:4px; font-size:12px; color:var(--muted) }
.backup-actions { flex-wrap:wrap; align-items:center }
.backup-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 30px; margin:26px 0 20px }
.backup-details>div:last-child { grid-column:1/-1 }
.backup-details dt { color:var(--muted); font-size:12px; margin-bottom:6px }
.backup-details dd { margin:0; font-size:14px; overflow-wrap:anywhere }
.backup-details code { font-size:12px }
.backup-notice { border-left:2px solid var(--orange); padding:10px 14px; margin-top:15px; background:var(--surface-soft) }
.backup-key { margin:24px 0; padding:18px; border:1px solid var(--line); border-radius:5px }
.backup-key p { font-size:13px; line-height:1.7; margin-bottom:12px; max-width:850px }
.backup-key .data-note { color:var(--muted); font-size:12px }
.backup-key button { text-align:left; font-size:13px }
.backup-history-heading { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:6px }
.backup-history-heading h3 { font-size:15px; font-weight:600 }
.backup-history-heading>span { font-size:12px; color:var(--muted) }
.backup-list { list-style:none; padding:0; margin:18px 0 }
.backup-list li { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:16px 4px; border-top:1px solid var(--line) }
.backup-list strong { display:block; font-size:13px; font-weight:550 }
.backup-list span,.backup-list small { display:block; margin-top:4px; color:var(--muted); font-size:11px }
.backup-list .backup-verification-failed { color:var(--red) }
.backup-row-actions { display:flex; flex-wrap:wrap; gap:18px; font-size:12px }
.backup-row-actions a { text-decoration:none }
.backup-feedback { margin-top:16px; color:var(--blue) }
.backup-footer { border-top:1px solid var(--line); padding-top:18px; margin:24px 0 12px }
.backup-card>.text-button { font-size:13px }
.backup-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px }
.backup-check { display:flex; align-items:center; gap:10px; margin:4px 0 20px; font-size:13px }
.backup-check input { width:16px; height:16px; accent-color:var(--blue) }
.backup-automation { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:26px; padding:22px 0; border-block:1px solid var(--line) }
.automation-control { min-width:0 }
.automation-control + .automation-control { padding-left:24px; border-left:1px solid var(--line) }
.automation-control h3 { font-size:14px; font-weight:600; margin-bottom:10px }
.automation-control p { font-size:12px; line-height:1.75; color:var(--muted); margin:12px 0 }
.schedule-state { display:inline-block; padding:4px 8px; border:1px solid var(--line); border-radius:5px; font-size:11px; color:var(--muted); background:var(--surface-soft) }
.schedule-state.is-good { color:var(--teal) }
.schedule-name { display:block; font-size:11px; overflow-wrap:anywhere; color:var(--muted); margin-top:12px }
.schedule-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:16px; font-size:12px }
.schedule-remove { color:var(--red); text-align:left }
.automation-control .schedule-checked { margin-bottom:0; font-size:10px }
  .schedule-instruction { margin:20px 0 }
  dialog.dialog-schedule { max-width:720px; overflow:hidden }
  dialog.dialog-schedule[open] { display:flex; flex-direction:column }
  .dialog-schedule #modal-content { overflow-y:auto; min-height:0; overscroll-behavior:contain; padding-right:8px }
  .dialog-schedule .modal-header,.dialog-schedule .modal-status { flex-shrink:0 }
.schedule-instruction h3 { font-size:13px; font-weight:600 }
.metric-value.amount-long { font-size:18px; line-height:1.4; letter-spacing:-.3px; white-space:normal; overflow-wrap:anywhere }
.donut-center strong.amount-long { max-width:125px; margin-inline:auto; font-size:14px; line-height:1.35; white-space:normal; overflow-wrap:anywhere; text-align:center }
.donut-legend-row strong,.source-stats strong { min-width:0; overflow-wrap:anywhere }
@media(max-width:540px) { .metrics-grid:has(.amount-long) { grid-template-columns:1fr } }
.schedule-instruction .token-block { font-size:11px; white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; margin:10px 0 }
.schedule-instruction button { font-size:12px }
@media(max-width:760px) {
  .backup-automation { grid-template-columns:1fr; gap:22px }
  .automation-control + .automation-control { border-left:0; border-top:1px solid var(--line); padding:22px 0 0 }
}
@media(max-width:540px) {
  .backup-details,.backup-form-grid { grid-template-columns:1fr; gap:16px }
  .backup-list li { flex-wrap:wrap; gap:12px }
  .backup-row-actions { width:100%; justify-content:flex-end }
  .backup-actions>.button { flex:1; min-width:170px }
}

/* A real action replaces the decorative avatar in the top bar. */
.topbar-logout{margin:0;flex-shrink:0}
.topbar-logout.button,.topbar-logout .button{min-height:38px;padding:8px 12px;gap:8px;font-size:12px;white-space:nowrap}
@media(max-width:680px){
  .topbar-logout span{display:none}
  .topbar-logout.button,.topbar-logout .button{min-width:40px;min-height:40px;padding:8px}
  .topbar-actions{gap:6px}
}
.chart-tooltip{border-radius:5px}
.session-expired .app-shell,.session-expired .sidebar,.session-expired #sidebar-overlay,.session-expired #toast{display:none!important}
