@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;700&family=Source+Code+Pro:wght@500;700&display=swap");

:root {
  --page-bg: #f6f9fc;
  --surface: #ffffff;
  --surface-alt: #fbfdff;
  --surface-dark: #1c1e54;
  --heading: #061b31;
  --label: #273951;
  --body: #64748d;
  --line: #e5edf5;
  --line-soft: #d6d9fc;
  --brand: #533afd;
  --brand-hover: #4434d4;
  --brand-soft: rgba(83, 58, 253, 0.08);
  --ruby: #ea2261;
  --magenta: #f96bee;
  --success: #15be53;
  --success-text: #108c3d;
  --warning: #9b6829;
  --shadow-standard: rgba(50, 50, 93, 0.25) 0px 30px 45px -30px,
    rgba(0, 0, 0, 0.1) 0px 18px 36px -18px;
  --shadow-ambient: rgba(23, 23, 23, 0.08) 0px 15px 35px 0px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(249, 107, 238, 0.14), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(83, 58, 253, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fc 44%, #eef4fb 100%);
  color: var(--body);
  font-family: "Sohne", "Söhne", "Manrope", "Avenir Next", "SF Pro Display", sans-serif;
  font-feature-settings: "ss01" 1;
}

.hidden {
  display: none !important;
}

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

code {
  font-family: "Source Code Pro", "SFMono-Regular", monospace;
  font-size: 0.8rem;
}

.page-aura {
  pointer-events: none;
  position: fixed;
  z-index: 0;
  inset: auto;
  width: 32rem;
  height: 32rem;
  filter: blur(80px);
  opacity: 0.35;
}

.aura-violet {
  top: -10rem;
  right: -12rem;
  background: radial-gradient(circle, rgba(83, 58, 253, 0.55), transparent 68%);
}

.aura-ruby {
  bottom: -8rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(234, 34, 97, 0.3), transparent 70%);
}

.topbar,
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 84rem;
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem 0.85rem;
  background: rgba(246, 249, 252, 0.78);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand), #6b57ff 70%, var(--magenta));
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-standard);
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h1,
.hero-copy h2,
.section-intro h2,
.section-heading h3,
.wallet-stage h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.topbar h1 {
  font-size: 1.45rem;
  line-height: 1.05;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-pill,
.section-meta,
.summary-chip-label,
.metric-note {
  font-size: 0.76rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--label);
  backdrop-filter: blur(12px);
}

.status-pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
}

.status-pill.ok {
  color: var(--success-text);
  border-color: rgba(21, 190, 83, 0.28);
  background: rgba(21, 190, 83, 0.08);
}

.status-pill.warn {
  color: var(--warning);
  border-color: rgba(155, 104, 41, 0.25);
  background: rgba(255, 215, 239, 0.4);
}

.status-pill.muted {
  color: var(--body);
}

.app-shell {
  display: grid;
  gap: 1.25rem;
  padding: 0.5rem 2rem 2.5rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: stretch;
  gap: 1rem;
}

.card {
  border: 1px solid rgba(229, 237, 245, 0.95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-standard);
  backdrop-filter: blur(16px);
}

.hero-copy {
  padding: 1.5rem 1.6rem;
}

.hero-copy h2 {
  max-width: 17ch;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-text {
  max-width: 58ch;
  margin: 1.1rem 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--label);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 8.6rem;
  padding: 1.15rem 1.2rem;
}

.metric-label {
  display: block;
  color: var(--label);
  font-size: 0.84rem;
}

