:root {
  color-scheme: dark;
  --page: #070908;
  --page-raised: #0a0d0b;
  --surface: #111512;
  --surface-soft: #151a16;
  --surface-raised: #1a201b;
  --surface-chart: #090c0a;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.15);
  --ink: #f3f7f0;
  --muted: #a4ada5;
  --dim: #858f87;
  --green: #b6f36c;
  --green-strong: #8fdd3d;
  --green-soft: rgba(182, 243, 108, 0.1);
  --amber: #e8c978;
  --amber-soft: rgba(232, 201, 120, 0.09);
  --danger: #ff978b;
  --danger-soft: rgba(255, 143, 130, 0.09);
  --focus: #dcffad;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% -10%, rgba(151, 215, 83, 0.1), transparent 34%),
    linear-gradient(180deg, var(--page-raised), var(--page) 38%, #080a09);
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.06;
  pointer-events: none;
}

.ambient-one {
  top: 4rem;
  right: -18rem;
  background: var(--green);
}

.ambient-two {
  bottom: -10rem;
  left: -23rem;
  background: #6ea74b;
}

/* Shared chrome */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(18px, 3vw, 46px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 8, 0.86);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(182, 243, 108, 0.38);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(182, 243, 108, 0.16), rgba(182, 243, 108, 0.025));
}

.brand-mark .brand-icon {
  width: 23px;
  height: 23px;
  color: var(--green);
  stroke-width: 2.15;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.brand-copy strong {
  font-size: 19px;
  letter-spacing: -0.045em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.server-status,
.sidebar-security {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.server-status {
  color: var(--muted);
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(232, 201, 120, 0.08);
}

.server-status.online .status-dot,
.sidebar-security .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft), 0 0 13px rgba(182, 243, 108, 0.3);
}

.server-status.error .status-dot {
  background: var(--danger);
}

.eyebrow,
.section-index {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Role selection and login */
.public-shell {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.72fr);
  align-items: center;
  gap: clamp(42px, 8vw, 118px);
  min-height: calc(100vh - 68px);
  padding: 58px 0;
}

.auth-intro h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 590;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.auth-intro>p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
  color: #c0c7c0;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-strip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(182, 243, 108, 0.55);
}

.portal-grid {
  display: grid;
  gap: 12px;
}

.portal-card {
  position: relative;
  display: grid;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(24, 29, 25, 0.98), rgba(13, 16, 14, 0.98));
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.portal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(182, 243, 108, 0.32);
  background: linear-gradient(145deg, rgba(27, 34, 27, 0.98), rgba(14, 18, 15, 0.98));
}

.portal-index {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--dim);
  font: 700 9px/1 var(--font-mono);
}

.portal-icon,
.security-symbol {
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--green-soft);
}

.portal-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border: 1px solid rgba(182, 243, 108, 0.24);
  border-radius: 12px;
}

.portal-icon .icon {
  width: 21px;
  height: 21px;
}

.portal-card>strong {
  font-size: 22px;
  letter-spacing: -0.035em;
}

.portal-card>small {
  max-width: 320px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.portal-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #e3e9e1;
  font-size: 11px;
  font-weight: 700;
}

.portal-action b {
  color: var(--green);
}

.security-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 430px);
  margin-top: 32px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.security-symbol {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
}

.security-callout div {
  display: grid;
  gap: 3px;
}

.security-callout strong {
  font-size: 11px;
}

.security-callout small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.auth-card,
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(22, 27, 23, 0.98), rgba(13, 16, 14, 0.97));
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 28px;
  border-radius: 20px;
}

.auth-card-heading,
.panel-heading,
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.auth-card h2,
.panel h2,
.dialog-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.auth-card form {
  display: grid;
  gap: 18px;
}

.protocol-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(182, 243, 108, 0.2);
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font: 700 9px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.auth-switch {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.auth-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}

.auth-switch a:hover {
  color: var(--green);
}

/* Forms and controls */
.field-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field-group label {
  color: #d8ded7;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.02em;
}