.metric-value {
  display: block;
  margin: 0.55rem 0 0.4rem;
  color: var(--heading);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.metric-note {
  color: var(--body);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
  align-items: start;
}

.overview-column,
.content-column,
.operations-grid {
  display: grid;
  gap: 1rem;
}

.section-card,
.wallet-stage {
  padding: 1.1rem;
}

.overview-column,
.content-column {
  min-width: 0;
}

.section-intro {
  display: grid;
  gap: 0.55rem;
  max-width: 48rem;
  padding: 0 0.15rem;
}

.section-intro h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-intro p {
  margin: 0;
  max-width: 60ch;
  color: var(--label);
  font-size: 0.95rem;
  line-height: 1.58;
}

.operations-desk {
  display: grid;
  gap: 1rem;
  padding-top: 0.35rem;
}

.operations-grid-primary {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.operations-grid-secondary {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.section-heading h3 {
  font-size: 1.15rem;
  line-height: 1.08;
}

.section-meta {
  color: var(--body);
  text-align: right;
}

.form-stack {
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.38rem;
  color: var(--label);
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  color: var(--heading);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7f8ca4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(83, 58, 253, 0.12);
}

.checkbox-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.checkbox-field input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  padding: 0;
  accent-color: var(--brand);
}

.field-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.field-inline .button {
  white-space: nowrap;
}

.inline-field {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.8rem;
}

.form-hint {
  margin: -0.15rem 0 0;
  color: var(--body);
  font-size: 0.8rem;
  line-height: 1.45;
}

.form-error {
  margin: -0.15rem 0 0;
  color: #b42318;
  font-size: 0.8rem;
  line-height: 1.45;
}

.field input.input-error,
.field select.input-error,
.field textarea.input-error {
  border-color: #f04438;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-button {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 1.95rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
  color: var(--label);
  cursor: pointer;
  font-size: 0.76rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease,
    background 140ms ease, color 140ms ease;
}

.preset-button:hover {
  transform: translateY(-1px);
  border-color: rgba(83, 58, 253, 0.22);
  box-shadow: rgba(50, 50, 93, 0.12) 0px 14px 22px -20px;
}

.preset-button.active {
  border-color: rgba(83, 58, 253, 0.28);
  background: rgba(83, 58, 253, 0.09);
  color: var(--brand);
}

.preset-button .preset-meta {
  color: var(--body);
}

.inline-field .field-checkbox {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.field-checkbox input {
  width: 1rem;
  height: 1rem;
  padding: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.78rem 1rem;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease,
    border-color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: var(--brand);
  box-shadow: rgba(83, 58, 253, 0.25) 0px 12px 24px -12px;
}

.button.primary:hover {
  background: var(--brand-hover);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand);
  border: 1px solid var(--line-soft);
}

.button.subtle {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(83, 58, 253, 0.14);
}

.button.critical {
  background: rgba(234, 34, 97, 0.08);
  color: var(--ruby);
  border: 1px solid rgba(234, 34, 97, 0.18);
}

.button.tiny {
  padding: 0.32rem 0.52rem;
  font-size: 0.72rem;
  line-height: 1.1;
}

.wallet-list,
.stacked-list,
.table-list,
.token-catalog,
.timeline {
  display: grid;
  gap: 0.7rem;
}

.wallet-list {
  max-height: 36rem;
  overflow: auto;
}

.wallet-item,
.feed-item,
.trace-item,
.token-card,
.balance-card,
.table-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.wallet-item {
  padding: 0.9rem;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.wallet-item:hover,
.wallet-item.active {
  border-color: rgba(83, 58, 253, 0.3);
  box-shadow: rgba(50, 50, 93, 0.14) 0px 18px 28px -20px;
  transform: translateY(-1px);
}

.wallet-item-header,
.table-row-header,
.feed-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.wallet-item strong,
.balance-card strong,
.table-row strong,
.token-card strong,
.feed-item strong {
  color: var(--heading);
  font-weight: 400;
}

.wallet-item p,
.table-row p,
.token-card p,
.feed-item p,
.trace-item p {
  margin: 0.35rem 0 0;
  font-size: 0.83rem;
}

.mono {
  font-family: "Source Code Pro", "SFMono-Regular", monospace;
}

.mono-wrap {
  overflow-wrap: anywhere;
}

.mono-compact {
  display: inline-block;
  white-space: nowrap;
  word-break: normal;
}

.table-clip {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-owner {
  max-width: 12.5rem;
}

.table-address {
  max-width: 10.25rem;
}

.table-date {
  white-space: nowrap;
}

.tag-row,
.wallet-addresses,
.wallet-metadata,
.table-row-meta,
.trace-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.tag,
.address-pill,
.status-badge,
.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.85rem;
  padding: 0.38rem 0.62rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.tag,
.address-pill,
.summary-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--label);
}

.tag-link {
  text-decoration: none;
}

.tag-link:hover {
  border-color: rgba(79, 70, 229, 0.35);
  color: #4338ca;
}

.status-badge {
  border: 1px solid transparent;
  background: rgba(39, 57, 81, 0.08);
  color: var(--label);
}

.status-badge.status-confirmed {
  color: var(--success-text);
  border-color: rgba(21, 190, 83, 0.36);
  background: rgba(21, 190, 83, 0.14);
}

.status-badge.status-submitted,
.status-badge.status-submitting {
  color: var(--brand);
  border-color: rgba(83, 58, 253, 0.2);
  background: rgba(83, 58, 253, 0.1);
}

.status-badge.status-failed {
  color: var(--ruby);
  border-color: rgba(234, 34, 97, 0.24);
  background: rgba(234, 34, 97, 0.1);
}

.status-badge.status-created {
  color: var(--label);
  border-color: rgba(39, 57, 81, 0.16);
  background: rgba(39, 57, 81, 0.06);
}

.status-badge.status-active,
.status-badge.status-autosweep-on,
.status-badge.status-unlocked {
  color: var(--success-text);
  border-color: rgba(21, 190, 83, 0.36);
  background: rgba(21, 190, 83, 0.14);
}

.status-badge.status-inactive,
.status-badge.status-autosweep-off,
.status-badge.status-locked {
  color: var(--warning);
  border-color: rgba(155, 104, 41, 0.24);
  background: rgba(155, 104, 41, 0.1);
}

.wallet-stage {
  min-height: 11rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96)),
    rgba(255, 255, 255, 0.94);
}

.wallet-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.wallet-stage h3 {
  font-size: 1.7rem;
}

.wallet-stage p {
  margin: 0.55rem 0 0;
  font-size: 0.96rem;
  color: var(--label);
}

.wallet-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.detail-grid-priority {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
}

.balance-card,
.token-card,
.feed-item,
.trace-item,
.table-row {
  padding: 0.85rem;
}

.balance-card p,
.token-card p,
.feed-item p,
.trace-item p {
  line-height: 1.45;
}

.balance-card .amount,
.metric-card code,
.table-row code {
  color: var(--heading);
}

.segmented-control {
  display: inline-flex;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.segment {
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--body);
  padding: 0.52rem 0.72rem;
  cursor: pointer;
}

.segment.active {
  background: var(--brand);
  color: #ffffff;
}

.table-row {
  display: grid;
  gap: 0.55rem;
}

.table-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.3rem;
}

.service-summary {
  margin-bottom: 1rem;
}

.summary-chip {
  justify-content: space-between;
  width: 100%;
}

.summary-chip strong {
  color: var(--heading);
  font-weight: 400;
}

.empty-state {
  color: var(--body);
  min-height: 3.5rem;
  align-content: center;
}

.wallets-toolbar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.wallets-list-section {
  display: grid;
  gap: 1rem;
}

.wallet-card-list {
  display: grid;
  gap: 1rem;
}

.wallet-row-card {
  display: grid;
  gap: 1rem;
}

.wallet-row-header,
.wallet-row-main,
.wallet-row-meta,
.wallet-inline-actions,
.wallet-row-addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wallet-row-header,
.wallet-row-main {
  align-items: flex-start;
  justify-content: space-between;
}

.wallet-row-title {
  display: grid;
  gap: 0.18rem;
}

.wallet-row-title h3,
.mini-panel h4 {
  margin: 0;
  color: var(--heading);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.wallet-row-title h3 {
  font-size: 1.4rem;
}

.wallet-expand-panel {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.wallet-expand-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(20rem, 0.9fr);
  gap: 1rem;
}

.wallet-observe-stack,
.wallet-ops-stack {
  display: grid;
  gap: 1rem;
}

.mini-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92));
  min-width: 0;
  align-content: start;
}

.mini-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.mini-panel-header .eyebrow {
  margin-bottom: 0.2rem;
}

.wallet-mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.wallet-panel-empty {
  min-height: 3.5rem;
  color: var(--body);
  align-content: center;
}

.compact-row {
  gap: 0.45rem;
}

.compact-row p {
  margin-top: 0;
}

.wallet-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(26rem, auto);
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.15rem;
}

.wallet-page-header-copy {
  display: grid;
  gap: 0.28rem;
  align-content: center;
}

.wallet-page-header-copy h2 {
  max-width: none;
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.5rem, 2.3vw, 1.85rem);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.wallet-page-header-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--label);
  font-size: 0.9rem;
  line-height: 1.45;
}

.wallet-page-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.85rem;
}