.field-group label span {
  color: var(--dim);
  font-weight: 520;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="search"],
select,
textarea,
input[type="file"] {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  color: var(--ink);
  background: rgba(3, 5, 4, 0.7);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="search"],
select {
  padding: 0 13px;
}

select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

textarea {
  padding: 12px 13px;
  resize: vertical;
}

input[type="file"] {
  padding: 5px;
  color: var(--muted);
  font-size: 11px;
}

input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface-raised);
  cursor: pointer;
}

input[readonly] {
  color: var(--muted);
  border-style: dashed;
  background: rgba(255, 255, 255, 0.025);
}

input::placeholder,
textarea::placeholder {
  color: #717a72;
}

input:focus,
select:focus,
textarea:focus,
input[type="file"]:focus {
  border-color: rgba(182, 243, 108, 0.62);
  box-shadow: 0 0 0 3px rgba(182, 243, 108, 0.075);
  background-color: rgba(5, 8, 6, 0.9);
}

.field-help,
.panel-copy {
  margin: 0;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.5;
}

.panel-copy {
  margin-top: 7px;
}

.form-error,
.inline-feedback {
  margin: 0;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 1.5;
}

.form-error,
.inline-feedback[data-kind="error"] {
  border: 1px solid rgba(255, 143, 130, 0.34);
  color: #ffc9c3;
  background: var(--danger-soft);
}

.inline-feedback {
  border: 1px solid rgba(182, 243, 108, 0.25);
  color: #e7f8d5;
  background: rgba(182, 243, 108, 0.08);
}

.primary-button,
.secondary-button,
.row-action,
.text-button,
.dialog-close,
.withdraw-button,
.range-tabs button {
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease, border-color 150ms ease, background 150ms ease;
}

.primary-button,
.secondary-button,
.row-action,
.text-button,
.withdraw-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-button,
.withdraw-button {
  padding: 0 17px;
  border: 0;
  color: #10160d;
  background: linear-gradient(135deg, #c7fa88, var(--green-strong));
  box-shadow: 0 8px 28px rgba(143, 221, 61, 0.13);
  font-size: 11px;
  font-weight: 790;
}

.primary-button b {
  margin-left: auto;
}

.secondary-button,
.row-action {
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  color: #e0e6df;
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 680;
}

.secondary-button[href] {
  text-decoration: none;
}

.row-action {
  min-height: 44px;
  padding-inline: 11px;
  font-size: 9px;
}

.text-button {
  padding: 0 4px;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 9px;
  font-weight: 720;
}

.primary-button:hover,
.secondary-button:hover,
.row-action:hover,
.text-button:hover,
.withdraw-button:hover,
.range-tabs button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.row-action:disabled,
.nav-item:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.fit-button {
  width: fit-content;
  min-width: 180px;
}

.button-spinner {
  display: none;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(15, 20, 12, 0.22);
  border-top-color: #11170d;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

[aria-busy="true"] .button-spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Workspace chrome */
.app-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.sidebar {
  position: sticky;
  top: 68px;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 68px);
  padding: 22px 15px 18px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(9, 12, 10, 0.78);
  scrollbar-color: rgba(182, 243, 108, 0.18) transparent;
  scrollbar-width: thin;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.account-avatar,
.profile-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 800;
}

.account-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  font-size: 10px;
}

.account-card div {
  min-width: 0;
}

.account-card strong,
.account-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card strong {
  font-size: 11px;
}

.account-card small {
  margin-top: 3px;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 3px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.nav-item .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  color: var(--dim);
}

.nav-item b {
  font-size: 10px;
  font-weight: 680;
}

.nav-item:hover {
  color: #e1e7e0;
  background: rgba(255, 255, 255, 0.03);
}

.nav-item[aria-current="page"] {
  border-color: rgba(182, 243, 108, 0.3);
  color: var(--green);
  background: linear-gradient(90deg, rgba(182, 243, 108, 0.15), rgba(182, 243, 108, 0.055));
  box-shadow: inset 3px 0 0 var(--green);
}

.nav-item[aria-current="page"] .icon {
  color: var(--green);
}

.sidebar-support {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sidebar-security {
  min-height: 44px;
  margin-bottom: 7px;
  padding: 0 8px;
}

.sidebar-security div {
  display: grid;
  gap: 2px;
}

.sidebar-security strong {
  font-size: 9px;
}

.sidebar-security small {
  color: var(--dim);
  font-size: 8px;
}

.sidebar-support>p {
  margin: 0 8px 4px;
  color: var(--dim);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-support a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 9px;
  text-decoration: none;
}

.sidebar-support a:hover {
  color: var(--green);
  background: rgba(255, 255, 255, 0.025);
}

.sidebar-support>div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2px;
}

.app-content {
  width: 100%;
  min-width: 0;
  max-width: 1680px;
  margin-inline: auto;
  padding: 0 clamp(22px, 3vw, 48px) 54px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
}

.app-header h1 {
  margin: 0;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 590;
  line-height: 1;
  letter-spacing: -0.05em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 600 9px/1 var(--font-mono);
}

.session-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.workspace-state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: -3px 0 20px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
}

.workspace-state strong {
  color: var(--ink);
}

.workspace-state[data-state="ready"] {
  border-color: rgba(182, 243, 108, 0.24);
}

.workspace-state[data-state="error"] {
  border-color: rgba(255, 143, 130, 0.34);
}

.workspace-state .row-action {
  margin-left: auto;
}

.state-spinner {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid rgba(182, 243, 108, 0.2);
  border-top-color: var(--green);
  border-radius: 50%;
}

.workspace-state[data-state="loading"] .state-spinner {
  animation: spin 700ms linear infinite;
}

.workspace-state[data-state="ready"] .state-spinner {
  border: 0;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.workspace-state[data-state="error"] .state-spinner {
  border: 0;
  background: var(--danger);
}

.workspace-view {
  min-width: 0;
  animation: view-in 180ms ease-out;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.section-heading,
.section-toolbar-spaced {
  margin-top: 6px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-copy,
.dialog-copy {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.overview-toolbar {
  align-items: flex-end;
}

.overview-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.panel {
  min-width: 0;
  border-radius: var(--radius-lg);
}

.management-panel,
.table-panel,
.inspection-panel,
.chart-panel {
  min-width: 0;
  padding: clamp(18px, 2.2vw, 25px);
}

.management-panel+.table-panel,
.workspace-grid+.table-panel,
.inspection-panel {
  margin-top: 14px;
}

.management-form {
  display: grid;
  gap: 14px;
}

.form-row,
.management-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.narrow-panel {
  max-width: 700px;
}

/* Overview */
.range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.16);
}

.range-tabs button {
  min-width: 58px;
  padding: 0 10px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 720;
}

.range-tabs button.active,
.range-tabs button[aria-pressed="true"] {
  border-color: rgba(182, 243, 108, 0.46);
  color: #11170d;
  background: var(--green);
  box-shadow: 0 5px 18px rgba(143, 221, 61, 0.12);
}

.overview-balance-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(520px, 1.75fr) minmax(145px, 0.45fr);
  grid-template-areas:
    "main details action"
    "main wallet action";
  align-items: stretch;
  gap: 14px;
  margin-bottom: 12px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid rgba(182, 243, 108, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 8% 12%, rgba(182, 243, 108, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(22, 29, 23, 0.98), rgba(12, 16, 13, 0.98));
  box-shadow: var(--shadow);
}

.balance-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-right: 8px;
}

.balance-kicker,
.overview-count-grid span,
.metric-card>span,
.balance-details dt,
.overview-wallet-readiness dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 770;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.balance-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
  font: 610 clamp(34px, 4vw, 51px)/0.95 var(--font-mono);
  letter-spacing: -0.065em;
}