.wallet-page-metrics .summary-chip {
  width: auto;
  min-height: 4rem;
  padding: 0.72rem 0.82rem;
  border-color: rgba(83, 58, 253, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
  box-shadow: rgba(50, 50, 93, 0.12) 0px 18px 28px -22px;
  align-items: flex-start;
  justify-content: space-between;
}

.wallet-page-metrics .summary-chip strong {
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.wallet-page-metrics-compact {
  align-self: stretch;
}

.wallet-utility-bar {
  display: grid;
  gap: 0.9rem;
  align-items: start;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.wallet-utility-copy {
  display: grid;
  gap: 0.2rem;
}

.wallet-utility-copy h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.wallet-utility-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.toolbar-inline-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
  min-width: 0;
}

.toolbar-inline-form-lock {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.toolbar-inline-label,
.toolbar-inline-label-stack {
  min-width: 0;
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.toolbar-inline-label {
  align-self: center;
}

.toolbar-inline-label-stack {
  display: grid;
  gap: 0.18rem;
  align-self: center;
}

.compact-field-block {
  min-width: 0;
}

.compact-field-block span {
  margin-bottom: 0.35rem;
}

.toolbar-inline-form .button {
  min-width: 9.5rem;
  white-space: nowrap;
}

.service-summary-inline {
  margin: 0;
}

.slim-summary-chip {
  min-height: auto;
  padding: 0.72rem 0.8rem;
  align-items: flex-start;
  gap: 0.2rem;
  box-shadow: none;
}

.compact-field {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 0.55rem;
  align-items: center;
  color: var(--label);
  font-size: 0.83rem;
}

.compact-field select {
  min-width: 5rem;
  padding: 0.62rem 0.75rem;
}

.wallet-table-section {
  display: grid;
  gap: 0.9rem;
}

.wallet-table-toolbar,
.wallet-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.wallet-table-controls,
.pagination-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.wallet-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow-x: hidden;
  overflow-y: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow: rgba(50, 50, 93, 0.12) 0px 18px 28px -22px;
  max-width: 100%;
}

.wallet-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.wallet-col-id {
  width: 5rem;
}

.wallet-col-owner {
  width: 14rem;
}

.wallet-col-evm,
.wallet-col-tron {
  width: 11rem;
}

.wallet-col-usdt {
  width: 8rem;
}

.wallet-col-sweep {
  width: 7rem;
}

.wallet-col-date {
  width: 11rem;
}

.wallet-col-actions {
  width: 11rem;
}

.wallet-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.78rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 249, 255, 0.98);
  color: var(--label);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wallet-table tbody td {
  padding: 0.82rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  font-size: 0.84rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-table-row td {
  background: rgba(255, 255, 255, 0.88);
}

.wallet-table tbody td strong,
.wallet-table tbody td .mono {
  font-size: 0.78rem;
  line-height: 1.3;
}

.wallet-table tbody td:nth-child(3),
.wallet-table tbody td:nth-child(4),
.wallet-table tbody td:nth-child(6),
.wallet-table tbody td:nth-child(7) {
  white-space: nowrap;
}

.wallet-table tbody td:nth-child(6) .status-badge {
  min-width: 2.4rem;
  justify-content: center;
}

.wallet-table-row:hover td {
  background: rgba(83, 58, 253, 0.035);
}

.wallet-table tbody tr:last-child td {
  border-bottom: 0;
}

.wallet-table-empty {
  padding: 2.8rem 1rem;
  text-align: center;
  color: var(--body);
}

.wallet-row-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.24rem;
  white-space: nowrap;
  max-width: 100%;
}

.wallet-usdt-summary {
  display: grid;
  gap: 0.22rem;
  min-width: 7.6rem;
}

.wallet-usdt-summary-inline {
  display: inline-block;
  color: var(--heading);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
}

.wallet-usdt-total {
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.05;
}

.wallet-usdt-note {
  color: var(--body);
  font-size: 0.7rem;
}

.wallet-usdt-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.wallet-detail-row td {
  padding: 0;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.72), rgba(252, 253, 255, 0.96));
}

.wallet-detail-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  grid-auto-flow: dense;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.wallet-identity-panel {
  grid-column: 1 / -1;
}

.wallet-detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.75rem;
}

.wallet-detail-addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem;
}

.owner-rename-form {
  margin-top: 0.85rem;
}

.wallet-detail-item {
  display: grid;
  gap: 0.28rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
}

.wallet-detail-label {
  color: var(--body);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  display: grid;
  gap: 0.75rem;
}

.toast {
  min-width: 18rem;
  max-width: 26rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-standard);
  color: var(--label);
  animation: toast-in 220ms ease;
}

.toast.success {
  border-color: rgba(21, 190, 83, 0.26);
}