.balance-amount small {
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.balance-main p {
  max-width: 310px;
  margin: 0;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.55;
}

.balance-details {
  grid-area: details;
  display: grid;
  grid-template-columns: repeat(4, minmax(105px, 1fr));
  gap: 1px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.balance-details>div,
.overview-wallet-readiness>div {
  min-width: 0;
  padding: 14px;
  background: rgba(9, 12, 10, 0.9);
}

.balance-details dd,
.overview-wallet-readiness dd {
  margin: 9px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font: 650 14px/1.25 var(--font-mono);
}

.balance-details small {
  display: block;
  margin-top: 6px;
  color: var(--dim);
  font-size: 8px;
  line-height: 1.4;
}

.overview-wallet-readiness {
  grid-area: wallet;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.overview-wallet-readiness>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
}

.overview-wallet-readiness dd {
  margin: 0;
}

.withdraw-button {
  grid-area: action;
  align-self: stretch;
  min-width: 145px;
  padding-inline: 16px;
  border-radius: 12px;
}

.overview-count-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.overview-count-grid article,
.metric-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.overview-count-grid article {
  padding: 13px;
  border-radius: 11px;
}

.overview-count-grid strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font: 650 20px/1 var(--font-mono);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.metric-card {
  min-height: 116px;
  padding: 16px;
  border-radius: 12px;
}

.metric-card strong {
  display: block;
  margin: 15px 0 8px;
  overflow-wrap: anywhere;
  font: 620 clamp(25px, 2.4vw, 35px)/1 var(--font-mono);
  letter-spacing: -0.045em;
}

.metric-card small {
  color: var(--dim);
  font-size: 8px;
}

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chart-panel {
  min-height: 365px;
}

.chart-heading {
  align-items: flex-start;
  margin-bottom: 16px;
}

.chart-heading p:last-child {
  max-width: 440px;
  margin: 7px 0 0;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.5;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--green);
}

.chart-legend .legend-secondary {
  background: var(--amber);
}

.chart-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 0, rgba(182, 243, 108, 0.04), transparent 38%),
    var(--surface-chart);
  scrollbar-color: rgba(182, 243, 108, 0.22) transparent;
  scrollbar-width: thin;
}

.line-chart {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 920 / 280;
  min-height: 250px;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.axis-label,
.axis-title,
.chart-empty text {
  fill: var(--dim);
  font-family: var(--font-sans);
}

.axis-label {
  font-size: 9px;
}

.axis-label-x {
  fill: #8f9990;
}

.axis-title {
  fill: #abb4ac;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-area {
  stroke: none;
}

.activity-area {
  fill: url(#activity-area);
}

.commission-area {
  fill: url(#commission-area);
}

.chart-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chart-line-primary {
  stroke: var(--green);
}

.chart-line-secondary {
  stroke: var(--amber);
  stroke-dasharray: 7 5;
}

.chart-point-halo {
  fill: rgba(182, 243, 108, 0.09);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
}

.chart-point-primary {
  fill: var(--surface-chart);
  stroke: var(--green);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart-point-secondary {
  fill: transparent;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-dasharray: 2.4 1.8;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.28);
}

.line-chart[data-point-count="1"] .chart-point-halo {
  transform: scale(1.45);
}

.line-chart[data-point-count="1"] .chart-point-primary,
.line-chart[data-point-count="1"] .chart-point-secondary {
  stroke-width: 2.5;
}

.subscription-bar {
  fill: url(#subscription-bars);
}

.chart-empty circle {
  fill: rgba(182, 243, 108, 0.035);
  stroke: rgba(182, 243, 108, 0.18);
}

.chart-empty path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-empty text {
  font-size: 11px;
}

/* Operational sections */
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.profile-photo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid rgba(182, 243, 108, 0.25);
  border-radius: 16px;
  font-size: 20px;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-preview>div {
  min-width: 0;
}

.profile-preview strong,
.profile-preview small {
  display: block;
}

.profile-preview strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-preview small {
  margin-top: 4px;
  color: var(--dim);
  font-size: 9px;
}

.link-list {
  display: grid;
  gap: 9px;
}

.link-address {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #090c0a;
}

.link-address code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: var(--green);
  font-size: 10px;
  line-height: 1.5;
}

.rail-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 146px;
  padding: 8px 10px;
  border: 1px solid rgba(80, 175, 149, 0.35);
  border-radius: 12px;
  background: rgba(80, 175, 149, 0.08);
}

.token-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  color: #b9f1df;
  background: rgba(80, 175, 149, 0.2);
}

.token-mark .icon {
  width: 21px;
  height: 21px;
}

.rail-badge strong,
.rail-badge small {
  display: block;
}

.rail-badge strong {
  color: #a4e8d4;
  font-size: 11px;
}

.rail-badge small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.commission-card {
  border-color: rgba(182, 243, 108, 0.23);
  background: linear-gradient(145deg, rgba(182, 243, 108, 0.075), rgba(17, 21, 18, 0.98));
}

.commission-balance {
  display: block;
  margin: 11px 0;
  overflow-wrap: anywhere;
  font: 620 36px/1 var(--font-mono);
  letter-spacing: -0.055em;
}

.wallet-purpose {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.wallet-purpose span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-purpose code,
.address-cell {
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #d1dad0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.55;
  white-space: normal;
}

.request-withdrawal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  grid-column: 1 / -1;
}

.search-field {
  width: min(360px, 100%);
}

.responsive-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-color: rgba(182, 243, 108, 0.28) transparent;
  scrollbar-width: thin;
}

.operations-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.operations-table th {
  padding: 0 12px 12px;
  color: #aeb7af;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.operations-table td {
  min-width: 105px;
  padding: 13px 12px;
  border-top: 1px solid var(--line);
  color: #dfe6dd;
  font-size: 11px;
  vertical-align: middle;
}

.operations-table td:first-child {
  min-width: 165px;
}

.operations-table strong,
.operations-table small,
.operations-table span,
.operations-table time {
  display: block;
}

.operations-table small,
.operations-table time {
  margin-top: 4px;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.4;
}

.operations-table a {
  color: var(--green);
  overflow-wrap: anywhere;
}

.table-actions {
  text-align: right;
}

.status-chip {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
  font-weight: 790;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-chip.positive {
  color: var(--green);
  border-color: rgba(182, 243, 108, 0.3);
  background: rgba(182, 243, 108, 0.07);
}

.status-chip.waiting {
  color: var(--amber);
  border-color: rgba(232, 201, 120, 0.32);
  background: var(--amber-soft);
}

.status-chip.negative {
  color: var(--danger);
  border-color: rgba(255, 143, 130, 0.33);
  background: var(--danger-soft);
}

.empty-state {
  margin: 0;
  padding: 28px 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.admin-card-list,
.application-list {
  display: grid;
  gap: 10px;
}

.admin-summary,
.application-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.admin-summary-heading,
.application-heading,
.application-contact {
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-summary-heading>div,
.application-heading>div {
  min-width: 0;
  flex: 1;
}

.admin-summary-heading strong,
.admin-summary-heading small,
.application-heading strong,
.application-heading small {
  display: block;
}

.admin-summary-heading small,
.application-heading small {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--dim);
  font-size: 9px;
}

.admin-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--line);
}

.admin-summary dl div {
  min-width: 0;
  padding: 10px;
  background: #101411;
}

.admin-summary dt {
  color: var(--dim);
  font-size: 8px;
  text-transform: uppercase;
}

.admin-summary dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: #e5ebe3;
  font: 650 10px/1.4 var(--font-mono);
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.application-card {
  display: grid;
  gap: 13px;
}

.application-card p {
  margin: 0;
  color: #cbd2cb;
  font-size: 11px;
  line-height: 1.65;
}

.application-contact {
  flex-wrap: wrap;
}

.application-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--green);
  font-size: 10px;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.decision-note {
  display: grid;
  gap: 5px;
  padding: 11px;
  border-left: 3px solid var(--amber);
  color: var(--muted);
  background: var(--amber-soft);
  font-size: 10px;
}

.danger-action {
  color: var(--danger);
  border-color: rgba(255, 143, 130, 0.3);
}

.heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.heading-actions select {
  width: auto;
  min-width: 130px;
}