.toast.error {
  border-color: rgba(234, 34, 97, 0.22);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.wallet-item,
.token-card,
.table-row,
.feed-item,
.trace-item {
  animation: rise-in 240ms ease;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1240px) {
  .wallet-page-header {
    grid-template-columns: 1fr;
  }

  .wallet-detail-summary,
  .wallet-detail-addresses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-grid-secondary {
    grid-template-columns: 1fr;
  }

  .wallet-expand-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .wallet-utility-forms,
  .wallet-page-metrics,
  .wallet-detail-summary,
  .wallet-detail-addresses {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .topbar,
  .app-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-panel,
  .dashboard-grid,
  .detail-grid,
  .detail-grid-priority,
  .operations-grid,
  .wallet-page-header,
  .wallets-toolbar-grid,
  .wallet-expand-grid,
  .wallet-detail-layout,
  .inline-field {
    grid-template-columns: 1fr;
  }

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

  .topbar-actions,
  .wallet-stage-header,
  .wallet-table-toolbar,
  .wallet-table-footer,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .wallet-row-actions,
  .wallet-inline-actions {
    width: 100%;
  }

  .toolbar-inline-form,
  .toolbar-inline-form-lock {
    grid-template-columns: 1fr;
  }

  .toolbar-inline-form .button {
    width: 100%;
    min-width: 0;
  }

  .wallet-table-wrap {
    overflow-x: auto;
  }

  .wallet-table {
    min-width: 58rem;
  }

  .hero-copy h2,
  .wallet-page-header-copy h2 {
    max-width: none;
  }

  .metric-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .wallet-table-wrap {
    overflow-x: auto;
  }

  .wallet-table {
    min-width: 48rem;
  }
}

body.of-admin-body {
  margin: 0;
  min-height: 100vh;
  background: #f8f9fb;
  color: #273951;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    sans-serif;
}

.of-admin-body .page-aura {
  display: none;
}

.of-admin-shell {
  min-height: 100vh;
}

.of-admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #e5edf5;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.of-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border-bottom: 1px solid #e5edf5;
}

.of-sidebar-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #533afd;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.of-sidebar-brand-copy {
  display: grid;
  gap: 0.12rem;
}

.of-sidebar-brand-copy strong {
  color: #061b31;
  font-size: 0.95rem;
  font-weight: 600;
}

.of-sidebar-brand-copy span {
  color: #64748d;
  font-size: 0.75rem;
}

.of-sidebar-nav {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.5rem;
}

.of-nav-link {
  display: block;
  padding: 0.72rem 0.85rem;
  border-radius: 6px;
  color: #273951;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.of-nav-link:hover {
  background: rgba(83, 58, 253, 0.06);
  color: #533afd;
}

.of-nav-link.is-active {
  background: rgba(83, 58, 253, 0.06);
  color: #533afd;
  border-left-color: #533afd;
}

.of-sidebar-footer {
  margin-top: auto;
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid #e5edf5;
  display: grid;
  gap: 0.45rem;
}

.of-sidebar-label {
  color: #64748d;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.of-admin-main {
  margin-left: 220px;
  padding: 24px;
}

.of-admin-panel {
  background: #ffffff;
  border: 1px solid #e5edf5;
  border-radius: 6px;
  box-shadow: rgba(23, 23, 23, 0.06) 0px 3px 6px;
  padding: 28px;
  display: grid;
  gap: 20px;
}

.of-page-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #e5edf5;
}

.of-page-heading {
  display: grid;
  gap: 0.3rem;
}

.of-page-kicker,
.of-section-kicker {
  margin: 0;
  color: #64748d;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.of-page-heading h1,
.of-section-head h2,
.of-tool-head h3 {
  margin: 0;
  color: #061b31;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.of-page-heading h1 {
  font-size: 1.35rem;
}

.of-page-heading p {
  margin: 0;
  color: #64748d;
  font-size: 0.84rem;
}

.of-page-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.of-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.of-stat-card {
  border: 1px solid #e5edf5;
  border-radius: 6px;
  background: #ffffff;
  padding: 16px 18px;
  display: grid;
  gap: 0.45rem;
  box-shadow: rgba(50, 50, 93, 0.1) 0px 2px 5px -1px, rgba(0, 0, 0, 0.05) 0px 1px 3px -1px;
}

.of-stat-label {
  color: #64748d;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.of-stat-value {
  color: #061b31;
  font-size: 1.35rem;
  font-weight: 600;
  font-feature-settings: "tnum";
}

.of-section-card {
  border: 1px solid #e5edf5;
  border-radius: 6px;
  background: #ffffff;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.of-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.of-section-head h2 {
  font-size: 1rem;
}

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

.of-tool-card {
  border: 1px solid #e5edf5;
  border-radius: 6px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.of-tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.of-tool-head h3 {
  font-size: 0.98rem;
}

.of-tool-note {
  color: #64748d;
  font-size: 0.76rem;
}

.of-tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.of-overview-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.of-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.section-copy {
  margin: 0 0 16px;
  color: #64748d;
  line-height: 1.6;
}

.hot-wallet-balance-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hot-wallet-balance-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.address-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #4f46e5;
  cursor: pointer;
  text-align: left;
}

.address-trigger:hover {
  color: #312e81;
  text-decoration: underline;
}

.address-trigger-block {
  width: 100%;
}

.of-summary-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.of-compact-directory {
  display: grid;
  gap: 12px;
}

.of-section-head.compact-head {
  align-items: end;
}

.of-overview-sidebar,
.of-overview-main {
  display: grid;
  gap: 16px;
  align-content: start;
}

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

.of-operations-section {
  gap: 18px;
}

.of-operations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

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

.of-nested-card {
  box-shadow: rgba(50, 50, 93, 0.08) 0px 2px 5px -1px, rgba(0, 0, 0, 0.04) 0px 1px 3px -1px;
}

.of-token-editor-card {
  grid-column: span 2;
}

.of-operations-grid-overview .of-token-editor-card,
.of-operations-grid-overview .of-admin-email-card {
  grid-column: span 1;
}

.admin-email-list {
  gap: 10px;
}

.admin-email-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-email-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
}