.inspection-panel {
  scroll-margin-top: 88px;
}

.inspection-mode-note {
  max-width: 650px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.inspection-loading {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
}

.inspection-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.inspection-metrics article {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.inspection-metrics span,
.inspection-metrics strong {
  display: block;
}

.inspection-metrics span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 720;
  text-transform: uppercase;
}

.inspection-metrics strong {
  margin-top: 8px;
  overflow-wrap: anywhere;
  font: 650 clamp(16px, 2vw, 24px)/1.1 var(--font-mono);
}

.inspection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inspection-grid section {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.inspection-grid h3 {
  margin: 0 0 9px;
  font-size: 13px;
}

.inspection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.inspection-row>span {
  min-width: 0;
}

.inspection-row strong,
.inspection-row small {
  display: block;
  overflow-wrap: anywhere;
}

.inspection-row strong {
  font-size: 10px;
}

.inspection-row small,
.inspection-row time {
  margin-top: 3px;
  color: var(--dim);
  font-size: 8px;
}

/* Dialogs and feedback */
.operation-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.7);
}

.operation-dialog.wide-dialog {
  width: min(780px, calc(100vw - 28px));
}

.operation-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(7px);
}

.operation-dialog form {
  display: grid;
  gap: 17px;
  padding: clamp(20px, 4vw, 29px);
}

.operation-dialog .dialog-heading {
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: min(370px, calc(100vw - 36px));
  padding: 13px 15px;
  border: 1px solid rgba(182, 243, 108, 0.25);
  border-radius: 10px;
  color: #e9f3e2;
  background: rgba(24, 31, 25, 0.98);
  box-shadow: var(--shadow);
  font-size: 10px;
  line-height: 1.5;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  border-color: rgba(255, 143, 130, 0.3);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}

.clipboard-fallback {
  position: fixed;
  left: -9999px;
  opacity: 0;
}

/* 1024 px composition: summary and charts become single-column before they feel cramped. */
@media (max-width: 1180px) {
  .overview-balance-card {
    grid-template-columns: minmax(0, 1fr) 170px;
    grid-template-areas:
      "main action"
      "details details"
      "wallet wallet";
  }

  .balance-main {
    padding: 0;
  }

  .overview-count-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-chart-grid {
    grid-template-columns: 1fr;
  }

  .line-chart {
    min-height: 280px;
  }

  .inspection-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 216px minmax(0, 1fr);
  }

  .app-content {
    padding-inline: 22px;
  }

  .overview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .overview-controls {
    justify-content: space-between;
  }

  .range-tabs {
    flex: 1 1 auto;
  }

  .workspace-grid.admins-layout {
    grid-template-columns: 1fr;
  }
}