.admin-email-item.is-inactive {
  background: #f8fafc;
}

.admin-email-item-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-email-item-main strong {
  font-size: 0.92rem;
  word-break: break-all;
}

.admin-email-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.of-admin-body .card {
  border: 1px solid #e5edf5;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.of-admin-body .wallet-stage {
  padding: 18px;
}

.of-admin-body .wallet-stage.empty-state {
  color: #64748d;
}

.of-admin-body .wallet-stage-header {
  align-items: start;
}

.of-admin-body .wallet-stage h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #061b31;
}

.of-admin-body .wallet-stage p {
  color: #64748d;
}

.of-admin-body .wallet-stage .eyebrow {
  color: #64748d;
  font-size: 0.7rem;
  font-weight: 600;
}

.of-admin-body .wallet-item,
.of-admin-body .feed-item,
.of-admin-body .table-row,
.of-admin-body .token-card,
.of-admin-body .trace-item,
.of-admin-body .balance-card {
  box-shadow: none;
}

.of-admin-body .wallet-item-header strong,
.of-admin-body .table-row-header strong,
.of-admin-body .feed-item-header strong {
  color: #061b31;
}

.of-admin-body .wallet-item-compact {
  padding: 12px 14px;
  gap: 10px;
}

.of-admin-body .wallet-item-compact .tag-row {
  margin-top: 0;
}

.of-admin-body .wallet-item-compact .status-badge {
  font-size: 0.68rem;
}

.of-admin-body .token-grid,
.of-admin-body .wallet-list,
.of-admin-body .stacked-list,
.of-admin-body .table-list,
.of-admin-body .token-catalog,
.of-admin-body .timeline {
  min-height: 120px;
}

.of-hidden-region {
  display: none !important;
}

.of-admin-body .of-summary-layout .service-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hot-wallet-balance-list {
  display: grid;
  gap: 12px;
}

.hot-wallet-balance-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(140px, 0.7fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid #e5edf5;
  border-radius: 6px;
  background: #fafcff;
}

.hot-wallet-balance-chain,
.hot-wallet-balance-native,
.hot-wallet-balance-assets {
  display: grid;
  gap: 8px;
}

.hot-wallet-balance-chain strong,
.hot-wallet-balance-value {
  color: #061b31;
  font-size: 0.95rem;
  font-weight: 600;
}

.hot-wallet-balance-label {
  color: #64748d;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hot-wallet-balance-value.muted {
  color: #94a3b8;
}

.hot-wallet-balance-value.error {
  color: #dc2626;
  font-size: 0.82rem;
  line-height: 1.5;
}

.hot-wallet-asset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-wallet-asset-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #dbe6f3;
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
}

.hot-wallet-asset-tag strong {
  color: #061b31;
  font-weight: 600;
}

.hot-wallet-asset-tag.error {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.qr-modal.hidden {
  display: none;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 27, 49, 0.52);
  backdrop-filter: blur(3px);
}

.qr-modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 360px);
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.qr-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.qr-modal-body {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.qr-image {
  width: 240px;
  height: 240px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #e5edf5;
  background: #ffffff;
}

.qr-address-value {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5edf5;
  background: #f8fbff;
  text-align: center;
}

.of-service-inline {
  display: flex;
  align-items: center;
}

.of-admin-body .service-summary-inline .summary-chip {
  max-width: none;
  box-shadow: none;
}

.of-table-card {
  gap: 14px;
}

.of-table-head {
  align-items: end;
}

.of-admin-body .wallet-table-controls,
.of-admin-body .pagination-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.of-admin-body .compact-field {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
  color: #64748d;
  font-size: 12px;
}

.of-admin-body .wallet-table-wrap {
  overflow: visible;
  border: 1px solid #e5edf5;
  border-radius: 6px;
  box-shadow: none;
  background: #ffffff;
}

.of-admin-body .wallet-grid-table {
  width: 100%;
}

.of-admin-body .wallet-grid-head,
.of-admin-body .wallet-grid-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.45fr) minmax(0, 1.12fr) minmax(0, 1.12fr) 92px 92px 116px 208px;
  column-gap: 12px;
  align-items: center;
}

.of-admin-body .wallet-grid-head {
  padding: 10px 14px;
  background: #f8f9fb;
  border-bottom: 1px solid #e5edf5;
}

.of-admin-body .wallet-grid-head-cell {
  color: #64748d;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.of-admin-body .wallet-grid-body {
  display: grid;
}

.of-admin-body .wallet-grid-item {
  border-bottom: 1px solid #f0f3f7;
}

.of-admin-body .wallet-grid-item:last-child {
  border-bottom: 0;
}

.of-admin-body .wallet-grid-row {
  padding: 12px 14px;
}

.of-admin-body .wallet-grid-cell {
  min-width: 0;
  border-bottom: 1px solid #f0f3f7;
  color: #273951;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.of-admin-body .wallet-grid-item:last-child .wallet-grid-cell {
  border-bottom: 0;
}

.of-admin-body .wallet-grid-item:hover {
  background: rgba(83, 58, 253, 0.035);
}

.of-admin-body .table-owner {
  max-width: 100%;
}

.of-admin-body .table-address {
  max-width: 100%;
}

.of-admin-body .wallet-grid-cell strong,
.of-admin-body .wallet-grid-cell .mono {
  font-size: 12px;
}

.of-admin-body .wallet-usdt-summary-inline {
  display: inline-block;
  width: 100%;
  font-size: 13px;
  text-align: center;
}

.of-admin-body .wallet-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
}

.of-admin-body .button {
  border-radius: 6px;
}

.of-admin-body .button.tiny {
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1;
}

.of-admin-body .wallet-grid-sweep,
.of-admin-body .wallet-grid-usdt,
.of-admin-body .wallet-grid-date {
  text-align: center;
}

.of-admin-body .wallet-grid-sweep .status-badge {
  min-width: 2.2rem;
  justify-content: center;
}

.of-admin-body .wallet-grid-actions {
  overflow: visible;
}

.of-admin-body .wallet-grid-empty {
  padding: 28px 14px;
  color: #64748d;
  font-size: 13px;
  text-align: center;
}

.history-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.9rem;
  align-items: end;
}

.history-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.history-list {
  display: grid;
  gap: 0.9rem;
}

.history-item {
  border: 1px solid #dbe6f3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem 1.05rem;
  box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.35);
}

.history-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.history-time-row {
  margin-bottom: 0.38rem;
}

.history-time-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  color: #4338ca;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.history-item-header h3 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 600;
}

.history-gas-line {
  margin: 0.42rem 0 0;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 600;
}

.history-route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.history-route-card {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e5edf5;
  border-radius: 10px;
  background: #fbfdff;
}

.history-route-card strong {
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 600;
}

.history-route-label {
  color: #64748b;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.of-admin-body .wallet-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.of-admin-body .wallet-detail-row {
  background: #fafcff;
  border-top: 1px solid #f0f3f7;
}

.of-admin-body .wallet-detail-cell {
  padding: 0;
}

.of-admin-body .wallet-detail-layout {
  padding: 16px;
}

.sidebar-logout-button {
  width: 100%;
  margin-top: 12px;
}

.of-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.of-login-shell {
  width: min(100%, 520px);
}

.of-login-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(209, 222, 238, 0.9);
  box-shadow: 0 28px 64px rgba(20, 42, 85, 0.14);
}