/* Tablet navigation and content composition. */
@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 0;
  }

  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-card {
    width: min(100%, 590px);
  }

  .app-layout {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 68px;
    z-index: 30;
    display: block;
    width: 100%;
    height: auto;
    padding: 8px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 8, 0.95);
    backdrop-filter: blur(20px);
  }

  .account-card,
  .sidebar-support {
    display: none;
  }

  .side-nav {
    display: flex;
    width: max-content;
    gap: 4px;
  }

  .nav-item {
    padding-inline: 11px;
  }

  .nav-item[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--green);
  }

  .app-content {
    padding-inline: 18px;
    padding-bottom: 44px;
  }

  .app-header {
    min-height: 94px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .request-withdrawal-card {
    grid-column: auto;
  }

  .inspection-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .overview-balance-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "details"
      "wallet"
      "action";
  }

  .withdraw-button {
    min-height: 48px;
  }

  .balance-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .chart-legend {
    justify-content: flex-start;
  }

  .chart-scroll {
    overflow-x: auto;
  }

  .line-chart {
    width: 720px;
    min-height: 219px;
  }

  .section-toolbar:not(.overview-toolbar) {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 60px;
    padding-inline: 14px;
  }

  .brand-copy small,
  .server-status span:last-child {
    display: none;
  }

  .public-shell {
    width: min(100% - 26px, 620px);
  }

  .auth-layout {
    min-height: calc(100vh - 60px);
    padding: 38px 0;
    gap: 32px;
  }

  .auth-intro h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card {
    min-height: 196px;
  }

  .auth-card {
    padding: 21px;
    border-radius: 16px;
  }

  .sidebar {
    top: 60px;
    padding-inline: 12px;
  }

  .nav-item .icon {
    display: none;
  }

  .app-content {
    padding-inline: 13px;
  }

  .app-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 21px 0;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .session-chip {
    display: none;
  }

  .workspace-state {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 0;
  }

  .workspace-state #workspace-state-copy {
    flex-basis: calc(100% - 30px);
  }

  .workspace-state .row-action {
    width: 100%;
    margin-left: 0;
  }

  .overview-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .range-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .range-tabs button {
    min-width: 0;
    padding-inline: 5px;
  }

  .overview-count-grid,
  .inspection-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row,
  .management-form .form-row {
    grid-template-columns: 1fr;
  }

  .fit-button {
    width: 100%;
  }

  .request-withdrawal-card {
    align-items: stretch;
    flex-direction: column;
  }

  .responsive-table {
    overflow: visible;
  }

  .operations-table,
  .operations-table tbody,
  .operations-table tr,
  .operations-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .operations-table {
    min-width: 0;
  }

  .operations-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .operations-table tbody {
    display: grid;
    gap: 10px;
  }

  .operations-table tr {
    padding: 13px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
  }

  .operations-table td,
  .operations-table td:first-child {
    display: grid;
    grid-template-columns: minmax(82px, 0.38fr) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-width: 0;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .operations-table td:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .operations-table td::before {
    content: attr(data-label);
    color: var(--dim);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  #log-list td[data-label="Event"]>strong {
    overflow-wrap: anywhere;
  }

  .operations-table .table-actions {
    display: block;
    padding-bottom: 0;
    text-align: left;
  }

  .operations-table .table-actions::before {
    content: none;
  }

  .operations-table .table-actions .row-action {
    width: 100%;
  }

  .admin-summary-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-summary-heading .status-chip {
    margin-left: 45px;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dialog-actions .primary-button,
  .dialog-actions .secondary-button {
    width: 100%;
  }
}

@media(max-width:540px) {
  .metric-card {
    min-height: 108px;
  }

  .panel-heading:not(.chart-heading) {
    align-items: stretch;
    flex-direction: column;
  }

  .rail-badge {
    width: 100%;
  }

  .link-address {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .link-address code {
    flex-basis: 100%;
  }

  .heading-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .heading-actions select,
  .heading-actions .secondary-button {
    width: 100%;
  }

  .toast-region {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .toast {
    max-width: none;
  }
}

@media (max-width: 390px) {
  .auth-switch {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .overview-balance-card,
  .management-panel,
  .table-panel,
  .inspection-panel,
  .chart-panel {
    padding: 16px;
  }

  .balance-details,
  .overview-wallet-readiness,
  .overview-count-grid,
  .metric-grid,
  .inspection-metrics,
  .admin-summary dl {
    grid-template-columns: 1fr;
  }

  .overview-wallet-readiness>div {
    min-height: 50px;
  }

  .range-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .range-tabs button:nth-child(4),
  .range-tabs button:nth-child(5) {
    grid-column: span 1;
  }

  .header-actions {
    grid-template-columns: 1fr;
  }

  .application-contact {
    display: grid;
  }

  .application-contact a {
    width: 100%;
  }

  .admin-row-actions {
    display: grid;
  }

  .admin-row-actions .row-action {
    width: 100%;
  }
}

@media (max-width: 320px) {
  .app-content {
    padding-inline: 10px;
  }

  .overview-balance-card,
  .management-panel,
  .table-panel,
  .inspection-panel,
  .chart-panel {
    padding: 14px;
  }

  .balance-amount {
    font-size: 31px;
  }

  .operation-dialog {
    width: calc(100vw - 12px);
  }

  .operation-dialog form {
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}