.of-login-brand {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.of-login-brand h1 {
  margin: 0 0 6px;
}

.of-login-brand .section-copy {
  margin: 0;
}

@media (max-width: 1280px) {
  .of-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .of-summary-layout,
  .of-overview-grid,
  .of-admin-body .of-summary-layout .service-summary {
    grid-template-columns: 1fr;
  }

  .hot-wallet-balance-row {
    grid-template-columns: 1fr;
  }

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

  .of-token-editor-card {
    grid-column: span 1;
  }
}

@media (max-width: 1080px) {
  .of-admin-sidebar {
    position: static;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #e5edf5;
  }

  .of-admin-main {
    margin-left: 0;
    padding: 16px;
  }

  .of-admin-panel {
    padding: 20px;
  }

  .of-tools-grid {
    grid-template-columns: 1fr;
  }

  .of-insight-grid,
  .of-operations-grid,
  .of-operations-grid-overview {
    grid-template-columns: 1fr;
  }

  .of-page-header-bar,
  .of-table-head,
  .of-admin-body .wallet-table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .of-admin-body .wallet-grid-head,
  .of-admin-body .wallet-grid-row {
    grid-template-columns: 72px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 84px 84px 108px 186px;
  }
}

@media (max-width: 720px) {
  .of-stats-grid {
    grid-template-columns: 1fr;
  }

  .of-tool-row {
    grid-template-columns: 1fr;
  }

  .of-page-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .of-admin-body .wallet-stage-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .of-admin-body .wallet-grid-head,
  .of-admin-body .wallet-grid-row {
    grid-template-columns: 64px minmax(0, 1.15fr) minmax(0, 0.92fr) minmax(0, 0.92fr) 74px 74px 96px 168px;
    column-gap: 8px;
  }

  .of-admin-body .wallet-grid-row,
  .of-admin-body .wallet-grid-head {
    padding-left: 10px;
    padding-right: 10px;
  }

  .of-admin-body .button.tiny {
    padding: 4px 7px;
    font-size: 11px;
  }
}

.of-docs-body {
  min-height: 100vh;
  padding: 32px 20px 48px;
}

.of-docs-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.of-docs-hero,
.of-docs-section,
.of-docs-toc {
  border: 1px solid rgba(229, 237, 245, 0.95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-standard);
  backdrop-filter: blur(16px);
}

.of-docs-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 28px;
}

.of-docs-kicker,
.of-docs-section-kicker,
.of-docs-toc-title {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.of-docs-hero h1,
.of-docs-section h2 {
  margin: 0;
  color: var(--heading);
  letter-spacing: -0.03em;
}

.of-docs-hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  font-weight: 300;
}

.of-docs-lead,
.of-docs-text,
.of-docs-callout,
.of-docs-endpoint-card p,
.of-docs-small {
  color: var(--label);
  line-height: 1.7;
}

.of-docs-lead {
  max-width: 62ch;
  margin: 14px 0 0;
  font-size: 1rem;
}

.of-docs-lead a {
  color: var(--brand);
  text-decoration: none;
}

.of-docs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.of-docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.of-docs-toc {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
  padding: 20px;
}

.of-docs-toc a {
  color: var(--label);
  text-decoration: none;
  font-weight: 600;
}

.of-docs-toc a:hover {
  color: var(--brand);
}

.of-docs-content {
  display: grid;
  gap: 20px;
}

.of-docs-section {
  padding: 24px;
}

.of-docs-section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.of-docs-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.of-docs-meta-card,
.of-docs-endpoint-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(251, 253, 255, 0.94);
}

.of-docs-meta-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.of-docs-meta-card strong {
  color: var(--heading);
  font-size: 0.95rem;
  line-height: 1.5;
}

.of-docs-meta-label {
  color: var(--body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.of-docs-callout {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(83, 58, 253, 0.16);
  border-radius: 14px;
  background: rgba(83, 58, 253, 0.06);
}

.of-docs-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--label);
}

.of-docs-endpoint-grid {
  display: grid;
  gap: 16px;
}

.of-docs-endpoint-card {
  padding: 18px;
}

.of-docs-endpoint-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.of-docs-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(83, 58, 253, 0.12);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.of-docs-endpoint-head code,
.of-docs-meta-card code,
.of-docs-list code,
.of-docs-lead code {
  color: var(--heading);
  font-size: 0.88rem;
}

.of-docs-code {
  overflow-x: auto;
  margin: 14px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(28, 30, 84, 0.08);
  border-radius: 14px;
  background: #0f172a;
  color: #dbeafe;
  font-family: "Source Code Pro", "SFMono-Regular", monospace;
  font-size: 0.82rem;
  line-height: 1.7;
}

.of-docs-code code {
  color: inherit;
  font-size: inherit;
}

.of-docs-small {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.of-admin-docs-frame {
  width: 100%;
  min-height: calc(100vh - 220px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
}

@media (max-width: 960px) {
  .of-docs-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .of-docs-layout {
    grid-template-columns: 1fr;
  }

  .of-docs-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .of-docs-body {
    padding: 16px 12px 28px;
  }

  .of-docs-hero,
  .of-docs-section,
  .of-docs-toc {
    padding: 18px;
  }
}
